...

Source file src/google.golang.org/api/cloudcontrolspartner/v1beta/cloudcontrolspartner-gen.go

Documentation: google.golang.org/api/cloudcontrolspartner/v1beta

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package cloudcontrolspartner provides access to the Cloud Controls Partner API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/cloudcontrolspartner/v1beta"
    27  //	...
    28  //	ctx := context.Background()
    29  //	cloudcontrolspartnerService, err := cloudcontrolspartner.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	cloudcontrolspartnerService, err := cloudcontrolspartner.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	cloudcontrolspartnerService, err := cloudcontrolspartner.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package cloudcontrolspartner // import "google.golang.org/api/cloudcontrolspartner/v1beta"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "cloudcontrolspartner:v1beta"
    90  const apiName = "cloudcontrolspartner"
    91  const apiVersion = "v1beta"
    92  const basePath = "https://cloudcontrolspartner.googleapis.com/"
    93  const basePathTemplate = "https://cloudcontrolspartner.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://cloudcontrolspartner.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Organizations = NewOrganizationsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Organizations *OrganizationsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewOrganizationsService(s *Service) *OrganizationsService {
   158  	rs := &OrganizationsService{s: s}
   159  	rs.Locations = NewOrganizationsLocationsService(s)
   160  	return rs
   161  }
   162  
   163  type OrganizationsService struct {
   164  	s *Service
   165  
   166  	Locations *OrganizationsLocationsService
   167  }
   168  
   169  func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService {
   170  	rs := &OrganizationsLocationsService{s: s}
   171  	rs.Customers = NewOrganizationsLocationsCustomersService(s)
   172  	return rs
   173  }
   174  
   175  type OrganizationsLocationsService struct {
   176  	s *Service
   177  
   178  	Customers *OrganizationsLocationsCustomersService
   179  }
   180  
   181  func NewOrganizationsLocationsCustomersService(s *Service) *OrganizationsLocationsCustomersService {
   182  	rs := &OrganizationsLocationsCustomersService{s: s}
   183  	rs.Workloads = NewOrganizationsLocationsCustomersWorkloadsService(s)
   184  	return rs
   185  }
   186  
   187  type OrganizationsLocationsCustomersService struct {
   188  	s *Service
   189  
   190  	Workloads *OrganizationsLocationsCustomersWorkloadsService
   191  }
   192  
   193  func NewOrganizationsLocationsCustomersWorkloadsService(s *Service) *OrganizationsLocationsCustomersWorkloadsService {
   194  	rs := &OrganizationsLocationsCustomersWorkloadsService{s: s}
   195  	rs.AccessApprovalRequests = NewOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService(s)
   196  	rs.Violations = NewOrganizationsLocationsCustomersWorkloadsViolationsService(s)
   197  	return rs
   198  }
   199  
   200  type OrganizationsLocationsCustomersWorkloadsService struct {
   201  	s *Service
   202  
   203  	AccessApprovalRequests *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService
   204  
   205  	Violations *OrganizationsLocationsCustomersWorkloadsViolationsService
   206  }
   207  
   208  func NewOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService(s *Service) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService {
   209  	rs := &OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService{s: s}
   210  	return rs
   211  }
   212  
   213  type OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService struct {
   214  	s *Service
   215  }
   216  
   217  func NewOrganizationsLocationsCustomersWorkloadsViolationsService(s *Service) *OrganizationsLocationsCustomersWorkloadsViolationsService {
   218  	rs := &OrganizationsLocationsCustomersWorkloadsViolationsService{s: s}
   219  	return rs
   220  }
   221  
   222  type OrganizationsLocationsCustomersWorkloadsViolationsService struct {
   223  	s *Service
   224  }
   225  
   226  // AccessApprovalRequest: Details about the Access request.
   227  type AccessApprovalRequest struct {
   228  	// Name: Identifier. Format:
   229  	// `organizations/{organization}/locations/{location}/customers/{customer}/workl
   230  	// oads/{workload}/accessApprovalRequests/{access_approval_request}`
   231  	Name string `json:"name,omitempty"`
   232  	// RequestTime: The time at which approval was requested.
   233  	RequestTime string `json:"requestTime,omitempty"`
   234  	// RequestedExpirationTime: The requested expiration for the approval. If the
   235  	// request is approved, access will be granted from the time of approval until
   236  	// the expiration time.
   237  	RequestedExpirationTime string `json:"requestedExpirationTime,omitempty"`
   238  	// RequestedReason: The justification for which approval is being requested.
   239  	RequestedReason *AccessReason `json:"requestedReason,omitempty"`
   240  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   241  	// include in API requests. By default, fields with empty or default values are
   242  	// omitted from API requests. See
   243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   244  	// details.
   245  	ForceSendFields []string `json:"-"`
   246  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   247  	// with the JSON null value. By default, fields with empty values are omitted
   248  	// from API requests. See
   249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   250  	NullFields []string `json:"-"`
   251  }
   252  
   253  func (s *AccessApprovalRequest) MarshalJSON() ([]byte, error) {
   254  	type NoMethod AccessApprovalRequest
   255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   256  }
   257  
   258  // AccessReason: Reason for the access.
   259  type AccessReason struct {
   260  	// Detail: More detail about certain reason types. See comments for each type
   261  	// above.
   262  	Detail string `json:"detail,omitempty"`
   263  	// Type: Type of access justification.
   264  	//
   265  	// Possible values:
   266  	//   "TYPE_UNSPECIFIED" - Default value for proto, shouldn't be used.
   267  	//   "CUSTOMER_INITIATED_SUPPORT" - Customer made a request or raised an issue
   268  	// that required the principal to access customer data. `detail` is of the form
   269  	// ("#####" is the issue ID): - "Feedback Report: #####" - "Case Number: #####"
   270  	// - "Case ID: #####" - "E-PIN Reference: #####" - "Google-#####" - "T-#####"
   271  	//   "GOOGLE_INITIATED_SERVICE" - The principal accessed customer data in order
   272  	// to diagnose or resolve a suspected issue in services. Often this access is
   273  	// used to confirm that customers are not affected by a suspected service issue
   274  	// or to remediate a reversible system issue.
   275  	//   "GOOGLE_INITIATED_REVIEW" - Google initiated service for security, fraud,
   276  	// abuse, or compliance purposes.
   277  	//   "THIRD_PARTY_DATA_REQUEST" - The principal was compelled to access
   278  	// customer data in order to respond to a legal third party data request or
   279  	// process, including legal processes from customers themselves.
   280  	//   "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT" - The principal accessed customer
   281  	// data in order to diagnose or resolve a suspected issue in services or a
   282  	// known outage.
   283  	//   "CLOUD_INITIATED_ACCESS" - Similar to 'GOOGLE_INITIATED_SERVICE' or
   284  	// 'GOOGLE_INITIATED_REVIEW', but with universe agnostic naming. The principal
   285  	// accessed customer data in order to diagnose or resolve a suspected issue in
   286  	// services or a known outage, or for security, fraud, abuse, or compliance
   287  	// review purposes.
   288  	Type string `json:"type,omitempty"`
   289  	// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally
   290  	// include in API requests. By default, fields with empty or default values are
   291  	// omitted from API requests. See
   292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   293  	// details.
   294  	ForceSendFields []string `json:"-"`
   295  	// NullFields is a list of field names (e.g. "Detail") to include in API
   296  	// requests with the JSON null value. By default, fields with empty values are
   297  	// omitted from API requests. See
   298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   299  	NullFields []string `json:"-"`
   300  }
   301  
   302  func (s *AccessReason) MarshalJSON() ([]byte, error) {
   303  	type NoMethod AccessReason
   304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   305  }
   306  
   307  // ConnectionError: Information around the error that occurred if the
   308  // connection state is anything other than available or unspecified
   309  type ConnectionError struct {
   310  	// ErrorDomain: The error domain for the error
   311  	ErrorDomain string `json:"errorDomain,omitempty"`
   312  	// ErrorMessage: The error message for the error
   313  	ErrorMessage string `json:"errorMessage,omitempty"`
   314  	// ForceSendFields is a list of field names (e.g. "ErrorDomain") to
   315  	// unconditionally include in API requests. By default, fields with empty or
   316  	// default values are omitted from API requests. See
   317  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   318  	// details.
   319  	ForceSendFields []string `json:"-"`
   320  	// NullFields is a list of field names (e.g. "ErrorDomain") to include in API
   321  	// requests with the JSON null value. By default, fields with empty values are
   322  	// omitted from API requests. See
   323  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   324  	NullFields []string `json:"-"`
   325  }
   326  
   327  func (s *ConnectionError) MarshalJSON() ([]byte, error) {
   328  	type NoMethod ConnectionError
   329  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   330  }
   331  
   332  // Console: Remediation instructions to resolve violation via cloud console
   333  type Console struct {
   334  	// AdditionalLinks: Additional urls for more information about steps
   335  	AdditionalLinks []string `json:"additionalLinks,omitempty"`
   336  	// ConsoleUris: Link to console page where violations can be resolved
   337  	ConsoleUris []string `json:"consoleUris,omitempty"`
   338  	// Steps: Steps to resolve violation via cloud console
   339  	Steps []string `json:"steps,omitempty"`
   340  	// ForceSendFields is a list of field names (e.g. "AdditionalLinks") to
   341  	// unconditionally include in API requests. By default, fields with empty or
   342  	// default values are omitted from API requests. See
   343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   344  	// details.
   345  	ForceSendFields []string `json:"-"`
   346  	// NullFields is a list of field names (e.g. "AdditionalLinks") to include in
   347  	// API requests with the JSON null value. By default, fields with empty values
   348  	// are omitted from API requests. See
   349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   350  	NullFields []string `json:"-"`
   351  }
   352  
   353  func (s *Console) MarshalJSON() ([]byte, error) {
   354  	type NoMethod Console
   355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   356  }
   357  
   358  // Customer: Contains metadata around a Cloud Controls Partner Customer
   359  type Customer struct {
   360  	// CustomerOnboardingState: Container for customer onboarding steps
   361  	CustomerOnboardingState *CustomerOnboardingState `json:"customerOnboardingState,omitempty"`
   362  	// DisplayName: The customer organization's display name. E.g. "google.com".
   363  	DisplayName string `json:"displayName,omitempty"`
   364  	// IsOnboarded: Indicates whether a customer is fully onboarded
   365  	IsOnboarded bool `json:"isOnboarded,omitempty"`
   366  	// Name: Identifier. Format:
   367  	// `organizations/{organization}/locations/{location}/customers/{customer}`
   368  	Name string `json:"name,omitempty"`
   369  
   370  	// ServerResponse contains the HTTP response code and headers from the server.
   371  	googleapi.ServerResponse `json:"-"`
   372  	// ForceSendFields is a list of field names (e.g. "CustomerOnboardingState") to
   373  	// unconditionally include in API requests. By default, fields with empty or
   374  	// default values are omitted from API requests. See
   375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   376  	// details.
   377  	ForceSendFields []string `json:"-"`
   378  	// NullFields is a list of field names (e.g. "CustomerOnboardingState") to
   379  	// include in API requests with the JSON null value. By default, fields with
   380  	// empty values are omitted from API requests. See
   381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   382  	NullFields []string `json:"-"`
   383  }
   384  
   385  func (s *Customer) MarshalJSON() ([]byte, error) {
   386  	type NoMethod Customer
   387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   388  }
   389  
   390  // CustomerOnboardingState: Container for customer onboarding steps
   391  type CustomerOnboardingState struct {
   392  	// OnboardingSteps: List of customer onboarding steps
   393  	OnboardingSteps []*CustomerOnboardingStep `json:"onboardingSteps,omitempty"`
   394  	// ForceSendFields is a list of field names (e.g. "OnboardingSteps") to
   395  	// unconditionally include in API requests. By default, fields with empty or
   396  	// default values are omitted from API requests. See
   397  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   398  	// details.
   399  	ForceSendFields []string `json:"-"`
   400  	// NullFields is a list of field names (e.g. "OnboardingSteps") to include in
   401  	// API requests with the JSON null value. By default, fields with empty values
   402  	// are omitted from API requests. See
   403  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   404  	NullFields []string `json:"-"`
   405  }
   406  
   407  func (s *CustomerOnboardingState) MarshalJSON() ([]byte, error) {
   408  	type NoMethod CustomerOnboardingState
   409  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   410  }
   411  
   412  // CustomerOnboardingStep: Container for customer onboarding information
   413  type CustomerOnboardingStep struct {
   414  	// CompletionState: Output only. Current state of the step
   415  	//
   416  	// Possible values:
   417  	//   "COMPLETION_STATE_UNSPECIFIED" - Unspecified completion state.
   418  	//   "PENDING" - Task started (has start date) but not yet completed.
   419  	//   "SUCCEEDED" - Succeeded state.
   420  	//   "FAILED" - Failed state.
   421  	//   "NOT_APPLICABLE" - Not applicable state.
   422  	CompletionState string `json:"completionState,omitempty"`
   423  	// CompletionTime: The completion time of the onboarding step
   424  	CompletionTime string `json:"completionTime,omitempty"`
   425  	// StartTime: The starting time of the onboarding step
   426  	StartTime string `json:"startTime,omitempty"`
   427  	// Step: The onboarding step
   428  	//
   429  	// Possible values:
   430  	//   "STEP_UNSPECIFIED" - Unspecified step
   431  	//   "KAJ_ENROLLMENT" - KAJ Enrollment
   432  	//   "CUSTOMER_ENVIRONMENT" - Customer Environment
   433  	Step string `json:"step,omitempty"`
   434  	// ForceSendFields is a list of field names (e.g. "CompletionState") to
   435  	// unconditionally include in API requests. By default, fields with empty or
   436  	// default values are omitted from API requests. See
   437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   438  	// details.
   439  	ForceSendFields []string `json:"-"`
   440  	// NullFields is a list of field names (e.g. "CompletionState") to include in
   441  	// API requests with the JSON null value. By default, fields with empty values
   442  	// are omitted from API requests. See
   443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   444  	NullFields []string `json:"-"`
   445  }
   446  
   447  func (s *CustomerOnboardingStep) MarshalJSON() ([]byte, error) {
   448  	type NoMethod CustomerOnboardingStep
   449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   450  }
   451  
   452  // EkmConnection: Details about the EKM connection
   453  type EkmConnection struct {
   454  	// ConnectionError: The connection error that occurred if any
   455  	ConnectionError *ConnectionError `json:"connectionError,omitempty"`
   456  	// ConnectionName: Resource name of the EKM connection in the format:
   457  	// projects/{project}/locations/{location}/ekmConnections/{ekm_connection}
   458  	ConnectionName string `json:"connectionName,omitempty"`
   459  	// ConnectionState: Output only. The connection state
   460  	//
   461  	// Possible values:
   462  	//   "CONNECTION_STATE_UNSPECIFIED" - Unspecified EKM connection state
   463  	//   "AVAILABLE" - Available EKM connection state
   464  	//   "NOT_AVAILABLE" - Not available EKM connection state
   465  	//   "ERROR" - Error EKM connection state
   466  	//   "PERMISSION_DENIED" - Permission denied EKM connection state
   467  	ConnectionState string `json:"connectionState,omitempty"`
   468  	// ForceSendFields is a list of field names (e.g. "ConnectionError") to
   469  	// unconditionally include in API requests. By default, fields with empty or
   470  	// default values are omitted from API requests. See
   471  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   472  	// details.
   473  	ForceSendFields []string `json:"-"`
   474  	// NullFields is a list of field names (e.g. "ConnectionError") to include in
   475  	// API requests with the JSON null value. By default, fields with empty values
   476  	// are omitted from API requests. See
   477  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   478  	NullFields []string `json:"-"`
   479  }
   480  
   481  func (s *EkmConnection) MarshalJSON() ([]byte, error) {
   482  	type NoMethod EkmConnection
   483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   484  }
   485  
   486  // EkmConnections: The EKM connections associated with a workload
   487  type EkmConnections struct {
   488  	// EkmConnections: The EKM connections associated with the workload
   489  	EkmConnections []*EkmConnection `json:"ekmConnections,omitempty"`
   490  	// Name: Identifier. Format:
   491  	// `organizations/{organization}/locations/{location}/customers/{customer}/workl
   492  	// oads/{workload}/ekmConnections`
   493  	Name string `json:"name,omitempty"`
   494  
   495  	// ServerResponse contains the HTTP response code and headers from the server.
   496  	googleapi.ServerResponse `json:"-"`
   497  	// ForceSendFields is a list of field names (e.g. "EkmConnections") to
   498  	// unconditionally include in API requests. By default, fields with empty or
   499  	// default values are omitted from API requests. See
   500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   501  	// details.
   502  	ForceSendFields []string `json:"-"`
   503  	// NullFields is a list of field names (e.g. "EkmConnections") to include in
   504  	// API requests with the JSON null value. By default, fields with empty values
   505  	// are omitted from API requests. See
   506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   507  	NullFields []string `json:"-"`
   508  }
   509  
   510  func (s *EkmConnections) MarshalJSON() ([]byte, error) {
   511  	type NoMethod EkmConnections
   512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   513  }
   514  
   515  // EkmMetadata: Holds information needed by Mudbray to use partner EKMs for
   516  // workloads.
   517  type EkmMetadata struct {
   518  	// EkmEndpointUri: Endpoint for sending requests to the EKM for key
   519  	// provisioning during Assured Workload creation.
   520  	EkmEndpointUri string `json:"ekmEndpointUri,omitempty"`
   521  	// EkmSolution: The Cloud EKM partner.
   522  	//
   523  	// Possible values:
   524  	//   "EKM_SOLUTION_UNSPECIFIED" - Unspecified EKM solution
   525  	//   "FORTANIX" - EKM Partner Fortanix
   526  	//   "FUTUREX" - EKM Partner FutureX
   527  	//   "THALES" - EKM Partner Thales
   528  	//   "VIRTRU" - EKM Partner Virtu
   529  	EkmSolution string `json:"ekmSolution,omitempty"`
   530  	// ForceSendFields is a list of field names (e.g. "EkmEndpointUri") to
   531  	// unconditionally include in API requests. By default, fields with empty or
   532  	// default values are omitted from API requests. See
   533  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   534  	// details.
   535  	ForceSendFields []string `json:"-"`
   536  	// NullFields is a list of field names (e.g. "EkmEndpointUri") to include in
   537  	// API requests with the JSON null value. By default, fields with empty values
   538  	// are omitted from API requests. See
   539  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   540  	NullFields []string `json:"-"`
   541  }
   542  
   543  func (s *EkmMetadata) MarshalJSON() ([]byte, error) {
   544  	type NoMethod EkmMetadata
   545  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   546  }
   547  
   548  // Gcloud: Remediation instructions to resolve violation via gcloud cli
   549  type Gcloud struct {
   550  	// AdditionalLinks: Additional urls for more information about steps
   551  	AdditionalLinks []string `json:"additionalLinks,omitempty"`
   552  	// GcloudCommands: Gcloud command to resolve violation
   553  	GcloudCommands []string `json:"gcloudCommands,omitempty"`
   554  	// Steps: Steps to resolve violation via gcloud cli
   555  	Steps []string `json:"steps,omitempty"`
   556  	// ForceSendFields is a list of field names (e.g. "AdditionalLinks") to
   557  	// unconditionally include in API requests. By default, fields with empty or
   558  	// default values are omitted from API requests. See
   559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   560  	// details.
   561  	ForceSendFields []string `json:"-"`
   562  	// NullFields is a list of field names (e.g. "AdditionalLinks") to include in
   563  	// API requests with the JSON null value. By default, fields with empty values
   564  	// are omitted from API requests. See
   565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   566  	NullFields []string `json:"-"`
   567  }
   568  
   569  func (s *Gcloud) MarshalJSON() ([]byte, error) {
   570  	type NoMethod Gcloud
   571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   572  }
   573  
   574  // Instructions: Instructions to remediate violation
   575  type Instructions struct {
   576  	// ConsoleInstructions: Remediation instructions to resolve violation via cloud
   577  	// console
   578  	ConsoleInstructions *Console `json:"consoleInstructions,omitempty"`
   579  	// GcloudInstructions: Remediation instructions to resolve violation via gcloud
   580  	// cli
   581  	GcloudInstructions *Gcloud `json:"gcloudInstructions,omitempty"`
   582  	// ForceSendFields is a list of field names (e.g. "ConsoleInstructions") to
   583  	// unconditionally include in API requests. By default, fields with empty or
   584  	// default values are omitted from API requests. See
   585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   586  	// details.
   587  	ForceSendFields []string `json:"-"`
   588  	// NullFields is a list of field names (e.g. "ConsoleInstructions") to include
   589  	// in API requests with the JSON null value. By default, fields with empty
   590  	// values are omitted from API requests. See
   591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   592  	NullFields []string `json:"-"`
   593  }
   594  
   595  func (s *Instructions) MarshalJSON() ([]byte, error) {
   596  	type NoMethod Instructions
   597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   598  }
   599  
   600  // ListAccessApprovalRequestsResponse: Response message for list access
   601  // requests.
   602  type ListAccessApprovalRequestsResponse struct {
   603  	// AccessApprovalRequests: List of access approval requests
   604  	AccessApprovalRequests []*AccessApprovalRequest `json:"accessApprovalRequests,omitempty"`
   605  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
   606  	// page. If this field is omitted, there are no subsequent pages.
   607  	NextPageToken string `json:"nextPageToken,omitempty"`
   608  	// Unreachable: Locations that could not be reached.
   609  	Unreachable []string `json:"unreachable,omitempty"`
   610  
   611  	// ServerResponse contains the HTTP response code and headers from the server.
   612  	googleapi.ServerResponse `json:"-"`
   613  	// ForceSendFields is a list of field names (e.g. "AccessApprovalRequests") to
   614  	// unconditionally include in API requests. By default, fields with empty or
   615  	// default values are omitted from API requests. See
   616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   617  	// details.
   618  	ForceSendFields []string `json:"-"`
   619  	// NullFields is a list of field names (e.g. "AccessApprovalRequests") to
   620  	// include in API requests with the JSON null value. By default, fields with
   621  	// empty values are omitted from API requests. See
   622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   623  	NullFields []string `json:"-"`
   624  }
   625  
   626  func (s *ListAccessApprovalRequestsResponse) MarshalJSON() ([]byte, error) {
   627  	type NoMethod ListAccessApprovalRequestsResponse
   628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   629  }
   630  
   631  // ListCustomersResponse: Response message for list customer Customers requests
   632  type ListCustomersResponse struct {
   633  	// Customers: List of customers
   634  	Customers []*Customer `json:"customers,omitempty"`
   635  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
   636  	// page. If this field is omitted, there are no subsequent pages.
   637  	NextPageToken string `json:"nextPageToken,omitempty"`
   638  	// Unreachable: Locations that could not be reached.
   639  	Unreachable []string `json:"unreachable,omitempty"`
   640  
   641  	// ServerResponse contains the HTTP response code and headers from the server.
   642  	googleapi.ServerResponse `json:"-"`
   643  	// ForceSendFields is a list of field names (e.g. "Customers") to
   644  	// unconditionally include in API requests. By default, fields with empty or
   645  	// default values are omitted from API requests. See
   646  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   647  	// details.
   648  	ForceSendFields []string `json:"-"`
   649  	// NullFields is a list of field names (e.g. "Customers") to include in API
   650  	// requests with the JSON null value. By default, fields with empty values are
   651  	// omitted from API requests. See
   652  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   653  	NullFields []string `json:"-"`
   654  }
   655  
   656  func (s *ListCustomersResponse) MarshalJSON() ([]byte, error) {
   657  	type NoMethod ListCustomersResponse
   658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   659  }
   660  
   661  // ListViolationsResponse: Response message for list customer violation
   662  // requests
   663  type ListViolationsResponse struct {
   664  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
   665  	// page. If this field is omitted, there are no subsequent pages.
   666  	NextPageToken string `json:"nextPageToken,omitempty"`
   667  	// Unreachable: Workloads that could not be reached due to permission errors or
   668  	// any other error. Ref: https://google.aip.dev/217
   669  	Unreachable []string `json:"unreachable,omitempty"`
   670  	// Violations: List of violation
   671  	Violations []*Violation `json:"violations,omitempty"`
   672  
   673  	// ServerResponse contains the HTTP response code and headers from the server.
   674  	googleapi.ServerResponse `json:"-"`
   675  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   676  	// unconditionally include in API requests. By default, fields with empty or
   677  	// default values are omitted from API requests. See
   678  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   679  	// details.
   680  	ForceSendFields []string `json:"-"`
   681  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   682  	// requests with the JSON null value. By default, fields with empty values are
   683  	// omitted from API requests. See
   684  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   685  	NullFields []string `json:"-"`
   686  }
   687  
   688  func (s *ListViolationsResponse) MarshalJSON() ([]byte, error) {
   689  	type NoMethod ListViolationsResponse
   690  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   691  }
   692  
   693  // ListWorkloadsResponse: Response message for list customer workloads
   694  // requests.
   695  type ListWorkloadsResponse struct {
   696  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
   697  	// page. If this field is omitted, there are no subsequent pages.
   698  	NextPageToken string `json:"nextPageToken,omitempty"`
   699  	// Unreachable: Locations that could not be reached.
   700  	Unreachable []string `json:"unreachable,omitempty"`
   701  	// Workloads: List of customer workloads
   702  	Workloads []*Workload `json:"workloads,omitempty"`
   703  
   704  	// ServerResponse contains the HTTP response code and headers from the server.
   705  	googleapi.ServerResponse `json:"-"`
   706  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   707  	// unconditionally include in API requests. By default, fields with empty or
   708  	// default values are omitted from API requests. See
   709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   710  	// details.
   711  	ForceSendFields []string `json:"-"`
   712  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   713  	// requests with the JSON null value. By default, fields with empty values are
   714  	// omitted from API requests. See
   715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   716  	NullFields []string `json:"-"`
   717  }
   718  
   719  func (s *ListWorkloadsResponse) MarshalJSON() ([]byte, error) {
   720  	type NoMethod ListWorkloadsResponse
   721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   722  }
   723  
   724  // OperationMetadata: Represents the metadata of the long-running operation.
   725  type OperationMetadata struct {
   726  	// ApiVersion: Output only. API version used to start the operation.
   727  	ApiVersion string `json:"apiVersion,omitempty"`
   728  	// CreateTime: Output only. The time the operation was created.
   729  	CreateTime string `json:"createTime,omitempty"`
   730  	// EndTime: Output only. The time the operation finished running.
   731  	EndTime string `json:"endTime,omitempty"`
   732  	// RequestedCancellation: Output only. Identifies whether the user has
   733  	// requested cancellation of the operation. Operations that have been cancelled
   734  	// successfully have Operation.error value with a google.rpc.Status.code of 1,
   735  	// corresponding to `Code.CANCELLED`.
   736  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
   737  	// StatusMessage: Output only. Human-readable status of the operation, if any.
   738  	StatusMessage string `json:"statusMessage,omitempty"`
   739  	// Target: Output only. Server-defined resource path for the target of the
   740  	// operation.
   741  	Target string `json:"target,omitempty"`
   742  	// Verb: Output only. Name of the verb executed by the operation.
   743  	Verb string `json:"verb,omitempty"`
   744  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
   745  	// unconditionally include in API requests. By default, fields with empty or
   746  	// default values are omitted from API requests. See
   747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   748  	// details.
   749  	ForceSendFields []string `json:"-"`
   750  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
   751  	// requests with the JSON null value. By default, fields with empty values are
   752  	// omitted from API requests. See
   753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   754  	NullFields []string `json:"-"`
   755  }
   756  
   757  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
   758  	type NoMethod OperationMetadata
   759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   760  }
   761  
   762  // Partner: Message describing Partner resource
   763  type Partner struct {
   764  	// CreateTime: Output only. Time the resource was created
   765  	CreateTime string `json:"createTime,omitempty"`
   766  	// EkmSolutions: List of Google Cloud supported EKM partners supported by the
   767  	// partner
   768  	EkmSolutions []*EkmMetadata `json:"ekmSolutions,omitempty"`
   769  	// Name: Identifier. The resource name of the partner. Format:
   770  	// `organizations/{organization}/locations/{location}/partner` Example:
   771  	// "organizations/123456/locations/us-central1/partner"
   772  	Name string `json:"name,omitempty"`
   773  	// OperatedCloudRegions: List of Google Cloud regions that the partner sells
   774  	// services to customers. Valid Google Cloud regions found here:
   775  	// https://cloud.google.com/compute/docs/regions-zones
   776  	OperatedCloudRegions []string `json:"operatedCloudRegions,omitempty"`
   777  	// PartnerProjectId: Google Cloud project ID in the partner's Google Cloud
   778  	// organization for receiving enhanced Logs for Partners.
   779  	PartnerProjectId string `json:"partnerProjectId,omitempty"`
   780  	// Skus: List of SKUs the partner is offering
   781  	Skus []*Sku `json:"skus,omitempty"`
   782  	// UpdateTime: Output only. The last time the resource was updated
   783  	UpdateTime string `json:"updateTime,omitempty"`
   784  
   785  	// ServerResponse contains the HTTP response code and headers from the server.
   786  	googleapi.ServerResponse `json:"-"`
   787  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   788  	// unconditionally include in API requests. By default, fields with empty or
   789  	// default values are omitted from API requests. See
   790  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   791  	// details.
   792  	ForceSendFields []string `json:"-"`
   793  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   794  	// requests with the JSON null value. By default, fields with empty values are
   795  	// omitted from API requests. See
   796  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   797  	NullFields []string `json:"-"`
   798  }
   799  
   800  func (s *Partner) MarshalJSON() ([]byte, error) {
   801  	type NoMethod Partner
   802  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   803  }
   804  
   805  // PartnerPermissions: The permissions granted to the partner for a workload
   806  type PartnerPermissions struct {
   807  	// Name: Identifier. Format:
   808  	// `organizations/{organization}/locations/{location}/customers/{customer}/workl
   809  	// oads/{workload}/partnerPermissions`
   810  	Name string `json:"name,omitempty"`
   811  	// PartnerPermissions: The partner permissions granted for the workload
   812  	//
   813  	// Possible values:
   814  	//   "PERMISSION_UNSPECIFIED" - Unspecified partner permission
   815  	//   "ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS" - Permission for Access
   816  	// Transparency and emergency logs
   817  	//   "ASSURED_WORKLOADS_MONITORING" - Permission for Assured Workloads
   818  	// monitoring violations
   819  	//   "ACCESS_APPROVAL_REQUESTS" - Permission for Access Approval requests
   820  	//   "ASSURED_WORKLOADS_EKM_CONNECTION_STATUS" - Permission for External Key
   821  	// Manager connection status
   822  	PartnerPermissions []string `json:"partnerPermissions,omitempty"`
   823  
   824  	// ServerResponse contains the HTTP response code and headers from the server.
   825  	googleapi.ServerResponse `json:"-"`
   826  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   827  	// include in API requests. By default, fields with empty or default values are
   828  	// omitted from API requests. See
   829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   830  	// details.
   831  	ForceSendFields []string `json:"-"`
   832  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   833  	// with the JSON null value. By default, fields with empty values are omitted
   834  	// from API requests. See
   835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   836  	NullFields []string `json:"-"`
   837  }
   838  
   839  func (s *PartnerPermissions) MarshalJSON() ([]byte, error) {
   840  	type NoMethod PartnerPermissions
   841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   842  }
   843  
   844  // Remediation: Represents remediation guidance to resolve compliance violation
   845  // for AssuredWorkload
   846  type Remediation struct {
   847  	// CompliantValues: Values that can resolve the violation For example: for list
   848  	// org policy violations, this will either be the list of allowed or denied
   849  	// values
   850  	CompliantValues []string `json:"compliantValues,omitempty"`
   851  	// Instructions: Required. Remediation instructions to resolve violations
   852  	Instructions *Instructions `json:"instructions,omitempty"`
   853  	// RemediationType: Output only. Remediation type based on the type of org
   854  	// policy values violated
   855  	//
   856  	// Possible values:
   857  	//   "REMEDIATION_TYPE_UNSPECIFIED" - Unspecified remediation type
   858  	//   "REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION" - Remediation type for boolean
   859  	// org policy
   860  	//   "REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION" - Remediation type
   861  	// for list org policy which have allowed values in the monitoring rule
   862  	//   "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION" - Remediation type
   863  	// for list org policy which have denied values in the monitoring rule
   864  	//   "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION" -
   865  	// Remediation type for gcp.restrictCmekCryptoKeyProjects
   866  	//   "REMEDIATION_RESOURCE_VIOLATION" - Remediation type for resource
   867  	// violation.
   868  	RemediationType string `json:"remediationType,omitempty"`
   869  	// ForceSendFields is a list of field names (e.g. "CompliantValues") to
   870  	// unconditionally include in API requests. By default, fields with empty or
   871  	// default values are omitted from API requests. See
   872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   873  	// details.
   874  	ForceSendFields []string `json:"-"`
   875  	// NullFields is a list of field names (e.g. "CompliantValues") to include in
   876  	// API requests with the JSON null value. By default, fields with empty values
   877  	// are omitted from API requests. See
   878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   879  	NullFields []string `json:"-"`
   880  }
   881  
   882  func (s *Remediation) MarshalJSON() ([]byte, error) {
   883  	type NoMethod Remediation
   884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   885  }
   886  
   887  // Sku: Represents the SKU a partner owns inside Google Cloud to sell to
   888  // customers.
   889  type Sku struct {
   890  	// DisplayName: Display name of the product identified by the SKU. A partner
   891  	// may want to show partner branded names for their offerings such as local
   892  	// sovereign cloud solutions.
   893  	DisplayName string `json:"displayName,omitempty"`
   894  	// Id: Argentum product SKU, that is associated with the partner offerings to
   895  	// customers used by Syntro for billing purposes. SKUs can represent resold
   896  	// Google products or support services.
   897  	Id string `json:"id,omitempty"`
   898  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
   899  	// unconditionally include in API requests. By default, fields with empty or
   900  	// default values are omitted from API requests. See
   901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   902  	// details.
   903  	ForceSendFields []string `json:"-"`
   904  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
   905  	// requests with the JSON null value. By default, fields with empty values are
   906  	// omitted from API requests. See
   907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   908  	NullFields []string `json:"-"`
   909  }
   910  
   911  func (s *Sku) MarshalJSON() ([]byte, error) {
   912  	type NoMethod Sku
   913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   914  }
   915  
   916  // Violation: Details of resource Violation
   917  type Violation struct {
   918  	// BeginTime: Output only. Time of the event which triggered the Violation.
   919  	BeginTime string `json:"beginTime,omitempty"`
   920  	// Category: Output only. Category under which this violation is mapped. e.g.
   921  	// Location, Service Usage, Access, Encryption, etc.
   922  	Category string `json:"category,omitempty"`
   923  	// Description: Output only. Description for the Violation. e.g. OrgPolicy
   924  	// gcp.resourceLocations has non compliant value.
   925  	Description string `json:"description,omitempty"`
   926  	// FolderId: The folder_id of the violation
   927  	FolderId int64 `json:"folderId,omitempty,string"`
   928  	// Name: Identifier. Format:
   929  	// `organizations/{organization}/locations/{location}/customers/{customer}/workl
   930  	// oads/{workload}/violations/{violation}`
   931  	Name string `json:"name,omitempty"`
   932  	// NonCompliantOrgPolicy: Output only. Immutable. Name of the OrgPolicy which
   933  	// was modified with non-compliant change and resulted this violation. Format:
   934  	// `projects/{project_number}/policies/{constraint_name}`
   935  	// `folders/{folder_id}/policies/{constraint_name}`
   936  	// `organizations/{organization_id}/policies/{constraint_name}`
   937  	NonCompliantOrgPolicy string `json:"nonCompliantOrgPolicy,omitempty"`
   938  	// Remediation: Output only. Compliance violation remediation
   939  	Remediation *Remediation `json:"remediation,omitempty"`
   940  	// ResolveTime: Output only. Time of the event which fixed the Violation. If
   941  	// the violation is ACTIVE this will be empty.
   942  	ResolveTime string `json:"resolveTime,omitempty"`
   943  	// State: Output only. State of the violation
   944  	//
   945  	// Possible values:
   946  	//   "STATE_UNSPECIFIED" - Unspecified state.
   947  	//   "RESOLVED" - Violation is resolved.
   948  	//   "UNRESOLVED" - Violation is Unresolved
   949  	//   "EXCEPTION" - Violation is Exception
   950  	State string `json:"state,omitempty"`
   951  	// UpdateTime: Output only. The last time when the Violation record was
   952  	// updated.
   953  	UpdateTime string `json:"updateTime,omitempty"`
   954  
   955  	// ServerResponse contains the HTTP response code and headers from the server.
   956  	googleapi.ServerResponse `json:"-"`
   957  	// ForceSendFields is a list of field names (e.g. "BeginTime") to
   958  	// unconditionally include in API requests. By default, fields with empty or
   959  	// default values are omitted from API requests. See
   960  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   961  	// details.
   962  	ForceSendFields []string `json:"-"`
   963  	// NullFields is a list of field names (e.g. "BeginTime") to include in API
   964  	// requests with the JSON null value. By default, fields with empty values are
   965  	// omitted from API requests. See
   966  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   967  	NullFields []string `json:"-"`
   968  }
   969  
   970  func (s *Violation) MarshalJSON() ([]byte, error) {
   971  	type NoMethod Violation
   972  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   973  }
   974  
   975  // Workload: Contains metadata around the Workload resource
   976  // (https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/Workload)
   977  // in the Assured Workloads API.
   978  type Workload struct {
   979  	// CreateTime: Output only. Time the resource was created.
   980  	CreateTime string `json:"createTime,omitempty"`
   981  	// Folder: Output only. The name of container folder of the assured workload
   982  	Folder string `json:"folder,omitempty"`
   983  	// FolderId: Output only. Folder id this workload is associated with
   984  	FolderId int64 `json:"folderId,omitempty,string"`
   985  	// IsOnboarded: Indicates whether a workload is fully onboarded.
   986  	IsOnboarded bool `json:"isOnboarded,omitempty"`
   987  	// KeyManagementProjectId: The project id of the key management project for the
   988  	// workload
   989  	KeyManagementProjectId string `json:"keyManagementProjectId,omitempty"`
   990  	// Location: The Google Cloud location of the workload
   991  	Location string `json:"location,omitempty"`
   992  	// Name: Identifier. Format:
   993  	// `organizations/{organization}/locations/{location}/customers/{customer}/workl
   994  	// oads/{workload}`
   995  	Name string `json:"name,omitempty"`
   996  	// Partner: Partner associated with this workload.
   997  	//
   998  	// Possible values:
   999  	//   "PARTNER_UNSPECIFIED" - Unknown Partner.
  1000  	//   "PARTNER_LOCAL_CONTROLS_BY_S3NS" - Enum representing S3NS (Thales)
  1001  	// partner.
  1002  	//   "PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS" - Enum representing T_SYSTEM
  1003  	// (TSI) partner.
  1004  	//   "PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT" - Enum representing
  1005  	// SIA_MINSAIT (Indra) partner.
  1006  	//   "PARTNER_SOVEREIGN_CONTROLS_BY_PSN" - Enum representing PSN (TIM) partner.
  1007  	//   "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT" - Enum representing CNTXT (Kingdom
  1008  	// of Saudi Arabia) partner.
  1009  	//   "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM" - Enum representing CNXT
  1010  	// (Kingdom of Saudi Arabia) partner offering without EKM provisioning.
  1011  	Partner string `json:"partner,omitempty"`
  1012  	// WorkloadOnboardingState: Container for workload onboarding steps.
  1013  	WorkloadOnboardingState *WorkloadOnboardingState `json:"workloadOnboardingState,omitempty"`
  1014  
  1015  	// ServerResponse contains the HTTP response code and headers from the server.
  1016  	googleapi.ServerResponse `json:"-"`
  1017  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1018  	// unconditionally include in API requests. By default, fields with empty or
  1019  	// default values are omitted from API requests. See
  1020  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1021  	// details.
  1022  	ForceSendFields []string `json:"-"`
  1023  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1024  	// requests with the JSON null value. By default, fields with empty values are
  1025  	// omitted from API requests. See
  1026  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1027  	NullFields []string `json:"-"`
  1028  }
  1029  
  1030  func (s *Workload) MarshalJSON() ([]byte, error) {
  1031  	type NoMethod Workload
  1032  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1033  }
  1034  
  1035  // WorkloadOnboardingState: Container for workload onboarding steps.
  1036  type WorkloadOnboardingState struct {
  1037  	// OnboardingSteps: List of workload onboarding steps.
  1038  	OnboardingSteps []*WorkloadOnboardingStep `json:"onboardingSteps,omitempty"`
  1039  	// ForceSendFields is a list of field names (e.g. "OnboardingSteps") to
  1040  	// unconditionally include in API requests. By default, fields with empty or
  1041  	// default values are omitted from API requests. See
  1042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1043  	// details.
  1044  	ForceSendFields []string `json:"-"`
  1045  	// NullFields is a list of field names (e.g. "OnboardingSteps") to include in
  1046  	// API requests with the JSON null value. By default, fields with empty values
  1047  	// are omitted from API requests. See
  1048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1049  	NullFields []string `json:"-"`
  1050  }
  1051  
  1052  func (s *WorkloadOnboardingState) MarshalJSON() ([]byte, error) {
  1053  	type NoMethod WorkloadOnboardingState
  1054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1055  }
  1056  
  1057  // WorkloadOnboardingStep: Container for workload onboarding information.
  1058  type WorkloadOnboardingStep struct {
  1059  	// CompletionState: Output only. The completion state of the onboarding step.
  1060  	//
  1061  	// Possible values:
  1062  	//   "COMPLETION_STATE_UNSPECIFIED" - Unspecified completion state.
  1063  	//   "PENDING" - Task started (has start date) but not yet completed.
  1064  	//   "SUCCEEDED" - Succeeded state.
  1065  	//   "FAILED" - Failed state.
  1066  	//   "NOT_APPLICABLE" - Not applicable state.
  1067  	CompletionState string `json:"completionState,omitempty"`
  1068  	// CompletionTime: The completion time of the onboarding step.
  1069  	CompletionTime string `json:"completionTime,omitempty"`
  1070  	// StartTime: The starting time of the onboarding step.
  1071  	StartTime string `json:"startTime,omitempty"`
  1072  	// Step: The onboarding step.
  1073  	//
  1074  	// Possible values:
  1075  	//   "STEP_UNSPECIFIED" - Unspecified step.
  1076  	//   "EKM_PROVISIONED" - EKM Provisioned step.
  1077  	//   "SIGNED_ACCESS_APPROVAL_CONFIGURED" - Signed Access Approval step.
  1078  	Step string `json:"step,omitempty"`
  1079  	// ForceSendFields is a list of field names (e.g. "CompletionState") to
  1080  	// unconditionally include in API requests. By default, fields with empty or
  1081  	// default values are omitted from API requests. See
  1082  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1083  	// details.
  1084  	ForceSendFields []string `json:"-"`
  1085  	// NullFields is a list of field names (e.g. "CompletionState") to include in
  1086  	// API requests with the JSON null value. By default, fields with empty values
  1087  	// are omitted from API requests. See
  1088  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1089  	NullFields []string `json:"-"`
  1090  }
  1091  
  1092  func (s *WorkloadOnboardingStep) MarshalJSON() ([]byte, error) {
  1093  	type NoMethod WorkloadOnboardingStep
  1094  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1095  }
  1096  
  1097  type OrganizationsLocationsGetPartnerCall struct {
  1098  	s            *Service
  1099  	name         string
  1100  	urlParams_   gensupport.URLParams
  1101  	ifNoneMatch_ string
  1102  	ctx_         context.Context
  1103  	header_      http.Header
  1104  }
  1105  
  1106  // GetPartner: Get details of a Partner.
  1107  //
  1108  // - name: Format: `organizations/{organization}/locations/{location}/partner`.
  1109  func (r *OrganizationsLocationsService) GetPartner(name string) *OrganizationsLocationsGetPartnerCall {
  1110  	c := &OrganizationsLocationsGetPartnerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1111  	c.name = name
  1112  	return c
  1113  }
  1114  
  1115  // Fields allows partial responses to be retrieved. See
  1116  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1117  // details.
  1118  func (c *OrganizationsLocationsGetPartnerCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGetPartnerCall {
  1119  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1120  	return c
  1121  }
  1122  
  1123  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1124  // object's ETag matches the given value. This is useful for getting updates
  1125  // only after the object has changed since the last request.
  1126  func (c *OrganizationsLocationsGetPartnerCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGetPartnerCall {
  1127  	c.ifNoneMatch_ = entityTag
  1128  	return c
  1129  }
  1130  
  1131  // Context sets the context to be used in this call's Do method.
  1132  func (c *OrganizationsLocationsGetPartnerCall) Context(ctx context.Context) *OrganizationsLocationsGetPartnerCall {
  1133  	c.ctx_ = ctx
  1134  	return c
  1135  }
  1136  
  1137  // Header returns a http.Header that can be modified by the caller to add
  1138  // headers to the request.
  1139  func (c *OrganizationsLocationsGetPartnerCall) Header() http.Header {
  1140  	if c.header_ == nil {
  1141  		c.header_ = make(http.Header)
  1142  	}
  1143  	return c.header_
  1144  }
  1145  
  1146  func (c *OrganizationsLocationsGetPartnerCall) doRequest(alt string) (*http.Response, error) {
  1147  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1148  	if c.ifNoneMatch_ != "" {
  1149  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1150  	}
  1151  	var body io.Reader = nil
  1152  	c.urlParams_.Set("alt", alt)
  1153  	c.urlParams_.Set("prettyPrint", "false")
  1154  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
  1155  	urls += "?" + c.urlParams_.Encode()
  1156  	req, err := http.NewRequest("GET", urls, body)
  1157  	if err != nil {
  1158  		return nil, err
  1159  	}
  1160  	req.Header = reqHeaders
  1161  	googleapi.Expand(req.URL, map[string]string{
  1162  		"name": c.name,
  1163  	})
  1164  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1165  }
  1166  
  1167  // Do executes the "cloudcontrolspartner.organizations.locations.getPartner" call.
  1168  // Any non-2xx status code is an error. Response headers are in either
  1169  // *Partner.ServerResponse.Header or (if a response was returned at all) in
  1170  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1171  // whether the returned error was because http.StatusNotModified was returned.
  1172  func (c *OrganizationsLocationsGetPartnerCall) Do(opts ...googleapi.CallOption) (*Partner, error) {
  1173  	gensupport.SetOptions(c.urlParams_, opts...)
  1174  	res, err := c.doRequest("json")
  1175  	if res != nil && res.StatusCode == http.StatusNotModified {
  1176  		if res.Body != nil {
  1177  			res.Body.Close()
  1178  		}
  1179  		return nil, gensupport.WrapError(&googleapi.Error{
  1180  			Code:   res.StatusCode,
  1181  			Header: res.Header,
  1182  		})
  1183  	}
  1184  	if err != nil {
  1185  		return nil, err
  1186  	}
  1187  	defer googleapi.CloseBody(res)
  1188  	if err := googleapi.CheckResponse(res); err != nil {
  1189  		return nil, gensupport.WrapError(err)
  1190  	}
  1191  	ret := &Partner{
  1192  		ServerResponse: googleapi.ServerResponse{
  1193  			Header:         res.Header,
  1194  			HTTPStatusCode: res.StatusCode,
  1195  		},
  1196  	}
  1197  	target := &ret
  1198  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1199  		return nil, err
  1200  	}
  1201  	return ret, nil
  1202  }
  1203  
  1204  type OrganizationsLocationsCustomersGetCall struct {
  1205  	s            *Service
  1206  	name         string
  1207  	urlParams_   gensupport.URLParams
  1208  	ifNoneMatch_ string
  1209  	ctx_         context.Context
  1210  	header_      http.Header
  1211  }
  1212  
  1213  // Get: Gets details of a single customer
  1214  //
  1215  //   - name: Format:
  1216  //     `organizations/{organization}/locations/{location}/customers/{customer}`.
  1217  func (r *OrganizationsLocationsCustomersService) Get(name string) *OrganizationsLocationsCustomersGetCall {
  1218  	c := &OrganizationsLocationsCustomersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1219  	c.name = name
  1220  	return c
  1221  }
  1222  
  1223  // Fields allows partial responses to be retrieved. See
  1224  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1225  // details.
  1226  func (c *OrganizationsLocationsCustomersGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersGetCall {
  1227  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1228  	return c
  1229  }
  1230  
  1231  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1232  // object's ETag matches the given value. This is useful for getting updates
  1233  // only after the object has changed since the last request.
  1234  func (c *OrganizationsLocationsCustomersGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersGetCall {
  1235  	c.ifNoneMatch_ = entityTag
  1236  	return c
  1237  }
  1238  
  1239  // Context sets the context to be used in this call's Do method.
  1240  func (c *OrganizationsLocationsCustomersGetCall) Context(ctx context.Context) *OrganizationsLocationsCustomersGetCall {
  1241  	c.ctx_ = ctx
  1242  	return c
  1243  }
  1244  
  1245  // Header returns a http.Header that can be modified by the caller to add
  1246  // headers to the request.
  1247  func (c *OrganizationsLocationsCustomersGetCall) Header() http.Header {
  1248  	if c.header_ == nil {
  1249  		c.header_ = make(http.Header)
  1250  	}
  1251  	return c.header_
  1252  }
  1253  
  1254  func (c *OrganizationsLocationsCustomersGetCall) doRequest(alt string) (*http.Response, error) {
  1255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1256  	if c.ifNoneMatch_ != "" {
  1257  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1258  	}
  1259  	var body io.Reader = nil
  1260  	c.urlParams_.Set("alt", alt)
  1261  	c.urlParams_.Set("prettyPrint", "false")
  1262  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
  1263  	urls += "?" + c.urlParams_.Encode()
  1264  	req, err := http.NewRequest("GET", urls, body)
  1265  	if err != nil {
  1266  		return nil, err
  1267  	}
  1268  	req.Header = reqHeaders
  1269  	googleapi.Expand(req.URL, map[string]string{
  1270  		"name": c.name,
  1271  	})
  1272  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1273  }
  1274  
  1275  // Do executes the "cloudcontrolspartner.organizations.locations.customers.get" call.
  1276  // Any non-2xx status code is an error. Response headers are in either
  1277  // *Customer.ServerResponse.Header or (if a response was returned at all) in
  1278  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1279  // whether the returned error was because http.StatusNotModified was returned.
  1280  func (c *OrganizationsLocationsCustomersGetCall) Do(opts ...googleapi.CallOption) (*Customer, error) {
  1281  	gensupport.SetOptions(c.urlParams_, opts...)
  1282  	res, err := c.doRequest("json")
  1283  	if res != nil && res.StatusCode == http.StatusNotModified {
  1284  		if res.Body != nil {
  1285  			res.Body.Close()
  1286  		}
  1287  		return nil, gensupport.WrapError(&googleapi.Error{
  1288  			Code:   res.StatusCode,
  1289  			Header: res.Header,
  1290  		})
  1291  	}
  1292  	if err != nil {
  1293  		return nil, err
  1294  	}
  1295  	defer googleapi.CloseBody(res)
  1296  	if err := googleapi.CheckResponse(res); err != nil {
  1297  		return nil, gensupport.WrapError(err)
  1298  	}
  1299  	ret := &Customer{
  1300  		ServerResponse: googleapi.ServerResponse{
  1301  			Header:         res.Header,
  1302  			HTTPStatusCode: res.StatusCode,
  1303  		},
  1304  	}
  1305  	target := &ret
  1306  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1307  		return nil, err
  1308  	}
  1309  	return ret, nil
  1310  }
  1311  
  1312  type OrganizationsLocationsCustomersListCall struct {
  1313  	s            *Service
  1314  	parent       string
  1315  	urlParams_   gensupport.URLParams
  1316  	ifNoneMatch_ string
  1317  	ctx_         context.Context
  1318  	header_      http.Header
  1319  }
  1320  
  1321  // List: Lists customers of a partner identified by its Google Cloud
  1322  // organization ID
  1323  //
  1324  //   - parent: Parent resource Format:
  1325  //     `organizations/{organization}/locations/{location}`.
  1326  func (r *OrganizationsLocationsCustomersService) List(parent string) *OrganizationsLocationsCustomersListCall {
  1327  	c := &OrganizationsLocationsCustomersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1328  	c.parent = parent
  1329  	return c
  1330  }
  1331  
  1332  // Filter sets the optional parameter "filter": Filtering results
  1333  func (c *OrganizationsLocationsCustomersListCall) Filter(filter string) *OrganizationsLocationsCustomersListCall {
  1334  	c.urlParams_.Set("filter", filter)
  1335  	return c
  1336  }
  1337  
  1338  // OrderBy sets the optional parameter "orderBy": Hint for how to order the
  1339  // results
  1340  func (c *OrganizationsLocationsCustomersListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersListCall {
  1341  	c.urlParams_.Set("orderBy", orderBy)
  1342  	return c
  1343  }
  1344  
  1345  // PageSize sets the optional parameter "pageSize": The maximum number of
  1346  // Customers to return. The service may return fewer than this value. If
  1347  // unspecified, at most 500 Customers will be returned.
  1348  func (c *OrganizationsLocationsCustomersListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersListCall {
  1349  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  1350  	return c
  1351  }
  1352  
  1353  // PageToken sets the optional parameter "pageToken": A page token, received
  1354  // from a previous `ListCustomers` call. Provide this to retrieve the
  1355  // subsequent page.
  1356  func (c *OrganizationsLocationsCustomersListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersListCall {
  1357  	c.urlParams_.Set("pageToken", pageToken)
  1358  	return c
  1359  }
  1360  
  1361  // Fields allows partial responses to be retrieved. See
  1362  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1363  // details.
  1364  func (c *OrganizationsLocationsCustomersListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersListCall {
  1365  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1366  	return c
  1367  }
  1368  
  1369  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1370  // object's ETag matches the given value. This is useful for getting updates
  1371  // only after the object has changed since the last request.
  1372  func (c *OrganizationsLocationsCustomersListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersListCall {
  1373  	c.ifNoneMatch_ = entityTag
  1374  	return c
  1375  }
  1376  
  1377  // Context sets the context to be used in this call's Do method.
  1378  func (c *OrganizationsLocationsCustomersListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersListCall {
  1379  	c.ctx_ = ctx
  1380  	return c
  1381  }
  1382  
  1383  // Header returns a http.Header that can be modified by the caller to add
  1384  // headers to the request.
  1385  func (c *OrganizationsLocationsCustomersListCall) Header() http.Header {
  1386  	if c.header_ == nil {
  1387  		c.header_ = make(http.Header)
  1388  	}
  1389  	return c.header_
  1390  }
  1391  
  1392  func (c *OrganizationsLocationsCustomersListCall) doRequest(alt string) (*http.Response, error) {
  1393  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1394  	if c.ifNoneMatch_ != "" {
  1395  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1396  	}
  1397  	var body io.Reader = nil
  1398  	c.urlParams_.Set("alt", alt)
  1399  	c.urlParams_.Set("prettyPrint", "false")
  1400  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/customers")
  1401  	urls += "?" + c.urlParams_.Encode()
  1402  	req, err := http.NewRequest("GET", urls, body)
  1403  	if err != nil {
  1404  		return nil, err
  1405  	}
  1406  	req.Header = reqHeaders
  1407  	googleapi.Expand(req.URL, map[string]string{
  1408  		"parent": c.parent,
  1409  	})
  1410  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1411  }
  1412  
  1413  // Do executes the "cloudcontrolspartner.organizations.locations.customers.list" call.
  1414  // Any non-2xx status code is an error. Response headers are in either
  1415  // *ListCustomersResponse.ServerResponse.Header or (if a response was returned
  1416  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1417  // check whether the returned error was because http.StatusNotModified was
  1418  // returned.
  1419  func (c *OrganizationsLocationsCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCustomersResponse, error) {
  1420  	gensupport.SetOptions(c.urlParams_, opts...)
  1421  	res, err := c.doRequest("json")
  1422  	if res != nil && res.StatusCode == http.StatusNotModified {
  1423  		if res.Body != nil {
  1424  			res.Body.Close()
  1425  		}
  1426  		return nil, gensupport.WrapError(&googleapi.Error{
  1427  			Code:   res.StatusCode,
  1428  			Header: res.Header,
  1429  		})
  1430  	}
  1431  	if err != nil {
  1432  		return nil, err
  1433  	}
  1434  	defer googleapi.CloseBody(res)
  1435  	if err := googleapi.CheckResponse(res); err != nil {
  1436  		return nil, gensupport.WrapError(err)
  1437  	}
  1438  	ret := &ListCustomersResponse{
  1439  		ServerResponse: googleapi.ServerResponse{
  1440  			Header:         res.Header,
  1441  			HTTPStatusCode: res.StatusCode,
  1442  		},
  1443  	}
  1444  	target := &ret
  1445  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1446  		return nil, err
  1447  	}
  1448  	return ret, nil
  1449  }
  1450  
  1451  // Pages invokes f for each page of results.
  1452  // A non-nil error returned from f will halt the iteration.
  1453  // The provided context supersedes any context provided to the Context method.
  1454  func (c *OrganizationsLocationsCustomersListCall) Pages(ctx context.Context, f func(*ListCustomersResponse) error) error {
  1455  	c.ctx_ = ctx
  1456  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  1457  	for {
  1458  		x, err := c.Do()
  1459  		if err != nil {
  1460  			return err
  1461  		}
  1462  		if err := f(x); err != nil {
  1463  			return err
  1464  		}
  1465  		if x.NextPageToken == "" {
  1466  			return nil
  1467  		}
  1468  		c.PageToken(x.NextPageToken)
  1469  	}
  1470  }
  1471  
  1472  type OrganizationsLocationsCustomersWorkloadsGetCall struct {
  1473  	s            *Service
  1474  	name         string
  1475  	urlParams_   gensupport.URLParams
  1476  	ifNoneMatch_ string
  1477  	ctx_         context.Context
  1478  	header_      http.Header
  1479  }
  1480  
  1481  // Get: Gets details of a single workload
  1482  //
  1483  //   - name: Format:
  1484  //     `organizations/{organization}/locations/{location}/customers/{customer}/wor
  1485  //     kloads/{workload}`.
  1486  func (r *OrganizationsLocationsCustomersWorkloadsService) Get(name string) *OrganizationsLocationsCustomersWorkloadsGetCall {
  1487  	c := &OrganizationsLocationsCustomersWorkloadsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1488  	c.name = name
  1489  	return c
  1490  }
  1491  
  1492  // Fields allows partial responses to be retrieved. See
  1493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1494  // details.
  1495  func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetCall {
  1496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1497  	return c
  1498  }
  1499  
  1500  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1501  // object's ETag matches the given value. This is useful for getting updates
  1502  // only after the object has changed since the last request.
  1503  func (c *OrganizationsLocationsCustomersWorkloadsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsGetCall {
  1504  	c.ifNoneMatch_ = entityTag
  1505  	return c
  1506  }
  1507  
  1508  // Context sets the context to be used in this call's Do method.
  1509  func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsGetCall {
  1510  	c.ctx_ = ctx
  1511  	return c
  1512  }
  1513  
  1514  // Header returns a http.Header that can be modified by the caller to add
  1515  // headers to the request.
  1516  func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Header() http.Header {
  1517  	if c.header_ == nil {
  1518  		c.header_ = make(http.Header)
  1519  	}
  1520  	return c.header_
  1521  }
  1522  
  1523  func (c *OrganizationsLocationsCustomersWorkloadsGetCall) doRequest(alt string) (*http.Response, error) {
  1524  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1525  	if c.ifNoneMatch_ != "" {
  1526  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1527  	}
  1528  	var body io.Reader = nil
  1529  	c.urlParams_.Set("alt", alt)
  1530  	c.urlParams_.Set("prettyPrint", "false")
  1531  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
  1532  	urls += "?" + c.urlParams_.Encode()
  1533  	req, err := http.NewRequest("GET", urls, body)
  1534  	if err != nil {
  1535  		return nil, err
  1536  	}
  1537  	req.Header = reqHeaders
  1538  	googleapi.Expand(req.URL, map[string]string{
  1539  		"name": c.name,
  1540  	})
  1541  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1542  }
  1543  
  1544  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.get" call.
  1545  // Any non-2xx status code is an error. Response headers are in either
  1546  // *Workload.ServerResponse.Header or (if a response was returned at all) in
  1547  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1548  // whether the returned error was because http.StatusNotModified was returned.
  1549  func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Do(opts ...googleapi.CallOption) (*Workload, error) {
  1550  	gensupport.SetOptions(c.urlParams_, opts...)
  1551  	res, err := c.doRequest("json")
  1552  	if res != nil && res.StatusCode == http.StatusNotModified {
  1553  		if res.Body != nil {
  1554  			res.Body.Close()
  1555  		}
  1556  		return nil, gensupport.WrapError(&googleapi.Error{
  1557  			Code:   res.StatusCode,
  1558  			Header: res.Header,
  1559  		})
  1560  	}
  1561  	if err != nil {
  1562  		return nil, err
  1563  	}
  1564  	defer googleapi.CloseBody(res)
  1565  	if err := googleapi.CheckResponse(res); err != nil {
  1566  		return nil, gensupport.WrapError(err)
  1567  	}
  1568  	ret := &Workload{
  1569  		ServerResponse: googleapi.ServerResponse{
  1570  			Header:         res.Header,
  1571  			HTTPStatusCode: res.StatusCode,
  1572  		},
  1573  	}
  1574  	target := &ret
  1575  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1576  		return nil, err
  1577  	}
  1578  	return ret, nil
  1579  }
  1580  
  1581  type OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall struct {
  1582  	s            *Service
  1583  	name         string
  1584  	urlParams_   gensupport.URLParams
  1585  	ifNoneMatch_ string
  1586  	ctx_         context.Context
  1587  	header_      http.Header
  1588  }
  1589  
  1590  // GetEkmConnections: Gets the EKM connections associated with a workload
  1591  //
  1592  //   - name: Format:
  1593  //     `organizations/{organization}/locations/{location}/customers/{customer}/wor
  1594  //     kloads/{workload}/ekmConnections`.
  1595  func (r *OrganizationsLocationsCustomersWorkloadsService) GetEkmConnections(name string) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall {
  1596  	c := &OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1597  	c.name = name
  1598  	return c
  1599  }
  1600  
  1601  // Fields allows partial responses to be retrieved. See
  1602  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1603  // details.
  1604  func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall {
  1605  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1606  	return c
  1607  }
  1608  
  1609  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1610  // object's ETag matches the given value. This is useful for getting updates
  1611  // only after the object has changed since the last request.
  1612  func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall {
  1613  	c.ifNoneMatch_ = entityTag
  1614  	return c
  1615  }
  1616  
  1617  // Context sets the context to be used in this call's Do method.
  1618  func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall {
  1619  	c.ctx_ = ctx
  1620  	return c
  1621  }
  1622  
  1623  // Header returns a http.Header that can be modified by the caller to add
  1624  // headers to the request.
  1625  func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Header() http.Header {
  1626  	if c.header_ == nil {
  1627  		c.header_ = make(http.Header)
  1628  	}
  1629  	return c.header_
  1630  }
  1631  
  1632  func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) doRequest(alt string) (*http.Response, error) {
  1633  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1634  	if c.ifNoneMatch_ != "" {
  1635  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1636  	}
  1637  	var body io.Reader = nil
  1638  	c.urlParams_.Set("alt", alt)
  1639  	c.urlParams_.Set("prettyPrint", "false")
  1640  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
  1641  	urls += "?" + c.urlParams_.Encode()
  1642  	req, err := http.NewRequest("GET", urls, body)
  1643  	if err != nil {
  1644  		return nil, err
  1645  	}
  1646  	req.Header = reqHeaders
  1647  	googleapi.Expand(req.URL, map[string]string{
  1648  		"name": c.name,
  1649  	})
  1650  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1651  }
  1652  
  1653  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getEkmConnections" call.
  1654  // Any non-2xx status code is an error. Response headers are in either
  1655  // *EkmConnections.ServerResponse.Header or (if a response was returned at all)
  1656  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  1657  // whether the returned error was because http.StatusNotModified was returned.
  1658  func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Do(opts ...googleapi.CallOption) (*EkmConnections, error) {
  1659  	gensupport.SetOptions(c.urlParams_, opts...)
  1660  	res, err := c.doRequest("json")
  1661  	if res != nil && res.StatusCode == http.StatusNotModified {
  1662  		if res.Body != nil {
  1663  			res.Body.Close()
  1664  		}
  1665  		return nil, gensupport.WrapError(&googleapi.Error{
  1666  			Code:   res.StatusCode,
  1667  			Header: res.Header,
  1668  		})
  1669  	}
  1670  	if err != nil {
  1671  		return nil, err
  1672  	}
  1673  	defer googleapi.CloseBody(res)
  1674  	if err := googleapi.CheckResponse(res); err != nil {
  1675  		return nil, gensupport.WrapError(err)
  1676  	}
  1677  	ret := &EkmConnections{
  1678  		ServerResponse: googleapi.ServerResponse{
  1679  			Header:         res.Header,
  1680  			HTTPStatusCode: res.StatusCode,
  1681  		},
  1682  	}
  1683  	target := &ret
  1684  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1685  		return nil, err
  1686  	}
  1687  	return ret, nil
  1688  }
  1689  
  1690  type OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall struct {
  1691  	s            *Service
  1692  	name         string
  1693  	urlParams_   gensupport.URLParams
  1694  	ifNoneMatch_ string
  1695  	ctx_         context.Context
  1696  	header_      http.Header
  1697  }
  1698  
  1699  // GetPartnerPermissions: Gets the partner permissions granted for a workload
  1700  //
  1701  //   - name: Name of the resource to get in the format:
  1702  //     `organizations/{organization}/locations/{location}/customers/{customer}/wor
  1703  //     kloads/{workload}/partnerPermissions`.
  1704  func (r *OrganizationsLocationsCustomersWorkloadsService) GetPartnerPermissions(name string) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall {
  1705  	c := &OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1706  	c.name = name
  1707  	return c
  1708  }
  1709  
  1710  // Fields allows partial responses to be retrieved. See
  1711  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1712  // details.
  1713  func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall {
  1714  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1715  	return c
  1716  }
  1717  
  1718  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1719  // object's ETag matches the given value. This is useful for getting updates
  1720  // only after the object has changed since the last request.
  1721  func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall {
  1722  	c.ifNoneMatch_ = entityTag
  1723  	return c
  1724  }
  1725  
  1726  // Context sets the context to be used in this call's Do method.
  1727  func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall {
  1728  	c.ctx_ = ctx
  1729  	return c
  1730  }
  1731  
  1732  // Header returns a http.Header that can be modified by the caller to add
  1733  // headers to the request.
  1734  func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Header() http.Header {
  1735  	if c.header_ == nil {
  1736  		c.header_ = make(http.Header)
  1737  	}
  1738  	return c.header_
  1739  }
  1740  
  1741  func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) doRequest(alt string) (*http.Response, error) {
  1742  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1743  	if c.ifNoneMatch_ != "" {
  1744  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1745  	}
  1746  	var body io.Reader = nil
  1747  	c.urlParams_.Set("alt", alt)
  1748  	c.urlParams_.Set("prettyPrint", "false")
  1749  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
  1750  	urls += "?" + c.urlParams_.Encode()
  1751  	req, err := http.NewRequest("GET", urls, body)
  1752  	if err != nil {
  1753  		return nil, err
  1754  	}
  1755  	req.Header = reqHeaders
  1756  	googleapi.Expand(req.URL, map[string]string{
  1757  		"name": c.name,
  1758  	})
  1759  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1760  }
  1761  
  1762  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getPartnerPermissions" call.
  1763  // Any non-2xx status code is an error. Response headers are in either
  1764  // *PartnerPermissions.ServerResponse.Header or (if a response was returned at
  1765  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1766  // check whether the returned error was because http.StatusNotModified was
  1767  // returned.
  1768  func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Do(opts ...googleapi.CallOption) (*PartnerPermissions, error) {
  1769  	gensupport.SetOptions(c.urlParams_, opts...)
  1770  	res, err := c.doRequest("json")
  1771  	if res != nil && res.StatusCode == http.StatusNotModified {
  1772  		if res.Body != nil {
  1773  			res.Body.Close()
  1774  		}
  1775  		return nil, gensupport.WrapError(&googleapi.Error{
  1776  			Code:   res.StatusCode,
  1777  			Header: res.Header,
  1778  		})
  1779  	}
  1780  	if err != nil {
  1781  		return nil, err
  1782  	}
  1783  	defer googleapi.CloseBody(res)
  1784  	if err := googleapi.CheckResponse(res); err != nil {
  1785  		return nil, gensupport.WrapError(err)
  1786  	}
  1787  	ret := &PartnerPermissions{
  1788  		ServerResponse: googleapi.ServerResponse{
  1789  			Header:         res.Header,
  1790  			HTTPStatusCode: res.StatusCode,
  1791  		},
  1792  	}
  1793  	target := &ret
  1794  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1795  		return nil, err
  1796  	}
  1797  	return ret, nil
  1798  }
  1799  
  1800  type OrganizationsLocationsCustomersWorkloadsListCall struct {
  1801  	s            *Service
  1802  	parent       string
  1803  	urlParams_   gensupport.URLParams
  1804  	ifNoneMatch_ string
  1805  	ctx_         context.Context
  1806  	header_      http.Header
  1807  }
  1808  
  1809  // List: Lists customer workloads for a given customer org id
  1810  //
  1811  //   - parent: Parent resource Format:
  1812  //     `organizations/{organization}/locations/{location}/customers/{customer}`.
  1813  func (r *OrganizationsLocationsCustomersWorkloadsService) List(parent string) *OrganizationsLocationsCustomersWorkloadsListCall {
  1814  	c := &OrganizationsLocationsCustomersWorkloadsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1815  	c.parent = parent
  1816  	return c
  1817  }
  1818  
  1819  // Filter sets the optional parameter "filter": Filtering results.
  1820  func (c *OrganizationsLocationsCustomersWorkloadsListCall) Filter(filter string) *OrganizationsLocationsCustomersWorkloadsListCall {
  1821  	c.urlParams_.Set("filter", filter)
  1822  	return c
  1823  }
  1824  
  1825  // OrderBy sets the optional parameter "orderBy": Hint for how to order the
  1826  // results.
  1827  func (c *OrganizationsLocationsCustomersWorkloadsListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersWorkloadsListCall {
  1828  	c.urlParams_.Set("orderBy", orderBy)
  1829  	return c
  1830  }
  1831  
  1832  // PageSize sets the optional parameter "pageSize": The maximum number of
  1833  // workloads to return. The service may return fewer than this value. If
  1834  // unspecified, at most 500 workloads will be returned.
  1835  func (c *OrganizationsLocationsCustomersWorkloadsListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersWorkloadsListCall {
  1836  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  1837  	return c
  1838  }
  1839  
  1840  // PageToken sets the optional parameter "pageToken": A page token, received
  1841  // from a previous `ListWorkloads` call. Provide this to retrieve the
  1842  // subsequent page.
  1843  func (c *OrganizationsLocationsCustomersWorkloadsListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersWorkloadsListCall {
  1844  	c.urlParams_.Set("pageToken", pageToken)
  1845  	return c
  1846  }
  1847  
  1848  // Fields allows partial responses to be retrieved. See
  1849  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  1850  // details.
  1851  func (c *OrganizationsLocationsCustomersWorkloadsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsListCall {
  1852  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1853  	return c
  1854  }
  1855  
  1856  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  1857  // object's ETag matches the given value. This is useful for getting updates
  1858  // only after the object has changed since the last request.
  1859  func (c *OrganizationsLocationsCustomersWorkloadsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsListCall {
  1860  	c.ifNoneMatch_ = entityTag
  1861  	return c
  1862  }
  1863  
  1864  // Context sets the context to be used in this call's Do method.
  1865  func (c *OrganizationsLocationsCustomersWorkloadsListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsListCall {
  1866  	c.ctx_ = ctx
  1867  	return c
  1868  }
  1869  
  1870  // Header returns a http.Header that can be modified by the caller to add
  1871  // headers to the request.
  1872  func (c *OrganizationsLocationsCustomersWorkloadsListCall) Header() http.Header {
  1873  	if c.header_ == nil {
  1874  		c.header_ = make(http.Header)
  1875  	}
  1876  	return c.header_
  1877  }
  1878  
  1879  func (c *OrganizationsLocationsCustomersWorkloadsListCall) doRequest(alt string) (*http.Response, error) {
  1880  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  1881  	if c.ifNoneMatch_ != "" {
  1882  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  1883  	}
  1884  	var body io.Reader = nil
  1885  	c.urlParams_.Set("alt", alt)
  1886  	c.urlParams_.Set("prettyPrint", "false")
  1887  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/workloads")
  1888  	urls += "?" + c.urlParams_.Encode()
  1889  	req, err := http.NewRequest("GET", urls, body)
  1890  	if err != nil {
  1891  		return nil, err
  1892  	}
  1893  	req.Header = reqHeaders
  1894  	googleapi.Expand(req.URL, map[string]string{
  1895  		"parent": c.parent,
  1896  	})
  1897  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  1898  }
  1899  
  1900  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.list" call.
  1901  // Any non-2xx status code is an error. Response headers are in either
  1902  // *ListWorkloadsResponse.ServerResponse.Header or (if a response was returned
  1903  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  1904  // check whether the returned error was because http.StatusNotModified was
  1905  // returned.
  1906  func (c *OrganizationsLocationsCustomersWorkloadsListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadsResponse, error) {
  1907  	gensupport.SetOptions(c.urlParams_, opts...)
  1908  	res, err := c.doRequest("json")
  1909  	if res != nil && res.StatusCode == http.StatusNotModified {
  1910  		if res.Body != nil {
  1911  			res.Body.Close()
  1912  		}
  1913  		return nil, gensupport.WrapError(&googleapi.Error{
  1914  			Code:   res.StatusCode,
  1915  			Header: res.Header,
  1916  		})
  1917  	}
  1918  	if err != nil {
  1919  		return nil, err
  1920  	}
  1921  	defer googleapi.CloseBody(res)
  1922  	if err := googleapi.CheckResponse(res); err != nil {
  1923  		return nil, gensupport.WrapError(err)
  1924  	}
  1925  	ret := &ListWorkloadsResponse{
  1926  		ServerResponse: googleapi.ServerResponse{
  1927  			Header:         res.Header,
  1928  			HTTPStatusCode: res.StatusCode,
  1929  		},
  1930  	}
  1931  	target := &ret
  1932  	if err := gensupport.DecodeResponse(target, res); err != nil {
  1933  		return nil, err
  1934  	}
  1935  	return ret, nil
  1936  }
  1937  
  1938  // Pages invokes f for each page of results.
  1939  // A non-nil error returned from f will halt the iteration.
  1940  // The provided context supersedes any context provided to the Context method.
  1941  func (c *OrganizationsLocationsCustomersWorkloadsListCall) Pages(ctx context.Context, f func(*ListWorkloadsResponse) error) error {
  1942  	c.ctx_ = ctx
  1943  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  1944  	for {
  1945  		x, err := c.Do()
  1946  		if err != nil {
  1947  			return err
  1948  		}
  1949  		if err := f(x); err != nil {
  1950  			return err
  1951  		}
  1952  		if x.NextPageToken == "" {
  1953  			return nil
  1954  		}
  1955  		c.PageToken(x.NextPageToken)
  1956  	}
  1957  }
  1958  
  1959  type OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall struct {
  1960  	s            *Service
  1961  	parent       string
  1962  	urlParams_   gensupport.URLParams
  1963  	ifNoneMatch_ string
  1964  	ctx_         context.Context
  1965  	header_      http.Header
  1966  }
  1967  
  1968  // List: Lists access requests associated with a workload
  1969  //
  1970  //   - parent: Parent resource Format:
  1971  //     `organizations/{organization}/locations/{location}/customers/{customer}/wor
  1972  //     kloads/{workload}`.
  1973  func (r *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService) List(parent string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  1974  	c := &OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1975  	c.parent = parent
  1976  	return c
  1977  }
  1978  
  1979  // Filter sets the optional parameter "filter": Filtering results.
  1980  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Filter(filter string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  1981  	c.urlParams_.Set("filter", filter)
  1982  	return c
  1983  }
  1984  
  1985  // OrderBy sets the optional parameter "orderBy": Hint for how to order the
  1986  // results.
  1987  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  1988  	c.urlParams_.Set("orderBy", orderBy)
  1989  	return c
  1990  }
  1991  
  1992  // PageSize sets the optional parameter "pageSize": The maximum number of
  1993  // access requests to return. The service may return fewer than this value. If
  1994  // unspecified, at most 500 access requests will be returned.
  1995  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  1996  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  1997  	return c
  1998  }
  1999  
  2000  // PageToken sets the optional parameter "pageToken": A page token, received
  2001  // from a previous `ListAccessApprovalRequests` call. Provide this to retrieve
  2002  // the subsequent page.
  2003  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  2004  	c.urlParams_.Set("pageToken", pageToken)
  2005  	return c
  2006  }
  2007  
  2008  // Fields allows partial responses to be retrieved. See
  2009  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2010  // details.
  2011  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  2012  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2013  	return c
  2014  }
  2015  
  2016  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2017  // object's ETag matches the given value. This is useful for getting updates
  2018  // only after the object has changed since the last request.
  2019  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  2020  	c.ifNoneMatch_ = entityTag
  2021  	return c
  2022  }
  2023  
  2024  // Context sets the context to be used in this call's Do method.
  2025  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall {
  2026  	c.ctx_ = ctx
  2027  	return c
  2028  }
  2029  
  2030  // Header returns a http.Header that can be modified by the caller to add
  2031  // headers to the request.
  2032  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Header() http.Header {
  2033  	if c.header_ == nil {
  2034  		c.header_ = make(http.Header)
  2035  	}
  2036  	return c.header_
  2037  }
  2038  
  2039  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) doRequest(alt string) (*http.Response, error) {
  2040  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2041  	if c.ifNoneMatch_ != "" {
  2042  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2043  	}
  2044  	var body io.Reader = nil
  2045  	c.urlParams_.Set("alt", alt)
  2046  	c.urlParams_.Set("prettyPrint", "false")
  2047  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/accessApprovalRequests")
  2048  	urls += "?" + c.urlParams_.Encode()
  2049  	req, err := http.NewRequest("GET", urls, body)
  2050  	if err != nil {
  2051  		return nil, err
  2052  	}
  2053  	req.Header = reqHeaders
  2054  	googleapi.Expand(req.URL, map[string]string{
  2055  		"parent": c.parent,
  2056  	})
  2057  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2058  }
  2059  
  2060  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list" call.
  2061  // Any non-2xx status code is an error. Response headers are in either
  2062  // *ListAccessApprovalRequestsResponse.ServerResponse.Header or (if a response
  2063  // was returned at all) in error.(*googleapi.Error).Header. Use
  2064  // googleapi.IsNotModified to check whether the returned error was because
  2065  // http.StatusNotModified was returned.
  2066  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListAccessApprovalRequestsResponse, error) {
  2067  	gensupport.SetOptions(c.urlParams_, opts...)
  2068  	res, err := c.doRequest("json")
  2069  	if res != nil && res.StatusCode == http.StatusNotModified {
  2070  		if res.Body != nil {
  2071  			res.Body.Close()
  2072  		}
  2073  		return nil, gensupport.WrapError(&googleapi.Error{
  2074  			Code:   res.StatusCode,
  2075  			Header: res.Header,
  2076  		})
  2077  	}
  2078  	if err != nil {
  2079  		return nil, err
  2080  	}
  2081  	defer googleapi.CloseBody(res)
  2082  	if err := googleapi.CheckResponse(res); err != nil {
  2083  		return nil, gensupport.WrapError(err)
  2084  	}
  2085  	ret := &ListAccessApprovalRequestsResponse{
  2086  		ServerResponse: googleapi.ServerResponse{
  2087  			Header:         res.Header,
  2088  			HTTPStatusCode: res.StatusCode,
  2089  		},
  2090  	}
  2091  	target := &ret
  2092  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2093  		return nil, err
  2094  	}
  2095  	return ret, nil
  2096  }
  2097  
  2098  // Pages invokes f for each page of results.
  2099  // A non-nil error returned from f will halt the iteration.
  2100  // The provided context supersedes any context provided to the Context method.
  2101  func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListAccessApprovalRequestsResponse) error) error {
  2102  	c.ctx_ = ctx
  2103  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2104  	for {
  2105  		x, err := c.Do()
  2106  		if err != nil {
  2107  			return err
  2108  		}
  2109  		if err := f(x); err != nil {
  2110  			return err
  2111  		}
  2112  		if x.NextPageToken == "" {
  2113  			return nil
  2114  		}
  2115  		c.PageToken(x.NextPageToken)
  2116  	}
  2117  }
  2118  
  2119  type OrganizationsLocationsCustomersWorkloadsViolationsGetCall struct {
  2120  	s            *Service
  2121  	name         string
  2122  	urlParams_   gensupport.URLParams
  2123  	ifNoneMatch_ string
  2124  	ctx_         context.Context
  2125  	header_      http.Header
  2126  }
  2127  
  2128  // Get: Gets details of a single Violation.
  2129  //
  2130  //   - name: Format:
  2131  //     `organizations/{organization}/locations/{location}/customers/{customer}/wor
  2132  //     kloads/{workload}/violations/{violation}`.
  2133  func (r *OrganizationsLocationsCustomersWorkloadsViolationsService) Get(name string) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall {
  2134  	c := &OrganizationsLocationsCustomersWorkloadsViolationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2135  	c.name = name
  2136  	return c
  2137  }
  2138  
  2139  // Fields allows partial responses to be retrieved. See
  2140  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2141  // details.
  2142  func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall {
  2143  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2144  	return c
  2145  }
  2146  
  2147  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2148  // object's ETag matches the given value. This is useful for getting updates
  2149  // only after the object has changed since the last request.
  2150  func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall {
  2151  	c.ifNoneMatch_ = entityTag
  2152  	return c
  2153  }
  2154  
  2155  // Context sets the context to be used in this call's Do method.
  2156  func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall {
  2157  	c.ctx_ = ctx
  2158  	return c
  2159  }
  2160  
  2161  // Header returns a http.Header that can be modified by the caller to add
  2162  // headers to the request.
  2163  func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Header() http.Header {
  2164  	if c.header_ == nil {
  2165  		c.header_ = make(http.Header)
  2166  	}
  2167  	return c.header_
  2168  }
  2169  
  2170  func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) doRequest(alt string) (*http.Response, error) {
  2171  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2172  	if c.ifNoneMatch_ != "" {
  2173  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2174  	}
  2175  	var body io.Reader = nil
  2176  	c.urlParams_.Set("alt", alt)
  2177  	c.urlParams_.Set("prettyPrint", "false")
  2178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
  2179  	urls += "?" + c.urlParams_.Encode()
  2180  	req, err := http.NewRequest("GET", urls, body)
  2181  	if err != nil {
  2182  		return nil, err
  2183  	}
  2184  	req.Header = reqHeaders
  2185  	googleapi.Expand(req.URL, map[string]string{
  2186  		"name": c.name,
  2187  	})
  2188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2189  }
  2190  
  2191  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.get" call.
  2192  // Any non-2xx status code is an error. Response headers are in either
  2193  // *Violation.ServerResponse.Header or (if a response was returned at all) in
  2194  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2195  // whether the returned error was because http.StatusNotModified was returned.
  2196  func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Do(opts ...googleapi.CallOption) (*Violation, error) {
  2197  	gensupport.SetOptions(c.urlParams_, opts...)
  2198  	res, err := c.doRequest("json")
  2199  	if res != nil && res.StatusCode == http.StatusNotModified {
  2200  		if res.Body != nil {
  2201  			res.Body.Close()
  2202  		}
  2203  		return nil, gensupport.WrapError(&googleapi.Error{
  2204  			Code:   res.StatusCode,
  2205  			Header: res.Header,
  2206  		})
  2207  	}
  2208  	if err != nil {
  2209  		return nil, err
  2210  	}
  2211  	defer googleapi.CloseBody(res)
  2212  	if err := googleapi.CheckResponse(res); err != nil {
  2213  		return nil, gensupport.WrapError(err)
  2214  	}
  2215  	ret := &Violation{
  2216  		ServerResponse: googleapi.ServerResponse{
  2217  			Header:         res.Header,
  2218  			HTTPStatusCode: res.StatusCode,
  2219  		},
  2220  	}
  2221  	target := &ret
  2222  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2223  		return nil, err
  2224  	}
  2225  	return ret, nil
  2226  }
  2227  
  2228  type OrganizationsLocationsCustomersWorkloadsViolationsListCall struct {
  2229  	s            *Service
  2230  	parent       string
  2231  	urlParams_   gensupport.URLParams
  2232  	ifNoneMatch_ string
  2233  	ctx_         context.Context
  2234  	header_      http.Header
  2235  }
  2236  
  2237  // List: Lists Violations for a workload Callers may also choose to read across
  2238  // multiple Customers or for a single customer as per AIP-159
  2239  // (https://google.aip.dev/159) by using '-' (the hyphen or dash character) as
  2240  // a wildcard character instead of {customer} & {workload}. Format:
  2241  // `organizations/{organization}/locations/{location}/customers/{customer}/workl
  2242  // oads/{workload}`
  2243  //
  2244  //   - parent: Parent resource Format
  2245  //     `organizations/{organization}/locations/{location}/customers/{customer}/wor
  2246  //     kloads/{workload}`.
  2247  func (r *OrganizationsLocationsCustomersWorkloadsViolationsService) List(parent string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2248  	c := &OrganizationsLocationsCustomersWorkloadsViolationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2249  	c.parent = parent
  2250  	return c
  2251  }
  2252  
  2253  // Filter sets the optional parameter "filter": Filtering results
  2254  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Filter(filter string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2255  	c.urlParams_.Set("filter", filter)
  2256  	return c
  2257  }
  2258  
  2259  // IntervalEndTime sets the optional parameter "interval.endTime": Exclusive
  2260  // end of the interval. If specified, a Timestamp matching this interval will
  2261  // have to be before the end.
  2262  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IntervalEndTime(intervalEndTime string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2263  	c.urlParams_.Set("interval.endTime", intervalEndTime)
  2264  	return c
  2265  }
  2266  
  2267  // IntervalStartTime sets the optional parameter "interval.startTime":
  2268  // Inclusive start of the interval. If specified, a Timestamp matching this
  2269  // interval will have to be the same or after the start.
  2270  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IntervalStartTime(intervalStartTime string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2271  	c.urlParams_.Set("interval.startTime", intervalStartTime)
  2272  	return c
  2273  }
  2274  
  2275  // OrderBy sets the optional parameter "orderBy": Hint for how to order the
  2276  // results
  2277  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2278  	c.urlParams_.Set("orderBy", orderBy)
  2279  	return c
  2280  }
  2281  
  2282  // PageSize sets the optional parameter "pageSize": The maximum number of
  2283  // customers row to return. The service may return fewer than this value. If
  2284  // unspecified, at most 10 customers will be returned.
  2285  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2286  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2287  	return c
  2288  }
  2289  
  2290  // PageToken sets the optional parameter "pageToken": A page token, received
  2291  // from a previous `ListViolations` call. Provide this to retrieve the
  2292  // subsequent page.
  2293  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2294  	c.urlParams_.Set("pageToken", pageToken)
  2295  	return c
  2296  }
  2297  
  2298  // Fields allows partial responses to be retrieved. See
  2299  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2300  // details.
  2301  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2302  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2303  	return c
  2304  }
  2305  
  2306  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2307  // object's ETag matches the given value. This is useful for getting updates
  2308  // only after the object has changed since the last request.
  2309  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2310  	c.ifNoneMatch_ = entityTag
  2311  	return c
  2312  }
  2313  
  2314  // Context sets the context to be used in this call's Do method.
  2315  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsViolationsListCall {
  2316  	c.ctx_ = ctx
  2317  	return c
  2318  }
  2319  
  2320  // Header returns a http.Header that can be modified by the caller to add
  2321  // headers to the request.
  2322  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Header() http.Header {
  2323  	if c.header_ == nil {
  2324  		c.header_ = make(http.Header)
  2325  	}
  2326  	return c.header_
  2327  }
  2328  
  2329  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) doRequest(alt string) (*http.Response, error) {
  2330  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2331  	if c.ifNoneMatch_ != "" {
  2332  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2333  	}
  2334  	var body io.Reader = nil
  2335  	c.urlParams_.Set("alt", alt)
  2336  	c.urlParams_.Set("prettyPrint", "false")
  2337  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/violations")
  2338  	urls += "?" + c.urlParams_.Encode()
  2339  	req, err := http.NewRequest("GET", urls, body)
  2340  	if err != nil {
  2341  		return nil, err
  2342  	}
  2343  	req.Header = reqHeaders
  2344  	googleapi.Expand(req.URL, map[string]string{
  2345  		"parent": c.parent,
  2346  	})
  2347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2348  }
  2349  
  2350  // Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.list" call.
  2351  // Any non-2xx status code is an error. Response headers are in either
  2352  // *ListViolationsResponse.ServerResponse.Header or (if a response was returned
  2353  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2354  // check whether the returned error was because http.StatusNotModified was
  2355  // returned.
  2356  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Do(opts ...googleapi.CallOption) (*ListViolationsResponse, error) {
  2357  	gensupport.SetOptions(c.urlParams_, opts...)
  2358  	res, err := c.doRequest("json")
  2359  	if res != nil && res.StatusCode == http.StatusNotModified {
  2360  		if res.Body != nil {
  2361  			res.Body.Close()
  2362  		}
  2363  		return nil, gensupport.WrapError(&googleapi.Error{
  2364  			Code:   res.StatusCode,
  2365  			Header: res.Header,
  2366  		})
  2367  	}
  2368  	if err != nil {
  2369  		return nil, err
  2370  	}
  2371  	defer googleapi.CloseBody(res)
  2372  	if err := googleapi.CheckResponse(res); err != nil {
  2373  		return nil, gensupport.WrapError(err)
  2374  	}
  2375  	ret := &ListViolationsResponse{
  2376  		ServerResponse: googleapi.ServerResponse{
  2377  			Header:         res.Header,
  2378  			HTTPStatusCode: res.StatusCode,
  2379  		},
  2380  	}
  2381  	target := &ret
  2382  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2383  		return nil, err
  2384  	}
  2385  	return ret, nil
  2386  }
  2387  
  2388  // Pages invokes f for each page of results.
  2389  // A non-nil error returned from f will halt the iteration.
  2390  // The provided context supersedes any context provided to the Context method.
  2391  func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Pages(ctx context.Context, f func(*ListViolationsResponse) error) error {
  2392  	c.ctx_ = ctx
  2393  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2394  	for {
  2395  		x, err := c.Do()
  2396  		if err != nil {
  2397  			return err
  2398  		}
  2399  		if err := f(x); err != nil {
  2400  			return err
  2401  		}
  2402  		if x.NextPageToken == "" {
  2403  			return nil
  2404  		}
  2405  		c.PageToken(x.NextPageToken)
  2406  	}
  2407  }
  2408  

View as plain text