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:
//
// "projects/{project_id}/accessApprovalSettings"
// "folders/{folder_id}/accessApprovalSettings"
- //
- // "organizations/{organization_id}/accessApprovalSettings"
+ // "organizations/{organization_id}/accessApprovalSettings"
//
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 {
// ANY: Any location
//
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 {
// ANY: Any location
//
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 {
// "Google-#####"
// "T-#####"
//
- // "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 {
// storage.googleapis.com
//
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:
+//
+// "projects/{project_id}/accessApprovalSettings"
+// "folders/{folder_id}/accessApprovalSettings"
+// "organizations/{organization_id}/accessApprovalSettings"
+//
+// .
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:
//
//
-// [not set]: Requests that are pending or have active
-//
-// approvals.
-//
+// [not set]: Requests that are pending or have active approvals.
// ALL: All requests.
// PENDING: Only pending requests.
// ACTIVE: Only active (i.e. currently approved) requests.
// DISMISSED: Only dismissed (including expired) requests.
-// HISTORY: Active and dismissed (including expired)
+// HISTORY: Active and dismissed (including expired) requests.
//
-// 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:
+//
+// "projects/{project_id}/accessApprovalSettings"
+// "folders/{folder_id}/accessApprovalSettings"
+// "organizations/{organization_id}/accessApprovalSettings"
+//
+// .
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:
//
//
-// [not set]: Requests that are pending or have active
-//
-// approvals.
-//
+// [not set]: Requests that are pending or have active approvals.
// ALL: All requests.
// PENDING: Only pending requests.
// ACTIVE: Only active (i.e. currently approved) requests.
// DISMISSED: Only dismissed (including expired) requests.
-// HISTORY: Active and dismissed (including expired)
+// HISTORY: Active and dismissed (including expired) requests.
//
-// 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:
+//
+// "projects/{project_id}/accessApprovalSettings"
+// "folders/{folder_id}/accessApprovalSettings"
+// "organizations/{organization_id}/accessApprovalSettings"
+//
+// .
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:
//
//
-// [not set]: Requests that are pending or have active
-//
-// approvals.
-//
+// [not set]: Requests that are pending or have active approvals.
// ALL: All requests.
// PENDING: Only pending requests.
// ACTIVE: Only active (i.e. currently approved) requests.
// DISMISSED: Only dismissed (including expired) requests.
-// HISTORY: Active and dismissed (including expired)
+// HISTORY: Active and dismissed (including expired) requests.
//
-// 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
+ //