...

Source file src/google.golang.org/api/workloadmanager/v1/workloadmanager-gen.go

Documentation: google.golang.org/api/workloadmanager/v1

     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 workloadmanager provides access to the Workload Manager API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/workload-manager/docs
    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/workloadmanager/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	workloadmanagerService, err := workloadmanager.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  //	workloadmanagerService, err := workloadmanager.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  //	workloadmanagerService, err := workloadmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package workloadmanager // import "google.golang.org/api/workloadmanager/v1"
    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 = "workloadmanager:v1"
    90  const apiName = "workloadmanager"
    91  const apiVersion = "v1"
    92  const basePath = "https://workloadmanager.googleapis.com/"
    93  const basePathTemplate = "https://workloadmanager.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://workloadmanager.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.Projects = NewProjectsService(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  	Projects *ProjectsService
   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 NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.Locations = NewProjectsLocationsService(s)
   160  	return rs
   161  }
   162  
   163  type ProjectsService struct {
   164  	s *Service
   165  
   166  	Locations *ProjectsLocationsService
   167  }
   168  
   169  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   170  	rs := &ProjectsLocationsService{s: s}
   171  	rs.Evaluations = NewProjectsLocationsEvaluationsService(s)
   172  	rs.Insights = NewProjectsLocationsInsightsService(s)
   173  	rs.Operations = NewProjectsLocationsOperationsService(s)
   174  	rs.Rules = NewProjectsLocationsRulesService(s)
   175  	return rs
   176  }
   177  
   178  type ProjectsLocationsService struct {
   179  	s *Service
   180  
   181  	Evaluations *ProjectsLocationsEvaluationsService
   182  
   183  	Insights *ProjectsLocationsInsightsService
   184  
   185  	Operations *ProjectsLocationsOperationsService
   186  
   187  	Rules *ProjectsLocationsRulesService
   188  }
   189  
   190  func NewProjectsLocationsEvaluationsService(s *Service) *ProjectsLocationsEvaluationsService {
   191  	rs := &ProjectsLocationsEvaluationsService{s: s}
   192  	rs.Executions = NewProjectsLocationsEvaluationsExecutionsService(s)
   193  	return rs
   194  }
   195  
   196  type ProjectsLocationsEvaluationsService struct {
   197  	s *Service
   198  
   199  	Executions *ProjectsLocationsEvaluationsExecutionsService
   200  }
   201  
   202  func NewProjectsLocationsEvaluationsExecutionsService(s *Service) *ProjectsLocationsEvaluationsExecutionsService {
   203  	rs := &ProjectsLocationsEvaluationsExecutionsService{s: s}
   204  	rs.Results = NewProjectsLocationsEvaluationsExecutionsResultsService(s)
   205  	rs.ScannedResources = NewProjectsLocationsEvaluationsExecutionsScannedResourcesService(s)
   206  	return rs
   207  }
   208  
   209  type ProjectsLocationsEvaluationsExecutionsService struct {
   210  	s *Service
   211  
   212  	Results *ProjectsLocationsEvaluationsExecutionsResultsService
   213  
   214  	ScannedResources *ProjectsLocationsEvaluationsExecutionsScannedResourcesService
   215  }
   216  
   217  func NewProjectsLocationsEvaluationsExecutionsResultsService(s *Service) *ProjectsLocationsEvaluationsExecutionsResultsService {
   218  	rs := &ProjectsLocationsEvaluationsExecutionsResultsService{s: s}
   219  	return rs
   220  }
   221  
   222  type ProjectsLocationsEvaluationsExecutionsResultsService struct {
   223  	s *Service
   224  }
   225  
   226  func NewProjectsLocationsEvaluationsExecutionsScannedResourcesService(s *Service) *ProjectsLocationsEvaluationsExecutionsScannedResourcesService {
   227  	rs := &ProjectsLocationsEvaluationsExecutionsScannedResourcesService{s: s}
   228  	return rs
   229  }
   230  
   231  type ProjectsLocationsEvaluationsExecutionsScannedResourcesService struct {
   232  	s *Service
   233  }
   234  
   235  func NewProjectsLocationsInsightsService(s *Service) *ProjectsLocationsInsightsService {
   236  	rs := &ProjectsLocationsInsightsService{s: s}
   237  	return rs
   238  }
   239  
   240  type ProjectsLocationsInsightsService struct {
   241  	s *Service
   242  }
   243  
   244  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   245  	rs := &ProjectsLocationsOperationsService{s: s}
   246  	return rs
   247  }
   248  
   249  type ProjectsLocationsOperationsService struct {
   250  	s *Service
   251  }
   252  
   253  func NewProjectsLocationsRulesService(s *Service) *ProjectsLocationsRulesService {
   254  	rs := &ProjectsLocationsRulesService{s: s}
   255  	return rs
   256  }
   257  
   258  type ProjectsLocationsRulesService struct {
   259  	s *Service
   260  }
   261  
   262  // AssetLocation: Provides the mapping of a cloud asset to a direct physical
   263  // location or to a proxy that defines the location on its behalf.
   264  type AssetLocation struct {
   265  	// Expected: Defines the customer expectation around ZI/ZS for this asset and
   266  	// ZI/ZS state of the region at the time of asset creation.
   267  	Expected *IsolationExpectations `json:"expected,omitempty"`
   268  	// ExtraParameters: Defines extra parameters required for specific asset types.
   269  	ExtraParameters []*ExtraParameter `json:"extraParameters,omitempty"`
   270  	// LocationData: Contains all kinds of physical location definitions for this
   271  	// asset.
   272  	LocationData []*LocationData `json:"locationData,omitempty"`
   273  	// ParentAsset: Defines parents assets if any in order to allow later
   274  	// generation of child_asset_location data via child assets.
   275  	ParentAsset []*CloudAsset `json:"parentAsset,omitempty"`
   276  	// ForceSendFields is a list of field names (e.g. "Expected") to
   277  	// unconditionally include in API requests. By default, fields with empty or
   278  	// default values are omitted from API requests. See
   279  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   280  	// details.
   281  	ForceSendFields []string `json:"-"`
   282  	// NullFields is a list of field names (e.g. "Expected") to include in API
   283  	// requests with the JSON null value. By default, fields with empty values are
   284  	// omitted from API requests. See
   285  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   286  	NullFields []string `json:"-"`
   287  }
   288  
   289  func (s *AssetLocation) MarshalJSON() ([]byte, error) {
   290  	type NoMethod AssetLocation
   291  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   292  }
   293  
   294  // BigQueryDestination: Message describing big query destination
   295  type BigQueryDestination struct {
   296  	// CreateNewResultsTable: Optional. determine if results will be saved in a new
   297  	// table
   298  	CreateNewResultsTable bool `json:"createNewResultsTable,omitempty"`
   299  	// DestinationDataset: Optional. destination dataset to save evaluation results
   300  	DestinationDataset string `json:"destinationDataset,omitempty"`
   301  	// ForceSendFields is a list of field names (e.g. "CreateNewResultsTable") to
   302  	// unconditionally include in API requests. By default, fields with empty or
   303  	// default values are omitted from API requests. See
   304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   305  	// details.
   306  	ForceSendFields []string `json:"-"`
   307  	// NullFields is a list of field names (e.g. "CreateNewResultsTable") to
   308  	// include in API requests with the JSON null value. By default, fields with
   309  	// empty values are omitted from API requests. See
   310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   311  	NullFields []string `json:"-"`
   312  }
   313  
   314  func (s *BigQueryDestination) MarshalJSON() ([]byte, error) {
   315  	type NoMethod BigQueryDestination
   316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   317  }
   318  
   319  // BlobstoreLocation: Policy ID that identified data placement in Blobstore as
   320  // per go/blobstore-user-guide#data-metadata-placement-and-failure-domains
   321  type BlobstoreLocation struct {
   322  	PolicyId []string `json:"policyId,omitempty"`
   323  	// ForceSendFields is a list of field names (e.g. "PolicyId") to
   324  	// unconditionally include in API requests. By default, fields with empty or
   325  	// default values are omitted from API requests. See
   326  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   327  	// details.
   328  	ForceSendFields []string `json:"-"`
   329  	// NullFields is a list of field names (e.g. "PolicyId") to include in API
   330  	// requests with the JSON null value. By default, fields with empty values are
   331  	// omitted from API requests. See
   332  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   333  	NullFields []string `json:"-"`
   334  }
   335  
   336  func (s *BlobstoreLocation) MarshalJSON() ([]byte, error) {
   337  	type NoMethod BlobstoreLocation
   338  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   339  }
   340  
   341  // CancelOperationRequest: The request message for Operations.CancelOperation.
   342  type CancelOperationRequest struct {
   343  }
   344  
   345  type CloudAsset struct {
   346  	AssetName string `json:"assetName,omitempty"`
   347  	AssetType string `json:"assetType,omitempty"`
   348  	// ForceSendFields is a list of field names (e.g. "AssetName") to
   349  	// unconditionally include in API requests. By default, fields with empty or
   350  	// default values are omitted from API requests. See
   351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   352  	// details.
   353  	ForceSendFields []string `json:"-"`
   354  	// NullFields is a list of field names (e.g. "AssetName") to include in API
   355  	// requests with the JSON null value. By default, fields with empty values are
   356  	// omitted from API requests. See
   357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   358  	NullFields []string `json:"-"`
   359  }
   360  
   361  func (s *CloudAsset) MarshalJSON() ([]byte, error) {
   362  	type NoMethod CloudAsset
   363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   364  }
   365  
   366  type CloudAssetComposition struct {
   367  	ChildAsset []*CloudAsset `json:"childAsset,omitempty"`
   368  	// ForceSendFields is a list of field names (e.g. "ChildAsset") to
   369  	// unconditionally include in API requests. By default, fields with empty or
   370  	// default values are omitted from API requests. See
   371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   372  	// details.
   373  	ForceSendFields []string `json:"-"`
   374  	// NullFields is a list of field names (e.g. "ChildAsset") to include in API
   375  	// requests with the JSON null value. By default, fields with empty values are
   376  	// omitted from API requests. See
   377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   378  	NullFields []string `json:"-"`
   379  }
   380  
   381  func (s *CloudAssetComposition) MarshalJSON() ([]byte, error) {
   382  	type NoMethod CloudAssetComposition
   383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   384  }
   385  
   386  type DirectLocationAssignment struct {
   387  	Location []*LocationAssignment `json:"location,omitempty"`
   388  	// ForceSendFields is a list of field names (e.g. "Location") to
   389  	// unconditionally include in API requests. By default, fields with empty or
   390  	// default values are omitted from API requests. See
   391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   392  	// details.
   393  	ForceSendFields []string `json:"-"`
   394  	// NullFields is a list of field names (e.g. "Location") to include in API
   395  	// requests with the JSON null value. By default, fields with empty values are
   396  	// omitted from API requests. See
   397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   398  	NullFields []string `json:"-"`
   399  }
   400  
   401  func (s *DirectLocationAssignment) MarshalJSON() ([]byte, error) {
   402  	type NoMethod DirectLocationAssignment
   403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   404  }
   405  
   406  // Empty: A generic empty message that you can re-use to avoid defining
   407  // duplicated empty messages in your APIs. A typical example is to use it as
   408  // the request or the response type of an API method. For instance: service Foo
   409  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   410  type Empty struct {
   411  	// ServerResponse contains the HTTP response code and headers from the server.
   412  	googleapi.ServerResponse `json:"-"`
   413  }
   414  
   415  // Evaluation: LINT.IfChange Message describing Evaluation object
   416  type Evaluation struct {
   417  	// BigQueryDestination: Optional. BigQuery destination
   418  	BigQueryDestination *BigQueryDestination `json:"bigQueryDestination,omitempty"`
   419  	// CreateTime: Output only. [Output only] Create time stamp
   420  	CreateTime string `json:"createTime,omitempty"`
   421  	// CustomRulesBucket: The Cloud Storage bucket name for custom rules.
   422  	CustomRulesBucket string `json:"customRulesBucket,omitempty"`
   423  	// Description: Description of the Evaluation
   424  	Description string `json:"description,omitempty"`
   425  	// Labels: Labels as key value pairs
   426  	Labels map[string]string `json:"labels,omitempty"`
   427  	// Name: name of resource names have the form
   428  	// 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'
   429  	Name string `json:"name,omitempty"`
   430  	// ResourceFilter: annotations as key value pairs
   431  	ResourceFilter *ResourceFilter `json:"resourceFilter,omitempty"`
   432  	// ResourceStatus: Output only. [Output only] The updated rule ids if exist.
   433  	ResourceStatus *ResourceStatus `json:"resourceStatus,omitempty"`
   434  	// RuleNames: the name of the rule
   435  	RuleNames []string `json:"ruleNames,omitempty"`
   436  	// RuleVersions: Output only. [Output only] The updated rule ids if exist.
   437  	RuleVersions []string `json:"ruleVersions,omitempty"`
   438  	// Schedule: crontab format schedule for scheduled evaluation, currently only
   439  	// support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * *
   440  	// *", "0 0 */1 * *", "0 0 */7 * *",
   441  	Schedule string `json:"schedule,omitempty"`
   442  	// UpdateTime: Output only. [Output only] Update time stamp
   443  	UpdateTime string `json:"updateTime,omitempty"`
   444  
   445  	// ServerResponse contains the HTTP response code and headers from the server.
   446  	googleapi.ServerResponse `json:"-"`
   447  	// ForceSendFields is a list of field names (e.g. "BigQueryDestination") to
   448  	// unconditionally include in API requests. By default, fields with empty or
   449  	// default values are omitted from API requests. See
   450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   451  	// details.
   452  	ForceSendFields []string `json:"-"`
   453  	// NullFields is a list of field names (e.g. "BigQueryDestination") to include
   454  	// in API requests with the JSON null value. By default, fields with empty
   455  	// values are omitted from API requests. See
   456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   457  	NullFields []string `json:"-"`
   458  }
   459  
   460  func (s *Evaluation) MarshalJSON() ([]byte, error) {
   461  	type NoMethod Evaluation
   462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   463  }
   464  
   465  // Execution: Message describing Execution object
   466  type Execution struct {
   467  	// EndTime: Output only. [Output only] End time stamp
   468  	EndTime string `json:"endTime,omitempty"`
   469  	// EvaluationId: Output only. [Output only] Evaluation ID
   470  	EvaluationId string `json:"evaluationId,omitempty"`
   471  	// ExternalDataSources: Optional. External data sources
   472  	ExternalDataSources []*ExternalDataSources `json:"externalDataSources,omitempty"`
   473  	// InventoryTime: Output only. [Output only] Inventory time stamp
   474  	InventoryTime string `json:"inventoryTime,omitempty"`
   475  	// Labels: Labels as key value pairs
   476  	Labels map[string]string `json:"labels,omitempty"`
   477  	// Name: The name of execution resource. The format is
   478  	// projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{
   479  	// execution}
   480  	Name string `json:"name,omitempty"`
   481  	// RunType: type represent whether the execution executed directly by user or
   482  	// scheduled according evaluation.schedule field.
   483  	//
   484  	// Possible values:
   485  	//   "TYPE_UNSPECIFIED" - type of execution is unspecified
   486  	//   "ONE_TIME" - type of execution is one time
   487  	//   "SCHEDULED" - type of execution is scheduled
   488  	RunType string `json:"runType,omitempty"`
   489  	// StartTime: Output only. [Output only] Start time stamp
   490  	StartTime string `json:"startTime,omitempty"`
   491  	// State: Output only. [Output only] State
   492  	//
   493  	// Possible values:
   494  	//   "STATE_UNSPECIFIED" - state of execution is unspecified
   495  	//   "RUNNING" - the execution is running in backend service
   496  	//   "SUCCEEDED" - the execution run success
   497  	//   "FAILED" - the execution run failed
   498  	State string `json:"state,omitempty"`
   499  
   500  	// ServerResponse contains the HTTP response code and headers from the server.
   501  	googleapi.ServerResponse `json:"-"`
   502  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
   503  	// include in API requests. By default, fields with empty or default values are
   504  	// omitted from API requests. See
   505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   506  	// details.
   507  	ForceSendFields []string `json:"-"`
   508  	// NullFields is a list of field names (e.g. "EndTime") to include in API
   509  	// requests with the JSON null value. By default, fields with empty values are
   510  	// omitted from API requests. See
   511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   512  	NullFields []string `json:"-"`
   513  }
   514  
   515  func (s *Execution) MarshalJSON() ([]byte, error) {
   516  	type NoMethod Execution
   517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   518  }
   519  
   520  // ExecutionResult: Message describing the result of an execution
   521  type ExecutionResult struct {
   522  	// DocumentationUrl: the document url of the rule
   523  	DocumentationUrl string `json:"documentationUrl,omitempty"`
   524  	// Resource: the violate resource
   525  	Resource *Resource `json:"resource,omitempty"`
   526  	// Rule: the rule which violate in execution
   527  	Rule string `json:"rule,omitempty"`
   528  	// Severity: severity of violation
   529  	Severity string `json:"severity,omitempty"`
   530  	// ViolationDetails: the details of violation in result
   531  	ViolationDetails *ViolationDetails `json:"violationDetails,omitempty"`
   532  	// ViolationMessage: the violation message of an execution
   533  	ViolationMessage string `json:"violationMessage,omitempty"`
   534  	// ForceSendFields is a list of field names (e.g. "DocumentationUrl") to
   535  	// unconditionally include in API requests. By default, fields with empty or
   536  	// default values are omitted from API requests. See
   537  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   538  	// details.
   539  	ForceSendFields []string `json:"-"`
   540  	// NullFields is a list of field names (e.g. "DocumentationUrl") to include in
   541  	// API requests with the JSON null value. By default, fields with empty values
   542  	// are omitted from API requests. See
   543  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   544  	NullFields []string `json:"-"`
   545  }
   546  
   547  func (s *ExecutionResult) MarshalJSON() ([]byte, error) {
   548  	type NoMethod ExecutionResult
   549  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   550  }
   551  
   552  // ExternalDataSources: Message for external data sources
   553  type ExternalDataSources struct {
   554  	// Name: Required. Name of external data source. The name will be used inside
   555  	// the rego/sql to refer the external data
   556  	Name string `json:"name,omitempty"`
   557  	// Type: Required. Type of external data source
   558  	//
   559  	// Possible values:
   560  	//   "TYPE_UNSPECIFIED" - Unknown type
   561  	//   "BIG_QUERY_TABLE" - BigQuery table
   562  	Type string `json:"type,omitempty"`
   563  	// Uri: Required. URI of external data source. example of bq table
   564  	// {project_ID}.{dataset_ID}.{table_ID}
   565  	Uri string `json:"uri,omitempty"`
   566  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   567  	// include in API requests. By default, fields with empty or default values are
   568  	// omitted from API requests. See
   569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   570  	// details.
   571  	ForceSendFields []string `json:"-"`
   572  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   573  	// with the JSON null value. By default, fields with empty values are omitted
   574  	// from API requests. See
   575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   576  	NullFields []string `json:"-"`
   577  }
   578  
   579  func (s *ExternalDataSources) MarshalJSON() ([]byte, error) {
   580  	type NoMethod ExternalDataSources
   581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   582  }
   583  
   584  // ExtraParameter: Defines parameters that should only be used for specific
   585  // asset types.
   586  type ExtraParameter struct {
   587  	// RegionalMigDistributionPolicy: Details about zones used by regional
   588  	// compute.googleapis.com/InstanceGroupManager to create instances.
   589  	RegionalMigDistributionPolicy *RegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"`
   590  	// ForceSendFields is a list of field names (e.g.
   591  	// "RegionalMigDistributionPolicy") to unconditionally include in API requests.
   592  	// By default, fields with empty or default values are omitted from API
   593  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
   594  	// for more details.
   595  	ForceSendFields []string `json:"-"`
   596  	// NullFields is a list of field names (e.g. "RegionalMigDistributionPolicy")
   597  	// to include in API requests with the JSON null value. By default, fields with
   598  	// empty values are omitted from API requests. See
   599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   600  	NullFields []string `json:"-"`
   601  }
   602  
   603  func (s *ExtraParameter) MarshalJSON() ([]byte, error) {
   604  	type NoMethod ExtraParameter
   605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   606  }
   607  
   608  // GceInstanceFilter: Message describing compute engine instance filter
   609  type GceInstanceFilter struct {
   610  	// ServiceAccounts: Service account of compute engine
   611  	ServiceAccounts []string `json:"serviceAccounts,omitempty"`
   612  	// ForceSendFields is a list of field names (e.g. "ServiceAccounts") to
   613  	// unconditionally include in API requests. By default, fields with empty or
   614  	// default values are omitted from API requests. See
   615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   616  	// details.
   617  	ForceSendFields []string `json:"-"`
   618  	// NullFields is a list of field names (e.g. "ServiceAccounts") to include in
   619  	// API requests with the JSON null value. By default, fields with empty values
   620  	// are omitted from API requests. See
   621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   622  	NullFields []string `json:"-"`
   623  }
   624  
   625  func (s *GceInstanceFilter) MarshalJSON() ([]byte, error) {
   626  	type NoMethod GceInstanceFilter
   627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   628  }
   629  
   630  // Insight: A presentation of host resource usage where the workload runs.
   631  type Insight struct {
   632  	// InstanceId: Required. The instance id where the insight is generated from
   633  	InstanceId string `json:"instanceId,omitempty"`
   634  	// SapDiscovery: The insights data for SAP system discovery. This is a copy of
   635  	// SAP System proto and should get updated whenever that one changes.
   636  	SapDiscovery *SapDiscovery `json:"sapDiscovery,omitempty"`
   637  	// SapValidation: The insights data for the SAP workload validation.
   638  	SapValidation *SapValidation `json:"sapValidation,omitempty"`
   639  	// SentTime: Output only. [Output only] Create time stamp
   640  	SentTime string `json:"sentTime,omitempty"`
   641  	// SqlserverValidation: The insights data for the sqlserver workload
   642  	// validation.
   643  	SqlserverValidation *SqlserverValidation `json:"sqlserverValidation,omitempty"`
   644  	// ForceSendFields is a list of field names (e.g. "InstanceId") to
   645  	// unconditionally include in API requests. By default, fields with empty or
   646  	// default values are omitted from API requests. See
   647  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   648  	// details.
   649  	ForceSendFields []string `json:"-"`
   650  	// NullFields is a list of field names (e.g. "InstanceId") to include in API
   651  	// requests with the JSON null value. By default, fields with empty values are
   652  	// omitted from API requests. See
   653  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   654  	NullFields []string `json:"-"`
   655  }
   656  
   657  func (s *Insight) MarshalJSON() ([]byte, error) {
   658  	type NoMethod Insight
   659  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   660  }
   661  
   662  type IsolationExpectations struct {
   663  	// Possible values:
   664  	//   "ZI_UNSPECIFIED"
   665  	//   "ZI_UNKNOWN" - To be used if tracking is not available
   666  	//   "ZI_NOT_REQUIRED"
   667  	//   "ZI_PREFERRED"
   668  	//   "ZI_REQUIRED"
   669  	ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"`
   670  	// Possible values:
   671  	//   "ZI_REGION_POLICY_UNSPECIFIED"
   672  	//   "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available
   673  	//   "ZI_REGION_POLICY_NOT_SET"
   674  	//   "ZI_REGION_POLICY_FAIL_OPEN"
   675  	//   "ZI_REGION_POLICY_FAIL_CLOSED"
   676  	ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"`
   677  	// Possible values:
   678  	//   "ZI_REGION_UNSPECIFIED"
   679  	//   "ZI_REGION_UNKNOWN" - To be used if tracking is not available
   680  	//   "ZI_REGION_NOT_ENABLED"
   681  	//   "ZI_REGION_ENABLED"
   682  	ZiRegionState string `json:"ziRegionState,omitempty"`
   683  	// ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and
   684  	// zi_region_state instead for setting ZI expectations as per
   685  	// go/zicy-publish-physical-location.
   686  	//
   687  	// Possible values:
   688  	//   "ZI_UNSPECIFIED"
   689  	//   "ZI_UNKNOWN" - To be used if tracking is not available
   690  	//   "ZI_NOT_REQUIRED"
   691  	//   "ZI_PREFERRED"
   692  	//   "ZI_REQUIRED"
   693  	ZoneIsolation string `json:"zoneIsolation,omitempty"`
   694  	// ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead
   695  	// for setting Zs expectations as per go/zicy-publish-physical-location.
   696  	//
   697  	// Possible values:
   698  	//   "ZS_UNSPECIFIED"
   699  	//   "ZS_UNKNOWN" - To be used if tracking is not available
   700  	//   "ZS_NOT_REQUIRED"
   701  	//   "ZS_REQUIRED"
   702  	ZoneSeparation string `json:"zoneSeparation,omitempty"`
   703  	// Possible values:
   704  	//   "ZS_UNSPECIFIED"
   705  	//   "ZS_UNKNOWN" - To be used if tracking is not available
   706  	//   "ZS_NOT_REQUIRED"
   707  	//   "ZS_REQUIRED"
   708  	ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"`
   709  	// Possible values:
   710  	//   "ZS_REGION_UNSPECIFIED"
   711  	//   "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not
   712  	// available
   713  	//   "ZS_REGION_NOT_ENABLED"
   714  	//   "ZS_REGION_ENABLED"
   715  	ZsRegionState string `json:"zsRegionState,omitempty"`
   716  	// ForceSendFields is a list of field names (e.g. "ZiOrgPolicy") to
   717  	// unconditionally include in API requests. By default, fields with empty or
   718  	// default values are omitted from API requests. See
   719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   720  	// details.
   721  	ForceSendFields []string `json:"-"`
   722  	// NullFields is a list of field names (e.g. "ZiOrgPolicy") to include in API
   723  	// requests with the JSON null value. By default, fields with empty values are
   724  	// omitted from API requests. See
   725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   726  	NullFields []string `json:"-"`
   727  }
   728  
   729  func (s *IsolationExpectations) MarshalJSON() ([]byte, error) {
   730  	type NoMethod IsolationExpectations
   731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   732  }
   733  
   734  // ListEvaluationsResponse: Message for response to listing Evaluations
   735  type ListEvaluationsResponse struct {
   736  	// Evaluations: The list of Evaluation
   737  	Evaluations []*Evaluation `json:"evaluations,omitempty"`
   738  	// NextPageToken: A token identifying a page of results the server should
   739  	// return.
   740  	NextPageToken string `json:"nextPageToken,omitempty"`
   741  	// Unreachable: Locations that could not be reached.
   742  	Unreachable []string `json:"unreachable,omitempty"`
   743  
   744  	// ServerResponse contains the HTTP response code and headers from the server.
   745  	googleapi.ServerResponse `json:"-"`
   746  	// ForceSendFields is a list of field names (e.g. "Evaluations") to
   747  	// unconditionally include in API requests. By default, fields with empty or
   748  	// default values are omitted from API requests. See
   749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   750  	// details.
   751  	ForceSendFields []string `json:"-"`
   752  	// NullFields is a list of field names (e.g. "Evaluations") to include in API
   753  	// requests with the JSON null value. By default, fields with empty values are
   754  	// omitted from API requests. See
   755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   756  	NullFields []string `json:"-"`
   757  }
   758  
   759  func (s *ListEvaluationsResponse) MarshalJSON() ([]byte, error) {
   760  	type NoMethod ListEvaluationsResponse
   761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   762  }
   763  
   764  // ListExecutionResultsResponse: Message for response of list execution results
   765  type ListExecutionResultsResponse struct {
   766  	// ExecutionResults: The versions from the specified publisher.
   767  	ExecutionResults []*ExecutionResult `json:"executionResults,omitempty"`
   768  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   769  	// next page. If this field is omitted, there are no subsequent pages.
   770  	NextPageToken string `json:"nextPageToken,omitempty"`
   771  
   772  	// ServerResponse contains the HTTP response code and headers from the server.
   773  	googleapi.ServerResponse `json:"-"`
   774  	// ForceSendFields is a list of field names (e.g. "ExecutionResults") to
   775  	// unconditionally include in API requests. By default, fields with empty or
   776  	// default values are omitted from API requests. See
   777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   778  	// details.
   779  	ForceSendFields []string `json:"-"`
   780  	// NullFields is a list of field names (e.g. "ExecutionResults") to include in
   781  	// API requests with the JSON null value. By default, fields with empty values
   782  	// are omitted from API requests. See
   783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   784  	NullFields []string `json:"-"`
   785  }
   786  
   787  func (s *ListExecutionResultsResponse) MarshalJSON() ([]byte, error) {
   788  	type NoMethod ListExecutionResultsResponse
   789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   790  }
   791  
   792  // ListExecutionsResponse: Message for response to listing Executions
   793  type ListExecutionsResponse struct {
   794  	// Executions: The list of Execution
   795  	Executions []*Execution `json:"executions,omitempty"`
   796  	// NextPageToken: A token identifying a page of results the server should
   797  	// return.
   798  	NextPageToken string `json:"nextPageToken,omitempty"`
   799  	// Unreachable: Locations that could not be reached.
   800  	Unreachable []string `json:"unreachable,omitempty"`
   801  
   802  	// ServerResponse contains the HTTP response code and headers from the server.
   803  	googleapi.ServerResponse `json:"-"`
   804  	// ForceSendFields is a list of field names (e.g. "Executions") to
   805  	// unconditionally include in API requests. By default, fields with empty or
   806  	// default values are omitted from API requests. See
   807  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   808  	// details.
   809  	ForceSendFields []string `json:"-"`
   810  	// NullFields is a list of field names (e.g. "Executions") to include in API
   811  	// requests with the JSON null value. By default, fields with empty values are
   812  	// omitted from API requests. See
   813  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   814  	NullFields []string `json:"-"`
   815  }
   816  
   817  func (s *ListExecutionsResponse) MarshalJSON() ([]byte, error) {
   818  	type NoMethod ListExecutionsResponse
   819  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   820  }
   821  
   822  // ListLocationsResponse: The response message for Locations.ListLocations.
   823  type ListLocationsResponse struct {
   824  	// Locations: A list of locations that matches the specified filter in the
   825  	// request.
   826  	Locations []*Location `json:"locations,omitempty"`
   827  	// NextPageToken: The standard List next-page token.
   828  	NextPageToken string `json:"nextPageToken,omitempty"`
   829  
   830  	// ServerResponse contains the HTTP response code and headers from the server.
   831  	googleapi.ServerResponse `json:"-"`
   832  	// ForceSendFields is a list of field names (e.g. "Locations") to
   833  	// unconditionally include in API requests. By default, fields with empty or
   834  	// default values are omitted from API requests. See
   835  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   836  	// details.
   837  	ForceSendFields []string `json:"-"`
   838  	// NullFields is a list of field names (e.g. "Locations") to include in API
   839  	// requests with the JSON null value. By default, fields with empty values are
   840  	// omitted from API requests. See
   841  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   842  	NullFields []string `json:"-"`
   843  }
   844  
   845  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
   846  	type NoMethod ListLocationsResponse
   847  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   848  }
   849  
   850  // ListOperationsResponse: The response message for Operations.ListOperations.
   851  type ListOperationsResponse struct {
   852  	// NextPageToken: The standard List next-page token.
   853  	NextPageToken string `json:"nextPageToken,omitempty"`
   854  	// Operations: A list of operations that matches the specified filter in the
   855  	// request.
   856  	Operations []*Operation `json:"operations,omitempty"`
   857  
   858  	// ServerResponse contains the HTTP response code and headers from the server.
   859  	googleapi.ServerResponse `json:"-"`
   860  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   861  	// unconditionally include in API requests. By default, fields with empty or
   862  	// default values are omitted from API requests. See
   863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   864  	// details.
   865  	ForceSendFields []string `json:"-"`
   866  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   867  	// requests with the JSON null value. By default, fields with empty values are
   868  	// omitted from API requests. See
   869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   870  	NullFields []string `json:"-"`
   871  }
   872  
   873  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
   874  	type NoMethod ListOperationsResponse
   875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   876  }
   877  
   878  // ListRulesResponse: Mesesage of response of list rules
   879  type ListRulesResponse struct {
   880  	// NextPageToken: A token identifying a page of results the server should
   881  	// return.
   882  	NextPageToken string `json:"nextPageToken,omitempty"`
   883  	// Rules: all rules in response
   884  	Rules []*Rule `json:"rules,omitempty"`
   885  
   886  	// ServerResponse contains the HTTP response code and headers from the server.
   887  	googleapi.ServerResponse `json:"-"`
   888  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   889  	// unconditionally include in API requests. By default, fields with empty or
   890  	// default values are omitted from API requests. See
   891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   892  	// details.
   893  	ForceSendFields []string `json:"-"`
   894  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   895  	// requests with the JSON null value. By default, fields with empty values are
   896  	// omitted from API requests. See
   897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   898  	NullFields []string `json:"-"`
   899  }
   900  
   901  func (s *ListRulesResponse) MarshalJSON() ([]byte, error) {
   902  	type NoMethod ListRulesResponse
   903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   904  }
   905  
   906  // ListScannedResourcesResponse: Message for response to list scanned resources
   907  type ListScannedResourcesResponse struct {
   908  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   909  	// next page. If this field is omitted, there are no subsequent pages.
   910  	NextPageToken string `json:"nextPageToken,omitempty"`
   911  	// ScannedResources: All scanned resources in response
   912  	ScannedResources []*ScannedResource `json:"scannedResources,omitempty"`
   913  
   914  	// ServerResponse contains the HTTP response code and headers from the server.
   915  	googleapi.ServerResponse `json:"-"`
   916  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   917  	// unconditionally include in API requests. By default, fields with empty or
   918  	// default values are omitted from API requests. See
   919  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   920  	// details.
   921  	ForceSendFields []string `json:"-"`
   922  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   923  	// requests with the JSON null value. By default, fields with empty values are
   924  	// omitted from API requests. See
   925  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   926  	NullFields []string `json:"-"`
   927  }
   928  
   929  func (s *ListScannedResourcesResponse) MarshalJSON() ([]byte, error) {
   930  	type NoMethod ListScannedResourcesResponse
   931  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   932  }
   933  
   934  // Location: A resource that represents a Google Cloud location.
   935  type Location struct {
   936  	// DisplayName: The friendly name for this location, typically a nearby city
   937  	// name. For example, "Tokyo".
   938  	DisplayName string `json:"displayName,omitempty"`
   939  	// Labels: Cross-service attributes for the location. For example
   940  	// {"cloud.googleapis.com/region": "us-east1"}
   941  	Labels map[string]string `json:"labels,omitempty"`
   942  	// LocationId: The canonical id for this location. For example: "us-east1".
   943  	LocationId string `json:"locationId,omitempty"`
   944  	// Metadata: Service-specific metadata. For example the available capacity at
   945  	// the given location.
   946  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
   947  	// Name: Resource name for the location, which may vary between
   948  	// implementations. For example:
   949  	// "projects/example-project/locations/us-east1"
   950  	Name string `json:"name,omitempty"`
   951  
   952  	// ServerResponse contains the HTTP response code and headers from the server.
   953  	googleapi.ServerResponse `json:"-"`
   954  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
   955  	// unconditionally include in API requests. By default, fields with empty or
   956  	// default values are omitted from API requests. See
   957  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   958  	// details.
   959  	ForceSendFields []string `json:"-"`
   960  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
   961  	// requests with the JSON null value. By default, fields with empty values are
   962  	// omitted from API requests. See
   963  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   964  	NullFields []string `json:"-"`
   965  }
   966  
   967  func (s *Location) MarshalJSON() ([]byte, error) {
   968  	type NoMethod Location
   969  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   970  }
   971  
   972  type LocationAssignment struct {
   973  	Location string `json:"location,omitempty"`
   974  	// Possible values:
   975  	//   "UNSPECIFIED"
   976  	//   "CLUSTER" - 1-10: Physical failure domains.
   977  	//   "POP"
   978  	//   "CLOUD_ZONE" - 11-20: Logical failure domains.
   979  	//   "CLOUD_REGION"
   980  	//   "MULTI_REGION_GEO"
   981  	//   "MULTI_REGION_JURISDICTION"
   982  	//   "GLOBAL"
   983  	//   "OTHER"
   984  	LocationType string `json:"locationType,omitempty"`
   985  	// ForceSendFields is a list of field names (e.g. "Location") to
   986  	// unconditionally include in API requests. By default, fields with empty or
   987  	// default values are omitted from API requests. See
   988  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   989  	// details.
   990  	ForceSendFields []string `json:"-"`
   991  	// NullFields is a list of field names (e.g. "Location") to include in API
   992  	// requests with the JSON null value. By default, fields with empty values are
   993  	// omitted from API requests. See
   994  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   995  	NullFields []string `json:"-"`
   996  }
   997  
   998  func (s *LocationAssignment) MarshalJSON() ([]byte, error) {
   999  	type NoMethod LocationAssignment
  1000  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1001  }
  1002  
  1003  type LocationData struct {
  1004  	BlobstoreLocation  *BlobstoreLocation        `json:"blobstoreLocation,omitempty"`
  1005  	ChildAssetLocation *CloudAssetComposition    `json:"childAssetLocation,omitempty"`
  1006  	DirectLocation     *DirectLocationAssignment `json:"directLocation,omitempty"`
  1007  	GcpProjectProxy    *TenantProjectProxy       `json:"gcpProjectProxy,omitempty"`
  1008  	SpannerLocation    *SpannerLocation          `json:"spannerLocation,omitempty"`
  1009  	// ForceSendFields is a list of field names (e.g. "BlobstoreLocation") to
  1010  	// unconditionally include in API requests. By default, fields with empty or
  1011  	// default values are omitted from API requests. See
  1012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1013  	// details.
  1014  	ForceSendFields []string `json:"-"`
  1015  	// NullFields is a list of field names (e.g. "BlobstoreLocation") to include in
  1016  	// API requests with the JSON null value. By default, fields with empty values
  1017  	// are omitted from API requests. See
  1018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1019  	NullFields []string `json:"-"`
  1020  }
  1021  
  1022  func (s *LocationData) MarshalJSON() ([]byte, error) {
  1023  	type NoMethod LocationData
  1024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1025  }
  1026  
  1027  // Operation: This resource represents a long-running operation that is the
  1028  // result of a network API call.
  1029  type Operation struct {
  1030  	// Done: If the value is `false`, it means the operation is still in progress.
  1031  	// If `true`, the operation is completed, and either `error` or `response` is
  1032  	// available.
  1033  	Done bool `json:"done,omitempty"`
  1034  	// Error: The error result of the operation in case of failure or cancellation.
  1035  	Error *Status `json:"error,omitempty"`
  1036  	// Metadata: Service-specific metadata associated with the operation. It
  1037  	// typically contains progress information and common metadata such as create
  1038  	// time. Some services might not provide such metadata. Any method that returns
  1039  	// a long-running operation should document the metadata type, if any.
  1040  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  1041  	// Name: The server-assigned name, which is only unique within the same service
  1042  	// that originally returns it. If you use the default HTTP mapping, the `name`
  1043  	// should be a resource name ending with `operations/{unique_id}`.
  1044  	Name string `json:"name,omitempty"`
  1045  	// Response: The normal, successful response of the operation. If the original
  1046  	// method returns no data on success, such as `Delete`, the response is
  1047  	// `google.protobuf.Empty`. If the original method is standard
  1048  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  1049  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  1050  	// original method name. For example, if the original method name is
  1051  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  1052  	Response googleapi.RawMessage `json:"response,omitempty"`
  1053  
  1054  	// ServerResponse contains the HTTP response code and headers from the server.
  1055  	googleapi.ServerResponse `json:"-"`
  1056  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  1057  	// include in API requests. By default, fields with empty or default values are
  1058  	// omitted from API requests. See
  1059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1060  	// details.
  1061  	ForceSendFields []string `json:"-"`
  1062  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  1063  	// with the JSON null value. By default, fields with empty values are omitted
  1064  	// from API requests. See
  1065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1066  	NullFields []string `json:"-"`
  1067  }
  1068  
  1069  func (s *Operation) MarshalJSON() ([]byte, error) {
  1070  	type NoMethod Operation
  1071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1072  }
  1073  
  1074  // OperationMetadata: Represents the metadata of the long-running operation.
  1075  type OperationMetadata struct {
  1076  	// ApiVersion: Output only. API version used to start the operation.
  1077  	ApiVersion string `json:"apiVersion,omitempty"`
  1078  	// CreateTime: Output only. The time the operation was created.
  1079  	CreateTime string `json:"createTime,omitempty"`
  1080  	// EndTime: Output only. The time the operation finished running.
  1081  	EndTime string `json:"endTime,omitempty"`
  1082  	// RequestedCancellation: Output only. Identifies whether the user has
  1083  	// requested cancellation of the operation. Operations that have been cancelled
  1084  	// successfully have Operation.error value with a google.rpc.Status.code of 1,
  1085  	// corresponding to `Code.CANCELLED`.
  1086  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  1087  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  1088  	StatusMessage string `json:"statusMessage,omitempty"`
  1089  	// Target: Output only. Server-defined resource path for the target of the
  1090  	// operation.
  1091  	Target string `json:"target,omitempty"`
  1092  	// Verb: Output only. Name of the verb executed by the operation.
  1093  	Verb string `json:"verb,omitempty"`
  1094  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  1095  	// unconditionally include in API requests. By default, fields with empty or
  1096  	// default values are omitted from API requests. See
  1097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1098  	// details.
  1099  	ForceSendFields []string `json:"-"`
  1100  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  1101  	// requests with the JSON null value. By default, fields with empty values are
  1102  	// omitted from API requests. See
  1103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1104  	NullFields []string `json:"-"`
  1105  }
  1106  
  1107  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  1108  	type NoMethod OperationMetadata
  1109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1110  }
  1111  
  1112  // RegionalMigDistributionPolicy: To be used for specifying the intended
  1113  // distribution of regional compute.googleapis.com/InstanceGroupManager
  1114  // instances
  1115  type RegionalMigDistributionPolicy struct {
  1116  	// TargetShape: The shape in which the group converges around distribution of
  1117  	// resources. Instance of proto2 enum
  1118  	TargetShape int64 `json:"targetShape,omitempty"`
  1119  	// Zones: Cloud zones used by regional MIG to create instances.
  1120  	Zones []*ZoneConfiguration `json:"zones,omitempty"`
  1121  	// ForceSendFields is a list of field names (e.g. "TargetShape") to
  1122  	// unconditionally include in API requests. By default, fields with empty or
  1123  	// default values are omitted from API requests. See
  1124  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1125  	// details.
  1126  	ForceSendFields []string `json:"-"`
  1127  	// NullFields is a list of field names (e.g. "TargetShape") to include in API
  1128  	// requests with the JSON null value. By default, fields with empty values are
  1129  	// omitted from API requests. See
  1130  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1131  	NullFields []string `json:"-"`
  1132  }
  1133  
  1134  func (s *RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) {
  1135  	type NoMethod RegionalMigDistributionPolicy
  1136  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1137  }
  1138  
  1139  // Resource: Message represent resource in execution result
  1140  type Resource struct {
  1141  	// Name: the name of the resource
  1142  	Name string `json:"name,omitempty"`
  1143  	// ServiceAccount: the service account accosiate with resource
  1144  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1145  	// Type: the type of reresource
  1146  	Type string `json:"type,omitempty"`
  1147  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1148  	// include in API requests. By default, fields with empty or default values are
  1149  	// omitted from API requests. See
  1150  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1151  	// details.
  1152  	ForceSendFields []string `json:"-"`
  1153  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1154  	// with the JSON null value. By default, fields with empty values are omitted
  1155  	// from API requests. See
  1156  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1157  	NullFields []string `json:"-"`
  1158  }
  1159  
  1160  func (s *Resource) MarshalJSON() ([]byte, error) {
  1161  	type NoMethod Resource
  1162  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1163  }
  1164  
  1165  // ResourceFilter: Message describing resource filters
  1166  type ResourceFilter struct {
  1167  	// GceInstanceFilter: Filter compute engine resource
  1168  	GceInstanceFilter *GceInstanceFilter `json:"gceInstanceFilter,omitempty"`
  1169  	// InclusionLabels: The label used for filter resource
  1170  	InclusionLabels map[string]string `json:"inclusionLabels,omitempty"`
  1171  	// ResourceIdPatterns: The id pattern for filter resource
  1172  	ResourceIdPatterns []string `json:"resourceIdPatterns,omitempty"`
  1173  	// Scopes: The scopes of evaluation resource
  1174  	Scopes []string `json:"scopes,omitempty"`
  1175  	// ForceSendFields is a list of field names (e.g. "GceInstanceFilter") to
  1176  	// unconditionally include in API requests. By default, fields with empty or
  1177  	// default values are omitted from API requests. See
  1178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1179  	// details.
  1180  	ForceSendFields []string `json:"-"`
  1181  	// NullFields is a list of field names (e.g. "GceInstanceFilter") to include in
  1182  	// API requests with the JSON null value. By default, fields with empty values
  1183  	// are omitted from API requests. See
  1184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1185  	NullFields []string `json:"-"`
  1186  }
  1187  
  1188  func (s *ResourceFilter) MarshalJSON() ([]byte, error) {
  1189  	type NoMethod ResourceFilter
  1190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1191  }
  1192  
  1193  // ResourceStatus: Message describing resource status
  1194  type ResourceStatus struct {
  1195  	// RulesNewerVersions: Historical: Used before 2023-05-22 the new version of
  1196  	// rule id if exists
  1197  	RulesNewerVersions []string `json:"rulesNewerVersions,omitempty"`
  1198  	// State: State of the resource
  1199  	//
  1200  	// Possible values:
  1201  	//   "STATE_UNSPECIFIED" - The state has not been populated in this message.
  1202  	//   "CREATING" - Resource has an active Create operation.
  1203  	//   "ACTIVE" - Resource has no outstanding operations on it or has active
  1204  	// Update operations.
  1205  	//   "DELETING" - Resource has an active Delete operation.
  1206  	State string `json:"state,omitempty"`
  1207  	// ForceSendFields is a list of field names (e.g. "RulesNewerVersions") to
  1208  	// unconditionally include in API requests. By default, fields with empty or
  1209  	// default values are omitted from API requests. See
  1210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1211  	// details.
  1212  	ForceSendFields []string `json:"-"`
  1213  	// NullFields is a list of field names (e.g. "RulesNewerVersions") to include
  1214  	// in API requests with the JSON null value. By default, fields with empty
  1215  	// values are omitted from API requests. See
  1216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1217  	NullFields []string `json:"-"`
  1218  }
  1219  
  1220  func (s *ResourceStatus) MarshalJSON() ([]byte, error) {
  1221  	type NoMethod ResourceStatus
  1222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1223  }
  1224  
  1225  // Rule: Message represent a rule
  1226  type Rule struct {
  1227  	// Description: descrite rule in plain language
  1228  	Description string `json:"description,omitempty"`
  1229  	// DisplayName: the name display in UI
  1230  	DisplayName string `json:"displayName,omitempty"`
  1231  	// ErrorMessage: the message template for rule
  1232  	ErrorMessage string `json:"errorMessage,omitempty"`
  1233  	// Name: rule name
  1234  	Name string `json:"name,omitempty"`
  1235  	// PrimaryCategory: the primary category
  1236  	PrimaryCategory string `json:"primaryCategory,omitempty"`
  1237  	// Remediation: the remediation for the rule
  1238  	Remediation string `json:"remediation,omitempty"`
  1239  	// RevisionId: Output only. the version of the rule
  1240  	RevisionId string `json:"revisionId,omitempty"`
  1241  	// SecondaryCategory: the secondary category
  1242  	SecondaryCategory string `json:"secondaryCategory,omitempty"`
  1243  	// Severity: the severity of the rule
  1244  	Severity string `json:"severity,omitempty"`
  1245  	// Tags: List of user-defined tags
  1246  	Tags []string `json:"tags,omitempty"`
  1247  	// Uri: the docuement url for the rule
  1248  	Uri string `json:"uri,omitempty"`
  1249  	// ForceSendFields is a list of field names (e.g. "Description") to
  1250  	// unconditionally include in API requests. By default, fields with empty or
  1251  	// default values are omitted from API requests. See
  1252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1253  	// details.
  1254  	ForceSendFields []string `json:"-"`
  1255  	// NullFields is a list of field names (e.g. "Description") to include in API
  1256  	// requests with the JSON null value. By default, fields with empty values are
  1257  	// omitted from API requests. See
  1258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1259  	NullFields []string `json:"-"`
  1260  }
  1261  
  1262  func (s *Rule) MarshalJSON() ([]byte, error) {
  1263  	type NoMethod Rule
  1264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1265  }
  1266  
  1267  // RunEvaluationRequest: Message for creating a Execution
  1268  type RunEvaluationRequest struct {
  1269  	// Execution: Required. The resource being created
  1270  	Execution *Execution `json:"execution,omitempty"`
  1271  	// ExecutionId: Required. Id of the requesting object If auto-generating Id
  1272  	// server-side, remove this field and execution_id from the method_signature of
  1273  	// Create RPC
  1274  	ExecutionId string `json:"executionId,omitempty"`
  1275  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  1276  	// unique request ID so that if you must retry your request, the server will
  1277  	// know to ignore the request if it has already been completed. The server will
  1278  	// guarantee that for at least 60 minutes since the first request. For example,
  1279  	// consider a situation where you make an initial request and the request times
  1280  	// out. If you make the request again with the same request ID, the server can
  1281  	// check if original operation with the same request ID was received, and if
  1282  	// so, will ignore the second request. This prevents clients from accidentally
  1283  	// creating duplicate commitments. The request ID must be a valid UUID with the
  1284  	// exception that zero UUID is not supported
  1285  	// (00000000-0000-0000-0000-000000000000).
  1286  	RequestId string `json:"requestId,omitempty"`
  1287  	// ForceSendFields is a list of field names (e.g. "Execution") to
  1288  	// unconditionally include in API requests. By default, fields with empty or
  1289  	// default values are omitted from API requests. See
  1290  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1291  	// details.
  1292  	ForceSendFields []string `json:"-"`
  1293  	// NullFields is a list of field names (e.g. "Execution") to include in API
  1294  	// requests with the JSON null value. By default, fields with empty values are
  1295  	// omitted from API requests. See
  1296  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1297  	NullFields []string `json:"-"`
  1298  }
  1299  
  1300  func (s *RunEvaluationRequest) MarshalJSON() ([]byte, error) {
  1301  	type NoMethod RunEvaluationRequest
  1302  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1303  }
  1304  
  1305  // SapDiscovery: The schema of SAP system discovery data.
  1306  type SapDiscovery struct {
  1307  	// ApplicationLayer: Optional. An SAP system may run without an application
  1308  	// layer.
  1309  	ApplicationLayer *SapDiscoveryComponent `json:"applicationLayer,omitempty"`
  1310  	// DatabaseLayer: Required. An SAP System must have a database.
  1311  	DatabaseLayer *SapDiscoveryComponent `json:"databaseLayer,omitempty"`
  1312  	// Metadata: Optional. The metadata for SAP system discovery data.
  1313  	Metadata *SapDiscoveryMetadata `json:"metadata,omitempty"`
  1314  	// ProjectNumber: Optional. The GCP project number that this SapSystem belongs
  1315  	// to.
  1316  	ProjectNumber string `json:"projectNumber,omitempty"`
  1317  	// SystemId: Output only. A combination of database SID, database instance URI
  1318  	// and tenant DB name to make a unique identifier per-system.
  1319  	SystemId string `json:"systemId,omitempty"`
  1320  	// UpdateTime: Required. Unix timestamp this system has been updated last.
  1321  	UpdateTime string `json:"updateTime,omitempty"`
  1322  	// WorkloadProperties: Optional. The properties of the workload.
  1323  	WorkloadProperties *SapDiscoveryWorkloadProperties `json:"workloadProperties,omitempty"`
  1324  	// ForceSendFields is a list of field names (e.g. "ApplicationLayer") to
  1325  	// unconditionally include in API requests. By default, fields with empty or
  1326  	// default values are omitted from API requests. See
  1327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1328  	// details.
  1329  	ForceSendFields []string `json:"-"`
  1330  	// NullFields is a list of field names (e.g. "ApplicationLayer") to include in
  1331  	// API requests with the JSON null value. By default, fields with empty values
  1332  	// are omitted from API requests. See
  1333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1334  	NullFields []string `json:"-"`
  1335  }
  1336  
  1337  func (s *SapDiscovery) MarshalJSON() ([]byte, error) {
  1338  	type NoMethod SapDiscovery
  1339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1340  }
  1341  
  1342  // SapDiscoveryComponent: Message describing the system component.
  1343  type SapDiscoveryComponent struct {
  1344  	// ApplicationProperties: Optional. The component is a SAP application.
  1345  	ApplicationProperties *SapDiscoveryComponentApplicationProperties `json:"applicationProperties,omitempty"`
  1346  	// DatabaseProperties: Optional. The component is a SAP database.
  1347  	DatabaseProperties *SapDiscoveryComponentDatabaseProperties `json:"databaseProperties,omitempty"`
  1348  	// HaHosts: Optional. A list of host URIs that are part of the HA configuration
  1349  	// if present. An empty list indicates the component is not configured for HA.
  1350  	HaHosts []string `json:"haHosts,omitempty"`
  1351  	// HostProject: Required. Pantheon Project in which the resources reside.
  1352  	HostProject string `json:"hostProject,omitempty"`
  1353  	// Resources: Optional. The resources in a component.
  1354  	Resources []*SapDiscoveryResource `json:"resources,omitempty"`
  1355  	// Sid: Optional. The SAP identifier, used by the SAP software and helps
  1356  	// differentiate systems for customers.
  1357  	Sid string `json:"sid,omitempty"`
  1358  	// TopologyType: Optional. The detected topology of the component.
  1359  	//
  1360  	// Possible values:
  1361  	//   "TOPOLOGY_TYPE_UNSPECIFIED" - Unspecified topology.
  1362  	//   "TOPOLOGY_SCALE_UP" - A scale-up single node system.
  1363  	//   "TOPOLOGY_SCALE_OUT" - A scale-out multi-node system.
  1364  	TopologyType string `json:"topologyType,omitempty"`
  1365  	// ForceSendFields is a list of field names (e.g. "ApplicationProperties") to
  1366  	// unconditionally include in API requests. By default, fields with empty or
  1367  	// default values are omitted from API requests. See
  1368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1369  	// details.
  1370  	ForceSendFields []string `json:"-"`
  1371  	// NullFields is a list of field names (e.g. "ApplicationProperties") to
  1372  	// include in API requests with the JSON null value. By default, fields with
  1373  	// empty values are omitted from API requests. See
  1374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1375  	NullFields []string `json:"-"`
  1376  }
  1377  
  1378  func (s *SapDiscoveryComponent) MarshalJSON() ([]byte, error) {
  1379  	type NoMethod SapDiscoveryComponent
  1380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1381  }
  1382  
  1383  // SapDiscoveryComponentApplicationProperties: A set of properties describing
  1384  // an SAP Application layer.
  1385  type SapDiscoveryComponentApplicationProperties struct {
  1386  	// Abap: Optional. Indicates whether this is a Java or ABAP Netweaver instance.
  1387  	// true means it is ABAP, false means it is Java.
  1388  	Abap bool `json:"abap,omitempty"`
  1389  	// AppInstanceNumber: Optional. Instance number of the SAP application
  1390  	// instance.
  1391  	AppInstanceNumber string `json:"appInstanceNumber,omitempty"`
  1392  	// ApplicationType: Required. Type of the application. Netweaver, etc.
  1393  	//
  1394  	// Possible values:
  1395  	//   "APPLICATION_TYPE_UNSPECIFIED" - Unspecified application type
  1396  	//   "NETWEAVER" - SAP Netweaver
  1397  	ApplicationType string `json:"applicationType,omitempty"`
  1398  	// AscsInstanceNumber: Optional. Instance number of the ASCS instance.
  1399  	AscsInstanceNumber string `json:"ascsInstanceNumber,omitempty"`
  1400  	// AscsUri: Optional. Resource URI of the recognized ASCS host of the
  1401  	// application.
  1402  	AscsUri string `json:"ascsUri,omitempty"`
  1403  	// ErsInstanceNumber: Optional. Instance number of the ERS instance.
  1404  	ErsInstanceNumber string `json:"ersInstanceNumber,omitempty"`
  1405  	// KernelVersion: Optional. Kernel version for Netweaver running in the system.
  1406  	KernelVersion string `json:"kernelVersion,omitempty"`
  1407  	// NfsUri: Optional. Resource URI of the recognized shared NFS of the
  1408  	// application. May be empty if the application server has only a single node.
  1409  	NfsUri string `json:"nfsUri,omitempty"`
  1410  	// ForceSendFields is a list of field names (e.g. "Abap") to unconditionally
  1411  	// include in API requests. By default, fields with empty or default values are
  1412  	// omitted from API requests. See
  1413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1414  	// details.
  1415  	ForceSendFields []string `json:"-"`
  1416  	// NullFields is a list of field names (e.g. "Abap") to include in API requests
  1417  	// with the JSON null value. By default, fields with empty values are omitted
  1418  	// from API requests. See
  1419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1420  	NullFields []string `json:"-"`
  1421  }
  1422  
  1423  func (s *SapDiscoveryComponentApplicationProperties) MarshalJSON() ([]byte, error) {
  1424  	type NoMethod SapDiscoveryComponentApplicationProperties
  1425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1426  }
  1427  
  1428  // SapDiscoveryComponentDatabaseProperties: A set of properties describing an
  1429  // SAP Database layer.
  1430  type SapDiscoveryComponentDatabaseProperties struct {
  1431  	// DatabaseSid: Optional. SID of the system database.
  1432  	DatabaseSid string `json:"databaseSid,omitempty"`
  1433  	// DatabaseType: Required. Type of the database. HANA, DB2, etc.
  1434  	//
  1435  	// Possible values:
  1436  	//   "DATABASE_TYPE_UNSPECIFIED" - Unspecified database type.
  1437  	//   "HANA" - SAP HANA
  1438  	//   "MAX_DB" - SAP MAX_DB
  1439  	//   "DB2" - IBM DB2
  1440  	DatabaseType string `json:"databaseType,omitempty"`
  1441  	// DatabaseVersion: Optional. The version of the database software running in
  1442  	// the system.
  1443  	DatabaseVersion string `json:"databaseVersion,omitempty"`
  1444  	// InstanceNumber: Optional. Instance number of the SAP instance.
  1445  	InstanceNumber string `json:"instanceNumber,omitempty"`
  1446  	// PrimaryInstanceUri: Required. URI of the recognized primary instance of the
  1447  	// database.
  1448  	PrimaryInstanceUri string `json:"primaryInstanceUri,omitempty"`
  1449  	// SharedNfsUri: Optional. URI of the recognized shared NFS of the database.
  1450  	// May be empty if the database has only a single node.
  1451  	SharedNfsUri string `json:"sharedNfsUri,omitempty"`
  1452  	// ForceSendFields is a list of field names (e.g. "DatabaseSid") to
  1453  	// unconditionally include in API requests. By default, fields with empty or
  1454  	// default values are omitted from API requests. See
  1455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1456  	// details.
  1457  	ForceSendFields []string `json:"-"`
  1458  	// NullFields is a list of field names (e.g. "DatabaseSid") to include in API
  1459  	// requests with the JSON null value. By default, fields with empty values are
  1460  	// omitted from API requests. See
  1461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1462  	NullFields []string `json:"-"`
  1463  }
  1464  
  1465  func (s *SapDiscoveryComponentDatabaseProperties) MarshalJSON() ([]byte, error) {
  1466  	type NoMethod SapDiscoveryComponentDatabaseProperties
  1467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1468  }
  1469  
  1470  // SapDiscoveryMetadata: Message describing SAP discovery system metadata
  1471  type SapDiscoveryMetadata struct {
  1472  	// CustomerRegion: Optional. Customer region string for customer's use. Does
  1473  	// not represent GCP region.
  1474  	CustomerRegion string `json:"customerRegion,omitempty"`
  1475  	// DefinedSystem: Optional. Customer defined, something like "E-commerce pre
  1476  	// prod"
  1477  	DefinedSystem string `json:"definedSystem,omitempty"`
  1478  	// EnvironmentType: Optional. Should be "prod", "QA", "dev", "staging", etc.
  1479  	EnvironmentType string `json:"environmentType,omitempty"`
  1480  	// SapProduct: Optional. This SAP product name
  1481  	SapProduct string `json:"sapProduct,omitempty"`
  1482  	// ForceSendFields is a list of field names (e.g. "CustomerRegion") to
  1483  	// unconditionally include in API requests. By default, fields with empty or
  1484  	// default values are omitted from API requests. See
  1485  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1486  	// details.
  1487  	ForceSendFields []string `json:"-"`
  1488  	// NullFields is a list of field names (e.g. "CustomerRegion") to include in
  1489  	// API requests with the JSON null value. By default, fields with empty values
  1490  	// are omitted from API requests. See
  1491  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1492  	NullFields []string `json:"-"`
  1493  }
  1494  
  1495  func (s *SapDiscoveryMetadata) MarshalJSON() ([]byte, error) {
  1496  	type NoMethod SapDiscoveryMetadata
  1497  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1498  }
  1499  
  1500  // SapDiscoveryResource: Message describing a resource.
  1501  type SapDiscoveryResource struct {
  1502  	// InstanceProperties: Optional. A set of properties only applying to instance
  1503  	// type resources.
  1504  	InstanceProperties *SapDiscoveryResourceInstanceProperties `json:"instanceProperties,omitempty"`
  1505  	// RelatedResources: Optional. A list of resource URIs related to this
  1506  	// resource.
  1507  	RelatedResources []string `json:"relatedResources,omitempty"`
  1508  	// ResourceKind: Required. ComputeInstance, ComputeDisk, VPC, Bare Metal
  1509  	// server, etc.
  1510  	//
  1511  	// Possible values:
  1512  	//   "RESOURCE_KIND_UNSPECIFIED" - Unspecified resource kind.
  1513  	//   "RESOURCE_KIND_INSTANCE" - This is a compute instance.
  1514  	//   "RESOURCE_KIND_DISK" - This is a compute disk.
  1515  	//   "RESOURCE_KIND_ADDRESS" - This is a compute address.
  1516  	//   "RESOURCE_KIND_FILESTORE" - This is a filestore instance.
  1517  	//   "RESOURCE_KIND_HEALTH_CHECK" - This is a compute health check.
  1518  	//   "RESOURCE_KIND_FORWARDING_RULE" - This is a compute forwarding rule.
  1519  	//   "RESOURCE_KIND_BACKEND_SERVICE" - This is a compute backend service.
  1520  	//   "RESOURCE_KIND_SUBNETWORK" - This is a compute subnetwork.
  1521  	//   "RESOURCE_KIND_NETWORK" - This is a compute network.
  1522  	//   "RESOURCE_KIND_PUBLIC_ADDRESS" - This is a public accessible IP Address.
  1523  	//   "RESOURCE_KIND_INSTANCE_GROUP" - This is a compute instance group.
  1524  	ResourceKind string `json:"resourceKind,omitempty"`
  1525  	// ResourceType: Required. The type of this resource.
  1526  	//
  1527  	// Possible values:
  1528  	//   "RESOURCE_TYPE_UNSPECIFIED" - Undefined resource type.
  1529  	//   "RESOURCE_TYPE_COMPUTE" - This is a compute resource.
  1530  	//   "RESOURCE_TYPE_STORAGE" - This a storage resource.
  1531  	//   "RESOURCE_TYPE_NETWORK" - This is a network resource.
  1532  	ResourceType string `json:"resourceType,omitempty"`
  1533  	// ResourceUri: Required. URI of the resource, includes project, location, and
  1534  	// name.
  1535  	ResourceUri string `json:"resourceUri,omitempty"`
  1536  	// UpdateTime: Required. Unix timestamp of when this resource last had its
  1537  	// discovery data updated.
  1538  	UpdateTime string `json:"updateTime,omitempty"`
  1539  	// ForceSendFields is a list of field names (e.g. "InstanceProperties") to
  1540  	// unconditionally include in API requests. By default, fields with empty or
  1541  	// default values are omitted from API requests. See
  1542  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1543  	// details.
  1544  	ForceSendFields []string `json:"-"`
  1545  	// NullFields is a list of field names (e.g. "InstanceProperties") to include
  1546  	// in API requests with the JSON null value. By default, fields with empty
  1547  	// values are omitted from API requests. See
  1548  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1549  	NullFields []string `json:"-"`
  1550  }
  1551  
  1552  func (s *SapDiscoveryResource) MarshalJSON() ([]byte, error) {
  1553  	type NoMethod SapDiscoveryResource
  1554  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1555  }
  1556  
  1557  // SapDiscoveryResourceInstanceProperties: A set of properties only present for
  1558  // an instance type resource
  1559  type SapDiscoveryResourceInstanceProperties struct {
  1560  	// AppInstances: Optional. App server instances on the host
  1561  	AppInstances []*SapDiscoveryResourceInstancePropertiesAppInstance `json:"appInstances,omitempty"`
  1562  	// ClusterInstances: Optional. A list of instance URIs that are part of a
  1563  	// cluster with this one.
  1564  	ClusterInstances []string `json:"clusterInstances,omitempty"`
  1565  	// InstanceNumber: Optional. The VM's instance number.
  1566  	InstanceNumber int64 `json:"instanceNumber,omitempty,string"`
  1567  	// InstanceRole: Optional. Bitmask of instance role, a resource may have
  1568  	// multiple roles at once.
  1569  	//
  1570  	// Possible values:
  1571  	//   "INSTANCE_ROLE_UNSPECIFIED" - Unspecified instance role.
  1572  	//   "INSTANCE_ROLE_ASCS" - Application central services.
  1573  	//   "INSTANCE_ROLE_ERS" - Enqueue replication server.
  1574  	//   "INSTANCE_ROLE_APP_SERVER" - Application server.
  1575  	//   "INSTANCE_ROLE_DATABASE" - Database node.
  1576  	InstanceRole string `json:"instanceRole,omitempty"`
  1577  	// VirtualHostname: Optional. A virtual hostname of the instance if it has one.
  1578  	VirtualHostname string `json:"virtualHostname,omitempty"`
  1579  	// ForceSendFields is a list of field names (e.g. "AppInstances") to
  1580  	// unconditionally include in API requests. By default, fields with empty or
  1581  	// default values are omitted from API requests. See
  1582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1583  	// details.
  1584  	ForceSendFields []string `json:"-"`
  1585  	// NullFields is a list of field names (e.g. "AppInstances") to include in API
  1586  	// requests with the JSON null value. By default, fields with empty values are
  1587  	// omitted from API requests. See
  1588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1589  	NullFields []string `json:"-"`
  1590  }
  1591  
  1592  func (s *SapDiscoveryResourceInstanceProperties) MarshalJSON() ([]byte, error) {
  1593  	type NoMethod SapDiscoveryResourceInstanceProperties
  1594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1595  }
  1596  
  1597  // SapDiscoveryResourceInstancePropertiesAppInstance: Fields to describe an SAP
  1598  // application server instance.
  1599  type SapDiscoveryResourceInstancePropertiesAppInstance struct {
  1600  	// Name: Optional. Instance name of the SAP application instance.
  1601  	Name string `json:"name,omitempty"`
  1602  	// Number: Optional. Instance number of the SAP application instance.
  1603  	Number string `json:"number,omitempty"`
  1604  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1605  	// include in API requests. By default, fields with empty or default values are
  1606  	// omitted from API requests. See
  1607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1608  	// details.
  1609  	ForceSendFields []string `json:"-"`
  1610  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1611  	// with the JSON null value. By default, fields with empty values are omitted
  1612  	// from API requests. See
  1613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1614  	NullFields []string `json:"-"`
  1615  }
  1616  
  1617  func (s *SapDiscoveryResourceInstancePropertiesAppInstance) MarshalJSON() ([]byte, error) {
  1618  	type NoMethod SapDiscoveryResourceInstancePropertiesAppInstance
  1619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1620  }
  1621  
  1622  // SapDiscoveryWorkloadProperties: A set of properties describing an SAP
  1623  // workload.
  1624  type SapDiscoveryWorkloadProperties struct {
  1625  	// ProductVersions: Optional. List of SAP Products and their versions running
  1626  	// on the system.
  1627  	ProductVersions []*SapDiscoveryWorkloadPropertiesProductVersion `json:"productVersions,omitempty"`
  1628  	// SoftwareComponentVersions: Optional. A list of SAP software components and
  1629  	// their versions running on the system.
  1630  	SoftwareComponentVersions []*SapDiscoveryWorkloadPropertiesSoftwareComponentProperties `json:"softwareComponentVersions,omitempty"`
  1631  	// ForceSendFields is a list of field names (e.g. "ProductVersions") to
  1632  	// unconditionally include in API requests. By default, fields with empty or
  1633  	// default values are omitted from API requests. See
  1634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1635  	// details.
  1636  	ForceSendFields []string `json:"-"`
  1637  	// NullFields is a list of field names (e.g. "ProductVersions") to include in
  1638  	// API requests with the JSON null value. By default, fields with empty values
  1639  	// are omitted from API requests. See
  1640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1641  	NullFields []string `json:"-"`
  1642  }
  1643  
  1644  func (s *SapDiscoveryWorkloadProperties) MarshalJSON() ([]byte, error) {
  1645  	type NoMethod SapDiscoveryWorkloadProperties
  1646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1647  }
  1648  
  1649  // SapDiscoveryWorkloadPropertiesProductVersion: A product name and version.
  1650  type SapDiscoveryWorkloadPropertiesProductVersion struct {
  1651  	// Name: Optional. Name of the product.
  1652  	Name string `json:"name,omitempty"`
  1653  	// Version: Optional. Version of the product.
  1654  	Version string `json:"version,omitempty"`
  1655  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1656  	// include in API requests. By default, fields with empty or default values are
  1657  	// omitted from API requests. See
  1658  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1659  	// details.
  1660  	ForceSendFields []string `json:"-"`
  1661  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1662  	// with the JSON null value. By default, fields with empty values are omitted
  1663  	// from API requests. See
  1664  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1665  	NullFields []string `json:"-"`
  1666  }
  1667  
  1668  func (s *SapDiscoveryWorkloadPropertiesProductVersion) MarshalJSON() ([]byte, error) {
  1669  	type NoMethod SapDiscoveryWorkloadPropertiesProductVersion
  1670  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1671  }
  1672  
  1673  // SapDiscoveryWorkloadPropertiesSoftwareComponentProperties: A SAP software
  1674  // component name, version, and type.
  1675  type SapDiscoveryWorkloadPropertiesSoftwareComponentProperties struct {
  1676  	// ExtVersion: Optional. The component's minor version.
  1677  	ExtVersion string `json:"extVersion,omitempty"`
  1678  	// Name: Optional. Name of the component.
  1679  	Name string `json:"name,omitempty"`
  1680  	// Type: Optional. The component's type.
  1681  	Type string `json:"type,omitempty"`
  1682  	// Version: Optional. The component's major version.
  1683  	Version string `json:"version,omitempty"`
  1684  	// ForceSendFields is a list of field names (e.g. "ExtVersion") to
  1685  	// unconditionally include in API requests. By default, fields with empty or
  1686  	// default values are omitted from API requests. See
  1687  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1688  	// details.
  1689  	ForceSendFields []string `json:"-"`
  1690  	// NullFields is a list of field names (e.g. "ExtVersion") to include in API
  1691  	// requests with the JSON null value. By default, fields with empty values are
  1692  	// omitted from API requests. See
  1693  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1694  	NullFields []string `json:"-"`
  1695  }
  1696  
  1697  func (s *SapDiscoveryWorkloadPropertiesSoftwareComponentProperties) MarshalJSON() ([]byte, error) {
  1698  	type NoMethod SapDiscoveryWorkloadPropertiesSoftwareComponentProperties
  1699  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1700  }
  1701  
  1702  // SapValidation: A presentation of SAP workload insight. The schema of SAP
  1703  // workloads validation related data.
  1704  type SapValidation struct {
  1705  	// ProjectId: Required. The project_id of the cloud project that the Insight
  1706  	// data comes from.
  1707  	ProjectId string `json:"projectId,omitempty"`
  1708  	// ValidationDetails: Optional. A list of SAP validation metrics data.
  1709  	ValidationDetails []*SapValidationValidationDetail `json:"validationDetails,omitempty"`
  1710  	// Zone: Optional. The zone of the instance that the Insight data comes from.
  1711  	Zone string `json:"zone,omitempty"`
  1712  	// ForceSendFields is a list of field names (e.g. "ProjectId") to
  1713  	// unconditionally include in API requests. By default, fields with empty or
  1714  	// default values are omitted from API requests. See
  1715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1716  	// details.
  1717  	ForceSendFields []string `json:"-"`
  1718  	// NullFields is a list of field names (e.g. "ProjectId") to include in API
  1719  	// requests with the JSON null value. By default, fields with empty values are
  1720  	// omitted from API requests. See
  1721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1722  	NullFields []string `json:"-"`
  1723  }
  1724  
  1725  func (s *SapValidation) MarshalJSON() ([]byte, error) {
  1726  	type NoMethod SapValidation
  1727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1728  }
  1729  
  1730  // SapValidationValidationDetail: Message describing the SAP validation
  1731  // metrics.
  1732  type SapValidationValidationDetail struct {
  1733  	// Details: Optional. The pairs of metrics data: field name & field value.
  1734  	Details map[string]string `json:"details,omitempty"`
  1735  	// IsPresent: Optional. Was there a SAP system detected for this validation
  1736  	// type.
  1737  	IsPresent bool `json:"isPresent,omitempty"`
  1738  	// SapValidationType: Optional. The SAP system that the validation data is
  1739  	// from.
  1740  	//
  1741  	// Possible values:
  1742  	//   "SAP_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type.
  1743  	//   "SYSTEM" - The SYSTEM validation type collects underlying system data from
  1744  	// the VM.
  1745  	//   "COROSYNC" - The COROSYNC validation type collects Corosync configuration
  1746  	// and runtime data. Corosync enables servers to interact as a HA cluster.
  1747  	//   "PACEMAKER" - The PACEMAKER validation type collects Pacemaker
  1748  	// configuration data. Pacemaker is a high-availability cluster resource
  1749  	// manager.
  1750  	//   "HANA" - The HANA validation type collects HANA configuration data. SAP
  1751  	// HANA is an in-memory, column-oriented, relational database management
  1752  	// system.
  1753  	//   "NETWEAVER" - The NETWEAVER validation type collects NetWeaver
  1754  	// configuration data. SAP NetWeaver is a software stack for many of SAP SE's
  1755  	// applications.
  1756  	//   "HANA_SECURITY" - The HANA_SECURITY validation type collects HANA
  1757  	// configuration data as it relates to SAP security best practices.
  1758  	//   "CUSTOM" - The CUSTOM validation type collects any customer-defined data
  1759  	// that does not fall into any of the other categories of validations.
  1760  	SapValidationType string `json:"sapValidationType,omitempty"`
  1761  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  1762  	// include in API requests. By default, fields with empty or default values are
  1763  	// omitted from API requests. See
  1764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1765  	// details.
  1766  	ForceSendFields []string `json:"-"`
  1767  	// NullFields is a list of field names (e.g. "Details") to include in API
  1768  	// requests with the JSON null value. By default, fields with empty values are
  1769  	// omitted from API requests. See
  1770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1771  	NullFields []string `json:"-"`
  1772  }
  1773  
  1774  func (s *SapValidationValidationDetail) MarshalJSON() ([]byte, error) {
  1775  	type NoMethod SapValidationValidationDetail
  1776  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1777  }
  1778  
  1779  // ScannedResource: Message of scanned resource
  1780  type ScannedResource struct {
  1781  	// Resource: resource name
  1782  	Resource string `json:"resource,omitempty"`
  1783  	// Type: resource type
  1784  	Type string `json:"type,omitempty"`
  1785  	// ForceSendFields is a list of field names (e.g. "Resource") to
  1786  	// unconditionally include in API requests. By default, fields with empty or
  1787  	// default values are omitted from API requests. See
  1788  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1789  	// details.
  1790  	ForceSendFields []string `json:"-"`
  1791  	// NullFields is a list of field names (e.g. "Resource") to include in API
  1792  	// requests with the JSON null value. By default, fields with empty values are
  1793  	// omitted from API requests. See
  1794  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1795  	NullFields []string `json:"-"`
  1796  }
  1797  
  1798  func (s *ScannedResource) MarshalJSON() ([]byte, error) {
  1799  	type NoMethod ScannedResource
  1800  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1801  }
  1802  
  1803  type SpannerLocation struct {
  1804  	DbName []string `json:"dbName,omitempty"`
  1805  	// ForceSendFields is a list of field names (e.g. "DbName") to unconditionally
  1806  	// include in API requests. By default, fields with empty or default values are
  1807  	// omitted from API requests. See
  1808  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1809  	// details.
  1810  	ForceSendFields []string `json:"-"`
  1811  	// NullFields is a list of field names (e.g. "DbName") to include in API
  1812  	// requests with the JSON null value. By default, fields with empty values are
  1813  	// omitted from API requests. See
  1814  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1815  	NullFields []string `json:"-"`
  1816  }
  1817  
  1818  func (s *SpannerLocation) MarshalJSON() ([]byte, error) {
  1819  	type NoMethod SpannerLocation
  1820  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1821  }
  1822  
  1823  // SqlserverValidation: A presentation of SQLServer workload insight. The
  1824  // schema of SqlServer workloads validation related data.
  1825  type SqlserverValidation struct {
  1826  	// AgentVersion: Optional. The agent version collected this data point
  1827  	AgentVersion string `json:"agentVersion,omitempty"`
  1828  	// Instance: Required. The instance_name of the instance that the Insight data
  1829  	// comes from. According to https://linter.aip.dev/122/name-suffix: field names
  1830  	// should not use the _name suffix unless the field would be ambiguous without
  1831  	// it.
  1832  	Instance string `json:"instance,omitempty"`
  1833  	// ProjectId: Required. The project_id of the cloud project that the Insight
  1834  	// data comes from.
  1835  	ProjectId string `json:"projectId,omitempty"`
  1836  	// ValidationDetails: Optional. A list of SqlServer validation metrics data.
  1837  	ValidationDetails []*SqlserverValidationValidationDetail `json:"validationDetails,omitempty"`
  1838  	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
  1839  	// unconditionally include in API requests. By default, fields with empty or
  1840  	// default values are omitted from API requests. See
  1841  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1842  	// details.
  1843  	ForceSendFields []string `json:"-"`
  1844  	// NullFields is a list of field names (e.g. "AgentVersion") to include in API
  1845  	// requests with the JSON null value. By default, fields with empty values are
  1846  	// omitted from API requests. See
  1847  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1848  	NullFields []string `json:"-"`
  1849  }
  1850  
  1851  func (s *SqlserverValidation) MarshalJSON() ([]byte, error) {
  1852  	type NoMethod SqlserverValidation
  1853  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1854  }
  1855  
  1856  // SqlserverValidationDetails: Message containing collected data names and
  1857  // values.
  1858  type SqlserverValidationDetails struct {
  1859  	// Fields: Required. Collected data is in format.
  1860  	Fields map[string]string `json:"fields,omitempty"`
  1861  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  1862  	// include in API requests. By default, fields with empty or default values are
  1863  	// omitted from API requests. See
  1864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1865  	// details.
  1866  	ForceSendFields []string `json:"-"`
  1867  	// NullFields is a list of field names (e.g. "Fields") to include in API
  1868  	// requests with the JSON null value. By default, fields with empty values are
  1869  	// omitted from API requests. See
  1870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1871  	NullFields []string `json:"-"`
  1872  }
  1873  
  1874  func (s *SqlserverValidationDetails) MarshalJSON() ([]byte, error) {
  1875  	type NoMethod SqlserverValidationDetails
  1876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1877  }
  1878  
  1879  // SqlserverValidationValidationDetail: Message describing the Sqlserver
  1880  // validation metrics.
  1881  type SqlserverValidationValidationDetail struct {
  1882  	// Details: Required. Details wraps map that represents collected data names
  1883  	// and values.
  1884  	Details []*SqlserverValidationDetails `json:"details,omitempty"`
  1885  	// Type: Optional. The Sqlserver system that the validation data is from.
  1886  	//
  1887  	// Possible values:
  1888  	//   "SQLSERVER_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type.
  1889  	//   "OS" - The Sqlserver system named OS.
  1890  	//   "DB_LOG_DISK_SEPARATION" - The LOG_DISK_SEPARATION table.
  1891  	//   "DB_MAX_PARALLELISM" - The MAX_PARALLELISM table.
  1892  	//   "DB_CXPACKET_WAITS" - The CXPACKET_WAITS table.
  1893  	//   "DB_TRANSACTION_LOG_HANDLING" - The TRANSACTION_LOG_HANDLING table.
  1894  	//   "DB_VIRTUAL_LOG_FILE_COUNT" - The VIRTUAL_LOG_FILE_COUNT table.
  1895  	//   "DB_BUFFER_POOL_EXTENSION" - The BUFFER_POOL_EXTENSION table.
  1896  	//   "DB_MAX_SERVER_MEMORY" - The MAX_SERVER_MEMORY table.
  1897  	//   "INSTANCE_METRICS" - The INSTANCE_METRICS table.
  1898  	//   "DB_INDEX_FRAGMENTATION" - The DB_INDEX_FRAGMENTATION table.
  1899  	//   "DB_TABLE_INDEX_COMPRESSION" - The DB_TABLE_INDEX_COMPRESSION table.
  1900  	//   "DB_BACKUP_POLICY" - The DB_BACKUP_POLICY table.
  1901  	Type string `json:"type,omitempty"`
  1902  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  1903  	// include in API requests. By default, fields with empty or default values are
  1904  	// omitted from API requests. See
  1905  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1906  	// details.
  1907  	ForceSendFields []string `json:"-"`
  1908  	// NullFields is a list of field names (e.g. "Details") to include in API
  1909  	// requests with the JSON null value. By default, fields with empty values are
  1910  	// omitted from API requests. See
  1911  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1912  	NullFields []string `json:"-"`
  1913  }
  1914  
  1915  func (s *SqlserverValidationValidationDetail) MarshalJSON() ([]byte, error) {
  1916  	type NoMethod SqlserverValidationValidationDetail
  1917  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1918  }
  1919  
  1920  // Status: The `Status` type defines a logical error model that is suitable for
  1921  // different programming environments, including REST APIs and RPC APIs. It is
  1922  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  1923  // pieces of data: error code, error message, and error details. You can find
  1924  // out more about this error model and how to work with it in the API Design
  1925  // Guide (https://cloud.google.com/apis/design/errors).
  1926  type Status struct {
  1927  	// Code: The status code, which should be an enum value of google.rpc.Code.
  1928  	Code int64 `json:"code,omitempty"`
  1929  	// Details: A list of messages that carry the error details. There is a common
  1930  	// set of message types for APIs to use.
  1931  	Details []googleapi.RawMessage `json:"details,omitempty"`
  1932  	// Message: A developer-facing error message, which should be in English. Any
  1933  	// user-facing error message should be localized and sent in the
  1934  	// google.rpc.Status.details field, or localized by the client.
  1935  	Message string `json:"message,omitempty"`
  1936  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  1937  	// include in API requests. By default, fields with empty or default values are
  1938  	// omitted from API requests. See
  1939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1940  	// details.
  1941  	ForceSendFields []string `json:"-"`
  1942  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  1943  	// with the JSON null value. By default, fields with empty values are omitted
  1944  	// from API requests. See
  1945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1946  	NullFields []string `json:"-"`
  1947  }
  1948  
  1949  func (s *Status) MarshalJSON() ([]byte, error) {
  1950  	type NoMethod Status
  1951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1952  }
  1953  
  1954  type TenantProjectProxy struct {
  1955  	ProjectNumbers []string `json:"projectNumbers,omitempty"`
  1956  	// ForceSendFields is a list of field names (e.g. "ProjectNumbers") to
  1957  	// unconditionally include in API requests. By default, fields with empty or
  1958  	// default values are omitted from API requests. See
  1959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1960  	// details.
  1961  	ForceSendFields []string `json:"-"`
  1962  	// NullFields is a list of field names (e.g. "ProjectNumbers") to include in
  1963  	// API requests with the JSON null value. By default, fields with empty values
  1964  	// are omitted from API requests. See
  1965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1966  	NullFields []string `json:"-"`
  1967  }
  1968  
  1969  func (s *TenantProjectProxy) MarshalJSON() ([]byte, error) {
  1970  	type NoMethod TenantProjectProxy
  1971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1972  }
  1973  
  1974  // ViolationDetails: Message describing the violdation in execution result
  1975  type ViolationDetails struct {
  1976  	// Asset: the name of asset
  1977  	Asset string `json:"asset,omitempty"`
  1978  	// Observed: observed
  1979  	Observed map[string]string `json:"observed,omitempty"`
  1980  	// ServiceAccount: the service account associate with resource
  1981  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1982  	// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally
  1983  	// include in API requests. By default, fields with empty or default values are
  1984  	// omitted from API requests. See
  1985  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1986  	// details.
  1987  	ForceSendFields []string `json:"-"`
  1988  	// NullFields is a list of field names (e.g. "Asset") to include in API
  1989  	// requests with the JSON null value. By default, fields with empty values are
  1990  	// omitted from API requests. See
  1991  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1992  	NullFields []string `json:"-"`
  1993  }
  1994  
  1995  func (s *ViolationDetails) MarshalJSON() ([]byte, error) {
  1996  	type NoMethod ViolationDetails
  1997  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1998  }
  1999  
  2000  // WriteInsightRequest: Request for sending the data insights.
  2001  type WriteInsightRequest struct {
  2002  	// AgentVersion: Optional. The agent version collected this data point.
  2003  	AgentVersion string `json:"agentVersion,omitempty"`
  2004  	// Insight: Required. The metrics data details.
  2005  	Insight *Insight `json:"insight,omitempty"`
  2006  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  2007  	// unique request ID so that if you must retry your request, the server will
  2008  	// know to ignore the request if it has already been completed. The server will
  2009  	// guarantee that for at least 60 minutes since the first request. For example,
  2010  	// consider a situation where you make an initial request and the request times
  2011  	// out. If you make the request again with the same request ID, the server can
  2012  	// check if original operation with the same request ID was received, and if
  2013  	// so, will ignore the second request. This prevents clients from accidentally
  2014  	// creating duplicate commitments. The request ID must be a valid UUID with the
  2015  	// exception that zero UUID is not supported
  2016  	// (00000000-0000-0000-0000-000000000000).
  2017  	RequestId string `json:"requestId,omitempty"`
  2018  	// ForceSendFields is a list of field names (e.g. "AgentVersion") to
  2019  	// unconditionally include in API requests. By default, fields with empty or
  2020  	// default values are omitted from API requests. See
  2021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2022  	// details.
  2023  	ForceSendFields []string `json:"-"`
  2024  	// NullFields is a list of field names (e.g. "AgentVersion") to include in API
  2025  	// requests with the JSON null value. By default, fields with empty values are
  2026  	// omitted from API requests. See
  2027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2028  	NullFields []string `json:"-"`
  2029  }
  2030  
  2031  func (s *WriteInsightRequest) MarshalJSON() ([]byte, error) {
  2032  	type NoMethod WriteInsightRequest
  2033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2034  }
  2035  
  2036  // WriteInsightResponse: The response for write insights request.
  2037  type WriteInsightResponse struct {
  2038  	// ServerResponse contains the HTTP response code and headers from the server.
  2039  	googleapi.ServerResponse `json:"-"`
  2040  }
  2041  
  2042  type ZoneConfiguration struct {
  2043  	Zone string `json:"zone,omitempty"`
  2044  	// ForceSendFields is a list of field names (e.g. "Zone") to unconditionally
  2045  	// include in API requests. By default, fields with empty or default values are
  2046  	// omitted from API requests. See
  2047  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2048  	// details.
  2049  	ForceSendFields []string `json:"-"`
  2050  	// NullFields is a list of field names (e.g. "Zone") to include in API requests
  2051  	// with the JSON null value. By default, fields with empty values are omitted
  2052  	// from API requests. See
  2053  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2054  	NullFields []string `json:"-"`
  2055  }
  2056  
  2057  func (s *ZoneConfiguration) MarshalJSON() ([]byte, error) {
  2058  	type NoMethod ZoneConfiguration
  2059  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2060  }
  2061  
  2062  type ProjectsLocationsGetCall struct {
  2063  	s            *Service
  2064  	name         string
  2065  	urlParams_   gensupport.URLParams
  2066  	ifNoneMatch_ string
  2067  	ctx_         context.Context
  2068  	header_      http.Header
  2069  }
  2070  
  2071  // Get: Gets information about a location.
  2072  //
  2073  // - name: Resource name for the location.
  2074  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  2075  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2076  	c.name = name
  2077  	return c
  2078  }
  2079  
  2080  // Fields allows partial responses to be retrieved. See
  2081  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2082  // details.
  2083  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  2084  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2085  	return c
  2086  }
  2087  
  2088  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2089  // object's ETag matches the given value. This is useful for getting updates
  2090  // only after the object has changed since the last request.
  2091  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  2092  	c.ifNoneMatch_ = entityTag
  2093  	return c
  2094  }
  2095  
  2096  // Context sets the context to be used in this call's Do method.
  2097  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  2098  	c.ctx_ = ctx
  2099  	return c
  2100  }
  2101  
  2102  // Header returns a http.Header that can be modified by the caller to add
  2103  // headers to the request.
  2104  func (c *ProjectsLocationsGetCall) Header() http.Header {
  2105  	if c.header_ == nil {
  2106  		c.header_ = make(http.Header)
  2107  	}
  2108  	return c.header_
  2109  }
  2110  
  2111  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  2112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2113  	if c.ifNoneMatch_ != "" {
  2114  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2115  	}
  2116  	var body io.Reader = nil
  2117  	c.urlParams_.Set("alt", alt)
  2118  	c.urlParams_.Set("prettyPrint", "false")
  2119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2120  	urls += "?" + c.urlParams_.Encode()
  2121  	req, err := http.NewRequest("GET", urls, body)
  2122  	if err != nil {
  2123  		return nil, err
  2124  	}
  2125  	req.Header = reqHeaders
  2126  	googleapi.Expand(req.URL, map[string]string{
  2127  		"name": c.name,
  2128  	})
  2129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2130  }
  2131  
  2132  // Do executes the "workloadmanager.projects.locations.get" call.
  2133  // Any non-2xx status code is an error. Response headers are in either
  2134  // *Location.ServerResponse.Header or (if a response was returned at all) in
  2135  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2136  // whether the returned error was because http.StatusNotModified was returned.
  2137  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  2138  	gensupport.SetOptions(c.urlParams_, opts...)
  2139  	res, err := c.doRequest("json")
  2140  	if res != nil && res.StatusCode == http.StatusNotModified {
  2141  		if res.Body != nil {
  2142  			res.Body.Close()
  2143  		}
  2144  		return nil, gensupport.WrapError(&googleapi.Error{
  2145  			Code:   res.StatusCode,
  2146  			Header: res.Header,
  2147  		})
  2148  	}
  2149  	if err != nil {
  2150  		return nil, err
  2151  	}
  2152  	defer googleapi.CloseBody(res)
  2153  	if err := googleapi.CheckResponse(res); err != nil {
  2154  		return nil, gensupport.WrapError(err)
  2155  	}
  2156  	ret := &Location{
  2157  		ServerResponse: googleapi.ServerResponse{
  2158  			Header:         res.Header,
  2159  			HTTPStatusCode: res.StatusCode,
  2160  		},
  2161  	}
  2162  	target := &ret
  2163  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2164  		return nil, err
  2165  	}
  2166  	return ret, nil
  2167  }
  2168  
  2169  type ProjectsLocationsListCall struct {
  2170  	s            *Service
  2171  	name         string
  2172  	urlParams_   gensupport.URLParams
  2173  	ifNoneMatch_ string
  2174  	ctx_         context.Context
  2175  	header_      http.Header
  2176  }
  2177  
  2178  // List: Lists information about the supported locations for this service.
  2179  //
  2180  // - name: The resource that owns the locations collection, if applicable.
  2181  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  2182  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2183  	c.name = name
  2184  	return c
  2185  }
  2186  
  2187  // Filter sets the optional parameter "filter": A filter to narrow down results
  2188  // to a preferred subset. The filtering language accepts strings like
  2189  // "displayName=tokyo", and is documented in more detail in AIP-160
  2190  // (https://google.aip.dev/160).
  2191  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  2192  	c.urlParams_.Set("filter", filter)
  2193  	return c
  2194  }
  2195  
  2196  // PageSize sets the optional parameter "pageSize": The maximum number of
  2197  // results to return. If not set, the service selects a default.
  2198  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  2199  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2200  	return c
  2201  }
  2202  
  2203  // PageToken sets the optional parameter "pageToken": A page token received
  2204  // from the `next_page_token` field in the response. Send that page token to
  2205  // receive the subsequent page.
  2206  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  2207  	c.urlParams_.Set("pageToken", pageToken)
  2208  	return c
  2209  }
  2210  
  2211  // Fields allows partial responses to be retrieved. See
  2212  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2213  // details.
  2214  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  2215  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2216  	return c
  2217  }
  2218  
  2219  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2220  // object's ETag matches the given value. This is useful for getting updates
  2221  // only after the object has changed since the last request.
  2222  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  2223  	c.ifNoneMatch_ = entityTag
  2224  	return c
  2225  }
  2226  
  2227  // Context sets the context to be used in this call's Do method.
  2228  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  2229  	c.ctx_ = ctx
  2230  	return c
  2231  }
  2232  
  2233  // Header returns a http.Header that can be modified by the caller to add
  2234  // headers to the request.
  2235  func (c *ProjectsLocationsListCall) Header() http.Header {
  2236  	if c.header_ == nil {
  2237  		c.header_ = make(http.Header)
  2238  	}
  2239  	return c.header_
  2240  }
  2241  
  2242  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  2243  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2244  	if c.ifNoneMatch_ != "" {
  2245  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2246  	}
  2247  	var body io.Reader = nil
  2248  	c.urlParams_.Set("alt", alt)
  2249  	c.urlParams_.Set("prettyPrint", "false")
  2250  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  2251  	urls += "?" + c.urlParams_.Encode()
  2252  	req, err := http.NewRequest("GET", urls, body)
  2253  	if err != nil {
  2254  		return nil, err
  2255  	}
  2256  	req.Header = reqHeaders
  2257  	googleapi.Expand(req.URL, map[string]string{
  2258  		"name": c.name,
  2259  	})
  2260  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2261  }
  2262  
  2263  // Do executes the "workloadmanager.projects.locations.list" call.
  2264  // Any non-2xx status code is an error. Response headers are in either
  2265  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  2266  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2267  // check whether the returned error was because http.StatusNotModified was
  2268  // returned.
  2269  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  2270  	gensupport.SetOptions(c.urlParams_, opts...)
  2271  	res, err := c.doRequest("json")
  2272  	if res != nil && res.StatusCode == http.StatusNotModified {
  2273  		if res.Body != nil {
  2274  			res.Body.Close()
  2275  		}
  2276  		return nil, gensupport.WrapError(&googleapi.Error{
  2277  			Code:   res.StatusCode,
  2278  			Header: res.Header,
  2279  		})
  2280  	}
  2281  	if err != nil {
  2282  		return nil, err
  2283  	}
  2284  	defer googleapi.CloseBody(res)
  2285  	if err := googleapi.CheckResponse(res); err != nil {
  2286  		return nil, gensupport.WrapError(err)
  2287  	}
  2288  	ret := &ListLocationsResponse{
  2289  		ServerResponse: googleapi.ServerResponse{
  2290  			Header:         res.Header,
  2291  			HTTPStatusCode: res.StatusCode,
  2292  		},
  2293  	}
  2294  	target := &ret
  2295  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2296  		return nil, err
  2297  	}
  2298  	return ret, nil
  2299  }
  2300  
  2301  // Pages invokes f for each page of results.
  2302  // A non-nil error returned from f will halt the iteration.
  2303  // The provided context supersedes any context provided to the Context method.
  2304  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  2305  	c.ctx_ = ctx
  2306  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2307  	for {
  2308  		x, err := c.Do()
  2309  		if err != nil {
  2310  			return err
  2311  		}
  2312  		if err := f(x); err != nil {
  2313  			return err
  2314  		}
  2315  		if x.NextPageToken == "" {
  2316  			return nil
  2317  		}
  2318  		c.PageToken(x.NextPageToken)
  2319  	}
  2320  }
  2321  
  2322  type ProjectsLocationsEvaluationsCreateCall struct {
  2323  	s          *Service
  2324  	parent     string
  2325  	evaluation *Evaluation
  2326  	urlParams_ gensupport.URLParams
  2327  	ctx_       context.Context
  2328  	header_    http.Header
  2329  }
  2330  
  2331  // Create: Creates a new Evaluation in a given project and location.
  2332  //
  2333  //   - parent: The resource prefix of the evaluation location using the form:
  2334  //     `projects/{project_id}/locations/{location_id}`.
  2335  func (r *ProjectsLocationsEvaluationsService) Create(parent string, evaluation *Evaluation) *ProjectsLocationsEvaluationsCreateCall {
  2336  	c := &ProjectsLocationsEvaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2337  	c.parent = parent
  2338  	c.evaluation = evaluation
  2339  	return c
  2340  }
  2341  
  2342  // EvaluationId sets the optional parameter "evaluationId": Required. Id of the
  2343  // requesting object
  2344  func (c *ProjectsLocationsEvaluationsCreateCall) EvaluationId(evaluationId string) *ProjectsLocationsEvaluationsCreateCall {
  2345  	c.urlParams_.Set("evaluationId", evaluationId)
  2346  	return c
  2347  }
  2348  
  2349  // RequestId sets the optional parameter "requestId": An optional request ID to
  2350  // identify requests. Specify a unique request ID so that if you must retry
  2351  // your request, the server will know to ignore the request if it has already
  2352  // been completed. The server will guarantee that for at least 60 minutes since
  2353  // the first request. For example, consider a situation where you make an
  2354  // initial request and the request times out. If you make the request again
  2355  // with the same request ID, the server can check if original operation with
  2356  // the same request ID was received, and if so, will ignore the second request.
  2357  // This prevents clients from accidentally creating duplicate commitments. The
  2358  // request ID must be a valid UUID with the exception that zero UUID is not
  2359  // supported (00000000-0000-0000-0000-000000000000).
  2360  func (c *ProjectsLocationsEvaluationsCreateCall) RequestId(requestId string) *ProjectsLocationsEvaluationsCreateCall {
  2361  	c.urlParams_.Set("requestId", requestId)
  2362  	return c
  2363  }
  2364  
  2365  // Fields allows partial responses to be retrieved. See
  2366  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2367  // details.
  2368  func (c *ProjectsLocationsEvaluationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsCreateCall {
  2369  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2370  	return c
  2371  }
  2372  
  2373  // Context sets the context to be used in this call's Do method.
  2374  func (c *ProjectsLocationsEvaluationsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsCreateCall {
  2375  	c.ctx_ = ctx
  2376  	return c
  2377  }
  2378  
  2379  // Header returns a http.Header that can be modified by the caller to add
  2380  // headers to the request.
  2381  func (c *ProjectsLocationsEvaluationsCreateCall) Header() http.Header {
  2382  	if c.header_ == nil {
  2383  		c.header_ = make(http.Header)
  2384  	}
  2385  	return c.header_
  2386  }
  2387  
  2388  func (c *ProjectsLocationsEvaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
  2389  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  2390  	var body io.Reader = nil
  2391  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.evaluation)
  2392  	if err != nil {
  2393  		return nil, err
  2394  	}
  2395  	c.urlParams_.Set("alt", alt)
  2396  	c.urlParams_.Set("prettyPrint", "false")
  2397  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluations")
  2398  	urls += "?" + c.urlParams_.Encode()
  2399  	req, err := http.NewRequest("POST", urls, body)
  2400  	if err != nil {
  2401  		return nil, err
  2402  	}
  2403  	req.Header = reqHeaders
  2404  	googleapi.Expand(req.URL, map[string]string{
  2405  		"parent": c.parent,
  2406  	})
  2407  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2408  }
  2409  
  2410  // Do executes the "workloadmanager.projects.locations.evaluations.create" call.
  2411  // Any non-2xx status code is an error. Response headers are in either
  2412  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2413  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2414  // whether the returned error was because http.StatusNotModified was returned.
  2415  func (c *ProjectsLocationsEvaluationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2416  	gensupport.SetOptions(c.urlParams_, opts...)
  2417  	res, err := c.doRequest("json")
  2418  	if res != nil && res.StatusCode == http.StatusNotModified {
  2419  		if res.Body != nil {
  2420  			res.Body.Close()
  2421  		}
  2422  		return nil, gensupport.WrapError(&googleapi.Error{
  2423  			Code:   res.StatusCode,
  2424  			Header: res.Header,
  2425  		})
  2426  	}
  2427  	if err != nil {
  2428  		return nil, err
  2429  	}
  2430  	defer googleapi.CloseBody(res)
  2431  	if err := googleapi.CheckResponse(res); err != nil {
  2432  		return nil, gensupport.WrapError(err)
  2433  	}
  2434  	ret := &Operation{
  2435  		ServerResponse: googleapi.ServerResponse{
  2436  			Header:         res.Header,
  2437  			HTTPStatusCode: res.StatusCode,
  2438  		},
  2439  	}
  2440  	target := &ret
  2441  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2442  		return nil, err
  2443  	}
  2444  	return ret, nil
  2445  }
  2446  
  2447  type ProjectsLocationsEvaluationsDeleteCall struct {
  2448  	s          *Service
  2449  	name       string
  2450  	urlParams_ gensupport.URLParams
  2451  	ctx_       context.Context
  2452  	header_    http.Header
  2453  }
  2454  
  2455  // Delete: Deletes a single Evaluation.
  2456  //
  2457  // - name: Name of the resource.
  2458  func (r *ProjectsLocationsEvaluationsService) Delete(name string) *ProjectsLocationsEvaluationsDeleteCall {
  2459  	c := &ProjectsLocationsEvaluationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2460  	c.name = name
  2461  	return c
  2462  }
  2463  
  2464  // Force sets the optional parameter "force": Followed the best practice from
  2465  // https://aip.dev/135#cascading-delete
  2466  func (c *ProjectsLocationsEvaluationsDeleteCall) Force(force bool) *ProjectsLocationsEvaluationsDeleteCall {
  2467  	c.urlParams_.Set("force", fmt.Sprint(force))
  2468  	return c
  2469  }
  2470  
  2471  // RequestId sets the optional parameter "requestId": An optional request ID to
  2472  // identify requests. Specify a unique request ID so that if you must retry
  2473  // your request, the server will know to ignore the request if it has already
  2474  // been completed. The server will guarantee that for at least 60 minutes after
  2475  // the first request. For example, consider a situation where you make an
  2476  // initial request and the request times out. If you make the request again
  2477  // with the same request ID, the server can check if original operation with
  2478  // the same request ID was received, and if so, will ignore the second request.
  2479  // This prevents clients from accidentally creating duplicate commitments. The
  2480  // request ID must be a valid UUID with the exception that zero UUID is not
  2481  // supported (00000000-0000-0000-0000-000000000000).
  2482  func (c *ProjectsLocationsEvaluationsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsDeleteCall {
  2483  	c.urlParams_.Set("requestId", requestId)
  2484  	return c
  2485  }
  2486  
  2487  // Fields allows partial responses to be retrieved. See
  2488  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2489  // details.
  2490  func (c *ProjectsLocationsEvaluationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsDeleteCall {
  2491  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2492  	return c
  2493  }
  2494  
  2495  // Context sets the context to be used in this call's Do method.
  2496  func (c *ProjectsLocationsEvaluationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsDeleteCall {
  2497  	c.ctx_ = ctx
  2498  	return c
  2499  }
  2500  
  2501  // Header returns a http.Header that can be modified by the caller to add
  2502  // headers to the request.
  2503  func (c *ProjectsLocationsEvaluationsDeleteCall) Header() http.Header {
  2504  	if c.header_ == nil {
  2505  		c.header_ = make(http.Header)
  2506  	}
  2507  	return c.header_
  2508  }
  2509  
  2510  func (c *ProjectsLocationsEvaluationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  2511  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2512  	var body io.Reader = nil
  2513  	c.urlParams_.Set("alt", alt)
  2514  	c.urlParams_.Set("prettyPrint", "false")
  2515  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2516  	urls += "?" + c.urlParams_.Encode()
  2517  	req, err := http.NewRequest("DELETE", urls, body)
  2518  	if err != nil {
  2519  		return nil, err
  2520  	}
  2521  	req.Header = reqHeaders
  2522  	googleapi.Expand(req.URL, map[string]string{
  2523  		"name": c.name,
  2524  	})
  2525  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2526  }
  2527  
  2528  // Do executes the "workloadmanager.projects.locations.evaluations.delete" call.
  2529  // Any non-2xx status code is an error. Response headers are in either
  2530  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2531  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2532  // whether the returned error was because http.StatusNotModified was returned.
  2533  func (c *ProjectsLocationsEvaluationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2534  	gensupport.SetOptions(c.urlParams_, opts...)
  2535  	res, err := c.doRequest("json")
  2536  	if res != nil && res.StatusCode == http.StatusNotModified {
  2537  		if res.Body != nil {
  2538  			res.Body.Close()
  2539  		}
  2540  		return nil, gensupport.WrapError(&googleapi.Error{
  2541  			Code:   res.StatusCode,
  2542  			Header: res.Header,
  2543  		})
  2544  	}
  2545  	if err != nil {
  2546  		return nil, err
  2547  	}
  2548  	defer googleapi.CloseBody(res)
  2549  	if err := googleapi.CheckResponse(res); err != nil {
  2550  		return nil, gensupport.WrapError(err)
  2551  	}
  2552  	ret := &Operation{
  2553  		ServerResponse: googleapi.ServerResponse{
  2554  			Header:         res.Header,
  2555  			HTTPStatusCode: res.StatusCode,
  2556  		},
  2557  	}
  2558  	target := &ret
  2559  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2560  		return nil, err
  2561  	}
  2562  	return ret, nil
  2563  }
  2564  
  2565  type ProjectsLocationsEvaluationsGetCall struct {
  2566  	s            *Service
  2567  	name         string
  2568  	urlParams_   gensupport.URLParams
  2569  	ifNoneMatch_ string
  2570  	ctx_         context.Context
  2571  	header_      http.Header
  2572  }
  2573  
  2574  // Get: Gets details of a single Evaluation.
  2575  //
  2576  // - name: Name of the resource.
  2577  func (r *ProjectsLocationsEvaluationsService) Get(name string) *ProjectsLocationsEvaluationsGetCall {
  2578  	c := &ProjectsLocationsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2579  	c.name = name
  2580  	return c
  2581  }
  2582  
  2583  // Fields allows partial responses to be retrieved. See
  2584  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2585  // details.
  2586  func (c *ProjectsLocationsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsGetCall {
  2587  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2588  	return c
  2589  }
  2590  
  2591  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2592  // object's ETag matches the given value. This is useful for getting updates
  2593  // only after the object has changed since the last request.
  2594  func (c *ProjectsLocationsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsGetCall {
  2595  	c.ifNoneMatch_ = entityTag
  2596  	return c
  2597  }
  2598  
  2599  // Context sets the context to be used in this call's Do method.
  2600  func (c *ProjectsLocationsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsGetCall {
  2601  	c.ctx_ = ctx
  2602  	return c
  2603  }
  2604  
  2605  // Header returns a http.Header that can be modified by the caller to add
  2606  // headers to the request.
  2607  func (c *ProjectsLocationsEvaluationsGetCall) Header() http.Header {
  2608  	if c.header_ == nil {
  2609  		c.header_ = make(http.Header)
  2610  	}
  2611  	return c.header_
  2612  }
  2613  
  2614  func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
  2615  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2616  	if c.ifNoneMatch_ != "" {
  2617  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2618  	}
  2619  	var body io.Reader = nil
  2620  	c.urlParams_.Set("alt", alt)
  2621  	c.urlParams_.Set("prettyPrint", "false")
  2622  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2623  	urls += "?" + c.urlParams_.Encode()
  2624  	req, err := http.NewRequest("GET", urls, body)
  2625  	if err != nil {
  2626  		return nil, err
  2627  	}
  2628  	req.Header = reqHeaders
  2629  	googleapi.Expand(req.URL, map[string]string{
  2630  		"name": c.name,
  2631  	})
  2632  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2633  }
  2634  
  2635  // Do executes the "workloadmanager.projects.locations.evaluations.get" call.
  2636  // Any non-2xx status code is an error. Response headers are in either
  2637  // *Evaluation.ServerResponse.Header or (if a response was returned at all) in
  2638  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2639  // whether the returned error was because http.StatusNotModified was returned.
  2640  func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*Evaluation, error) {
  2641  	gensupport.SetOptions(c.urlParams_, opts...)
  2642  	res, err := c.doRequest("json")
  2643  	if res != nil && res.StatusCode == http.StatusNotModified {
  2644  		if res.Body != nil {
  2645  			res.Body.Close()
  2646  		}
  2647  		return nil, gensupport.WrapError(&googleapi.Error{
  2648  			Code:   res.StatusCode,
  2649  			Header: res.Header,
  2650  		})
  2651  	}
  2652  	if err != nil {
  2653  		return nil, err
  2654  	}
  2655  	defer googleapi.CloseBody(res)
  2656  	if err := googleapi.CheckResponse(res); err != nil {
  2657  		return nil, gensupport.WrapError(err)
  2658  	}
  2659  	ret := &Evaluation{
  2660  		ServerResponse: googleapi.ServerResponse{
  2661  			Header:         res.Header,
  2662  			HTTPStatusCode: res.StatusCode,
  2663  		},
  2664  	}
  2665  	target := &ret
  2666  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2667  		return nil, err
  2668  	}
  2669  	return ret, nil
  2670  }
  2671  
  2672  type ProjectsLocationsEvaluationsListCall struct {
  2673  	s            *Service
  2674  	parent       string
  2675  	urlParams_   gensupport.URLParams
  2676  	ifNoneMatch_ string
  2677  	ctx_         context.Context
  2678  	header_      http.Header
  2679  }
  2680  
  2681  // List: Lists Evaluations in a given project and location.
  2682  //
  2683  // - parent: Parent value for ListEvaluationsRequest.
  2684  func (r *ProjectsLocationsEvaluationsService) List(parent string) *ProjectsLocationsEvaluationsListCall {
  2685  	c := &ProjectsLocationsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2686  	c.parent = parent
  2687  	return c
  2688  }
  2689  
  2690  // Filter sets the optional parameter "filter": Filtering results
  2691  func (c *ProjectsLocationsEvaluationsListCall) Filter(filter string) *ProjectsLocationsEvaluationsListCall {
  2692  	c.urlParams_.Set("filter", filter)
  2693  	return c
  2694  }
  2695  
  2696  // OrderBy sets the optional parameter "orderBy": Hint for how to order the
  2697  // results
  2698  func (c *ProjectsLocationsEvaluationsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsListCall {
  2699  	c.urlParams_.Set("orderBy", orderBy)
  2700  	return c
  2701  }
  2702  
  2703  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  2704  // may return fewer items than requested. If unspecified, server will pick an
  2705  // appropriate default.
  2706  func (c *ProjectsLocationsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsListCall {
  2707  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2708  	return c
  2709  }
  2710  
  2711  // PageToken sets the optional parameter "pageToken": A token identifying a
  2712  // page of results the server should return.
  2713  func (c *ProjectsLocationsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsListCall {
  2714  	c.urlParams_.Set("pageToken", pageToken)
  2715  	return c
  2716  }
  2717  
  2718  // Fields allows partial responses to be retrieved. See
  2719  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2720  // details.
  2721  func (c *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsListCall {
  2722  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2723  	return c
  2724  }
  2725  
  2726  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2727  // object's ETag matches the given value. This is useful for getting updates
  2728  // only after the object has changed since the last request.
  2729  func (c *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsListCall {
  2730  	c.ifNoneMatch_ = entityTag
  2731  	return c
  2732  }
  2733  
  2734  // Context sets the context to be used in this call's Do method.
  2735  func (c *ProjectsLocationsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsListCall {
  2736  	c.ctx_ = ctx
  2737  	return c
  2738  }
  2739  
  2740  // Header returns a http.Header that can be modified by the caller to add
  2741  // headers to the request.
  2742  func (c *ProjectsLocationsEvaluationsListCall) Header() http.Header {
  2743  	if c.header_ == nil {
  2744  		c.header_ = make(http.Header)
  2745  	}
  2746  	return c.header_
  2747  }
  2748  
  2749  func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
  2750  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2751  	if c.ifNoneMatch_ != "" {
  2752  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2753  	}
  2754  	var body io.Reader = nil
  2755  	c.urlParams_.Set("alt", alt)
  2756  	c.urlParams_.Set("prettyPrint", "false")
  2757  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluations")
  2758  	urls += "?" + c.urlParams_.Encode()
  2759  	req, err := http.NewRequest("GET", urls, body)
  2760  	if err != nil {
  2761  		return nil, err
  2762  	}
  2763  	req.Header = reqHeaders
  2764  	googleapi.Expand(req.URL, map[string]string{
  2765  		"parent": c.parent,
  2766  	})
  2767  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2768  }
  2769  
  2770  // Do executes the "workloadmanager.projects.locations.evaluations.list" call.
  2771  // Any non-2xx status code is an error. Response headers are in either
  2772  // *ListEvaluationsResponse.ServerResponse.Header or (if a response was
  2773  // returned at all) in error.(*googleapi.Error).Header. Use
  2774  // googleapi.IsNotModified to check whether the returned error was because
  2775  // http.StatusNotModified was returned.
  2776  func (c *ProjectsLocationsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*ListEvaluationsResponse, error) {
  2777  	gensupport.SetOptions(c.urlParams_, opts...)
  2778  	res, err := c.doRequest("json")
  2779  	if res != nil && res.StatusCode == http.StatusNotModified {
  2780  		if res.Body != nil {
  2781  			res.Body.Close()
  2782  		}
  2783  		return nil, gensupport.WrapError(&googleapi.Error{
  2784  			Code:   res.StatusCode,
  2785  			Header: res.Header,
  2786  		})
  2787  	}
  2788  	if err != nil {
  2789  		return nil, err
  2790  	}
  2791  	defer googleapi.CloseBody(res)
  2792  	if err := googleapi.CheckResponse(res); err != nil {
  2793  		return nil, gensupport.WrapError(err)
  2794  	}
  2795  	ret := &ListEvaluationsResponse{
  2796  		ServerResponse: googleapi.ServerResponse{
  2797  			Header:         res.Header,
  2798  			HTTPStatusCode: res.StatusCode,
  2799  		},
  2800  	}
  2801  	target := &ret
  2802  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2803  		return nil, err
  2804  	}
  2805  	return ret, nil
  2806  }
  2807  
  2808  // Pages invokes f for each page of results.
  2809  // A non-nil error returned from f will halt the iteration.
  2810  // The provided context supersedes any context provided to the Context method.
  2811  func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func(*ListEvaluationsResponse) error) error {
  2812  	c.ctx_ = ctx
  2813  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2814  	for {
  2815  		x, err := c.Do()
  2816  		if err != nil {
  2817  			return err
  2818  		}
  2819  		if err := f(x); err != nil {
  2820  			return err
  2821  		}
  2822  		if x.NextPageToken == "" {
  2823  			return nil
  2824  		}
  2825  		c.PageToken(x.NextPageToken)
  2826  	}
  2827  }
  2828  
  2829  type ProjectsLocationsEvaluationsExecutionsDeleteCall struct {
  2830  	s          *Service
  2831  	name       string
  2832  	urlParams_ gensupport.URLParams
  2833  	ctx_       context.Context
  2834  	header_    http.Header
  2835  }
  2836  
  2837  // Delete: Deletes a single Execution.
  2838  //
  2839  // - name: Name of the resource.
  2840  func (r *ProjectsLocationsEvaluationsExecutionsService) Delete(name string) *ProjectsLocationsEvaluationsExecutionsDeleteCall {
  2841  	c := &ProjectsLocationsEvaluationsExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2842  	c.name = name
  2843  	return c
  2844  }
  2845  
  2846  // RequestId sets the optional parameter "requestId": An optional request ID to
  2847  // identify requests. Specify a unique request ID so that if you must retry
  2848  // your request, the server will know to ignore the request if it has already
  2849  // been completed. The server will guarantee that for at least 60 minutes after
  2850  // the first request. For example, consider a situation where you make an
  2851  // initial request and the request times out. If you make the request again
  2852  // with the same request ID, the server can check if original operation with
  2853  // the same request ID was received, and if so, will ignore the second request.
  2854  // This prevents clients from accidentally creating duplicate commitments. The
  2855  // request ID must be a valid UUID with the exception that zero UUID is not
  2856  // supported (00000000-0000-0000-0000-000000000000).
  2857  func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsExecutionsDeleteCall {
  2858  	c.urlParams_.Set("requestId", requestId)
  2859  	return c
  2860  }
  2861  
  2862  // Fields allows partial responses to be retrieved. See
  2863  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2864  // details.
  2865  func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsDeleteCall {
  2866  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2867  	return c
  2868  }
  2869  
  2870  // Context sets the context to be used in this call's Do method.
  2871  func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsDeleteCall {
  2872  	c.ctx_ = ctx
  2873  	return c
  2874  }
  2875  
  2876  // Header returns a http.Header that can be modified by the caller to add
  2877  // headers to the request.
  2878  func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Header() http.Header {
  2879  	if c.header_ == nil {
  2880  		c.header_ = make(http.Header)
  2881  	}
  2882  	return c.header_
  2883  }
  2884  
  2885  func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  2886  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2887  	var body io.Reader = nil
  2888  	c.urlParams_.Set("alt", alt)
  2889  	c.urlParams_.Set("prettyPrint", "false")
  2890  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2891  	urls += "?" + c.urlParams_.Encode()
  2892  	req, err := http.NewRequest("DELETE", urls, body)
  2893  	if err != nil {
  2894  		return nil, err
  2895  	}
  2896  	req.Header = reqHeaders
  2897  	googleapi.Expand(req.URL, map[string]string{
  2898  		"name": c.name,
  2899  	})
  2900  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2901  }
  2902  
  2903  // Do executes the "workloadmanager.projects.locations.evaluations.executions.delete" call.
  2904  // Any non-2xx status code is an error. Response headers are in either
  2905  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  2906  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2907  // whether the returned error was because http.StatusNotModified was returned.
  2908  func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  2909  	gensupport.SetOptions(c.urlParams_, opts...)
  2910  	res, err := c.doRequest("json")
  2911  	if res != nil && res.StatusCode == http.StatusNotModified {
  2912  		if res.Body != nil {
  2913  			res.Body.Close()
  2914  		}
  2915  		return nil, gensupport.WrapError(&googleapi.Error{
  2916  			Code:   res.StatusCode,
  2917  			Header: res.Header,
  2918  		})
  2919  	}
  2920  	if err != nil {
  2921  		return nil, err
  2922  	}
  2923  	defer googleapi.CloseBody(res)
  2924  	if err := googleapi.CheckResponse(res); err != nil {
  2925  		return nil, gensupport.WrapError(err)
  2926  	}
  2927  	ret := &Operation{
  2928  		ServerResponse: googleapi.ServerResponse{
  2929  			Header:         res.Header,
  2930  			HTTPStatusCode: res.StatusCode,
  2931  		},
  2932  	}
  2933  	target := &ret
  2934  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2935  		return nil, err
  2936  	}
  2937  	return ret, nil
  2938  }
  2939  
  2940  type ProjectsLocationsEvaluationsExecutionsGetCall struct {
  2941  	s            *Service
  2942  	name         string
  2943  	urlParams_   gensupport.URLParams
  2944  	ifNoneMatch_ string
  2945  	ctx_         context.Context
  2946  	header_      http.Header
  2947  }
  2948  
  2949  // Get: Gets details of a single Execution.
  2950  //
  2951  // - name: Name of the resource.
  2952  func (r *ProjectsLocationsEvaluationsExecutionsService) Get(name string) *ProjectsLocationsEvaluationsExecutionsGetCall {
  2953  	c := &ProjectsLocationsEvaluationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2954  	c.name = name
  2955  	return c
  2956  }
  2957  
  2958  // Fields allows partial responses to be retrieved. See
  2959  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2960  // details.
  2961  func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsGetCall {
  2962  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2963  	return c
  2964  }
  2965  
  2966  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2967  // object's ETag matches the given value. This is useful for getting updates
  2968  // only after the object has changed since the last request.
  2969  func (c *ProjectsLocationsEvaluationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsGetCall {
  2970  	c.ifNoneMatch_ = entityTag
  2971  	return c
  2972  }
  2973  
  2974  // Context sets the context to be used in this call's Do method.
  2975  func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsGetCall {
  2976  	c.ctx_ = ctx
  2977  	return c
  2978  }
  2979  
  2980  // Header returns a http.Header that can be modified by the caller to add
  2981  // headers to the request.
  2982  func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Header() http.Header {
  2983  	if c.header_ == nil {
  2984  		c.header_ = make(http.Header)
  2985  	}
  2986  	return c.header_
  2987  }
  2988  
  2989  func (c *ProjectsLocationsEvaluationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) {
  2990  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2991  	if c.ifNoneMatch_ != "" {
  2992  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2993  	}
  2994  	var body io.Reader = nil
  2995  	c.urlParams_.Set("alt", alt)
  2996  	c.urlParams_.Set("prettyPrint", "false")
  2997  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2998  	urls += "?" + c.urlParams_.Encode()
  2999  	req, err := http.NewRequest("GET", urls, body)
  3000  	if err != nil {
  3001  		return nil, err
  3002  	}
  3003  	req.Header = reqHeaders
  3004  	googleapi.Expand(req.URL, map[string]string{
  3005  		"name": c.name,
  3006  	})
  3007  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3008  }
  3009  
  3010  // Do executes the "workloadmanager.projects.locations.evaluations.executions.get" call.
  3011  // Any non-2xx status code is an error. Response headers are in either
  3012  // *Execution.ServerResponse.Header or (if a response was returned at all) in
  3013  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3014  // whether the returned error was because http.StatusNotModified was returned.
  3015  func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, error) {
  3016  	gensupport.SetOptions(c.urlParams_, opts...)
  3017  	res, err := c.doRequest("json")
  3018  	if res != nil && res.StatusCode == http.StatusNotModified {
  3019  		if res.Body != nil {
  3020  			res.Body.Close()
  3021  		}
  3022  		return nil, gensupport.WrapError(&googleapi.Error{
  3023  			Code:   res.StatusCode,
  3024  			Header: res.Header,
  3025  		})
  3026  	}
  3027  	if err != nil {
  3028  		return nil, err
  3029  	}
  3030  	defer googleapi.CloseBody(res)
  3031  	if err := googleapi.CheckResponse(res); err != nil {
  3032  		return nil, gensupport.WrapError(err)
  3033  	}
  3034  	ret := &Execution{
  3035  		ServerResponse: googleapi.ServerResponse{
  3036  			Header:         res.Header,
  3037  			HTTPStatusCode: res.StatusCode,
  3038  		},
  3039  	}
  3040  	target := &ret
  3041  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3042  		return nil, err
  3043  	}
  3044  	return ret, nil
  3045  }
  3046  
  3047  type ProjectsLocationsEvaluationsExecutionsListCall struct {
  3048  	s            *Service
  3049  	parent       string
  3050  	urlParams_   gensupport.URLParams
  3051  	ifNoneMatch_ string
  3052  	ctx_         context.Context
  3053  	header_      http.Header
  3054  }
  3055  
  3056  // List: Lists Executions in a given project and location.
  3057  //
  3058  //   - parent: The resource prefix of the Execution using the form:
  3059  //     'projects/{project}/locations/{location}/evaluations/{evaluation}'.
  3060  func (r *ProjectsLocationsEvaluationsExecutionsService) List(parent string) *ProjectsLocationsEvaluationsExecutionsListCall {
  3061  	c := &ProjectsLocationsEvaluationsExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3062  	c.parent = parent
  3063  	return c
  3064  }
  3065  
  3066  // Filter sets the optional parameter "filter": Filtering results
  3067  func (c *ProjectsLocationsEvaluationsExecutionsListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsListCall {
  3068  	c.urlParams_.Set("filter", filter)
  3069  	return c
  3070  }
  3071  
  3072  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  3073  // https://google.aip.dev/132#ordering for more details.
  3074  func (c *ProjectsLocationsEvaluationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsExecutionsListCall {
  3075  	c.urlParams_.Set("orderBy", orderBy)
  3076  	return c
  3077  }
  3078  
  3079  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  3080  // may return fewer items than requested. If unspecified, server will pick an
  3081  // appropriate default.
  3082  func (c *ProjectsLocationsEvaluationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsListCall {
  3083  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3084  	return c
  3085  }
  3086  
  3087  // PageToken sets the optional parameter "pageToken": A token identifying a
  3088  // page of results the server should return.
  3089  func (c *ProjectsLocationsEvaluationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsListCall {
  3090  	c.urlParams_.Set("pageToken", pageToken)
  3091  	return c
  3092  }
  3093  
  3094  // Fields allows partial responses to be retrieved. See
  3095  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3096  // details.
  3097  func (c *ProjectsLocationsEvaluationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsListCall {
  3098  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3099  	return c
  3100  }
  3101  
  3102  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3103  // object's ETag matches the given value. This is useful for getting updates
  3104  // only after the object has changed since the last request.
  3105  func (c *ProjectsLocationsEvaluationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsListCall {
  3106  	c.ifNoneMatch_ = entityTag
  3107  	return c
  3108  }
  3109  
  3110  // Context sets the context to be used in this call's Do method.
  3111  func (c *ProjectsLocationsEvaluationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsListCall {
  3112  	c.ctx_ = ctx
  3113  	return c
  3114  }
  3115  
  3116  // Header returns a http.Header that can be modified by the caller to add
  3117  // headers to the request.
  3118  func (c *ProjectsLocationsEvaluationsExecutionsListCall) Header() http.Header {
  3119  	if c.header_ == nil {
  3120  		c.header_ = make(http.Header)
  3121  	}
  3122  	return c.header_
  3123  }
  3124  
  3125  func (c *ProjectsLocationsEvaluationsExecutionsListCall) doRequest(alt string) (*http.Response, error) {
  3126  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3127  	if c.ifNoneMatch_ != "" {
  3128  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3129  	}
  3130  	var body io.Reader = nil
  3131  	c.urlParams_.Set("alt", alt)
  3132  	c.urlParams_.Set("prettyPrint", "false")
  3133  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions")
  3134  	urls += "?" + c.urlParams_.Encode()
  3135  	req, err := http.NewRequest("GET", urls, body)
  3136  	if err != nil {
  3137  		return nil, err
  3138  	}
  3139  	req.Header = reqHeaders
  3140  	googleapi.Expand(req.URL, map[string]string{
  3141  		"parent": c.parent,
  3142  	})
  3143  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3144  }
  3145  
  3146  // Do executes the "workloadmanager.projects.locations.evaluations.executions.list" call.
  3147  // Any non-2xx status code is an error. Response headers are in either
  3148  // *ListExecutionsResponse.ServerResponse.Header or (if a response was returned
  3149  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3150  // check whether the returned error was because http.StatusNotModified was
  3151  // returned.
  3152  func (c *ProjectsLocationsEvaluationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionsResponse, error) {
  3153  	gensupport.SetOptions(c.urlParams_, opts...)
  3154  	res, err := c.doRequest("json")
  3155  	if res != nil && res.StatusCode == http.StatusNotModified {
  3156  		if res.Body != nil {
  3157  			res.Body.Close()
  3158  		}
  3159  		return nil, gensupport.WrapError(&googleapi.Error{
  3160  			Code:   res.StatusCode,
  3161  			Header: res.Header,
  3162  		})
  3163  	}
  3164  	if err != nil {
  3165  		return nil, err
  3166  	}
  3167  	defer googleapi.CloseBody(res)
  3168  	if err := googleapi.CheckResponse(res); err != nil {
  3169  		return nil, gensupport.WrapError(err)
  3170  	}
  3171  	ret := &ListExecutionsResponse{
  3172  		ServerResponse: googleapi.ServerResponse{
  3173  			Header:         res.Header,
  3174  			HTTPStatusCode: res.StatusCode,
  3175  		},
  3176  	}
  3177  	target := &ret
  3178  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3179  		return nil, err
  3180  	}
  3181  	return ret, nil
  3182  }
  3183  
  3184  // Pages invokes f for each page of results.
  3185  // A non-nil error returned from f will halt the iteration.
  3186  // The provided context supersedes any context provided to the Context method.
  3187  func (c *ProjectsLocationsEvaluationsExecutionsListCall) Pages(ctx context.Context, f func(*ListExecutionsResponse) error) error {
  3188  	c.ctx_ = ctx
  3189  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3190  	for {
  3191  		x, err := c.Do()
  3192  		if err != nil {
  3193  			return err
  3194  		}
  3195  		if err := f(x); err != nil {
  3196  			return err
  3197  		}
  3198  		if x.NextPageToken == "" {
  3199  			return nil
  3200  		}
  3201  		c.PageToken(x.NextPageToken)
  3202  	}
  3203  }
  3204  
  3205  type ProjectsLocationsEvaluationsExecutionsRunCall struct {
  3206  	s                    *Service
  3207  	name                 string
  3208  	runevaluationrequest *RunEvaluationRequest
  3209  	urlParams_           gensupport.URLParams
  3210  	ctx_                 context.Context
  3211  	header_              http.Header
  3212  }
  3213  
  3214  // Run: Creates a new Execution in a given project and location.
  3215  //
  3216  //   - name: The resource name of the Execution using the form:
  3217  //     'projects/{project}/locations/{location}/evaluations/{evaluation}/execution
  3218  //     s/{execution}'.
  3219  func (r *ProjectsLocationsEvaluationsExecutionsService) Run(name string, runevaluationrequest *RunEvaluationRequest) *ProjectsLocationsEvaluationsExecutionsRunCall {
  3220  	c := &ProjectsLocationsEvaluationsExecutionsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3221  	c.name = name
  3222  	c.runevaluationrequest = runevaluationrequest
  3223  	return c
  3224  }
  3225  
  3226  // Fields allows partial responses to be retrieved. See
  3227  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3228  // details.
  3229  func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsRunCall {
  3230  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3231  	return c
  3232  }
  3233  
  3234  // Context sets the context to be used in this call's Do method.
  3235  func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsRunCall {
  3236  	c.ctx_ = ctx
  3237  	return c
  3238  }
  3239  
  3240  // Header returns a http.Header that can be modified by the caller to add
  3241  // headers to the request.
  3242  func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Header() http.Header {
  3243  	if c.header_ == nil {
  3244  		c.header_ = make(http.Header)
  3245  	}
  3246  	return c.header_
  3247  }
  3248  
  3249  func (c *ProjectsLocationsEvaluationsExecutionsRunCall) doRequest(alt string) (*http.Response, error) {
  3250  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3251  	var body io.Reader = nil
  3252  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.runevaluationrequest)
  3253  	if err != nil {
  3254  		return nil, err
  3255  	}
  3256  	c.urlParams_.Set("alt", alt)
  3257  	c.urlParams_.Set("prettyPrint", "false")
  3258  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/executions:run")
  3259  	urls += "?" + c.urlParams_.Encode()
  3260  	req, err := http.NewRequest("POST", urls, body)
  3261  	if err != nil {
  3262  		return nil, err
  3263  	}
  3264  	req.Header = reqHeaders
  3265  	googleapi.Expand(req.URL, map[string]string{
  3266  		"name": c.name,
  3267  	})
  3268  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3269  }
  3270  
  3271  // Do executes the "workloadmanager.projects.locations.evaluations.executions.run" call.
  3272  // Any non-2xx status code is an error. Response headers are in either
  3273  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3274  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3275  // whether the returned error was because http.StatusNotModified was returned.
  3276  func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3277  	gensupport.SetOptions(c.urlParams_, opts...)
  3278  	res, err := c.doRequest("json")
  3279  	if res != nil && res.StatusCode == http.StatusNotModified {
  3280  		if res.Body != nil {
  3281  			res.Body.Close()
  3282  		}
  3283  		return nil, gensupport.WrapError(&googleapi.Error{
  3284  			Code:   res.StatusCode,
  3285  			Header: res.Header,
  3286  		})
  3287  	}
  3288  	if err != nil {
  3289  		return nil, err
  3290  	}
  3291  	defer googleapi.CloseBody(res)
  3292  	if err := googleapi.CheckResponse(res); err != nil {
  3293  		return nil, gensupport.WrapError(err)
  3294  	}
  3295  	ret := &Operation{
  3296  		ServerResponse: googleapi.ServerResponse{
  3297  			Header:         res.Header,
  3298  			HTTPStatusCode: res.StatusCode,
  3299  		},
  3300  	}
  3301  	target := &ret
  3302  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3303  		return nil, err
  3304  	}
  3305  	return ret, nil
  3306  }
  3307  
  3308  type ProjectsLocationsEvaluationsExecutionsResultsListCall struct {
  3309  	s            *Service
  3310  	parent       string
  3311  	urlParams_   gensupport.URLParams
  3312  	ifNoneMatch_ string
  3313  	ctx_         context.Context
  3314  	header_      http.Header
  3315  }
  3316  
  3317  // List: List the running result of a single Execution.
  3318  //
  3319  //   - parent: The execution results. Format:
  3320  //     {parent}/evaluations/*/executions/*/results.
  3321  func (r *ProjectsLocationsEvaluationsExecutionsResultsService) List(parent string) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3322  	c := &ProjectsLocationsEvaluationsExecutionsResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3323  	c.parent = parent
  3324  	return c
  3325  }
  3326  
  3327  // Filter sets the optional parameter "filter": Filtering results
  3328  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3329  	c.urlParams_.Set("filter", filter)
  3330  	return c
  3331  }
  3332  
  3333  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  3334  // may return fewer items than requested. If unspecified, server will pick an
  3335  // appropriate default.
  3336  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3337  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3338  	return c
  3339  }
  3340  
  3341  // PageToken sets the optional parameter "pageToken": A token identifying a
  3342  // page of results the server should return.
  3343  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3344  	c.urlParams_.Set("pageToken", pageToken)
  3345  	return c
  3346  }
  3347  
  3348  // Fields allows partial responses to be retrieved. See
  3349  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3350  // details.
  3351  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3352  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3353  	return c
  3354  }
  3355  
  3356  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3357  // object's ETag matches the given value. This is useful for getting updates
  3358  // only after the object has changed since the last request.
  3359  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3360  	c.ifNoneMatch_ = entityTag
  3361  	return c
  3362  }
  3363  
  3364  // Context sets the context to be used in this call's Do method.
  3365  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsResultsListCall {
  3366  	c.ctx_ = ctx
  3367  	return c
  3368  }
  3369  
  3370  // Header returns a http.Header that can be modified by the caller to add
  3371  // headers to the request.
  3372  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Header() http.Header {
  3373  	if c.header_ == nil {
  3374  		c.header_ = make(http.Header)
  3375  	}
  3376  	return c.header_
  3377  }
  3378  
  3379  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) doRequest(alt string) (*http.Response, error) {
  3380  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3381  	if c.ifNoneMatch_ != "" {
  3382  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3383  	}
  3384  	var body io.Reader = nil
  3385  	c.urlParams_.Set("alt", alt)
  3386  	c.urlParams_.Set("prettyPrint", "false")
  3387  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/results")
  3388  	urls += "?" + c.urlParams_.Encode()
  3389  	req, err := http.NewRequest("GET", urls, body)
  3390  	if err != nil {
  3391  		return nil, err
  3392  	}
  3393  	req.Header = reqHeaders
  3394  	googleapi.Expand(req.URL, map[string]string{
  3395  		"parent": c.parent,
  3396  	})
  3397  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3398  }
  3399  
  3400  // Do executes the "workloadmanager.projects.locations.evaluations.executions.results.list" call.
  3401  // Any non-2xx status code is an error. Response headers are in either
  3402  // *ListExecutionResultsResponse.ServerResponse.Header or (if a response was
  3403  // returned at all) in error.(*googleapi.Error).Header. Use
  3404  // googleapi.IsNotModified to check whether the returned error was because
  3405  // http.StatusNotModified was returned.
  3406  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionResultsResponse, error) {
  3407  	gensupport.SetOptions(c.urlParams_, opts...)
  3408  	res, err := c.doRequest("json")
  3409  	if res != nil && res.StatusCode == http.StatusNotModified {
  3410  		if res.Body != nil {
  3411  			res.Body.Close()
  3412  		}
  3413  		return nil, gensupport.WrapError(&googleapi.Error{
  3414  			Code:   res.StatusCode,
  3415  			Header: res.Header,
  3416  		})
  3417  	}
  3418  	if err != nil {
  3419  		return nil, err
  3420  	}
  3421  	defer googleapi.CloseBody(res)
  3422  	if err := googleapi.CheckResponse(res); err != nil {
  3423  		return nil, gensupport.WrapError(err)
  3424  	}
  3425  	ret := &ListExecutionResultsResponse{
  3426  		ServerResponse: googleapi.ServerResponse{
  3427  			Header:         res.Header,
  3428  			HTTPStatusCode: res.StatusCode,
  3429  		},
  3430  	}
  3431  	target := &ret
  3432  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3433  		return nil, err
  3434  	}
  3435  	return ret, nil
  3436  }
  3437  
  3438  // Pages invokes f for each page of results.
  3439  // A non-nil error returned from f will halt the iteration.
  3440  // The provided context supersedes any context provided to the Context method.
  3441  func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Pages(ctx context.Context, f func(*ListExecutionResultsResponse) error) error {
  3442  	c.ctx_ = ctx
  3443  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3444  	for {
  3445  		x, err := c.Do()
  3446  		if err != nil {
  3447  			return err
  3448  		}
  3449  		if err := f(x); err != nil {
  3450  			return err
  3451  		}
  3452  		if x.NextPageToken == "" {
  3453  			return nil
  3454  		}
  3455  		c.PageToken(x.NextPageToken)
  3456  	}
  3457  }
  3458  
  3459  type ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall struct {
  3460  	s            *Service
  3461  	parent       string
  3462  	urlParams_   gensupport.URLParams
  3463  	ifNoneMatch_ string
  3464  	ctx_         context.Context
  3465  	header_      http.Header
  3466  }
  3467  
  3468  // List: List all scanned resources for a single Execution.
  3469  //
  3470  // - parent: parent for ListScannedResourcesRequest.
  3471  func (r *ProjectsLocationsEvaluationsExecutionsScannedResourcesService) List(parent string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3472  	c := &ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3473  	c.parent = parent
  3474  	return c
  3475  }
  3476  
  3477  // Filter sets the optional parameter "filter": Filtering results
  3478  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3479  	c.urlParams_.Set("filter", filter)
  3480  	return c
  3481  }
  3482  
  3483  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  3484  // https://google.aip.dev/132#ordering for more details.
  3485  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3486  	c.urlParams_.Set("orderBy", orderBy)
  3487  	return c
  3488  }
  3489  
  3490  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  3491  // may return fewer items than requested. If unspecified, server will pick an
  3492  // appropriate default.
  3493  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3494  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3495  	return c
  3496  }
  3497  
  3498  // PageToken sets the optional parameter "pageToken": A token identifying a
  3499  // page of results the server should return.
  3500  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3501  	c.urlParams_.Set("pageToken", pageToken)
  3502  	return c
  3503  }
  3504  
  3505  // Rule sets the optional parameter "rule": rule name
  3506  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Rule(rule string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3507  	c.urlParams_.Set("rule", rule)
  3508  	return c
  3509  }
  3510  
  3511  // Fields allows partial responses to be retrieved. See
  3512  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3513  // details.
  3514  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3515  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3516  	return c
  3517  }
  3518  
  3519  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3520  // object's ETag matches the given value. This is useful for getting updates
  3521  // only after the object has changed since the last request.
  3522  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3523  	c.ifNoneMatch_ = entityTag
  3524  	return c
  3525  }
  3526  
  3527  // Context sets the context to be used in this call's Do method.
  3528  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall {
  3529  	c.ctx_ = ctx
  3530  	return c
  3531  }
  3532  
  3533  // Header returns a http.Header that can be modified by the caller to add
  3534  // headers to the request.
  3535  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Header() http.Header {
  3536  	if c.header_ == nil {
  3537  		c.header_ = make(http.Header)
  3538  	}
  3539  	return c.header_
  3540  }
  3541  
  3542  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) doRequest(alt string) (*http.Response, error) {
  3543  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3544  	if c.ifNoneMatch_ != "" {
  3545  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3546  	}
  3547  	var body io.Reader = nil
  3548  	c.urlParams_.Set("alt", alt)
  3549  	c.urlParams_.Set("prettyPrint", "false")
  3550  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/scannedResources")
  3551  	urls += "?" + c.urlParams_.Encode()
  3552  	req, err := http.NewRequest("GET", urls, body)
  3553  	if err != nil {
  3554  		return nil, err
  3555  	}
  3556  	req.Header = reqHeaders
  3557  	googleapi.Expand(req.URL, map[string]string{
  3558  		"parent": c.parent,
  3559  	})
  3560  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3561  }
  3562  
  3563  // Do executes the "workloadmanager.projects.locations.evaluations.executions.scannedResources.list" call.
  3564  // Any non-2xx status code is an error. Response headers are in either
  3565  // *ListScannedResourcesResponse.ServerResponse.Header or (if a response was
  3566  // returned at all) in error.(*googleapi.Error).Header. Use
  3567  // googleapi.IsNotModified to check whether the returned error was because
  3568  // http.StatusNotModified was returned.
  3569  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Do(opts ...googleapi.CallOption) (*ListScannedResourcesResponse, error) {
  3570  	gensupport.SetOptions(c.urlParams_, opts...)
  3571  	res, err := c.doRequest("json")
  3572  	if res != nil && res.StatusCode == http.StatusNotModified {
  3573  		if res.Body != nil {
  3574  			res.Body.Close()
  3575  		}
  3576  		return nil, gensupport.WrapError(&googleapi.Error{
  3577  			Code:   res.StatusCode,
  3578  			Header: res.Header,
  3579  		})
  3580  	}
  3581  	if err != nil {
  3582  		return nil, err
  3583  	}
  3584  	defer googleapi.CloseBody(res)
  3585  	if err := googleapi.CheckResponse(res); err != nil {
  3586  		return nil, gensupport.WrapError(err)
  3587  	}
  3588  	ret := &ListScannedResourcesResponse{
  3589  		ServerResponse: googleapi.ServerResponse{
  3590  			Header:         res.Header,
  3591  			HTTPStatusCode: res.StatusCode,
  3592  		},
  3593  	}
  3594  	target := &ret
  3595  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3596  		return nil, err
  3597  	}
  3598  	return ret, nil
  3599  }
  3600  
  3601  // Pages invokes f for each page of results.
  3602  // A non-nil error returned from f will halt the iteration.
  3603  // The provided context supersedes any context provided to the Context method.
  3604  func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Pages(ctx context.Context, f func(*ListScannedResourcesResponse) error) error {
  3605  	c.ctx_ = ctx
  3606  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3607  	for {
  3608  		x, err := c.Do()
  3609  		if err != nil {
  3610  			return err
  3611  		}
  3612  		if err := f(x); err != nil {
  3613  			return err
  3614  		}
  3615  		if x.NextPageToken == "" {
  3616  			return nil
  3617  		}
  3618  		c.PageToken(x.NextPageToken)
  3619  	}
  3620  }
  3621  
  3622  type ProjectsLocationsInsightsWriteInsightCall struct {
  3623  	s                   *Service
  3624  	location            string
  3625  	writeinsightrequest *WriteInsightRequest
  3626  	urlParams_          gensupport.URLParams
  3627  	ctx_                context.Context
  3628  	header_             http.Header
  3629  }
  3630  
  3631  // WriteInsight: Write the data insights to workload manager data warehouse.
  3632  //
  3633  //   - location: The GCP location. The format is:
  3634  //     projects/{project}/locations/{location}.
  3635  func (r *ProjectsLocationsInsightsService) WriteInsight(location string, writeinsightrequest *WriteInsightRequest) *ProjectsLocationsInsightsWriteInsightCall {
  3636  	c := &ProjectsLocationsInsightsWriteInsightCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3637  	c.location = location
  3638  	c.writeinsightrequest = writeinsightrequest
  3639  	return c
  3640  }
  3641  
  3642  // Fields allows partial responses to be retrieved. See
  3643  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3644  // details.
  3645  func (c *ProjectsLocationsInsightsWriteInsightCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsWriteInsightCall {
  3646  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3647  	return c
  3648  }
  3649  
  3650  // Context sets the context to be used in this call's Do method.
  3651  func (c *ProjectsLocationsInsightsWriteInsightCall) Context(ctx context.Context) *ProjectsLocationsInsightsWriteInsightCall {
  3652  	c.ctx_ = ctx
  3653  	return c
  3654  }
  3655  
  3656  // Header returns a http.Header that can be modified by the caller to add
  3657  // headers to the request.
  3658  func (c *ProjectsLocationsInsightsWriteInsightCall) Header() http.Header {
  3659  	if c.header_ == nil {
  3660  		c.header_ = make(http.Header)
  3661  	}
  3662  	return c.header_
  3663  }
  3664  
  3665  func (c *ProjectsLocationsInsightsWriteInsightCall) doRequest(alt string) (*http.Response, error) {
  3666  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3667  	var body io.Reader = nil
  3668  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.writeinsightrequest)
  3669  	if err != nil {
  3670  		return nil, err
  3671  	}
  3672  	c.urlParams_.Set("alt", alt)
  3673  	c.urlParams_.Set("prettyPrint", "false")
  3674  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/insights:writeInsight")
  3675  	urls += "?" + c.urlParams_.Encode()
  3676  	req, err := http.NewRequest("POST", urls, body)
  3677  	if err != nil {
  3678  		return nil, err
  3679  	}
  3680  	req.Header = reqHeaders
  3681  	googleapi.Expand(req.URL, map[string]string{
  3682  		"location": c.location,
  3683  	})
  3684  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3685  }
  3686  
  3687  // Do executes the "workloadmanager.projects.locations.insights.writeInsight" call.
  3688  // Any non-2xx status code is an error. Response headers are in either
  3689  // *WriteInsightResponse.ServerResponse.Header or (if a response was returned
  3690  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3691  // check whether the returned error was because http.StatusNotModified was
  3692  // returned.
  3693  func (c *ProjectsLocationsInsightsWriteInsightCall) Do(opts ...googleapi.CallOption) (*WriteInsightResponse, error) {
  3694  	gensupport.SetOptions(c.urlParams_, opts...)
  3695  	res, err := c.doRequest("json")
  3696  	if res != nil && res.StatusCode == http.StatusNotModified {
  3697  		if res.Body != nil {
  3698  			res.Body.Close()
  3699  		}
  3700  		return nil, gensupport.WrapError(&googleapi.Error{
  3701  			Code:   res.StatusCode,
  3702  			Header: res.Header,
  3703  		})
  3704  	}
  3705  	if err != nil {
  3706  		return nil, err
  3707  	}
  3708  	defer googleapi.CloseBody(res)
  3709  	if err := googleapi.CheckResponse(res); err != nil {
  3710  		return nil, gensupport.WrapError(err)
  3711  	}
  3712  	ret := &WriteInsightResponse{
  3713  		ServerResponse: googleapi.ServerResponse{
  3714  			Header:         res.Header,
  3715  			HTTPStatusCode: res.StatusCode,
  3716  		},
  3717  	}
  3718  	target := &ret
  3719  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3720  		return nil, err
  3721  	}
  3722  	return ret, nil
  3723  }
  3724  
  3725  type ProjectsLocationsOperationsCancelCall struct {
  3726  	s                      *Service
  3727  	name                   string
  3728  	canceloperationrequest *CancelOperationRequest
  3729  	urlParams_             gensupport.URLParams
  3730  	ctx_                   context.Context
  3731  	header_                http.Header
  3732  }
  3733  
  3734  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  3735  // server makes a best effort to cancel the operation, but success is not
  3736  // guaranteed. If the server doesn't support this method, it returns
  3737  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  3738  // other methods to check whether the cancellation succeeded or whether the
  3739  // operation completed despite cancellation. On successful cancellation, the
  3740  // operation is not deleted; instead, it becomes an operation with an
  3741  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  3742  // `Code.CANCELLED`.
  3743  //
  3744  // - name: The name of the operation resource to be cancelled.
  3745  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
  3746  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3747  	c.name = name
  3748  	c.canceloperationrequest = canceloperationrequest
  3749  	return c
  3750  }
  3751  
  3752  // Fields allows partial responses to be retrieved. See
  3753  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3754  // details.
  3755  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
  3756  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3757  	return c
  3758  }
  3759  
  3760  // Context sets the context to be used in this call's Do method.
  3761  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
  3762  	c.ctx_ = ctx
  3763  	return c
  3764  }
  3765  
  3766  // Header returns a http.Header that can be modified by the caller to add
  3767  // headers to the request.
  3768  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
  3769  	if c.header_ == nil {
  3770  		c.header_ = make(http.Header)
  3771  	}
  3772  	return c.header_
  3773  }
  3774  
  3775  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  3776  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3777  	var body io.Reader = nil
  3778  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  3779  	if err != nil {
  3780  		return nil, err
  3781  	}
  3782  	c.urlParams_.Set("alt", alt)
  3783  	c.urlParams_.Set("prettyPrint", "false")
  3784  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  3785  	urls += "?" + c.urlParams_.Encode()
  3786  	req, err := http.NewRequest("POST", urls, body)
  3787  	if err != nil {
  3788  		return nil, err
  3789  	}
  3790  	req.Header = reqHeaders
  3791  	googleapi.Expand(req.URL, map[string]string{
  3792  		"name": c.name,
  3793  	})
  3794  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3795  }
  3796  
  3797  // Do executes the "workloadmanager.projects.locations.operations.cancel" call.
  3798  // Any non-2xx status code is an error. Response headers are in either
  3799  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  3800  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3801  // whether the returned error was because http.StatusNotModified was returned.
  3802  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  3803  	gensupport.SetOptions(c.urlParams_, opts...)
  3804  	res, err := c.doRequest("json")
  3805  	if res != nil && res.StatusCode == http.StatusNotModified {
  3806  		if res.Body != nil {
  3807  			res.Body.Close()
  3808  		}
  3809  		return nil, gensupport.WrapError(&googleapi.Error{
  3810  			Code:   res.StatusCode,
  3811  			Header: res.Header,
  3812  		})
  3813  	}
  3814  	if err != nil {
  3815  		return nil, err
  3816  	}
  3817  	defer googleapi.CloseBody(res)
  3818  	if err := googleapi.CheckResponse(res); err != nil {
  3819  		return nil, gensupport.WrapError(err)
  3820  	}
  3821  	ret := &Empty{
  3822  		ServerResponse: googleapi.ServerResponse{
  3823  			Header:         res.Header,
  3824  			HTTPStatusCode: res.StatusCode,
  3825  		},
  3826  	}
  3827  	target := &ret
  3828  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3829  		return nil, err
  3830  	}
  3831  	return ret, nil
  3832  }
  3833  
  3834  type ProjectsLocationsOperationsDeleteCall struct {
  3835  	s          *Service
  3836  	name       string
  3837  	urlParams_ gensupport.URLParams
  3838  	ctx_       context.Context
  3839  	header_    http.Header
  3840  }
  3841  
  3842  // Delete: Deletes a long-running operation. This method indicates that the
  3843  // client is no longer interested in the operation result. It does not cancel
  3844  // the operation. If the server doesn't support this method, it returns
  3845  // `google.rpc.Code.UNIMPLEMENTED`.
  3846  //
  3847  // - name: The name of the operation resource to be deleted.
  3848  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
  3849  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3850  	c.name = name
  3851  	return c
  3852  }
  3853  
  3854  // Fields allows partial responses to be retrieved. See
  3855  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3856  // details.
  3857  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
  3858  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3859  	return c
  3860  }
  3861  
  3862  // Context sets the context to be used in this call's Do method.
  3863  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
  3864  	c.ctx_ = ctx
  3865  	return c
  3866  }
  3867  
  3868  // Header returns a http.Header that can be modified by the caller to add
  3869  // headers to the request.
  3870  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
  3871  	if c.header_ == nil {
  3872  		c.header_ = make(http.Header)
  3873  	}
  3874  	return c.header_
  3875  }
  3876  
  3877  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  3878  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3879  	var body io.Reader = nil
  3880  	c.urlParams_.Set("alt", alt)
  3881  	c.urlParams_.Set("prettyPrint", "false")
  3882  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3883  	urls += "?" + c.urlParams_.Encode()
  3884  	req, err := http.NewRequest("DELETE", urls, body)
  3885  	if err != nil {
  3886  		return nil, err
  3887  	}
  3888  	req.Header = reqHeaders
  3889  	googleapi.Expand(req.URL, map[string]string{
  3890  		"name": c.name,
  3891  	})
  3892  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3893  }
  3894  
  3895  // Do executes the "workloadmanager.projects.locations.operations.delete" call.
  3896  // Any non-2xx status code is an error. Response headers are in either
  3897  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  3898  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3899  // whether the returned error was because http.StatusNotModified was returned.
  3900  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  3901  	gensupport.SetOptions(c.urlParams_, opts...)
  3902  	res, err := c.doRequest("json")
  3903  	if res != nil && res.StatusCode == http.StatusNotModified {
  3904  		if res.Body != nil {
  3905  			res.Body.Close()
  3906  		}
  3907  		return nil, gensupport.WrapError(&googleapi.Error{
  3908  			Code:   res.StatusCode,
  3909  			Header: res.Header,
  3910  		})
  3911  	}
  3912  	if err != nil {
  3913  		return nil, err
  3914  	}
  3915  	defer googleapi.CloseBody(res)
  3916  	if err := googleapi.CheckResponse(res); err != nil {
  3917  		return nil, gensupport.WrapError(err)
  3918  	}
  3919  	ret := &Empty{
  3920  		ServerResponse: googleapi.ServerResponse{
  3921  			Header:         res.Header,
  3922  			HTTPStatusCode: res.StatusCode,
  3923  		},
  3924  	}
  3925  	target := &ret
  3926  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3927  		return nil, err
  3928  	}
  3929  	return ret, nil
  3930  }
  3931  
  3932  type ProjectsLocationsOperationsGetCall struct {
  3933  	s            *Service
  3934  	name         string
  3935  	urlParams_   gensupport.URLParams
  3936  	ifNoneMatch_ string
  3937  	ctx_         context.Context
  3938  	header_      http.Header
  3939  }
  3940  
  3941  // Get: Gets the latest state of a long-running operation. Clients can use this
  3942  // method to poll the operation result at intervals as recommended by the API
  3943  // service.
  3944  //
  3945  // - name: The name of the operation resource.
  3946  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
  3947  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3948  	c.name = name
  3949  	return c
  3950  }
  3951  
  3952  // Fields allows partial responses to be retrieved. See
  3953  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3954  // details.
  3955  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  3956  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3957  	return c
  3958  }
  3959  
  3960  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3961  // object's ETag matches the given value. This is useful for getting updates
  3962  // only after the object has changed since the last request.
  3963  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  3964  	c.ifNoneMatch_ = entityTag
  3965  	return c
  3966  }
  3967  
  3968  // Context sets the context to be used in this call's Do method.
  3969  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  3970  	c.ctx_ = ctx
  3971  	return c
  3972  }
  3973  
  3974  // Header returns a http.Header that can be modified by the caller to add
  3975  // headers to the request.
  3976  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  3977  	if c.header_ == nil {
  3978  		c.header_ = make(http.Header)
  3979  	}
  3980  	return c.header_
  3981  }
  3982  
  3983  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  3984  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3985  	if c.ifNoneMatch_ != "" {
  3986  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3987  	}
  3988  	var body io.Reader = nil
  3989  	c.urlParams_.Set("alt", alt)
  3990  	c.urlParams_.Set("prettyPrint", "false")
  3991  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3992  	urls += "?" + c.urlParams_.Encode()
  3993  	req, err := http.NewRequest("GET", urls, body)
  3994  	if err != nil {
  3995  		return nil, err
  3996  	}
  3997  	req.Header = reqHeaders
  3998  	googleapi.Expand(req.URL, map[string]string{
  3999  		"name": c.name,
  4000  	})
  4001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4002  }
  4003  
  4004  // Do executes the "workloadmanager.projects.locations.operations.get" call.
  4005  // Any non-2xx status code is an error. Response headers are in either
  4006  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4007  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4008  // whether the returned error was because http.StatusNotModified was returned.
  4009  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4010  	gensupport.SetOptions(c.urlParams_, opts...)
  4011  	res, err := c.doRequest("json")
  4012  	if res != nil && res.StatusCode == http.StatusNotModified {
  4013  		if res.Body != nil {
  4014  			res.Body.Close()
  4015  		}
  4016  		return nil, gensupport.WrapError(&googleapi.Error{
  4017  			Code:   res.StatusCode,
  4018  			Header: res.Header,
  4019  		})
  4020  	}
  4021  	if err != nil {
  4022  		return nil, err
  4023  	}
  4024  	defer googleapi.CloseBody(res)
  4025  	if err := googleapi.CheckResponse(res); err != nil {
  4026  		return nil, gensupport.WrapError(err)
  4027  	}
  4028  	ret := &Operation{
  4029  		ServerResponse: googleapi.ServerResponse{
  4030  			Header:         res.Header,
  4031  			HTTPStatusCode: res.StatusCode,
  4032  		},
  4033  	}
  4034  	target := &ret
  4035  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4036  		return nil, err
  4037  	}
  4038  	return ret, nil
  4039  }
  4040  
  4041  type ProjectsLocationsOperationsListCall struct {
  4042  	s            *Service
  4043  	name         string
  4044  	urlParams_   gensupport.URLParams
  4045  	ifNoneMatch_ string
  4046  	ctx_         context.Context
  4047  	header_      http.Header
  4048  }
  4049  
  4050  // List: Lists operations that match the specified filter in the request. If
  4051  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  4052  //
  4053  // - name: The name of the operation's parent resource.
  4054  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
  4055  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4056  	c.name = name
  4057  	return c
  4058  }
  4059  
  4060  // Filter sets the optional parameter "filter": The standard list filter.
  4061  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
  4062  	c.urlParams_.Set("filter", filter)
  4063  	return c
  4064  }
  4065  
  4066  // PageSize sets the optional parameter "pageSize": The standard list page
  4067  // size.
  4068  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
  4069  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4070  	return c
  4071  }
  4072  
  4073  // PageToken sets the optional parameter "pageToken": The standard list page
  4074  // token.
  4075  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
  4076  	c.urlParams_.Set("pageToken", pageToken)
  4077  	return c
  4078  }
  4079  
  4080  // Fields allows partial responses to be retrieved. See
  4081  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4082  // details.
  4083  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
  4084  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4085  	return c
  4086  }
  4087  
  4088  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4089  // object's ETag matches the given value. This is useful for getting updates
  4090  // only after the object has changed since the last request.
  4091  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
  4092  	c.ifNoneMatch_ = entityTag
  4093  	return c
  4094  }
  4095  
  4096  // Context sets the context to be used in this call's Do method.
  4097  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
  4098  	c.ctx_ = ctx
  4099  	return c
  4100  }
  4101  
  4102  // Header returns a http.Header that can be modified by the caller to add
  4103  // headers to the request.
  4104  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
  4105  	if c.header_ == nil {
  4106  		c.header_ = make(http.Header)
  4107  	}
  4108  	return c.header_
  4109  }
  4110  
  4111  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  4112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4113  	if c.ifNoneMatch_ != "" {
  4114  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4115  	}
  4116  	var body io.Reader = nil
  4117  	c.urlParams_.Set("alt", alt)
  4118  	c.urlParams_.Set("prettyPrint", "false")
  4119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
  4120  	urls += "?" + c.urlParams_.Encode()
  4121  	req, err := http.NewRequest("GET", urls, body)
  4122  	if err != nil {
  4123  		return nil, err
  4124  	}
  4125  	req.Header = reqHeaders
  4126  	googleapi.Expand(req.URL, map[string]string{
  4127  		"name": c.name,
  4128  	})
  4129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4130  }
  4131  
  4132  // Do executes the "workloadmanager.projects.locations.operations.list" call.
  4133  // Any non-2xx status code is an error. Response headers are in either
  4134  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  4135  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4136  // check whether the returned error was because http.StatusNotModified was
  4137  // returned.
  4138  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  4139  	gensupport.SetOptions(c.urlParams_, opts...)
  4140  	res, err := c.doRequest("json")
  4141  	if res != nil && res.StatusCode == http.StatusNotModified {
  4142  		if res.Body != nil {
  4143  			res.Body.Close()
  4144  		}
  4145  		return nil, gensupport.WrapError(&googleapi.Error{
  4146  			Code:   res.StatusCode,
  4147  			Header: res.Header,
  4148  		})
  4149  	}
  4150  	if err != nil {
  4151  		return nil, err
  4152  	}
  4153  	defer googleapi.CloseBody(res)
  4154  	if err := googleapi.CheckResponse(res); err != nil {
  4155  		return nil, gensupport.WrapError(err)
  4156  	}
  4157  	ret := &ListOperationsResponse{
  4158  		ServerResponse: googleapi.ServerResponse{
  4159  			Header:         res.Header,
  4160  			HTTPStatusCode: res.StatusCode,
  4161  		},
  4162  	}
  4163  	target := &ret
  4164  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4165  		return nil, err
  4166  	}
  4167  	return ret, nil
  4168  }
  4169  
  4170  // Pages invokes f for each page of results.
  4171  // A non-nil error returned from f will halt the iteration.
  4172  // The provided context supersedes any context provided to the Context method.
  4173  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  4174  	c.ctx_ = ctx
  4175  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4176  	for {
  4177  		x, err := c.Do()
  4178  		if err != nil {
  4179  			return err
  4180  		}
  4181  		if err := f(x); err != nil {
  4182  			return err
  4183  		}
  4184  		if x.NextPageToken == "" {
  4185  			return nil
  4186  		}
  4187  		c.PageToken(x.NextPageToken)
  4188  	}
  4189  }
  4190  
  4191  type ProjectsLocationsRulesListCall struct {
  4192  	s            *Service
  4193  	parent       string
  4194  	urlParams_   gensupport.URLParams
  4195  	ifNoneMatch_ string
  4196  	ctx_         context.Context
  4197  	header_      http.Header
  4198  }
  4199  
  4200  // List: Lists rules in a given project.
  4201  //
  4202  //   - parent: The [project] on which to execute the request. The format is:
  4203  //     projects/{project_id}/locations/{location} Currently, the pre-defined
  4204  //     rules are global available to all projects and all regions.
  4205  func (r *ProjectsLocationsRulesService) List(parent string) *ProjectsLocationsRulesListCall {
  4206  	c := &ProjectsLocationsRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4207  	c.parent = parent
  4208  	return c
  4209  }
  4210  
  4211  // CustomRulesBucket sets the optional parameter "customRulesBucket": The Cloud
  4212  // Storage bucket name for custom rules.
  4213  func (c *ProjectsLocationsRulesListCall) CustomRulesBucket(customRulesBucket string) *ProjectsLocationsRulesListCall {
  4214  	c.urlParams_.Set("customRulesBucket", customRulesBucket)
  4215  	return c
  4216  }
  4217  
  4218  // Filter sets the optional parameter "filter": Filter based on
  4219  // primary_category, secondary_category
  4220  func (c *ProjectsLocationsRulesListCall) Filter(filter string) *ProjectsLocationsRulesListCall {
  4221  	c.urlParams_.Set("filter", filter)
  4222  	return c
  4223  }
  4224  
  4225  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  4226  // may return fewer items than requested. If unspecified, server will pick an
  4227  // appropriate default.
  4228  func (c *ProjectsLocationsRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRulesListCall {
  4229  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4230  	return c
  4231  }
  4232  
  4233  // PageToken sets the optional parameter "pageToken": A token identifying a
  4234  // page of results the server should return.
  4235  func (c *ProjectsLocationsRulesListCall) PageToken(pageToken string) *ProjectsLocationsRulesListCall {
  4236  	c.urlParams_.Set("pageToken", pageToken)
  4237  	return c
  4238  }
  4239  
  4240  // Fields allows partial responses to be retrieved. See
  4241  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4242  // details.
  4243  func (c *ProjectsLocationsRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRulesListCall {
  4244  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4245  	return c
  4246  }
  4247  
  4248  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4249  // object's ETag matches the given value. This is useful for getting updates
  4250  // only after the object has changed since the last request.
  4251  func (c *ProjectsLocationsRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRulesListCall {
  4252  	c.ifNoneMatch_ = entityTag
  4253  	return c
  4254  }
  4255  
  4256  // Context sets the context to be used in this call's Do method.
  4257  func (c *ProjectsLocationsRulesListCall) Context(ctx context.Context) *ProjectsLocationsRulesListCall {
  4258  	c.ctx_ = ctx
  4259  	return c
  4260  }
  4261  
  4262  // Header returns a http.Header that can be modified by the caller to add
  4263  // headers to the request.
  4264  func (c *ProjectsLocationsRulesListCall) Header() http.Header {
  4265  	if c.header_ == nil {
  4266  		c.header_ = make(http.Header)
  4267  	}
  4268  	return c.header_
  4269  }
  4270  
  4271  func (c *ProjectsLocationsRulesListCall) doRequest(alt string) (*http.Response, error) {
  4272  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4273  	if c.ifNoneMatch_ != "" {
  4274  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4275  	}
  4276  	var body io.Reader = nil
  4277  	c.urlParams_.Set("alt", alt)
  4278  	c.urlParams_.Set("prettyPrint", "false")
  4279  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules")
  4280  	urls += "?" + c.urlParams_.Encode()
  4281  	req, err := http.NewRequest("GET", urls, body)
  4282  	if err != nil {
  4283  		return nil, err
  4284  	}
  4285  	req.Header = reqHeaders
  4286  	googleapi.Expand(req.URL, map[string]string{
  4287  		"parent": c.parent,
  4288  	})
  4289  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4290  }
  4291  
  4292  // Do executes the "workloadmanager.projects.locations.rules.list" call.
  4293  // Any non-2xx status code is an error. Response headers are in either
  4294  // *ListRulesResponse.ServerResponse.Header or (if a response was returned at
  4295  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4296  // check whether the returned error was because http.StatusNotModified was
  4297  // returned.
  4298  func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*ListRulesResponse, error) {
  4299  	gensupport.SetOptions(c.urlParams_, opts...)
  4300  	res, err := c.doRequest("json")
  4301  	if res != nil && res.StatusCode == http.StatusNotModified {
  4302  		if res.Body != nil {
  4303  			res.Body.Close()
  4304  		}
  4305  		return nil, gensupport.WrapError(&googleapi.Error{
  4306  			Code:   res.StatusCode,
  4307  			Header: res.Header,
  4308  		})
  4309  	}
  4310  	if err != nil {
  4311  		return nil, err
  4312  	}
  4313  	defer googleapi.CloseBody(res)
  4314  	if err := googleapi.CheckResponse(res); err != nil {
  4315  		return nil, gensupport.WrapError(err)
  4316  	}
  4317  	ret := &ListRulesResponse{
  4318  		ServerResponse: googleapi.ServerResponse{
  4319  			Header:         res.Header,
  4320  			HTTPStatusCode: res.StatusCode,
  4321  		},
  4322  	}
  4323  	target := &ret
  4324  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4325  		return nil, err
  4326  	}
  4327  	return ret, nil
  4328  }
  4329  
  4330  // Pages invokes f for each page of results.
  4331  // A non-nil error returned from f will halt the iteration.
  4332  // The provided context supersedes any context provided to the Context method.
  4333  func (c *ProjectsLocationsRulesListCall) Pages(ctx context.Context, f func(*ListRulesResponse) error) error {
  4334  	c.ctx_ = ctx
  4335  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4336  	for {
  4337  		x, err := c.Do()
  4338  		if err != nil {
  4339  			return err
  4340  		}
  4341  		if err := f(x); err != nil {
  4342  			return err
  4343  		}
  4344  		if x.NextPageToken == "" {
  4345  			return nil
  4346  		}
  4347  		c.PageToken(x.NextPageToken)
  4348  	}
  4349  }
  4350  

View as plain text