...

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

Documentation: google.golang.org/api/migrationcenter/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 migrationcenter provides access to the Migration Center API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/migration-center
    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/migrationcenter/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	migrationcenterService, err := migrationcenter.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  //	migrationcenterService, err := migrationcenter.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  //	migrationcenterService, err := migrationcenter.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package migrationcenter // import "google.golang.org/api/migrationcenter/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 = "migrationcenter:v1"
    90  const apiName = "migrationcenter"
    91  const apiVersion = "v1"
    92  const basePath = "https://migrationcenter.googleapis.com/"
    93  const basePathTemplate = "https://migrationcenter.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://migrationcenter.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.Assets = NewProjectsLocationsAssetsService(s)
   172  	rs.DiscoveryClients = NewProjectsLocationsDiscoveryClientsService(s)
   173  	rs.Groups = NewProjectsLocationsGroupsService(s)
   174  	rs.ImportJobs = NewProjectsLocationsImportJobsService(s)
   175  	rs.Operations = NewProjectsLocationsOperationsService(s)
   176  	rs.PreferenceSets = NewProjectsLocationsPreferenceSetsService(s)
   177  	rs.ReportConfigs = NewProjectsLocationsReportConfigsService(s)
   178  	rs.Sources = NewProjectsLocationsSourcesService(s)
   179  	return rs
   180  }
   181  
   182  type ProjectsLocationsService struct {
   183  	s *Service
   184  
   185  	Assets *ProjectsLocationsAssetsService
   186  
   187  	DiscoveryClients *ProjectsLocationsDiscoveryClientsService
   188  
   189  	Groups *ProjectsLocationsGroupsService
   190  
   191  	ImportJobs *ProjectsLocationsImportJobsService
   192  
   193  	Operations *ProjectsLocationsOperationsService
   194  
   195  	PreferenceSets *ProjectsLocationsPreferenceSetsService
   196  
   197  	ReportConfigs *ProjectsLocationsReportConfigsService
   198  
   199  	Sources *ProjectsLocationsSourcesService
   200  }
   201  
   202  func NewProjectsLocationsAssetsService(s *Service) *ProjectsLocationsAssetsService {
   203  	rs := &ProjectsLocationsAssetsService{s: s}
   204  	return rs
   205  }
   206  
   207  type ProjectsLocationsAssetsService struct {
   208  	s *Service
   209  }
   210  
   211  func NewProjectsLocationsDiscoveryClientsService(s *Service) *ProjectsLocationsDiscoveryClientsService {
   212  	rs := &ProjectsLocationsDiscoveryClientsService{s: s}
   213  	return rs
   214  }
   215  
   216  type ProjectsLocationsDiscoveryClientsService struct {
   217  	s *Service
   218  }
   219  
   220  func NewProjectsLocationsGroupsService(s *Service) *ProjectsLocationsGroupsService {
   221  	rs := &ProjectsLocationsGroupsService{s: s}
   222  	return rs
   223  }
   224  
   225  type ProjectsLocationsGroupsService struct {
   226  	s *Service
   227  }
   228  
   229  func NewProjectsLocationsImportJobsService(s *Service) *ProjectsLocationsImportJobsService {
   230  	rs := &ProjectsLocationsImportJobsService{s: s}
   231  	rs.ImportDataFiles = NewProjectsLocationsImportJobsImportDataFilesService(s)
   232  	return rs
   233  }
   234  
   235  type ProjectsLocationsImportJobsService struct {
   236  	s *Service
   237  
   238  	ImportDataFiles *ProjectsLocationsImportJobsImportDataFilesService
   239  }
   240  
   241  func NewProjectsLocationsImportJobsImportDataFilesService(s *Service) *ProjectsLocationsImportJobsImportDataFilesService {
   242  	rs := &ProjectsLocationsImportJobsImportDataFilesService{s: s}
   243  	return rs
   244  }
   245  
   246  type ProjectsLocationsImportJobsImportDataFilesService struct {
   247  	s *Service
   248  }
   249  
   250  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   251  	rs := &ProjectsLocationsOperationsService{s: s}
   252  	return rs
   253  }
   254  
   255  type ProjectsLocationsOperationsService struct {
   256  	s *Service
   257  }
   258  
   259  func NewProjectsLocationsPreferenceSetsService(s *Service) *ProjectsLocationsPreferenceSetsService {
   260  	rs := &ProjectsLocationsPreferenceSetsService{s: s}
   261  	return rs
   262  }
   263  
   264  type ProjectsLocationsPreferenceSetsService struct {
   265  	s *Service
   266  }
   267  
   268  func NewProjectsLocationsReportConfigsService(s *Service) *ProjectsLocationsReportConfigsService {
   269  	rs := &ProjectsLocationsReportConfigsService{s: s}
   270  	rs.Reports = NewProjectsLocationsReportConfigsReportsService(s)
   271  	return rs
   272  }
   273  
   274  type ProjectsLocationsReportConfigsService struct {
   275  	s *Service
   276  
   277  	Reports *ProjectsLocationsReportConfigsReportsService
   278  }
   279  
   280  func NewProjectsLocationsReportConfigsReportsService(s *Service) *ProjectsLocationsReportConfigsReportsService {
   281  	rs := &ProjectsLocationsReportConfigsReportsService{s: s}
   282  	return rs
   283  }
   284  
   285  type ProjectsLocationsReportConfigsReportsService struct {
   286  	s *Service
   287  }
   288  
   289  func NewProjectsLocationsSourcesService(s *Service) *ProjectsLocationsSourcesService {
   290  	rs := &ProjectsLocationsSourcesService{s: s}
   291  	rs.ErrorFrames = NewProjectsLocationsSourcesErrorFramesService(s)
   292  	return rs
   293  }
   294  
   295  type ProjectsLocationsSourcesService struct {
   296  	s *Service
   297  
   298  	ErrorFrames *ProjectsLocationsSourcesErrorFramesService
   299  }
   300  
   301  func NewProjectsLocationsSourcesErrorFramesService(s *Service) *ProjectsLocationsSourcesErrorFramesService {
   302  	rs := &ProjectsLocationsSourcesErrorFramesService{s: s}
   303  	return rs
   304  }
   305  
   306  type ProjectsLocationsSourcesErrorFramesService struct {
   307  	s *Service
   308  }
   309  
   310  // AddAssetsToGroupRequest: A request to add assets to a group.
   311  type AddAssetsToGroupRequest struct {
   312  	// AllowExisting: Optional. When this value is set to `false` and one of the
   313  	// given assets is already an existing member of the group, the operation fails
   314  	// with an `Already Exists` error. When set to `true` this situation is
   315  	// silently ignored by the server. Default value is `false`.
   316  	AllowExisting bool `json:"allowExisting,omitempty"`
   317  	// Assets: Required. List of assets to be added. The maximum number of assets
   318  	// that can be added in a single request is 1000.
   319  	Assets *AssetList `json:"assets,omitempty"`
   320  	// RequestId: Optional. An optional request ID to identify requests. Specify a
   321  	// unique request ID so that if you must retry your request, the server will
   322  	// know to ignore the request if it has already been completed. The server will
   323  	// guarantee that for at least 60 minutes after the first request. For example,
   324  	// consider a situation where you make an initial request and the request times
   325  	// out. If you make the request again with the same request ID, the server can
   326  	// check if original operation with the same request ID was received, and if
   327  	// so, will ignore the second request. This prevents clients from accidentally
   328  	// creating duplicate commitments. The request ID must be a valid UUID with the
   329  	// exception that zero UUID is not supported
   330  	// (00000000-0000-0000-0000-000000000000).
   331  	RequestId string `json:"requestId,omitempty"`
   332  	// ForceSendFields is a list of field names (e.g. "AllowExisting") to
   333  	// unconditionally include in API requests. By default, fields with empty or
   334  	// default values are omitted from API requests. See
   335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   336  	// details.
   337  	ForceSendFields []string `json:"-"`
   338  	// NullFields is a list of field names (e.g. "AllowExisting") to include in API
   339  	// requests with the JSON null value. By default, fields with empty values are
   340  	// omitted from API requests. See
   341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   342  	NullFields []string `json:"-"`
   343  }
   344  
   345  func (s *AddAssetsToGroupRequest) MarshalJSON() ([]byte, error) {
   346  	type NoMethod AddAssetsToGroupRequest
   347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   348  }
   349  
   350  // AggregateAssetsValuesRequest: A request to aggregate one or more values.
   351  type AggregateAssetsValuesRequest struct {
   352  	// Aggregations: Array of aggregations to perform. Up to 25 aggregations can be
   353  	// defined.
   354  	Aggregations []*Aggregation `json:"aggregations,omitempty"`
   355  	// Filter: Optional. The aggregation will be performed on assets that match the
   356  	// provided filter.
   357  	Filter string `json:"filter,omitempty"`
   358  	// ForceSendFields is a list of field names (e.g. "Aggregations") to
   359  	// unconditionally include in API requests. By default, fields with empty or
   360  	// default values are omitted from API requests. See
   361  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   362  	// details.
   363  	ForceSendFields []string `json:"-"`
   364  	// NullFields is a list of field names (e.g. "Aggregations") to include in API
   365  	// requests with the JSON null value. By default, fields with empty values are
   366  	// omitted from API requests. See
   367  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   368  	NullFields []string `json:"-"`
   369  }
   370  
   371  func (s *AggregateAssetsValuesRequest) MarshalJSON() ([]byte, error) {
   372  	type NoMethod AggregateAssetsValuesRequest
   373  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   374  }
   375  
   376  // AggregateAssetsValuesResponse: A response to a request to aggregated assets
   377  // values.
   378  type AggregateAssetsValuesResponse struct {
   379  	// Results: The aggregation results.
   380  	Results []*AggregationResult `json:"results,omitempty"`
   381  
   382  	// ServerResponse contains the HTTP response code and headers from the server.
   383  	googleapi.ServerResponse `json:"-"`
   384  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
   385  	// include in API requests. By default, fields with empty or default values are
   386  	// omitted from API requests. See
   387  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   388  	// details.
   389  	ForceSendFields []string `json:"-"`
   390  	// NullFields is a list of field names (e.g. "Results") to include in API
   391  	// requests with the JSON null value. By default, fields with empty values are
   392  	// omitted from API requests. See
   393  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   394  	NullFields []string `json:"-"`
   395  }
   396  
   397  func (s *AggregateAssetsValuesResponse) MarshalJSON() ([]byte, error) {
   398  	type NoMethod AggregateAssetsValuesResponse
   399  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   400  }
   401  
   402  // Aggregation: Message describing an aggregation. The message includes the
   403  // aggregation type, parameters, and the field on which to perform the
   404  // aggregation.
   405  type Aggregation struct {
   406  	// Count: Count the number of matching objects.
   407  	Count *AggregationCount `json:"count,omitempty"`
   408  	// Field: The name of the field on which to aggregate.
   409  	Field string `json:"field,omitempty"`
   410  	// Frequency: Creates a frequency distribution of all field values.
   411  	Frequency *AggregationFrequency `json:"frequency,omitempty"`
   412  	// Histogram: Creates a bucketed histogram of field values.
   413  	Histogram *AggregationHistogram `json:"histogram,omitempty"`
   414  	// Sum: Sum over a numeric field.
   415  	Sum *AggregationSum `json:"sum,omitempty"`
   416  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   417  	// include in API requests. By default, fields with empty or default values are
   418  	// omitted from API requests. See
   419  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   420  	// details.
   421  	ForceSendFields []string `json:"-"`
   422  	// NullFields is a list of field names (e.g. "Count") to include in API
   423  	// requests with the JSON null value. By default, fields with empty values are
   424  	// omitted from API requests. See
   425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   426  	NullFields []string `json:"-"`
   427  }
   428  
   429  func (s *Aggregation) MarshalJSON() ([]byte, error) {
   430  	type NoMethod Aggregation
   431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   432  }
   433  
   434  // AggregationCount: Object count.
   435  type AggregationCount struct {
   436  }
   437  
   438  // AggregationFrequency: Frequency distribution of all field values.
   439  type AggregationFrequency struct {
   440  }
   441  
   442  // AggregationHistogram: Histogram of bucketed assets counts by field value.
   443  type AggregationHistogram struct {
   444  	// LowerBounds: Lower bounds of buckets. The response will contain `n+1`
   445  	// buckets for `n` bounds. The first bucket will count all assets for which the
   446  	// field value is smaller than the first bound. Subsequent buckets will count
   447  	// assets for which the field value is greater or equal to a lower bound and
   448  	// smaller than the next one. The last bucket will count assets for which the
   449  	// field value is greater or equal to the final lower bound. You can define up
   450  	// to 20 lower bounds.
   451  	LowerBounds []float64 `json:"lowerBounds,omitempty"`
   452  	// ForceSendFields is a list of field names (e.g. "LowerBounds") to
   453  	// unconditionally include in API requests. By default, fields with empty or
   454  	// default values are omitted from API requests. See
   455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   456  	// details.
   457  	ForceSendFields []string `json:"-"`
   458  	// NullFields is a list of field names (e.g. "LowerBounds") to include in API
   459  	// requests with the JSON null value. By default, fields with empty values are
   460  	// omitted from API requests. See
   461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   462  	NullFields []string `json:"-"`
   463  }
   464  
   465  func (s *AggregationHistogram) MarshalJSON() ([]byte, error) {
   466  	type NoMethod AggregationHistogram
   467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   468  }
   469  
   470  func (s *AggregationHistogram) UnmarshalJSON(data []byte) error {
   471  	type NoMethod AggregationHistogram
   472  	var s1 struct {
   473  		LowerBounds []gensupport.JSONFloat64 `json:"lowerBounds"`
   474  		*NoMethod
   475  	}
   476  	s1.NoMethod = (*NoMethod)(s)
   477  	if err := json.Unmarshal(data, &s1); err != nil {
   478  		return err
   479  	}
   480  	s.LowerBounds = make([]float64, len(s1.LowerBounds))
   481  	for i := range s1.LowerBounds {
   482  		s.LowerBounds[i] = float64(s1.LowerBounds[i])
   483  	}
   484  	return nil
   485  }
   486  
   487  // AggregationResult: Message describing a result of an aggregation.
   488  type AggregationResult struct {
   489  	Count     *AggregationResultCount     `json:"count,omitempty"`
   490  	Field     string                      `json:"field,omitempty"`
   491  	Frequency *AggregationResultFrequency `json:"frequency,omitempty"`
   492  	Histogram *AggregationResultHistogram `json:"histogram,omitempty"`
   493  	Sum       *AggregationResultSum       `json:"sum,omitempty"`
   494  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   495  	// include in API requests. By default, fields with empty or default values are
   496  	// omitted from API requests. See
   497  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   498  	// details.
   499  	ForceSendFields []string `json:"-"`
   500  	// NullFields is a list of field names (e.g. "Count") to include in API
   501  	// requests with the JSON null value. By default, fields with empty values are
   502  	// omitted from API requests. See
   503  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   504  	NullFields []string `json:"-"`
   505  }
   506  
   507  func (s *AggregationResult) MarshalJSON() ([]byte, error) {
   508  	type NoMethod AggregationResult
   509  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   510  }
   511  
   512  // AggregationResultCount: The result of a count aggregation.
   513  type AggregationResultCount struct {
   514  	Value int64 `json:"value,omitempty,string"`
   515  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
   516  	// include in API requests. By default, fields with empty or default values are
   517  	// omitted from API requests. See
   518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   519  	// details.
   520  	ForceSendFields []string `json:"-"`
   521  	// NullFields is a list of field names (e.g. "Value") to include in API
   522  	// requests with the JSON null value. By default, fields with empty values are
   523  	// omitted from API requests. See
   524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   525  	NullFields []string `json:"-"`
   526  }
   527  
   528  func (s *AggregationResultCount) MarshalJSON() ([]byte, error) {
   529  	type NoMethod AggregationResultCount
   530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   531  }
   532  
   533  // AggregationResultFrequency: The result of a frequency distribution
   534  // aggregation.
   535  type AggregationResultFrequency struct {
   536  	Values map[string]string `json:"values,omitempty"`
   537  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
   538  	// include in API requests. By default, fields with empty or default values are
   539  	// omitted from API requests. See
   540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   541  	// details.
   542  	ForceSendFields []string `json:"-"`
   543  	// NullFields is a list of field names (e.g. "Values") to include in API
   544  	// requests with the JSON null value. By default, fields with empty values are
   545  	// omitted from API requests. See
   546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   547  	NullFields []string `json:"-"`
   548  }
   549  
   550  func (s *AggregationResultFrequency) MarshalJSON() ([]byte, error) {
   551  	type NoMethod AggregationResultFrequency
   552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   553  }
   554  
   555  // AggregationResultHistogram: The result of a bucketed histogram aggregation.
   556  type AggregationResultHistogram struct {
   557  	// Buckets: Buckets in the histogram. There will be `n+1` buckets matching `n`
   558  	// lower bounds in the request. The first bucket will be from -infinity to the
   559  	// first bound. Subsequent buckets will be between one bound and the next. The
   560  	// final bucket will be from the final bound to infinity.
   561  	Buckets []*AggregationResultHistogramBucket `json:"buckets,omitempty"`
   562  	// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally
   563  	// include in API requests. By default, fields with empty or default values are
   564  	// omitted from API requests. See
   565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   566  	// details.
   567  	ForceSendFields []string `json:"-"`
   568  	// NullFields is a list of field names (e.g. "Buckets") to include in API
   569  	// requests with the JSON null value. By default, fields with empty values are
   570  	// omitted from API requests. See
   571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   572  	NullFields []string `json:"-"`
   573  }
   574  
   575  func (s *AggregationResultHistogram) MarshalJSON() ([]byte, error) {
   576  	type NoMethod AggregationResultHistogram
   577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   578  }
   579  
   580  // AggregationResultHistogramBucket: A histogram bucket with a lower and upper
   581  // bound, and a count of items with a field value between those bounds. The
   582  // lower bound is inclusive and the upper bound is exclusive. Lower bound may
   583  // be -infinity and upper bound may be infinity.
   584  type AggregationResultHistogramBucket struct {
   585  	// Count: Count of items in the bucket.
   586  	Count int64 `json:"count,omitempty,string"`
   587  	// LowerBound: Lower bound - inclusive.
   588  	LowerBound float64 `json:"lowerBound,omitempty"`
   589  	// UpperBound: Upper bound - exclusive.
   590  	UpperBound float64 `json:"upperBound,omitempty"`
   591  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   592  	// include in API requests. By default, fields with empty or default values are
   593  	// omitted from API requests. See
   594  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   595  	// details.
   596  	ForceSendFields []string `json:"-"`
   597  	// NullFields is a list of field names (e.g. "Count") to include in API
   598  	// requests with the JSON null value. By default, fields with empty values are
   599  	// omitted from API requests. See
   600  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   601  	NullFields []string `json:"-"`
   602  }
   603  
   604  func (s *AggregationResultHistogramBucket) MarshalJSON() ([]byte, error) {
   605  	type NoMethod AggregationResultHistogramBucket
   606  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   607  }
   608  
   609  func (s *AggregationResultHistogramBucket) UnmarshalJSON(data []byte) error {
   610  	type NoMethod AggregationResultHistogramBucket
   611  	var s1 struct {
   612  		LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
   613  		UpperBound gensupport.JSONFloat64 `json:"upperBound"`
   614  		*NoMethod
   615  	}
   616  	s1.NoMethod = (*NoMethod)(s)
   617  	if err := json.Unmarshal(data, &s1); err != nil {
   618  		return err
   619  	}
   620  	s.LowerBound = float64(s1.LowerBound)
   621  	s.UpperBound = float64(s1.UpperBound)
   622  	return nil
   623  }
   624  
   625  // AggregationResultSum: The result of a sum aggregation.
   626  type AggregationResultSum struct {
   627  	Value float64 `json:"value,omitempty"`
   628  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
   629  	// include in API requests. By default, fields with empty or default values are
   630  	// omitted from API requests. See
   631  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   632  	// details.
   633  	ForceSendFields []string `json:"-"`
   634  	// NullFields is a list of field names (e.g. "Value") to include in API
   635  	// requests with the JSON null value. By default, fields with empty values are
   636  	// omitted from API requests. See
   637  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   638  	NullFields []string `json:"-"`
   639  }
   640  
   641  func (s *AggregationResultSum) MarshalJSON() ([]byte, error) {
   642  	type NoMethod AggregationResultSum
   643  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   644  }
   645  
   646  func (s *AggregationResultSum) UnmarshalJSON(data []byte) error {
   647  	type NoMethod AggregationResultSum
   648  	var s1 struct {
   649  		Value gensupport.JSONFloat64 `json:"value"`
   650  		*NoMethod
   651  	}
   652  	s1.NoMethod = (*NoMethod)(s)
   653  	if err := json.Unmarshal(data, &s1); err != nil {
   654  		return err
   655  	}
   656  	s.Value = float64(s1.Value)
   657  	return nil
   658  }
   659  
   660  // AggregationSum: Sum of field values.
   661  type AggregationSum struct {
   662  }
   663  
   664  // Asset: An asset represents a resource in your environment. Asset types
   665  // include virtual machines and databases.
   666  type Asset struct {
   667  	// AssignedGroups: Output only. The list of groups that the asset is assigned
   668  	// to.
   669  	AssignedGroups []string `json:"assignedGroups,omitempty"`
   670  	// Attributes: Generic asset attributes.
   671  	Attributes map[string]string `json:"attributes,omitempty"`
   672  	// CreateTime: Output only. The timestamp when the asset was created.
   673  	CreateTime string `json:"createTime,omitempty"`
   674  	// InsightList: Output only. The list of insights associated with the asset.
   675  	InsightList *InsightList `json:"insightList,omitempty"`
   676  	// Labels: Labels as key value pairs.
   677  	Labels map[string]string `json:"labels,omitempty"`
   678  	// MachineDetails: Output only. Asset information specific for virtual and
   679  	// physical machines.
   680  	MachineDetails *MachineDetails `json:"machineDetails,omitempty"`
   681  	// Name: Output only. The full name of the asset.
   682  	Name string `json:"name,omitempty"`
   683  	// PerformanceData: Output only. Performance data for the asset.
   684  	PerformanceData *AssetPerformanceData `json:"performanceData,omitempty"`
   685  	// Sources: Output only. The list of sources contributing to the asset.
   686  	Sources []string `json:"sources,omitempty"`
   687  	// UpdateTime: Output only. The timestamp when the asset was last updated.
   688  	UpdateTime string `json:"updateTime,omitempty"`
   689  
   690  	// ServerResponse contains the HTTP response code and headers from the server.
   691  	googleapi.ServerResponse `json:"-"`
   692  	// ForceSendFields is a list of field names (e.g. "AssignedGroups") to
   693  	// unconditionally include in API requests. By default, fields with empty or
   694  	// default values are omitted from API requests. See
   695  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   696  	// details.
   697  	ForceSendFields []string `json:"-"`
   698  	// NullFields is a list of field names (e.g. "AssignedGroups") to include in
   699  	// API requests with the JSON null value. By default, fields with empty values
   700  	// are omitted from API requests. See
   701  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   702  	NullFields []string `json:"-"`
   703  }
   704  
   705  func (s *Asset) MarshalJSON() ([]byte, error) {
   706  	type NoMethod Asset
   707  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   708  }
   709  
   710  // AssetFrame: Contains data reported from an inventory source on an asset.
   711  type AssetFrame struct {
   712  	// Attributes: Generic asset attributes.
   713  	Attributes map[string]string `json:"attributes,omitempty"`
   714  	// CollectionType: Optional. Frame collection type, if not specified the
   715  	// collection type will be based on the source type of the source the frame was
   716  	// reported on.
   717  	//
   718  	// Possible values:
   719  	//   "SOURCE_TYPE_UNKNOWN" - Unspecified
   720  	//   "SOURCE_TYPE_UPLOAD" - Manually uploaded file (e.g. CSV)
   721  	//   "SOURCE_TYPE_GUEST_OS_SCAN" - Guest-level info
   722  	//   "SOURCE_TYPE_INVENTORY_SCAN" - Inventory-level scan
   723  	//   "SOURCE_TYPE_CUSTOM" - Third-party owned sources.
   724  	//   "SOURCE_TYPE_DISCOVERY_CLIENT" - Discovery clients
   725  	CollectionType string `json:"collectionType,omitempty"`
   726  	// Labels: Labels as key value pairs.
   727  	Labels map[string]string `json:"labels,omitempty"`
   728  	// MachineDetails: Asset information specific for virtual machines.
   729  	MachineDetails *MachineDetails `json:"machineDetails,omitempty"`
   730  	// PerformanceSamples: Asset performance data samples. Samples that are from
   731  	// more than 40 days ago or after tomorrow are ignored.
   732  	PerformanceSamples []*PerformanceSample `json:"performanceSamples,omitempty"`
   733  	// ReportTime: The time the data was reported.
   734  	ReportTime string `json:"reportTime,omitempty"`
   735  	// TraceToken: Optional. Trace token is optionally provided to assist with
   736  	// debugging and traceability.
   737  	TraceToken string `json:"traceToken,omitempty"`
   738  	// ForceSendFields is a list of field names (e.g. "Attributes") to
   739  	// unconditionally include in API requests. By default, fields with empty or
   740  	// default values are omitted from API requests. See
   741  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   742  	// details.
   743  	ForceSendFields []string `json:"-"`
   744  	// NullFields is a list of field names (e.g. "Attributes") to include in API
   745  	// requests with the JSON null value. By default, fields with empty values are
   746  	// omitted from API requests. See
   747  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   748  	NullFields []string `json:"-"`
   749  }
   750  
   751  func (s *AssetFrame) MarshalJSON() ([]byte, error) {
   752  	type NoMethod AssetFrame
   753  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   754  }
   755  
   756  // AssetList: Lists the asset IDs of all assets.
   757  type AssetList struct {
   758  	// AssetIds: Required. A list of asset IDs
   759  	AssetIds []string `json:"assetIds,omitempty"`
   760  	// ForceSendFields is a list of field names (e.g. "AssetIds") to
   761  	// unconditionally include in API requests. By default, fields with empty or
   762  	// default values are omitted from API requests. See
   763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   764  	// details.
   765  	ForceSendFields []string `json:"-"`
   766  	// NullFields is a list of field names (e.g. "AssetIds") to include in API
   767  	// requests with the JSON null value. By default, fields with empty values are
   768  	// omitted from API requests. See
   769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   770  	NullFields []string `json:"-"`
   771  }
   772  
   773  func (s *AssetList) MarshalJSON() ([]byte, error) {
   774  	type NoMethod AssetList
   775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   776  }
   777  
   778  // AssetPerformanceData: Performance data for an asset.
   779  type AssetPerformanceData struct {
   780  	// DailyResourceUsageAggregations: Daily resource usage aggregations. Contains
   781  	// all of the data available for an asset, up to the last 40 days. Aggregations
   782  	// are sorted from oldest to most recent.
   783  	DailyResourceUsageAggregations []*DailyResourceUsageAggregation `json:"dailyResourceUsageAggregations,omitempty"`
   784  	// ForceSendFields is a list of field names (e.g.
   785  	// "DailyResourceUsageAggregations") to unconditionally include in API
   786  	// requests. By default, fields with empty or default values are omitted from
   787  	// API requests. See
   788  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   789  	// details.
   790  	ForceSendFields []string `json:"-"`
   791  	// NullFields is a list of field names (e.g. "DailyResourceUsageAggregations")
   792  	// to include in API requests with the JSON null value. By default, fields with
   793  	// empty values are omitted from API requests. See
   794  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   795  	NullFields []string `json:"-"`
   796  }
   797  
   798  func (s *AssetPerformanceData) MarshalJSON() ([]byte, error) {
   799  	type NoMethod AssetPerformanceData
   800  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   801  }
   802  
   803  // AwsEc2PlatformDetails: AWS EC2 specific details.
   804  type AwsEc2PlatformDetails struct {
   805  	// Location: The location of the machine in the AWS format.
   806  	Location string `json:"location,omitempty"`
   807  	// MachineTypeLabel: AWS platform's machine type label.
   808  	MachineTypeLabel string `json:"machineTypeLabel,omitempty"`
   809  	// ForceSendFields is a list of field names (e.g. "Location") to
   810  	// unconditionally include in API requests. By default, fields with empty or
   811  	// default values are omitted from API requests. See
   812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   813  	// details.
   814  	ForceSendFields []string `json:"-"`
   815  	// NullFields is a list of field names (e.g. "Location") to include in API
   816  	// requests with the JSON null value. By default, fields with empty values are
   817  	// omitted from API requests. See
   818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   819  	NullFields []string `json:"-"`
   820  }
   821  
   822  func (s *AwsEc2PlatformDetails) MarshalJSON() ([]byte, error) {
   823  	type NoMethod AwsEc2PlatformDetails
   824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   825  }
   826  
   827  // AzureVmPlatformDetails: Azure VM specific details.
   828  type AzureVmPlatformDetails struct {
   829  	// Location: The location of the machine in the Azure format.
   830  	Location string `json:"location,omitempty"`
   831  	// MachineTypeLabel: Azure platform's machine type label.
   832  	MachineTypeLabel string `json:"machineTypeLabel,omitempty"`
   833  	// ProvisioningState: Azure platform's provisioning state.
   834  	ProvisioningState string `json:"provisioningState,omitempty"`
   835  	// ForceSendFields is a list of field names (e.g. "Location") to
   836  	// unconditionally include in API requests. By default, fields with empty or
   837  	// default values are omitted from API requests. See
   838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   839  	// details.
   840  	ForceSendFields []string `json:"-"`
   841  	// NullFields is a list of field names (e.g. "Location") to include in API
   842  	// requests with the JSON null value. By default, fields with empty values are
   843  	// omitted from API requests. See
   844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   845  	NullFields []string `json:"-"`
   846  }
   847  
   848  func (s *AzureVmPlatformDetails) MarshalJSON() ([]byte, error) {
   849  	type NoMethod AzureVmPlatformDetails
   850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   851  }
   852  
   853  // BatchDeleteAssetsRequest: A request to delete a list of asset.
   854  type BatchDeleteAssetsRequest struct {
   855  	// AllowMissing: Optional. When this value is set to `true` the request is a
   856  	// no-op for non-existing assets. See
   857  	// https://google.aip.dev/135#delete-if-existing for additional details.
   858  	// Default value is `false`.
   859  	AllowMissing bool `json:"allowMissing,omitempty"`
   860  	// Names: Required. The IDs of the assets to delete. A maximum of 1000 assets
   861  	// can be deleted in a batch. Format:
   862  	// projects/{project}/locations/{location}/assets/{name}.
   863  	Names []string `json:"names,omitempty"`
   864  	// ForceSendFields is a list of field names (e.g. "AllowMissing") to
   865  	// unconditionally include in API requests. By default, fields with empty or
   866  	// default values are omitted from API requests. See
   867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   868  	// details.
   869  	ForceSendFields []string `json:"-"`
   870  	// NullFields is a list of field names (e.g. "AllowMissing") to include in API
   871  	// requests with the JSON null value. By default, fields with empty values are
   872  	// omitted from API requests. See
   873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   874  	NullFields []string `json:"-"`
   875  }
   876  
   877  func (s *BatchDeleteAssetsRequest) MarshalJSON() ([]byte, error) {
   878  	type NoMethod BatchDeleteAssetsRequest
   879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   880  }
   881  
   882  // BatchUpdateAssetsRequest: A request to update a list of assets.
   883  type BatchUpdateAssetsRequest struct {
   884  	// Requests: Required. The request message specifying the resources to update.
   885  	// A maximum of 1000 assets can be modified in a batch.
   886  	Requests []*UpdateAssetRequest `json:"requests,omitempty"`
   887  	// ForceSendFields is a list of field names (e.g. "Requests") to
   888  	// unconditionally include in API requests. By default, fields with empty or
   889  	// default values are omitted from API requests. See
   890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   891  	// details.
   892  	ForceSendFields []string `json:"-"`
   893  	// NullFields is a list of field names (e.g. "Requests") to include in API
   894  	// requests with the JSON null value. By default, fields with empty values are
   895  	// omitted from API requests. See
   896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   897  	NullFields []string `json:"-"`
   898  }
   899  
   900  func (s *BatchUpdateAssetsRequest) MarshalJSON() ([]byte, error) {
   901  	type NoMethod BatchUpdateAssetsRequest
   902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   903  }
   904  
   905  // BatchUpdateAssetsResponse: Response for updating a list of assets.
   906  type BatchUpdateAssetsResponse struct {
   907  	// Assets: Update asset content. The content only includes values after field
   908  	// mask being applied.
   909  	Assets []*Asset `json:"assets,omitempty"`
   910  
   911  	// ServerResponse contains the HTTP response code and headers from the server.
   912  	googleapi.ServerResponse `json:"-"`
   913  	// ForceSendFields is a list of field names (e.g. "Assets") to unconditionally
   914  	// include in API requests. By default, fields with empty or default values are
   915  	// omitted from API requests. See
   916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   917  	// details.
   918  	ForceSendFields []string `json:"-"`
   919  	// NullFields is a list of field names (e.g. "Assets") to include in API
   920  	// requests with the JSON null value. By default, fields with empty values are
   921  	// omitted from API requests. See
   922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   923  	NullFields []string `json:"-"`
   924  }
   925  
   926  func (s *BatchUpdateAssetsResponse) MarshalJSON() ([]byte, error) {
   927  	type NoMethod BatchUpdateAssetsResponse
   928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   929  }
   930  
   931  // BiosDetails: Details about the BIOS.
   932  type BiosDetails struct {
   933  	// BiosName: BIOS name. This fields is deprecated. Please use the `id` field
   934  	// instead.
   935  	BiosName string `json:"biosName,omitempty"`
   936  	// Id: BIOS ID.
   937  	Id string `json:"id,omitempty"`
   938  	// Manufacturer: BIOS manufacturer.
   939  	Manufacturer string `json:"manufacturer,omitempty"`
   940  	// ReleaseDate: BIOS release date.
   941  	ReleaseDate *Date `json:"releaseDate,omitempty"`
   942  	// SmbiosUuid: SMBIOS UUID.
   943  	SmbiosUuid string `json:"smbiosUuid,omitempty"`
   944  	// Version: BIOS version.
   945  	Version string `json:"version,omitempty"`
   946  	// ForceSendFields is a list of field names (e.g. "BiosName") to
   947  	// unconditionally include in API requests. By default, fields with empty or
   948  	// default values are omitted from API requests. See
   949  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   950  	// details.
   951  	ForceSendFields []string `json:"-"`
   952  	// NullFields is a list of field names (e.g. "BiosName") to include in API
   953  	// requests with the JSON null value. By default, fields with empty values are
   954  	// omitted from API requests. See
   955  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   956  	NullFields []string `json:"-"`
   957  }
   958  
   959  func (s *BiosDetails) MarshalJSON() ([]byte, error) {
   960  	type NoMethod BiosDetails
   961  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   962  }
   963  
   964  // CancelOperationRequest: The request message for Operations.CancelOperation.
   965  type CancelOperationRequest struct {
   966  }
   967  
   968  // ComputeEngineMigrationTarget: Compute engine migration target.
   969  type ComputeEngineMigrationTarget struct {
   970  	// Shape: Description of the suggested shape for the migration target.
   971  	Shape *ComputeEngineShapeDescriptor `json:"shape,omitempty"`
   972  	// ForceSendFields is a list of field names (e.g. "Shape") to unconditionally
   973  	// include in API requests. By default, fields with empty or default values are
   974  	// omitted from API requests. See
   975  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   976  	// details.
   977  	ForceSendFields []string `json:"-"`
   978  	// NullFields is a list of field names (e.g. "Shape") to include in API
   979  	// requests with the JSON null value. By default, fields with empty values are
   980  	// omitted from API requests. See
   981  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   982  	NullFields []string `json:"-"`
   983  }
   984  
   985  func (s *ComputeEngineMigrationTarget) MarshalJSON() ([]byte, error) {
   986  	type NoMethod ComputeEngineMigrationTarget
   987  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   988  }
   989  
   990  // ComputeEnginePreferences: The user preferences relating to Compute Engine
   991  // target platform.
   992  type ComputeEnginePreferences struct {
   993  	// LicenseType: License type to consider when calculating costs for virtual
   994  	// machine insights and recommendations. If unspecified, costs are calculated
   995  	// based on the default licensing plan.
   996  	//
   997  	// Possible values:
   998  	//   "LICENSE_TYPE_UNSPECIFIED" - Unspecified (default value).
   999  	//   "LICENSE_TYPE_DEFAULT" - Default Google Cloud licensing plan. Licensing is
  1000  	// charged per usage. This a good value to start with.
  1001  	//   "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE" - Bring-your-own-license (BYOL)
  1002  	// plan. User provides the OS license.
  1003  	LicenseType string `json:"licenseType,omitempty"`
  1004  	// MachinePreferences: Preferences concerning the machine types to consider on
  1005  	// Compute Engine.
  1006  	MachinePreferences *MachinePreferences `json:"machinePreferences,omitempty"`
  1007  	// PersistentDiskType: Persistent disk type to use. If unspecified (default),
  1008  	// all types are considered, based on available usage data.
  1009  	//
  1010  	// Possible values:
  1011  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  1012  	// Selecting this value allows the system to use any disk type according to
  1013  	// reported usage. This a good value to start with.
  1014  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  1015  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  1016  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  1017  	PersistentDiskType string `json:"persistentDiskType,omitempty"`
  1018  	// ForceSendFields is a list of field names (e.g. "LicenseType") to
  1019  	// unconditionally include in API requests. By default, fields with empty or
  1020  	// default values are omitted from API requests. See
  1021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1022  	// details.
  1023  	ForceSendFields []string `json:"-"`
  1024  	// NullFields is a list of field names (e.g. "LicenseType") to include in API
  1025  	// requests with the JSON null value. By default, fields with empty values are
  1026  	// omitted from API requests. See
  1027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1028  	NullFields []string `json:"-"`
  1029  }
  1030  
  1031  func (s *ComputeEnginePreferences) MarshalJSON() ([]byte, error) {
  1032  	type NoMethod ComputeEnginePreferences
  1033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1034  }
  1035  
  1036  // ComputeEngineShapeDescriptor: Compute Engine target shape descriptor.
  1037  type ComputeEngineShapeDescriptor struct {
  1038  	// LogicalCoreCount: Number of logical cores.
  1039  	LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
  1040  	// MachineType: Compute Engine machine type.
  1041  	MachineType string `json:"machineType,omitempty"`
  1042  	// MemoryMb: Memory in mebibytes.
  1043  	MemoryMb int64 `json:"memoryMb,omitempty"`
  1044  	// PhysicalCoreCount: Number of physical cores.
  1045  	PhysicalCoreCount int64 `json:"physicalCoreCount,omitempty"`
  1046  	// Series: Compute Engine machine series.
  1047  	Series string `json:"series,omitempty"`
  1048  	// Storage: Compute Engine storage. Never empty.
  1049  	Storage []*ComputeStorageDescriptor `json:"storage,omitempty"`
  1050  	// ForceSendFields is a list of field names (e.g. "LogicalCoreCount") to
  1051  	// unconditionally include in API requests. By default, fields with empty or
  1052  	// default values are omitted from API requests. See
  1053  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1054  	// details.
  1055  	ForceSendFields []string `json:"-"`
  1056  	// NullFields is a list of field names (e.g. "LogicalCoreCount") to include in
  1057  	// API requests with the JSON null value. By default, fields with empty values
  1058  	// are omitted from API requests. See
  1059  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1060  	NullFields []string `json:"-"`
  1061  }
  1062  
  1063  func (s *ComputeEngineShapeDescriptor) MarshalJSON() ([]byte, error) {
  1064  	type NoMethod ComputeEngineShapeDescriptor
  1065  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1066  }
  1067  
  1068  // ComputeStorageDescriptor: Compute Engine storage option descriptor.
  1069  type ComputeStorageDescriptor struct {
  1070  	// SizeGb: Disk size in GiB.
  1071  	SizeGb int64 `json:"sizeGb,omitempty"`
  1072  	// Type: Disk type backing the storage.
  1073  	//
  1074  	// Possible values:
  1075  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  1076  	// Selecting this value allows the system to use any disk type according to
  1077  	// reported usage. This a good value to start with.
  1078  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  1079  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  1080  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  1081  	Type string `json:"type,omitempty"`
  1082  	// ForceSendFields is a list of field names (e.g. "SizeGb") to unconditionally
  1083  	// include in API requests. By default, fields with empty or default values are
  1084  	// omitted from API requests. See
  1085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1086  	// details.
  1087  	ForceSendFields []string `json:"-"`
  1088  	// NullFields is a list of field names (e.g. "SizeGb") to include in API
  1089  	// requests with the JSON null value. By default, fields with empty values are
  1090  	// omitted from API requests. See
  1091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1092  	NullFields []string `json:"-"`
  1093  }
  1094  
  1095  func (s *ComputeStorageDescriptor) MarshalJSON() ([]byte, error) {
  1096  	type NoMethod ComputeStorageDescriptor
  1097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1098  }
  1099  
  1100  // CpuUsageSample: CPU usage sample.
  1101  type CpuUsageSample struct {
  1102  	// UtilizedPercentage: Percentage of total CPU capacity utilized. Must be in
  1103  	// the interval [0, 100]. On most systems can be calculated using 100 - idle
  1104  	// percentage.
  1105  	UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"`
  1106  	// ForceSendFields is a list of field names (e.g. "UtilizedPercentage") to
  1107  	// unconditionally include in API requests. By default, fields with empty or
  1108  	// default values are omitted from API requests. See
  1109  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1110  	// details.
  1111  	ForceSendFields []string `json:"-"`
  1112  	// NullFields is a list of field names (e.g. "UtilizedPercentage") to include
  1113  	// in API requests with the JSON null value. By default, fields with empty
  1114  	// values are omitted from API requests. See
  1115  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1116  	NullFields []string `json:"-"`
  1117  }
  1118  
  1119  func (s *CpuUsageSample) MarshalJSON() ([]byte, error) {
  1120  	type NoMethod CpuUsageSample
  1121  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1122  }
  1123  
  1124  func (s *CpuUsageSample) UnmarshalJSON(data []byte) error {
  1125  	type NoMethod CpuUsageSample
  1126  	var s1 struct {
  1127  		UtilizedPercentage gensupport.JSONFloat64 `json:"utilizedPercentage"`
  1128  		*NoMethod
  1129  	}
  1130  	s1.NoMethod = (*NoMethod)(s)
  1131  	if err := json.Unmarshal(data, &s1); err != nil {
  1132  		return err
  1133  	}
  1134  	s.UtilizedPercentage = float64(s1.UtilizedPercentage)
  1135  	return nil
  1136  }
  1137  
  1138  // DailyResourceUsageAggregation: Usage data aggregation for a single day.
  1139  type DailyResourceUsageAggregation struct {
  1140  	// Cpu: CPU usage.
  1141  	Cpu *DailyResourceUsageAggregationCPU `json:"cpu,omitempty"`
  1142  	// Date: Aggregation date. Day boundaries are at midnight UTC.
  1143  	Date *Date `json:"date,omitempty"`
  1144  	// Disk: Disk usage.
  1145  	Disk *DailyResourceUsageAggregationDisk `json:"disk,omitempty"`
  1146  	// Memory: Memory usage.
  1147  	Memory *DailyResourceUsageAggregationMemory `json:"memory,omitempty"`
  1148  	// Network: Network usage.
  1149  	Network *DailyResourceUsageAggregationNetwork `json:"network,omitempty"`
  1150  	// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally
  1151  	// include in API requests. By default, fields with empty or default values are
  1152  	// omitted from API requests. See
  1153  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1154  	// details.
  1155  	ForceSendFields []string `json:"-"`
  1156  	// NullFields is a list of field names (e.g. "Cpu") to include in API requests
  1157  	// with the JSON null value. By default, fields with empty values are omitted
  1158  	// from API requests. See
  1159  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1160  	NullFields []string `json:"-"`
  1161  }
  1162  
  1163  func (s *DailyResourceUsageAggregation) MarshalJSON() ([]byte, error) {
  1164  	type NoMethod DailyResourceUsageAggregation
  1165  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1166  }
  1167  
  1168  // DailyResourceUsageAggregationCPU: Statistical aggregation of CPU usage.
  1169  type DailyResourceUsageAggregationCPU struct {
  1170  	// UtilizationPercentage: CPU utilization percentage.
  1171  	UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"`
  1172  	// ForceSendFields is a list of field names (e.g. "UtilizationPercentage") to
  1173  	// unconditionally include in API requests. By default, fields with empty or
  1174  	// default values are omitted from API requests. See
  1175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1176  	// details.
  1177  	ForceSendFields []string `json:"-"`
  1178  	// NullFields is a list of field names (e.g. "UtilizationPercentage") to
  1179  	// include in API requests with the JSON null value. By default, fields with
  1180  	// empty values are omitted from API requests. See
  1181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1182  	NullFields []string `json:"-"`
  1183  }
  1184  
  1185  func (s *DailyResourceUsageAggregationCPU) MarshalJSON() ([]byte, error) {
  1186  	type NoMethod DailyResourceUsageAggregationCPU
  1187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1188  }
  1189  
  1190  // DailyResourceUsageAggregationDisk: Statistical aggregation of disk usage.
  1191  type DailyResourceUsageAggregationDisk struct {
  1192  	// Iops: Disk I/O operations per second.
  1193  	Iops *DailyResourceUsageAggregationStats `json:"iops,omitempty"`
  1194  	// ForceSendFields is a list of field names (e.g. "Iops") to unconditionally
  1195  	// include in API requests. By default, fields with empty or default values are
  1196  	// omitted from API requests. See
  1197  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1198  	// details.
  1199  	ForceSendFields []string `json:"-"`
  1200  	// NullFields is a list of field names (e.g. "Iops") to include in API requests
  1201  	// with the JSON null value. By default, fields with empty values are omitted
  1202  	// from API requests. See
  1203  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1204  	NullFields []string `json:"-"`
  1205  }
  1206  
  1207  func (s *DailyResourceUsageAggregationDisk) MarshalJSON() ([]byte, error) {
  1208  	type NoMethod DailyResourceUsageAggregationDisk
  1209  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1210  }
  1211  
  1212  // DailyResourceUsageAggregationMemory: Statistical aggregation of memory
  1213  // usage.
  1214  type DailyResourceUsageAggregationMemory struct {
  1215  	// UtilizationPercentage: Memory utilization percentage.
  1216  	UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"`
  1217  	// ForceSendFields is a list of field names (e.g. "UtilizationPercentage") to
  1218  	// unconditionally include in API requests. By default, fields with empty or
  1219  	// default values are omitted from API requests. See
  1220  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1221  	// details.
  1222  	ForceSendFields []string `json:"-"`
  1223  	// NullFields is a list of field names (e.g. "UtilizationPercentage") to
  1224  	// include in API requests with the JSON null value. By default, fields with
  1225  	// empty values are omitted from API requests. See
  1226  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1227  	NullFields []string `json:"-"`
  1228  }
  1229  
  1230  func (s *DailyResourceUsageAggregationMemory) MarshalJSON() ([]byte, error) {
  1231  	type NoMethod DailyResourceUsageAggregationMemory
  1232  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1233  }
  1234  
  1235  // DailyResourceUsageAggregationNetwork: Statistical aggregation of network
  1236  // usage.
  1237  type DailyResourceUsageAggregationNetwork struct {
  1238  	// EgressBps: Network egress in B/s.
  1239  	EgressBps *DailyResourceUsageAggregationStats `json:"egressBps,omitempty"`
  1240  	// IngressBps: Network ingress in B/s.
  1241  	IngressBps *DailyResourceUsageAggregationStats `json:"ingressBps,omitempty"`
  1242  	// ForceSendFields is a list of field names (e.g. "EgressBps") to
  1243  	// unconditionally include in API requests. By default, fields with empty or
  1244  	// default values are omitted from API requests. See
  1245  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1246  	// details.
  1247  	ForceSendFields []string `json:"-"`
  1248  	// NullFields is a list of field names (e.g. "EgressBps") to include in API
  1249  	// requests with the JSON null value. By default, fields with empty values are
  1250  	// omitted from API requests. See
  1251  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1252  	NullFields []string `json:"-"`
  1253  }
  1254  
  1255  func (s *DailyResourceUsageAggregationNetwork) MarshalJSON() ([]byte, error) {
  1256  	type NoMethod DailyResourceUsageAggregationNetwork
  1257  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1258  }
  1259  
  1260  // DailyResourceUsageAggregationStats: Statistical aggregation of samples for a
  1261  // single resource usage.
  1262  type DailyResourceUsageAggregationStats struct {
  1263  	// Average: Average usage value.
  1264  	Average float64 `json:"average,omitempty"`
  1265  	// Median: Median usage value.
  1266  	Median float64 `json:"median,omitempty"`
  1267  	// NinteyFifthPercentile: 95th percentile usage value.
  1268  	NinteyFifthPercentile float64 `json:"ninteyFifthPercentile,omitempty"`
  1269  	// Peak: Peak usage value.
  1270  	Peak float64 `json:"peak,omitempty"`
  1271  	// ForceSendFields is a list of field names (e.g. "Average") to unconditionally
  1272  	// include in API requests. By default, fields with empty or default values are
  1273  	// omitted from API requests. See
  1274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1275  	// details.
  1276  	ForceSendFields []string `json:"-"`
  1277  	// NullFields is a list of field names (e.g. "Average") to include in API
  1278  	// requests with the JSON null value. By default, fields with empty values are
  1279  	// omitted from API requests. See
  1280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1281  	NullFields []string `json:"-"`
  1282  }
  1283  
  1284  func (s *DailyResourceUsageAggregationStats) MarshalJSON() ([]byte, error) {
  1285  	type NoMethod DailyResourceUsageAggregationStats
  1286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1287  }
  1288  
  1289  func (s *DailyResourceUsageAggregationStats) UnmarshalJSON(data []byte) error {
  1290  	type NoMethod DailyResourceUsageAggregationStats
  1291  	var s1 struct {
  1292  		Average               gensupport.JSONFloat64 `json:"average"`
  1293  		Median                gensupport.JSONFloat64 `json:"median"`
  1294  		NinteyFifthPercentile gensupport.JSONFloat64 `json:"ninteyFifthPercentile"`
  1295  		Peak                  gensupport.JSONFloat64 `json:"peak"`
  1296  		*NoMethod
  1297  	}
  1298  	s1.NoMethod = (*NoMethod)(s)
  1299  	if err := json.Unmarshal(data, &s1); err != nil {
  1300  		return err
  1301  	}
  1302  	s.Average = float64(s1.Average)
  1303  	s.Median = float64(s1.Median)
  1304  	s.NinteyFifthPercentile = float64(s1.NinteyFifthPercentile)
  1305  	s.Peak = float64(s1.Peak)
  1306  	return nil
  1307  }
  1308  
  1309  // Date: Represents a whole or partial calendar date, such as a birthday. The
  1310  // time of day and time zone are either specified elsewhere or are
  1311  // insignificant. The date is relative to the Gregorian Calendar. This can
  1312  // represent one of the following: * A full date, with non-zero year, month,
  1313  // and day values. * A month and day, with a zero year (for example, an
  1314  // anniversary). * A year on its own, with a zero month and a zero day. * A
  1315  // year and month, with a zero day (for example, a credit card expiration
  1316  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  1317  // google.protobuf.Timestamp
  1318  type Date struct {
  1319  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  1320  	// or 0 to specify a year by itself or a year and month where the day isn't
  1321  	// significant.
  1322  	Day int64 `json:"day,omitempty"`
  1323  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  1324  	// a month and day.
  1325  	Month int64 `json:"month,omitempty"`
  1326  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  1327  	// without a year.
  1328  	Year int64 `json:"year,omitempty"`
  1329  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  1330  	// include in API requests. By default, fields with empty or default values are
  1331  	// omitted from API requests. See
  1332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1333  	// details.
  1334  	ForceSendFields []string `json:"-"`
  1335  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  1336  	// with the JSON null value. By default, fields with empty values are omitted
  1337  	// from API requests. See
  1338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1339  	NullFields []string `json:"-"`
  1340  }
  1341  
  1342  func (s *Date) MarshalJSON() ([]byte, error) {
  1343  	type NoMethod Date
  1344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1345  }
  1346  
  1347  // DiscoveryClient: Represents an installed Migration Center Discovery Client
  1348  // instance.
  1349  type DiscoveryClient struct {
  1350  	// CreateTime: Output only. Time when the discovery client was first created.
  1351  	CreateTime string `json:"createTime,omitempty"`
  1352  	// Description: Optional. Free text description. Maximum length is 1000
  1353  	// characters.
  1354  	Description string `json:"description,omitempty"`
  1355  	// DisplayName: Optional. Free text display name. Maximum length is 63
  1356  	// characters.
  1357  	DisplayName string `json:"displayName,omitempty"`
  1358  	// Errors: Output only. Errors affecting client functionality.
  1359  	Errors []*Status `json:"errors,omitempty"`
  1360  	// ExpireTime: Optional. Client expiration time in UTC. If specified, the
  1361  	// backend will not accept new frames after this time.
  1362  	ExpireTime string `json:"expireTime,omitempty"`
  1363  	// HeartbeatTime: Output only. Last heartbeat time. Healthy clients are
  1364  	// expected to send heartbeats regularly (normally every few minutes).
  1365  	HeartbeatTime string `json:"heartbeatTime,omitempty"`
  1366  	// Labels: Optional. Labels as key value pairs.
  1367  	Labels map[string]string `json:"labels,omitempty"`
  1368  	// Name: Output only. Identifier. Full name of this discovery client.
  1369  	Name string `json:"name,omitempty"`
  1370  	// ServiceAccount: Required. Service account used by the discovery client for
  1371  	// various operation.
  1372  	ServiceAccount string `json:"serviceAccount,omitempty"`
  1373  	// SignalsEndpoint: Output only. This field is intended for internal use.
  1374  	SignalsEndpoint string `json:"signalsEndpoint,omitempty"`
  1375  	// Source: Required. Immutable. Full name of the source object associated with
  1376  	// this discovery client.
  1377  	Source string `json:"source,omitempty"`
  1378  	// State: Output only. Current state of the discovery client.
  1379  	//
  1380  	// Possible values:
  1381  	//   "STATE_UNSPECIFIED" - Client state is unspecified.
  1382  	//   "ACTIVE" - Client is active.
  1383  	//   "OFFLINE" - Client is offline.
  1384  	//   "DEGRADED" - Client is in a degraded state. See the `errors` field for
  1385  	// details.
  1386  	//   "EXPIRED" - Client has expired. See the expire_time field for the expire
  1387  	// time.
  1388  	State string `json:"state,omitempty"`
  1389  	// Ttl: Optional. Input only. Client time-to-live. If specified, the backend
  1390  	// will not accept new frames after this time. This field is input only. The
  1391  	// derived expiration time is provided as output through the `expire_time`
  1392  	// field.
  1393  	Ttl string `json:"ttl,omitempty"`
  1394  	// UpdateTime: Output only. Time when the discovery client was last updated.
  1395  	// This value is not updated by heartbeats, to view the last heartbeat time
  1396  	// please refer to the `heartbeat_time` field.
  1397  	UpdateTime string `json:"updateTime,omitempty"`
  1398  	// Version: Output only. Client version, as reported in recent heartbeat.
  1399  	Version string `json:"version,omitempty"`
  1400  
  1401  	// ServerResponse contains the HTTP response code and headers from the server.
  1402  	googleapi.ServerResponse `json:"-"`
  1403  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1404  	// unconditionally include in API requests. By default, fields with empty or
  1405  	// default values are omitted from API requests. See
  1406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1407  	// details.
  1408  	ForceSendFields []string `json:"-"`
  1409  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1410  	// requests with the JSON null value. By default, fields with empty values are
  1411  	// omitted from API requests. See
  1412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1413  	NullFields []string `json:"-"`
  1414  }
  1415  
  1416  func (s *DiscoveryClient) MarshalJSON() ([]byte, error) {
  1417  	type NoMethod DiscoveryClient
  1418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1419  }
  1420  
  1421  // DiskEntry: Single disk entry.
  1422  type DiskEntry struct {
  1423  	// CapacityBytes: Disk capacity.
  1424  	CapacityBytes int64 `json:"capacityBytes,omitempty,string"`
  1425  	// DiskLabel: Disk label.
  1426  	DiskLabel string `json:"diskLabel,omitempty"`
  1427  	// DiskLabelType: Disk label type (e.g. BIOS/GPT)
  1428  	DiskLabelType string `json:"diskLabelType,omitempty"`
  1429  	// FreeBytes: Disk free space.
  1430  	FreeBytes int64 `json:"freeBytes,omitempty,string"`
  1431  	// HwAddress: Disk hardware address (e.g. 0:1 for SCSI).
  1432  	HwAddress string `json:"hwAddress,omitempty"`
  1433  	// InterfaceType: Disks interface type.
  1434  	//
  1435  	// Possible values:
  1436  	//   "INTERFACE_TYPE_UNSPECIFIED" - Interface type unknown or unspecified.
  1437  	//   "IDE" - IDE interface type.
  1438  	//   "SATA" - SATA interface type.
  1439  	//   "SAS" - SAS interface type.
  1440  	//   "SCSI" - SCSI interface type.
  1441  	//   "NVME" - NVME interface type.
  1442  	//   "FC" - FC interface type.
  1443  	//   "ISCSI" - iSCSI interface type.
  1444  	InterfaceType string `json:"interfaceType,omitempty"`
  1445  	// Partitions: Partition layout.
  1446  	Partitions *DiskPartitionList `json:"partitions,omitempty"`
  1447  	// Vmware: VMware disk details.
  1448  	Vmware *VmwareDiskConfig `json:"vmware,omitempty"`
  1449  	// ForceSendFields is a list of field names (e.g. "CapacityBytes") to
  1450  	// unconditionally include in API requests. By default, fields with empty or
  1451  	// default values are omitted from API requests. See
  1452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1453  	// details.
  1454  	ForceSendFields []string `json:"-"`
  1455  	// NullFields is a list of field names (e.g. "CapacityBytes") to include in API
  1456  	// requests with the JSON null value. By default, fields with empty values are
  1457  	// omitted from API requests. See
  1458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1459  	NullFields []string `json:"-"`
  1460  }
  1461  
  1462  func (s *DiskEntry) MarshalJSON() ([]byte, error) {
  1463  	type NoMethod DiskEntry
  1464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1465  }
  1466  
  1467  // DiskEntryList: VM disks.
  1468  type DiskEntryList struct {
  1469  	// Entries: Disk entries.
  1470  	Entries []*DiskEntry `json:"entries,omitempty"`
  1471  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1472  	// include in API requests. By default, fields with empty or default values are
  1473  	// omitted from API requests. See
  1474  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1475  	// details.
  1476  	ForceSendFields []string `json:"-"`
  1477  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1478  	// requests with the JSON null value. By default, fields with empty values are
  1479  	// omitted from API requests. See
  1480  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1481  	NullFields []string `json:"-"`
  1482  }
  1483  
  1484  func (s *DiskEntryList) MarshalJSON() ([]byte, error) {
  1485  	type NoMethod DiskEntryList
  1486  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1487  }
  1488  
  1489  // DiskPartition: Disk Partition details.
  1490  type DiskPartition struct {
  1491  	// CapacityBytes: Partition capacity.
  1492  	CapacityBytes int64 `json:"capacityBytes,omitempty,string"`
  1493  	// FileSystem: Partition file system.
  1494  	FileSystem string `json:"fileSystem,omitempty"`
  1495  	// FreeBytes: Partition free space.
  1496  	FreeBytes int64 `json:"freeBytes,omitempty,string"`
  1497  	// MountPoint: Mount pount (Linux/Windows) or drive letter (Windows).
  1498  	MountPoint string `json:"mountPoint,omitempty"`
  1499  	// SubPartitions: Sub-partitions.
  1500  	SubPartitions *DiskPartitionList `json:"subPartitions,omitempty"`
  1501  	// Type: Partition type.
  1502  	Type string `json:"type,omitempty"`
  1503  	// Uuid: Partition UUID.
  1504  	Uuid string `json:"uuid,omitempty"`
  1505  	// ForceSendFields is a list of field names (e.g. "CapacityBytes") to
  1506  	// unconditionally include in API requests. By default, fields with empty or
  1507  	// default values are omitted from API requests. See
  1508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1509  	// details.
  1510  	ForceSendFields []string `json:"-"`
  1511  	// NullFields is a list of field names (e.g. "CapacityBytes") to include in API
  1512  	// requests with the JSON null value. By default, fields with empty values are
  1513  	// omitted from API requests. See
  1514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1515  	NullFields []string `json:"-"`
  1516  }
  1517  
  1518  func (s *DiskPartition) MarshalJSON() ([]byte, error) {
  1519  	type NoMethod DiskPartition
  1520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1521  }
  1522  
  1523  // DiskPartitionList: Disk partition list.
  1524  type DiskPartitionList struct {
  1525  	// Entries: Partition entries.
  1526  	Entries []*DiskPartition `json:"entries,omitempty"`
  1527  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1528  	// include in API requests. By default, fields with empty or default values are
  1529  	// omitted from API requests. See
  1530  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1531  	// details.
  1532  	ForceSendFields []string `json:"-"`
  1533  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1534  	// requests with the JSON null value. By default, fields with empty values are
  1535  	// omitted from API requests. See
  1536  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1537  	NullFields []string `json:"-"`
  1538  }
  1539  
  1540  func (s *DiskPartitionList) MarshalJSON() ([]byte, error) {
  1541  	type NoMethod DiskPartitionList
  1542  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1543  }
  1544  
  1545  // DiskUsageSample: Disk usage sample. Values are across all disks.
  1546  type DiskUsageSample struct {
  1547  	// AverageIops: Average IOPS sampled over a short window. Must be non-negative.
  1548  	AverageIops float64 `json:"averageIops,omitempty"`
  1549  	// ForceSendFields is a list of field names (e.g. "AverageIops") to
  1550  	// unconditionally include in API requests. By default, fields with empty or
  1551  	// default values are omitted from API requests. See
  1552  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1553  	// details.
  1554  	ForceSendFields []string `json:"-"`
  1555  	// NullFields is a list of field names (e.g. "AverageIops") to include in API
  1556  	// requests with the JSON null value. By default, fields with empty values are
  1557  	// omitted from API requests. See
  1558  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1559  	NullFields []string `json:"-"`
  1560  }
  1561  
  1562  func (s *DiskUsageSample) MarshalJSON() ([]byte, error) {
  1563  	type NoMethod DiskUsageSample
  1564  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1565  }
  1566  
  1567  func (s *DiskUsageSample) UnmarshalJSON(data []byte) error {
  1568  	type NoMethod DiskUsageSample
  1569  	var s1 struct {
  1570  		AverageIops gensupport.JSONFloat64 `json:"averageIops"`
  1571  		*NoMethod
  1572  	}
  1573  	s1.NoMethod = (*NoMethod)(s)
  1574  	if err := json.Unmarshal(data, &s1); err != nil {
  1575  		return err
  1576  	}
  1577  	s.AverageIops = float64(s1.AverageIops)
  1578  	return nil
  1579  }
  1580  
  1581  // Empty: A generic empty message that you can re-use to avoid defining
  1582  // duplicated empty messages in your APIs. A typical example is to use it as
  1583  // the request or the response type of an API method. For instance: service Foo
  1584  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  1585  type Empty struct {
  1586  	// ServerResponse contains the HTTP response code and headers from the server.
  1587  	googleapi.ServerResponse `json:"-"`
  1588  }
  1589  
  1590  // ErrorFrame: Message representing a frame which failed to be processed due to
  1591  // an error.
  1592  type ErrorFrame struct {
  1593  	// IngestionTime: Output only. Frame ingestion time.
  1594  	IngestionTime string `json:"ingestionTime,omitempty"`
  1595  	// Name: Output only. The identifier of the ErrorFrame.
  1596  	Name string `json:"name,omitempty"`
  1597  	// OriginalFrame: Output only. The frame that was originally reported.
  1598  	OriginalFrame *AssetFrame `json:"originalFrame,omitempty"`
  1599  	// Violations: Output only. All the violations that were detected for the
  1600  	// frame.
  1601  	Violations []*FrameViolationEntry `json:"violations,omitempty"`
  1602  
  1603  	// ServerResponse contains the HTTP response code and headers from the server.
  1604  	googleapi.ServerResponse `json:"-"`
  1605  	// ForceSendFields is a list of field names (e.g. "IngestionTime") to
  1606  	// unconditionally include in API requests. By default, fields with empty or
  1607  	// default values are omitted from API requests. See
  1608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1609  	// details.
  1610  	ForceSendFields []string `json:"-"`
  1611  	// NullFields is a list of field names (e.g. "IngestionTime") to include in API
  1612  	// requests with the JSON null value. By default, fields with empty values are
  1613  	// omitted from API requests. See
  1614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1615  	NullFields []string `json:"-"`
  1616  }
  1617  
  1618  func (s *ErrorFrame) MarshalJSON() ([]byte, error) {
  1619  	type NoMethod ErrorFrame
  1620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1621  }
  1622  
  1623  // ExecutionReport: A resource that reports result of the import job execution.
  1624  type ExecutionReport struct {
  1625  	// ExecutionErrors: Validation errors encountered during the execution of the
  1626  	// import job.
  1627  	ExecutionErrors *ValidationReport `json:"executionErrors,omitempty"`
  1628  	// FramesReported: Total number of asset frames reported for the import job.
  1629  	FramesReported int64 `json:"framesReported,omitempty"`
  1630  	// TotalRowsCount: Output only. Total number of rows in the import job.
  1631  	TotalRowsCount int64 `json:"totalRowsCount,omitempty"`
  1632  	// ForceSendFields is a list of field names (e.g. "ExecutionErrors") to
  1633  	// unconditionally include in API requests. By default, fields with empty or
  1634  	// default values are omitted from API requests. See
  1635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1636  	// details.
  1637  	ForceSendFields []string `json:"-"`
  1638  	// NullFields is a list of field names (e.g. "ExecutionErrors") to include in
  1639  	// API requests with the JSON null value. By default, fields with empty values
  1640  	// are omitted from API requests. See
  1641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1642  	NullFields []string `json:"-"`
  1643  }
  1644  
  1645  func (s *ExecutionReport) MarshalJSON() ([]byte, error) {
  1646  	type NoMethod ExecutionReport
  1647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1648  }
  1649  
  1650  // FileValidationReport: A resource that aggregates the validation errors found
  1651  // in an import job file.
  1652  type FileValidationReport struct {
  1653  	// FileErrors: List of file level errors.
  1654  	FileErrors []*ImportError `json:"fileErrors,omitempty"`
  1655  	// FileName: The name of the file.
  1656  	FileName string `json:"fileName,omitempty"`
  1657  	// PartialReport: Flag indicating that processing was aborted due to maximum
  1658  	// number of errors.
  1659  	PartialReport bool `json:"partialReport,omitempty"`
  1660  	// RowErrors: Partial list of rows that encountered validation error.
  1661  	RowErrors []*ImportRowError `json:"rowErrors,omitempty"`
  1662  	// ForceSendFields is a list of field names (e.g. "FileErrors") to
  1663  	// unconditionally include in API requests. By default, fields with empty or
  1664  	// default values are omitted from API requests. See
  1665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1666  	// details.
  1667  	ForceSendFields []string `json:"-"`
  1668  	// NullFields is a list of field names (e.g. "FileErrors") to include in API
  1669  	// requests with the JSON null value. By default, fields with empty values are
  1670  	// omitted from API requests. See
  1671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1672  	NullFields []string `json:"-"`
  1673  }
  1674  
  1675  func (s *FileValidationReport) MarshalJSON() ([]byte, error) {
  1676  	type NoMethod FileValidationReport
  1677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1678  }
  1679  
  1680  // FitDescriptor: Describes the fit level of an asset for migration to a
  1681  // specific target.
  1682  type FitDescriptor struct {
  1683  	// FitLevel: Fit level.
  1684  	//
  1685  	// Possible values:
  1686  	//   "FIT_LEVEL_UNSPECIFIED" - Not enough information.
  1687  	//   "FIT" - Fit.
  1688  	//   "NO_FIT" - No Fit.
  1689  	//   "REQUIRES_EFFORT" - Fit with effort.
  1690  	FitLevel string `json:"fitLevel,omitempty"`
  1691  	// ForceSendFields is a list of field names (e.g. "FitLevel") to
  1692  	// unconditionally include in API requests. By default, fields with empty or
  1693  	// default values are omitted from API requests. See
  1694  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1695  	// details.
  1696  	ForceSendFields []string `json:"-"`
  1697  	// NullFields is a list of field names (e.g. "FitLevel") to include in API
  1698  	// requests with the JSON null value. By default, fields with empty values are
  1699  	// omitted from API requests. See
  1700  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1701  	NullFields []string `json:"-"`
  1702  }
  1703  
  1704  func (s *FitDescriptor) MarshalJSON() ([]byte, error) {
  1705  	type NoMethod FitDescriptor
  1706  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1707  }
  1708  
  1709  // FrameViolationEntry: A resource that contains a single violation of a
  1710  // reported `AssetFrame` resource.
  1711  type FrameViolationEntry struct {
  1712  	// Field: The field of the original frame where the violation occurred.
  1713  	Field string `json:"field,omitempty"`
  1714  	// Violation: A message describing the violation.
  1715  	Violation string `json:"violation,omitempty"`
  1716  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  1717  	// include in API requests. By default, fields with empty or default values are
  1718  	// omitted from API requests. See
  1719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1720  	// details.
  1721  	ForceSendFields []string `json:"-"`
  1722  	// NullFields is a list of field names (e.g. "Field") to include in API
  1723  	// requests with the JSON null value. By default, fields with empty values are
  1724  	// omitted from API requests. See
  1725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1726  	NullFields []string `json:"-"`
  1727  }
  1728  
  1729  func (s *FrameViolationEntry) MarshalJSON() ([]byte, error) {
  1730  	type NoMethod FrameViolationEntry
  1731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1732  }
  1733  
  1734  // Frames: Collection of frame data.
  1735  type Frames struct {
  1736  	// FramesData: A repeated field of asset data.
  1737  	FramesData []*AssetFrame `json:"framesData,omitempty"`
  1738  	// ForceSendFields is a list of field names (e.g. "FramesData") to
  1739  	// unconditionally include in API requests. By default, fields with empty or
  1740  	// default values are omitted from API requests. See
  1741  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1742  	// details.
  1743  	ForceSendFields []string `json:"-"`
  1744  	// NullFields is a list of field names (e.g. "FramesData") to include in API
  1745  	// requests with the JSON null value. By default, fields with empty values are
  1746  	// omitted from API requests. See
  1747  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1748  	NullFields []string `json:"-"`
  1749  }
  1750  
  1751  func (s *Frames) MarshalJSON() ([]byte, error) {
  1752  	type NoMethod Frames
  1753  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1754  }
  1755  
  1756  // FstabEntry: Single fstab entry.
  1757  type FstabEntry struct {
  1758  	// File: The mount point for the filesystem.
  1759  	File string `json:"file,omitempty"`
  1760  	// Freq: Used by dump to determine which filesystems need to be dumped.
  1761  	Freq int64 `json:"freq,omitempty"`
  1762  	// Mntops: Mount options associated with the filesystem.
  1763  	Mntops string `json:"mntops,omitempty"`
  1764  	// Passno: Used by the fsck(8) program to determine the order in which
  1765  	// filesystem checks are done at reboot time.
  1766  	Passno int64 `json:"passno,omitempty"`
  1767  	// Spec: The block special device or remote filesystem to be mounted.
  1768  	Spec string `json:"spec,omitempty"`
  1769  	// Vfstype: The type of the filesystem.
  1770  	Vfstype string `json:"vfstype,omitempty"`
  1771  	// ForceSendFields is a list of field names (e.g. "File") to unconditionally
  1772  	// include in API requests. By default, fields with empty or default values are
  1773  	// omitted from API requests. See
  1774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1775  	// details.
  1776  	ForceSendFields []string `json:"-"`
  1777  	// NullFields is a list of field names (e.g. "File") to include in API requests
  1778  	// with the JSON null value. By default, fields with empty values are omitted
  1779  	// from API requests. See
  1780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1781  	NullFields []string `json:"-"`
  1782  }
  1783  
  1784  func (s *FstabEntry) MarshalJSON() ([]byte, error) {
  1785  	type NoMethod FstabEntry
  1786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1787  }
  1788  
  1789  // FstabEntryList: Fstab content.
  1790  type FstabEntryList struct {
  1791  	// Entries: Fstab entries.
  1792  	Entries []*FstabEntry `json:"entries,omitempty"`
  1793  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1794  	// include in API requests. By default, fields with empty or default values are
  1795  	// omitted from API requests. See
  1796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1797  	// details.
  1798  	ForceSendFields []string `json:"-"`
  1799  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1800  	// requests with the JSON null value. By default, fields with empty values are
  1801  	// omitted from API requests. See
  1802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1803  	NullFields []string `json:"-"`
  1804  }
  1805  
  1806  func (s *FstabEntryList) MarshalJSON() ([]byte, error) {
  1807  	type NoMethod FstabEntryList
  1808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1809  }
  1810  
  1811  // GenericInsight: A generic insight about an asset.
  1812  type GenericInsight struct {
  1813  	// AdditionalInformation: Output only. Additional information about the
  1814  	// insight, each entry can be a logical entry and must make sense if it is
  1815  	// displayed with line breaks between each entry. Text can contain md style
  1816  	// links.
  1817  	AdditionalInformation []string `json:"additionalInformation,omitempty"`
  1818  	// DefaultMessage: Output only. In case message_code is not yet known by the
  1819  	// client default_message will be the message to be used instead.
  1820  	DefaultMessage string `json:"defaultMessage,omitempty"`
  1821  	// MessageId: Output only. Represents a globally unique message id for this
  1822  	// insight, can be used for localization purposes, in case message_code is not
  1823  	// yet known by the client use default_message instead.
  1824  	MessageId int64 `json:"messageId,omitempty,string"`
  1825  	// ForceSendFields is a list of field names (e.g. "AdditionalInformation") to
  1826  	// unconditionally include in API requests. By default, fields with empty or
  1827  	// default values are omitted from API requests. See
  1828  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1829  	// details.
  1830  	ForceSendFields []string `json:"-"`
  1831  	// NullFields is a list of field names (e.g. "AdditionalInformation") to
  1832  	// include in API requests with the JSON null value. By default, fields with
  1833  	// empty values are omitted from API requests. See
  1834  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1835  	NullFields []string `json:"-"`
  1836  }
  1837  
  1838  func (s *GenericInsight) MarshalJSON() ([]byte, error) {
  1839  	type NoMethod GenericInsight
  1840  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1841  }
  1842  
  1843  // GenericPlatformDetails: Generic platform details.
  1844  type GenericPlatformDetails struct {
  1845  	// Location: Free text representation of the machine location. The format of
  1846  	// this field should not be relied on. Different VMs in the same location may
  1847  	// have different string values for this field.
  1848  	Location string `json:"location,omitempty"`
  1849  	// ForceSendFields is a list of field names (e.g. "Location") to
  1850  	// unconditionally include in API requests. By default, fields with empty or
  1851  	// default values are omitted from API requests. See
  1852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1853  	// details.
  1854  	ForceSendFields []string `json:"-"`
  1855  	// NullFields is a list of field names (e.g. "Location") to include in API
  1856  	// requests with the JSON null value. By default, fields with empty values are
  1857  	// omitted from API requests. See
  1858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1859  	NullFields []string `json:"-"`
  1860  }
  1861  
  1862  func (s *GenericPlatformDetails) MarshalJSON() ([]byte, error) {
  1863  	type NoMethod GenericPlatformDetails
  1864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1865  }
  1866  
  1867  // Group: A resource that represents an asset group. The purpose of an asset
  1868  // group is to bundle a set of assets that have something in common, while
  1869  // allowing users to add annotations to the group. An asset can belong to
  1870  // multiple groups.
  1871  type Group struct {
  1872  	// CreateTime: Output only. The timestamp when the group was created.
  1873  	CreateTime string `json:"createTime,omitempty"`
  1874  	// Description: Optional. The description of the group.
  1875  	Description string `json:"description,omitempty"`
  1876  	// DisplayName: Optional. User-friendly display name.
  1877  	DisplayName string `json:"displayName,omitempty"`
  1878  	// Labels: Labels as key value pairs.
  1879  	Labels map[string]string `json:"labels,omitempty"`
  1880  	// Name: Output only. The name of the group.
  1881  	Name string `json:"name,omitempty"`
  1882  	// UpdateTime: Output only. The timestamp when the group was last updated.
  1883  	UpdateTime string `json:"updateTime,omitempty"`
  1884  
  1885  	// ServerResponse contains the HTTP response code and headers from the server.
  1886  	googleapi.ServerResponse `json:"-"`
  1887  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1888  	// unconditionally include in API requests. By default, fields with empty or
  1889  	// default values are omitted from API requests. See
  1890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1891  	// details.
  1892  	ForceSendFields []string `json:"-"`
  1893  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1894  	// requests with the JSON null value. By default, fields with empty values are
  1895  	// omitted from API requests. See
  1896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1897  	NullFields []string `json:"-"`
  1898  }
  1899  
  1900  func (s *Group) MarshalJSON() ([]byte, error) {
  1901  	type NoMethod Group
  1902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1903  }
  1904  
  1905  // GuestConfigDetails: Guest OS config information.
  1906  type GuestConfigDetails struct {
  1907  	// Fstab: Mount list (Linux fstab).
  1908  	Fstab *FstabEntryList `json:"fstab,omitempty"`
  1909  	// Hosts: Hosts file (/etc/hosts).
  1910  	Hosts *HostsEntryList `json:"hosts,omitempty"`
  1911  	// Issue: OS issue (typically /etc/issue in Linux).
  1912  	Issue string `json:"issue,omitempty"`
  1913  	// NfsExports: NFS exports.
  1914  	NfsExports *NfsExportList `json:"nfsExports,omitempty"`
  1915  	// SelinuxMode: Security-Enhanced Linux (SELinux) mode.
  1916  	//
  1917  	// Possible values:
  1918  	//   "SE_LINUX_MODE_UNSPECIFIED" - SELinux mode unknown or unspecified.
  1919  	//   "SE_LINUX_MODE_DISABLED" - SELinux is disabled.
  1920  	//   "SE_LINUX_MODE_PERMISSIVE" - SELinux permissive mode.
  1921  	//   "SE_LINUX_MODE_ENFORCING" - SELinux enforcing mode.
  1922  	SelinuxMode string `json:"selinuxMode,omitempty"`
  1923  	// ForceSendFields is a list of field names (e.g. "Fstab") to unconditionally
  1924  	// include in API requests. By default, fields with empty or default values are
  1925  	// omitted from API requests. See
  1926  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1927  	// details.
  1928  	ForceSendFields []string `json:"-"`
  1929  	// NullFields is a list of field names (e.g. "Fstab") to include in API
  1930  	// requests with the JSON null value. By default, fields with empty values are
  1931  	// omitted from API requests. See
  1932  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1933  	NullFields []string `json:"-"`
  1934  }
  1935  
  1936  func (s *GuestConfigDetails) MarshalJSON() ([]byte, error) {
  1937  	type NoMethod GuestConfigDetails
  1938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1939  }
  1940  
  1941  // GuestInstalledApplication: Guest installed application information.
  1942  type GuestInstalledApplication struct {
  1943  	// ApplicationName: Installed application name.
  1944  	ApplicationName string `json:"applicationName,omitempty"`
  1945  	// InstallTime: The time when the application was installed.
  1946  	InstallTime string `json:"installTime,omitempty"`
  1947  	// Licenses: License strings associated with the installed application.
  1948  	Licenses []string `json:"licenses,omitempty"`
  1949  	// Path: Source path.
  1950  	Path string `json:"path,omitempty"`
  1951  	// Vendor: Installed application vendor.
  1952  	Vendor string `json:"vendor,omitempty"`
  1953  	// Version: Installed application version.
  1954  	Version string `json:"version,omitempty"`
  1955  	// ForceSendFields is a list of field names (e.g. "ApplicationName") to
  1956  	// unconditionally include in API requests. By default, fields with empty or
  1957  	// default values are omitted from API requests. See
  1958  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1959  	// details.
  1960  	ForceSendFields []string `json:"-"`
  1961  	// NullFields is a list of field names (e.g. "ApplicationName") to include in
  1962  	// API requests with the JSON null value. By default, fields with empty values
  1963  	// are omitted from API requests. See
  1964  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1965  	NullFields []string `json:"-"`
  1966  }
  1967  
  1968  func (s *GuestInstalledApplication) MarshalJSON() ([]byte, error) {
  1969  	type NoMethod GuestInstalledApplication
  1970  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1971  }
  1972  
  1973  // GuestInstalledApplicationList: Guest installed application list.
  1974  type GuestInstalledApplicationList struct {
  1975  	// Entries: Application entries.
  1976  	Entries []*GuestInstalledApplication `json:"entries,omitempty"`
  1977  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1978  	// include in API requests. By default, fields with empty or default values are
  1979  	// omitted from API requests. See
  1980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1981  	// details.
  1982  	ForceSendFields []string `json:"-"`
  1983  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1984  	// requests with the JSON null value. By default, fields with empty values are
  1985  	// omitted from API requests. See
  1986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1987  	NullFields []string `json:"-"`
  1988  }
  1989  
  1990  func (s *GuestInstalledApplicationList) MarshalJSON() ([]byte, error) {
  1991  	type NoMethod GuestInstalledApplicationList
  1992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1993  }
  1994  
  1995  // GuestOsDetails: Information from Guest-level collections.
  1996  type GuestOsDetails struct {
  1997  	// Config: OS and app configuration.
  1998  	Config *GuestConfigDetails `json:"config,omitempty"`
  1999  	// Family: What family the OS belong to, if known.
  2000  	//
  2001  	// Possible values:
  2002  	//   "OS_FAMILY_UNKNOWN"
  2003  	//   "OS_FAMILY_WINDOWS" - Microsoft Windows Server and Desktop.
  2004  	//   "OS_FAMILY_LINUX" - Various Linux flavors.
  2005  	//   "OS_FAMILY_UNIX" - Non-Linux Unix flavors.
  2006  	Family string `json:"family,omitempty"`
  2007  	// OsName: The name of the operating system.
  2008  	OsName string `json:"osName,omitempty"`
  2009  	// Runtime: Runtime information.
  2010  	Runtime *GuestRuntimeDetails `json:"runtime,omitempty"`
  2011  	// Version: The version of the operating system.
  2012  	Version string `json:"version,omitempty"`
  2013  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2014  	// include in API requests. By default, fields with empty or default values are
  2015  	// omitted from API requests. See
  2016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2017  	// details.
  2018  	ForceSendFields []string `json:"-"`
  2019  	// NullFields is a list of field names (e.g. "Config") to include in API
  2020  	// requests with the JSON null value. By default, fields with empty values are
  2021  	// omitted from API requests. See
  2022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2023  	NullFields []string `json:"-"`
  2024  }
  2025  
  2026  func (s *GuestOsDetails) MarshalJSON() ([]byte, error) {
  2027  	type NoMethod GuestOsDetails
  2028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2029  }
  2030  
  2031  // GuestRuntimeDetails: Guest OS runtime information.
  2032  type GuestRuntimeDetails struct {
  2033  	// Domain: Domain, e.g. c.stratozone-development.internal.
  2034  	Domain string `json:"domain,omitempty"`
  2035  	// InstalledApps: Installed applications information.
  2036  	InstalledApps *GuestInstalledApplicationList `json:"installedApps,omitempty"`
  2037  	// LastBootTime: Last time the OS was booted.
  2038  	LastBootTime string `json:"lastBootTime,omitempty"`
  2039  	// MachineName: Machine name.
  2040  	MachineName string `json:"machineName,omitempty"`
  2041  	// Network: Runtime network information (connections, ports).
  2042  	Network *RuntimeNetworkInfo `json:"network,omitempty"`
  2043  	// OpenFileList: Open files information.
  2044  	OpenFileList *OpenFileList `json:"openFileList,omitempty"`
  2045  	// Processes: Running processes.
  2046  	Processes *RunningProcessList `json:"processes,omitempty"`
  2047  	// Services: Running background services.
  2048  	Services *RunningServiceList `json:"services,omitempty"`
  2049  	// ForceSendFields is a list of field names (e.g. "Domain") to unconditionally
  2050  	// include in API requests. By default, fields with empty or default values are
  2051  	// omitted from API requests. See
  2052  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2053  	// details.
  2054  	ForceSendFields []string `json:"-"`
  2055  	// NullFields is a list of field names (e.g. "Domain") to include in API
  2056  	// requests with the JSON null value. By default, fields with empty values are
  2057  	// omitted from API requests. See
  2058  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2059  	NullFields []string `json:"-"`
  2060  }
  2061  
  2062  func (s *GuestRuntimeDetails) MarshalJSON() ([]byte, error) {
  2063  	type NoMethod GuestRuntimeDetails
  2064  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2065  }
  2066  
  2067  // HostsEntry: Single /etc/hosts entry.
  2068  type HostsEntry struct {
  2069  	// HostNames: List of host names / aliases.
  2070  	HostNames []string `json:"hostNames,omitempty"`
  2071  	// Ip: IP (raw, IPv4/6 agnostic).
  2072  	Ip string `json:"ip,omitempty"`
  2073  	// ForceSendFields is a list of field names (e.g. "HostNames") to
  2074  	// unconditionally include in API requests. By default, fields with empty or
  2075  	// default values are omitted from API requests. See
  2076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2077  	// details.
  2078  	ForceSendFields []string `json:"-"`
  2079  	// NullFields is a list of field names (e.g. "HostNames") to include in API
  2080  	// requests with the JSON null value. By default, fields with empty values are
  2081  	// omitted from API requests. See
  2082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2083  	NullFields []string `json:"-"`
  2084  }
  2085  
  2086  func (s *HostsEntry) MarshalJSON() ([]byte, error) {
  2087  	type NoMethod HostsEntry
  2088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2089  }
  2090  
  2091  // HostsEntryList: Hosts content.
  2092  type HostsEntryList struct {
  2093  	// Entries: Hosts entries.
  2094  	Entries []*HostsEntry `json:"entries,omitempty"`
  2095  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2096  	// include in API requests. By default, fields with empty or default values are
  2097  	// omitted from API requests. See
  2098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2099  	// details.
  2100  	ForceSendFields []string `json:"-"`
  2101  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2102  	// requests with the JSON null value. By default, fields with empty values are
  2103  	// omitted from API requests. See
  2104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2105  	NullFields []string `json:"-"`
  2106  }
  2107  
  2108  func (s *HostsEntryList) MarshalJSON() ([]byte, error) {
  2109  	type NoMethod HostsEntryList
  2110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2111  }
  2112  
  2113  // ImportDataFile: A resource that represents a payload file in an import job.
  2114  type ImportDataFile struct {
  2115  	// CreateTime: Output only. The timestamp when the file was created.
  2116  	CreateTime string `json:"createTime,omitempty"`
  2117  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  2118  	DisplayName string `json:"displayName,omitempty"`
  2119  	// Format: Required. The payload format.
  2120  	//
  2121  	// Possible values:
  2122  	//   "IMPORT_JOB_FORMAT_UNSPECIFIED" - Default value.
  2123  	//   "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX).
  2124  	//   "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV).
  2125  	//   "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS using
  2126  	// the AWS collection script.
  2127  	//   "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from Azure
  2128  	// using the Azure collection script.
  2129  	//   "IMPORT_JOB_FORMAT_STRATOZONE_CSV" - CSV format created manually and
  2130  	// following the StratoZone format. For more information, see Manually create
  2131  	// and upload data tables.
  2132  	Format string `json:"format,omitempty"`
  2133  	// Name: Output only. The name of the file.
  2134  	Name string `json:"name,omitempty"`
  2135  	// State: Output only. The state of the import data file.
  2136  	//
  2137  	// Possible values:
  2138  	//   "STATE_UNSPECIFIED" - Default value.
  2139  	//   "CREATING" - The data file is being created.
  2140  	//   "ACTIVE" - The data file completed initialization.
  2141  	State string `json:"state,omitempty"`
  2142  	// UploadFileInfo: Information about a file that is uploaded to a storage
  2143  	// service.
  2144  	UploadFileInfo *UploadFileInfo `json:"uploadFileInfo,omitempty"`
  2145  
  2146  	// ServerResponse contains the HTTP response code and headers from the server.
  2147  	googleapi.ServerResponse `json:"-"`
  2148  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2149  	// unconditionally include in API requests. By default, fields with empty or
  2150  	// default values are omitted from API requests. See
  2151  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2152  	// details.
  2153  	ForceSendFields []string `json:"-"`
  2154  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2155  	// requests with the JSON null value. By default, fields with empty values are
  2156  	// omitted from API requests. See
  2157  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2158  	NullFields []string `json:"-"`
  2159  }
  2160  
  2161  func (s *ImportDataFile) MarshalJSON() ([]byte, error) {
  2162  	type NoMethod ImportDataFile
  2163  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2164  }
  2165  
  2166  // ImportError: A resource that reports the errors encountered while processing
  2167  // an import job.
  2168  type ImportError struct {
  2169  	// ErrorDetails: The error information.
  2170  	ErrorDetails string `json:"errorDetails,omitempty"`
  2171  	// Severity: The severity of the error.
  2172  	//
  2173  	// Possible values:
  2174  	//   "SEVERITY_UNSPECIFIED"
  2175  	//   "ERROR"
  2176  	//   "WARNING"
  2177  	//   "INFO"
  2178  	Severity string `json:"severity,omitempty"`
  2179  	// ForceSendFields is a list of field names (e.g. "ErrorDetails") to
  2180  	// unconditionally include in API requests. By default, fields with empty or
  2181  	// default values are omitted from API requests. See
  2182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2183  	// details.
  2184  	ForceSendFields []string `json:"-"`
  2185  	// NullFields is a list of field names (e.g. "ErrorDetails") to include in API
  2186  	// requests with the JSON null value. By default, fields with empty values are
  2187  	// omitted from API requests. See
  2188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2189  	NullFields []string `json:"-"`
  2190  }
  2191  
  2192  func (s *ImportError) MarshalJSON() ([]byte, error) {
  2193  	type NoMethod ImportError
  2194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2195  }
  2196  
  2197  // ImportJob: A resource that represents the background job that imports asset
  2198  // frames.
  2199  type ImportJob struct {
  2200  	// AssetSource: Required. Reference to a source.
  2201  	AssetSource string `json:"assetSource,omitempty"`
  2202  	// CompleteTime: Output only. The timestamp when the import job was completed.
  2203  	CompleteTime string `json:"completeTime,omitempty"`
  2204  	// CreateTime: Output only. The timestamp when the import job was created.
  2205  	CreateTime string `json:"createTime,omitempty"`
  2206  	// DisplayName: Optional. User-friendly display name. Maximum length is 256
  2207  	// characters.
  2208  	DisplayName string `json:"displayName,omitempty"`
  2209  	// ExecutionReport: Output only. The report with the results of running the
  2210  	// import job.
  2211  	ExecutionReport *ExecutionReport `json:"executionReport,omitempty"`
  2212  	// Labels: Labels as key value pairs.
  2213  	Labels map[string]string `json:"labels,omitempty"`
  2214  	// Name: Output only. The full name of the import job.
  2215  	Name string `json:"name,omitempty"`
  2216  	// State: Output only. The state of the import job.
  2217  	//
  2218  	// Possible values:
  2219  	//   "IMPORT_JOB_STATE_UNSPECIFIED" - Default value.
  2220  	//   "IMPORT_JOB_STATE_PENDING" - The import job is pending.
  2221  	//   "IMPORT_JOB_STATE_RUNNING" - The processing of the import job is ongoing.
  2222  	//   "IMPORT_JOB_STATE_COMPLETED" - The import job processing has completed.
  2223  	//   "IMPORT_JOB_STATE_FAILED" - The import job failed to be processed.
  2224  	//   "IMPORT_JOB_STATE_VALIDATING" - The import job is being validated.
  2225  	//   "IMPORT_JOB_STATE_FAILED_VALIDATION" - The import job contains blocking
  2226  	// errors.
  2227  	//   "IMPORT_JOB_STATE_READY" - The validation of the job completed with no
  2228  	// blocking errors.
  2229  	State string `json:"state,omitempty"`
  2230  	// UpdateTime: Output only. The timestamp when the import job was last updated.
  2231  	UpdateTime string `json:"updateTime,omitempty"`
  2232  	// ValidationReport: Output only. The report with the validation results of the
  2233  	// import job.
  2234  	ValidationReport *ValidationReport `json:"validationReport,omitempty"`
  2235  
  2236  	// ServerResponse contains the HTTP response code and headers from the server.
  2237  	googleapi.ServerResponse `json:"-"`
  2238  	// ForceSendFields is a list of field names (e.g. "AssetSource") to
  2239  	// unconditionally include in API requests. By default, fields with empty or
  2240  	// default values are omitted from API requests. See
  2241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2242  	// details.
  2243  	ForceSendFields []string `json:"-"`
  2244  	// NullFields is a list of field names (e.g. "AssetSource") to include in API
  2245  	// requests with the JSON null value. By default, fields with empty values are
  2246  	// omitted from API requests. See
  2247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2248  	NullFields []string `json:"-"`
  2249  }
  2250  
  2251  func (s *ImportJob) MarshalJSON() ([]byte, error) {
  2252  	type NoMethod ImportJob
  2253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2254  }
  2255  
  2256  // ImportRowError: A resource that reports the import job errors at row level.
  2257  type ImportRowError struct {
  2258  	// Errors: The list of errors detected in the row.
  2259  	Errors []*ImportError `json:"errors,omitempty"`
  2260  	// RowNumber: The row number where the error was detected.
  2261  	RowNumber int64 `json:"rowNumber,omitempty"`
  2262  	// VmName: The name of the VM in the row.
  2263  	VmName string `json:"vmName,omitempty"`
  2264  	// VmUuid: The VM UUID.
  2265  	VmUuid string `json:"vmUuid,omitempty"`
  2266  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  2267  	// include in API requests. By default, fields with empty or default values are
  2268  	// omitted from API requests. See
  2269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2270  	// details.
  2271  	ForceSendFields []string `json:"-"`
  2272  	// NullFields is a list of field names (e.g. "Errors") to include in API
  2273  	// requests with the JSON null value. By default, fields with empty values are
  2274  	// omitted from API requests. See
  2275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2276  	NullFields []string `json:"-"`
  2277  }
  2278  
  2279  func (s *ImportRowError) MarshalJSON() ([]byte, error) {
  2280  	type NoMethod ImportRowError
  2281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2282  }
  2283  
  2284  // Insight: An insight about an asset.
  2285  type Insight struct {
  2286  	// GenericInsight: Output only. A generic insight about an asset
  2287  	GenericInsight *GenericInsight `json:"genericInsight,omitempty"`
  2288  	// MigrationInsight: Output only. An insight about potential migrations for an
  2289  	// asset.
  2290  	MigrationInsight *MigrationInsight `json:"migrationInsight,omitempty"`
  2291  	// ForceSendFields is a list of field names (e.g. "GenericInsight") to
  2292  	// unconditionally include in API requests. By default, fields with empty or
  2293  	// default values are omitted from API requests. See
  2294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2295  	// details.
  2296  	ForceSendFields []string `json:"-"`
  2297  	// NullFields is a list of field names (e.g. "GenericInsight") to include in
  2298  	// API requests with the JSON null value. By default, fields with empty values
  2299  	// are omitted from API requests. See
  2300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2301  	NullFields []string `json:"-"`
  2302  }
  2303  
  2304  func (s *Insight) MarshalJSON() ([]byte, error) {
  2305  	type NoMethod Insight
  2306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2307  }
  2308  
  2309  // InsightList: Message containing insights list.
  2310  type InsightList struct {
  2311  	// Insights: Output only. Insights of the list.
  2312  	Insights []*Insight `json:"insights,omitempty"`
  2313  	// UpdateTime: Output only. Update timestamp.
  2314  	UpdateTime string `json:"updateTime,omitempty"`
  2315  	// ForceSendFields is a list of field names (e.g. "Insights") to
  2316  	// unconditionally include in API requests. By default, fields with empty or
  2317  	// default values are omitted from API requests. See
  2318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2319  	// details.
  2320  	ForceSendFields []string `json:"-"`
  2321  	// NullFields is a list of field names (e.g. "Insights") to include in API
  2322  	// requests with the JSON null value. By default, fields with empty values are
  2323  	// omitted from API requests. See
  2324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2325  	NullFields []string `json:"-"`
  2326  }
  2327  
  2328  func (s *InsightList) MarshalJSON() ([]byte, error) {
  2329  	type NoMethod InsightList
  2330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2331  }
  2332  
  2333  // ListAssetsResponse: Response message for listing assets.
  2334  type ListAssetsResponse struct {
  2335  	// Assets: A list of assets.
  2336  	Assets []*Asset `json:"assets,omitempty"`
  2337  	// NextPageToken: A token identifying a page of results the server should
  2338  	// return.
  2339  	NextPageToken string `json:"nextPageToken,omitempty"`
  2340  	// Unreachable: Locations that could not be reached.
  2341  	Unreachable []string `json:"unreachable,omitempty"`
  2342  
  2343  	// ServerResponse contains the HTTP response code and headers from the server.
  2344  	googleapi.ServerResponse `json:"-"`
  2345  	// ForceSendFields is a list of field names (e.g. "Assets") to unconditionally
  2346  	// include in API requests. By default, fields with empty or default values are
  2347  	// omitted from API requests. See
  2348  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2349  	// details.
  2350  	ForceSendFields []string `json:"-"`
  2351  	// NullFields is a list of field names (e.g. "Assets") to include in API
  2352  	// requests with the JSON null value. By default, fields with empty values are
  2353  	// omitted from API requests. See
  2354  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2355  	NullFields []string `json:"-"`
  2356  }
  2357  
  2358  func (s *ListAssetsResponse) MarshalJSON() ([]byte, error) {
  2359  	type NoMethod ListAssetsResponse
  2360  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2361  }
  2362  
  2363  // ListDiscoveryClientsResponse: Response message for listing discovery
  2364  // clients.
  2365  type ListDiscoveryClientsResponse struct {
  2366  	// DiscoveryClients: List of discovery clients.
  2367  	DiscoveryClients []*DiscoveryClient `json:"discoveryClients,omitempty"`
  2368  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2369  	// page. If this field is omitted, there are no subsequent pages.
  2370  	NextPageToken string `json:"nextPageToken,omitempty"`
  2371  	// Unreachable: Locations that could not be reached.
  2372  	Unreachable []string `json:"unreachable,omitempty"`
  2373  
  2374  	// ServerResponse contains the HTTP response code and headers from the server.
  2375  	googleapi.ServerResponse `json:"-"`
  2376  	// ForceSendFields is a list of field names (e.g. "DiscoveryClients") to
  2377  	// unconditionally include in API requests. By default, fields with empty or
  2378  	// default values are omitted from API requests. See
  2379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2380  	// details.
  2381  	ForceSendFields []string `json:"-"`
  2382  	// NullFields is a list of field names (e.g. "DiscoveryClients") to include in
  2383  	// API requests with the JSON null value. By default, fields with empty values
  2384  	// are omitted from API requests. See
  2385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2386  	NullFields []string `json:"-"`
  2387  }
  2388  
  2389  func (s *ListDiscoveryClientsResponse) MarshalJSON() ([]byte, error) {
  2390  	type NoMethod ListDiscoveryClientsResponse
  2391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2392  }
  2393  
  2394  // ListErrorFramesResponse: A response for listing error frames.
  2395  type ListErrorFramesResponse struct {
  2396  	// ErrorFrames: The list of error frames.
  2397  	ErrorFrames []*ErrorFrame `json:"errorFrames,omitempty"`
  2398  	// NextPageToken: A token identifying a page of results the server should
  2399  	// return.
  2400  	NextPageToken string `json:"nextPageToken,omitempty"`
  2401  	// Unreachable: Locations that could not be reached.
  2402  	Unreachable []string `json:"unreachable,omitempty"`
  2403  
  2404  	// ServerResponse contains the HTTP response code and headers from the server.
  2405  	googleapi.ServerResponse `json:"-"`
  2406  	// ForceSendFields is a list of field names (e.g. "ErrorFrames") to
  2407  	// unconditionally include in API requests. By default, fields with empty or
  2408  	// default values are omitted from API requests. See
  2409  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2410  	// details.
  2411  	ForceSendFields []string `json:"-"`
  2412  	// NullFields is a list of field names (e.g. "ErrorFrames") to include in API
  2413  	// requests with the JSON null value. By default, fields with empty values are
  2414  	// omitted from API requests. See
  2415  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2416  	NullFields []string `json:"-"`
  2417  }
  2418  
  2419  func (s *ListErrorFramesResponse) MarshalJSON() ([]byte, error) {
  2420  	type NoMethod ListErrorFramesResponse
  2421  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2422  }
  2423  
  2424  // ListGroupsResponse: A response for listing groups.
  2425  type ListGroupsResponse struct {
  2426  	// Groups: The list of Group
  2427  	Groups []*Group `json:"groups,omitempty"`
  2428  	// NextPageToken: A token identifying a page of results the server should
  2429  	// return.
  2430  	NextPageToken string `json:"nextPageToken,omitempty"`
  2431  	// Unreachable: Locations that could not be reached.
  2432  	Unreachable []string `json:"unreachable,omitempty"`
  2433  
  2434  	// ServerResponse contains the HTTP response code and headers from the server.
  2435  	googleapi.ServerResponse `json:"-"`
  2436  	// ForceSendFields is a list of field names (e.g. "Groups") to unconditionally
  2437  	// include in API requests. By default, fields with empty or default values are
  2438  	// omitted from API requests. See
  2439  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2440  	// details.
  2441  	ForceSendFields []string `json:"-"`
  2442  	// NullFields is a list of field names (e.g. "Groups") to include in API
  2443  	// requests with the JSON null value. By default, fields with empty values are
  2444  	// omitted from API requests. See
  2445  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2446  	NullFields []string `json:"-"`
  2447  }
  2448  
  2449  func (s *ListGroupsResponse) MarshalJSON() ([]byte, error) {
  2450  	type NoMethod ListGroupsResponse
  2451  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2452  }
  2453  
  2454  // ListImportDataFilesResponse: Response for listing payload files of an import
  2455  // job.
  2456  type ListImportDataFilesResponse struct {
  2457  	// ImportDataFiles: The list of import data files.
  2458  	ImportDataFiles []*ImportDataFile `json:"importDataFiles,omitempty"`
  2459  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  2460  	// page. If this field is omitted, there are no subsequent pages.
  2461  	NextPageToken string `json:"nextPageToken,omitempty"`
  2462  	// Unreachable: Locations that could not be reached.
  2463  	Unreachable []string `json:"unreachable,omitempty"`
  2464  
  2465  	// ServerResponse contains the HTTP response code and headers from the server.
  2466  	googleapi.ServerResponse `json:"-"`
  2467  	// ForceSendFields is a list of field names (e.g. "ImportDataFiles") to
  2468  	// unconditionally include in API requests. By default, fields with empty or
  2469  	// default values are omitted from API requests. See
  2470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2471  	// details.
  2472  	ForceSendFields []string `json:"-"`
  2473  	// NullFields is a list of field names (e.g. "ImportDataFiles") to include in
  2474  	// API requests with the JSON null value. By default, fields with empty values
  2475  	// are omitted from API requests. See
  2476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2477  	NullFields []string `json:"-"`
  2478  }
  2479  
  2480  func (s *ListImportDataFilesResponse) MarshalJSON() ([]byte, error) {
  2481  	type NoMethod ListImportDataFilesResponse
  2482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2483  }
  2484  
  2485  // ListImportJobsResponse: A response for listing import jobs.
  2486  type ListImportJobsResponse struct {
  2487  	// ImportJobs: The list of import jobs.
  2488  	ImportJobs []*ImportJob `json:"importJobs,omitempty"`
  2489  	// NextPageToken: A token identifying a page of results the server should
  2490  	// return.
  2491  	NextPageToken string `json:"nextPageToken,omitempty"`
  2492  	// Unreachable: Locations that could not be reached.
  2493  	Unreachable []string `json:"unreachable,omitempty"`
  2494  
  2495  	// ServerResponse contains the HTTP response code and headers from the server.
  2496  	googleapi.ServerResponse `json:"-"`
  2497  	// ForceSendFields is a list of field names (e.g. "ImportJobs") to
  2498  	// unconditionally include in API requests. By default, fields with empty or
  2499  	// default values are omitted from API requests. See
  2500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2501  	// details.
  2502  	ForceSendFields []string `json:"-"`
  2503  	// NullFields is a list of field names (e.g. "ImportJobs") to include in API
  2504  	// requests with the JSON null value. By default, fields with empty values are
  2505  	// omitted from API requests. See
  2506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2507  	NullFields []string `json:"-"`
  2508  }
  2509  
  2510  func (s *ListImportJobsResponse) MarshalJSON() ([]byte, error) {
  2511  	type NoMethod ListImportJobsResponse
  2512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2513  }
  2514  
  2515  // ListLocationsResponse: The response message for Locations.ListLocations.
  2516  type ListLocationsResponse struct {
  2517  	// Locations: A list of locations that matches the specified filter in the
  2518  	// request.
  2519  	Locations []*Location `json:"locations,omitempty"`
  2520  	// NextPageToken: The standard List next-page token.
  2521  	NextPageToken string `json:"nextPageToken,omitempty"`
  2522  
  2523  	// ServerResponse contains the HTTP response code and headers from the server.
  2524  	googleapi.ServerResponse `json:"-"`
  2525  	// ForceSendFields is a list of field names (e.g. "Locations") to
  2526  	// unconditionally include in API requests. By default, fields with empty or
  2527  	// default values are omitted from API requests. See
  2528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2529  	// details.
  2530  	ForceSendFields []string `json:"-"`
  2531  	// NullFields is a list of field names (e.g. "Locations") to include in API
  2532  	// requests with the JSON null value. By default, fields with empty values are
  2533  	// omitted from API requests. See
  2534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2535  	NullFields []string `json:"-"`
  2536  }
  2537  
  2538  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  2539  	type NoMethod ListLocationsResponse
  2540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2541  }
  2542  
  2543  // ListOperationsResponse: The response message for Operations.ListOperations.
  2544  type ListOperationsResponse struct {
  2545  	// NextPageToken: The standard List next-page token.
  2546  	NextPageToken string `json:"nextPageToken,omitempty"`
  2547  	// Operations: A list of operations that matches the specified filter in the
  2548  	// request.
  2549  	Operations []*Operation `json:"operations,omitempty"`
  2550  
  2551  	// ServerResponse contains the HTTP response code and headers from the server.
  2552  	googleapi.ServerResponse `json:"-"`
  2553  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2554  	// unconditionally include in API requests. By default, fields with empty or
  2555  	// default values are omitted from API requests. See
  2556  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2557  	// details.
  2558  	ForceSendFields []string `json:"-"`
  2559  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2560  	// requests with the JSON null value. By default, fields with empty values are
  2561  	// omitted from API requests. See
  2562  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2563  	NullFields []string `json:"-"`
  2564  }
  2565  
  2566  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  2567  	type NoMethod ListOperationsResponse
  2568  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2569  }
  2570  
  2571  // ListPreferenceSetsResponse: Response message for listing preference sets.
  2572  type ListPreferenceSetsResponse struct {
  2573  	// NextPageToken: A token identifying a page of results the server should
  2574  	// return.
  2575  	NextPageToken string `json:"nextPageToken,omitempty"`
  2576  	// PreferenceSets: The list of PreferenceSets
  2577  	PreferenceSets []*PreferenceSet `json:"preferenceSets,omitempty"`
  2578  	// Unreachable: Locations that could not be reached.
  2579  	Unreachable []string `json:"unreachable,omitempty"`
  2580  
  2581  	// ServerResponse contains the HTTP response code and headers from the server.
  2582  	googleapi.ServerResponse `json:"-"`
  2583  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2584  	// unconditionally include in API requests. By default, fields with empty or
  2585  	// default values are omitted from API requests. See
  2586  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2587  	// details.
  2588  	ForceSendFields []string `json:"-"`
  2589  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2590  	// requests with the JSON null value. By default, fields with empty values are
  2591  	// omitted from API requests. See
  2592  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2593  	NullFields []string `json:"-"`
  2594  }
  2595  
  2596  func (s *ListPreferenceSetsResponse) MarshalJSON() ([]byte, error) {
  2597  	type NoMethod ListPreferenceSetsResponse
  2598  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2599  }
  2600  
  2601  // ListReportConfigsResponse: Response message for listing report configs.
  2602  type ListReportConfigsResponse struct {
  2603  	// NextPageToken: A token identifying a page of results the server should
  2604  	// return.
  2605  	NextPageToken string `json:"nextPageToken,omitempty"`
  2606  	// ReportConfigs: A list of report configs.
  2607  	ReportConfigs []*ReportConfig `json:"reportConfigs,omitempty"`
  2608  	// Unreachable: Locations that could not be reached.
  2609  	Unreachable []string `json:"unreachable,omitempty"`
  2610  
  2611  	// ServerResponse contains the HTTP response code and headers from the server.
  2612  	googleapi.ServerResponse `json:"-"`
  2613  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2614  	// unconditionally include in API requests. By default, fields with empty or
  2615  	// default values are omitted from API requests. See
  2616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2617  	// details.
  2618  	ForceSendFields []string `json:"-"`
  2619  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2620  	// requests with the JSON null value. By default, fields with empty values are
  2621  	// omitted from API requests. See
  2622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2623  	NullFields []string `json:"-"`
  2624  }
  2625  
  2626  func (s *ListReportConfigsResponse) MarshalJSON() ([]byte, error) {
  2627  	type NoMethod ListReportConfigsResponse
  2628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2629  }
  2630  
  2631  // ListReportsResponse: Response message for listing Reports.
  2632  type ListReportsResponse struct {
  2633  	// NextPageToken: A token identifying a page of results the server should
  2634  	// return.
  2635  	NextPageToken string `json:"nextPageToken,omitempty"`
  2636  	// Reports: The list of Reports.
  2637  	Reports []*Report `json:"reports,omitempty"`
  2638  	// Unreachable: Locations that could not be reached.
  2639  	Unreachable []string `json:"unreachable,omitempty"`
  2640  
  2641  	// ServerResponse contains the HTTP response code and headers from the server.
  2642  	googleapi.ServerResponse `json:"-"`
  2643  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2644  	// unconditionally include in API requests. By default, fields with empty or
  2645  	// default values are omitted from API requests. See
  2646  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2647  	// details.
  2648  	ForceSendFields []string `json:"-"`
  2649  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2650  	// requests with the JSON null value. By default, fields with empty values are
  2651  	// omitted from API requests. See
  2652  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2653  	NullFields []string `json:"-"`
  2654  }
  2655  
  2656  func (s *ListReportsResponse) MarshalJSON() ([]byte, error) {
  2657  	type NoMethod ListReportsResponse
  2658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2659  }
  2660  
  2661  // ListSourcesResponse: Response message for listing sources.
  2662  type ListSourcesResponse struct {
  2663  	// NextPageToken: A token identifying a page of results the server should
  2664  	// return.
  2665  	NextPageToken string `json:"nextPageToken,omitempty"`
  2666  	// Sources: The list of sources.
  2667  	Sources []*Source `json:"sources,omitempty"`
  2668  	// Unreachable: Locations that could not be reached.
  2669  	Unreachable []string `json:"unreachable,omitempty"`
  2670  
  2671  	// ServerResponse contains the HTTP response code and headers from the server.
  2672  	googleapi.ServerResponse `json:"-"`
  2673  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2674  	// unconditionally include in API requests. By default, fields with empty or
  2675  	// default values are omitted from API requests. See
  2676  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2677  	// details.
  2678  	ForceSendFields []string `json:"-"`
  2679  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2680  	// requests with the JSON null value. By default, fields with empty values are
  2681  	// omitted from API requests. See
  2682  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2683  	NullFields []string `json:"-"`
  2684  }
  2685  
  2686  func (s *ListSourcesResponse) MarshalJSON() ([]byte, error) {
  2687  	type NoMethod ListSourcesResponse
  2688  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2689  }
  2690  
  2691  // Location: A resource that represents a Google Cloud location.
  2692  type Location struct {
  2693  	// DisplayName: The friendly name for this location, typically a nearby city
  2694  	// name. For example, "Tokyo".
  2695  	DisplayName string `json:"displayName,omitempty"`
  2696  	// Labels: Cross-service attributes for the location. For example
  2697  	// {"cloud.googleapis.com/region": "us-east1"}
  2698  	Labels map[string]string `json:"labels,omitempty"`
  2699  	// LocationId: The canonical id for this location. For example: "us-east1".
  2700  	LocationId string `json:"locationId,omitempty"`
  2701  	// Metadata: Service-specific metadata. For example the available capacity at
  2702  	// the given location.
  2703  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  2704  	// Name: Resource name for the location, which may vary between
  2705  	// implementations. For example:
  2706  	// "projects/example-project/locations/us-east1"
  2707  	Name string `json:"name,omitempty"`
  2708  
  2709  	// ServerResponse contains the HTTP response code and headers from the server.
  2710  	googleapi.ServerResponse `json:"-"`
  2711  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  2712  	// unconditionally include in API requests. By default, fields with empty or
  2713  	// default values are omitted from API requests. See
  2714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2715  	// details.
  2716  	ForceSendFields []string `json:"-"`
  2717  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  2718  	// requests with the JSON null value. By default, fields with empty values are
  2719  	// omitted from API requests. See
  2720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2721  	NullFields []string `json:"-"`
  2722  }
  2723  
  2724  func (s *Location) MarshalJSON() ([]byte, error) {
  2725  	type NoMethod Location
  2726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2727  }
  2728  
  2729  // MachineArchitectureDetails: Details of the machine architecture.
  2730  type MachineArchitectureDetails struct {
  2731  	// Bios: BIOS Details.
  2732  	Bios *BiosDetails `json:"bios,omitempty"`
  2733  	// CpuArchitecture: CPU architecture, e.g., "x64-based PC", "x86_64", "i686"
  2734  	// etc.
  2735  	CpuArchitecture string `json:"cpuArchitecture,omitempty"`
  2736  	// CpuName: CPU name, e.g., "Intel Xeon E5-2690", "AMD EPYC 7571" etc.
  2737  	CpuName string `json:"cpuName,omitempty"`
  2738  	// CpuSocketCount: Number of processor sockets allocated to the machine.
  2739  	CpuSocketCount int64 `json:"cpuSocketCount,omitempty"`
  2740  	// CpuThreadCount: Number of CPU threads allocated to the machine.
  2741  	CpuThreadCount int64 `json:"cpuThreadCount,omitempty"`
  2742  	// FirmwareType: Firmware type.
  2743  	//
  2744  	// Possible values:
  2745  	//   "FIRMWARE_TYPE_UNSPECIFIED" - Unspecified or unknown.
  2746  	//   "BIOS" - BIOS firmware.
  2747  	//   "EFI" - EFI firmware.
  2748  	FirmwareType string `json:"firmwareType,omitempty"`
  2749  	// Hyperthreading: CPU hyper-threading support.
  2750  	//
  2751  	// Possible values:
  2752  	//   "CPU_HYPER_THREADING_UNSPECIFIED" - Unspecified or unknown.
  2753  	//   "DISABLED" - Hyper-threading is disabled.
  2754  	//   "ENABLED" - Hyper-threading is enabled.
  2755  	Hyperthreading string `json:"hyperthreading,omitempty"`
  2756  	// Vendor: Hardware vendor.
  2757  	Vendor string `json:"vendor,omitempty"`
  2758  	// ForceSendFields is a list of field names (e.g. "Bios") to unconditionally
  2759  	// include in API requests. By default, fields with empty or default values are
  2760  	// omitted from API requests. See
  2761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2762  	// details.
  2763  	ForceSendFields []string `json:"-"`
  2764  	// NullFields is a list of field names (e.g. "Bios") to include in API requests
  2765  	// with the JSON null value. By default, fields with empty values are omitted
  2766  	// from API requests. See
  2767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2768  	NullFields []string `json:"-"`
  2769  }
  2770  
  2771  func (s *MachineArchitectureDetails) MarshalJSON() ([]byte, error) {
  2772  	type NoMethod MachineArchitectureDetails
  2773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2774  }
  2775  
  2776  // MachineDetails: Details of a machine.
  2777  type MachineDetails struct {
  2778  	// Architecture: Architecture details (vendor, CPU architecture).
  2779  	Architecture *MachineArchitectureDetails `json:"architecture,omitempty"`
  2780  	// CoreCount: Number of CPU cores in the machine. Must be non-negative.
  2781  	CoreCount int64 `json:"coreCount,omitempty"`
  2782  	// CreateTime: Machine creation time.
  2783  	CreateTime string `json:"createTime,omitempty"`
  2784  	// Disks: Disk details.
  2785  	Disks *MachineDiskDetails `json:"disks,omitempty"`
  2786  	// GuestOs: Guest OS information.
  2787  	GuestOs *GuestOsDetails `json:"guestOs,omitempty"`
  2788  	// MachineName: Machine name.
  2789  	MachineName string `json:"machineName,omitempty"`
  2790  	// MemoryMb: The amount of memory in the machine. Must be non-negative.
  2791  	MemoryMb int64 `json:"memoryMb,omitempty"`
  2792  	// Network: Network details.
  2793  	Network *MachineNetworkDetails `json:"network,omitempty"`
  2794  	// Platform: Platform specific information.
  2795  	Platform *PlatformDetails `json:"platform,omitempty"`
  2796  	// PowerState: Power state of the machine.
  2797  	//
  2798  	// Possible values:
  2799  	//   "POWER_STATE_UNSPECIFIED" - Power state is unknown.
  2800  	//   "PENDING" - The machine is preparing to enter the ACTIVE state. An
  2801  	// instance may enter the PENDING state when it launches for the first time, or
  2802  	// when it is started after being in the SUSPENDED state.
  2803  	//   "ACTIVE" - The machine is active.
  2804  	//   "SUSPENDING" - The machine is being turned off.
  2805  	//   "SUSPENDED" - The machine is off.
  2806  	//   "DELETING" - The machine is being deleted from the hosting platform.
  2807  	//   "DELETED" - The machine is deleted from the hosting platform.
  2808  	PowerState string `json:"powerState,omitempty"`
  2809  	// Uuid: Machine unique identifier.
  2810  	Uuid string `json:"uuid,omitempty"`
  2811  	// ForceSendFields is a list of field names (e.g. "Architecture") to
  2812  	// unconditionally include in API requests. By default, fields with empty or
  2813  	// default values are omitted from API requests. See
  2814  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2815  	// details.
  2816  	ForceSendFields []string `json:"-"`
  2817  	// NullFields is a list of field names (e.g. "Architecture") to include in API
  2818  	// requests with the JSON null value. By default, fields with empty values are
  2819  	// omitted from API requests. See
  2820  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2821  	NullFields []string `json:"-"`
  2822  }
  2823  
  2824  func (s *MachineDetails) MarshalJSON() ([]byte, error) {
  2825  	type NoMethod MachineDetails
  2826  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2827  }
  2828  
  2829  // MachineDiskDetails: Details of machine disks.
  2830  type MachineDiskDetails struct {
  2831  	// Disks: List of disks.
  2832  	Disks *DiskEntryList `json:"disks,omitempty"`
  2833  	// TotalCapacityBytes: Disk total Capacity.
  2834  	TotalCapacityBytes int64 `json:"totalCapacityBytes,omitempty,string"`
  2835  	// TotalFreeBytes: Total disk free space.
  2836  	TotalFreeBytes int64 `json:"totalFreeBytes,omitempty,string"`
  2837  	// ForceSendFields is a list of field names (e.g. "Disks") to unconditionally
  2838  	// include in API requests. By default, fields with empty or default values are
  2839  	// omitted from API requests. See
  2840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2841  	// details.
  2842  	ForceSendFields []string `json:"-"`
  2843  	// NullFields is a list of field names (e.g. "Disks") to include in API
  2844  	// requests with the JSON null value. By default, fields with empty values are
  2845  	// omitted from API requests. See
  2846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2847  	NullFields []string `json:"-"`
  2848  }
  2849  
  2850  func (s *MachineDiskDetails) MarshalJSON() ([]byte, error) {
  2851  	type NoMethod MachineDiskDetails
  2852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2853  }
  2854  
  2855  // MachineNetworkDetails: Details of network adapters and settings.
  2856  type MachineNetworkDetails struct {
  2857  	// Adapters: List of network adapters.
  2858  	Adapters *NetworkAdapterList `json:"adapters,omitempty"`
  2859  	// PrimaryIpAddress: The primary IP address of the machine.
  2860  	PrimaryIpAddress string `json:"primaryIpAddress,omitempty"`
  2861  	// PrimaryMacAddress: MAC address of the machine. This property is used to
  2862  	// uniqly identify the machine.
  2863  	PrimaryMacAddress string `json:"primaryMacAddress,omitempty"`
  2864  	// PublicIpAddress: The public IP address of the machine.
  2865  	PublicIpAddress string `json:"publicIpAddress,omitempty"`
  2866  	// ForceSendFields is a list of field names (e.g. "Adapters") to
  2867  	// unconditionally include in API requests. By default, fields with empty or
  2868  	// default values are omitted from API requests. See
  2869  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2870  	// details.
  2871  	ForceSendFields []string `json:"-"`
  2872  	// NullFields is a list of field names (e.g. "Adapters") to include in API
  2873  	// requests with the JSON null value. By default, fields with empty values are
  2874  	// omitted from API requests. See
  2875  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2876  	NullFields []string `json:"-"`
  2877  }
  2878  
  2879  func (s *MachineNetworkDetails) MarshalJSON() ([]byte, error) {
  2880  	type NoMethod MachineNetworkDetails
  2881  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2882  }
  2883  
  2884  // MachinePreferences: The type of machines to consider when calculating
  2885  // virtual machine migration insights and recommendations. Not all machine
  2886  // types are available in all zones and regions.
  2887  type MachinePreferences struct {
  2888  	// AllowedMachineSeries: Compute Engine machine series to consider for insights
  2889  	// and recommendations. If empty, no restriction is applied on the machine
  2890  	// series.
  2891  	AllowedMachineSeries []*MachineSeries `json:"allowedMachineSeries,omitempty"`
  2892  	// ForceSendFields is a list of field names (e.g. "AllowedMachineSeries") to
  2893  	// unconditionally include in API requests. By default, fields with empty or
  2894  	// default values are omitted from API requests. See
  2895  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2896  	// details.
  2897  	ForceSendFields []string `json:"-"`
  2898  	// NullFields is a list of field names (e.g. "AllowedMachineSeries") to include
  2899  	// in API requests with the JSON null value. By default, fields with empty
  2900  	// values are omitted from API requests. See
  2901  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2902  	NullFields []string `json:"-"`
  2903  }
  2904  
  2905  func (s *MachinePreferences) MarshalJSON() ([]byte, error) {
  2906  	type NoMethod MachinePreferences
  2907  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2908  }
  2909  
  2910  // MachineSeries: A machine series, for a target product (e.g. Compute Engine,
  2911  // Google Cloud VMware Engine).
  2912  type MachineSeries struct {
  2913  	// Code: Code to identify a machine series. Consult this for more details on
  2914  	// the available series for Compute Engine:
  2915  	// https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison
  2916  	// Consult this for more details on the available series for Google Cloud
  2917  	// VMware Engine: https://cloud.google.com/vmware-engine/pricing
  2918  	Code string `json:"code,omitempty"`
  2919  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2920  	// include in API requests. By default, fields with empty or default values are
  2921  	// omitted from API requests. See
  2922  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2923  	// details.
  2924  	ForceSendFields []string `json:"-"`
  2925  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2926  	// with the JSON null value. By default, fields with empty values are omitted
  2927  	// from API requests. See
  2928  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2929  	NullFields []string `json:"-"`
  2930  }
  2931  
  2932  func (s *MachineSeries) MarshalJSON() ([]byte, error) {
  2933  	type NoMethod MachineSeries
  2934  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2935  }
  2936  
  2937  // MemoryUsageSample: Memory usage sample.
  2938  type MemoryUsageSample struct {
  2939  	// UtilizedPercentage: Percentage of system memory utilized. Must be in the
  2940  	// interval [0, 100].
  2941  	UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"`
  2942  	// ForceSendFields is a list of field names (e.g. "UtilizedPercentage") to
  2943  	// unconditionally include in API requests. By default, fields with empty or
  2944  	// default values are omitted from API requests. See
  2945  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2946  	// details.
  2947  	ForceSendFields []string `json:"-"`
  2948  	// NullFields is a list of field names (e.g. "UtilizedPercentage") to include
  2949  	// in API requests with the JSON null value. By default, fields with empty
  2950  	// values are omitted from API requests. See
  2951  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2952  	NullFields []string `json:"-"`
  2953  }
  2954  
  2955  func (s *MemoryUsageSample) MarshalJSON() ([]byte, error) {
  2956  	type NoMethod MemoryUsageSample
  2957  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2958  }
  2959  
  2960  func (s *MemoryUsageSample) UnmarshalJSON(data []byte) error {
  2961  	type NoMethod MemoryUsageSample
  2962  	var s1 struct {
  2963  		UtilizedPercentage gensupport.JSONFloat64 `json:"utilizedPercentage"`
  2964  		*NoMethod
  2965  	}
  2966  	s1.NoMethod = (*NoMethod)(s)
  2967  	if err := json.Unmarshal(data, &s1); err != nil {
  2968  		return err
  2969  	}
  2970  	s.UtilizedPercentage = float64(s1.UtilizedPercentage)
  2971  	return nil
  2972  }
  2973  
  2974  // MigrationInsight: An insight about potential migrations for an asset.
  2975  type MigrationInsight struct {
  2976  	// ComputeEngineTarget: Output only. A Google Compute Engine target.
  2977  	ComputeEngineTarget *ComputeEngineMigrationTarget `json:"computeEngineTarget,omitempty"`
  2978  	// Fit: Output only. Description of how well the asset this insight is
  2979  	// associated with fits the proposed migration.
  2980  	Fit *FitDescriptor `json:"fit,omitempty"`
  2981  	// ForceSendFields is a list of field names (e.g. "ComputeEngineTarget") to
  2982  	// unconditionally include in API requests. By default, fields with empty or
  2983  	// default values are omitted from API requests. See
  2984  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2985  	// details.
  2986  	ForceSendFields []string `json:"-"`
  2987  	// NullFields is a list of field names (e.g. "ComputeEngineTarget") to include
  2988  	// in API requests with the JSON null value. By default, fields with empty
  2989  	// values are omitted from API requests. See
  2990  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2991  	NullFields []string `json:"-"`
  2992  }
  2993  
  2994  func (s *MigrationInsight) MarshalJSON() ([]byte, error) {
  2995  	type NoMethod MigrationInsight
  2996  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2997  }
  2998  
  2999  // Money: Represents an amount of money with its currency type.
  3000  type Money struct {
  3001  	// CurrencyCode: The three-letter currency code defined in ISO 4217.
  3002  	CurrencyCode string `json:"currencyCode,omitempty"`
  3003  	// Nanos: Number of nano (10^-9) units of the amount. The value must be between
  3004  	// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
  3005  	// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,
  3006  	// or negative. If `units` is negative, `nanos` must be negative or zero. For
  3007  	// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
  3008  	Nanos int64 `json:"nanos,omitempty"`
  3009  	// Units: The whole units of the amount. For example if `currencyCode` is
  3010  	// "USD", then 1 unit is one US dollar.
  3011  	Units int64 `json:"units,omitempty,string"`
  3012  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
  3013  	// unconditionally include in API requests. By default, fields with empty or
  3014  	// default values are omitted from API requests. See
  3015  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3016  	// details.
  3017  	ForceSendFields []string `json:"-"`
  3018  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
  3019  	// requests with the JSON null value. By default, fields with empty values are
  3020  	// omitted from API requests. See
  3021  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3022  	NullFields []string `json:"-"`
  3023  }
  3024  
  3025  func (s *Money) MarshalJSON() ([]byte, error) {
  3026  	type NoMethod Money
  3027  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3028  }
  3029  
  3030  // NetworkAdapterDetails: Details of network adapter.
  3031  type NetworkAdapterDetails struct {
  3032  	// AdapterType: Network adapter type (e.g. VMXNET3).
  3033  	AdapterType string `json:"adapterType,omitempty"`
  3034  	// Addresses: NetworkAddressList
  3035  	Addresses *NetworkAddressList `json:"addresses,omitempty"`
  3036  	// MacAddress: MAC address.
  3037  	MacAddress string `json:"macAddress,omitempty"`
  3038  	// ForceSendFields is a list of field names (e.g. "AdapterType") to
  3039  	// unconditionally include in API requests. By default, fields with empty or
  3040  	// default values are omitted from API requests. See
  3041  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3042  	// details.
  3043  	ForceSendFields []string `json:"-"`
  3044  	// NullFields is a list of field names (e.g. "AdapterType") to include in API
  3045  	// requests with the JSON null value. By default, fields with empty values are
  3046  	// omitted from API requests. See
  3047  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3048  	NullFields []string `json:"-"`
  3049  }
  3050  
  3051  func (s *NetworkAdapterDetails) MarshalJSON() ([]byte, error) {
  3052  	type NoMethod NetworkAdapterDetails
  3053  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3054  }
  3055  
  3056  // NetworkAdapterList: List of network adapters.
  3057  type NetworkAdapterList struct {
  3058  	// Entries: Network adapter entries.
  3059  	Entries []*NetworkAdapterDetails `json:"entries,omitempty"`
  3060  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3061  	// include in API requests. By default, fields with empty or default values are
  3062  	// omitted from API requests. See
  3063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3064  	// details.
  3065  	ForceSendFields []string `json:"-"`
  3066  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3067  	// requests with the JSON null value. By default, fields with empty values are
  3068  	// omitted from API requests. See
  3069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3070  	NullFields []string `json:"-"`
  3071  }
  3072  
  3073  func (s *NetworkAdapterList) MarshalJSON() ([]byte, error) {
  3074  	type NoMethod NetworkAdapterList
  3075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3076  }
  3077  
  3078  // NetworkAddress: Details of network address.
  3079  type NetworkAddress struct {
  3080  	// Assignment: Whether DHCP is used to assign addresses.
  3081  	//
  3082  	// Possible values:
  3083  	//   "ADDRESS_ASSIGNMENT_UNSPECIFIED" - Unknown (default value).
  3084  	//   "ADDRESS_ASSIGNMENT_STATIC" - Staticly assigned IP.
  3085  	//   "ADDRESS_ASSIGNMENT_DHCP" - Dynamically assigned IP (DHCP).
  3086  	Assignment string `json:"assignment,omitempty"`
  3087  	// Bcast: Broadcast address.
  3088  	Bcast string `json:"bcast,omitempty"`
  3089  	// Fqdn: Fully qualified domain name.
  3090  	Fqdn string `json:"fqdn,omitempty"`
  3091  	// IpAddress: Assigned or configured IP Address.
  3092  	IpAddress string `json:"ipAddress,omitempty"`
  3093  	// SubnetMask: Subnet mask.
  3094  	SubnetMask string `json:"subnetMask,omitempty"`
  3095  	// ForceSendFields is a list of field names (e.g. "Assignment") to
  3096  	// unconditionally include in API requests. By default, fields with empty or
  3097  	// default values are omitted from API requests. See
  3098  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3099  	// details.
  3100  	ForceSendFields []string `json:"-"`
  3101  	// NullFields is a list of field names (e.g. "Assignment") to include in API
  3102  	// requests with the JSON null value. By default, fields with empty values are
  3103  	// omitted from API requests. See
  3104  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3105  	NullFields []string `json:"-"`
  3106  }
  3107  
  3108  func (s *NetworkAddress) MarshalJSON() ([]byte, error) {
  3109  	type NoMethod NetworkAddress
  3110  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3111  }
  3112  
  3113  // NetworkAddressList: List of allocated/assigned network addresses.
  3114  type NetworkAddressList struct {
  3115  	// Entries: Network address entries.
  3116  	Entries []*NetworkAddress `json:"entries,omitempty"`
  3117  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3118  	// include in API requests. By default, fields with empty or default values are
  3119  	// omitted from API requests. See
  3120  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3121  	// details.
  3122  	ForceSendFields []string `json:"-"`
  3123  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3124  	// requests with the JSON null value. By default, fields with empty values are
  3125  	// omitted from API requests. See
  3126  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3127  	NullFields []string `json:"-"`
  3128  }
  3129  
  3130  func (s *NetworkAddressList) MarshalJSON() ([]byte, error) {
  3131  	type NoMethod NetworkAddressList
  3132  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3133  }
  3134  
  3135  type NetworkConnection struct {
  3136  	// LocalIpAddress: Local IP address.
  3137  	LocalIpAddress string `json:"localIpAddress,omitempty"`
  3138  	// LocalPort: Local port.
  3139  	LocalPort int64 `json:"localPort,omitempty"`
  3140  	// Pid: Process ID.
  3141  	Pid int64 `json:"pid,omitempty,string"`
  3142  	// ProcessName: Process or service name.
  3143  	ProcessName string `json:"processName,omitempty"`
  3144  	// Protocol: Connection protocol (e.g. TCP/UDP).
  3145  	Protocol string `json:"protocol,omitempty"`
  3146  	// RemoteIpAddress: Remote IP address.
  3147  	RemoteIpAddress string `json:"remoteIpAddress,omitempty"`
  3148  	// RemotePort: Remote port.
  3149  	RemotePort int64 `json:"remotePort,omitempty"`
  3150  	// State: Network connection state.
  3151  	//
  3152  	// Possible values:
  3153  	//   "STATE_UNSPECIFIED" - Connection state is unknown or unspecified.
  3154  	//   "OPENING" - The connection is being opened.
  3155  	//   "OPEN" - The connection is open.
  3156  	//   "LISTEN" - Listening for incoming connections.
  3157  	//   "CLOSING" - The connection is being closed.
  3158  	//   "CLOSED" - The connection is closed.
  3159  	State string `json:"state,omitempty"`
  3160  	// ForceSendFields is a list of field names (e.g. "LocalIpAddress") to
  3161  	// unconditionally include in API requests. By default, fields with empty or
  3162  	// default values are omitted from API requests. See
  3163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3164  	// details.
  3165  	ForceSendFields []string `json:"-"`
  3166  	// NullFields is a list of field names (e.g. "LocalIpAddress") to include in
  3167  	// API requests with the JSON null value. By default, fields with empty values
  3168  	// are omitted from API requests. See
  3169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3170  	NullFields []string `json:"-"`
  3171  }
  3172  
  3173  func (s *NetworkConnection) MarshalJSON() ([]byte, error) {
  3174  	type NoMethod NetworkConnection
  3175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3176  }
  3177  
  3178  // NetworkConnectionList: Network connection list.
  3179  type NetworkConnectionList struct {
  3180  	// Entries: Network connection entries.
  3181  	Entries []*NetworkConnection `json:"entries,omitempty"`
  3182  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3183  	// include in API requests. By default, fields with empty or default values are
  3184  	// omitted from API requests. See
  3185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3186  	// details.
  3187  	ForceSendFields []string `json:"-"`
  3188  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3189  	// requests with the JSON null value. By default, fields with empty values are
  3190  	// omitted from API requests. See
  3191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3192  	NullFields []string `json:"-"`
  3193  }
  3194  
  3195  func (s *NetworkConnectionList) MarshalJSON() ([]byte, error) {
  3196  	type NoMethod NetworkConnectionList
  3197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3198  }
  3199  
  3200  // NetworkUsageSample: Network usage sample. Values are across all network
  3201  // interfaces.
  3202  type NetworkUsageSample struct {
  3203  	// AverageEgressBps: Average network egress in B/s sampled over a short window.
  3204  	// Must be non-negative.
  3205  	AverageEgressBps float64 `json:"averageEgressBps,omitempty"`
  3206  	// AverageIngressBps: Average network ingress in B/s sampled over a short
  3207  	// window. Must be non-negative.
  3208  	AverageIngressBps float64 `json:"averageIngressBps,omitempty"`
  3209  	// ForceSendFields is a list of field names (e.g. "AverageEgressBps") to
  3210  	// unconditionally include in API requests. By default, fields with empty or
  3211  	// default values are omitted from API requests. See
  3212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3213  	// details.
  3214  	ForceSendFields []string `json:"-"`
  3215  	// NullFields is a list of field names (e.g. "AverageEgressBps") to include in
  3216  	// API requests with the JSON null value. By default, fields with empty values
  3217  	// are omitted from API requests. See
  3218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3219  	NullFields []string `json:"-"`
  3220  }
  3221  
  3222  func (s *NetworkUsageSample) MarshalJSON() ([]byte, error) {
  3223  	type NoMethod NetworkUsageSample
  3224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3225  }
  3226  
  3227  func (s *NetworkUsageSample) UnmarshalJSON(data []byte) error {
  3228  	type NoMethod NetworkUsageSample
  3229  	var s1 struct {
  3230  		AverageEgressBps  gensupport.JSONFloat64 `json:"averageEgressBps"`
  3231  		AverageIngressBps gensupport.JSONFloat64 `json:"averageIngressBps"`
  3232  		*NoMethod
  3233  	}
  3234  	s1.NoMethod = (*NoMethod)(s)
  3235  	if err := json.Unmarshal(data, &s1); err != nil {
  3236  		return err
  3237  	}
  3238  	s.AverageEgressBps = float64(s1.AverageEgressBps)
  3239  	s.AverageIngressBps = float64(s1.AverageIngressBps)
  3240  	return nil
  3241  }
  3242  
  3243  // NfsExport: NFS export.
  3244  type NfsExport struct {
  3245  	// ExportDirectory: The directory being exported.
  3246  	ExportDirectory string `json:"exportDirectory,omitempty"`
  3247  	// Hosts: The hosts or networks to which the export is being shared.
  3248  	Hosts []string `json:"hosts,omitempty"`
  3249  	// ForceSendFields is a list of field names (e.g. "ExportDirectory") to
  3250  	// unconditionally include in API requests. By default, fields with empty or
  3251  	// default values are omitted from API requests. See
  3252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3253  	// details.
  3254  	ForceSendFields []string `json:"-"`
  3255  	// NullFields is a list of field names (e.g. "ExportDirectory") to include in
  3256  	// API requests with the JSON null value. By default, fields with empty values
  3257  	// are omitted from API requests. See
  3258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3259  	NullFields []string `json:"-"`
  3260  }
  3261  
  3262  func (s *NfsExport) MarshalJSON() ([]byte, error) {
  3263  	type NoMethod NfsExport
  3264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3265  }
  3266  
  3267  // NfsExportList: NFS exports.
  3268  type NfsExportList struct {
  3269  	// Entries: NFS export entries.
  3270  	Entries []*NfsExport `json:"entries,omitempty"`
  3271  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3272  	// include in API requests. By default, fields with empty or default values are
  3273  	// omitted from API requests. See
  3274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3275  	// details.
  3276  	ForceSendFields []string `json:"-"`
  3277  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3278  	// requests with the JSON null value. By default, fields with empty values are
  3279  	// omitted from API requests. See
  3280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3281  	NullFields []string `json:"-"`
  3282  }
  3283  
  3284  func (s *NfsExportList) MarshalJSON() ([]byte, error) {
  3285  	type NoMethod NfsExportList
  3286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3287  }
  3288  
  3289  // OpenFileDetails: Open file Information.
  3290  type OpenFileDetails struct {
  3291  	// Command: Opened file command.
  3292  	Command string `json:"command,omitempty"`
  3293  	// FilePath: Opened file file path.
  3294  	FilePath string `json:"filePath,omitempty"`
  3295  	// FileType: Opened file file type.
  3296  	FileType string `json:"fileType,omitempty"`
  3297  	// User: Opened file user.
  3298  	User string `json:"user,omitempty"`
  3299  	// ForceSendFields is a list of field names (e.g. "Command") to unconditionally
  3300  	// include in API requests. By default, fields with empty or default values are
  3301  	// omitted from API requests. See
  3302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3303  	// details.
  3304  	ForceSendFields []string `json:"-"`
  3305  	// NullFields is a list of field names (e.g. "Command") to include in API
  3306  	// requests with the JSON null value. By default, fields with empty values are
  3307  	// omitted from API requests. See
  3308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3309  	NullFields []string `json:"-"`
  3310  }
  3311  
  3312  func (s *OpenFileDetails) MarshalJSON() ([]byte, error) {
  3313  	type NoMethod OpenFileDetails
  3314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3315  }
  3316  
  3317  // OpenFileList: Open file list.
  3318  type OpenFileList struct {
  3319  	// Entries: Open file details entries.
  3320  	Entries []*OpenFileDetails `json:"entries,omitempty"`
  3321  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3322  	// include in API requests. By default, fields with empty or default values are
  3323  	// omitted from API requests. See
  3324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3325  	// details.
  3326  	ForceSendFields []string `json:"-"`
  3327  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3328  	// requests with the JSON null value. By default, fields with empty values are
  3329  	// omitted from API requests. See
  3330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3331  	NullFields []string `json:"-"`
  3332  }
  3333  
  3334  func (s *OpenFileList) MarshalJSON() ([]byte, error) {
  3335  	type NoMethod OpenFileList
  3336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3337  }
  3338  
  3339  // Operation: This resource represents a long-running operation that is the
  3340  // result of a network API call.
  3341  type Operation struct {
  3342  	// Done: If the value is `false`, it means the operation is still in progress.
  3343  	// If `true`, the operation is completed, and either `error` or `response` is
  3344  	// available.
  3345  	Done bool `json:"done,omitempty"`
  3346  	// Error: The error result of the operation in case of failure or cancellation.
  3347  	Error *Status `json:"error,omitempty"`
  3348  	// Metadata: Service-specific metadata associated with the operation. It
  3349  	// typically contains progress information and common metadata such as create
  3350  	// time. Some services might not provide such metadata. Any method that returns
  3351  	// a long-running operation should document the metadata type, if any.
  3352  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3353  	// Name: The server-assigned name, which is only unique within the same service
  3354  	// that originally returns it. If you use the default HTTP mapping, the `name`
  3355  	// should be a resource name ending with `operations/{unique_id}`.
  3356  	Name string `json:"name,omitempty"`
  3357  	// Response: The normal, successful response of the operation. If the original
  3358  	// method returns no data on success, such as `Delete`, the response is
  3359  	// `google.protobuf.Empty`. If the original method is standard
  3360  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  3361  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  3362  	// original method name. For example, if the original method name is
  3363  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  3364  	Response googleapi.RawMessage `json:"response,omitempty"`
  3365  
  3366  	// ServerResponse contains the HTTP response code and headers from the server.
  3367  	googleapi.ServerResponse `json:"-"`
  3368  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  3369  	// include in API requests. By default, fields with empty or default values are
  3370  	// omitted from API requests. See
  3371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3372  	// details.
  3373  	ForceSendFields []string `json:"-"`
  3374  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  3375  	// with the JSON null value. By default, fields with empty values are omitted
  3376  	// from API requests. See
  3377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3378  	NullFields []string `json:"-"`
  3379  }
  3380  
  3381  func (s *Operation) MarshalJSON() ([]byte, error) {
  3382  	type NoMethod Operation
  3383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3384  }
  3385  
  3386  // OperationMetadata: Represents the metadata of the long-running operation.
  3387  type OperationMetadata struct {
  3388  	// ApiVersion: Output only. API version used to start the operation.
  3389  	ApiVersion string `json:"apiVersion,omitempty"`
  3390  	// CreateTime: Output only. The time the operation was created.
  3391  	CreateTime string `json:"createTime,omitempty"`
  3392  	// EndTime: Output only. The time the operation finished running.
  3393  	EndTime string `json:"endTime,omitempty"`
  3394  	// RequestedCancellation: Output only. Identifies whether the user has
  3395  	// requested cancellation of the operation. Operations that have been cancelled
  3396  	// successfully have Operation.error value with a google.rpc.Status.code of 1,
  3397  	// corresponding to `Code.CANCELLED`.
  3398  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  3399  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  3400  	StatusMessage string `json:"statusMessage,omitempty"`
  3401  	// Target: Output only. Server-defined resource path for the target of the
  3402  	// operation.
  3403  	Target string `json:"target,omitempty"`
  3404  	// Verb: Output only. Name of the verb executed by the operation.
  3405  	Verb string `json:"verb,omitempty"`
  3406  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  3407  	// unconditionally include in API requests. By default, fields with empty or
  3408  	// default values are omitted from API requests. See
  3409  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3410  	// details.
  3411  	ForceSendFields []string `json:"-"`
  3412  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  3413  	// requests with the JSON null value. By default, fields with empty values are
  3414  	// omitted from API requests. See
  3415  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3416  	NullFields []string `json:"-"`
  3417  }
  3418  
  3419  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  3420  	type NoMethod OperationMetadata
  3421  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3422  }
  3423  
  3424  // PerformanceSample: Performance data sample.
  3425  type PerformanceSample struct {
  3426  	// Cpu: CPU usage sample.
  3427  	Cpu *CpuUsageSample `json:"cpu,omitempty"`
  3428  	// Disk: Disk usage sample.
  3429  	Disk *DiskUsageSample `json:"disk,omitempty"`
  3430  	// Memory: Memory usage sample.
  3431  	Memory *MemoryUsageSample `json:"memory,omitempty"`
  3432  	// Network: Network usage sample.
  3433  	Network *NetworkUsageSample `json:"network,omitempty"`
  3434  	// SampleTime: Time the sample was collected. If omitted, the frame report time
  3435  	// will be used.
  3436  	SampleTime string `json:"sampleTime,omitempty"`
  3437  	// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally
  3438  	// include in API requests. By default, fields with empty or default values are
  3439  	// omitted from API requests. See
  3440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3441  	// details.
  3442  	ForceSendFields []string `json:"-"`
  3443  	// NullFields is a list of field names (e.g. "Cpu") to include in API requests
  3444  	// with the JSON null value. By default, fields with empty values are omitted
  3445  	// from API requests. See
  3446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3447  	NullFields []string `json:"-"`
  3448  }
  3449  
  3450  func (s *PerformanceSample) MarshalJSON() ([]byte, error) {
  3451  	type NoMethod PerformanceSample
  3452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3453  }
  3454  
  3455  // PhysicalPlatformDetails: Platform specific details for Physical Machines.
  3456  type PhysicalPlatformDetails struct {
  3457  	// Location: Free text representation of the machine location. The format of
  3458  	// this field should not be relied on. Different machines in the same location
  3459  	// may have different string values for this field.
  3460  	Location string `json:"location,omitempty"`
  3461  	// ForceSendFields is a list of field names (e.g. "Location") to
  3462  	// unconditionally include in API requests. By default, fields with empty or
  3463  	// default values are omitted from API requests. See
  3464  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3465  	// details.
  3466  	ForceSendFields []string `json:"-"`
  3467  	// NullFields is a list of field names (e.g. "Location") to include in API
  3468  	// requests with the JSON null value. By default, fields with empty values are
  3469  	// omitted from API requests. See
  3470  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3471  	NullFields []string `json:"-"`
  3472  }
  3473  
  3474  func (s *PhysicalPlatformDetails) MarshalJSON() ([]byte, error) {
  3475  	type NoMethod PhysicalPlatformDetails
  3476  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3477  }
  3478  
  3479  // PlatformDetails: Information about the platform.
  3480  type PlatformDetails struct {
  3481  	// AwsEc2Details: AWS EC2 specific details.
  3482  	AwsEc2Details *AwsEc2PlatformDetails `json:"awsEc2Details,omitempty"`
  3483  	// AzureVmDetails: Azure VM specific details.
  3484  	AzureVmDetails *AzureVmPlatformDetails `json:"azureVmDetails,omitempty"`
  3485  	// GenericDetails: Generic platform details.
  3486  	GenericDetails *GenericPlatformDetails `json:"genericDetails,omitempty"`
  3487  	// PhysicalDetails: Physical machines platform details.
  3488  	PhysicalDetails *PhysicalPlatformDetails `json:"physicalDetails,omitempty"`
  3489  	// VmwareDetails: VMware specific details.
  3490  	VmwareDetails *VmwarePlatformDetails `json:"vmwareDetails,omitempty"`
  3491  	// ForceSendFields is a list of field names (e.g. "AwsEc2Details") to
  3492  	// unconditionally include in API requests. By default, fields with empty or
  3493  	// default values are omitted from API requests. See
  3494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3495  	// details.
  3496  	ForceSendFields []string `json:"-"`
  3497  	// NullFields is a list of field names (e.g. "AwsEc2Details") to include in API
  3498  	// requests with the JSON null value. By default, fields with empty values are
  3499  	// omitted from API requests. See
  3500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3501  	NullFields []string `json:"-"`
  3502  }
  3503  
  3504  func (s *PlatformDetails) MarshalJSON() ([]byte, error) {
  3505  	type NoMethod PlatformDetails
  3506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3507  }
  3508  
  3509  // PreferenceSet: The preferences that apply to all assets in a given context.
  3510  type PreferenceSet struct {
  3511  	// CreateTime: Output only. The timestamp when the preference set was created.
  3512  	CreateTime string `json:"createTime,omitempty"`
  3513  	// Description: A description of the preference set.
  3514  	Description string `json:"description,omitempty"`
  3515  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  3516  	DisplayName string `json:"displayName,omitempty"`
  3517  	// Name: Output only. Name of the preference set.
  3518  	Name string `json:"name,omitempty"`
  3519  	// UpdateTime: Output only. The timestamp when the preference set was last
  3520  	// updated.
  3521  	UpdateTime string `json:"updateTime,omitempty"`
  3522  	// VirtualMachinePreferences: Optional. A set of preferences that applies to
  3523  	// all virtual machines in the context.
  3524  	VirtualMachinePreferences *VirtualMachinePreferences `json:"virtualMachinePreferences,omitempty"`
  3525  
  3526  	// ServerResponse contains the HTTP response code and headers from the server.
  3527  	googleapi.ServerResponse `json:"-"`
  3528  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3529  	// unconditionally include in API requests. By default, fields with empty or
  3530  	// default values are omitted from API requests. See
  3531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3532  	// details.
  3533  	ForceSendFields []string `json:"-"`
  3534  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3535  	// requests with the JSON null value. By default, fields with empty values are
  3536  	// omitted from API requests. See
  3537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3538  	NullFields []string `json:"-"`
  3539  }
  3540  
  3541  func (s *PreferenceSet) MarshalJSON() ([]byte, error) {
  3542  	type NoMethod PreferenceSet
  3543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3544  }
  3545  
  3546  // RegionPreferences: The user preferences relating to target regions.
  3547  type RegionPreferences struct {
  3548  	// PreferredRegions: A list of preferred regions, ordered by the most preferred
  3549  	// region first. Set only valid Google Cloud region names. See
  3550  	// https://cloud.google.com/compute/docs/regions-zones for available regions.
  3551  	PreferredRegions []string `json:"preferredRegions,omitempty"`
  3552  	// ForceSendFields is a list of field names (e.g. "PreferredRegions") to
  3553  	// unconditionally include in API requests. By default, fields with empty or
  3554  	// default values are omitted from API requests. See
  3555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3556  	// details.
  3557  	ForceSendFields []string `json:"-"`
  3558  	// NullFields is a list of field names (e.g. "PreferredRegions") to include in
  3559  	// API requests with the JSON null value. By default, fields with empty values
  3560  	// are omitted from API requests. See
  3561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3562  	NullFields []string `json:"-"`
  3563  }
  3564  
  3565  func (s *RegionPreferences) MarshalJSON() ([]byte, error) {
  3566  	type NoMethod RegionPreferences
  3567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3568  }
  3569  
  3570  // RemoveAssetsFromGroupRequest: A request to remove assets from a group.
  3571  type RemoveAssetsFromGroupRequest struct {
  3572  	// AllowMissing: Optional. When this value is set to `false` and one of the
  3573  	// given assets is not an existing member of the group, the operation fails
  3574  	// with a `Not Found` error. When set to `true` this situation is silently
  3575  	// ignored by the server. Default value is `false`.
  3576  	AllowMissing bool `json:"allowMissing,omitempty"`
  3577  	// Assets: Required. List of assets to be removed. The maximum number of assets
  3578  	// that can be removed in a single request is 1000.
  3579  	Assets *AssetList `json:"assets,omitempty"`
  3580  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  3581  	// unique request ID so that if you must retry your request, the server will
  3582  	// know to ignore the request if it has already been completed. The server will
  3583  	// guarantee that for at least 60 minutes after the first request. For example,
  3584  	// consider a situation where you make an initial request and the request times
  3585  	// out. If you make the request again with the same request ID, the server can
  3586  	// check if original operation with the same request ID was received, and if
  3587  	// so, will ignore the second request. This prevents clients from accidentally
  3588  	// creating duplicate commitments. The request ID must be a valid UUID with the
  3589  	// exception that zero UUID is not supported
  3590  	// (00000000-0000-0000-0000-000000000000).
  3591  	RequestId string `json:"requestId,omitempty"`
  3592  	// ForceSendFields is a list of field names (e.g. "AllowMissing") to
  3593  	// unconditionally include in API requests. By default, fields with empty or
  3594  	// default values are omitted from API requests. See
  3595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3596  	// details.
  3597  	ForceSendFields []string `json:"-"`
  3598  	// NullFields is a list of field names (e.g. "AllowMissing") to include in API
  3599  	// requests with the JSON null value. By default, fields with empty values are
  3600  	// omitted from API requests. See
  3601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3602  	NullFields []string `json:"-"`
  3603  }
  3604  
  3605  func (s *RemoveAssetsFromGroupRequest) MarshalJSON() ([]byte, error) {
  3606  	type NoMethod RemoveAssetsFromGroupRequest
  3607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3608  }
  3609  
  3610  // Report: Report represents a point-in-time rendering of the ReportConfig
  3611  // results.
  3612  type Report struct {
  3613  	// CreateTime: Output only. Creation timestamp.
  3614  	CreateTime string `json:"createTime,omitempty"`
  3615  	// Description: Free-text description.
  3616  	Description string `json:"description,omitempty"`
  3617  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  3618  	DisplayName string `json:"displayName,omitempty"`
  3619  	// Name: Output only. Name of resource.
  3620  	Name string `json:"name,omitempty"`
  3621  	// State: Report creation state.
  3622  	//
  3623  	// Possible values:
  3624  	//   "STATE_UNSPECIFIED" - Default Report creation state.
  3625  	//   "PENDING" - Creating Report.
  3626  	//   "SUCCEEDED" - Successfully created Report.
  3627  	//   "FAILED" - Failed to create Report.
  3628  	State string `json:"state,omitempty"`
  3629  	// Summary: Output only. Summary view of the Report.
  3630  	Summary *ReportSummary `json:"summary,omitempty"`
  3631  	// Type: Report type.
  3632  	//
  3633  	// Possible values:
  3634  	//   "TYPE_UNSPECIFIED" - Default Report type.
  3635  	//   "TOTAL_COST_OF_OWNERSHIP" - Total cost of ownership Report type.
  3636  	Type string `json:"type,omitempty"`
  3637  	// UpdateTime: Output only. Last update timestamp.
  3638  	UpdateTime string `json:"updateTime,omitempty"`
  3639  
  3640  	// ServerResponse contains the HTTP response code and headers from the server.
  3641  	googleapi.ServerResponse `json:"-"`
  3642  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3643  	// unconditionally include in API requests. By default, fields with empty or
  3644  	// default values are omitted from API requests. See
  3645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3646  	// details.
  3647  	ForceSendFields []string `json:"-"`
  3648  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3649  	// requests with the JSON null value. By default, fields with empty values are
  3650  	// omitted from API requests. See
  3651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3652  	NullFields []string `json:"-"`
  3653  }
  3654  
  3655  func (s *Report) MarshalJSON() ([]byte, error) {
  3656  	type NoMethod Report
  3657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3658  }
  3659  
  3660  // ReportAssetFramesResponse: A response to a call to `ReportAssetFrame`.
  3661  type ReportAssetFramesResponse struct {
  3662  	// ServerResponse contains the HTTP response code and headers from the server.
  3663  	googleapi.ServerResponse `json:"-"`
  3664  }
  3665  
  3666  // ReportConfig: The groups and associated preference sets on which we can
  3667  // generate reports.
  3668  type ReportConfig struct {
  3669  	// CreateTime: Output only. The timestamp when the resource was created.
  3670  	CreateTime string `json:"createTime,omitempty"`
  3671  	// Description: Free-text description.
  3672  	Description string `json:"description,omitempty"`
  3673  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  3674  	DisplayName string `json:"displayName,omitempty"`
  3675  	// GroupPreferencesetAssignments: Required. Collection of combinations of
  3676  	// groups and preference sets.
  3677  	GroupPreferencesetAssignments []*ReportConfigGroupPreferenceSetAssignment `json:"groupPreferencesetAssignments,omitempty"`
  3678  	// Name: Output only. Name of resource.
  3679  	Name string `json:"name,omitempty"`
  3680  	// UpdateTime: Output only. The timestamp when the resource was last updated.
  3681  	UpdateTime string `json:"updateTime,omitempty"`
  3682  
  3683  	// ServerResponse contains the HTTP response code and headers from the server.
  3684  	googleapi.ServerResponse `json:"-"`
  3685  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3686  	// unconditionally include in API requests. By default, fields with empty or
  3687  	// default values are omitted from API requests. See
  3688  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3689  	// details.
  3690  	ForceSendFields []string `json:"-"`
  3691  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3692  	// requests with the JSON null value. By default, fields with empty values are
  3693  	// omitted from API requests. See
  3694  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3695  	NullFields []string `json:"-"`
  3696  }
  3697  
  3698  func (s *ReportConfig) MarshalJSON() ([]byte, error) {
  3699  	type NoMethod ReportConfig
  3700  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3701  }
  3702  
  3703  // ReportConfigGroupPreferenceSetAssignment: Represents a combination of a
  3704  // group with a preference set.
  3705  type ReportConfigGroupPreferenceSetAssignment struct {
  3706  	// Group: Required. Name of the group.
  3707  	Group string `json:"group,omitempty"`
  3708  	// PreferenceSet: Required. Name of the Preference Set.
  3709  	PreferenceSet string `json:"preferenceSet,omitempty"`
  3710  	// ForceSendFields is a list of field names (e.g. "Group") to unconditionally
  3711  	// include in API requests. By default, fields with empty or default values are
  3712  	// omitted from API requests. See
  3713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3714  	// details.
  3715  	ForceSendFields []string `json:"-"`
  3716  	// NullFields is a list of field names (e.g. "Group") to include in API
  3717  	// requests with the JSON null value. By default, fields with empty values are
  3718  	// omitted from API requests. See
  3719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3720  	NullFields []string `json:"-"`
  3721  }
  3722  
  3723  func (s *ReportConfigGroupPreferenceSetAssignment) MarshalJSON() ([]byte, error) {
  3724  	type NoMethod ReportConfigGroupPreferenceSetAssignment
  3725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3726  }
  3727  
  3728  // ReportSummary: Describes the Summary view of a Report, which contains
  3729  // aggregated values for all the groups and preference sets included in this
  3730  // Report.
  3731  type ReportSummary struct {
  3732  	// AllAssetsStats: Aggregate statistics for all the assets across all the
  3733  	// groups.
  3734  	AllAssetsStats *ReportSummaryAssetAggregateStats `json:"allAssetsStats,omitempty"`
  3735  	// GroupFindings: Findings for each Group included in this report.
  3736  	GroupFindings []*ReportSummaryGroupFinding `json:"groupFindings,omitempty"`
  3737  	// ForceSendFields is a list of field names (e.g. "AllAssetsStats") to
  3738  	// unconditionally include in API requests. By default, fields with empty or
  3739  	// default values are omitted from API requests. See
  3740  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3741  	// details.
  3742  	ForceSendFields []string `json:"-"`
  3743  	// NullFields is a list of field names (e.g. "AllAssetsStats") to include in
  3744  	// API requests with the JSON null value. By default, fields with empty values
  3745  	// are omitted from API requests. See
  3746  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3747  	NullFields []string `json:"-"`
  3748  }
  3749  
  3750  func (s *ReportSummary) MarshalJSON() ([]byte, error) {
  3751  	type NoMethod ReportSummary
  3752  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3753  }
  3754  
  3755  // ReportSummaryAssetAggregateStats: Aggregate statistics for a collection of
  3756  // assets.
  3757  type ReportSummaryAssetAggregateStats struct {
  3758  	// CoreCountHistogram: Histogram showing a distribution of CPU core counts.
  3759  	CoreCountHistogram *ReportSummaryHistogramChartData `json:"coreCountHistogram,omitempty"`
  3760  	// MemoryBytesHistogram: Histogram showing a distribution of memory sizes.
  3761  	MemoryBytesHistogram *ReportSummaryHistogramChartData `json:"memoryBytesHistogram,omitempty"`
  3762  	// MemoryUtilizationChart: Total memory split into Used/Free buckets.
  3763  	MemoryUtilizationChart *ReportSummaryUtilizationChartData `json:"memoryUtilizationChart,omitempty"`
  3764  	// OperatingSystem: Count of assets grouped by Operating System families.
  3765  	OperatingSystem *ReportSummaryChartData `json:"operatingSystem,omitempty"`
  3766  	// StorageBytesHistogram: Histogram showing a distribution of storage sizes.
  3767  	StorageBytesHistogram *ReportSummaryHistogramChartData `json:"storageBytesHistogram,omitempty"`
  3768  	// StorageUtilizationChart: Total memory split into Used/Free buckets.
  3769  	StorageUtilizationChart *ReportSummaryUtilizationChartData `json:"storageUtilizationChart,omitempty"`
  3770  	// TotalAssets: Count of the number of unique assets in this collection.
  3771  	TotalAssets int64 `json:"totalAssets,omitempty,string"`
  3772  	// TotalCores: Sum of the CPU core count of all the assets in this collection.
  3773  	TotalCores int64 `json:"totalCores,omitempty,string"`
  3774  	// TotalMemoryBytes: Sum of the memory in bytes of all the assets in this
  3775  	// collection.
  3776  	TotalMemoryBytes int64 `json:"totalMemoryBytes,omitempty,string"`
  3777  	// TotalStorageBytes: Sum of persistent storage in bytes of all the assets in
  3778  	// this collection.
  3779  	TotalStorageBytes int64 `json:"totalStorageBytes,omitempty,string"`
  3780  	// ForceSendFields is a list of field names (e.g. "CoreCountHistogram") to
  3781  	// unconditionally include in API requests. By default, fields with empty or
  3782  	// default values are omitted from API requests. See
  3783  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3784  	// details.
  3785  	ForceSendFields []string `json:"-"`
  3786  	// NullFields is a list of field names (e.g. "CoreCountHistogram") to include
  3787  	// in API requests with the JSON null value. By default, fields with empty
  3788  	// values are omitted from API requests. See
  3789  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3790  	NullFields []string `json:"-"`
  3791  }
  3792  
  3793  func (s *ReportSummaryAssetAggregateStats) MarshalJSON() ([]byte, error) {
  3794  	type NoMethod ReportSummaryAssetAggregateStats
  3795  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3796  }
  3797  
  3798  // ReportSummaryChartData: Describes a collection of data points rendered as a
  3799  // Chart.
  3800  type ReportSummaryChartData struct {
  3801  	// DataPoints: Each data point in the chart is represented as a name-value pair
  3802  	// with the name being the x-axis label, and the value being the y-axis value.
  3803  	DataPoints []*ReportSummaryChartDataDataPoint `json:"dataPoints,omitempty"`
  3804  	// ForceSendFields is a list of field names (e.g. "DataPoints") to
  3805  	// unconditionally include in API requests. By default, fields with empty or
  3806  	// default values are omitted from API requests. See
  3807  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3808  	// details.
  3809  	ForceSendFields []string `json:"-"`
  3810  	// NullFields is a list of field names (e.g. "DataPoints") to include in API
  3811  	// requests with the JSON null value. By default, fields with empty values are
  3812  	// omitted from API requests. See
  3813  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3814  	NullFields []string `json:"-"`
  3815  }
  3816  
  3817  func (s *ReportSummaryChartData) MarshalJSON() ([]byte, error) {
  3818  	type NoMethod ReportSummaryChartData
  3819  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3820  }
  3821  
  3822  // ReportSummaryChartDataDataPoint: Describes a single data point in the Chart.
  3823  type ReportSummaryChartDataDataPoint struct {
  3824  	// Label: The X-axis label for this data point.
  3825  	Label string `json:"label,omitempty"`
  3826  	// Value: The Y-axis value for this data point.
  3827  	Value float64 `json:"value,omitempty"`
  3828  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  3829  	// include in API requests. By default, fields with empty or default values are
  3830  	// omitted from API requests. See
  3831  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3832  	// details.
  3833  	ForceSendFields []string `json:"-"`
  3834  	// NullFields is a list of field names (e.g. "Label") to include in API
  3835  	// requests with the JSON null value. By default, fields with empty values are
  3836  	// omitted from API requests. See
  3837  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3838  	NullFields []string `json:"-"`
  3839  }
  3840  
  3841  func (s *ReportSummaryChartDataDataPoint) MarshalJSON() ([]byte, error) {
  3842  	type NoMethod ReportSummaryChartDataDataPoint
  3843  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3844  }
  3845  
  3846  func (s *ReportSummaryChartDataDataPoint) UnmarshalJSON(data []byte) error {
  3847  	type NoMethod ReportSummaryChartDataDataPoint
  3848  	var s1 struct {
  3849  		Value gensupport.JSONFloat64 `json:"value"`
  3850  		*NoMethod
  3851  	}
  3852  	s1.NoMethod = (*NoMethod)(s)
  3853  	if err := json.Unmarshal(data, &s1); err != nil {
  3854  		return err
  3855  	}
  3856  	s.Value = float64(s1.Value)
  3857  	return nil
  3858  }
  3859  
  3860  // ReportSummaryComputeEngineFinding: A set of findings that applies to assets
  3861  // destined for Compute Engine.
  3862  type ReportSummaryComputeEngineFinding struct {
  3863  	// AllocatedAssetCount: Count of assets which were allocated.
  3864  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  3865  	// AllocatedDiskTypes: Set of disk types allocated to assets.
  3866  	//
  3867  	// Possible values:
  3868  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  3869  	// Selecting this value allows the system to use any disk type according to
  3870  	// reported usage. This a good value to start with.
  3871  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  3872  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  3873  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  3874  	AllocatedDiskTypes []string `json:"allocatedDiskTypes,omitempty"`
  3875  	// AllocatedRegions: Set of regions in which the assets were allocated.
  3876  	AllocatedRegions []string `json:"allocatedRegions,omitempty"`
  3877  	// MachineSeriesAllocations: Distribution of assets based on the Machine
  3878  	// Series.
  3879  	MachineSeriesAllocations []*ReportSummaryMachineSeriesAllocation `json:"machineSeriesAllocations,omitempty"`
  3880  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  3881  	// unconditionally include in API requests. By default, fields with empty or
  3882  	// default values are omitted from API requests. See
  3883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3884  	// details.
  3885  	ForceSendFields []string `json:"-"`
  3886  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  3887  	// in API requests with the JSON null value. By default, fields with empty
  3888  	// values are omitted from API requests. See
  3889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3890  	NullFields []string `json:"-"`
  3891  }
  3892  
  3893  func (s *ReportSummaryComputeEngineFinding) MarshalJSON() ([]byte, error) {
  3894  	type NoMethod ReportSummaryComputeEngineFinding
  3895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3896  }
  3897  
  3898  // ReportSummaryGroupFinding: Summary Findings for a specific Group.
  3899  type ReportSummaryGroupFinding struct {
  3900  	// AssetAggregateStats: Summary statistics for all the assets in this group.
  3901  	AssetAggregateStats *ReportSummaryAssetAggregateStats `json:"assetAggregateStats,omitempty"`
  3902  	// Description: Description for the Group.
  3903  	Description string `json:"description,omitempty"`
  3904  	// DisplayName: Display Name for the Group.
  3905  	DisplayName string `json:"displayName,omitempty"`
  3906  	// OverlappingAssetCount: This field is deprecated, do not rely on it having a
  3907  	// value.
  3908  	OverlappingAssetCount int64 `json:"overlappingAssetCount,omitempty,string"`
  3909  	// PreferenceSetFindings: Findings for each of the PreferenceSets for this
  3910  	// group.
  3911  	PreferenceSetFindings []*ReportSummaryGroupPreferenceSetFinding `json:"preferenceSetFindings,omitempty"`
  3912  	// ForceSendFields is a list of field names (e.g. "AssetAggregateStats") to
  3913  	// unconditionally include in API requests. By default, fields with empty or
  3914  	// default values are omitted from API requests. See
  3915  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3916  	// details.
  3917  	ForceSendFields []string `json:"-"`
  3918  	// NullFields is a list of field names (e.g. "AssetAggregateStats") to include
  3919  	// in API requests with the JSON null value. By default, fields with empty
  3920  	// values are omitted from API requests. See
  3921  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3922  	NullFields []string `json:"-"`
  3923  }
  3924  
  3925  func (s *ReportSummaryGroupFinding) MarshalJSON() ([]byte, error) {
  3926  	type NoMethod ReportSummaryGroupFinding
  3927  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3928  }
  3929  
  3930  // ReportSummaryGroupPreferenceSetFinding: Summary Findings for a specific
  3931  // Group/PreferenceSet combination.
  3932  type ReportSummaryGroupPreferenceSetFinding struct {
  3933  	// ComputeEngineFinding: A set of findings that applies to Compute Engine
  3934  	// machines in the input.
  3935  	ComputeEngineFinding *ReportSummaryComputeEngineFinding `json:"computeEngineFinding,omitempty"`
  3936  	// Description: Description for the Preference Set.
  3937  	Description string `json:"description,omitempty"`
  3938  	// DisplayName: Display Name of the Preference Set
  3939  	DisplayName string `json:"displayName,omitempty"`
  3940  	// MachinePreferences: A set of preferences that applies to all machines in the
  3941  	// context.
  3942  	MachinePreferences *VirtualMachinePreferences `json:"machinePreferences,omitempty"`
  3943  	// MonthlyCostCompute: Compute monthly cost for this preference set.
  3944  	MonthlyCostCompute *Money `json:"monthlyCostCompute,omitempty"`
  3945  	// MonthlyCostNetworkEgress: Network Egress monthly cost for this preference
  3946  	// set.
  3947  	MonthlyCostNetworkEgress *Money `json:"monthlyCostNetworkEgress,omitempty"`
  3948  	// MonthlyCostOsLicense: Licensing monthly cost for this preference set.
  3949  	MonthlyCostOsLicense *Money `json:"monthlyCostOsLicense,omitempty"`
  3950  	// MonthlyCostOther: Miscellaneous monthly cost for this preference set.
  3951  	MonthlyCostOther *Money `json:"monthlyCostOther,omitempty"`
  3952  	// MonthlyCostStorage: Storage monthly cost for this preference set.
  3953  	MonthlyCostStorage *Money `json:"monthlyCostStorage,omitempty"`
  3954  	// MonthlyCostTotal: Total monthly cost for this preference set.
  3955  	MonthlyCostTotal *Money `json:"monthlyCostTotal,omitempty"`
  3956  	// SoleTenantFinding: A set of findings that applies to Sole-Tenant machines in
  3957  	// the input.
  3958  	SoleTenantFinding *ReportSummarySoleTenantFinding `json:"soleTenantFinding,omitempty"`
  3959  	// VmwareEngineFinding: A set of findings that applies to VMWare machines in
  3960  	// the input.
  3961  	VmwareEngineFinding *ReportSummaryVmwareEngineFinding `json:"vmwareEngineFinding,omitempty"`
  3962  	// ForceSendFields is a list of field names (e.g. "ComputeEngineFinding") to
  3963  	// unconditionally include in API requests. By default, fields with empty or
  3964  	// default values are omitted from API requests. See
  3965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3966  	// details.
  3967  	ForceSendFields []string `json:"-"`
  3968  	// NullFields is a list of field names (e.g. "ComputeEngineFinding") to include
  3969  	// in API requests with the JSON null value. By default, fields with empty
  3970  	// values are omitted from API requests. See
  3971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3972  	NullFields []string `json:"-"`
  3973  }
  3974  
  3975  func (s *ReportSummaryGroupPreferenceSetFinding) MarshalJSON() ([]byte, error) {
  3976  	type NoMethod ReportSummaryGroupPreferenceSetFinding
  3977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3978  }
  3979  
  3980  // ReportSummaryHistogramChartData: A Histogram Chart shows a distribution of
  3981  // values into buckets, showing a count of values which fall into a bucket.
  3982  type ReportSummaryHistogramChartData struct {
  3983  	// Buckets: Buckets in the histogram. There will be `n+1` buckets matching `n`
  3984  	// lower bounds in the request. The first bucket will be from -infinity to the
  3985  	// first bound. Subsequent buckets will be between one bound and the next. The
  3986  	// final bucket will be from the final bound to infinity.
  3987  	Buckets []*ReportSummaryHistogramChartDataBucket `json:"buckets,omitempty"`
  3988  	// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally
  3989  	// include in API requests. By default, fields with empty or default values are
  3990  	// omitted from API requests. See
  3991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3992  	// details.
  3993  	ForceSendFields []string `json:"-"`
  3994  	// NullFields is a list of field names (e.g. "Buckets") to include in API
  3995  	// requests with the JSON null value. By default, fields with empty values are
  3996  	// omitted from API requests. See
  3997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3998  	NullFields []string `json:"-"`
  3999  }
  4000  
  4001  func (s *ReportSummaryHistogramChartData) MarshalJSON() ([]byte, error) {
  4002  	type NoMethod ReportSummaryHistogramChartData
  4003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4004  }
  4005  
  4006  // ReportSummaryHistogramChartDataBucket: A histogram bucket with a lower and
  4007  // upper bound, and a count of items with a field value between those bounds.
  4008  // The lower bound is inclusive and the upper bound is exclusive. Lower bound
  4009  // may be -infinity and upper bound may be infinity.
  4010  type ReportSummaryHistogramChartDataBucket struct {
  4011  	// Count: Count of items in the bucket.
  4012  	Count int64 `json:"count,omitempty,string"`
  4013  	// LowerBound: Lower bound - inclusive.
  4014  	LowerBound int64 `json:"lowerBound,omitempty,string"`
  4015  	// UpperBound: Upper bound - exclusive.
  4016  	UpperBound int64 `json:"upperBound,omitempty,string"`
  4017  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  4018  	// include in API requests. By default, fields with empty or default values are
  4019  	// omitted from API requests. See
  4020  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4021  	// details.
  4022  	ForceSendFields []string `json:"-"`
  4023  	// NullFields is a list of field names (e.g. "Count") to include in API
  4024  	// requests with the JSON null value. By default, fields with empty values are
  4025  	// omitted from API requests. See
  4026  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4027  	NullFields []string `json:"-"`
  4028  }
  4029  
  4030  func (s *ReportSummaryHistogramChartDataBucket) MarshalJSON() ([]byte, error) {
  4031  	type NoMethod ReportSummaryHistogramChartDataBucket
  4032  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4033  }
  4034  
  4035  // ReportSummaryMachineSeriesAllocation: Represents a data point tracking the
  4036  // count of assets allocated for a specific Machine Series.
  4037  type ReportSummaryMachineSeriesAllocation struct {
  4038  	// AllocatedAssetCount: Count of assets allocated to this machine series.
  4039  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  4040  	// MachineSeries: The Machine Series (e.g. "E2", "N2")
  4041  	MachineSeries *MachineSeries `json:"machineSeries,omitempty"`
  4042  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  4043  	// unconditionally include in API requests. By default, fields with empty or
  4044  	// default values are omitted from API requests. See
  4045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4046  	// details.
  4047  	ForceSendFields []string `json:"-"`
  4048  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  4049  	// in API requests with the JSON null value. By default, fields with empty
  4050  	// values are omitted from API requests. See
  4051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4052  	NullFields []string `json:"-"`
  4053  }
  4054  
  4055  func (s *ReportSummaryMachineSeriesAllocation) MarshalJSON() ([]byte, error) {
  4056  	type NoMethod ReportSummaryMachineSeriesAllocation
  4057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4058  }
  4059  
  4060  // ReportSummarySoleTenantFinding: A set of findings that applies to assets
  4061  // destined for Sole-Tenant nodes.
  4062  type ReportSummarySoleTenantFinding struct {
  4063  	// AllocatedAssetCount: Count of assets which are allocated
  4064  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  4065  	// AllocatedRegions: Set of regions in which the assets are allocated
  4066  	AllocatedRegions []string `json:"allocatedRegions,omitempty"`
  4067  	// NodeAllocations: Set of per-nodetype allocation records
  4068  	NodeAllocations []*ReportSummarySoleTenantNodeAllocation `json:"nodeAllocations,omitempty"`
  4069  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  4070  	// unconditionally include in API requests. By default, fields with empty or
  4071  	// default values are omitted from API requests. See
  4072  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4073  	// details.
  4074  	ForceSendFields []string `json:"-"`
  4075  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  4076  	// in API requests with the JSON null value. By default, fields with empty
  4077  	// values are omitted from API requests. See
  4078  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4079  	NullFields []string `json:"-"`
  4080  }
  4081  
  4082  func (s *ReportSummarySoleTenantFinding) MarshalJSON() ([]byte, error) {
  4083  	type NoMethod ReportSummarySoleTenantFinding
  4084  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4085  }
  4086  
  4087  // ReportSummarySoleTenantNodeAllocation: Represents the assets allocated to a
  4088  // specific Sole-Tenant node type.
  4089  type ReportSummarySoleTenantNodeAllocation struct {
  4090  	// AllocatedAssetCount: Count of assets allocated to these nodes
  4091  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  4092  	// Node: Sole Tenant node type, e.g. "m3-node-128-3904"
  4093  	Node *SoleTenantNodeType `json:"node,omitempty"`
  4094  	// NodeCount: Count of this node type to be provisioned
  4095  	NodeCount int64 `json:"nodeCount,omitempty,string"`
  4096  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  4097  	// unconditionally include in API requests. By default, fields with empty or
  4098  	// default values are omitted from API requests. See
  4099  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4100  	// details.
  4101  	ForceSendFields []string `json:"-"`
  4102  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  4103  	// in API requests with the JSON null value. By default, fields with empty
  4104  	// values are omitted from API requests. See
  4105  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4106  	NullFields []string `json:"-"`
  4107  }
  4108  
  4109  func (s *ReportSummarySoleTenantNodeAllocation) MarshalJSON() ([]byte, error) {
  4110  	type NoMethod ReportSummarySoleTenantNodeAllocation
  4111  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4112  }
  4113  
  4114  // ReportSummaryUtilizationChartData: Utilization Chart is a specific type of
  4115  // visualization which displays a metric classified into "Used" and "Free"
  4116  // buckets.
  4117  type ReportSummaryUtilizationChartData struct {
  4118  	// Free: Aggregate value which falls into the "Free" bucket.
  4119  	Free int64 `json:"free,omitempty,string"`
  4120  	// Used: Aggregate value which falls into the "Used" bucket.
  4121  	Used int64 `json:"used,omitempty,string"`
  4122  	// ForceSendFields is a list of field names (e.g. "Free") to unconditionally
  4123  	// include in API requests. By default, fields with empty or default values are
  4124  	// omitted from API requests. See
  4125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4126  	// details.
  4127  	ForceSendFields []string `json:"-"`
  4128  	// NullFields is a list of field names (e.g. "Free") to include in API requests
  4129  	// with the JSON null value. By default, fields with empty values are omitted
  4130  	// from API requests. See
  4131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4132  	NullFields []string `json:"-"`
  4133  }
  4134  
  4135  func (s *ReportSummaryUtilizationChartData) MarshalJSON() ([]byte, error) {
  4136  	type NoMethod ReportSummaryUtilizationChartData
  4137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4138  }
  4139  
  4140  // ReportSummaryVmwareEngineFinding: A set of findings that applies to assets
  4141  // destined for VMWare Engine.
  4142  type ReportSummaryVmwareEngineFinding struct {
  4143  	// AllocatedAssetCount: Count of assets which are allocated
  4144  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  4145  	// AllocatedRegions: Set of regions in which the assets were allocated
  4146  	AllocatedRegions []string `json:"allocatedRegions,omitempty"`
  4147  	// NodeAllocations: Set of per-nodetype allocation records
  4148  	NodeAllocations []*ReportSummaryVmwareNodeAllocation `json:"nodeAllocations,omitempty"`
  4149  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  4150  	// unconditionally include in API requests. By default, fields with empty or
  4151  	// default values are omitted from API requests. See
  4152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4153  	// details.
  4154  	ForceSendFields []string `json:"-"`
  4155  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  4156  	// in API requests with the JSON null value. By default, fields with empty
  4157  	// values are omitted from API requests. See
  4158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4159  	NullFields []string `json:"-"`
  4160  }
  4161  
  4162  func (s *ReportSummaryVmwareEngineFinding) MarshalJSON() ([]byte, error) {
  4163  	type NoMethod ReportSummaryVmwareEngineFinding
  4164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4165  }
  4166  
  4167  // ReportSummaryVmwareNode: A VMWare Engine Node
  4168  type ReportSummaryVmwareNode struct {
  4169  	// Code: Code to identify VMware Engine node series, e.g. "ve1-standard-72".
  4170  	// Based on the displayName of
  4171  	// cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.node
  4172  	// Types
  4173  	Code string `json:"code,omitempty"`
  4174  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4175  	// include in API requests. By default, fields with empty or default values are
  4176  	// omitted from API requests. See
  4177  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4178  	// details.
  4179  	ForceSendFields []string `json:"-"`
  4180  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4181  	// with the JSON null value. By default, fields with empty values are omitted
  4182  	// from API requests. See
  4183  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4184  	NullFields []string `json:"-"`
  4185  }
  4186  
  4187  func (s *ReportSummaryVmwareNode) MarshalJSON() ([]byte, error) {
  4188  	type NoMethod ReportSummaryVmwareNode
  4189  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4190  }
  4191  
  4192  // ReportSummaryVmwareNodeAllocation: Represents assets allocated to a specific
  4193  // VMWare Node type.
  4194  type ReportSummaryVmwareNodeAllocation struct {
  4195  	// AllocatedAssetCount: Count of assets allocated to these nodes
  4196  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  4197  	// NodeCount: Count of this node type to be provisioned
  4198  	NodeCount int64 `json:"nodeCount,omitempty,string"`
  4199  	// VmwareNode: VMWare node type, e.g. "ve1-standard-72"
  4200  	VmwareNode *ReportSummaryVmwareNode `json:"vmwareNode,omitempty"`
  4201  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  4202  	// unconditionally include in API requests. By default, fields with empty or
  4203  	// default values are omitted from API requests. See
  4204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4205  	// details.
  4206  	ForceSendFields []string `json:"-"`
  4207  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  4208  	// in API requests with the JSON null value. By default, fields with empty
  4209  	// values are omitted from API requests. See
  4210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4211  	NullFields []string `json:"-"`
  4212  }
  4213  
  4214  func (s *ReportSummaryVmwareNodeAllocation) MarshalJSON() ([]byte, error) {
  4215  	type NoMethod ReportSummaryVmwareNodeAllocation
  4216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4217  }
  4218  
  4219  // RunImportJobRequest: A request to run an import job.
  4220  type RunImportJobRequest struct {
  4221  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  4222  	// unique request ID so that if you must retry your request, the server will
  4223  	// know to ignore the request if it has already been completed. The server will
  4224  	// guarantee that for at least 60 minutes after the first request. For example,
  4225  	// consider a situation where you make an initial request and the request times
  4226  	// out. If you make the request again with the same request ID, the server can
  4227  	// check if original operation with the same request ID was received, and if
  4228  	// so, will ignore the second request. This prevents clients from accidentally
  4229  	// creating duplicate commitments. The request ID must be a valid UUID with the
  4230  	// exception that zero UUID is not supported
  4231  	// (00000000-0000-0000-0000-000000000000).
  4232  	RequestId string `json:"requestId,omitempty"`
  4233  	// ForceSendFields is a list of field names (e.g. "RequestId") to
  4234  	// unconditionally include in API requests. By default, fields with empty or
  4235  	// default values are omitted from API requests. See
  4236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4237  	// details.
  4238  	ForceSendFields []string `json:"-"`
  4239  	// NullFields is a list of field names (e.g. "RequestId") to include in API
  4240  	// requests with the JSON null value. By default, fields with empty values are
  4241  	// omitted from API requests. See
  4242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4243  	NullFields []string `json:"-"`
  4244  }
  4245  
  4246  func (s *RunImportJobRequest) MarshalJSON() ([]byte, error) {
  4247  	type NoMethod RunImportJobRequest
  4248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4249  }
  4250  
  4251  // RunningProcess: Guest OS running process details.
  4252  type RunningProcess struct {
  4253  	// Attributes: Process extended attributes.
  4254  	Attributes map[string]string `json:"attributes,omitempty"`
  4255  	// Cmdline: Process full command line.
  4256  	Cmdline string `json:"cmdline,omitempty"`
  4257  	// ExePath: Process binary path.
  4258  	ExePath string `json:"exePath,omitempty"`
  4259  	// Pid: Process ID.
  4260  	Pid int64 `json:"pid,omitempty,string"`
  4261  	// User: User running the process.
  4262  	User string `json:"user,omitempty"`
  4263  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  4264  	// unconditionally include in API requests. By default, fields with empty or
  4265  	// default values are omitted from API requests. See
  4266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4267  	// details.
  4268  	ForceSendFields []string `json:"-"`
  4269  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  4270  	// requests with the JSON null value. By default, fields with empty values are
  4271  	// omitted from API requests. See
  4272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4273  	NullFields []string `json:"-"`
  4274  }
  4275  
  4276  func (s *RunningProcess) MarshalJSON() ([]byte, error) {
  4277  	type NoMethod RunningProcess
  4278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4279  }
  4280  
  4281  // RunningProcessList: List of running guest OS processes.
  4282  type RunningProcessList struct {
  4283  	// Entries: Running process entries.
  4284  	Entries []*RunningProcess `json:"entries,omitempty"`
  4285  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4286  	// include in API requests. By default, fields with empty or default values are
  4287  	// omitted from API requests. See
  4288  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4289  	// details.
  4290  	ForceSendFields []string `json:"-"`
  4291  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4292  	// requests with the JSON null value. By default, fields with empty values are
  4293  	// omitted from API requests. See
  4294  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4295  	NullFields []string `json:"-"`
  4296  }
  4297  
  4298  func (s *RunningProcessList) MarshalJSON() ([]byte, error) {
  4299  	type NoMethod RunningProcessList
  4300  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4301  }
  4302  
  4303  // RunningService: Guest OS running service details.
  4304  type RunningService struct {
  4305  	// Cmdline: Service command line.
  4306  	Cmdline string `json:"cmdline,omitempty"`
  4307  	// ExePath: Service binary path.
  4308  	ExePath string `json:"exePath,omitempty"`
  4309  	// Pid: Service pid.
  4310  	Pid int64 `json:"pid,omitempty,string"`
  4311  	// ServiceName: Service name.
  4312  	ServiceName string `json:"serviceName,omitempty"`
  4313  	// StartMode: Service start mode (OS-agnostic).
  4314  	//
  4315  	// Possible values:
  4316  	//   "START_MODE_UNSPECIFIED" - Start mode unspecified.
  4317  	//   "BOOT" - The service is a device driver started by the system loader.
  4318  	//   "SYSTEM" - The service is a device driver started by the IOInitSystem
  4319  	// function.
  4320  	//   "AUTO" - The service is started by the operating system, at system
  4321  	// start-up
  4322  	//   "MANUAL" - The service is started only manually, by a user.
  4323  	//   "DISABLED" - The service is disabled.
  4324  	StartMode string `json:"startMode,omitempty"`
  4325  	// State: Service state (OS-agnostic).
  4326  	//
  4327  	// Possible values:
  4328  	//   "STATE_UNSPECIFIED" - Service state unspecified.
  4329  	//   "ACTIVE" - Service is active.
  4330  	//   "PAUSED" - Service is paused.
  4331  	//   "STOPPED" - Service is stopped.
  4332  	State string `json:"state,omitempty"`
  4333  	// ForceSendFields is a list of field names (e.g. "Cmdline") to unconditionally
  4334  	// include in API requests. By default, fields with empty or default values are
  4335  	// omitted from API requests. See
  4336  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4337  	// details.
  4338  	ForceSendFields []string `json:"-"`
  4339  	// NullFields is a list of field names (e.g. "Cmdline") to include in API
  4340  	// requests with the JSON null value. By default, fields with empty values are
  4341  	// omitted from API requests. See
  4342  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4343  	NullFields []string `json:"-"`
  4344  }
  4345  
  4346  func (s *RunningService) MarshalJSON() ([]byte, error) {
  4347  	type NoMethod RunningService
  4348  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4349  }
  4350  
  4351  // RunningServiceList: List of running guest OS services.
  4352  type RunningServiceList struct {
  4353  	// Entries: Running service entries.
  4354  	Entries []*RunningService `json:"entries,omitempty"`
  4355  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4356  	// include in API requests. By default, fields with empty or default values are
  4357  	// omitted from API requests. See
  4358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4359  	// details.
  4360  	ForceSendFields []string `json:"-"`
  4361  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4362  	// requests with the JSON null value. By default, fields with empty values are
  4363  	// omitted from API requests. See
  4364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4365  	NullFields []string `json:"-"`
  4366  }
  4367  
  4368  func (s *RunningServiceList) MarshalJSON() ([]byte, error) {
  4369  	type NoMethod RunningServiceList
  4370  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4371  }
  4372  
  4373  // RuntimeNetworkInfo: Runtime networking information.
  4374  type RuntimeNetworkInfo struct {
  4375  	// Connections: Network connections.
  4376  	Connections *NetworkConnectionList `json:"connections,omitempty"`
  4377  	// ScanTime: Time of the last network scan.
  4378  	ScanTime string `json:"scanTime,omitempty"`
  4379  	// ForceSendFields is a list of field names (e.g. "Connections") to
  4380  	// unconditionally include in API requests. By default, fields with empty or
  4381  	// default values are omitted from API requests. See
  4382  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4383  	// details.
  4384  	ForceSendFields []string `json:"-"`
  4385  	// NullFields is a list of field names (e.g. "Connections") to include in API
  4386  	// requests with the JSON null value. By default, fields with empty values are
  4387  	// omitted from API requests. See
  4388  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4389  	NullFields []string `json:"-"`
  4390  }
  4391  
  4392  func (s *RuntimeNetworkInfo) MarshalJSON() ([]byte, error) {
  4393  	type NoMethod RuntimeNetworkInfo
  4394  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4395  }
  4396  
  4397  // SendDiscoveryClientHeartbeatRequest: A request to send a discovery client
  4398  // heartbeat.
  4399  type SendDiscoveryClientHeartbeatRequest struct {
  4400  	// Errors: Optional. Errors affecting client functionality.
  4401  	Errors []*Status `json:"errors,omitempty"`
  4402  	// Version: Optional. Client application version.
  4403  	Version string `json:"version,omitempty"`
  4404  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  4405  	// include in API requests. By default, fields with empty or default values are
  4406  	// omitted from API requests. See
  4407  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4408  	// details.
  4409  	ForceSendFields []string `json:"-"`
  4410  	// NullFields is a list of field names (e.g. "Errors") to include in API
  4411  	// requests with the JSON null value. By default, fields with empty values are
  4412  	// omitted from API requests. See
  4413  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4414  	NullFields []string `json:"-"`
  4415  }
  4416  
  4417  func (s *SendDiscoveryClientHeartbeatRequest) MarshalJSON() ([]byte, error) {
  4418  	type NoMethod SendDiscoveryClientHeartbeatRequest
  4419  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4420  }
  4421  
  4422  // Settings: Describes the Migration Center settings related to the project.
  4423  type Settings struct {
  4424  	// DisableCloudLogging: Disable Cloud Logging for the Migration Center API.
  4425  	// Users are billed for the logs.
  4426  	DisableCloudLogging bool `json:"disableCloudLogging,omitempty"`
  4427  	// Name: Output only. The name of the resource.
  4428  	Name string `json:"name,omitempty"`
  4429  	// PreferenceSet: The preference set used by default for a project.
  4430  	PreferenceSet string `json:"preferenceSet,omitempty"`
  4431  
  4432  	// ServerResponse contains the HTTP response code and headers from the server.
  4433  	googleapi.ServerResponse `json:"-"`
  4434  	// ForceSendFields is a list of field names (e.g. "DisableCloudLogging") to
  4435  	// unconditionally include in API requests. By default, fields with empty or
  4436  	// default values are omitted from API requests. See
  4437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4438  	// details.
  4439  	ForceSendFields []string `json:"-"`
  4440  	// NullFields is a list of field names (e.g. "DisableCloudLogging") to include
  4441  	// in API requests with the JSON null value. By default, fields with empty
  4442  	// values are omitted from API requests. See
  4443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4444  	NullFields []string `json:"-"`
  4445  }
  4446  
  4447  func (s *Settings) MarshalJSON() ([]byte, error) {
  4448  	type NoMethod Settings
  4449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4450  }
  4451  
  4452  // SoleTenancyPreferences: Preferences concerning Sole Tenancy nodes and VMs.
  4453  type SoleTenancyPreferences struct {
  4454  	// CommitmentPlan: Commitment plan to consider when calculating costs for
  4455  	// virtual machine insights and recommendations. If you are unsure which value
  4456  	// to set, a 3 year commitment plan is often a good value to start with.
  4457  	//
  4458  	// Possible values:
  4459  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  4460  	//   "ON_DEMAND" - No commitment plan (on-demand usage).
  4461  	//   "COMMITMENT_1_YEAR" - 1 year commitment.
  4462  	//   "COMMITMENT_3_YEAR" - 3 years commitment.
  4463  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  4464  	// CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are between 1.0
  4465  	// and 2.0 inclusive.
  4466  	CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"`
  4467  	// HostMaintenancePolicy: Sole Tenancy nodes maintenance policy.
  4468  	//
  4469  	// Possible values:
  4470  	//   "HOST_MAINTENANCE_POLICY_UNSPECIFIED" - Unspecified host maintenance
  4471  	// policy.
  4472  	//   "HOST_MAINTENANCE_POLICY_DEFAULT" - Default host maintenance policy.
  4473  	//   "HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE" - Restart in place host
  4474  	// maintenance policy.
  4475  	//   "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP" - Migrate within node
  4476  	// group host maintenance policy.
  4477  	HostMaintenancePolicy string `json:"hostMaintenancePolicy,omitempty"`
  4478  	// NodeTypes: A list of sole tenant node types. An empty list means that all
  4479  	// possible node types will be considered.
  4480  	NodeTypes []*SoleTenantNodeType `json:"nodeTypes,omitempty"`
  4481  	// ForceSendFields is a list of field names (e.g. "CommitmentPlan") to
  4482  	// unconditionally include in API requests. By default, fields with empty or
  4483  	// default values are omitted from API requests. See
  4484  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4485  	// details.
  4486  	ForceSendFields []string `json:"-"`
  4487  	// NullFields is a list of field names (e.g. "CommitmentPlan") to include in
  4488  	// API requests with the JSON null value. By default, fields with empty values
  4489  	// are omitted from API requests. See
  4490  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4491  	NullFields []string `json:"-"`
  4492  }
  4493  
  4494  func (s *SoleTenancyPreferences) MarshalJSON() ([]byte, error) {
  4495  	type NoMethod SoleTenancyPreferences
  4496  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4497  }
  4498  
  4499  func (s *SoleTenancyPreferences) UnmarshalJSON(data []byte) error {
  4500  	type NoMethod SoleTenancyPreferences
  4501  	var s1 struct {
  4502  		CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"`
  4503  		*NoMethod
  4504  	}
  4505  	s1.NoMethod = (*NoMethod)(s)
  4506  	if err := json.Unmarshal(data, &s1); err != nil {
  4507  		return err
  4508  	}
  4509  	s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio)
  4510  	return nil
  4511  }
  4512  
  4513  // SoleTenantNodeType: A Sole Tenant node type.
  4514  type SoleTenantNodeType struct {
  4515  	// NodeName: Name of the Sole Tenant node. Consult
  4516  	// https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes
  4517  	NodeName string `json:"nodeName,omitempty"`
  4518  	// ForceSendFields is a list of field names (e.g. "NodeName") to
  4519  	// unconditionally include in API requests. By default, fields with empty or
  4520  	// default values are omitted from API requests. See
  4521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4522  	// details.
  4523  	ForceSendFields []string `json:"-"`
  4524  	// NullFields is a list of field names (e.g. "NodeName") to include in API
  4525  	// requests with the JSON null value. By default, fields with empty values are
  4526  	// omitted from API requests. See
  4527  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4528  	NullFields []string `json:"-"`
  4529  }
  4530  
  4531  func (s *SoleTenantNodeType) MarshalJSON() ([]byte, error) {
  4532  	type NoMethod SoleTenantNodeType
  4533  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4534  }
  4535  
  4536  // Source: Source represents an object from which asset information is streamed
  4537  // to Migration Center.
  4538  type Source struct {
  4539  	// CreateTime: Output only. The timestamp when the source was created.
  4540  	CreateTime string `json:"createTime,omitempty"`
  4541  	// Description: Free-text description.
  4542  	Description string `json:"description,omitempty"`
  4543  	// DisplayName: User-friendly display name.
  4544  	DisplayName string `json:"displayName,omitempty"`
  4545  	// ErrorFrameCount: Output only. The number of frames that were reported by the
  4546  	// source and contained errors.
  4547  	ErrorFrameCount int64 `json:"errorFrameCount,omitempty"`
  4548  	// Managed: If `true`, the source is managed by other service(s).
  4549  	Managed bool `json:"managed,omitempty"`
  4550  	// Name: Output only. The full name of the source.
  4551  	Name string `json:"name,omitempty"`
  4552  	// PendingFrameCount: Output only. Number of frames that are still being
  4553  	// processed.
  4554  	PendingFrameCount int64 `json:"pendingFrameCount,omitempty"`
  4555  	// Priority: The information confidence of the source. The higher the value,
  4556  	// the higher the confidence.
  4557  	Priority int64 `json:"priority,omitempty"`
  4558  	// State: Output only. The state of the source.
  4559  	//
  4560  	// Possible values:
  4561  	//   "STATE_UNSPECIFIED" - Unspecified.
  4562  	//   "ACTIVE" - The source is active and ready to be used.
  4563  	//   "DELETING" - In the process of being deleted.
  4564  	//   "INVALID" - Source is in an invalid state. Asset frames reported to it
  4565  	// will be ignored.
  4566  	State string `json:"state,omitempty"`
  4567  	// Type: Data source type.
  4568  	//
  4569  	// Possible values:
  4570  	//   "SOURCE_TYPE_UNKNOWN" - Unspecified
  4571  	//   "SOURCE_TYPE_UPLOAD" - Manually uploaded file (e.g. CSV)
  4572  	//   "SOURCE_TYPE_GUEST_OS_SCAN" - Guest-level info
  4573  	//   "SOURCE_TYPE_INVENTORY_SCAN" - Inventory-level scan
  4574  	//   "SOURCE_TYPE_CUSTOM" - Third-party owned sources.
  4575  	//   "SOURCE_TYPE_DISCOVERY_CLIENT" - Discovery clients
  4576  	Type string `json:"type,omitempty"`
  4577  	// UpdateTime: Output only. The timestamp when the source was last updated.
  4578  	UpdateTime string `json:"updateTime,omitempty"`
  4579  
  4580  	// ServerResponse contains the HTTP response code and headers from the server.
  4581  	googleapi.ServerResponse `json:"-"`
  4582  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4583  	// unconditionally include in API requests. By default, fields with empty or
  4584  	// default values are omitted from API requests. See
  4585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4586  	// details.
  4587  	ForceSendFields []string `json:"-"`
  4588  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4589  	// requests with the JSON null value. By default, fields with empty values are
  4590  	// omitted from API requests. See
  4591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4592  	NullFields []string `json:"-"`
  4593  }
  4594  
  4595  func (s *Source) MarshalJSON() ([]byte, error) {
  4596  	type NoMethod Source
  4597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4598  }
  4599  
  4600  // Status: The `Status` type defines a logical error model that is suitable for
  4601  // different programming environments, including REST APIs and RPC APIs. It is
  4602  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  4603  // pieces of data: error code, error message, and error details. You can find
  4604  // out more about this error model and how to work with it in the API Design
  4605  // Guide (https://cloud.google.com/apis/design/errors).
  4606  type Status struct {
  4607  	// Code: The status code, which should be an enum value of google.rpc.Code.
  4608  	Code int64 `json:"code,omitempty"`
  4609  	// Details: A list of messages that carry the error details. There is a common
  4610  	// set of message types for APIs to use.
  4611  	Details []googleapi.RawMessage `json:"details,omitempty"`
  4612  	// Message: A developer-facing error message, which should be in English. Any
  4613  	// user-facing error message should be localized and sent in the
  4614  	// google.rpc.Status.details field, or localized by the client.
  4615  	Message string `json:"message,omitempty"`
  4616  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4617  	// include in API requests. By default, fields with empty or default values are
  4618  	// omitted from API requests. See
  4619  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4620  	// details.
  4621  	ForceSendFields []string `json:"-"`
  4622  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4623  	// with the JSON null value. By default, fields with empty values are omitted
  4624  	// from API requests. See
  4625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4626  	NullFields []string `json:"-"`
  4627  }
  4628  
  4629  func (s *Status) MarshalJSON() ([]byte, error) {
  4630  	type NoMethod Status
  4631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4632  }
  4633  
  4634  // UpdateAssetRequest: A request to update an asset.
  4635  type UpdateAssetRequest struct {
  4636  	// Asset: Required. The resource being updated.
  4637  	Asset *Asset `json:"asset,omitempty"`
  4638  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  4639  	// unique request ID so that if you must retry your request, the server will
  4640  	// know to ignore the request if it has already been completed. The server will
  4641  	// guarantee that for at least 60 minutes since the first request. For example,
  4642  	// consider a situation where you make an initial request and the request times
  4643  	// out. If you make the request again with the same request ID, the server can
  4644  	// check if original operation with the same request ID was received, and if
  4645  	// so, will ignore the second request. This prevents clients from accidentally
  4646  	// creating duplicate commitments. The request ID must be a valid UUID with the
  4647  	// exception that zero UUID is not supported
  4648  	// (00000000-0000-0000-0000-000000000000).
  4649  	RequestId string `json:"requestId,omitempty"`
  4650  	// UpdateMask: Required. Field mask is used to specify the fields to be
  4651  	// overwritten in the `Asset` resource by the update. The values specified in
  4652  	// the `update_mask` field are relative to the resource, not the full request.
  4653  	// A field will be overwritten if it is in the mask. A single * value in the
  4654  	// mask lets you to overwrite all fields.
  4655  	UpdateMask string `json:"updateMask,omitempty"`
  4656  	// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally
  4657  	// include in API requests. By default, fields with empty or default values are
  4658  	// omitted from API requests. See
  4659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4660  	// details.
  4661  	ForceSendFields []string `json:"-"`
  4662  	// NullFields is a list of field names (e.g. "Asset") to include in API
  4663  	// requests with the JSON null value. By default, fields with empty values are
  4664  	// omitted from API requests. See
  4665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4666  	NullFields []string `json:"-"`
  4667  }
  4668  
  4669  func (s *UpdateAssetRequest) MarshalJSON() ([]byte, error) {
  4670  	type NoMethod UpdateAssetRequest
  4671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4672  }
  4673  
  4674  // UploadFileInfo: A resource that contains a URI to which a data file can be
  4675  // uploaded.
  4676  type UploadFileInfo struct {
  4677  	// Headers: Output only. The headers that were used to sign the URI.
  4678  	Headers map[string]string `json:"headers,omitempty"`
  4679  	// SignedUri: Output only. Upload URI for the file.
  4680  	SignedUri string `json:"signedUri,omitempty"`
  4681  	// UriExpirationTime: Output only. Expiration time of the upload URI.
  4682  	UriExpirationTime string `json:"uriExpirationTime,omitempty"`
  4683  	// ForceSendFields is a list of field names (e.g. "Headers") to unconditionally
  4684  	// include in API requests. By default, fields with empty or default values are
  4685  	// omitted from API requests. See
  4686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4687  	// details.
  4688  	ForceSendFields []string `json:"-"`
  4689  	// NullFields is a list of field names (e.g. "Headers") to include in API
  4690  	// requests with the JSON null value. By default, fields with empty values are
  4691  	// omitted from API requests. See
  4692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4693  	NullFields []string `json:"-"`
  4694  }
  4695  
  4696  func (s *UploadFileInfo) MarshalJSON() ([]byte, error) {
  4697  	type NoMethod UploadFileInfo
  4698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4699  }
  4700  
  4701  // ValidateImportJobRequest: A request to validate an import job.
  4702  type ValidateImportJobRequest struct {
  4703  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  4704  	// unique request ID so that if you must retry your request, the server will
  4705  	// know to ignore the request if it has already been completed. The server will
  4706  	// guarantee that for at least 60 minutes after the first request. For example,
  4707  	// consider a situation where you make an initial request and the request times
  4708  	// out. If you make the request again with the same request ID, the server can
  4709  	// check if original operation with the same request ID was received, and if
  4710  	// so, will ignore the second request. This prevents clients from accidentally
  4711  	// creating duplicate commitments. The request ID must be a valid UUID with the
  4712  	// exception that zero UUID is not supported
  4713  	// (00000000-0000-0000-0000-000000000000).
  4714  	RequestId string `json:"requestId,omitempty"`
  4715  	// ForceSendFields is a list of field names (e.g. "RequestId") to
  4716  	// unconditionally include in API requests. By default, fields with empty or
  4717  	// default values are omitted from API requests. See
  4718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4719  	// details.
  4720  	ForceSendFields []string `json:"-"`
  4721  	// NullFields is a list of field names (e.g. "RequestId") to include in API
  4722  	// requests with the JSON null value. By default, fields with empty values are
  4723  	// omitted from API requests. See
  4724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4725  	NullFields []string `json:"-"`
  4726  }
  4727  
  4728  func (s *ValidateImportJobRequest) MarshalJSON() ([]byte, error) {
  4729  	type NoMethod ValidateImportJobRequest
  4730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4731  }
  4732  
  4733  // ValidationReport: A resource that aggregates errors across import job files.
  4734  type ValidationReport struct {
  4735  	// FileValidations: List of errors found in files.
  4736  	FileValidations []*FileValidationReport `json:"fileValidations,omitempty"`
  4737  	// JobErrors: List of job level errors.
  4738  	JobErrors []*ImportError `json:"jobErrors,omitempty"`
  4739  	// ForceSendFields is a list of field names (e.g. "FileValidations") to
  4740  	// unconditionally include in API requests. By default, fields with empty or
  4741  	// default values are omitted from API requests. See
  4742  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4743  	// details.
  4744  	ForceSendFields []string `json:"-"`
  4745  	// NullFields is a list of field names (e.g. "FileValidations") to include in
  4746  	// API requests with the JSON null value. By default, fields with empty values
  4747  	// are omitted from API requests. See
  4748  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4749  	NullFields []string `json:"-"`
  4750  }
  4751  
  4752  func (s *ValidationReport) MarshalJSON() ([]byte, error) {
  4753  	type NoMethod ValidationReport
  4754  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4755  }
  4756  
  4757  // VirtualMachinePreferences: VirtualMachinePreferences enables you to create
  4758  // sets of assumptions, for example, a geographical location and pricing track,
  4759  // for your migrated virtual machines. The set of preferences influence
  4760  // recommendations for migrating virtual machine assets.
  4761  type VirtualMachinePreferences struct {
  4762  	// CommitmentPlan: Commitment plan to consider when calculating costs for
  4763  	// virtual machine insights and recommendations. If you are unsure which value
  4764  	// to set, a 3 year commitment plan is often a good value to start with.
  4765  	//
  4766  	// Possible values:
  4767  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  4768  	//   "COMMITMENT_PLAN_NONE" - No commitment plan.
  4769  	//   "COMMITMENT_PLAN_ONE_YEAR" - 1 year commitment.
  4770  	//   "COMMITMENT_PLAN_THREE_YEARS" - 3 years commitment.
  4771  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  4772  	// ComputeEnginePreferences: Compute Engine preferences concern insights and
  4773  	// recommendations for Compute Engine target.
  4774  	ComputeEnginePreferences *ComputeEnginePreferences `json:"computeEnginePreferences,omitempty"`
  4775  	// RegionPreferences: Region preferences for assets using this preference set.
  4776  	// If you are unsure which value to set, the migration service API region is
  4777  	// often a good value to start with.
  4778  	RegionPreferences *RegionPreferences `json:"regionPreferences,omitempty"`
  4779  	// SizingOptimizationStrategy: Sizing optimization strategy specifies the
  4780  	// preferred strategy used when extrapolating usage data to calculate insights
  4781  	// and recommendations for a virtual machine. If you are unsure which value to
  4782  	// set, a moderate sizing optimization strategy is often a good value to start
  4783  	// with.
  4784  	//
  4785  	// Possible values:
  4786  	//   "SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED" - Unspecified (default value).
  4787  	//   "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE" - No optimization applied.
  4788  	// Virtual machine sizing matches as closely as possible the machine shape on
  4789  	// the source site, not considering any actual performance data.
  4790  	//   "SIZING_OPTIMIZATION_STRATEGY_MODERATE" - Virtual machine sizing will
  4791  	// match the reported usage and shape, with some slack. This a good value to
  4792  	// start with.
  4793  	//   "SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE" - Virtual machine sizing will
  4794  	// match the reported usage, with little slack. Using this option can help
  4795  	// reduce costs.
  4796  	SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"`
  4797  	// SoleTenancyPreferences: Preferences concerning Sole Tenant nodes and virtual
  4798  	// machines.
  4799  	SoleTenancyPreferences *SoleTenancyPreferences `json:"soleTenancyPreferences,omitempty"`
  4800  	// TargetProduct: Target product for assets using this preference set. Specify
  4801  	// either target product or business goal, but not both.
  4802  	//
  4803  	// Possible values:
  4804  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED" - Unspecified (default
  4805  	// value).
  4806  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE" - Prefer to migrate to
  4807  	// Google Cloud Compute Engine.
  4808  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE" - Prefer to migrate to
  4809  	// Google Cloud VMware Engine.
  4810  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" - Prefer to migrate to
  4811  	// Google Cloud Sole Tenant Nodes.
  4812  	TargetProduct string `json:"targetProduct,omitempty"`
  4813  	// VmwareEnginePreferences: Preferences concerning insights and recommendations
  4814  	// for Google Cloud VMware Engine.
  4815  	VmwareEnginePreferences *VmwareEnginePreferences `json:"vmwareEnginePreferences,omitempty"`
  4816  	// ForceSendFields is a list of field names (e.g. "CommitmentPlan") to
  4817  	// unconditionally include in API requests. By default, fields with empty or
  4818  	// default values are omitted from API requests. See
  4819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4820  	// details.
  4821  	ForceSendFields []string `json:"-"`
  4822  	// NullFields is a list of field names (e.g. "CommitmentPlan") to include in
  4823  	// API requests with the JSON null value. By default, fields with empty values
  4824  	// are omitted from API requests. See
  4825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4826  	NullFields []string `json:"-"`
  4827  }
  4828  
  4829  func (s *VirtualMachinePreferences) MarshalJSON() ([]byte, error) {
  4830  	type NoMethod VirtualMachinePreferences
  4831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4832  }
  4833  
  4834  // VmwareDiskConfig: VMware disk config details.
  4835  type VmwareDiskConfig struct {
  4836  	// BackingType: VMDK backing type.
  4837  	//
  4838  	// Possible values:
  4839  	//   "BACKING_TYPE_UNSPECIFIED" - Default value.
  4840  	//   "BACKING_TYPE_FLAT_V1" - Flat v1.
  4841  	//   "BACKING_TYPE_FLAT_V2" - Flat v2.
  4842  	//   "BACKING_TYPE_PMEM" - Persistent memory, also known as Non-Volatile Memory
  4843  	// (NVM).
  4844  	//   "BACKING_TYPE_RDM_V1" - Raw Disk Memory v1.
  4845  	//   "BACKING_TYPE_RDM_V2" - Raw Disk Memory v2.
  4846  	//   "BACKING_TYPE_SESPARSE" - SEsparse is a snapshot format introduced in
  4847  	// vSphere 5.5 for large disks.
  4848  	//   "BACKING_TYPE_SESPARSE_V1" - SEsparse v1.
  4849  	//   "BACKING_TYPE_SESPARSE_V2" - SEsparse v1.
  4850  	BackingType string `json:"backingType,omitempty"`
  4851  	// RdmCompatibility: RDM compatibility mode.
  4852  	//
  4853  	// Possible values:
  4854  	//   "RDM_COMPATIBILITY_UNSPECIFIED" - Compatibility mode unspecified or
  4855  	// unknown.
  4856  	//   "PHYSICAL_COMPATIBILITY" - Physical compatibility mode.
  4857  	//   "VIRTUAL_COMPATIBILITY" - Virtual compatibility mode.
  4858  	RdmCompatibility string `json:"rdmCompatibility,omitempty"`
  4859  	// Shared: Is VMDK shared with other VMs.
  4860  	Shared bool `json:"shared,omitempty"`
  4861  	// VmdkMode: VMDK disk mode.
  4862  	//
  4863  	// Possible values:
  4864  	//   "VMDK_MODE_UNSPECIFIED" - VMDK disk mode unspecified or unknown.
  4865  	//   "DEPENDENT" - Dependent disk mode.
  4866  	//   "INDEPENDENT_PERSISTENT" - Independent - Persistent disk mode.
  4867  	//   "INDEPENDENT_NONPERSISTENT" - Independent - Nonpersistent disk mode.
  4868  	VmdkMode string `json:"vmdkMode,omitempty"`
  4869  	// ForceSendFields is a list of field names (e.g. "BackingType") to
  4870  	// unconditionally include in API requests. By default, fields with empty or
  4871  	// default values are omitted from API requests. See
  4872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4873  	// details.
  4874  	ForceSendFields []string `json:"-"`
  4875  	// NullFields is a list of field names (e.g. "BackingType") to include in API
  4876  	// requests with the JSON null value. By default, fields with empty values are
  4877  	// omitted from API requests. See
  4878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4879  	NullFields []string `json:"-"`
  4880  }
  4881  
  4882  func (s *VmwareDiskConfig) MarshalJSON() ([]byte, error) {
  4883  	type NoMethod VmwareDiskConfig
  4884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4885  }
  4886  
  4887  // VmwareEnginePreferences: The user preferences relating to Google Cloud
  4888  // VMware Engine target platform.
  4889  type VmwareEnginePreferences struct {
  4890  	// CommitmentPlan: Commitment plan to consider when calculating costs for
  4891  	// virtual machine insights and recommendations. If you are unsure which value
  4892  	// to set, a 3 year commitment plan is often a good value to start with.
  4893  	//
  4894  	// Possible values:
  4895  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  4896  	//   "ON_DEMAND" - No commitment plan (on-demand usage).
  4897  	//   "COMMITMENT_1_YEAR_MONTHLY_PAYMENTS" - 1 year commitment (monthly
  4898  	// payments).
  4899  	//   "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS" - 3 year commitment (monthly
  4900  	// payments).
  4901  	//   "COMMITMENT_1_YEAR_UPFRONT_PAYMENT" - 1 year commitment (upfront payment).
  4902  	//   "COMMITMENT_3_YEAR_UPFRONT_PAYMENT" - 3 years commitment (upfront
  4903  	// payment).
  4904  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  4905  	// CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are between 1.0
  4906  	// and 8.0, with 0.1 increment.
  4907  	CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"`
  4908  	// MemoryOvercommitRatio: Memory overcommit ratio. Acceptable values are 1.0,
  4909  	// 1.25, 1.5, 1.75 and 2.0.
  4910  	MemoryOvercommitRatio float64 `json:"memoryOvercommitRatio,omitempty"`
  4911  	// StorageDeduplicationCompressionRatio: The Deduplication and Compression
  4912  	// ratio is based on the logical (Used Before) space required to store data
  4913  	// before applying deduplication and compression, in relation to the physical
  4914  	// (Used After) space required after applying deduplication and compression.
  4915  	// Specifically, the ratio is the Used Before space divided by the Used After
  4916  	// space. For example, if the Used Before space is 3 GB, but the physical Used
  4917  	// After space is 1 GB, the deduplication and compression ratio is 3x.
  4918  	// Acceptable values are between 1.0 and 4.0.
  4919  	StorageDeduplicationCompressionRatio float64 `json:"storageDeduplicationCompressionRatio,omitempty"`
  4920  	// ForceSendFields is a list of field names (e.g. "CommitmentPlan") to
  4921  	// unconditionally include in API requests. By default, fields with empty or
  4922  	// default values are omitted from API requests. See
  4923  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4924  	// details.
  4925  	ForceSendFields []string `json:"-"`
  4926  	// NullFields is a list of field names (e.g. "CommitmentPlan") to include in
  4927  	// API requests with the JSON null value. By default, fields with empty values
  4928  	// are omitted from API requests. See
  4929  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4930  	NullFields []string `json:"-"`
  4931  }
  4932  
  4933  func (s *VmwareEnginePreferences) MarshalJSON() ([]byte, error) {
  4934  	type NoMethod VmwareEnginePreferences
  4935  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4936  }
  4937  
  4938  func (s *VmwareEnginePreferences) UnmarshalJSON(data []byte) error {
  4939  	type NoMethod VmwareEnginePreferences
  4940  	var s1 struct {
  4941  		CpuOvercommitRatio                   gensupport.JSONFloat64 `json:"cpuOvercommitRatio"`
  4942  		MemoryOvercommitRatio                gensupport.JSONFloat64 `json:"memoryOvercommitRatio"`
  4943  		StorageDeduplicationCompressionRatio gensupport.JSONFloat64 `json:"storageDeduplicationCompressionRatio"`
  4944  		*NoMethod
  4945  	}
  4946  	s1.NoMethod = (*NoMethod)(s)
  4947  	if err := json.Unmarshal(data, &s1); err != nil {
  4948  		return err
  4949  	}
  4950  	s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio)
  4951  	s.MemoryOvercommitRatio = float64(s1.MemoryOvercommitRatio)
  4952  	s.StorageDeduplicationCompressionRatio = float64(s1.StorageDeduplicationCompressionRatio)
  4953  	return nil
  4954  }
  4955  
  4956  // VmwarePlatformDetails: VMware specific details.
  4957  type VmwarePlatformDetails struct {
  4958  	// EsxVersion: ESX version.
  4959  	EsxVersion string `json:"esxVersion,omitempty"`
  4960  	// Osid: VMware os enum -
  4961  	// https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html.
  4962  	Osid string `json:"osid,omitempty"`
  4963  	// VcenterFolder: Folder name in vCenter where asset resides.
  4964  	VcenterFolder string `json:"vcenterFolder,omitempty"`
  4965  	// VcenterUri: vCenter URI used in collection.
  4966  	VcenterUri string `json:"vcenterUri,omitempty"`
  4967  	// VcenterVersion: vCenter version.
  4968  	VcenterVersion string `json:"vcenterVersion,omitempty"`
  4969  	// VcenterVmId: vCenter VM ID.
  4970  	VcenterVmId string `json:"vcenterVmId,omitempty"`
  4971  	// ForceSendFields is a list of field names (e.g. "EsxVersion") to
  4972  	// unconditionally include in API requests. By default, fields with empty or
  4973  	// default values are omitted from API requests. See
  4974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4975  	// details.
  4976  	ForceSendFields []string `json:"-"`
  4977  	// NullFields is a list of field names (e.g. "EsxVersion") to include in API
  4978  	// requests with the JSON null value. By default, fields with empty values are
  4979  	// omitted from API requests. See
  4980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4981  	NullFields []string `json:"-"`
  4982  }
  4983  
  4984  func (s *VmwarePlatformDetails) MarshalJSON() ([]byte, error) {
  4985  	type NoMethod VmwarePlatformDetails
  4986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4987  }
  4988  
  4989  type ProjectsLocationsGetCall struct {
  4990  	s            *Service
  4991  	name         string
  4992  	urlParams_   gensupport.URLParams
  4993  	ifNoneMatch_ string
  4994  	ctx_         context.Context
  4995  	header_      http.Header
  4996  }
  4997  
  4998  // Get: Gets information about a location.
  4999  //
  5000  // - name: Resource name for the location.
  5001  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  5002  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5003  	c.name = name
  5004  	return c
  5005  }
  5006  
  5007  // Fields allows partial responses to be retrieved. See
  5008  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5009  // details.
  5010  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  5011  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5012  	return c
  5013  }
  5014  
  5015  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5016  // object's ETag matches the given value. This is useful for getting updates
  5017  // only after the object has changed since the last request.
  5018  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  5019  	c.ifNoneMatch_ = entityTag
  5020  	return c
  5021  }
  5022  
  5023  // Context sets the context to be used in this call's Do method.
  5024  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  5025  	c.ctx_ = ctx
  5026  	return c
  5027  }
  5028  
  5029  // Header returns a http.Header that can be modified by the caller to add
  5030  // headers to the request.
  5031  func (c *ProjectsLocationsGetCall) Header() http.Header {
  5032  	if c.header_ == nil {
  5033  		c.header_ = make(http.Header)
  5034  	}
  5035  	return c.header_
  5036  }
  5037  
  5038  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  5039  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5040  	if c.ifNoneMatch_ != "" {
  5041  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5042  	}
  5043  	var body io.Reader = nil
  5044  	c.urlParams_.Set("alt", alt)
  5045  	c.urlParams_.Set("prettyPrint", "false")
  5046  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5047  	urls += "?" + c.urlParams_.Encode()
  5048  	req, err := http.NewRequest("GET", urls, body)
  5049  	if err != nil {
  5050  		return nil, err
  5051  	}
  5052  	req.Header = reqHeaders
  5053  	googleapi.Expand(req.URL, map[string]string{
  5054  		"name": c.name,
  5055  	})
  5056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5057  }
  5058  
  5059  // Do executes the "migrationcenter.projects.locations.get" call.
  5060  // Any non-2xx status code is an error. Response headers are in either
  5061  // *Location.ServerResponse.Header or (if a response was returned at all) in
  5062  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5063  // whether the returned error was because http.StatusNotModified was returned.
  5064  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  5065  	gensupport.SetOptions(c.urlParams_, opts...)
  5066  	res, err := c.doRequest("json")
  5067  	if res != nil && res.StatusCode == http.StatusNotModified {
  5068  		if res.Body != nil {
  5069  			res.Body.Close()
  5070  		}
  5071  		return nil, gensupport.WrapError(&googleapi.Error{
  5072  			Code:   res.StatusCode,
  5073  			Header: res.Header,
  5074  		})
  5075  	}
  5076  	if err != nil {
  5077  		return nil, err
  5078  	}
  5079  	defer googleapi.CloseBody(res)
  5080  	if err := googleapi.CheckResponse(res); err != nil {
  5081  		return nil, gensupport.WrapError(err)
  5082  	}
  5083  	ret := &Location{
  5084  		ServerResponse: googleapi.ServerResponse{
  5085  			Header:         res.Header,
  5086  			HTTPStatusCode: res.StatusCode,
  5087  		},
  5088  	}
  5089  	target := &ret
  5090  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5091  		return nil, err
  5092  	}
  5093  	return ret, nil
  5094  }
  5095  
  5096  type ProjectsLocationsGetSettingsCall struct {
  5097  	s            *Service
  5098  	name         string
  5099  	urlParams_   gensupport.URLParams
  5100  	ifNoneMatch_ string
  5101  	ctx_         context.Context
  5102  	header_      http.Header
  5103  }
  5104  
  5105  // GetSettings: Gets the details of regional settings.
  5106  //
  5107  // - name: Name of the resource.
  5108  func (r *ProjectsLocationsService) GetSettings(name string) *ProjectsLocationsGetSettingsCall {
  5109  	c := &ProjectsLocationsGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5110  	c.name = name
  5111  	return c
  5112  }
  5113  
  5114  // Fields allows partial responses to be retrieved. See
  5115  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5116  // details.
  5117  func (c *ProjectsLocationsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetSettingsCall {
  5118  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5119  	return c
  5120  }
  5121  
  5122  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5123  // object's ETag matches the given value. This is useful for getting updates
  5124  // only after the object has changed since the last request.
  5125  func (c *ProjectsLocationsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetSettingsCall {
  5126  	c.ifNoneMatch_ = entityTag
  5127  	return c
  5128  }
  5129  
  5130  // Context sets the context to be used in this call's Do method.
  5131  func (c *ProjectsLocationsGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetSettingsCall {
  5132  	c.ctx_ = ctx
  5133  	return c
  5134  }
  5135  
  5136  // Header returns a http.Header that can be modified by the caller to add
  5137  // headers to the request.
  5138  func (c *ProjectsLocationsGetSettingsCall) Header() http.Header {
  5139  	if c.header_ == nil {
  5140  		c.header_ = make(http.Header)
  5141  	}
  5142  	return c.header_
  5143  }
  5144  
  5145  func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response, error) {
  5146  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5147  	if c.ifNoneMatch_ != "" {
  5148  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5149  	}
  5150  	var body io.Reader = nil
  5151  	c.urlParams_.Set("alt", alt)
  5152  	c.urlParams_.Set("prettyPrint", "false")
  5153  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5154  	urls += "?" + c.urlParams_.Encode()
  5155  	req, err := http.NewRequest("GET", urls, body)
  5156  	if err != nil {
  5157  		return nil, err
  5158  	}
  5159  	req.Header = reqHeaders
  5160  	googleapi.Expand(req.URL, map[string]string{
  5161  		"name": c.name,
  5162  	})
  5163  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5164  }
  5165  
  5166  // Do executes the "migrationcenter.projects.locations.getSettings" call.
  5167  // Any non-2xx status code is an error. Response headers are in either
  5168  // *Settings.ServerResponse.Header or (if a response was returned at all) in
  5169  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5170  // whether the returned error was because http.StatusNotModified was returned.
  5171  func (c *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error) {
  5172  	gensupport.SetOptions(c.urlParams_, opts...)
  5173  	res, err := c.doRequest("json")
  5174  	if res != nil && res.StatusCode == http.StatusNotModified {
  5175  		if res.Body != nil {
  5176  			res.Body.Close()
  5177  		}
  5178  		return nil, gensupport.WrapError(&googleapi.Error{
  5179  			Code:   res.StatusCode,
  5180  			Header: res.Header,
  5181  		})
  5182  	}
  5183  	if err != nil {
  5184  		return nil, err
  5185  	}
  5186  	defer googleapi.CloseBody(res)
  5187  	if err := googleapi.CheckResponse(res); err != nil {
  5188  		return nil, gensupport.WrapError(err)
  5189  	}
  5190  	ret := &Settings{
  5191  		ServerResponse: googleapi.ServerResponse{
  5192  			Header:         res.Header,
  5193  			HTTPStatusCode: res.StatusCode,
  5194  		},
  5195  	}
  5196  	target := &ret
  5197  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5198  		return nil, err
  5199  	}
  5200  	return ret, nil
  5201  }
  5202  
  5203  type ProjectsLocationsListCall struct {
  5204  	s            *Service
  5205  	name         string
  5206  	urlParams_   gensupport.URLParams
  5207  	ifNoneMatch_ string
  5208  	ctx_         context.Context
  5209  	header_      http.Header
  5210  }
  5211  
  5212  // List: Lists information about the supported locations for this service.
  5213  //
  5214  // - name: The resource that owns the locations collection, if applicable.
  5215  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  5216  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5217  	c.name = name
  5218  	return c
  5219  }
  5220  
  5221  // Filter sets the optional parameter "filter": A filter to narrow down results
  5222  // to a preferred subset. The filtering language accepts strings like
  5223  // "displayName=tokyo", and is documented in more detail in AIP-160
  5224  // (https://google.aip.dev/160).
  5225  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  5226  	c.urlParams_.Set("filter", filter)
  5227  	return c
  5228  }
  5229  
  5230  // PageSize sets the optional parameter "pageSize": The maximum number of
  5231  // results to return. If not set, the service selects a default.
  5232  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  5233  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5234  	return c
  5235  }
  5236  
  5237  // PageToken sets the optional parameter "pageToken": A page token received
  5238  // from the `next_page_token` field in the response. Send that page token to
  5239  // receive the subsequent page.
  5240  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  5241  	c.urlParams_.Set("pageToken", pageToken)
  5242  	return c
  5243  }
  5244  
  5245  // Fields allows partial responses to be retrieved. See
  5246  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5247  // details.
  5248  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  5249  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5250  	return c
  5251  }
  5252  
  5253  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5254  // object's ETag matches the given value. This is useful for getting updates
  5255  // only after the object has changed since the last request.
  5256  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  5257  	c.ifNoneMatch_ = entityTag
  5258  	return c
  5259  }
  5260  
  5261  // Context sets the context to be used in this call's Do method.
  5262  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  5263  	c.ctx_ = ctx
  5264  	return c
  5265  }
  5266  
  5267  // Header returns a http.Header that can be modified by the caller to add
  5268  // headers to the request.
  5269  func (c *ProjectsLocationsListCall) Header() http.Header {
  5270  	if c.header_ == nil {
  5271  		c.header_ = make(http.Header)
  5272  	}
  5273  	return c.header_
  5274  }
  5275  
  5276  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  5277  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5278  	if c.ifNoneMatch_ != "" {
  5279  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5280  	}
  5281  	var body io.Reader = nil
  5282  	c.urlParams_.Set("alt", alt)
  5283  	c.urlParams_.Set("prettyPrint", "false")
  5284  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  5285  	urls += "?" + c.urlParams_.Encode()
  5286  	req, err := http.NewRequest("GET", urls, body)
  5287  	if err != nil {
  5288  		return nil, err
  5289  	}
  5290  	req.Header = reqHeaders
  5291  	googleapi.Expand(req.URL, map[string]string{
  5292  		"name": c.name,
  5293  	})
  5294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5295  }
  5296  
  5297  // Do executes the "migrationcenter.projects.locations.list" call.
  5298  // Any non-2xx status code is an error. Response headers are in either
  5299  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  5300  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5301  // check whether the returned error was because http.StatusNotModified was
  5302  // returned.
  5303  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  5304  	gensupport.SetOptions(c.urlParams_, opts...)
  5305  	res, err := c.doRequest("json")
  5306  	if res != nil && res.StatusCode == http.StatusNotModified {
  5307  		if res.Body != nil {
  5308  			res.Body.Close()
  5309  		}
  5310  		return nil, gensupport.WrapError(&googleapi.Error{
  5311  			Code:   res.StatusCode,
  5312  			Header: res.Header,
  5313  		})
  5314  	}
  5315  	if err != nil {
  5316  		return nil, err
  5317  	}
  5318  	defer googleapi.CloseBody(res)
  5319  	if err := googleapi.CheckResponse(res); err != nil {
  5320  		return nil, gensupport.WrapError(err)
  5321  	}
  5322  	ret := &ListLocationsResponse{
  5323  		ServerResponse: googleapi.ServerResponse{
  5324  			Header:         res.Header,
  5325  			HTTPStatusCode: res.StatusCode,
  5326  		},
  5327  	}
  5328  	target := &ret
  5329  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5330  		return nil, err
  5331  	}
  5332  	return ret, nil
  5333  }
  5334  
  5335  // Pages invokes f for each page of results.
  5336  // A non-nil error returned from f will halt the iteration.
  5337  // The provided context supersedes any context provided to the Context method.
  5338  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  5339  	c.ctx_ = ctx
  5340  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5341  	for {
  5342  		x, err := c.Do()
  5343  		if err != nil {
  5344  			return err
  5345  		}
  5346  		if err := f(x); err != nil {
  5347  			return err
  5348  		}
  5349  		if x.NextPageToken == "" {
  5350  			return nil
  5351  		}
  5352  		c.PageToken(x.NextPageToken)
  5353  	}
  5354  }
  5355  
  5356  type ProjectsLocationsUpdateSettingsCall struct {
  5357  	s          *Service
  5358  	name       string
  5359  	settings   *Settings
  5360  	urlParams_ gensupport.URLParams
  5361  	ctx_       context.Context
  5362  	header_    http.Header
  5363  }
  5364  
  5365  // UpdateSettings: Updates the regional-level project settings.
  5366  //
  5367  // - name: Output only. The name of the resource.
  5368  func (r *ProjectsLocationsService) UpdateSettings(name string, settings *Settings) *ProjectsLocationsUpdateSettingsCall {
  5369  	c := &ProjectsLocationsUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5370  	c.name = name
  5371  	c.settings = settings
  5372  	return c
  5373  }
  5374  
  5375  // RequestId sets the optional parameter "requestId": An optional request ID to
  5376  // identify requests. Specify a unique request ID so that if you must retry
  5377  // your request, the server will know to ignore the request if it has already
  5378  // been completed. The server will guarantee that for at least 60 minutes since
  5379  // the first request. For example, consider a situation where you make an
  5380  // initial request and the request times out. If you make the request again
  5381  // with the same request ID, the server can check if original operation with
  5382  // the same request ID was received, and if so, will ignore the second request.
  5383  // This prevents clients from accidentally creating duplicate commitments. The
  5384  // request ID must be a valid UUID with the exception that zero UUID is not
  5385  // supported (00000000-0000-0000-0000-000000000000).
  5386  func (c *ProjectsLocationsUpdateSettingsCall) RequestId(requestId string) *ProjectsLocationsUpdateSettingsCall {
  5387  	c.urlParams_.Set("requestId", requestId)
  5388  	return c
  5389  }
  5390  
  5391  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  5392  // used to specify the fields to be overwritten in the `Settings` resource by
  5393  // the update. The values specified in the `update_mask` field are relative to
  5394  // the resource, not the full request. A field will be overwritten if it is in
  5395  // the mask. A single * value in the mask lets you to overwrite all fields.
  5396  func (c *ProjectsLocationsUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateSettingsCall {
  5397  	c.urlParams_.Set("updateMask", updateMask)
  5398  	return c
  5399  }
  5400  
  5401  // Fields allows partial responses to be retrieved. See
  5402  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5403  // details.
  5404  func (c *ProjectsLocationsUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateSettingsCall {
  5405  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5406  	return c
  5407  }
  5408  
  5409  // Context sets the context to be used in this call's Do method.
  5410  func (c *ProjectsLocationsUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateSettingsCall {
  5411  	c.ctx_ = ctx
  5412  	return c
  5413  }
  5414  
  5415  // Header returns a http.Header that can be modified by the caller to add
  5416  // headers to the request.
  5417  func (c *ProjectsLocationsUpdateSettingsCall) Header() http.Header {
  5418  	if c.header_ == nil {
  5419  		c.header_ = make(http.Header)
  5420  	}
  5421  	return c.header_
  5422  }
  5423  
  5424  func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Response, error) {
  5425  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5426  	var body io.Reader = nil
  5427  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.settings)
  5428  	if err != nil {
  5429  		return nil, err
  5430  	}
  5431  	c.urlParams_.Set("alt", alt)
  5432  	c.urlParams_.Set("prettyPrint", "false")
  5433  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5434  	urls += "?" + c.urlParams_.Encode()
  5435  	req, err := http.NewRequest("PATCH", urls, body)
  5436  	if err != nil {
  5437  		return nil, err
  5438  	}
  5439  	req.Header = reqHeaders
  5440  	googleapi.Expand(req.URL, map[string]string{
  5441  		"name": c.name,
  5442  	})
  5443  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5444  }
  5445  
  5446  // Do executes the "migrationcenter.projects.locations.updateSettings" call.
  5447  // Any non-2xx status code is an error. Response headers are in either
  5448  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5449  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5450  // whether the returned error was because http.StatusNotModified was returned.
  5451  func (c *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5452  	gensupport.SetOptions(c.urlParams_, opts...)
  5453  	res, err := c.doRequest("json")
  5454  	if res != nil && res.StatusCode == http.StatusNotModified {
  5455  		if res.Body != nil {
  5456  			res.Body.Close()
  5457  		}
  5458  		return nil, gensupport.WrapError(&googleapi.Error{
  5459  			Code:   res.StatusCode,
  5460  			Header: res.Header,
  5461  		})
  5462  	}
  5463  	if err != nil {
  5464  		return nil, err
  5465  	}
  5466  	defer googleapi.CloseBody(res)
  5467  	if err := googleapi.CheckResponse(res); err != nil {
  5468  		return nil, gensupport.WrapError(err)
  5469  	}
  5470  	ret := &Operation{
  5471  		ServerResponse: googleapi.ServerResponse{
  5472  			Header:         res.Header,
  5473  			HTTPStatusCode: res.StatusCode,
  5474  		},
  5475  	}
  5476  	target := &ret
  5477  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5478  		return nil, err
  5479  	}
  5480  	return ret, nil
  5481  }
  5482  
  5483  type ProjectsLocationsAssetsAggregateValuesCall struct {
  5484  	s                            *Service
  5485  	parent                       string
  5486  	aggregateassetsvaluesrequest *AggregateAssetsValuesRequest
  5487  	urlParams_                   gensupport.URLParams
  5488  	ctx_                         context.Context
  5489  	header_                      http.Header
  5490  }
  5491  
  5492  // AggregateValues: Aggregates the requested fields based on provided function.
  5493  //
  5494  // - parent: Parent value for `AggregateAssetsValuesRequest`.
  5495  func (r *ProjectsLocationsAssetsService) AggregateValues(parent string, aggregateassetsvaluesrequest *AggregateAssetsValuesRequest) *ProjectsLocationsAssetsAggregateValuesCall {
  5496  	c := &ProjectsLocationsAssetsAggregateValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5497  	c.parent = parent
  5498  	c.aggregateassetsvaluesrequest = aggregateassetsvaluesrequest
  5499  	return c
  5500  }
  5501  
  5502  // Fields allows partial responses to be retrieved. See
  5503  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5504  // details.
  5505  func (c *ProjectsLocationsAssetsAggregateValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsAggregateValuesCall {
  5506  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5507  	return c
  5508  }
  5509  
  5510  // Context sets the context to be used in this call's Do method.
  5511  func (c *ProjectsLocationsAssetsAggregateValuesCall) Context(ctx context.Context) *ProjectsLocationsAssetsAggregateValuesCall {
  5512  	c.ctx_ = ctx
  5513  	return c
  5514  }
  5515  
  5516  // Header returns a http.Header that can be modified by the caller to add
  5517  // headers to the request.
  5518  func (c *ProjectsLocationsAssetsAggregateValuesCall) Header() http.Header {
  5519  	if c.header_ == nil {
  5520  		c.header_ = make(http.Header)
  5521  	}
  5522  	return c.header_
  5523  }
  5524  
  5525  func (c *ProjectsLocationsAssetsAggregateValuesCall) doRequest(alt string) (*http.Response, error) {
  5526  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5527  	var body io.Reader = nil
  5528  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.aggregateassetsvaluesrequest)
  5529  	if err != nil {
  5530  		return nil, err
  5531  	}
  5532  	c.urlParams_.Set("alt", alt)
  5533  	c.urlParams_.Set("prettyPrint", "false")
  5534  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:aggregateValues")
  5535  	urls += "?" + c.urlParams_.Encode()
  5536  	req, err := http.NewRequest("POST", urls, body)
  5537  	if err != nil {
  5538  		return nil, err
  5539  	}
  5540  	req.Header = reqHeaders
  5541  	googleapi.Expand(req.URL, map[string]string{
  5542  		"parent": c.parent,
  5543  	})
  5544  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5545  }
  5546  
  5547  // Do executes the "migrationcenter.projects.locations.assets.aggregateValues" call.
  5548  // Any non-2xx status code is an error. Response headers are in either
  5549  // *AggregateAssetsValuesResponse.ServerResponse.Header or (if a response was
  5550  // returned at all) in error.(*googleapi.Error).Header. Use
  5551  // googleapi.IsNotModified to check whether the returned error was because
  5552  // http.StatusNotModified was returned.
  5553  func (c *ProjectsLocationsAssetsAggregateValuesCall) Do(opts ...googleapi.CallOption) (*AggregateAssetsValuesResponse, error) {
  5554  	gensupport.SetOptions(c.urlParams_, opts...)
  5555  	res, err := c.doRequest("json")
  5556  	if res != nil && res.StatusCode == http.StatusNotModified {
  5557  		if res.Body != nil {
  5558  			res.Body.Close()
  5559  		}
  5560  		return nil, gensupport.WrapError(&googleapi.Error{
  5561  			Code:   res.StatusCode,
  5562  			Header: res.Header,
  5563  		})
  5564  	}
  5565  	if err != nil {
  5566  		return nil, err
  5567  	}
  5568  	defer googleapi.CloseBody(res)
  5569  	if err := googleapi.CheckResponse(res); err != nil {
  5570  		return nil, gensupport.WrapError(err)
  5571  	}
  5572  	ret := &AggregateAssetsValuesResponse{
  5573  		ServerResponse: googleapi.ServerResponse{
  5574  			Header:         res.Header,
  5575  			HTTPStatusCode: res.StatusCode,
  5576  		},
  5577  	}
  5578  	target := &ret
  5579  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5580  		return nil, err
  5581  	}
  5582  	return ret, nil
  5583  }
  5584  
  5585  type ProjectsLocationsAssetsBatchDeleteCall struct {
  5586  	s                        *Service
  5587  	parent                   string
  5588  	batchdeleteassetsrequest *BatchDeleteAssetsRequest
  5589  	urlParams_               gensupport.URLParams
  5590  	ctx_                     context.Context
  5591  	header_                  http.Header
  5592  }
  5593  
  5594  // BatchDelete: Deletes list of Assets.
  5595  //
  5596  // - parent: Parent value for batch asset delete.
  5597  func (r *ProjectsLocationsAssetsService) BatchDelete(parent string, batchdeleteassetsrequest *BatchDeleteAssetsRequest) *ProjectsLocationsAssetsBatchDeleteCall {
  5598  	c := &ProjectsLocationsAssetsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5599  	c.parent = parent
  5600  	c.batchdeleteassetsrequest = batchdeleteassetsrequest
  5601  	return c
  5602  }
  5603  
  5604  // Fields allows partial responses to be retrieved. See
  5605  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5606  // details.
  5607  func (c *ProjectsLocationsAssetsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsBatchDeleteCall {
  5608  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5609  	return c
  5610  }
  5611  
  5612  // Context sets the context to be used in this call's Do method.
  5613  func (c *ProjectsLocationsAssetsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsBatchDeleteCall {
  5614  	c.ctx_ = ctx
  5615  	return c
  5616  }
  5617  
  5618  // Header returns a http.Header that can be modified by the caller to add
  5619  // headers to the request.
  5620  func (c *ProjectsLocationsAssetsBatchDeleteCall) Header() http.Header {
  5621  	if c.header_ == nil {
  5622  		c.header_ = make(http.Header)
  5623  	}
  5624  	return c.header_
  5625  }
  5626  
  5627  func (c *ProjectsLocationsAssetsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
  5628  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5629  	var body io.Reader = nil
  5630  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchdeleteassetsrequest)
  5631  	if err != nil {
  5632  		return nil, err
  5633  	}
  5634  	c.urlParams_.Set("alt", alt)
  5635  	c.urlParams_.Set("prettyPrint", "false")
  5636  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:batchDelete")
  5637  	urls += "?" + c.urlParams_.Encode()
  5638  	req, err := http.NewRequest("POST", urls, body)
  5639  	if err != nil {
  5640  		return nil, err
  5641  	}
  5642  	req.Header = reqHeaders
  5643  	googleapi.Expand(req.URL, map[string]string{
  5644  		"parent": c.parent,
  5645  	})
  5646  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5647  }
  5648  
  5649  // Do executes the "migrationcenter.projects.locations.assets.batchDelete" call.
  5650  // Any non-2xx status code is an error. Response headers are in either
  5651  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  5652  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5653  // whether the returned error was because http.StatusNotModified was returned.
  5654  func (c *ProjectsLocationsAssetsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  5655  	gensupport.SetOptions(c.urlParams_, opts...)
  5656  	res, err := c.doRequest("json")
  5657  	if res != nil && res.StatusCode == http.StatusNotModified {
  5658  		if res.Body != nil {
  5659  			res.Body.Close()
  5660  		}
  5661  		return nil, gensupport.WrapError(&googleapi.Error{
  5662  			Code:   res.StatusCode,
  5663  			Header: res.Header,
  5664  		})
  5665  	}
  5666  	if err != nil {
  5667  		return nil, err
  5668  	}
  5669  	defer googleapi.CloseBody(res)
  5670  	if err := googleapi.CheckResponse(res); err != nil {
  5671  		return nil, gensupport.WrapError(err)
  5672  	}
  5673  	ret := &Empty{
  5674  		ServerResponse: googleapi.ServerResponse{
  5675  			Header:         res.Header,
  5676  			HTTPStatusCode: res.StatusCode,
  5677  		},
  5678  	}
  5679  	target := &ret
  5680  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5681  		return nil, err
  5682  	}
  5683  	return ret, nil
  5684  }
  5685  
  5686  type ProjectsLocationsAssetsBatchUpdateCall struct {
  5687  	s                        *Service
  5688  	parent                   string
  5689  	batchupdateassetsrequest *BatchUpdateAssetsRequest
  5690  	urlParams_               gensupport.URLParams
  5691  	ctx_                     context.Context
  5692  	header_                  http.Header
  5693  }
  5694  
  5695  // BatchUpdate: Updates the parameters of a list of assets.
  5696  //
  5697  // - parent: Parent value for batch asset update.
  5698  func (r *ProjectsLocationsAssetsService) BatchUpdate(parent string, batchupdateassetsrequest *BatchUpdateAssetsRequest) *ProjectsLocationsAssetsBatchUpdateCall {
  5699  	c := &ProjectsLocationsAssetsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5700  	c.parent = parent
  5701  	c.batchupdateassetsrequest = batchupdateassetsrequest
  5702  	return c
  5703  }
  5704  
  5705  // Fields allows partial responses to be retrieved. See
  5706  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5707  // details.
  5708  func (c *ProjectsLocationsAssetsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsBatchUpdateCall {
  5709  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5710  	return c
  5711  }
  5712  
  5713  // Context sets the context to be used in this call's Do method.
  5714  func (c *ProjectsLocationsAssetsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAssetsBatchUpdateCall {
  5715  	c.ctx_ = ctx
  5716  	return c
  5717  }
  5718  
  5719  // Header returns a http.Header that can be modified by the caller to add
  5720  // headers to the request.
  5721  func (c *ProjectsLocationsAssetsBatchUpdateCall) Header() http.Header {
  5722  	if c.header_ == nil {
  5723  		c.header_ = make(http.Header)
  5724  	}
  5725  	return c.header_
  5726  }
  5727  
  5728  func (c *ProjectsLocationsAssetsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
  5729  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5730  	var body io.Reader = nil
  5731  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdateassetsrequest)
  5732  	if err != nil {
  5733  		return nil, err
  5734  	}
  5735  	c.urlParams_.Set("alt", alt)
  5736  	c.urlParams_.Set("prettyPrint", "false")
  5737  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:batchUpdate")
  5738  	urls += "?" + c.urlParams_.Encode()
  5739  	req, err := http.NewRequest("POST", urls, body)
  5740  	if err != nil {
  5741  		return nil, err
  5742  	}
  5743  	req.Header = reqHeaders
  5744  	googleapi.Expand(req.URL, map[string]string{
  5745  		"parent": c.parent,
  5746  	})
  5747  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5748  }
  5749  
  5750  // Do executes the "migrationcenter.projects.locations.assets.batchUpdate" call.
  5751  // Any non-2xx status code is an error. Response headers are in either
  5752  // *BatchUpdateAssetsResponse.ServerResponse.Header or (if a response was
  5753  // returned at all) in error.(*googleapi.Error).Header. Use
  5754  // googleapi.IsNotModified to check whether the returned error was because
  5755  // http.StatusNotModified was returned.
  5756  func (c *ProjectsLocationsAssetsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateAssetsResponse, error) {
  5757  	gensupport.SetOptions(c.urlParams_, opts...)
  5758  	res, err := c.doRequest("json")
  5759  	if res != nil && res.StatusCode == http.StatusNotModified {
  5760  		if res.Body != nil {
  5761  			res.Body.Close()
  5762  		}
  5763  		return nil, gensupport.WrapError(&googleapi.Error{
  5764  			Code:   res.StatusCode,
  5765  			Header: res.Header,
  5766  		})
  5767  	}
  5768  	if err != nil {
  5769  		return nil, err
  5770  	}
  5771  	defer googleapi.CloseBody(res)
  5772  	if err := googleapi.CheckResponse(res); err != nil {
  5773  		return nil, gensupport.WrapError(err)
  5774  	}
  5775  	ret := &BatchUpdateAssetsResponse{
  5776  		ServerResponse: googleapi.ServerResponse{
  5777  			Header:         res.Header,
  5778  			HTTPStatusCode: res.StatusCode,
  5779  		},
  5780  	}
  5781  	target := &ret
  5782  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5783  		return nil, err
  5784  	}
  5785  	return ret, nil
  5786  }
  5787  
  5788  type ProjectsLocationsAssetsDeleteCall struct {
  5789  	s          *Service
  5790  	name       string
  5791  	urlParams_ gensupport.URLParams
  5792  	ctx_       context.Context
  5793  	header_    http.Header
  5794  }
  5795  
  5796  // Delete: Deletes an asset.
  5797  //
  5798  // - name: Name of the resource.
  5799  func (r *ProjectsLocationsAssetsService) Delete(name string) *ProjectsLocationsAssetsDeleteCall {
  5800  	c := &ProjectsLocationsAssetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5801  	c.name = name
  5802  	return c
  5803  }
  5804  
  5805  // RequestId sets the optional parameter "requestId": An optional request ID to
  5806  // identify requests. Specify a unique request ID so that if you must retry
  5807  // your request, the server will know to ignore the request if it has already
  5808  // been completed. The server will guarantee that for at least 60 minutes after
  5809  // the first request. For example, consider a situation where you make an
  5810  // initial request and the request times out. If you make the request again
  5811  // with the same request ID, the server can check if original operation with
  5812  // the same request ID was received, and if so, will ignore the second request.
  5813  // This prevents clients from accidentally creating duplicate commitments. The
  5814  // request ID must be a valid UUID with the exception that zero UUID is not
  5815  // supported (00000000-0000-0000-0000-000000000000).
  5816  func (c *ProjectsLocationsAssetsDeleteCall) RequestId(requestId string) *ProjectsLocationsAssetsDeleteCall {
  5817  	c.urlParams_.Set("requestId", requestId)
  5818  	return c
  5819  }
  5820  
  5821  // Fields allows partial responses to be retrieved. See
  5822  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5823  // details.
  5824  func (c *ProjectsLocationsAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsDeleteCall {
  5825  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5826  	return c
  5827  }
  5828  
  5829  // Context sets the context to be used in this call's Do method.
  5830  func (c *ProjectsLocationsAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsDeleteCall {
  5831  	c.ctx_ = ctx
  5832  	return c
  5833  }
  5834  
  5835  // Header returns a http.Header that can be modified by the caller to add
  5836  // headers to the request.
  5837  func (c *ProjectsLocationsAssetsDeleteCall) Header() http.Header {
  5838  	if c.header_ == nil {
  5839  		c.header_ = make(http.Header)
  5840  	}
  5841  	return c.header_
  5842  }
  5843  
  5844  func (c *ProjectsLocationsAssetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5845  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5846  	var body io.Reader = nil
  5847  	c.urlParams_.Set("alt", alt)
  5848  	c.urlParams_.Set("prettyPrint", "false")
  5849  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5850  	urls += "?" + c.urlParams_.Encode()
  5851  	req, err := http.NewRequest("DELETE", urls, body)
  5852  	if err != nil {
  5853  		return nil, err
  5854  	}
  5855  	req.Header = reqHeaders
  5856  	googleapi.Expand(req.URL, map[string]string{
  5857  		"name": c.name,
  5858  	})
  5859  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5860  }
  5861  
  5862  // Do executes the "migrationcenter.projects.locations.assets.delete" call.
  5863  // Any non-2xx status code is an error. Response headers are in either
  5864  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  5865  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5866  // whether the returned error was because http.StatusNotModified was returned.
  5867  func (c *ProjectsLocationsAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  5868  	gensupport.SetOptions(c.urlParams_, opts...)
  5869  	res, err := c.doRequest("json")
  5870  	if res != nil && res.StatusCode == http.StatusNotModified {
  5871  		if res.Body != nil {
  5872  			res.Body.Close()
  5873  		}
  5874  		return nil, gensupport.WrapError(&googleapi.Error{
  5875  			Code:   res.StatusCode,
  5876  			Header: res.Header,
  5877  		})
  5878  	}
  5879  	if err != nil {
  5880  		return nil, err
  5881  	}
  5882  	defer googleapi.CloseBody(res)
  5883  	if err := googleapi.CheckResponse(res); err != nil {
  5884  		return nil, gensupport.WrapError(err)
  5885  	}
  5886  	ret := &Empty{
  5887  		ServerResponse: googleapi.ServerResponse{
  5888  			Header:         res.Header,
  5889  			HTTPStatusCode: res.StatusCode,
  5890  		},
  5891  	}
  5892  	target := &ret
  5893  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5894  		return nil, err
  5895  	}
  5896  	return ret, nil
  5897  }
  5898  
  5899  type ProjectsLocationsAssetsGetCall struct {
  5900  	s            *Service
  5901  	name         string
  5902  	urlParams_   gensupport.URLParams
  5903  	ifNoneMatch_ string
  5904  	ctx_         context.Context
  5905  	header_      http.Header
  5906  }
  5907  
  5908  // Get: Gets the details of an asset.
  5909  //
  5910  // - name: Name of the resource.
  5911  func (r *ProjectsLocationsAssetsService) Get(name string) *ProjectsLocationsAssetsGetCall {
  5912  	c := &ProjectsLocationsAssetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5913  	c.name = name
  5914  	return c
  5915  }
  5916  
  5917  // View sets the optional parameter "view": View of the assets. Defaults to
  5918  // BASIC.
  5919  //
  5920  // Possible values:
  5921  //
  5922  //	"ASSET_VIEW_UNSPECIFIED" - The asset view is not specified. The API
  5923  //
  5924  // displays the basic view by default.
  5925  //
  5926  //	"ASSET_VIEW_BASIC" - The asset view includes only basic metadata of the
  5927  //
  5928  // asset.
  5929  //
  5930  //	"ASSET_VIEW_FULL" - The asset view includes all the metadata of an asset
  5931  //
  5932  // and performance data.
  5933  func (c *ProjectsLocationsAssetsGetCall) View(view string) *ProjectsLocationsAssetsGetCall {
  5934  	c.urlParams_.Set("view", view)
  5935  	return c
  5936  }
  5937  
  5938  // Fields allows partial responses to be retrieved. See
  5939  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5940  // details.
  5941  func (c *ProjectsLocationsAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsGetCall {
  5942  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5943  	return c
  5944  }
  5945  
  5946  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5947  // object's ETag matches the given value. This is useful for getting updates
  5948  // only after the object has changed since the last request.
  5949  func (c *ProjectsLocationsAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsGetCall {
  5950  	c.ifNoneMatch_ = entityTag
  5951  	return c
  5952  }
  5953  
  5954  // Context sets the context to be used in this call's Do method.
  5955  func (c *ProjectsLocationsAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsAssetsGetCall {
  5956  	c.ctx_ = ctx
  5957  	return c
  5958  }
  5959  
  5960  // Header returns a http.Header that can be modified by the caller to add
  5961  // headers to the request.
  5962  func (c *ProjectsLocationsAssetsGetCall) Header() http.Header {
  5963  	if c.header_ == nil {
  5964  		c.header_ = make(http.Header)
  5965  	}
  5966  	return c.header_
  5967  }
  5968  
  5969  func (c *ProjectsLocationsAssetsGetCall) doRequest(alt string) (*http.Response, error) {
  5970  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5971  	if c.ifNoneMatch_ != "" {
  5972  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5973  	}
  5974  	var body io.Reader = nil
  5975  	c.urlParams_.Set("alt", alt)
  5976  	c.urlParams_.Set("prettyPrint", "false")
  5977  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5978  	urls += "?" + c.urlParams_.Encode()
  5979  	req, err := http.NewRequest("GET", urls, body)
  5980  	if err != nil {
  5981  		return nil, err
  5982  	}
  5983  	req.Header = reqHeaders
  5984  	googleapi.Expand(req.URL, map[string]string{
  5985  		"name": c.name,
  5986  	})
  5987  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5988  }
  5989  
  5990  // Do executes the "migrationcenter.projects.locations.assets.get" call.
  5991  // Any non-2xx status code is an error. Response headers are in either
  5992  // *Asset.ServerResponse.Header or (if a response was returned at all) in
  5993  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5994  // whether the returned error was because http.StatusNotModified was returned.
  5995  func (c *ProjectsLocationsAssetsGetCall) Do(opts ...googleapi.CallOption) (*Asset, error) {
  5996  	gensupport.SetOptions(c.urlParams_, opts...)
  5997  	res, err := c.doRequest("json")
  5998  	if res != nil && res.StatusCode == http.StatusNotModified {
  5999  		if res.Body != nil {
  6000  			res.Body.Close()
  6001  		}
  6002  		return nil, gensupport.WrapError(&googleapi.Error{
  6003  			Code:   res.StatusCode,
  6004  			Header: res.Header,
  6005  		})
  6006  	}
  6007  	if err != nil {
  6008  		return nil, err
  6009  	}
  6010  	defer googleapi.CloseBody(res)
  6011  	if err := googleapi.CheckResponse(res); err != nil {
  6012  		return nil, gensupport.WrapError(err)
  6013  	}
  6014  	ret := &Asset{
  6015  		ServerResponse: googleapi.ServerResponse{
  6016  			Header:         res.Header,
  6017  			HTTPStatusCode: res.StatusCode,
  6018  		},
  6019  	}
  6020  	target := &ret
  6021  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6022  		return nil, err
  6023  	}
  6024  	return ret, nil
  6025  }
  6026  
  6027  type ProjectsLocationsAssetsListCall struct {
  6028  	s            *Service
  6029  	parent       string
  6030  	urlParams_   gensupport.URLParams
  6031  	ifNoneMatch_ string
  6032  	ctx_         context.Context
  6033  	header_      http.Header
  6034  }
  6035  
  6036  // List: Lists all the assets in a given project and location.
  6037  //
  6038  // - parent: Parent value for `ListAssetsRequest`.
  6039  func (r *ProjectsLocationsAssetsService) List(parent string) *ProjectsLocationsAssetsListCall {
  6040  	c := &ProjectsLocationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6041  	c.parent = parent
  6042  	return c
  6043  }
  6044  
  6045  // Filter sets the optional parameter "filter": Filtering results.
  6046  func (c *ProjectsLocationsAssetsListCall) Filter(filter string) *ProjectsLocationsAssetsListCall {
  6047  	c.urlParams_.Set("filter", filter)
  6048  	return c
  6049  }
  6050  
  6051  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  6052  // https://google.aip.dev/132#ordering for more details.
  6053  func (c *ProjectsLocationsAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsAssetsListCall {
  6054  	c.urlParams_.Set("orderBy", orderBy)
  6055  	return c
  6056  }
  6057  
  6058  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  6059  // may return fewer items than requested. If unspecified, server will pick an
  6060  // appropriate default.
  6061  func (c *ProjectsLocationsAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsAssetsListCall {
  6062  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6063  	return c
  6064  }
  6065  
  6066  // PageToken sets the optional parameter "pageToken": A token identifying a
  6067  // page of results the server should return.
  6068  func (c *ProjectsLocationsAssetsListCall) PageToken(pageToken string) *ProjectsLocationsAssetsListCall {
  6069  	c.urlParams_.Set("pageToken", pageToken)
  6070  	return c
  6071  }
  6072  
  6073  // View sets the optional parameter "view": View of the assets. Defaults to
  6074  // BASIC.
  6075  //
  6076  // Possible values:
  6077  //
  6078  //	"ASSET_VIEW_UNSPECIFIED" - The asset view is not specified. The API
  6079  //
  6080  // displays the basic view by default.
  6081  //
  6082  //	"ASSET_VIEW_BASIC" - The asset view includes only basic metadata of the
  6083  //
  6084  // asset.
  6085  //
  6086  //	"ASSET_VIEW_FULL" - The asset view includes all the metadata of an asset
  6087  //
  6088  // and performance data.
  6089  func (c *ProjectsLocationsAssetsListCall) View(view string) *ProjectsLocationsAssetsListCall {
  6090  	c.urlParams_.Set("view", view)
  6091  	return c
  6092  }
  6093  
  6094  // Fields allows partial responses to be retrieved. See
  6095  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6096  // details.
  6097  func (c *ProjectsLocationsAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsListCall {
  6098  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6099  	return c
  6100  }
  6101  
  6102  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6103  // object's ETag matches the given value. This is useful for getting updates
  6104  // only after the object has changed since the last request.
  6105  func (c *ProjectsLocationsAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsListCall {
  6106  	c.ifNoneMatch_ = entityTag
  6107  	return c
  6108  }
  6109  
  6110  // Context sets the context to be used in this call's Do method.
  6111  func (c *ProjectsLocationsAssetsListCall) Context(ctx context.Context) *ProjectsLocationsAssetsListCall {
  6112  	c.ctx_ = ctx
  6113  	return c
  6114  }
  6115  
  6116  // Header returns a http.Header that can be modified by the caller to add
  6117  // headers to the request.
  6118  func (c *ProjectsLocationsAssetsListCall) Header() http.Header {
  6119  	if c.header_ == nil {
  6120  		c.header_ = make(http.Header)
  6121  	}
  6122  	return c.header_
  6123  }
  6124  
  6125  func (c *ProjectsLocationsAssetsListCall) doRequest(alt string) (*http.Response, error) {
  6126  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6127  	if c.ifNoneMatch_ != "" {
  6128  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6129  	}
  6130  	var body io.Reader = nil
  6131  	c.urlParams_.Set("alt", alt)
  6132  	c.urlParams_.Set("prettyPrint", "false")
  6133  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets")
  6134  	urls += "?" + c.urlParams_.Encode()
  6135  	req, err := http.NewRequest("GET", urls, body)
  6136  	if err != nil {
  6137  		return nil, err
  6138  	}
  6139  	req.Header = reqHeaders
  6140  	googleapi.Expand(req.URL, map[string]string{
  6141  		"parent": c.parent,
  6142  	})
  6143  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6144  }
  6145  
  6146  // Do executes the "migrationcenter.projects.locations.assets.list" call.
  6147  // Any non-2xx status code is an error. Response headers are in either
  6148  // *ListAssetsResponse.ServerResponse.Header or (if a response was returned at
  6149  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6150  // check whether the returned error was because http.StatusNotModified was
  6151  // returned.
  6152  func (c *ProjectsLocationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) {
  6153  	gensupport.SetOptions(c.urlParams_, opts...)
  6154  	res, err := c.doRequest("json")
  6155  	if res != nil && res.StatusCode == http.StatusNotModified {
  6156  		if res.Body != nil {
  6157  			res.Body.Close()
  6158  		}
  6159  		return nil, gensupport.WrapError(&googleapi.Error{
  6160  			Code:   res.StatusCode,
  6161  			Header: res.Header,
  6162  		})
  6163  	}
  6164  	if err != nil {
  6165  		return nil, err
  6166  	}
  6167  	defer googleapi.CloseBody(res)
  6168  	if err := googleapi.CheckResponse(res); err != nil {
  6169  		return nil, gensupport.WrapError(err)
  6170  	}
  6171  	ret := &ListAssetsResponse{
  6172  		ServerResponse: googleapi.ServerResponse{
  6173  			Header:         res.Header,
  6174  			HTTPStatusCode: res.StatusCode,
  6175  		},
  6176  	}
  6177  	target := &ret
  6178  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6179  		return nil, err
  6180  	}
  6181  	return ret, nil
  6182  }
  6183  
  6184  // Pages invokes f for each page of results.
  6185  // A non-nil error returned from f will halt the iteration.
  6186  // The provided context supersedes any context provided to the Context method.
  6187  func (c *ProjectsLocationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error {
  6188  	c.ctx_ = ctx
  6189  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6190  	for {
  6191  		x, err := c.Do()
  6192  		if err != nil {
  6193  			return err
  6194  		}
  6195  		if err := f(x); err != nil {
  6196  			return err
  6197  		}
  6198  		if x.NextPageToken == "" {
  6199  			return nil
  6200  		}
  6201  		c.PageToken(x.NextPageToken)
  6202  	}
  6203  }
  6204  
  6205  type ProjectsLocationsAssetsPatchCall struct {
  6206  	s          *Service
  6207  	name       string
  6208  	asset      *Asset
  6209  	urlParams_ gensupport.URLParams
  6210  	ctx_       context.Context
  6211  	header_    http.Header
  6212  }
  6213  
  6214  // Patch: Updates the parameters of an asset.
  6215  //
  6216  // - name: Output only. The full name of the asset.
  6217  func (r *ProjectsLocationsAssetsService) Patch(name string, asset *Asset) *ProjectsLocationsAssetsPatchCall {
  6218  	c := &ProjectsLocationsAssetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6219  	c.name = name
  6220  	c.asset = asset
  6221  	return c
  6222  }
  6223  
  6224  // RequestId sets the optional parameter "requestId": An optional request ID to
  6225  // identify requests. Specify a unique request ID so that if you must retry
  6226  // your request, the server will know to ignore the request if it has already
  6227  // been completed. The server will guarantee that for at least 60 minutes since
  6228  // the first request. For example, consider a situation where you make an
  6229  // initial request and the request times out. If you make the request again
  6230  // with the same request ID, the server can check if original operation with
  6231  // the same request ID was received, and if so, will ignore the second request.
  6232  // This prevents clients from accidentally creating duplicate commitments. The
  6233  // request ID must be a valid UUID with the exception that zero UUID is not
  6234  // supported (00000000-0000-0000-0000-000000000000).
  6235  func (c *ProjectsLocationsAssetsPatchCall) RequestId(requestId string) *ProjectsLocationsAssetsPatchCall {
  6236  	c.urlParams_.Set("requestId", requestId)
  6237  	return c
  6238  }
  6239  
  6240  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  6241  // used to specify the fields to be overwritten in the `Asset` resource by the
  6242  // update. The values specified in the `update_mask` field are relative to the
  6243  // resource, not the full request. A field will be overwritten if it is in the
  6244  // mask. A single * value in the mask lets you to overwrite all fields.
  6245  func (c *ProjectsLocationsAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAssetsPatchCall {
  6246  	c.urlParams_.Set("updateMask", updateMask)
  6247  	return c
  6248  }
  6249  
  6250  // Fields allows partial responses to be retrieved. See
  6251  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6252  // details.
  6253  func (c *ProjectsLocationsAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsPatchCall {
  6254  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6255  	return c
  6256  }
  6257  
  6258  // Context sets the context to be used in this call's Do method.
  6259  func (c *ProjectsLocationsAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAssetsPatchCall {
  6260  	c.ctx_ = ctx
  6261  	return c
  6262  }
  6263  
  6264  // Header returns a http.Header that can be modified by the caller to add
  6265  // headers to the request.
  6266  func (c *ProjectsLocationsAssetsPatchCall) Header() http.Header {
  6267  	if c.header_ == nil {
  6268  		c.header_ = make(http.Header)
  6269  	}
  6270  	return c.header_
  6271  }
  6272  
  6273  func (c *ProjectsLocationsAssetsPatchCall) doRequest(alt string) (*http.Response, error) {
  6274  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6275  	var body io.Reader = nil
  6276  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.asset)
  6277  	if err != nil {
  6278  		return nil, err
  6279  	}
  6280  	c.urlParams_.Set("alt", alt)
  6281  	c.urlParams_.Set("prettyPrint", "false")
  6282  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6283  	urls += "?" + c.urlParams_.Encode()
  6284  	req, err := http.NewRequest("PATCH", urls, body)
  6285  	if err != nil {
  6286  		return nil, err
  6287  	}
  6288  	req.Header = reqHeaders
  6289  	googleapi.Expand(req.URL, map[string]string{
  6290  		"name": c.name,
  6291  	})
  6292  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6293  }
  6294  
  6295  // Do executes the "migrationcenter.projects.locations.assets.patch" call.
  6296  // Any non-2xx status code is an error. Response headers are in either
  6297  // *Asset.ServerResponse.Header or (if a response was returned at all) in
  6298  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6299  // whether the returned error was because http.StatusNotModified was returned.
  6300  func (c *ProjectsLocationsAssetsPatchCall) Do(opts ...googleapi.CallOption) (*Asset, error) {
  6301  	gensupport.SetOptions(c.urlParams_, opts...)
  6302  	res, err := c.doRequest("json")
  6303  	if res != nil && res.StatusCode == http.StatusNotModified {
  6304  		if res.Body != nil {
  6305  			res.Body.Close()
  6306  		}
  6307  		return nil, gensupport.WrapError(&googleapi.Error{
  6308  			Code:   res.StatusCode,
  6309  			Header: res.Header,
  6310  		})
  6311  	}
  6312  	if err != nil {
  6313  		return nil, err
  6314  	}
  6315  	defer googleapi.CloseBody(res)
  6316  	if err := googleapi.CheckResponse(res); err != nil {
  6317  		return nil, gensupport.WrapError(err)
  6318  	}
  6319  	ret := &Asset{
  6320  		ServerResponse: googleapi.ServerResponse{
  6321  			Header:         res.Header,
  6322  			HTTPStatusCode: res.StatusCode,
  6323  		},
  6324  	}
  6325  	target := &ret
  6326  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6327  		return nil, err
  6328  	}
  6329  	return ret, nil
  6330  }
  6331  
  6332  type ProjectsLocationsAssetsReportAssetFramesCall struct {
  6333  	s          *Service
  6334  	parent     string
  6335  	frames     *Frames
  6336  	urlParams_ gensupport.URLParams
  6337  	ctx_       context.Context
  6338  	header_    http.Header
  6339  }
  6340  
  6341  // ReportAssetFrames: Reports a set of frames.
  6342  //
  6343  // - parent: Parent of the resource.
  6344  func (r *ProjectsLocationsAssetsService) ReportAssetFrames(parent string, frames *Frames) *ProjectsLocationsAssetsReportAssetFramesCall {
  6345  	c := &ProjectsLocationsAssetsReportAssetFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6346  	c.parent = parent
  6347  	c.frames = frames
  6348  	return c
  6349  }
  6350  
  6351  // Source sets the optional parameter "source": Required. Reference to a
  6352  // source.
  6353  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Source(source string) *ProjectsLocationsAssetsReportAssetFramesCall {
  6354  	c.urlParams_.Set("source", source)
  6355  	return c
  6356  }
  6357  
  6358  // Fields allows partial responses to be retrieved. See
  6359  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6360  // details.
  6361  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsReportAssetFramesCall {
  6362  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6363  	return c
  6364  }
  6365  
  6366  // Context sets the context to be used in this call's Do method.
  6367  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Context(ctx context.Context) *ProjectsLocationsAssetsReportAssetFramesCall {
  6368  	c.ctx_ = ctx
  6369  	return c
  6370  }
  6371  
  6372  // Header returns a http.Header that can be modified by the caller to add
  6373  // headers to the request.
  6374  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Header() http.Header {
  6375  	if c.header_ == nil {
  6376  		c.header_ = make(http.Header)
  6377  	}
  6378  	return c.header_
  6379  }
  6380  
  6381  func (c *ProjectsLocationsAssetsReportAssetFramesCall) doRequest(alt string) (*http.Response, error) {
  6382  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6383  	var body io.Reader = nil
  6384  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.frames)
  6385  	if err != nil {
  6386  		return nil, err
  6387  	}
  6388  	c.urlParams_.Set("alt", alt)
  6389  	c.urlParams_.Set("prettyPrint", "false")
  6390  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets:reportAssetFrames")
  6391  	urls += "?" + c.urlParams_.Encode()
  6392  	req, err := http.NewRequest("POST", urls, body)
  6393  	if err != nil {
  6394  		return nil, err
  6395  	}
  6396  	req.Header = reqHeaders
  6397  	googleapi.Expand(req.URL, map[string]string{
  6398  		"parent": c.parent,
  6399  	})
  6400  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6401  }
  6402  
  6403  // Do executes the "migrationcenter.projects.locations.assets.reportAssetFrames" call.
  6404  // Any non-2xx status code is an error. Response headers are in either
  6405  // *ReportAssetFramesResponse.ServerResponse.Header or (if a response was
  6406  // returned at all) in error.(*googleapi.Error).Header. Use
  6407  // googleapi.IsNotModified to check whether the returned error was because
  6408  // http.StatusNotModified was returned.
  6409  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Do(opts ...googleapi.CallOption) (*ReportAssetFramesResponse, error) {
  6410  	gensupport.SetOptions(c.urlParams_, opts...)
  6411  	res, err := c.doRequest("json")
  6412  	if res != nil && res.StatusCode == http.StatusNotModified {
  6413  		if res.Body != nil {
  6414  			res.Body.Close()
  6415  		}
  6416  		return nil, gensupport.WrapError(&googleapi.Error{
  6417  			Code:   res.StatusCode,
  6418  			Header: res.Header,
  6419  		})
  6420  	}
  6421  	if err != nil {
  6422  		return nil, err
  6423  	}
  6424  	defer googleapi.CloseBody(res)
  6425  	if err := googleapi.CheckResponse(res); err != nil {
  6426  		return nil, gensupport.WrapError(err)
  6427  	}
  6428  	ret := &ReportAssetFramesResponse{
  6429  		ServerResponse: googleapi.ServerResponse{
  6430  			Header:         res.Header,
  6431  			HTTPStatusCode: res.StatusCode,
  6432  		},
  6433  	}
  6434  	target := &ret
  6435  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6436  		return nil, err
  6437  	}
  6438  	return ret, nil
  6439  }
  6440  
  6441  type ProjectsLocationsDiscoveryClientsCreateCall struct {
  6442  	s               *Service
  6443  	parent          string
  6444  	discoveryclient *DiscoveryClient
  6445  	urlParams_      gensupport.URLParams
  6446  	ctx_            context.Context
  6447  	header_         http.Header
  6448  }
  6449  
  6450  // Create: Creates a new discovery client.
  6451  //
  6452  // - parent: Parent resource.
  6453  func (r *ProjectsLocationsDiscoveryClientsService) Create(parent string, discoveryclient *DiscoveryClient) *ProjectsLocationsDiscoveryClientsCreateCall {
  6454  	c := &ProjectsLocationsDiscoveryClientsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6455  	c.parent = parent
  6456  	c.discoveryclient = discoveryclient
  6457  	return c
  6458  }
  6459  
  6460  // DiscoveryClientId sets the optional parameter "discoveryClientId": Required.
  6461  // User specified ID for the discovery client. It will become the last
  6462  // component of the discovery client name. The ID must be unique within the
  6463  // project, is restricted to lower-cased letters and has a maximum length of 63
  6464  // characters. The ID must match the regular expression:
  6465  // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  6466  func (c *ProjectsLocationsDiscoveryClientsCreateCall) DiscoveryClientId(discoveryClientId string) *ProjectsLocationsDiscoveryClientsCreateCall {
  6467  	c.urlParams_.Set("discoveryClientId", discoveryClientId)
  6468  	return c
  6469  }
  6470  
  6471  // RequestId sets the optional parameter "requestId": An optional request ID to
  6472  // identify requests. Specify a unique request ID so that if you must retry
  6473  // your request, the server will know to ignore the request if it has already
  6474  // been completed. The server will guarantee that for at least 60 minutes since
  6475  // the first request. For example, consider a situation where you make an
  6476  // initial request and the request times out. If you make the request again
  6477  // with the same request ID, the server can check if original operation with
  6478  // the same request ID was received, and if so, will ignore the second request.
  6479  // This prevents clients from accidentally creating duplicate commitments. The
  6480  // request ID must be a valid UUID with the exception that zero UUID is not
  6481  // supported (00000000-0000-0000-0000-000000000000).
  6482  func (c *ProjectsLocationsDiscoveryClientsCreateCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsCreateCall {
  6483  	c.urlParams_.Set("requestId", requestId)
  6484  	return c
  6485  }
  6486  
  6487  // Fields allows partial responses to be retrieved. See
  6488  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6489  // details.
  6490  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsCreateCall {
  6491  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6492  	return c
  6493  }
  6494  
  6495  // Context sets the context to be used in this call's Do method.
  6496  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsCreateCall {
  6497  	c.ctx_ = ctx
  6498  	return c
  6499  }
  6500  
  6501  // Header returns a http.Header that can be modified by the caller to add
  6502  // headers to the request.
  6503  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Header() http.Header {
  6504  	if c.header_ == nil {
  6505  		c.header_ = make(http.Header)
  6506  	}
  6507  	return c.header_
  6508  }
  6509  
  6510  func (c *ProjectsLocationsDiscoveryClientsCreateCall) doRequest(alt string) (*http.Response, error) {
  6511  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6512  	var body io.Reader = nil
  6513  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoveryclient)
  6514  	if err != nil {
  6515  		return nil, err
  6516  	}
  6517  	c.urlParams_.Set("alt", alt)
  6518  	c.urlParams_.Set("prettyPrint", "false")
  6519  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/discoveryClients")
  6520  	urls += "?" + c.urlParams_.Encode()
  6521  	req, err := http.NewRequest("POST", urls, body)
  6522  	if err != nil {
  6523  		return nil, err
  6524  	}
  6525  	req.Header = reqHeaders
  6526  	googleapi.Expand(req.URL, map[string]string{
  6527  		"parent": c.parent,
  6528  	})
  6529  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6530  }
  6531  
  6532  // Do executes the "migrationcenter.projects.locations.discoveryClients.create" call.
  6533  // Any non-2xx status code is an error. Response headers are in either
  6534  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6535  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6536  // whether the returned error was because http.StatusNotModified was returned.
  6537  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6538  	gensupport.SetOptions(c.urlParams_, opts...)
  6539  	res, err := c.doRequest("json")
  6540  	if res != nil && res.StatusCode == http.StatusNotModified {
  6541  		if res.Body != nil {
  6542  			res.Body.Close()
  6543  		}
  6544  		return nil, gensupport.WrapError(&googleapi.Error{
  6545  			Code:   res.StatusCode,
  6546  			Header: res.Header,
  6547  		})
  6548  	}
  6549  	if err != nil {
  6550  		return nil, err
  6551  	}
  6552  	defer googleapi.CloseBody(res)
  6553  	if err := googleapi.CheckResponse(res); err != nil {
  6554  		return nil, gensupport.WrapError(err)
  6555  	}
  6556  	ret := &Operation{
  6557  		ServerResponse: googleapi.ServerResponse{
  6558  			Header:         res.Header,
  6559  			HTTPStatusCode: res.StatusCode,
  6560  		},
  6561  	}
  6562  	target := &ret
  6563  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6564  		return nil, err
  6565  	}
  6566  	return ret, nil
  6567  }
  6568  
  6569  type ProjectsLocationsDiscoveryClientsDeleteCall struct {
  6570  	s          *Service
  6571  	name       string
  6572  	urlParams_ gensupport.URLParams
  6573  	ctx_       context.Context
  6574  	header_    http.Header
  6575  }
  6576  
  6577  // Delete: Deletes a discovery client.
  6578  //
  6579  // - name: The discovery client name.
  6580  func (r *ProjectsLocationsDiscoveryClientsService) Delete(name string) *ProjectsLocationsDiscoveryClientsDeleteCall {
  6581  	c := &ProjectsLocationsDiscoveryClientsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6582  	c.name = name
  6583  	return c
  6584  }
  6585  
  6586  // RequestId sets the optional parameter "requestId": An optional request ID to
  6587  // identify requests. Specify a unique request ID so that if you must retry
  6588  // your request, the server will know to ignore the request if it has already
  6589  // been completed. The server will guarantee that for at least 60 minutes after
  6590  // the first request. For example, consider a situation where you make an
  6591  // initial request and the request times out. If you make the request again
  6592  // with the same request ID, the server can check if original operation with
  6593  // the same request ID was received, and if so, will ignore the second request.
  6594  // This prevents clients from accidentally creating duplicate commitments. The
  6595  // request ID must be a valid UUID with the exception that zero UUID is not
  6596  // supported (00000000-0000-0000-0000-000000000000).
  6597  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsDeleteCall {
  6598  	c.urlParams_.Set("requestId", requestId)
  6599  	return c
  6600  }
  6601  
  6602  // Fields allows partial responses to be retrieved. See
  6603  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6604  // details.
  6605  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsDeleteCall {
  6606  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6607  	return c
  6608  }
  6609  
  6610  // Context sets the context to be used in this call's Do method.
  6611  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsDeleteCall {
  6612  	c.ctx_ = ctx
  6613  	return c
  6614  }
  6615  
  6616  // Header returns a http.Header that can be modified by the caller to add
  6617  // headers to the request.
  6618  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Header() http.Header {
  6619  	if c.header_ == nil {
  6620  		c.header_ = make(http.Header)
  6621  	}
  6622  	return c.header_
  6623  }
  6624  
  6625  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6627  	var body io.Reader = nil
  6628  	c.urlParams_.Set("alt", alt)
  6629  	c.urlParams_.Set("prettyPrint", "false")
  6630  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6631  	urls += "?" + c.urlParams_.Encode()
  6632  	req, err := http.NewRequest("DELETE", urls, body)
  6633  	if err != nil {
  6634  		return nil, err
  6635  	}
  6636  	req.Header = reqHeaders
  6637  	googleapi.Expand(req.URL, map[string]string{
  6638  		"name": c.name,
  6639  	})
  6640  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6641  }
  6642  
  6643  // Do executes the "migrationcenter.projects.locations.discoveryClients.delete" call.
  6644  // Any non-2xx status code is an error. Response headers are in either
  6645  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6646  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6647  // whether the returned error was because http.StatusNotModified was returned.
  6648  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6649  	gensupport.SetOptions(c.urlParams_, opts...)
  6650  	res, err := c.doRequest("json")
  6651  	if res != nil && res.StatusCode == http.StatusNotModified {
  6652  		if res.Body != nil {
  6653  			res.Body.Close()
  6654  		}
  6655  		return nil, gensupport.WrapError(&googleapi.Error{
  6656  			Code:   res.StatusCode,
  6657  			Header: res.Header,
  6658  		})
  6659  	}
  6660  	if err != nil {
  6661  		return nil, err
  6662  	}
  6663  	defer googleapi.CloseBody(res)
  6664  	if err := googleapi.CheckResponse(res); err != nil {
  6665  		return nil, gensupport.WrapError(err)
  6666  	}
  6667  	ret := &Operation{
  6668  		ServerResponse: googleapi.ServerResponse{
  6669  			Header:         res.Header,
  6670  			HTTPStatusCode: res.StatusCode,
  6671  		},
  6672  	}
  6673  	target := &ret
  6674  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6675  		return nil, err
  6676  	}
  6677  	return ret, nil
  6678  }
  6679  
  6680  type ProjectsLocationsDiscoveryClientsGetCall struct {
  6681  	s            *Service
  6682  	name         string
  6683  	urlParams_   gensupport.URLParams
  6684  	ifNoneMatch_ string
  6685  	ctx_         context.Context
  6686  	header_      http.Header
  6687  }
  6688  
  6689  // Get: Gets the details of a discovery client.
  6690  //
  6691  // - name: The discovery client name.
  6692  func (r *ProjectsLocationsDiscoveryClientsService) Get(name string) *ProjectsLocationsDiscoveryClientsGetCall {
  6693  	c := &ProjectsLocationsDiscoveryClientsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6694  	c.name = name
  6695  	return c
  6696  }
  6697  
  6698  // Fields allows partial responses to be retrieved. See
  6699  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6700  // details.
  6701  func (c *ProjectsLocationsDiscoveryClientsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsGetCall {
  6702  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6703  	return c
  6704  }
  6705  
  6706  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6707  // object's ETag matches the given value. This is useful for getting updates
  6708  // only after the object has changed since the last request.
  6709  func (c *ProjectsLocationsDiscoveryClientsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryClientsGetCall {
  6710  	c.ifNoneMatch_ = entityTag
  6711  	return c
  6712  }
  6713  
  6714  // Context sets the context to be used in this call's Do method.
  6715  func (c *ProjectsLocationsDiscoveryClientsGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsGetCall {
  6716  	c.ctx_ = ctx
  6717  	return c
  6718  }
  6719  
  6720  // Header returns a http.Header that can be modified by the caller to add
  6721  // headers to the request.
  6722  func (c *ProjectsLocationsDiscoveryClientsGetCall) Header() http.Header {
  6723  	if c.header_ == nil {
  6724  		c.header_ = make(http.Header)
  6725  	}
  6726  	return c.header_
  6727  }
  6728  
  6729  func (c *ProjectsLocationsDiscoveryClientsGetCall) doRequest(alt string) (*http.Response, error) {
  6730  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6731  	if c.ifNoneMatch_ != "" {
  6732  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6733  	}
  6734  	var body io.Reader = nil
  6735  	c.urlParams_.Set("alt", alt)
  6736  	c.urlParams_.Set("prettyPrint", "false")
  6737  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6738  	urls += "?" + c.urlParams_.Encode()
  6739  	req, err := http.NewRequest("GET", urls, body)
  6740  	if err != nil {
  6741  		return nil, err
  6742  	}
  6743  	req.Header = reqHeaders
  6744  	googleapi.Expand(req.URL, map[string]string{
  6745  		"name": c.name,
  6746  	})
  6747  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6748  }
  6749  
  6750  // Do executes the "migrationcenter.projects.locations.discoveryClients.get" call.
  6751  // Any non-2xx status code is an error. Response headers are in either
  6752  // *DiscoveryClient.ServerResponse.Header or (if a response was returned at
  6753  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6754  // check whether the returned error was because http.StatusNotModified was
  6755  // returned.
  6756  func (c *ProjectsLocationsDiscoveryClientsGetCall) Do(opts ...googleapi.CallOption) (*DiscoveryClient, error) {
  6757  	gensupport.SetOptions(c.urlParams_, opts...)
  6758  	res, err := c.doRequest("json")
  6759  	if res != nil && res.StatusCode == http.StatusNotModified {
  6760  		if res.Body != nil {
  6761  			res.Body.Close()
  6762  		}
  6763  		return nil, gensupport.WrapError(&googleapi.Error{
  6764  			Code:   res.StatusCode,
  6765  			Header: res.Header,
  6766  		})
  6767  	}
  6768  	if err != nil {
  6769  		return nil, err
  6770  	}
  6771  	defer googleapi.CloseBody(res)
  6772  	if err := googleapi.CheckResponse(res); err != nil {
  6773  		return nil, gensupport.WrapError(err)
  6774  	}
  6775  	ret := &DiscoveryClient{
  6776  		ServerResponse: googleapi.ServerResponse{
  6777  			Header:         res.Header,
  6778  			HTTPStatusCode: res.StatusCode,
  6779  		},
  6780  	}
  6781  	target := &ret
  6782  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6783  		return nil, err
  6784  	}
  6785  	return ret, nil
  6786  }
  6787  
  6788  type ProjectsLocationsDiscoveryClientsListCall struct {
  6789  	s            *Service
  6790  	parent       string
  6791  	urlParams_   gensupport.URLParams
  6792  	ifNoneMatch_ string
  6793  	ctx_         context.Context
  6794  	header_      http.Header
  6795  }
  6796  
  6797  // List: Lists all the discovery clients in a given project and location.
  6798  //
  6799  // - parent: Parent resource.
  6800  func (r *ProjectsLocationsDiscoveryClientsService) List(parent string) *ProjectsLocationsDiscoveryClientsListCall {
  6801  	c := &ProjectsLocationsDiscoveryClientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6802  	c.parent = parent
  6803  	return c
  6804  }
  6805  
  6806  // Filter sets the optional parameter "filter": Filter expression to filter
  6807  // results by.
  6808  func (c *ProjectsLocationsDiscoveryClientsListCall) Filter(filter string) *ProjectsLocationsDiscoveryClientsListCall {
  6809  	c.urlParams_.Set("filter", filter)
  6810  	return c
  6811  }
  6812  
  6813  // OrderBy sets the optional parameter "orderBy": Field to sort by.
  6814  func (c *ProjectsLocationsDiscoveryClientsListCall) OrderBy(orderBy string) *ProjectsLocationsDiscoveryClientsListCall {
  6815  	c.urlParams_.Set("orderBy", orderBy)
  6816  	return c
  6817  }
  6818  
  6819  // PageSize sets the optional parameter "pageSize": The maximum number of items
  6820  // to return. The server may return fewer items than requested. If unspecified,
  6821  // the server will pick an appropriate default value.
  6822  func (c *ProjectsLocationsDiscoveryClientsListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveryClientsListCall {
  6823  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6824  	return c
  6825  }
  6826  
  6827  // PageToken sets the optional parameter "pageToken": A page token, received
  6828  // from a previous `ListDiscoveryClients` call. Provide this to retrieve the
  6829  // subsequent page. When paginating, all other parameters provided to
  6830  // `ListDiscoveryClients` must match the call that provided the page token.
  6831  func (c *ProjectsLocationsDiscoveryClientsListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveryClientsListCall {
  6832  	c.urlParams_.Set("pageToken", pageToken)
  6833  	return c
  6834  }
  6835  
  6836  // Fields allows partial responses to be retrieved. See
  6837  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6838  // details.
  6839  func (c *ProjectsLocationsDiscoveryClientsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsListCall {
  6840  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6841  	return c
  6842  }
  6843  
  6844  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6845  // object's ETag matches the given value. This is useful for getting updates
  6846  // only after the object has changed since the last request.
  6847  func (c *ProjectsLocationsDiscoveryClientsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryClientsListCall {
  6848  	c.ifNoneMatch_ = entityTag
  6849  	return c
  6850  }
  6851  
  6852  // Context sets the context to be used in this call's Do method.
  6853  func (c *ProjectsLocationsDiscoveryClientsListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsListCall {
  6854  	c.ctx_ = ctx
  6855  	return c
  6856  }
  6857  
  6858  // Header returns a http.Header that can be modified by the caller to add
  6859  // headers to the request.
  6860  func (c *ProjectsLocationsDiscoveryClientsListCall) Header() http.Header {
  6861  	if c.header_ == nil {
  6862  		c.header_ = make(http.Header)
  6863  	}
  6864  	return c.header_
  6865  }
  6866  
  6867  func (c *ProjectsLocationsDiscoveryClientsListCall) doRequest(alt string) (*http.Response, error) {
  6868  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6869  	if c.ifNoneMatch_ != "" {
  6870  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6871  	}
  6872  	var body io.Reader = nil
  6873  	c.urlParams_.Set("alt", alt)
  6874  	c.urlParams_.Set("prettyPrint", "false")
  6875  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/discoveryClients")
  6876  	urls += "?" + c.urlParams_.Encode()
  6877  	req, err := http.NewRequest("GET", urls, body)
  6878  	if err != nil {
  6879  		return nil, err
  6880  	}
  6881  	req.Header = reqHeaders
  6882  	googleapi.Expand(req.URL, map[string]string{
  6883  		"parent": c.parent,
  6884  	})
  6885  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6886  }
  6887  
  6888  // Do executes the "migrationcenter.projects.locations.discoveryClients.list" call.
  6889  // Any non-2xx status code is an error. Response headers are in either
  6890  // *ListDiscoveryClientsResponse.ServerResponse.Header or (if a response was
  6891  // returned at all) in error.(*googleapi.Error).Header. Use
  6892  // googleapi.IsNotModified to check whether the returned error was because
  6893  // http.StatusNotModified was returned.
  6894  func (c *ProjectsLocationsDiscoveryClientsListCall) Do(opts ...googleapi.CallOption) (*ListDiscoveryClientsResponse, error) {
  6895  	gensupport.SetOptions(c.urlParams_, opts...)
  6896  	res, err := c.doRequest("json")
  6897  	if res != nil && res.StatusCode == http.StatusNotModified {
  6898  		if res.Body != nil {
  6899  			res.Body.Close()
  6900  		}
  6901  		return nil, gensupport.WrapError(&googleapi.Error{
  6902  			Code:   res.StatusCode,
  6903  			Header: res.Header,
  6904  		})
  6905  	}
  6906  	if err != nil {
  6907  		return nil, err
  6908  	}
  6909  	defer googleapi.CloseBody(res)
  6910  	if err := googleapi.CheckResponse(res); err != nil {
  6911  		return nil, gensupport.WrapError(err)
  6912  	}
  6913  	ret := &ListDiscoveryClientsResponse{
  6914  		ServerResponse: googleapi.ServerResponse{
  6915  			Header:         res.Header,
  6916  			HTTPStatusCode: res.StatusCode,
  6917  		},
  6918  	}
  6919  	target := &ret
  6920  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6921  		return nil, err
  6922  	}
  6923  	return ret, nil
  6924  }
  6925  
  6926  // Pages invokes f for each page of results.
  6927  // A non-nil error returned from f will halt the iteration.
  6928  // The provided context supersedes any context provided to the Context method.
  6929  func (c *ProjectsLocationsDiscoveryClientsListCall) Pages(ctx context.Context, f func(*ListDiscoveryClientsResponse) error) error {
  6930  	c.ctx_ = ctx
  6931  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6932  	for {
  6933  		x, err := c.Do()
  6934  		if err != nil {
  6935  			return err
  6936  		}
  6937  		if err := f(x); err != nil {
  6938  			return err
  6939  		}
  6940  		if x.NextPageToken == "" {
  6941  			return nil
  6942  		}
  6943  		c.PageToken(x.NextPageToken)
  6944  	}
  6945  }
  6946  
  6947  type ProjectsLocationsDiscoveryClientsPatchCall struct {
  6948  	s               *Service
  6949  	name            string
  6950  	discoveryclient *DiscoveryClient
  6951  	urlParams_      gensupport.URLParams
  6952  	ctx_            context.Context
  6953  	header_         http.Header
  6954  }
  6955  
  6956  // Patch: Updates a discovery client.
  6957  //
  6958  // - name: Output only. Identifier. Full name of this discovery client.
  6959  func (r *ProjectsLocationsDiscoveryClientsService) Patch(name string, discoveryclient *DiscoveryClient) *ProjectsLocationsDiscoveryClientsPatchCall {
  6960  	c := &ProjectsLocationsDiscoveryClientsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6961  	c.name = name
  6962  	c.discoveryclient = discoveryclient
  6963  	return c
  6964  }
  6965  
  6966  // RequestId sets the optional parameter "requestId": An optional request ID to
  6967  // identify requests. Specify a unique request ID so that if you must retry
  6968  // your request, the server will know to ignore the request if it has already
  6969  // been completed. The server will guarantee that for at least 60 minutes since
  6970  // the first request. For example, consider a situation where you make an
  6971  // initial request and the request times out. If you make the request again
  6972  // with the same request ID, the server can check if original operation with
  6973  // the same request ID was received, and if so, will ignore the second request.
  6974  // This prevents clients from accidentally creating duplicate commitments. The
  6975  // request ID must be a valid UUID with the exception that zero UUID is not
  6976  // supported (00000000-0000-0000-0000-000000000000).
  6977  func (c *ProjectsLocationsDiscoveryClientsPatchCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsPatchCall {
  6978  	c.urlParams_.Set("requestId", requestId)
  6979  	return c
  6980  }
  6981  
  6982  // UpdateMask sets the optional parameter "updateMask": Required. Update mask
  6983  // is used to specify the fields to be overwritten in the `DiscoveryClient`
  6984  // resource by the update. The values specified in the `update_mask` field are
  6985  // relative to the resource, not the full request. A field will be overwritten
  6986  // if it is in the mask. A single * value in the mask lets you to overwrite all
  6987  // fields.
  6988  func (c *ProjectsLocationsDiscoveryClientsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDiscoveryClientsPatchCall {
  6989  	c.urlParams_.Set("updateMask", updateMask)
  6990  	return c
  6991  }
  6992  
  6993  // Fields allows partial responses to be retrieved. See
  6994  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6995  // details.
  6996  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsPatchCall {
  6997  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6998  	return c
  6999  }
  7000  
  7001  // Context sets the context to be used in this call's Do method.
  7002  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsPatchCall {
  7003  	c.ctx_ = ctx
  7004  	return c
  7005  }
  7006  
  7007  // Header returns a http.Header that can be modified by the caller to add
  7008  // headers to the request.
  7009  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Header() http.Header {
  7010  	if c.header_ == nil {
  7011  		c.header_ = make(http.Header)
  7012  	}
  7013  	return c.header_
  7014  }
  7015  
  7016  func (c *ProjectsLocationsDiscoveryClientsPatchCall) doRequest(alt string) (*http.Response, error) {
  7017  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7018  	var body io.Reader = nil
  7019  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoveryclient)
  7020  	if err != nil {
  7021  		return nil, err
  7022  	}
  7023  	c.urlParams_.Set("alt", alt)
  7024  	c.urlParams_.Set("prettyPrint", "false")
  7025  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7026  	urls += "?" + c.urlParams_.Encode()
  7027  	req, err := http.NewRequest("PATCH", urls, body)
  7028  	if err != nil {
  7029  		return nil, err
  7030  	}
  7031  	req.Header = reqHeaders
  7032  	googleapi.Expand(req.URL, map[string]string{
  7033  		"name": c.name,
  7034  	})
  7035  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7036  }
  7037  
  7038  // Do executes the "migrationcenter.projects.locations.discoveryClients.patch" call.
  7039  // Any non-2xx status code is an error. Response headers are in either
  7040  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7041  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7042  // whether the returned error was because http.StatusNotModified was returned.
  7043  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7044  	gensupport.SetOptions(c.urlParams_, opts...)
  7045  	res, err := c.doRequest("json")
  7046  	if res != nil && res.StatusCode == http.StatusNotModified {
  7047  		if res.Body != nil {
  7048  			res.Body.Close()
  7049  		}
  7050  		return nil, gensupport.WrapError(&googleapi.Error{
  7051  			Code:   res.StatusCode,
  7052  			Header: res.Header,
  7053  		})
  7054  	}
  7055  	if err != nil {
  7056  		return nil, err
  7057  	}
  7058  	defer googleapi.CloseBody(res)
  7059  	if err := googleapi.CheckResponse(res); err != nil {
  7060  		return nil, gensupport.WrapError(err)
  7061  	}
  7062  	ret := &Operation{
  7063  		ServerResponse: googleapi.ServerResponse{
  7064  			Header:         res.Header,
  7065  			HTTPStatusCode: res.StatusCode,
  7066  		},
  7067  	}
  7068  	target := &ret
  7069  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7070  		return nil, err
  7071  	}
  7072  	return ret, nil
  7073  }
  7074  
  7075  type ProjectsLocationsDiscoveryClientsSendHeartbeatCall struct {
  7076  	s                                   *Service
  7077  	name                                string
  7078  	senddiscoveryclientheartbeatrequest *SendDiscoveryClientHeartbeatRequest
  7079  	urlParams_                          gensupport.URLParams
  7080  	ctx_                                context.Context
  7081  	header_                             http.Header
  7082  }
  7083  
  7084  // SendHeartbeat: Sends a discovery client heartbeat. Healthy clients are
  7085  // expected to send heartbeats regularly (normally every few minutes).
  7086  //
  7087  // - name: The discovery client name.
  7088  func (r *ProjectsLocationsDiscoveryClientsService) SendHeartbeat(name string, senddiscoveryclientheartbeatrequest *SendDiscoveryClientHeartbeatRequest) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
  7089  	c := &ProjectsLocationsDiscoveryClientsSendHeartbeatCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7090  	c.name = name
  7091  	c.senddiscoveryclientheartbeatrequest = senddiscoveryclientheartbeatrequest
  7092  	return c
  7093  }
  7094  
  7095  // Fields allows partial responses to be retrieved. See
  7096  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7097  // details.
  7098  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
  7099  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7100  	return c
  7101  }
  7102  
  7103  // Context sets the context to be used in this call's Do method.
  7104  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
  7105  	c.ctx_ = ctx
  7106  	return c
  7107  }
  7108  
  7109  // Header returns a http.Header that can be modified by the caller to add
  7110  // headers to the request.
  7111  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Header() http.Header {
  7112  	if c.header_ == nil {
  7113  		c.header_ = make(http.Header)
  7114  	}
  7115  	return c.header_
  7116  }
  7117  
  7118  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) doRequest(alt string) (*http.Response, error) {
  7119  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7120  	var body io.Reader = nil
  7121  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.senddiscoveryclientheartbeatrequest)
  7122  	if err != nil {
  7123  		return nil, err
  7124  	}
  7125  	c.urlParams_.Set("alt", alt)
  7126  	c.urlParams_.Set("prettyPrint", "false")
  7127  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:sendHeartbeat")
  7128  	urls += "?" + c.urlParams_.Encode()
  7129  	req, err := http.NewRequest("POST", urls, body)
  7130  	if err != nil {
  7131  		return nil, err
  7132  	}
  7133  	req.Header = reqHeaders
  7134  	googleapi.Expand(req.URL, map[string]string{
  7135  		"name": c.name,
  7136  	})
  7137  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7138  }
  7139  
  7140  // Do executes the "migrationcenter.projects.locations.discoveryClients.sendHeartbeat" call.
  7141  // Any non-2xx status code is an error. Response headers are in either
  7142  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7143  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7144  // whether the returned error was because http.StatusNotModified was returned.
  7145  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7146  	gensupport.SetOptions(c.urlParams_, opts...)
  7147  	res, err := c.doRequest("json")
  7148  	if res != nil && res.StatusCode == http.StatusNotModified {
  7149  		if res.Body != nil {
  7150  			res.Body.Close()
  7151  		}
  7152  		return nil, gensupport.WrapError(&googleapi.Error{
  7153  			Code:   res.StatusCode,
  7154  			Header: res.Header,
  7155  		})
  7156  	}
  7157  	if err != nil {
  7158  		return nil, err
  7159  	}
  7160  	defer googleapi.CloseBody(res)
  7161  	if err := googleapi.CheckResponse(res); err != nil {
  7162  		return nil, gensupport.WrapError(err)
  7163  	}
  7164  	ret := &Operation{
  7165  		ServerResponse: googleapi.ServerResponse{
  7166  			Header:         res.Header,
  7167  			HTTPStatusCode: res.StatusCode,
  7168  		},
  7169  	}
  7170  	target := &ret
  7171  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7172  		return nil, err
  7173  	}
  7174  	return ret, nil
  7175  }
  7176  
  7177  type ProjectsLocationsGroupsAddAssetsCall struct {
  7178  	s                       *Service
  7179  	group                   string
  7180  	addassetstogrouprequest *AddAssetsToGroupRequest
  7181  	urlParams_              gensupport.URLParams
  7182  	ctx_                    context.Context
  7183  	header_                 http.Header
  7184  }
  7185  
  7186  // AddAssets: Adds assets to a group.
  7187  //
  7188  // - group: Group reference.
  7189  func (r *ProjectsLocationsGroupsService) AddAssets(group string, addassetstogrouprequest *AddAssetsToGroupRequest) *ProjectsLocationsGroupsAddAssetsCall {
  7190  	c := &ProjectsLocationsGroupsAddAssetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7191  	c.group = group
  7192  	c.addassetstogrouprequest = addassetstogrouprequest
  7193  	return c
  7194  }
  7195  
  7196  // Fields allows partial responses to be retrieved. See
  7197  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7198  // details.
  7199  func (c *ProjectsLocationsGroupsAddAssetsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsAddAssetsCall {
  7200  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7201  	return c
  7202  }
  7203  
  7204  // Context sets the context to be used in this call's Do method.
  7205  func (c *ProjectsLocationsGroupsAddAssetsCall) Context(ctx context.Context) *ProjectsLocationsGroupsAddAssetsCall {
  7206  	c.ctx_ = ctx
  7207  	return c
  7208  }
  7209  
  7210  // Header returns a http.Header that can be modified by the caller to add
  7211  // headers to the request.
  7212  func (c *ProjectsLocationsGroupsAddAssetsCall) Header() http.Header {
  7213  	if c.header_ == nil {
  7214  		c.header_ = make(http.Header)
  7215  	}
  7216  	return c.header_
  7217  }
  7218  
  7219  func (c *ProjectsLocationsGroupsAddAssetsCall) doRequest(alt string) (*http.Response, error) {
  7220  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7221  	var body io.Reader = nil
  7222  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addassetstogrouprequest)
  7223  	if err != nil {
  7224  		return nil, err
  7225  	}
  7226  	c.urlParams_.Set("alt", alt)
  7227  	c.urlParams_.Set("prettyPrint", "false")
  7228  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+group}:addAssets")
  7229  	urls += "?" + c.urlParams_.Encode()
  7230  	req, err := http.NewRequest("POST", urls, body)
  7231  	if err != nil {
  7232  		return nil, err
  7233  	}
  7234  	req.Header = reqHeaders
  7235  	googleapi.Expand(req.URL, map[string]string{
  7236  		"group": c.group,
  7237  	})
  7238  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7239  }
  7240  
  7241  // Do executes the "migrationcenter.projects.locations.groups.addAssets" call.
  7242  // Any non-2xx status code is an error. Response headers are in either
  7243  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7244  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7245  // whether the returned error was because http.StatusNotModified was returned.
  7246  func (c *ProjectsLocationsGroupsAddAssetsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7247  	gensupport.SetOptions(c.urlParams_, opts...)
  7248  	res, err := c.doRequest("json")
  7249  	if res != nil && res.StatusCode == http.StatusNotModified {
  7250  		if res.Body != nil {
  7251  			res.Body.Close()
  7252  		}
  7253  		return nil, gensupport.WrapError(&googleapi.Error{
  7254  			Code:   res.StatusCode,
  7255  			Header: res.Header,
  7256  		})
  7257  	}
  7258  	if err != nil {
  7259  		return nil, err
  7260  	}
  7261  	defer googleapi.CloseBody(res)
  7262  	if err := googleapi.CheckResponse(res); err != nil {
  7263  		return nil, gensupport.WrapError(err)
  7264  	}
  7265  	ret := &Operation{
  7266  		ServerResponse: googleapi.ServerResponse{
  7267  			Header:         res.Header,
  7268  			HTTPStatusCode: res.StatusCode,
  7269  		},
  7270  	}
  7271  	target := &ret
  7272  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7273  		return nil, err
  7274  	}
  7275  	return ret, nil
  7276  }
  7277  
  7278  type ProjectsLocationsGroupsCreateCall struct {
  7279  	s          *Service
  7280  	parent     string
  7281  	group      *Group
  7282  	urlParams_ gensupport.URLParams
  7283  	ctx_       context.Context
  7284  	header_    http.Header
  7285  }
  7286  
  7287  // Create: Creates a new group in a given project and location.
  7288  //
  7289  // - parent: Value for parent.
  7290  func (r *ProjectsLocationsGroupsService) Create(parent string, group *Group) *ProjectsLocationsGroupsCreateCall {
  7291  	c := &ProjectsLocationsGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7292  	c.parent = parent
  7293  	c.group = group
  7294  	return c
  7295  }
  7296  
  7297  // GroupId sets the optional parameter "groupId": Required. User specified ID
  7298  // for the group. It will become the last component of the group name. The ID
  7299  // must be unique within the project, must conform with RFC-1034, is restricted
  7300  // to lower-cased letters, and has a maximum length of 63 characters. The ID
  7301  // must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  7302  func (c *ProjectsLocationsGroupsCreateCall) GroupId(groupId string) *ProjectsLocationsGroupsCreateCall {
  7303  	c.urlParams_.Set("groupId", groupId)
  7304  	return c
  7305  }
  7306  
  7307  // RequestId sets the optional parameter "requestId": An optional request ID to
  7308  // identify requests. Specify a unique request ID so that if you must retry
  7309  // your request, the server will know to ignore the request if it has already
  7310  // been completed. The server will guarantee that for at least 60 minutes since
  7311  // the first request. For example, consider a situation where you make an
  7312  // initial request and the request times out. If you make the request again
  7313  // with the same request ID, the server can check if original operation with
  7314  // the same request ID was received, and if so, will ignore the second request.
  7315  // This prevents clients from accidentally creating duplicate commitments. The
  7316  // request ID must be a valid UUID with the exception that zero UUID is not
  7317  // supported (00000000-0000-0000-0000-000000000000).
  7318  func (c *ProjectsLocationsGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsGroupsCreateCall {
  7319  	c.urlParams_.Set("requestId", requestId)
  7320  	return c
  7321  }
  7322  
  7323  // Fields allows partial responses to be retrieved. See
  7324  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7325  // details.
  7326  func (c *ProjectsLocationsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsCreateCall {
  7327  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7328  	return c
  7329  }
  7330  
  7331  // Context sets the context to be used in this call's Do method.
  7332  func (c *ProjectsLocationsGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsGroupsCreateCall {
  7333  	c.ctx_ = ctx
  7334  	return c
  7335  }
  7336  
  7337  // Header returns a http.Header that can be modified by the caller to add
  7338  // headers to the request.
  7339  func (c *ProjectsLocationsGroupsCreateCall) Header() http.Header {
  7340  	if c.header_ == nil {
  7341  		c.header_ = make(http.Header)
  7342  	}
  7343  	return c.header_
  7344  }
  7345  
  7346  func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
  7347  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7348  	var body io.Reader = nil
  7349  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
  7350  	if err != nil {
  7351  		return nil, err
  7352  	}
  7353  	c.urlParams_.Set("alt", alt)
  7354  	c.urlParams_.Set("prettyPrint", "false")
  7355  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/groups")
  7356  	urls += "?" + c.urlParams_.Encode()
  7357  	req, err := http.NewRequest("POST", urls, body)
  7358  	if err != nil {
  7359  		return nil, err
  7360  	}
  7361  	req.Header = reqHeaders
  7362  	googleapi.Expand(req.URL, map[string]string{
  7363  		"parent": c.parent,
  7364  	})
  7365  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7366  }
  7367  
  7368  // Do executes the "migrationcenter.projects.locations.groups.create" call.
  7369  // Any non-2xx status code is an error. Response headers are in either
  7370  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7371  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7372  // whether the returned error was because http.StatusNotModified was returned.
  7373  func (c *ProjectsLocationsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7374  	gensupport.SetOptions(c.urlParams_, opts...)
  7375  	res, err := c.doRequest("json")
  7376  	if res != nil && res.StatusCode == http.StatusNotModified {
  7377  		if res.Body != nil {
  7378  			res.Body.Close()
  7379  		}
  7380  		return nil, gensupport.WrapError(&googleapi.Error{
  7381  			Code:   res.StatusCode,
  7382  			Header: res.Header,
  7383  		})
  7384  	}
  7385  	if err != nil {
  7386  		return nil, err
  7387  	}
  7388  	defer googleapi.CloseBody(res)
  7389  	if err := googleapi.CheckResponse(res); err != nil {
  7390  		return nil, gensupport.WrapError(err)
  7391  	}
  7392  	ret := &Operation{
  7393  		ServerResponse: googleapi.ServerResponse{
  7394  			Header:         res.Header,
  7395  			HTTPStatusCode: res.StatusCode,
  7396  		},
  7397  	}
  7398  	target := &ret
  7399  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7400  		return nil, err
  7401  	}
  7402  	return ret, nil
  7403  }
  7404  
  7405  type ProjectsLocationsGroupsDeleteCall struct {
  7406  	s          *Service
  7407  	name       string
  7408  	urlParams_ gensupport.URLParams
  7409  	ctx_       context.Context
  7410  	header_    http.Header
  7411  }
  7412  
  7413  // Delete: Deletes a group.
  7414  //
  7415  // - name: Name of the group resource.
  7416  func (r *ProjectsLocationsGroupsService) Delete(name string) *ProjectsLocationsGroupsDeleteCall {
  7417  	c := &ProjectsLocationsGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7418  	c.name = name
  7419  	return c
  7420  }
  7421  
  7422  // RequestId sets the optional parameter "requestId": An optional request ID to
  7423  // identify requests. Specify a unique request ID so that if you must retry
  7424  // your request, the server will know to ignore the request if it has already
  7425  // been completed. The server will guarantee that for at least 60 minutes after
  7426  // the first request. For example, consider a situation where you make an
  7427  // initial request and the request times out. If you make the request again
  7428  // with the same request ID, the server can check if original operation with
  7429  // the same request ID was received, and if so, will ignore the second request.
  7430  // This prevents clients from accidentally creating duplicate commitments. The
  7431  // request ID must be a valid UUID with the exception that zero UUID is not
  7432  // supported (00000000-0000-0000-0000-000000000000).
  7433  func (c *ProjectsLocationsGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsGroupsDeleteCall {
  7434  	c.urlParams_.Set("requestId", requestId)
  7435  	return c
  7436  }
  7437  
  7438  // Fields allows partial responses to be retrieved. See
  7439  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7440  // details.
  7441  func (c *ProjectsLocationsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsDeleteCall {
  7442  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7443  	return c
  7444  }
  7445  
  7446  // Context sets the context to be used in this call's Do method.
  7447  func (c *ProjectsLocationsGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGroupsDeleteCall {
  7448  	c.ctx_ = ctx
  7449  	return c
  7450  }
  7451  
  7452  // Header returns a http.Header that can be modified by the caller to add
  7453  // headers to the request.
  7454  func (c *ProjectsLocationsGroupsDeleteCall) Header() http.Header {
  7455  	if c.header_ == nil {
  7456  		c.header_ = make(http.Header)
  7457  	}
  7458  	return c.header_
  7459  }
  7460  
  7461  func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7462  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7463  	var body io.Reader = nil
  7464  	c.urlParams_.Set("alt", alt)
  7465  	c.urlParams_.Set("prettyPrint", "false")
  7466  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7467  	urls += "?" + c.urlParams_.Encode()
  7468  	req, err := http.NewRequest("DELETE", urls, body)
  7469  	if err != nil {
  7470  		return nil, err
  7471  	}
  7472  	req.Header = reqHeaders
  7473  	googleapi.Expand(req.URL, map[string]string{
  7474  		"name": c.name,
  7475  	})
  7476  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7477  }
  7478  
  7479  // Do executes the "migrationcenter.projects.locations.groups.delete" call.
  7480  // Any non-2xx status code is an error. Response headers are in either
  7481  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7482  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7483  // whether the returned error was because http.StatusNotModified was returned.
  7484  func (c *ProjectsLocationsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7485  	gensupport.SetOptions(c.urlParams_, opts...)
  7486  	res, err := c.doRequest("json")
  7487  	if res != nil && res.StatusCode == http.StatusNotModified {
  7488  		if res.Body != nil {
  7489  			res.Body.Close()
  7490  		}
  7491  		return nil, gensupport.WrapError(&googleapi.Error{
  7492  			Code:   res.StatusCode,
  7493  			Header: res.Header,
  7494  		})
  7495  	}
  7496  	if err != nil {
  7497  		return nil, err
  7498  	}
  7499  	defer googleapi.CloseBody(res)
  7500  	if err := googleapi.CheckResponse(res); err != nil {
  7501  		return nil, gensupport.WrapError(err)
  7502  	}
  7503  	ret := &Operation{
  7504  		ServerResponse: googleapi.ServerResponse{
  7505  			Header:         res.Header,
  7506  			HTTPStatusCode: res.StatusCode,
  7507  		},
  7508  	}
  7509  	target := &ret
  7510  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7511  		return nil, err
  7512  	}
  7513  	return ret, nil
  7514  }
  7515  
  7516  type ProjectsLocationsGroupsGetCall struct {
  7517  	s            *Service
  7518  	name         string
  7519  	urlParams_   gensupport.URLParams
  7520  	ifNoneMatch_ string
  7521  	ctx_         context.Context
  7522  	header_      http.Header
  7523  }
  7524  
  7525  // Get: Gets the details of a group.
  7526  //
  7527  // - name: Name of the resource.
  7528  func (r *ProjectsLocationsGroupsService) Get(name string) *ProjectsLocationsGroupsGetCall {
  7529  	c := &ProjectsLocationsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7530  	c.name = name
  7531  	return c
  7532  }
  7533  
  7534  // Fields allows partial responses to be retrieved. See
  7535  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7536  // details.
  7537  func (c *ProjectsLocationsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsGetCall {
  7538  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7539  	return c
  7540  }
  7541  
  7542  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7543  // object's ETag matches the given value. This is useful for getting updates
  7544  // only after the object has changed since the last request.
  7545  func (c *ProjectsLocationsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsGetCall {
  7546  	c.ifNoneMatch_ = entityTag
  7547  	return c
  7548  }
  7549  
  7550  // Context sets the context to be used in this call's Do method.
  7551  func (c *ProjectsLocationsGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsGroupsGetCall {
  7552  	c.ctx_ = ctx
  7553  	return c
  7554  }
  7555  
  7556  // Header returns a http.Header that can be modified by the caller to add
  7557  // headers to the request.
  7558  func (c *ProjectsLocationsGroupsGetCall) Header() http.Header {
  7559  	if c.header_ == nil {
  7560  		c.header_ = make(http.Header)
  7561  	}
  7562  	return c.header_
  7563  }
  7564  
  7565  func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, error) {
  7566  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7567  	if c.ifNoneMatch_ != "" {
  7568  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7569  	}
  7570  	var body io.Reader = nil
  7571  	c.urlParams_.Set("alt", alt)
  7572  	c.urlParams_.Set("prettyPrint", "false")
  7573  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7574  	urls += "?" + c.urlParams_.Encode()
  7575  	req, err := http.NewRequest("GET", urls, body)
  7576  	if err != nil {
  7577  		return nil, err
  7578  	}
  7579  	req.Header = reqHeaders
  7580  	googleapi.Expand(req.URL, map[string]string{
  7581  		"name": c.name,
  7582  	})
  7583  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7584  }
  7585  
  7586  // Do executes the "migrationcenter.projects.locations.groups.get" call.
  7587  // Any non-2xx status code is an error. Response headers are in either
  7588  // *Group.ServerResponse.Header or (if a response was returned at all) in
  7589  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7590  // whether the returned error was because http.StatusNotModified was returned.
  7591  func (c *ProjectsLocationsGroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error) {
  7592  	gensupport.SetOptions(c.urlParams_, opts...)
  7593  	res, err := c.doRequest("json")
  7594  	if res != nil && res.StatusCode == http.StatusNotModified {
  7595  		if res.Body != nil {
  7596  			res.Body.Close()
  7597  		}
  7598  		return nil, gensupport.WrapError(&googleapi.Error{
  7599  			Code:   res.StatusCode,
  7600  			Header: res.Header,
  7601  		})
  7602  	}
  7603  	if err != nil {
  7604  		return nil, err
  7605  	}
  7606  	defer googleapi.CloseBody(res)
  7607  	if err := googleapi.CheckResponse(res); err != nil {
  7608  		return nil, gensupport.WrapError(err)
  7609  	}
  7610  	ret := &Group{
  7611  		ServerResponse: googleapi.ServerResponse{
  7612  			Header:         res.Header,
  7613  			HTTPStatusCode: res.StatusCode,
  7614  		},
  7615  	}
  7616  	target := &ret
  7617  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7618  		return nil, err
  7619  	}
  7620  	return ret, nil
  7621  }
  7622  
  7623  type ProjectsLocationsGroupsListCall struct {
  7624  	s            *Service
  7625  	parent       string
  7626  	urlParams_   gensupport.URLParams
  7627  	ifNoneMatch_ string
  7628  	ctx_         context.Context
  7629  	header_      http.Header
  7630  }
  7631  
  7632  // List: Lists all groups in a given project and location.
  7633  //
  7634  // - parent: Parent value for `ListGroupsRequest`.
  7635  func (r *ProjectsLocationsGroupsService) List(parent string) *ProjectsLocationsGroupsListCall {
  7636  	c := &ProjectsLocationsGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7637  	c.parent = parent
  7638  	return c
  7639  }
  7640  
  7641  // Filter sets the optional parameter "filter": Filtering results.
  7642  func (c *ProjectsLocationsGroupsListCall) Filter(filter string) *ProjectsLocationsGroupsListCall {
  7643  	c.urlParams_.Set("filter", filter)
  7644  	return c
  7645  }
  7646  
  7647  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  7648  // https://google.aip.dev/132#ordering for more details.
  7649  func (c *ProjectsLocationsGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsGroupsListCall {
  7650  	c.urlParams_.Set("orderBy", orderBy)
  7651  	return c
  7652  }
  7653  
  7654  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  7655  // may return fewer items than requested. If unspecified, server will pick an
  7656  // appropriate default.
  7657  func (c *ProjectsLocationsGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsGroupsListCall {
  7658  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7659  	return c
  7660  }
  7661  
  7662  // PageToken sets the optional parameter "pageToken": A token identifying a
  7663  // page of results the server should return.
  7664  func (c *ProjectsLocationsGroupsListCall) PageToken(pageToken string) *ProjectsLocationsGroupsListCall {
  7665  	c.urlParams_.Set("pageToken", pageToken)
  7666  	return c
  7667  }
  7668  
  7669  // Fields allows partial responses to be retrieved. See
  7670  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7671  // details.
  7672  func (c *ProjectsLocationsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsListCall {
  7673  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7674  	return c
  7675  }
  7676  
  7677  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7678  // object's ETag matches the given value. This is useful for getting updates
  7679  // only after the object has changed since the last request.
  7680  func (c *ProjectsLocationsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsListCall {
  7681  	c.ifNoneMatch_ = entityTag
  7682  	return c
  7683  }
  7684  
  7685  // Context sets the context to be used in this call's Do method.
  7686  func (c *ProjectsLocationsGroupsListCall) Context(ctx context.Context) *ProjectsLocationsGroupsListCall {
  7687  	c.ctx_ = ctx
  7688  	return c
  7689  }
  7690  
  7691  // Header returns a http.Header that can be modified by the caller to add
  7692  // headers to the request.
  7693  func (c *ProjectsLocationsGroupsListCall) Header() http.Header {
  7694  	if c.header_ == nil {
  7695  		c.header_ = make(http.Header)
  7696  	}
  7697  	return c.header_
  7698  }
  7699  
  7700  func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, error) {
  7701  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7702  	if c.ifNoneMatch_ != "" {
  7703  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7704  	}
  7705  	var body io.Reader = nil
  7706  	c.urlParams_.Set("alt", alt)
  7707  	c.urlParams_.Set("prettyPrint", "false")
  7708  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/groups")
  7709  	urls += "?" + c.urlParams_.Encode()
  7710  	req, err := http.NewRequest("GET", urls, body)
  7711  	if err != nil {
  7712  		return nil, err
  7713  	}
  7714  	req.Header = reqHeaders
  7715  	googleapi.Expand(req.URL, map[string]string{
  7716  		"parent": c.parent,
  7717  	})
  7718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7719  }
  7720  
  7721  // Do executes the "migrationcenter.projects.locations.groups.list" call.
  7722  // Any non-2xx status code is an error. Response headers are in either
  7723  // *ListGroupsResponse.ServerResponse.Header or (if a response was returned at
  7724  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7725  // check whether the returned error was because http.StatusNotModified was
  7726  // returned.
  7727  func (c *ProjectsLocationsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, error) {
  7728  	gensupport.SetOptions(c.urlParams_, opts...)
  7729  	res, err := c.doRequest("json")
  7730  	if res != nil && res.StatusCode == http.StatusNotModified {
  7731  		if res.Body != nil {
  7732  			res.Body.Close()
  7733  		}
  7734  		return nil, gensupport.WrapError(&googleapi.Error{
  7735  			Code:   res.StatusCode,
  7736  			Header: res.Header,
  7737  		})
  7738  	}
  7739  	if err != nil {
  7740  		return nil, err
  7741  	}
  7742  	defer googleapi.CloseBody(res)
  7743  	if err := googleapi.CheckResponse(res); err != nil {
  7744  		return nil, gensupport.WrapError(err)
  7745  	}
  7746  	ret := &ListGroupsResponse{
  7747  		ServerResponse: googleapi.ServerResponse{
  7748  			Header:         res.Header,
  7749  			HTTPStatusCode: res.StatusCode,
  7750  		},
  7751  	}
  7752  	target := &ret
  7753  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7754  		return nil, err
  7755  	}
  7756  	return ret, nil
  7757  }
  7758  
  7759  // Pages invokes f for each page of results.
  7760  // A non-nil error returned from f will halt the iteration.
  7761  // The provided context supersedes any context provided to the Context method.
  7762  func (c *ProjectsLocationsGroupsListCall) Pages(ctx context.Context, f func(*ListGroupsResponse) error) error {
  7763  	c.ctx_ = ctx
  7764  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7765  	for {
  7766  		x, err := c.Do()
  7767  		if err != nil {
  7768  			return err
  7769  		}
  7770  		if err := f(x); err != nil {
  7771  			return err
  7772  		}
  7773  		if x.NextPageToken == "" {
  7774  			return nil
  7775  		}
  7776  		c.PageToken(x.NextPageToken)
  7777  	}
  7778  }
  7779  
  7780  type ProjectsLocationsGroupsPatchCall struct {
  7781  	s          *Service
  7782  	name       string
  7783  	group      *Group
  7784  	urlParams_ gensupport.URLParams
  7785  	ctx_       context.Context
  7786  	header_    http.Header
  7787  }
  7788  
  7789  // Patch: Updates the parameters of a group.
  7790  //
  7791  // - name: Output only. The name of the group.
  7792  func (r *ProjectsLocationsGroupsService) Patch(name string, group *Group) *ProjectsLocationsGroupsPatchCall {
  7793  	c := &ProjectsLocationsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7794  	c.name = name
  7795  	c.group = group
  7796  	return c
  7797  }
  7798  
  7799  // RequestId sets the optional parameter "requestId": An optional request ID to
  7800  // identify requests. Specify a unique request ID so that if you must retry
  7801  // your request, the server will know to ignore the request if it has already
  7802  // been completed. The server will guarantee that for at least 60 minutes since
  7803  // the first request. For example, consider a situation where you make an
  7804  // initial request and the request times out. If you make the request again
  7805  // with the same request ID, the server can check if original operation with
  7806  // the same request ID was received, and if so, will ignore the second request.
  7807  // This prevents clients from accidentally creating duplicate commitments. The
  7808  // request ID must be a valid UUID with the exception that zero UUID is not
  7809  // supported (00000000-0000-0000-0000-000000000000).
  7810  func (c *ProjectsLocationsGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsGroupsPatchCall {
  7811  	c.urlParams_.Set("requestId", requestId)
  7812  	return c
  7813  }
  7814  
  7815  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  7816  // used to specify the fields to be overwritten in the `Group` resource by the
  7817  // update. The values specified in the `update_mask` are relative to the
  7818  // resource, not the full request. A field will be overwritten if it is in the
  7819  // mask. A single * value in the mask lets you to overwrite all fields.
  7820  func (c *ProjectsLocationsGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGroupsPatchCall {
  7821  	c.urlParams_.Set("updateMask", updateMask)
  7822  	return c
  7823  }
  7824  
  7825  // Fields allows partial responses to be retrieved. See
  7826  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7827  // details.
  7828  func (c *ProjectsLocationsGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsPatchCall {
  7829  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7830  	return c
  7831  }
  7832  
  7833  // Context sets the context to be used in this call's Do method.
  7834  func (c *ProjectsLocationsGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsGroupsPatchCall {
  7835  	c.ctx_ = ctx
  7836  	return c
  7837  }
  7838  
  7839  // Header returns a http.Header that can be modified by the caller to add
  7840  // headers to the request.
  7841  func (c *ProjectsLocationsGroupsPatchCall) Header() http.Header {
  7842  	if c.header_ == nil {
  7843  		c.header_ = make(http.Header)
  7844  	}
  7845  	return c.header_
  7846  }
  7847  
  7848  func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
  7849  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7850  	var body io.Reader = nil
  7851  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
  7852  	if err != nil {
  7853  		return nil, err
  7854  	}
  7855  	c.urlParams_.Set("alt", alt)
  7856  	c.urlParams_.Set("prettyPrint", "false")
  7857  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7858  	urls += "?" + c.urlParams_.Encode()
  7859  	req, err := http.NewRequest("PATCH", urls, body)
  7860  	if err != nil {
  7861  		return nil, err
  7862  	}
  7863  	req.Header = reqHeaders
  7864  	googleapi.Expand(req.URL, map[string]string{
  7865  		"name": c.name,
  7866  	})
  7867  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7868  }
  7869  
  7870  // Do executes the "migrationcenter.projects.locations.groups.patch" call.
  7871  // Any non-2xx status code is an error. Response headers are in either
  7872  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7873  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7874  // whether the returned error was because http.StatusNotModified was returned.
  7875  func (c *ProjectsLocationsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7876  	gensupport.SetOptions(c.urlParams_, opts...)
  7877  	res, err := c.doRequest("json")
  7878  	if res != nil && res.StatusCode == http.StatusNotModified {
  7879  		if res.Body != nil {
  7880  			res.Body.Close()
  7881  		}
  7882  		return nil, gensupport.WrapError(&googleapi.Error{
  7883  			Code:   res.StatusCode,
  7884  			Header: res.Header,
  7885  		})
  7886  	}
  7887  	if err != nil {
  7888  		return nil, err
  7889  	}
  7890  	defer googleapi.CloseBody(res)
  7891  	if err := googleapi.CheckResponse(res); err != nil {
  7892  		return nil, gensupport.WrapError(err)
  7893  	}
  7894  	ret := &Operation{
  7895  		ServerResponse: googleapi.ServerResponse{
  7896  			Header:         res.Header,
  7897  			HTTPStatusCode: res.StatusCode,
  7898  		},
  7899  	}
  7900  	target := &ret
  7901  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7902  		return nil, err
  7903  	}
  7904  	return ret, nil
  7905  }
  7906  
  7907  type ProjectsLocationsGroupsRemoveAssetsCall struct {
  7908  	s                            *Service
  7909  	group                        string
  7910  	removeassetsfromgrouprequest *RemoveAssetsFromGroupRequest
  7911  	urlParams_                   gensupport.URLParams
  7912  	ctx_                         context.Context
  7913  	header_                      http.Header
  7914  }
  7915  
  7916  // RemoveAssets: Removes assets from a group.
  7917  //
  7918  // - group: Group reference.
  7919  func (r *ProjectsLocationsGroupsService) RemoveAssets(group string, removeassetsfromgrouprequest *RemoveAssetsFromGroupRequest) *ProjectsLocationsGroupsRemoveAssetsCall {
  7920  	c := &ProjectsLocationsGroupsRemoveAssetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7921  	c.group = group
  7922  	c.removeassetsfromgrouprequest = removeassetsfromgrouprequest
  7923  	return c
  7924  }
  7925  
  7926  // Fields allows partial responses to be retrieved. See
  7927  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7928  // details.
  7929  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsRemoveAssetsCall {
  7930  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7931  	return c
  7932  }
  7933  
  7934  // Context sets the context to be used in this call's Do method.
  7935  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Context(ctx context.Context) *ProjectsLocationsGroupsRemoveAssetsCall {
  7936  	c.ctx_ = ctx
  7937  	return c
  7938  }
  7939  
  7940  // Header returns a http.Header that can be modified by the caller to add
  7941  // headers to the request.
  7942  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Header() http.Header {
  7943  	if c.header_ == nil {
  7944  		c.header_ = make(http.Header)
  7945  	}
  7946  	return c.header_
  7947  }
  7948  
  7949  func (c *ProjectsLocationsGroupsRemoveAssetsCall) doRequest(alt string) (*http.Response, error) {
  7950  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7951  	var body io.Reader = nil
  7952  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeassetsfromgrouprequest)
  7953  	if err != nil {
  7954  		return nil, err
  7955  	}
  7956  	c.urlParams_.Set("alt", alt)
  7957  	c.urlParams_.Set("prettyPrint", "false")
  7958  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+group}:removeAssets")
  7959  	urls += "?" + c.urlParams_.Encode()
  7960  	req, err := http.NewRequest("POST", urls, body)
  7961  	if err != nil {
  7962  		return nil, err
  7963  	}
  7964  	req.Header = reqHeaders
  7965  	googleapi.Expand(req.URL, map[string]string{
  7966  		"group": c.group,
  7967  	})
  7968  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7969  }
  7970  
  7971  // Do executes the "migrationcenter.projects.locations.groups.removeAssets" call.
  7972  // Any non-2xx status code is an error. Response headers are in either
  7973  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7974  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7975  // whether the returned error was because http.StatusNotModified was returned.
  7976  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7977  	gensupport.SetOptions(c.urlParams_, opts...)
  7978  	res, err := c.doRequest("json")
  7979  	if res != nil && res.StatusCode == http.StatusNotModified {
  7980  		if res.Body != nil {
  7981  			res.Body.Close()
  7982  		}
  7983  		return nil, gensupport.WrapError(&googleapi.Error{
  7984  			Code:   res.StatusCode,
  7985  			Header: res.Header,
  7986  		})
  7987  	}
  7988  	if err != nil {
  7989  		return nil, err
  7990  	}
  7991  	defer googleapi.CloseBody(res)
  7992  	if err := googleapi.CheckResponse(res); err != nil {
  7993  		return nil, gensupport.WrapError(err)
  7994  	}
  7995  	ret := &Operation{
  7996  		ServerResponse: googleapi.ServerResponse{
  7997  			Header:         res.Header,
  7998  			HTTPStatusCode: res.StatusCode,
  7999  		},
  8000  	}
  8001  	target := &ret
  8002  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8003  		return nil, err
  8004  	}
  8005  	return ret, nil
  8006  }
  8007  
  8008  type ProjectsLocationsImportJobsCreateCall struct {
  8009  	s          *Service
  8010  	parent     string
  8011  	importjob  *ImportJob
  8012  	urlParams_ gensupport.URLParams
  8013  	ctx_       context.Context
  8014  	header_    http.Header
  8015  }
  8016  
  8017  // Create: Creates an import job.
  8018  //
  8019  // - parent: Value for parent.
  8020  func (r *ProjectsLocationsImportJobsService) Create(parent string, importjob *ImportJob) *ProjectsLocationsImportJobsCreateCall {
  8021  	c := &ProjectsLocationsImportJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8022  	c.parent = parent
  8023  	c.importjob = importjob
  8024  	return c
  8025  }
  8026  
  8027  // ImportJobId sets the optional parameter "importJobId": Required. ID of the
  8028  // import job.
  8029  func (c *ProjectsLocationsImportJobsCreateCall) ImportJobId(importJobId string) *ProjectsLocationsImportJobsCreateCall {
  8030  	c.urlParams_.Set("importJobId", importJobId)
  8031  	return c
  8032  }
  8033  
  8034  // RequestId sets the optional parameter "requestId": An optional request ID to
  8035  // identify requests. Specify a unique request ID so that if you must retry
  8036  // your request, the server will know to ignore the request if it has already
  8037  // been completed. The server will guarantee that for at least 60 minutes since
  8038  // the first request. For example, consider a situation where you make an
  8039  // initial request and the request times out. If you make the request again
  8040  // with the same request ID, the server can check if original operation with
  8041  // the same request ID was received, and if so, will ignore the second request.
  8042  // This prevents clients from accidentally creating duplicate commitments. The
  8043  // request ID must be a valid UUID with the exception that zero UUID is not
  8044  // supported (00000000-0000-0000-0000-000000000000).
  8045  func (c *ProjectsLocationsImportJobsCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsCreateCall {
  8046  	c.urlParams_.Set("requestId", requestId)
  8047  	return c
  8048  }
  8049  
  8050  // Fields allows partial responses to be retrieved. See
  8051  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8052  // details.
  8053  func (c *ProjectsLocationsImportJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsCreateCall {
  8054  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8055  	return c
  8056  }
  8057  
  8058  // Context sets the context to be used in this call's Do method.
  8059  func (c *ProjectsLocationsImportJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsCreateCall {
  8060  	c.ctx_ = ctx
  8061  	return c
  8062  }
  8063  
  8064  // Header returns a http.Header that can be modified by the caller to add
  8065  // headers to the request.
  8066  func (c *ProjectsLocationsImportJobsCreateCall) Header() http.Header {
  8067  	if c.header_ == nil {
  8068  		c.header_ = make(http.Header)
  8069  	}
  8070  	return c.header_
  8071  }
  8072  
  8073  func (c *ProjectsLocationsImportJobsCreateCall) doRequest(alt string) (*http.Response, error) {
  8074  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8075  	var body io.Reader = nil
  8076  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importjob)
  8077  	if err != nil {
  8078  		return nil, err
  8079  	}
  8080  	c.urlParams_.Set("alt", alt)
  8081  	c.urlParams_.Set("prettyPrint", "false")
  8082  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/importJobs")
  8083  	urls += "?" + c.urlParams_.Encode()
  8084  	req, err := http.NewRequest("POST", urls, body)
  8085  	if err != nil {
  8086  		return nil, err
  8087  	}
  8088  	req.Header = reqHeaders
  8089  	googleapi.Expand(req.URL, map[string]string{
  8090  		"parent": c.parent,
  8091  	})
  8092  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8093  }
  8094  
  8095  // Do executes the "migrationcenter.projects.locations.importJobs.create" call.
  8096  // Any non-2xx status code is an error. Response headers are in either
  8097  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8098  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8099  // whether the returned error was because http.StatusNotModified was returned.
  8100  func (c *ProjectsLocationsImportJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8101  	gensupport.SetOptions(c.urlParams_, opts...)
  8102  	res, err := c.doRequest("json")
  8103  	if res != nil && res.StatusCode == http.StatusNotModified {
  8104  		if res.Body != nil {
  8105  			res.Body.Close()
  8106  		}
  8107  		return nil, gensupport.WrapError(&googleapi.Error{
  8108  			Code:   res.StatusCode,
  8109  			Header: res.Header,
  8110  		})
  8111  	}
  8112  	if err != nil {
  8113  		return nil, err
  8114  	}
  8115  	defer googleapi.CloseBody(res)
  8116  	if err := googleapi.CheckResponse(res); err != nil {
  8117  		return nil, gensupport.WrapError(err)
  8118  	}
  8119  	ret := &Operation{
  8120  		ServerResponse: googleapi.ServerResponse{
  8121  			Header:         res.Header,
  8122  			HTTPStatusCode: res.StatusCode,
  8123  		},
  8124  	}
  8125  	target := &ret
  8126  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8127  		return nil, err
  8128  	}
  8129  	return ret, nil
  8130  }
  8131  
  8132  type ProjectsLocationsImportJobsDeleteCall struct {
  8133  	s          *Service
  8134  	name       string
  8135  	urlParams_ gensupport.URLParams
  8136  	ctx_       context.Context
  8137  	header_    http.Header
  8138  }
  8139  
  8140  // Delete: Deletes an import job.
  8141  //
  8142  // - name: Name of the resource.
  8143  func (r *ProjectsLocationsImportJobsService) Delete(name string) *ProjectsLocationsImportJobsDeleteCall {
  8144  	c := &ProjectsLocationsImportJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8145  	c.name = name
  8146  	return c
  8147  }
  8148  
  8149  // Force sets the optional parameter "force": If set to `true`, any
  8150  // `ImportDataFiles` of this job will also be deleted If set to `false`, the
  8151  // request only works if the job has no data files.
  8152  func (c *ProjectsLocationsImportJobsDeleteCall) Force(force bool) *ProjectsLocationsImportJobsDeleteCall {
  8153  	c.urlParams_.Set("force", fmt.Sprint(force))
  8154  	return c
  8155  }
  8156  
  8157  // RequestId sets the optional parameter "requestId": An optional request ID to
  8158  // identify requests. Specify a unique request ID so that if you must retry
  8159  // your request, the server will know to ignore the request if it has already
  8160  // been completed. The server will guarantee that for at least 60 minutes after
  8161  // the first request. For example, consider a situation where you make an
  8162  // initial request and the request times out. If you make the request again
  8163  // with the same request ID, the server can check if original operation with
  8164  // the same request ID was received, and if so, will ignore the second request.
  8165  // This prevents clients from accidentally creating duplicate commitments. The
  8166  // request ID must be a valid UUID with the exception that zero UUID is not
  8167  // supported (00000000-0000-0000-0000-000000000000).
  8168  func (c *ProjectsLocationsImportJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsDeleteCall {
  8169  	c.urlParams_.Set("requestId", requestId)
  8170  	return c
  8171  }
  8172  
  8173  // Fields allows partial responses to be retrieved. See
  8174  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8175  // details.
  8176  func (c *ProjectsLocationsImportJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsDeleteCall {
  8177  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8178  	return c
  8179  }
  8180  
  8181  // Context sets the context to be used in this call's Do method.
  8182  func (c *ProjectsLocationsImportJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsDeleteCall {
  8183  	c.ctx_ = ctx
  8184  	return c
  8185  }
  8186  
  8187  // Header returns a http.Header that can be modified by the caller to add
  8188  // headers to the request.
  8189  func (c *ProjectsLocationsImportJobsDeleteCall) Header() http.Header {
  8190  	if c.header_ == nil {
  8191  		c.header_ = make(http.Header)
  8192  	}
  8193  	return c.header_
  8194  }
  8195  
  8196  func (c *ProjectsLocationsImportJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8197  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8198  	var body io.Reader = nil
  8199  	c.urlParams_.Set("alt", alt)
  8200  	c.urlParams_.Set("prettyPrint", "false")
  8201  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8202  	urls += "?" + c.urlParams_.Encode()
  8203  	req, err := http.NewRequest("DELETE", urls, body)
  8204  	if err != nil {
  8205  		return nil, err
  8206  	}
  8207  	req.Header = reqHeaders
  8208  	googleapi.Expand(req.URL, map[string]string{
  8209  		"name": c.name,
  8210  	})
  8211  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8212  }
  8213  
  8214  // Do executes the "migrationcenter.projects.locations.importJobs.delete" call.
  8215  // Any non-2xx status code is an error. Response headers are in either
  8216  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8217  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8218  // whether the returned error was because http.StatusNotModified was returned.
  8219  func (c *ProjectsLocationsImportJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8220  	gensupport.SetOptions(c.urlParams_, opts...)
  8221  	res, err := c.doRequest("json")
  8222  	if res != nil && res.StatusCode == http.StatusNotModified {
  8223  		if res.Body != nil {
  8224  			res.Body.Close()
  8225  		}
  8226  		return nil, gensupport.WrapError(&googleapi.Error{
  8227  			Code:   res.StatusCode,
  8228  			Header: res.Header,
  8229  		})
  8230  	}
  8231  	if err != nil {
  8232  		return nil, err
  8233  	}
  8234  	defer googleapi.CloseBody(res)
  8235  	if err := googleapi.CheckResponse(res); err != nil {
  8236  		return nil, gensupport.WrapError(err)
  8237  	}
  8238  	ret := &Operation{
  8239  		ServerResponse: googleapi.ServerResponse{
  8240  			Header:         res.Header,
  8241  			HTTPStatusCode: res.StatusCode,
  8242  		},
  8243  	}
  8244  	target := &ret
  8245  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8246  		return nil, err
  8247  	}
  8248  	return ret, nil
  8249  }
  8250  
  8251  type ProjectsLocationsImportJobsGetCall struct {
  8252  	s            *Service
  8253  	name         string
  8254  	urlParams_   gensupport.URLParams
  8255  	ifNoneMatch_ string
  8256  	ctx_         context.Context
  8257  	header_      http.Header
  8258  }
  8259  
  8260  // Get: Gets the details of an import job.
  8261  //
  8262  // - name: Name of the resource.
  8263  func (r *ProjectsLocationsImportJobsService) Get(name string) *ProjectsLocationsImportJobsGetCall {
  8264  	c := &ProjectsLocationsImportJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8265  	c.name = name
  8266  	return c
  8267  }
  8268  
  8269  // View sets the optional parameter "view": The level of details of the import
  8270  // job. Default value is FULL.
  8271  //
  8272  // Possible values:
  8273  //
  8274  //	"IMPORT_JOB_VIEW_UNSPECIFIED" - The import job view is not specified. The
  8275  //
  8276  // API displays the basic view by default.
  8277  //
  8278  //	"IMPORT_JOB_VIEW_BASIC" - The import job view includes basic metadata of
  8279  //
  8280  // an import job. This view does not include payload information.
  8281  //
  8282  //	"IMPORT_JOB_VIEW_FULL" - The import job view includes all metadata of an
  8283  //
  8284  // import job.
  8285  func (c *ProjectsLocationsImportJobsGetCall) View(view string) *ProjectsLocationsImportJobsGetCall {
  8286  	c.urlParams_.Set("view", view)
  8287  	return c
  8288  }
  8289  
  8290  // Fields allows partial responses to be retrieved. See
  8291  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8292  // details.
  8293  func (c *ProjectsLocationsImportJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsGetCall {
  8294  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8295  	return c
  8296  }
  8297  
  8298  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8299  // object's ETag matches the given value. This is useful for getting updates
  8300  // only after the object has changed since the last request.
  8301  func (c *ProjectsLocationsImportJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsGetCall {
  8302  	c.ifNoneMatch_ = entityTag
  8303  	return c
  8304  }
  8305  
  8306  // Context sets the context to be used in this call's Do method.
  8307  func (c *ProjectsLocationsImportJobsGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsGetCall {
  8308  	c.ctx_ = ctx
  8309  	return c
  8310  }
  8311  
  8312  // Header returns a http.Header that can be modified by the caller to add
  8313  // headers to the request.
  8314  func (c *ProjectsLocationsImportJobsGetCall) Header() http.Header {
  8315  	if c.header_ == nil {
  8316  		c.header_ = make(http.Header)
  8317  	}
  8318  	return c.header_
  8319  }
  8320  
  8321  func (c *ProjectsLocationsImportJobsGetCall) doRequest(alt string) (*http.Response, error) {
  8322  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8323  	if c.ifNoneMatch_ != "" {
  8324  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8325  	}
  8326  	var body io.Reader = nil
  8327  	c.urlParams_.Set("alt", alt)
  8328  	c.urlParams_.Set("prettyPrint", "false")
  8329  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8330  	urls += "?" + c.urlParams_.Encode()
  8331  	req, err := http.NewRequest("GET", urls, body)
  8332  	if err != nil {
  8333  		return nil, err
  8334  	}
  8335  	req.Header = reqHeaders
  8336  	googleapi.Expand(req.URL, map[string]string{
  8337  		"name": c.name,
  8338  	})
  8339  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8340  }
  8341  
  8342  // Do executes the "migrationcenter.projects.locations.importJobs.get" call.
  8343  // Any non-2xx status code is an error. Response headers are in either
  8344  // *ImportJob.ServerResponse.Header or (if a response was returned at all) in
  8345  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8346  // whether the returned error was because http.StatusNotModified was returned.
  8347  func (c *ProjectsLocationsImportJobsGetCall) Do(opts ...googleapi.CallOption) (*ImportJob, error) {
  8348  	gensupport.SetOptions(c.urlParams_, opts...)
  8349  	res, err := c.doRequest("json")
  8350  	if res != nil && res.StatusCode == http.StatusNotModified {
  8351  		if res.Body != nil {
  8352  			res.Body.Close()
  8353  		}
  8354  		return nil, gensupport.WrapError(&googleapi.Error{
  8355  			Code:   res.StatusCode,
  8356  			Header: res.Header,
  8357  		})
  8358  	}
  8359  	if err != nil {
  8360  		return nil, err
  8361  	}
  8362  	defer googleapi.CloseBody(res)
  8363  	if err := googleapi.CheckResponse(res); err != nil {
  8364  		return nil, gensupport.WrapError(err)
  8365  	}
  8366  	ret := &ImportJob{
  8367  		ServerResponse: googleapi.ServerResponse{
  8368  			Header:         res.Header,
  8369  			HTTPStatusCode: res.StatusCode,
  8370  		},
  8371  	}
  8372  	target := &ret
  8373  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8374  		return nil, err
  8375  	}
  8376  	return ret, nil
  8377  }
  8378  
  8379  type ProjectsLocationsImportJobsListCall struct {
  8380  	s            *Service
  8381  	parent       string
  8382  	urlParams_   gensupport.URLParams
  8383  	ifNoneMatch_ string
  8384  	ctx_         context.Context
  8385  	header_      http.Header
  8386  }
  8387  
  8388  // List: Lists all import jobs.
  8389  //
  8390  // - parent: Parent value for `ListImportJobsRequest`.
  8391  func (r *ProjectsLocationsImportJobsService) List(parent string) *ProjectsLocationsImportJobsListCall {
  8392  	c := &ProjectsLocationsImportJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8393  	c.parent = parent
  8394  	return c
  8395  }
  8396  
  8397  // Filter sets the optional parameter "filter": Filtering results.
  8398  func (c *ProjectsLocationsImportJobsListCall) Filter(filter string) *ProjectsLocationsImportJobsListCall {
  8399  	c.urlParams_.Set("filter", filter)
  8400  	return c
  8401  }
  8402  
  8403  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  8404  // https://google.aip.dev/132#ordering for more details.
  8405  func (c *ProjectsLocationsImportJobsListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsListCall {
  8406  	c.urlParams_.Set("orderBy", orderBy)
  8407  	return c
  8408  }
  8409  
  8410  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  8411  // may return fewer items than requested. If unspecified, server will pick an
  8412  // appropriate default.
  8413  func (c *ProjectsLocationsImportJobsListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsListCall {
  8414  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8415  	return c
  8416  }
  8417  
  8418  // PageToken sets the optional parameter "pageToken": A token identifying a
  8419  // page of results the server should return.
  8420  func (c *ProjectsLocationsImportJobsListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsListCall {
  8421  	c.urlParams_.Set("pageToken", pageToken)
  8422  	return c
  8423  }
  8424  
  8425  // View sets the optional parameter "view": The level of details of each import
  8426  // job. Default value is BASIC.
  8427  //
  8428  // Possible values:
  8429  //
  8430  //	"IMPORT_JOB_VIEW_UNSPECIFIED" - The import job view is not specified. The
  8431  //
  8432  // API displays the basic view by default.
  8433  //
  8434  //	"IMPORT_JOB_VIEW_BASIC" - The import job view includes basic metadata of
  8435  //
  8436  // an import job. This view does not include payload information.
  8437  //
  8438  //	"IMPORT_JOB_VIEW_FULL" - The import job view includes all metadata of an
  8439  //
  8440  // import job.
  8441  func (c *ProjectsLocationsImportJobsListCall) View(view string) *ProjectsLocationsImportJobsListCall {
  8442  	c.urlParams_.Set("view", view)
  8443  	return c
  8444  }
  8445  
  8446  // Fields allows partial responses to be retrieved. See
  8447  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8448  // details.
  8449  func (c *ProjectsLocationsImportJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsListCall {
  8450  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8451  	return c
  8452  }
  8453  
  8454  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8455  // object's ETag matches the given value. This is useful for getting updates
  8456  // only after the object has changed since the last request.
  8457  func (c *ProjectsLocationsImportJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsListCall {
  8458  	c.ifNoneMatch_ = entityTag
  8459  	return c
  8460  }
  8461  
  8462  // Context sets the context to be used in this call's Do method.
  8463  func (c *ProjectsLocationsImportJobsListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsListCall {
  8464  	c.ctx_ = ctx
  8465  	return c
  8466  }
  8467  
  8468  // Header returns a http.Header that can be modified by the caller to add
  8469  // headers to the request.
  8470  func (c *ProjectsLocationsImportJobsListCall) Header() http.Header {
  8471  	if c.header_ == nil {
  8472  		c.header_ = make(http.Header)
  8473  	}
  8474  	return c.header_
  8475  }
  8476  
  8477  func (c *ProjectsLocationsImportJobsListCall) doRequest(alt string) (*http.Response, error) {
  8478  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8479  	if c.ifNoneMatch_ != "" {
  8480  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8481  	}
  8482  	var body io.Reader = nil
  8483  	c.urlParams_.Set("alt", alt)
  8484  	c.urlParams_.Set("prettyPrint", "false")
  8485  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/importJobs")
  8486  	urls += "?" + c.urlParams_.Encode()
  8487  	req, err := http.NewRequest("GET", urls, body)
  8488  	if err != nil {
  8489  		return nil, err
  8490  	}
  8491  	req.Header = reqHeaders
  8492  	googleapi.Expand(req.URL, map[string]string{
  8493  		"parent": c.parent,
  8494  	})
  8495  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8496  }
  8497  
  8498  // Do executes the "migrationcenter.projects.locations.importJobs.list" call.
  8499  // Any non-2xx status code is an error. Response headers are in either
  8500  // *ListImportJobsResponse.ServerResponse.Header or (if a response was returned
  8501  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8502  // check whether the returned error was because http.StatusNotModified was
  8503  // returned.
  8504  func (c *ProjectsLocationsImportJobsListCall) Do(opts ...googleapi.CallOption) (*ListImportJobsResponse, error) {
  8505  	gensupport.SetOptions(c.urlParams_, opts...)
  8506  	res, err := c.doRequest("json")
  8507  	if res != nil && res.StatusCode == http.StatusNotModified {
  8508  		if res.Body != nil {
  8509  			res.Body.Close()
  8510  		}
  8511  		return nil, gensupport.WrapError(&googleapi.Error{
  8512  			Code:   res.StatusCode,
  8513  			Header: res.Header,
  8514  		})
  8515  	}
  8516  	if err != nil {
  8517  		return nil, err
  8518  	}
  8519  	defer googleapi.CloseBody(res)
  8520  	if err := googleapi.CheckResponse(res); err != nil {
  8521  		return nil, gensupport.WrapError(err)
  8522  	}
  8523  	ret := &ListImportJobsResponse{
  8524  		ServerResponse: googleapi.ServerResponse{
  8525  			Header:         res.Header,
  8526  			HTTPStatusCode: res.StatusCode,
  8527  		},
  8528  	}
  8529  	target := &ret
  8530  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8531  		return nil, err
  8532  	}
  8533  	return ret, nil
  8534  }
  8535  
  8536  // Pages invokes f for each page of results.
  8537  // A non-nil error returned from f will halt the iteration.
  8538  // The provided context supersedes any context provided to the Context method.
  8539  func (c *ProjectsLocationsImportJobsListCall) Pages(ctx context.Context, f func(*ListImportJobsResponse) error) error {
  8540  	c.ctx_ = ctx
  8541  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8542  	for {
  8543  		x, err := c.Do()
  8544  		if err != nil {
  8545  			return err
  8546  		}
  8547  		if err := f(x); err != nil {
  8548  			return err
  8549  		}
  8550  		if x.NextPageToken == "" {
  8551  			return nil
  8552  		}
  8553  		c.PageToken(x.NextPageToken)
  8554  	}
  8555  }
  8556  
  8557  type ProjectsLocationsImportJobsPatchCall struct {
  8558  	s          *Service
  8559  	name       string
  8560  	importjob  *ImportJob
  8561  	urlParams_ gensupport.URLParams
  8562  	ctx_       context.Context
  8563  	header_    http.Header
  8564  }
  8565  
  8566  // Patch: Updates an import job.
  8567  //
  8568  // - name: Output only. The full name of the import job.
  8569  func (r *ProjectsLocationsImportJobsService) Patch(name string, importjob *ImportJob) *ProjectsLocationsImportJobsPatchCall {
  8570  	c := &ProjectsLocationsImportJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8571  	c.name = name
  8572  	c.importjob = importjob
  8573  	return c
  8574  }
  8575  
  8576  // RequestId sets the optional parameter "requestId": An optional request ID to
  8577  // identify requests. Specify a unique request ID so that if you must retry
  8578  // your request, the server will know to ignore the request if it has already
  8579  // been completed. The server will guarantee that for at least 60 minutes since
  8580  // the first request. For example, consider a situation where you make an
  8581  // initial request and the request times out. If you make the request again
  8582  // with the same request ID, the server can check if original operation with
  8583  // the same request ID was received, and if so, will ignore the second request.
  8584  // This prevents clients from accidentally creating duplicate commitments. The
  8585  // request ID must be a valid UUID with the exception that zero UUID is not
  8586  // supported (00000000-0000-0000-0000-000000000000).
  8587  func (c *ProjectsLocationsImportJobsPatchCall) RequestId(requestId string) *ProjectsLocationsImportJobsPatchCall {
  8588  	c.urlParams_.Set("requestId", requestId)
  8589  	return c
  8590  }
  8591  
  8592  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  8593  // used to specify the fields to be overwritten in the `Asset` resource by the
  8594  // update. The values specified in the `update_mask` field are relative to the
  8595  // resource, not the full request. A field will be overwritten if it is in the
  8596  // mask. A single * value in the mask lets you to overwrite all fields.
  8597  func (c *ProjectsLocationsImportJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsImportJobsPatchCall {
  8598  	c.urlParams_.Set("updateMask", updateMask)
  8599  	return c
  8600  }
  8601  
  8602  // Fields allows partial responses to be retrieved. See
  8603  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8604  // details.
  8605  func (c *ProjectsLocationsImportJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsPatchCall {
  8606  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8607  	return c
  8608  }
  8609  
  8610  // Context sets the context to be used in this call's Do method.
  8611  func (c *ProjectsLocationsImportJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsImportJobsPatchCall {
  8612  	c.ctx_ = ctx
  8613  	return c
  8614  }
  8615  
  8616  // Header returns a http.Header that can be modified by the caller to add
  8617  // headers to the request.
  8618  func (c *ProjectsLocationsImportJobsPatchCall) Header() http.Header {
  8619  	if c.header_ == nil {
  8620  		c.header_ = make(http.Header)
  8621  	}
  8622  	return c.header_
  8623  }
  8624  
  8625  func (c *ProjectsLocationsImportJobsPatchCall) doRequest(alt string) (*http.Response, error) {
  8626  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8627  	var body io.Reader = nil
  8628  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importjob)
  8629  	if err != nil {
  8630  		return nil, err
  8631  	}
  8632  	c.urlParams_.Set("alt", alt)
  8633  	c.urlParams_.Set("prettyPrint", "false")
  8634  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8635  	urls += "?" + c.urlParams_.Encode()
  8636  	req, err := http.NewRequest("PATCH", urls, body)
  8637  	if err != nil {
  8638  		return nil, err
  8639  	}
  8640  	req.Header = reqHeaders
  8641  	googleapi.Expand(req.URL, map[string]string{
  8642  		"name": c.name,
  8643  	})
  8644  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8645  }
  8646  
  8647  // Do executes the "migrationcenter.projects.locations.importJobs.patch" call.
  8648  // Any non-2xx status code is an error. Response headers are in either
  8649  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8650  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8651  // whether the returned error was because http.StatusNotModified was returned.
  8652  func (c *ProjectsLocationsImportJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8653  	gensupport.SetOptions(c.urlParams_, opts...)
  8654  	res, err := c.doRequest("json")
  8655  	if res != nil && res.StatusCode == http.StatusNotModified {
  8656  		if res.Body != nil {
  8657  			res.Body.Close()
  8658  		}
  8659  		return nil, gensupport.WrapError(&googleapi.Error{
  8660  			Code:   res.StatusCode,
  8661  			Header: res.Header,
  8662  		})
  8663  	}
  8664  	if err != nil {
  8665  		return nil, err
  8666  	}
  8667  	defer googleapi.CloseBody(res)
  8668  	if err := googleapi.CheckResponse(res); err != nil {
  8669  		return nil, gensupport.WrapError(err)
  8670  	}
  8671  	ret := &Operation{
  8672  		ServerResponse: googleapi.ServerResponse{
  8673  			Header:         res.Header,
  8674  			HTTPStatusCode: res.StatusCode,
  8675  		},
  8676  	}
  8677  	target := &ret
  8678  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8679  		return nil, err
  8680  	}
  8681  	return ret, nil
  8682  }
  8683  
  8684  type ProjectsLocationsImportJobsRunCall struct {
  8685  	s                   *Service
  8686  	name                string
  8687  	runimportjobrequest *RunImportJobRequest
  8688  	urlParams_          gensupport.URLParams
  8689  	ctx_                context.Context
  8690  	header_             http.Header
  8691  }
  8692  
  8693  // Run: Runs an import job.
  8694  //
  8695  // - name: The name of the import job to run.
  8696  func (r *ProjectsLocationsImportJobsService) Run(name string, runimportjobrequest *RunImportJobRequest) *ProjectsLocationsImportJobsRunCall {
  8697  	c := &ProjectsLocationsImportJobsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8698  	c.name = name
  8699  	c.runimportjobrequest = runimportjobrequest
  8700  	return c
  8701  }
  8702  
  8703  // Fields allows partial responses to be retrieved. See
  8704  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8705  // details.
  8706  func (c *ProjectsLocationsImportJobsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsRunCall {
  8707  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8708  	return c
  8709  }
  8710  
  8711  // Context sets the context to be used in this call's Do method.
  8712  func (c *ProjectsLocationsImportJobsRunCall) Context(ctx context.Context) *ProjectsLocationsImportJobsRunCall {
  8713  	c.ctx_ = ctx
  8714  	return c
  8715  }
  8716  
  8717  // Header returns a http.Header that can be modified by the caller to add
  8718  // headers to the request.
  8719  func (c *ProjectsLocationsImportJobsRunCall) Header() http.Header {
  8720  	if c.header_ == nil {
  8721  		c.header_ = make(http.Header)
  8722  	}
  8723  	return c.header_
  8724  }
  8725  
  8726  func (c *ProjectsLocationsImportJobsRunCall) doRequest(alt string) (*http.Response, error) {
  8727  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8728  	var body io.Reader = nil
  8729  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.runimportjobrequest)
  8730  	if err != nil {
  8731  		return nil, err
  8732  	}
  8733  	c.urlParams_.Set("alt", alt)
  8734  	c.urlParams_.Set("prettyPrint", "false")
  8735  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
  8736  	urls += "?" + c.urlParams_.Encode()
  8737  	req, err := http.NewRequest("POST", urls, body)
  8738  	if err != nil {
  8739  		return nil, err
  8740  	}
  8741  	req.Header = reqHeaders
  8742  	googleapi.Expand(req.URL, map[string]string{
  8743  		"name": c.name,
  8744  	})
  8745  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8746  }
  8747  
  8748  // Do executes the "migrationcenter.projects.locations.importJobs.run" call.
  8749  // Any non-2xx status code is an error. Response headers are in either
  8750  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8751  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8752  // whether the returned error was because http.StatusNotModified was returned.
  8753  func (c *ProjectsLocationsImportJobsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8754  	gensupport.SetOptions(c.urlParams_, opts...)
  8755  	res, err := c.doRequest("json")
  8756  	if res != nil && res.StatusCode == http.StatusNotModified {
  8757  		if res.Body != nil {
  8758  			res.Body.Close()
  8759  		}
  8760  		return nil, gensupport.WrapError(&googleapi.Error{
  8761  			Code:   res.StatusCode,
  8762  			Header: res.Header,
  8763  		})
  8764  	}
  8765  	if err != nil {
  8766  		return nil, err
  8767  	}
  8768  	defer googleapi.CloseBody(res)
  8769  	if err := googleapi.CheckResponse(res); err != nil {
  8770  		return nil, gensupport.WrapError(err)
  8771  	}
  8772  	ret := &Operation{
  8773  		ServerResponse: googleapi.ServerResponse{
  8774  			Header:         res.Header,
  8775  			HTTPStatusCode: res.StatusCode,
  8776  		},
  8777  	}
  8778  	target := &ret
  8779  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8780  		return nil, err
  8781  	}
  8782  	return ret, nil
  8783  }
  8784  
  8785  type ProjectsLocationsImportJobsValidateCall struct {
  8786  	s                        *Service
  8787  	name                     string
  8788  	validateimportjobrequest *ValidateImportJobRequest
  8789  	urlParams_               gensupport.URLParams
  8790  	ctx_                     context.Context
  8791  	header_                  http.Header
  8792  }
  8793  
  8794  // Validate: Validates an import job.
  8795  //
  8796  // - name: The name of the import job to validate.
  8797  func (r *ProjectsLocationsImportJobsService) Validate(name string, validateimportjobrequest *ValidateImportJobRequest) *ProjectsLocationsImportJobsValidateCall {
  8798  	c := &ProjectsLocationsImportJobsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8799  	c.name = name
  8800  	c.validateimportjobrequest = validateimportjobrequest
  8801  	return c
  8802  }
  8803  
  8804  // Fields allows partial responses to be retrieved. See
  8805  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8806  // details.
  8807  func (c *ProjectsLocationsImportJobsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsValidateCall {
  8808  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8809  	return c
  8810  }
  8811  
  8812  // Context sets the context to be used in this call's Do method.
  8813  func (c *ProjectsLocationsImportJobsValidateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsValidateCall {
  8814  	c.ctx_ = ctx
  8815  	return c
  8816  }
  8817  
  8818  // Header returns a http.Header that can be modified by the caller to add
  8819  // headers to the request.
  8820  func (c *ProjectsLocationsImportJobsValidateCall) Header() http.Header {
  8821  	if c.header_ == nil {
  8822  		c.header_ = make(http.Header)
  8823  	}
  8824  	return c.header_
  8825  }
  8826  
  8827  func (c *ProjectsLocationsImportJobsValidateCall) doRequest(alt string) (*http.Response, error) {
  8828  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8829  	var body io.Reader = nil
  8830  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.validateimportjobrequest)
  8831  	if err != nil {
  8832  		return nil, err
  8833  	}
  8834  	c.urlParams_.Set("alt", alt)
  8835  	c.urlParams_.Set("prettyPrint", "false")
  8836  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:validate")
  8837  	urls += "?" + c.urlParams_.Encode()
  8838  	req, err := http.NewRequest("POST", urls, body)
  8839  	if err != nil {
  8840  		return nil, err
  8841  	}
  8842  	req.Header = reqHeaders
  8843  	googleapi.Expand(req.URL, map[string]string{
  8844  		"name": c.name,
  8845  	})
  8846  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8847  }
  8848  
  8849  // Do executes the "migrationcenter.projects.locations.importJobs.validate" call.
  8850  // Any non-2xx status code is an error. Response headers are in either
  8851  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8852  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8853  // whether the returned error was because http.StatusNotModified was returned.
  8854  func (c *ProjectsLocationsImportJobsValidateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8855  	gensupport.SetOptions(c.urlParams_, opts...)
  8856  	res, err := c.doRequest("json")
  8857  	if res != nil && res.StatusCode == http.StatusNotModified {
  8858  		if res.Body != nil {
  8859  			res.Body.Close()
  8860  		}
  8861  		return nil, gensupport.WrapError(&googleapi.Error{
  8862  			Code:   res.StatusCode,
  8863  			Header: res.Header,
  8864  		})
  8865  	}
  8866  	if err != nil {
  8867  		return nil, err
  8868  	}
  8869  	defer googleapi.CloseBody(res)
  8870  	if err := googleapi.CheckResponse(res); err != nil {
  8871  		return nil, gensupport.WrapError(err)
  8872  	}
  8873  	ret := &Operation{
  8874  		ServerResponse: googleapi.ServerResponse{
  8875  			Header:         res.Header,
  8876  			HTTPStatusCode: res.StatusCode,
  8877  		},
  8878  	}
  8879  	target := &ret
  8880  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8881  		return nil, err
  8882  	}
  8883  	return ret, nil
  8884  }
  8885  
  8886  type ProjectsLocationsImportJobsImportDataFilesCreateCall struct {
  8887  	s              *Service
  8888  	parent         string
  8889  	importdatafile *ImportDataFile
  8890  	urlParams_     gensupport.URLParams
  8891  	ctx_           context.Context
  8892  	header_        http.Header
  8893  }
  8894  
  8895  // Create: Creates an import data file.
  8896  //
  8897  // - parent: Name of the parent of the ImportDataFile.
  8898  func (r *ProjectsLocationsImportJobsImportDataFilesService) Create(parent string, importdatafile *ImportDataFile) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
  8899  	c := &ProjectsLocationsImportJobsImportDataFilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8900  	c.parent = parent
  8901  	c.importdatafile = importdatafile
  8902  	return c
  8903  }
  8904  
  8905  // ImportDataFileId sets the optional parameter "importDataFileId": Required.
  8906  // The ID of the new data file.
  8907  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) ImportDataFileId(importDataFileId string) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
  8908  	c.urlParams_.Set("importDataFileId", importDataFileId)
  8909  	return c
  8910  }
  8911  
  8912  // RequestId sets the optional parameter "requestId": An optional request ID to
  8913  // identify requests. Specify a unique request ID so that if you must retry
  8914  // your request, the server will know to ignore the request if it has already
  8915  // been completed. The server will guarantee that for at least 60 minutes since
  8916  // the first request. For example, consider a situation where you make an
  8917  // initial request and the request times out. If you make the request again
  8918  // with the same request ID, the server can check if original operation with
  8919  // the same request ID was received, and if so, will ignore the second request.
  8920  // This prevents clients from accidentally creating duplicate commitments. The
  8921  // request ID must be a valid UUID with the exception that zero UUID is not
  8922  // supported (00000000-0000-0000-0000-000000000000).
  8923  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
  8924  	c.urlParams_.Set("requestId", requestId)
  8925  	return c
  8926  }
  8927  
  8928  // Fields allows partial responses to be retrieved. See
  8929  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8930  // details.
  8931  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
  8932  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8933  	return c
  8934  }
  8935  
  8936  // Context sets the context to be used in this call's Do method.
  8937  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
  8938  	c.ctx_ = ctx
  8939  	return c
  8940  }
  8941  
  8942  // Header returns a http.Header that can be modified by the caller to add
  8943  // headers to the request.
  8944  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Header() http.Header {
  8945  	if c.header_ == nil {
  8946  		c.header_ = make(http.Header)
  8947  	}
  8948  	return c.header_
  8949  }
  8950  
  8951  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) doRequest(alt string) (*http.Response, error) {
  8952  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8953  	var body io.Reader = nil
  8954  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdatafile)
  8955  	if err != nil {
  8956  		return nil, err
  8957  	}
  8958  	c.urlParams_.Set("alt", alt)
  8959  	c.urlParams_.Set("prettyPrint", "false")
  8960  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/importDataFiles")
  8961  	urls += "?" + c.urlParams_.Encode()
  8962  	req, err := http.NewRequest("POST", urls, body)
  8963  	if err != nil {
  8964  		return nil, err
  8965  	}
  8966  	req.Header = reqHeaders
  8967  	googleapi.Expand(req.URL, map[string]string{
  8968  		"parent": c.parent,
  8969  	})
  8970  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8971  }
  8972  
  8973  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.create" call.
  8974  // Any non-2xx status code is an error. Response headers are in either
  8975  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8976  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8977  // whether the returned error was because http.StatusNotModified was returned.
  8978  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8979  	gensupport.SetOptions(c.urlParams_, opts...)
  8980  	res, err := c.doRequest("json")
  8981  	if res != nil && res.StatusCode == http.StatusNotModified {
  8982  		if res.Body != nil {
  8983  			res.Body.Close()
  8984  		}
  8985  		return nil, gensupport.WrapError(&googleapi.Error{
  8986  			Code:   res.StatusCode,
  8987  			Header: res.Header,
  8988  		})
  8989  	}
  8990  	if err != nil {
  8991  		return nil, err
  8992  	}
  8993  	defer googleapi.CloseBody(res)
  8994  	if err := googleapi.CheckResponse(res); err != nil {
  8995  		return nil, gensupport.WrapError(err)
  8996  	}
  8997  	ret := &Operation{
  8998  		ServerResponse: googleapi.ServerResponse{
  8999  			Header:         res.Header,
  9000  			HTTPStatusCode: res.StatusCode,
  9001  		},
  9002  	}
  9003  	target := &ret
  9004  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9005  		return nil, err
  9006  	}
  9007  	return ret, nil
  9008  }
  9009  
  9010  type ProjectsLocationsImportJobsImportDataFilesDeleteCall struct {
  9011  	s          *Service
  9012  	name       string
  9013  	urlParams_ gensupport.URLParams
  9014  	ctx_       context.Context
  9015  	header_    http.Header
  9016  }
  9017  
  9018  // Delete: Delete an import data file.
  9019  //
  9020  // - name: Name of the ImportDataFile to delete.
  9021  func (r *ProjectsLocationsImportJobsImportDataFilesService) Delete(name string) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
  9022  	c := &ProjectsLocationsImportJobsImportDataFilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9023  	c.name = name
  9024  	return c
  9025  }
  9026  
  9027  // RequestId sets the optional parameter "requestId": An optional request ID to
  9028  // identify requests. Specify a unique request ID so that if you must retry
  9029  // your request, the server will know to ignore the request if it has already
  9030  // been completed. The server will guarantee that for at least 60 minutes after
  9031  // the first request. For example, consider a situation where you make an
  9032  // initial request and the request times out. If you make the request again
  9033  // with the same request ID, the server can check if original operation with
  9034  // the same request ID was received, and if so, will ignore the second request.
  9035  // This prevents clients from accidentally creating duplicate commitments. The
  9036  // request ID must be a valid UUID with the exception that zero UUID is not
  9037  // supported (00000000-0000-0000-0000-000000000000).
  9038  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
  9039  	c.urlParams_.Set("requestId", requestId)
  9040  	return c
  9041  }
  9042  
  9043  // Fields allows partial responses to be retrieved. See
  9044  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9045  // details.
  9046  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
  9047  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9048  	return c
  9049  }
  9050  
  9051  // Context sets the context to be used in this call's Do method.
  9052  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
  9053  	c.ctx_ = ctx
  9054  	return c
  9055  }
  9056  
  9057  // Header returns a http.Header that can be modified by the caller to add
  9058  // headers to the request.
  9059  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Header() http.Header {
  9060  	if c.header_ == nil {
  9061  		c.header_ = make(http.Header)
  9062  	}
  9063  	return c.header_
  9064  }
  9065  
  9066  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) doRequest(alt string) (*http.Response, error) {
  9067  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9068  	var body io.Reader = nil
  9069  	c.urlParams_.Set("alt", alt)
  9070  	c.urlParams_.Set("prettyPrint", "false")
  9071  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9072  	urls += "?" + c.urlParams_.Encode()
  9073  	req, err := http.NewRequest("DELETE", urls, body)
  9074  	if err != nil {
  9075  		return nil, err
  9076  	}
  9077  	req.Header = reqHeaders
  9078  	googleapi.Expand(req.URL, map[string]string{
  9079  		"name": c.name,
  9080  	})
  9081  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9082  }
  9083  
  9084  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.delete" call.
  9085  // Any non-2xx status code is an error. Response headers are in either
  9086  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9087  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9088  // whether the returned error was because http.StatusNotModified was returned.
  9089  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9090  	gensupport.SetOptions(c.urlParams_, opts...)
  9091  	res, err := c.doRequest("json")
  9092  	if res != nil && res.StatusCode == http.StatusNotModified {
  9093  		if res.Body != nil {
  9094  			res.Body.Close()
  9095  		}
  9096  		return nil, gensupport.WrapError(&googleapi.Error{
  9097  			Code:   res.StatusCode,
  9098  			Header: res.Header,
  9099  		})
  9100  	}
  9101  	if err != nil {
  9102  		return nil, err
  9103  	}
  9104  	defer googleapi.CloseBody(res)
  9105  	if err := googleapi.CheckResponse(res); err != nil {
  9106  		return nil, gensupport.WrapError(err)
  9107  	}
  9108  	ret := &Operation{
  9109  		ServerResponse: googleapi.ServerResponse{
  9110  			Header:         res.Header,
  9111  			HTTPStatusCode: res.StatusCode,
  9112  		},
  9113  	}
  9114  	target := &ret
  9115  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9116  		return nil, err
  9117  	}
  9118  	return ret, nil
  9119  }
  9120  
  9121  type ProjectsLocationsImportJobsImportDataFilesGetCall struct {
  9122  	s            *Service
  9123  	name         string
  9124  	urlParams_   gensupport.URLParams
  9125  	ifNoneMatch_ string
  9126  	ctx_         context.Context
  9127  	header_      http.Header
  9128  }
  9129  
  9130  // Get: Gets an import data file.
  9131  //
  9132  // - name: Name of the ImportDataFile.
  9133  func (r *ProjectsLocationsImportJobsImportDataFilesService) Get(name string) *ProjectsLocationsImportJobsImportDataFilesGetCall {
  9134  	c := &ProjectsLocationsImportJobsImportDataFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9135  	c.name = name
  9136  	return c
  9137  }
  9138  
  9139  // Fields allows partial responses to be retrieved. See
  9140  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9141  // details.
  9142  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesGetCall {
  9143  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9144  	return c
  9145  }
  9146  
  9147  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9148  // object's ETag matches the given value. This is useful for getting updates
  9149  // only after the object has changed since the last request.
  9150  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsImportDataFilesGetCall {
  9151  	c.ifNoneMatch_ = entityTag
  9152  	return c
  9153  }
  9154  
  9155  // Context sets the context to be used in this call's Do method.
  9156  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesGetCall {
  9157  	c.ctx_ = ctx
  9158  	return c
  9159  }
  9160  
  9161  // Header returns a http.Header that can be modified by the caller to add
  9162  // headers to the request.
  9163  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Header() http.Header {
  9164  	if c.header_ == nil {
  9165  		c.header_ = make(http.Header)
  9166  	}
  9167  	return c.header_
  9168  }
  9169  
  9170  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) doRequest(alt string) (*http.Response, error) {
  9171  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9172  	if c.ifNoneMatch_ != "" {
  9173  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9174  	}
  9175  	var body io.Reader = nil
  9176  	c.urlParams_.Set("alt", alt)
  9177  	c.urlParams_.Set("prettyPrint", "false")
  9178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9179  	urls += "?" + c.urlParams_.Encode()
  9180  	req, err := http.NewRequest("GET", urls, body)
  9181  	if err != nil {
  9182  		return nil, err
  9183  	}
  9184  	req.Header = reqHeaders
  9185  	googleapi.Expand(req.URL, map[string]string{
  9186  		"name": c.name,
  9187  	})
  9188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9189  }
  9190  
  9191  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.get" call.
  9192  // Any non-2xx status code is an error. Response headers are in either
  9193  // *ImportDataFile.ServerResponse.Header or (if a response was returned at all)
  9194  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9195  // whether the returned error was because http.StatusNotModified was returned.
  9196  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Do(opts ...googleapi.CallOption) (*ImportDataFile, error) {
  9197  	gensupport.SetOptions(c.urlParams_, opts...)
  9198  	res, err := c.doRequest("json")
  9199  	if res != nil && res.StatusCode == http.StatusNotModified {
  9200  		if res.Body != nil {
  9201  			res.Body.Close()
  9202  		}
  9203  		return nil, gensupport.WrapError(&googleapi.Error{
  9204  			Code:   res.StatusCode,
  9205  			Header: res.Header,
  9206  		})
  9207  	}
  9208  	if err != nil {
  9209  		return nil, err
  9210  	}
  9211  	defer googleapi.CloseBody(res)
  9212  	if err := googleapi.CheckResponse(res); err != nil {
  9213  		return nil, gensupport.WrapError(err)
  9214  	}
  9215  	ret := &ImportDataFile{
  9216  		ServerResponse: googleapi.ServerResponse{
  9217  			Header:         res.Header,
  9218  			HTTPStatusCode: res.StatusCode,
  9219  		},
  9220  	}
  9221  	target := &ret
  9222  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9223  		return nil, err
  9224  	}
  9225  	return ret, nil
  9226  }
  9227  
  9228  type ProjectsLocationsImportJobsImportDataFilesListCall struct {
  9229  	s            *Service
  9230  	parent       string
  9231  	urlParams_   gensupport.URLParams
  9232  	ifNoneMatch_ string
  9233  	ctx_         context.Context
  9234  	header_      http.Header
  9235  }
  9236  
  9237  // List: List import data files.
  9238  //
  9239  // - parent: Name of the parent of the `ImportDataFiles` resource.
  9240  func (r *ProjectsLocationsImportJobsImportDataFilesService) List(parent string) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9241  	c := &ProjectsLocationsImportJobsImportDataFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9242  	c.parent = parent
  9243  	return c
  9244  }
  9245  
  9246  // Filter sets the optional parameter "filter": Filtering results.
  9247  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Filter(filter string) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9248  	c.urlParams_.Set("filter", filter)
  9249  	return c
  9250  }
  9251  
  9252  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  9253  // https://google.aip.dev/132#ordering for more details.
  9254  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9255  	c.urlParams_.Set("orderBy", orderBy)
  9256  	return c
  9257  }
  9258  
  9259  // PageSize sets the optional parameter "pageSize": The maximum number of data
  9260  // files to return. The service may return fewer than this value. If
  9261  // unspecified, at most 500 data files will be returned. The maximum value is
  9262  // 1000; values above 1000 will be coerced to 1000.
  9263  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9264  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9265  	return c
  9266  }
  9267  
  9268  // PageToken sets the optional parameter "pageToken": A page token, received
  9269  // from a previous `ListImportDataFiles` call. Provide this to retrieve the
  9270  // subsequent page. When paginating, all other parameters provided to
  9271  // `ListImportDataFiles` must match the call that provided the page token.
  9272  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9273  	c.urlParams_.Set("pageToken", pageToken)
  9274  	return c
  9275  }
  9276  
  9277  // Fields allows partial responses to be retrieved. See
  9278  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9279  // details.
  9280  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9281  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9282  	return c
  9283  }
  9284  
  9285  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9286  // object's ETag matches the given value. This is useful for getting updates
  9287  // only after the object has changed since the last request.
  9288  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9289  	c.ifNoneMatch_ = entityTag
  9290  	return c
  9291  }
  9292  
  9293  // Context sets the context to be used in this call's Do method.
  9294  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesListCall {
  9295  	c.ctx_ = ctx
  9296  	return c
  9297  }
  9298  
  9299  // Header returns a http.Header that can be modified by the caller to add
  9300  // headers to the request.
  9301  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Header() http.Header {
  9302  	if c.header_ == nil {
  9303  		c.header_ = make(http.Header)
  9304  	}
  9305  	return c.header_
  9306  }
  9307  
  9308  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) doRequest(alt string) (*http.Response, error) {
  9309  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9310  	if c.ifNoneMatch_ != "" {
  9311  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9312  	}
  9313  	var body io.Reader = nil
  9314  	c.urlParams_.Set("alt", alt)
  9315  	c.urlParams_.Set("prettyPrint", "false")
  9316  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/importDataFiles")
  9317  	urls += "?" + c.urlParams_.Encode()
  9318  	req, err := http.NewRequest("GET", urls, body)
  9319  	if err != nil {
  9320  		return nil, err
  9321  	}
  9322  	req.Header = reqHeaders
  9323  	googleapi.Expand(req.URL, map[string]string{
  9324  		"parent": c.parent,
  9325  	})
  9326  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9327  }
  9328  
  9329  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.list" call.
  9330  // Any non-2xx status code is an error. Response headers are in either
  9331  // *ListImportDataFilesResponse.ServerResponse.Header or (if a response was
  9332  // returned at all) in error.(*googleapi.Error).Header. Use
  9333  // googleapi.IsNotModified to check whether the returned error was because
  9334  // http.StatusNotModified was returned.
  9335  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Do(opts ...googleapi.CallOption) (*ListImportDataFilesResponse, error) {
  9336  	gensupport.SetOptions(c.urlParams_, opts...)
  9337  	res, err := c.doRequest("json")
  9338  	if res != nil && res.StatusCode == http.StatusNotModified {
  9339  		if res.Body != nil {
  9340  			res.Body.Close()
  9341  		}
  9342  		return nil, gensupport.WrapError(&googleapi.Error{
  9343  			Code:   res.StatusCode,
  9344  			Header: res.Header,
  9345  		})
  9346  	}
  9347  	if err != nil {
  9348  		return nil, err
  9349  	}
  9350  	defer googleapi.CloseBody(res)
  9351  	if err := googleapi.CheckResponse(res); err != nil {
  9352  		return nil, gensupport.WrapError(err)
  9353  	}
  9354  	ret := &ListImportDataFilesResponse{
  9355  		ServerResponse: googleapi.ServerResponse{
  9356  			Header:         res.Header,
  9357  			HTTPStatusCode: res.StatusCode,
  9358  		},
  9359  	}
  9360  	target := &ret
  9361  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9362  		return nil, err
  9363  	}
  9364  	return ret, nil
  9365  }
  9366  
  9367  // Pages invokes f for each page of results.
  9368  // A non-nil error returned from f will halt the iteration.
  9369  // The provided context supersedes any context provided to the Context method.
  9370  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Pages(ctx context.Context, f func(*ListImportDataFilesResponse) error) error {
  9371  	c.ctx_ = ctx
  9372  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9373  	for {
  9374  		x, err := c.Do()
  9375  		if err != nil {
  9376  			return err
  9377  		}
  9378  		if err := f(x); err != nil {
  9379  			return err
  9380  		}
  9381  		if x.NextPageToken == "" {
  9382  			return nil
  9383  		}
  9384  		c.PageToken(x.NextPageToken)
  9385  	}
  9386  }
  9387  
  9388  type ProjectsLocationsOperationsCancelCall struct {
  9389  	s                      *Service
  9390  	name                   string
  9391  	canceloperationrequest *CancelOperationRequest
  9392  	urlParams_             gensupport.URLParams
  9393  	ctx_                   context.Context
  9394  	header_                http.Header
  9395  }
  9396  
  9397  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  9398  // server makes a best effort to cancel the operation, but success is not
  9399  // guaranteed. If the server doesn't support this method, it returns
  9400  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  9401  // other methods to check whether the cancellation succeeded or whether the
  9402  // operation completed despite cancellation. On successful cancellation, the
  9403  // operation is not deleted; instead, it becomes an operation with an
  9404  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  9405  // `Code.CANCELLED`.
  9406  //
  9407  // - name: The name of the operation resource to be cancelled.
  9408  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
  9409  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9410  	c.name = name
  9411  	c.canceloperationrequest = canceloperationrequest
  9412  	return c
  9413  }
  9414  
  9415  // Fields allows partial responses to be retrieved. See
  9416  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9417  // details.
  9418  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
  9419  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9420  	return c
  9421  }
  9422  
  9423  // Context sets the context to be used in this call's Do method.
  9424  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
  9425  	c.ctx_ = ctx
  9426  	return c
  9427  }
  9428  
  9429  // Header returns a http.Header that can be modified by the caller to add
  9430  // headers to the request.
  9431  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
  9432  	if c.header_ == nil {
  9433  		c.header_ = make(http.Header)
  9434  	}
  9435  	return c.header_
  9436  }
  9437  
  9438  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  9439  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9440  	var body io.Reader = nil
  9441  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  9442  	if err != nil {
  9443  		return nil, err
  9444  	}
  9445  	c.urlParams_.Set("alt", alt)
  9446  	c.urlParams_.Set("prettyPrint", "false")
  9447  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  9448  	urls += "?" + c.urlParams_.Encode()
  9449  	req, err := http.NewRequest("POST", urls, body)
  9450  	if err != nil {
  9451  		return nil, err
  9452  	}
  9453  	req.Header = reqHeaders
  9454  	googleapi.Expand(req.URL, map[string]string{
  9455  		"name": c.name,
  9456  	})
  9457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9458  }
  9459  
  9460  // Do executes the "migrationcenter.projects.locations.operations.cancel" call.
  9461  // Any non-2xx status code is an error. Response headers are in either
  9462  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9463  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9464  // whether the returned error was because http.StatusNotModified was returned.
  9465  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9466  	gensupport.SetOptions(c.urlParams_, opts...)
  9467  	res, err := c.doRequest("json")
  9468  	if res != nil && res.StatusCode == http.StatusNotModified {
  9469  		if res.Body != nil {
  9470  			res.Body.Close()
  9471  		}
  9472  		return nil, gensupport.WrapError(&googleapi.Error{
  9473  			Code:   res.StatusCode,
  9474  			Header: res.Header,
  9475  		})
  9476  	}
  9477  	if err != nil {
  9478  		return nil, err
  9479  	}
  9480  	defer googleapi.CloseBody(res)
  9481  	if err := googleapi.CheckResponse(res); err != nil {
  9482  		return nil, gensupport.WrapError(err)
  9483  	}
  9484  	ret := &Empty{
  9485  		ServerResponse: googleapi.ServerResponse{
  9486  			Header:         res.Header,
  9487  			HTTPStatusCode: res.StatusCode,
  9488  		},
  9489  	}
  9490  	target := &ret
  9491  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9492  		return nil, err
  9493  	}
  9494  	return ret, nil
  9495  }
  9496  
  9497  type ProjectsLocationsOperationsDeleteCall struct {
  9498  	s          *Service
  9499  	name       string
  9500  	urlParams_ gensupport.URLParams
  9501  	ctx_       context.Context
  9502  	header_    http.Header
  9503  }
  9504  
  9505  // Delete: Deletes a long-running operation. This method indicates that the
  9506  // client is no longer interested in the operation result. It does not cancel
  9507  // the operation. If the server doesn't support this method, it returns
  9508  // `google.rpc.Code.UNIMPLEMENTED`.
  9509  //
  9510  // - name: The name of the operation resource to be deleted.
  9511  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
  9512  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9513  	c.name = name
  9514  	return c
  9515  }
  9516  
  9517  // Fields allows partial responses to be retrieved. See
  9518  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9519  // details.
  9520  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
  9521  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9522  	return c
  9523  }
  9524  
  9525  // Context sets the context to be used in this call's Do method.
  9526  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
  9527  	c.ctx_ = ctx
  9528  	return c
  9529  }
  9530  
  9531  // Header returns a http.Header that can be modified by the caller to add
  9532  // headers to the request.
  9533  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
  9534  	if c.header_ == nil {
  9535  		c.header_ = make(http.Header)
  9536  	}
  9537  	return c.header_
  9538  }
  9539  
  9540  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9541  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9542  	var body io.Reader = nil
  9543  	c.urlParams_.Set("alt", alt)
  9544  	c.urlParams_.Set("prettyPrint", "false")
  9545  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9546  	urls += "?" + c.urlParams_.Encode()
  9547  	req, err := http.NewRequest("DELETE", urls, body)
  9548  	if err != nil {
  9549  		return nil, err
  9550  	}
  9551  	req.Header = reqHeaders
  9552  	googleapi.Expand(req.URL, map[string]string{
  9553  		"name": c.name,
  9554  	})
  9555  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9556  }
  9557  
  9558  // Do executes the "migrationcenter.projects.locations.operations.delete" call.
  9559  // Any non-2xx status code is an error. Response headers are in either
  9560  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9561  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9562  // whether the returned error was because http.StatusNotModified was returned.
  9563  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9564  	gensupport.SetOptions(c.urlParams_, opts...)
  9565  	res, err := c.doRequest("json")
  9566  	if res != nil && res.StatusCode == http.StatusNotModified {
  9567  		if res.Body != nil {
  9568  			res.Body.Close()
  9569  		}
  9570  		return nil, gensupport.WrapError(&googleapi.Error{
  9571  			Code:   res.StatusCode,
  9572  			Header: res.Header,
  9573  		})
  9574  	}
  9575  	if err != nil {
  9576  		return nil, err
  9577  	}
  9578  	defer googleapi.CloseBody(res)
  9579  	if err := googleapi.CheckResponse(res); err != nil {
  9580  		return nil, gensupport.WrapError(err)
  9581  	}
  9582  	ret := &Empty{
  9583  		ServerResponse: googleapi.ServerResponse{
  9584  			Header:         res.Header,
  9585  			HTTPStatusCode: res.StatusCode,
  9586  		},
  9587  	}
  9588  	target := &ret
  9589  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9590  		return nil, err
  9591  	}
  9592  	return ret, nil
  9593  }
  9594  
  9595  type ProjectsLocationsOperationsGetCall struct {
  9596  	s            *Service
  9597  	name         string
  9598  	urlParams_   gensupport.URLParams
  9599  	ifNoneMatch_ string
  9600  	ctx_         context.Context
  9601  	header_      http.Header
  9602  }
  9603  
  9604  // Get: Gets the latest state of a long-running operation. Clients can use this
  9605  // method to poll the operation result at intervals as recommended by the API
  9606  // service.
  9607  //
  9608  // - name: The name of the operation resource.
  9609  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
  9610  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9611  	c.name = name
  9612  	return c
  9613  }
  9614  
  9615  // Fields allows partial responses to be retrieved. See
  9616  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9617  // details.
  9618  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  9619  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9620  	return c
  9621  }
  9622  
  9623  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9624  // object's ETag matches the given value. This is useful for getting updates
  9625  // only after the object has changed since the last request.
  9626  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  9627  	c.ifNoneMatch_ = entityTag
  9628  	return c
  9629  }
  9630  
  9631  // Context sets the context to be used in this call's Do method.
  9632  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  9633  	c.ctx_ = ctx
  9634  	return c
  9635  }
  9636  
  9637  // Header returns a http.Header that can be modified by the caller to add
  9638  // headers to the request.
  9639  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  9640  	if c.header_ == nil {
  9641  		c.header_ = make(http.Header)
  9642  	}
  9643  	return c.header_
  9644  }
  9645  
  9646  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  9647  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9648  	if c.ifNoneMatch_ != "" {
  9649  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9650  	}
  9651  	var body io.Reader = nil
  9652  	c.urlParams_.Set("alt", alt)
  9653  	c.urlParams_.Set("prettyPrint", "false")
  9654  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9655  	urls += "?" + c.urlParams_.Encode()
  9656  	req, err := http.NewRequest("GET", urls, body)
  9657  	if err != nil {
  9658  		return nil, err
  9659  	}
  9660  	req.Header = reqHeaders
  9661  	googleapi.Expand(req.URL, map[string]string{
  9662  		"name": c.name,
  9663  	})
  9664  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9665  }
  9666  
  9667  // Do executes the "migrationcenter.projects.locations.operations.get" call.
  9668  // Any non-2xx status code is an error. Response headers are in either
  9669  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9670  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9671  // whether the returned error was because http.StatusNotModified was returned.
  9672  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9673  	gensupport.SetOptions(c.urlParams_, opts...)
  9674  	res, err := c.doRequest("json")
  9675  	if res != nil && res.StatusCode == http.StatusNotModified {
  9676  		if res.Body != nil {
  9677  			res.Body.Close()
  9678  		}
  9679  		return nil, gensupport.WrapError(&googleapi.Error{
  9680  			Code:   res.StatusCode,
  9681  			Header: res.Header,
  9682  		})
  9683  	}
  9684  	if err != nil {
  9685  		return nil, err
  9686  	}
  9687  	defer googleapi.CloseBody(res)
  9688  	if err := googleapi.CheckResponse(res); err != nil {
  9689  		return nil, gensupport.WrapError(err)
  9690  	}
  9691  	ret := &Operation{
  9692  		ServerResponse: googleapi.ServerResponse{
  9693  			Header:         res.Header,
  9694  			HTTPStatusCode: res.StatusCode,
  9695  		},
  9696  	}
  9697  	target := &ret
  9698  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9699  		return nil, err
  9700  	}
  9701  	return ret, nil
  9702  }
  9703  
  9704  type ProjectsLocationsOperationsListCall struct {
  9705  	s            *Service
  9706  	name         string
  9707  	urlParams_   gensupport.URLParams
  9708  	ifNoneMatch_ string
  9709  	ctx_         context.Context
  9710  	header_      http.Header
  9711  }
  9712  
  9713  // List: Lists operations that match the specified filter in the request. If
  9714  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  9715  //
  9716  // - name: The name of the operation's parent resource.
  9717  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
  9718  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9719  	c.name = name
  9720  	return c
  9721  }
  9722  
  9723  // Filter sets the optional parameter "filter": The standard list filter.
  9724  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
  9725  	c.urlParams_.Set("filter", filter)
  9726  	return c
  9727  }
  9728  
  9729  // PageSize sets the optional parameter "pageSize": The standard list page
  9730  // size.
  9731  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
  9732  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9733  	return c
  9734  }
  9735  
  9736  // PageToken sets the optional parameter "pageToken": The standard list page
  9737  // token.
  9738  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
  9739  	c.urlParams_.Set("pageToken", pageToken)
  9740  	return c
  9741  }
  9742  
  9743  // Fields allows partial responses to be retrieved. See
  9744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9745  // details.
  9746  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
  9747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9748  	return c
  9749  }
  9750  
  9751  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9752  // object's ETag matches the given value. This is useful for getting updates
  9753  // only after the object has changed since the last request.
  9754  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
  9755  	c.ifNoneMatch_ = entityTag
  9756  	return c
  9757  }
  9758  
  9759  // Context sets the context to be used in this call's Do method.
  9760  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
  9761  	c.ctx_ = ctx
  9762  	return c
  9763  }
  9764  
  9765  // Header returns a http.Header that can be modified by the caller to add
  9766  // headers to the request.
  9767  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
  9768  	if c.header_ == nil {
  9769  		c.header_ = make(http.Header)
  9770  	}
  9771  	return c.header_
  9772  }
  9773  
  9774  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  9775  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9776  	if c.ifNoneMatch_ != "" {
  9777  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9778  	}
  9779  	var body io.Reader = nil
  9780  	c.urlParams_.Set("alt", alt)
  9781  	c.urlParams_.Set("prettyPrint", "false")
  9782  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
  9783  	urls += "?" + c.urlParams_.Encode()
  9784  	req, err := http.NewRequest("GET", urls, body)
  9785  	if err != nil {
  9786  		return nil, err
  9787  	}
  9788  	req.Header = reqHeaders
  9789  	googleapi.Expand(req.URL, map[string]string{
  9790  		"name": c.name,
  9791  	})
  9792  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9793  }
  9794  
  9795  // Do executes the "migrationcenter.projects.locations.operations.list" call.
  9796  // Any non-2xx status code is an error. Response headers are in either
  9797  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  9798  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9799  // check whether the returned error was because http.StatusNotModified was
  9800  // returned.
  9801  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  9802  	gensupport.SetOptions(c.urlParams_, opts...)
  9803  	res, err := c.doRequest("json")
  9804  	if res != nil && res.StatusCode == http.StatusNotModified {
  9805  		if res.Body != nil {
  9806  			res.Body.Close()
  9807  		}
  9808  		return nil, gensupport.WrapError(&googleapi.Error{
  9809  			Code:   res.StatusCode,
  9810  			Header: res.Header,
  9811  		})
  9812  	}
  9813  	if err != nil {
  9814  		return nil, err
  9815  	}
  9816  	defer googleapi.CloseBody(res)
  9817  	if err := googleapi.CheckResponse(res); err != nil {
  9818  		return nil, gensupport.WrapError(err)
  9819  	}
  9820  	ret := &ListOperationsResponse{
  9821  		ServerResponse: googleapi.ServerResponse{
  9822  			Header:         res.Header,
  9823  			HTTPStatusCode: res.StatusCode,
  9824  		},
  9825  	}
  9826  	target := &ret
  9827  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9828  		return nil, err
  9829  	}
  9830  	return ret, nil
  9831  }
  9832  
  9833  // Pages invokes f for each page of results.
  9834  // A non-nil error returned from f will halt the iteration.
  9835  // The provided context supersedes any context provided to the Context method.
  9836  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  9837  	c.ctx_ = ctx
  9838  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9839  	for {
  9840  		x, err := c.Do()
  9841  		if err != nil {
  9842  			return err
  9843  		}
  9844  		if err := f(x); err != nil {
  9845  			return err
  9846  		}
  9847  		if x.NextPageToken == "" {
  9848  			return nil
  9849  		}
  9850  		c.PageToken(x.NextPageToken)
  9851  	}
  9852  }
  9853  
  9854  type ProjectsLocationsPreferenceSetsCreateCall struct {
  9855  	s             *Service
  9856  	parent        string
  9857  	preferenceset *PreferenceSet
  9858  	urlParams_    gensupport.URLParams
  9859  	ctx_          context.Context
  9860  	header_       http.Header
  9861  }
  9862  
  9863  // Create: Creates a new preference set in a given project and location.
  9864  //
  9865  // - parent: Value for parent.
  9866  func (r *ProjectsLocationsPreferenceSetsService) Create(parent string, preferenceset *PreferenceSet) *ProjectsLocationsPreferenceSetsCreateCall {
  9867  	c := &ProjectsLocationsPreferenceSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9868  	c.parent = parent
  9869  	c.preferenceset = preferenceset
  9870  	return c
  9871  }
  9872  
  9873  // PreferenceSetId sets the optional parameter "preferenceSetId": Required.
  9874  // User specified ID for the preference set. It will become the last component
  9875  // of the preference set name. The ID must be unique within the project, must
  9876  // conform with RFC-1034, is restricted to lower-cased letters, and has a
  9877  // maximum length of 63 characters. The ID must match the regular expression
  9878  // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  9879  func (c *ProjectsLocationsPreferenceSetsCreateCall) PreferenceSetId(preferenceSetId string) *ProjectsLocationsPreferenceSetsCreateCall {
  9880  	c.urlParams_.Set("preferenceSetId", preferenceSetId)
  9881  	return c
  9882  }
  9883  
  9884  // RequestId sets the optional parameter "requestId": An optional request ID to
  9885  // identify requests. Specify a unique request ID so that if you must retry
  9886  // your request, the server will know to ignore the request if it has already
  9887  // been completed. The server will guarantee that for at least 60 minutes since
  9888  // the first request. For example, consider a situation where you make an
  9889  // initial request and the request times out. If you make the request again
  9890  // with the same request ID, the server can check if original operation with
  9891  // the same request ID was received, and if so, will ignore the second request.
  9892  // This prevents clients from accidentally creating duplicate commitments. The
  9893  // request ID must be a valid UUID with the exception that zero UUID is not
  9894  // supported (00000000-0000-0000-0000-000000000000).
  9895  func (c *ProjectsLocationsPreferenceSetsCreateCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsCreateCall {
  9896  	c.urlParams_.Set("requestId", requestId)
  9897  	return c
  9898  }
  9899  
  9900  // Fields allows partial responses to be retrieved. See
  9901  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9902  // details.
  9903  func (c *ProjectsLocationsPreferenceSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsCreateCall {
  9904  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9905  	return c
  9906  }
  9907  
  9908  // Context sets the context to be used in this call's Do method.
  9909  func (c *ProjectsLocationsPreferenceSetsCreateCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsCreateCall {
  9910  	c.ctx_ = ctx
  9911  	return c
  9912  }
  9913  
  9914  // Header returns a http.Header that can be modified by the caller to add
  9915  // headers to the request.
  9916  func (c *ProjectsLocationsPreferenceSetsCreateCall) Header() http.Header {
  9917  	if c.header_ == nil {
  9918  		c.header_ = make(http.Header)
  9919  	}
  9920  	return c.header_
  9921  }
  9922  
  9923  func (c *ProjectsLocationsPreferenceSetsCreateCall) doRequest(alt string) (*http.Response, error) {
  9924  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9925  	var body io.Reader = nil
  9926  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.preferenceset)
  9927  	if err != nil {
  9928  		return nil, err
  9929  	}
  9930  	c.urlParams_.Set("alt", alt)
  9931  	c.urlParams_.Set("prettyPrint", "false")
  9932  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/preferenceSets")
  9933  	urls += "?" + c.urlParams_.Encode()
  9934  	req, err := http.NewRequest("POST", urls, body)
  9935  	if err != nil {
  9936  		return nil, err
  9937  	}
  9938  	req.Header = reqHeaders
  9939  	googleapi.Expand(req.URL, map[string]string{
  9940  		"parent": c.parent,
  9941  	})
  9942  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9943  }
  9944  
  9945  // Do executes the "migrationcenter.projects.locations.preferenceSets.create" call.
  9946  // Any non-2xx status code is an error. Response headers are in either
  9947  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9948  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9949  // whether the returned error was because http.StatusNotModified was returned.
  9950  func (c *ProjectsLocationsPreferenceSetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9951  	gensupport.SetOptions(c.urlParams_, opts...)
  9952  	res, err := c.doRequest("json")
  9953  	if res != nil && res.StatusCode == http.StatusNotModified {
  9954  		if res.Body != nil {
  9955  			res.Body.Close()
  9956  		}
  9957  		return nil, gensupport.WrapError(&googleapi.Error{
  9958  			Code:   res.StatusCode,
  9959  			Header: res.Header,
  9960  		})
  9961  	}
  9962  	if err != nil {
  9963  		return nil, err
  9964  	}
  9965  	defer googleapi.CloseBody(res)
  9966  	if err := googleapi.CheckResponse(res); err != nil {
  9967  		return nil, gensupport.WrapError(err)
  9968  	}
  9969  	ret := &Operation{
  9970  		ServerResponse: googleapi.ServerResponse{
  9971  			Header:         res.Header,
  9972  			HTTPStatusCode: res.StatusCode,
  9973  		},
  9974  	}
  9975  	target := &ret
  9976  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9977  		return nil, err
  9978  	}
  9979  	return ret, nil
  9980  }
  9981  
  9982  type ProjectsLocationsPreferenceSetsDeleteCall struct {
  9983  	s          *Service
  9984  	name       string
  9985  	urlParams_ gensupport.URLParams
  9986  	ctx_       context.Context
  9987  	header_    http.Header
  9988  }
  9989  
  9990  // Delete: Deletes a preference set.
  9991  //
  9992  // - name: Name of the group resource.
  9993  func (r *ProjectsLocationsPreferenceSetsService) Delete(name string) *ProjectsLocationsPreferenceSetsDeleteCall {
  9994  	c := &ProjectsLocationsPreferenceSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9995  	c.name = name
  9996  	return c
  9997  }
  9998  
  9999  // RequestId sets the optional parameter "requestId": An optional request ID to
 10000  // identify requests. Specify a unique request ID so that if you must retry
 10001  // your request, the server will know to ignore the request if it has already
 10002  // been completed. The server will guarantee that for at least 60 minutes after
 10003  // the first request. For example, consider a situation where you make an
 10004  // initial request and the request times out. If you make the request again
 10005  // with the same request ID, the server can check if original operation with
 10006  // the same request ID was received, and if so, will ignore the second request.
 10007  // This prevents clients from accidentally creating duplicate commitments. The
 10008  // request ID must be a valid UUID with the exception that zero UUID is not
 10009  // supported (00000000-0000-0000-0000-000000000000).
 10010  func (c *ProjectsLocationsPreferenceSetsDeleteCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsDeleteCall {
 10011  	c.urlParams_.Set("requestId", requestId)
 10012  	return c
 10013  }
 10014  
 10015  // Fields allows partial responses to be retrieved. See
 10016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10017  // details.
 10018  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsDeleteCall {
 10019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10020  	return c
 10021  }
 10022  
 10023  // Context sets the context to be used in this call's Do method.
 10024  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsDeleteCall {
 10025  	c.ctx_ = ctx
 10026  	return c
 10027  }
 10028  
 10029  // Header returns a http.Header that can be modified by the caller to add
 10030  // headers to the request.
 10031  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Header() http.Header {
 10032  	if c.header_ == nil {
 10033  		c.header_ = make(http.Header)
 10034  	}
 10035  	return c.header_
 10036  }
 10037  
 10038  func (c *ProjectsLocationsPreferenceSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10039  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10040  	var body io.Reader = nil
 10041  	c.urlParams_.Set("alt", alt)
 10042  	c.urlParams_.Set("prettyPrint", "false")
 10043  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10044  	urls += "?" + c.urlParams_.Encode()
 10045  	req, err := http.NewRequest("DELETE", urls, body)
 10046  	if err != nil {
 10047  		return nil, err
 10048  	}
 10049  	req.Header = reqHeaders
 10050  	googleapi.Expand(req.URL, map[string]string{
 10051  		"name": c.name,
 10052  	})
 10053  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10054  }
 10055  
 10056  // Do executes the "migrationcenter.projects.locations.preferenceSets.delete" call.
 10057  // Any non-2xx status code is an error. Response headers are in either
 10058  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10059  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10060  // whether the returned error was because http.StatusNotModified was returned.
 10061  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10062  	gensupport.SetOptions(c.urlParams_, opts...)
 10063  	res, err := c.doRequest("json")
 10064  	if res != nil && res.StatusCode == http.StatusNotModified {
 10065  		if res.Body != nil {
 10066  			res.Body.Close()
 10067  		}
 10068  		return nil, gensupport.WrapError(&googleapi.Error{
 10069  			Code:   res.StatusCode,
 10070  			Header: res.Header,
 10071  		})
 10072  	}
 10073  	if err != nil {
 10074  		return nil, err
 10075  	}
 10076  	defer googleapi.CloseBody(res)
 10077  	if err := googleapi.CheckResponse(res); err != nil {
 10078  		return nil, gensupport.WrapError(err)
 10079  	}
 10080  	ret := &Operation{
 10081  		ServerResponse: googleapi.ServerResponse{
 10082  			Header:         res.Header,
 10083  			HTTPStatusCode: res.StatusCode,
 10084  		},
 10085  	}
 10086  	target := &ret
 10087  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10088  		return nil, err
 10089  	}
 10090  	return ret, nil
 10091  }
 10092  
 10093  type ProjectsLocationsPreferenceSetsGetCall struct {
 10094  	s            *Service
 10095  	name         string
 10096  	urlParams_   gensupport.URLParams
 10097  	ifNoneMatch_ string
 10098  	ctx_         context.Context
 10099  	header_      http.Header
 10100  }
 10101  
 10102  // Get: Gets the details of a preference set.
 10103  //
 10104  // - name: Name of the resource.
 10105  func (r *ProjectsLocationsPreferenceSetsService) Get(name string) *ProjectsLocationsPreferenceSetsGetCall {
 10106  	c := &ProjectsLocationsPreferenceSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10107  	c.name = name
 10108  	return c
 10109  }
 10110  
 10111  // Fields allows partial responses to be retrieved. See
 10112  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10113  // details.
 10114  func (c *ProjectsLocationsPreferenceSetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsGetCall {
 10115  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10116  	return c
 10117  }
 10118  
 10119  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10120  // object's ETag matches the given value. This is useful for getting updates
 10121  // only after the object has changed since the last request.
 10122  func (c *ProjectsLocationsPreferenceSetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreferenceSetsGetCall {
 10123  	c.ifNoneMatch_ = entityTag
 10124  	return c
 10125  }
 10126  
 10127  // Context sets the context to be used in this call's Do method.
 10128  func (c *ProjectsLocationsPreferenceSetsGetCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsGetCall {
 10129  	c.ctx_ = ctx
 10130  	return c
 10131  }
 10132  
 10133  // Header returns a http.Header that can be modified by the caller to add
 10134  // headers to the request.
 10135  func (c *ProjectsLocationsPreferenceSetsGetCall) Header() http.Header {
 10136  	if c.header_ == nil {
 10137  		c.header_ = make(http.Header)
 10138  	}
 10139  	return c.header_
 10140  }
 10141  
 10142  func (c *ProjectsLocationsPreferenceSetsGetCall) doRequest(alt string) (*http.Response, error) {
 10143  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10144  	if c.ifNoneMatch_ != "" {
 10145  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10146  	}
 10147  	var body io.Reader = nil
 10148  	c.urlParams_.Set("alt", alt)
 10149  	c.urlParams_.Set("prettyPrint", "false")
 10150  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10151  	urls += "?" + c.urlParams_.Encode()
 10152  	req, err := http.NewRequest("GET", urls, body)
 10153  	if err != nil {
 10154  		return nil, err
 10155  	}
 10156  	req.Header = reqHeaders
 10157  	googleapi.Expand(req.URL, map[string]string{
 10158  		"name": c.name,
 10159  	})
 10160  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10161  }
 10162  
 10163  // Do executes the "migrationcenter.projects.locations.preferenceSets.get" call.
 10164  // Any non-2xx status code is an error. Response headers are in either
 10165  // *PreferenceSet.ServerResponse.Header or (if a response was returned at all)
 10166  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10167  // whether the returned error was because http.StatusNotModified was returned.
 10168  func (c *ProjectsLocationsPreferenceSetsGetCall) Do(opts ...googleapi.CallOption) (*PreferenceSet, error) {
 10169  	gensupport.SetOptions(c.urlParams_, opts...)
 10170  	res, err := c.doRequest("json")
 10171  	if res != nil && res.StatusCode == http.StatusNotModified {
 10172  		if res.Body != nil {
 10173  			res.Body.Close()
 10174  		}
 10175  		return nil, gensupport.WrapError(&googleapi.Error{
 10176  			Code:   res.StatusCode,
 10177  			Header: res.Header,
 10178  		})
 10179  	}
 10180  	if err != nil {
 10181  		return nil, err
 10182  	}
 10183  	defer googleapi.CloseBody(res)
 10184  	if err := googleapi.CheckResponse(res); err != nil {
 10185  		return nil, gensupport.WrapError(err)
 10186  	}
 10187  	ret := &PreferenceSet{
 10188  		ServerResponse: googleapi.ServerResponse{
 10189  			Header:         res.Header,
 10190  			HTTPStatusCode: res.StatusCode,
 10191  		},
 10192  	}
 10193  	target := &ret
 10194  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10195  		return nil, err
 10196  	}
 10197  	return ret, nil
 10198  }
 10199  
 10200  type ProjectsLocationsPreferenceSetsListCall struct {
 10201  	s            *Service
 10202  	parent       string
 10203  	urlParams_   gensupport.URLParams
 10204  	ifNoneMatch_ string
 10205  	ctx_         context.Context
 10206  	header_      http.Header
 10207  }
 10208  
 10209  // List: Lists all the preference sets in a given project and location.
 10210  //
 10211  // - parent: Parent value for `ListPreferenceSetsRequest`.
 10212  func (r *ProjectsLocationsPreferenceSetsService) List(parent string) *ProjectsLocationsPreferenceSetsListCall {
 10213  	c := &ProjectsLocationsPreferenceSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10214  	c.parent = parent
 10215  	return c
 10216  }
 10217  
 10218  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 10219  // https://google.aip.dev/132#ordering for more details.
 10220  func (c *ProjectsLocationsPreferenceSetsListCall) OrderBy(orderBy string) *ProjectsLocationsPreferenceSetsListCall {
 10221  	c.urlParams_.Set("orderBy", orderBy)
 10222  	return c
 10223  }
 10224  
 10225  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 10226  // may return fewer items than requested. If unspecified, at most 500
 10227  // preference sets will be returned. The maximum value is 1000; values above
 10228  // 1000 will be coerced to 1000.
 10229  func (c *ProjectsLocationsPreferenceSetsListCall) PageSize(pageSize int64) *ProjectsLocationsPreferenceSetsListCall {
 10230  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10231  	return c
 10232  }
 10233  
 10234  // PageToken sets the optional parameter "pageToken": A token identifying a
 10235  // page of results the server should return.
 10236  func (c *ProjectsLocationsPreferenceSetsListCall) PageToken(pageToken string) *ProjectsLocationsPreferenceSetsListCall {
 10237  	c.urlParams_.Set("pageToken", pageToken)
 10238  	return c
 10239  }
 10240  
 10241  // Fields allows partial responses to be retrieved. See
 10242  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10243  // details.
 10244  func (c *ProjectsLocationsPreferenceSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsListCall {
 10245  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10246  	return c
 10247  }
 10248  
 10249  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10250  // object's ETag matches the given value. This is useful for getting updates
 10251  // only after the object has changed since the last request.
 10252  func (c *ProjectsLocationsPreferenceSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreferenceSetsListCall {
 10253  	c.ifNoneMatch_ = entityTag
 10254  	return c
 10255  }
 10256  
 10257  // Context sets the context to be used in this call's Do method.
 10258  func (c *ProjectsLocationsPreferenceSetsListCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsListCall {
 10259  	c.ctx_ = ctx
 10260  	return c
 10261  }
 10262  
 10263  // Header returns a http.Header that can be modified by the caller to add
 10264  // headers to the request.
 10265  func (c *ProjectsLocationsPreferenceSetsListCall) Header() http.Header {
 10266  	if c.header_ == nil {
 10267  		c.header_ = make(http.Header)
 10268  	}
 10269  	return c.header_
 10270  }
 10271  
 10272  func (c *ProjectsLocationsPreferenceSetsListCall) doRequest(alt string) (*http.Response, error) {
 10273  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10274  	if c.ifNoneMatch_ != "" {
 10275  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10276  	}
 10277  	var body io.Reader = nil
 10278  	c.urlParams_.Set("alt", alt)
 10279  	c.urlParams_.Set("prettyPrint", "false")
 10280  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/preferenceSets")
 10281  	urls += "?" + c.urlParams_.Encode()
 10282  	req, err := http.NewRequest("GET", urls, body)
 10283  	if err != nil {
 10284  		return nil, err
 10285  	}
 10286  	req.Header = reqHeaders
 10287  	googleapi.Expand(req.URL, map[string]string{
 10288  		"parent": c.parent,
 10289  	})
 10290  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10291  }
 10292  
 10293  // Do executes the "migrationcenter.projects.locations.preferenceSets.list" call.
 10294  // Any non-2xx status code is an error. Response headers are in either
 10295  // *ListPreferenceSetsResponse.ServerResponse.Header or (if a response was
 10296  // returned at all) in error.(*googleapi.Error).Header. Use
 10297  // googleapi.IsNotModified to check whether the returned error was because
 10298  // http.StatusNotModified was returned.
 10299  func (c *ProjectsLocationsPreferenceSetsListCall) Do(opts ...googleapi.CallOption) (*ListPreferenceSetsResponse, error) {
 10300  	gensupport.SetOptions(c.urlParams_, opts...)
 10301  	res, err := c.doRequest("json")
 10302  	if res != nil && res.StatusCode == http.StatusNotModified {
 10303  		if res.Body != nil {
 10304  			res.Body.Close()
 10305  		}
 10306  		return nil, gensupport.WrapError(&googleapi.Error{
 10307  			Code:   res.StatusCode,
 10308  			Header: res.Header,
 10309  		})
 10310  	}
 10311  	if err != nil {
 10312  		return nil, err
 10313  	}
 10314  	defer googleapi.CloseBody(res)
 10315  	if err := googleapi.CheckResponse(res); err != nil {
 10316  		return nil, gensupport.WrapError(err)
 10317  	}
 10318  	ret := &ListPreferenceSetsResponse{
 10319  		ServerResponse: googleapi.ServerResponse{
 10320  			Header:         res.Header,
 10321  			HTTPStatusCode: res.StatusCode,
 10322  		},
 10323  	}
 10324  	target := &ret
 10325  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10326  		return nil, err
 10327  	}
 10328  	return ret, nil
 10329  }
 10330  
 10331  // Pages invokes f for each page of results.
 10332  // A non-nil error returned from f will halt the iteration.
 10333  // The provided context supersedes any context provided to the Context method.
 10334  func (c *ProjectsLocationsPreferenceSetsListCall) Pages(ctx context.Context, f func(*ListPreferenceSetsResponse) error) error {
 10335  	c.ctx_ = ctx
 10336  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10337  	for {
 10338  		x, err := c.Do()
 10339  		if err != nil {
 10340  			return err
 10341  		}
 10342  		if err := f(x); err != nil {
 10343  			return err
 10344  		}
 10345  		if x.NextPageToken == "" {
 10346  			return nil
 10347  		}
 10348  		c.PageToken(x.NextPageToken)
 10349  	}
 10350  }
 10351  
 10352  type ProjectsLocationsPreferenceSetsPatchCall struct {
 10353  	s             *Service
 10354  	name          string
 10355  	preferenceset *PreferenceSet
 10356  	urlParams_    gensupport.URLParams
 10357  	ctx_          context.Context
 10358  	header_       http.Header
 10359  }
 10360  
 10361  // Patch: Updates the parameters of a preference set.
 10362  //
 10363  // - name: Output only. Name of the preference set.
 10364  func (r *ProjectsLocationsPreferenceSetsService) Patch(name string, preferenceset *PreferenceSet) *ProjectsLocationsPreferenceSetsPatchCall {
 10365  	c := &ProjectsLocationsPreferenceSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10366  	c.name = name
 10367  	c.preferenceset = preferenceset
 10368  	return c
 10369  }
 10370  
 10371  // RequestId sets the optional parameter "requestId": An optional request ID to
 10372  // identify requests. Specify a unique request ID so that if you must retry
 10373  // your request, the server will know to ignore the request if it has already
 10374  // been completed. The server will guarantee that for at least 60 minutes since
 10375  // the first request. For example, consider a situation where you make an
 10376  // initial request and the request times out. If you make the request again
 10377  // with the same request ID, the server can check if original operation with
 10378  // the same request ID was received, and if so, will ignore the second request.
 10379  // This prevents clients from accidentally creating duplicate commitments. The
 10380  // request ID must be a valid UUID with the exception that zero UUID is not
 10381  // supported (00000000-0000-0000-0000-000000000000).
 10382  func (c *ProjectsLocationsPreferenceSetsPatchCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsPatchCall {
 10383  	c.urlParams_.Set("requestId", requestId)
 10384  	return c
 10385  }
 10386  
 10387  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 10388  // used to specify the fields to be overwritten in the `PreferenceSet` resource
 10389  // by the update. The values specified in the `update_mask` field are relative
 10390  // to the resource, not the full request. A field will be overwritten if it is
 10391  // in the mask. A single * value in the mask lets you to overwrite all fields.
 10392  func (c *ProjectsLocationsPreferenceSetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPreferenceSetsPatchCall {
 10393  	c.urlParams_.Set("updateMask", updateMask)
 10394  	return c
 10395  }
 10396  
 10397  // Fields allows partial responses to be retrieved. See
 10398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10399  // details.
 10400  func (c *ProjectsLocationsPreferenceSetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsPatchCall {
 10401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10402  	return c
 10403  }
 10404  
 10405  // Context sets the context to be used in this call's Do method.
 10406  func (c *ProjectsLocationsPreferenceSetsPatchCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsPatchCall {
 10407  	c.ctx_ = ctx
 10408  	return c
 10409  }
 10410  
 10411  // Header returns a http.Header that can be modified by the caller to add
 10412  // headers to the request.
 10413  func (c *ProjectsLocationsPreferenceSetsPatchCall) Header() http.Header {
 10414  	if c.header_ == nil {
 10415  		c.header_ = make(http.Header)
 10416  	}
 10417  	return c.header_
 10418  }
 10419  
 10420  func (c *ProjectsLocationsPreferenceSetsPatchCall) doRequest(alt string) (*http.Response, error) {
 10421  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10422  	var body io.Reader = nil
 10423  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.preferenceset)
 10424  	if err != nil {
 10425  		return nil, err
 10426  	}
 10427  	c.urlParams_.Set("alt", alt)
 10428  	c.urlParams_.Set("prettyPrint", "false")
 10429  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10430  	urls += "?" + c.urlParams_.Encode()
 10431  	req, err := http.NewRequest("PATCH", urls, body)
 10432  	if err != nil {
 10433  		return nil, err
 10434  	}
 10435  	req.Header = reqHeaders
 10436  	googleapi.Expand(req.URL, map[string]string{
 10437  		"name": c.name,
 10438  	})
 10439  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10440  }
 10441  
 10442  // Do executes the "migrationcenter.projects.locations.preferenceSets.patch" call.
 10443  // Any non-2xx status code is an error. Response headers are in either
 10444  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10445  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10446  // whether the returned error was because http.StatusNotModified was returned.
 10447  func (c *ProjectsLocationsPreferenceSetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10448  	gensupport.SetOptions(c.urlParams_, opts...)
 10449  	res, err := c.doRequest("json")
 10450  	if res != nil && res.StatusCode == http.StatusNotModified {
 10451  		if res.Body != nil {
 10452  			res.Body.Close()
 10453  		}
 10454  		return nil, gensupport.WrapError(&googleapi.Error{
 10455  			Code:   res.StatusCode,
 10456  			Header: res.Header,
 10457  		})
 10458  	}
 10459  	if err != nil {
 10460  		return nil, err
 10461  	}
 10462  	defer googleapi.CloseBody(res)
 10463  	if err := googleapi.CheckResponse(res); err != nil {
 10464  		return nil, gensupport.WrapError(err)
 10465  	}
 10466  	ret := &Operation{
 10467  		ServerResponse: googleapi.ServerResponse{
 10468  			Header:         res.Header,
 10469  			HTTPStatusCode: res.StatusCode,
 10470  		},
 10471  	}
 10472  	target := &ret
 10473  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10474  		return nil, err
 10475  	}
 10476  	return ret, nil
 10477  }
 10478  
 10479  type ProjectsLocationsReportConfigsCreateCall struct {
 10480  	s            *Service
 10481  	parent       string
 10482  	reportconfig *ReportConfig
 10483  	urlParams_   gensupport.URLParams
 10484  	ctx_         context.Context
 10485  	header_      http.Header
 10486  }
 10487  
 10488  // Create: Creates a report configuration.
 10489  //
 10490  // - parent: Value for parent.
 10491  func (r *ProjectsLocationsReportConfigsService) Create(parent string, reportconfig *ReportConfig) *ProjectsLocationsReportConfigsCreateCall {
 10492  	c := &ProjectsLocationsReportConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10493  	c.parent = parent
 10494  	c.reportconfig = reportconfig
 10495  	return c
 10496  }
 10497  
 10498  // ReportConfigId sets the optional parameter "reportConfigId": Required. User
 10499  // specified ID for the report config. It will become the last component of the
 10500  // report config name. The ID must be unique within the project, must conform
 10501  // with RFC-1034, is restricted to lower-cased letters, and has a maximum
 10502  // length of 63 characters. The ID must match the regular expression: a-z
 10503  // ([a-z0-9-]{0,61}[a-z0-9])?.
 10504  func (c *ProjectsLocationsReportConfigsCreateCall) ReportConfigId(reportConfigId string) *ProjectsLocationsReportConfigsCreateCall {
 10505  	c.urlParams_.Set("reportConfigId", reportConfigId)
 10506  	return c
 10507  }
 10508  
 10509  // RequestId sets the optional parameter "requestId": An optional request ID to
 10510  // identify requests. Specify a unique request ID so that if you must retry
 10511  // your request, the server will know to ignore the request if it has already
 10512  // been completed. The server will guarantee that for at least 60 minutes since
 10513  // the first request. For example, consider a situation where you make an
 10514  // initial request and the request times out. If you make the request again
 10515  // with the same request ID, the server can check if original operation with
 10516  // the same request ID was received, and if so, will ignore the second request.
 10517  // This prevents clients from accidentally creating duplicate commitments. The
 10518  // request ID must be a valid UUID with the exception that zero UUID is not
 10519  // supported (00000000-0000-0000-0000-000000000000).
 10520  func (c *ProjectsLocationsReportConfigsCreateCall) RequestId(requestId string) *ProjectsLocationsReportConfigsCreateCall {
 10521  	c.urlParams_.Set("requestId", requestId)
 10522  	return c
 10523  }
 10524  
 10525  // Fields allows partial responses to be retrieved. See
 10526  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10527  // details.
 10528  func (c *ProjectsLocationsReportConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsCreateCall {
 10529  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10530  	return c
 10531  }
 10532  
 10533  // Context sets the context to be used in this call's Do method.
 10534  func (c *ProjectsLocationsReportConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsCreateCall {
 10535  	c.ctx_ = ctx
 10536  	return c
 10537  }
 10538  
 10539  // Header returns a http.Header that can be modified by the caller to add
 10540  // headers to the request.
 10541  func (c *ProjectsLocationsReportConfigsCreateCall) Header() http.Header {
 10542  	if c.header_ == nil {
 10543  		c.header_ = make(http.Header)
 10544  	}
 10545  	return c.header_
 10546  }
 10547  
 10548  func (c *ProjectsLocationsReportConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
 10549  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10550  	var body io.Reader = nil
 10551  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportconfig)
 10552  	if err != nil {
 10553  		return nil, err
 10554  	}
 10555  	c.urlParams_.Set("alt", alt)
 10556  	c.urlParams_.Set("prettyPrint", "false")
 10557  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reportConfigs")
 10558  	urls += "?" + c.urlParams_.Encode()
 10559  	req, err := http.NewRequest("POST", urls, body)
 10560  	if err != nil {
 10561  		return nil, err
 10562  	}
 10563  	req.Header = reqHeaders
 10564  	googleapi.Expand(req.URL, map[string]string{
 10565  		"parent": c.parent,
 10566  	})
 10567  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10568  }
 10569  
 10570  // Do executes the "migrationcenter.projects.locations.reportConfigs.create" call.
 10571  // Any non-2xx status code is an error. Response headers are in either
 10572  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10573  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10574  // whether the returned error was because http.StatusNotModified was returned.
 10575  func (c *ProjectsLocationsReportConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10576  	gensupport.SetOptions(c.urlParams_, opts...)
 10577  	res, err := c.doRequest("json")
 10578  	if res != nil && res.StatusCode == http.StatusNotModified {
 10579  		if res.Body != nil {
 10580  			res.Body.Close()
 10581  		}
 10582  		return nil, gensupport.WrapError(&googleapi.Error{
 10583  			Code:   res.StatusCode,
 10584  			Header: res.Header,
 10585  		})
 10586  	}
 10587  	if err != nil {
 10588  		return nil, err
 10589  	}
 10590  	defer googleapi.CloseBody(res)
 10591  	if err := googleapi.CheckResponse(res); err != nil {
 10592  		return nil, gensupport.WrapError(err)
 10593  	}
 10594  	ret := &Operation{
 10595  		ServerResponse: googleapi.ServerResponse{
 10596  			Header:         res.Header,
 10597  			HTTPStatusCode: res.StatusCode,
 10598  		},
 10599  	}
 10600  	target := &ret
 10601  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10602  		return nil, err
 10603  	}
 10604  	return ret, nil
 10605  }
 10606  
 10607  type ProjectsLocationsReportConfigsDeleteCall struct {
 10608  	s          *Service
 10609  	name       string
 10610  	urlParams_ gensupport.URLParams
 10611  	ctx_       context.Context
 10612  	header_    http.Header
 10613  }
 10614  
 10615  // Delete: Deletes a ReportConfig.
 10616  //
 10617  // - name: Name of the resource.
 10618  func (r *ProjectsLocationsReportConfigsService) Delete(name string) *ProjectsLocationsReportConfigsDeleteCall {
 10619  	c := &ProjectsLocationsReportConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10620  	c.name = name
 10621  	return c
 10622  }
 10623  
 10624  // Force sets the optional parameter "force": If set to `true`, any child
 10625  // `Reports` of this entity will also be deleted. If set to `false`, the
 10626  // request only works if the resource has no children.
 10627  func (c *ProjectsLocationsReportConfigsDeleteCall) Force(force bool) *ProjectsLocationsReportConfigsDeleteCall {
 10628  	c.urlParams_.Set("force", fmt.Sprint(force))
 10629  	return c
 10630  }
 10631  
 10632  // RequestId sets the optional parameter "requestId": An optional request ID to
 10633  // identify requests. Specify a unique request ID so that if you must retry
 10634  // your request, the server will know to ignore the request if it has already
 10635  // been completed. The server will guarantee that for at least 60 minutes after
 10636  // the first request. For example, consider a situation where you make an
 10637  // initial request and the request times out. If you make the request again
 10638  // with the same request ID, the server can check if original operation with
 10639  // the same request ID was received, and if so, will ignore the second request.
 10640  // This prevents clients from accidentally creating duplicate commitments. The
 10641  // request ID must be a valid UUID with the exception that zero UUID is not
 10642  // supported (00000000-0000-0000-0000-000000000000).
 10643  func (c *ProjectsLocationsReportConfigsDeleteCall) RequestId(requestId string) *ProjectsLocationsReportConfigsDeleteCall {
 10644  	c.urlParams_.Set("requestId", requestId)
 10645  	return c
 10646  }
 10647  
 10648  // Fields allows partial responses to be retrieved. See
 10649  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10650  // details.
 10651  func (c *ProjectsLocationsReportConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsDeleteCall {
 10652  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10653  	return c
 10654  }
 10655  
 10656  // Context sets the context to be used in this call's Do method.
 10657  func (c *ProjectsLocationsReportConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsDeleteCall {
 10658  	c.ctx_ = ctx
 10659  	return c
 10660  }
 10661  
 10662  // Header returns a http.Header that can be modified by the caller to add
 10663  // headers to the request.
 10664  func (c *ProjectsLocationsReportConfigsDeleteCall) Header() http.Header {
 10665  	if c.header_ == nil {
 10666  		c.header_ = make(http.Header)
 10667  	}
 10668  	return c.header_
 10669  }
 10670  
 10671  func (c *ProjectsLocationsReportConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10672  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10673  	var body io.Reader = nil
 10674  	c.urlParams_.Set("alt", alt)
 10675  	c.urlParams_.Set("prettyPrint", "false")
 10676  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10677  	urls += "?" + c.urlParams_.Encode()
 10678  	req, err := http.NewRequest("DELETE", urls, body)
 10679  	if err != nil {
 10680  		return nil, err
 10681  	}
 10682  	req.Header = reqHeaders
 10683  	googleapi.Expand(req.URL, map[string]string{
 10684  		"name": c.name,
 10685  	})
 10686  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10687  }
 10688  
 10689  // Do executes the "migrationcenter.projects.locations.reportConfigs.delete" call.
 10690  // Any non-2xx status code is an error. Response headers are in either
 10691  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10692  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10693  // whether the returned error was because http.StatusNotModified was returned.
 10694  func (c *ProjectsLocationsReportConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10695  	gensupport.SetOptions(c.urlParams_, opts...)
 10696  	res, err := c.doRequest("json")
 10697  	if res != nil && res.StatusCode == http.StatusNotModified {
 10698  		if res.Body != nil {
 10699  			res.Body.Close()
 10700  		}
 10701  		return nil, gensupport.WrapError(&googleapi.Error{
 10702  			Code:   res.StatusCode,
 10703  			Header: res.Header,
 10704  		})
 10705  	}
 10706  	if err != nil {
 10707  		return nil, err
 10708  	}
 10709  	defer googleapi.CloseBody(res)
 10710  	if err := googleapi.CheckResponse(res); err != nil {
 10711  		return nil, gensupport.WrapError(err)
 10712  	}
 10713  	ret := &Operation{
 10714  		ServerResponse: googleapi.ServerResponse{
 10715  			Header:         res.Header,
 10716  			HTTPStatusCode: res.StatusCode,
 10717  		},
 10718  	}
 10719  	target := &ret
 10720  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10721  		return nil, err
 10722  	}
 10723  	return ret, nil
 10724  }
 10725  
 10726  type ProjectsLocationsReportConfigsGetCall struct {
 10727  	s            *Service
 10728  	name         string
 10729  	urlParams_   gensupport.URLParams
 10730  	ifNoneMatch_ string
 10731  	ctx_         context.Context
 10732  	header_      http.Header
 10733  }
 10734  
 10735  // Get: Gets details of a single ReportConfig.
 10736  //
 10737  // - name: Name of the resource.
 10738  func (r *ProjectsLocationsReportConfigsService) Get(name string) *ProjectsLocationsReportConfigsGetCall {
 10739  	c := &ProjectsLocationsReportConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10740  	c.name = name
 10741  	return c
 10742  }
 10743  
 10744  // Fields allows partial responses to be retrieved. See
 10745  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10746  // details.
 10747  func (c *ProjectsLocationsReportConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsGetCall {
 10748  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10749  	return c
 10750  }
 10751  
 10752  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10753  // object's ETag matches the given value. This is useful for getting updates
 10754  // only after the object has changed since the last request.
 10755  func (c *ProjectsLocationsReportConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsGetCall {
 10756  	c.ifNoneMatch_ = entityTag
 10757  	return c
 10758  }
 10759  
 10760  // Context sets the context to be used in this call's Do method.
 10761  func (c *ProjectsLocationsReportConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsGetCall {
 10762  	c.ctx_ = ctx
 10763  	return c
 10764  }
 10765  
 10766  // Header returns a http.Header that can be modified by the caller to add
 10767  // headers to the request.
 10768  func (c *ProjectsLocationsReportConfigsGetCall) Header() http.Header {
 10769  	if c.header_ == nil {
 10770  		c.header_ = make(http.Header)
 10771  	}
 10772  	return c.header_
 10773  }
 10774  
 10775  func (c *ProjectsLocationsReportConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 10776  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10777  	if c.ifNoneMatch_ != "" {
 10778  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10779  	}
 10780  	var body io.Reader = nil
 10781  	c.urlParams_.Set("alt", alt)
 10782  	c.urlParams_.Set("prettyPrint", "false")
 10783  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10784  	urls += "?" + c.urlParams_.Encode()
 10785  	req, err := http.NewRequest("GET", urls, body)
 10786  	if err != nil {
 10787  		return nil, err
 10788  	}
 10789  	req.Header = reqHeaders
 10790  	googleapi.Expand(req.URL, map[string]string{
 10791  		"name": c.name,
 10792  	})
 10793  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10794  }
 10795  
 10796  // Do executes the "migrationcenter.projects.locations.reportConfigs.get" call.
 10797  // Any non-2xx status code is an error. Response headers are in either
 10798  // *ReportConfig.ServerResponse.Header or (if a response was returned at all)
 10799  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10800  // whether the returned error was because http.StatusNotModified was returned.
 10801  func (c *ProjectsLocationsReportConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReportConfig, error) {
 10802  	gensupport.SetOptions(c.urlParams_, opts...)
 10803  	res, err := c.doRequest("json")
 10804  	if res != nil && res.StatusCode == http.StatusNotModified {
 10805  		if res.Body != nil {
 10806  			res.Body.Close()
 10807  		}
 10808  		return nil, gensupport.WrapError(&googleapi.Error{
 10809  			Code:   res.StatusCode,
 10810  			Header: res.Header,
 10811  		})
 10812  	}
 10813  	if err != nil {
 10814  		return nil, err
 10815  	}
 10816  	defer googleapi.CloseBody(res)
 10817  	if err := googleapi.CheckResponse(res); err != nil {
 10818  		return nil, gensupport.WrapError(err)
 10819  	}
 10820  	ret := &ReportConfig{
 10821  		ServerResponse: googleapi.ServerResponse{
 10822  			Header:         res.Header,
 10823  			HTTPStatusCode: res.StatusCode,
 10824  		},
 10825  	}
 10826  	target := &ret
 10827  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10828  		return nil, err
 10829  	}
 10830  	return ret, nil
 10831  }
 10832  
 10833  type ProjectsLocationsReportConfigsListCall struct {
 10834  	s            *Service
 10835  	parent       string
 10836  	urlParams_   gensupport.URLParams
 10837  	ifNoneMatch_ string
 10838  	ctx_         context.Context
 10839  	header_      http.Header
 10840  }
 10841  
 10842  // List: Lists ReportConfigs in a given project and location.
 10843  //
 10844  // - parent: Parent value for `ListReportConfigsRequest`.
 10845  func (r *ProjectsLocationsReportConfigsService) List(parent string) *ProjectsLocationsReportConfigsListCall {
 10846  	c := &ProjectsLocationsReportConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10847  	c.parent = parent
 10848  	return c
 10849  }
 10850  
 10851  // Filter sets the optional parameter "filter": Filtering results.
 10852  func (c *ProjectsLocationsReportConfigsListCall) Filter(filter string) *ProjectsLocationsReportConfigsListCall {
 10853  	c.urlParams_.Set("filter", filter)
 10854  	return c
 10855  }
 10856  
 10857  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 10858  // https://google.aip.dev/132#ordering for more details.
 10859  func (c *ProjectsLocationsReportConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReportConfigsListCall {
 10860  	c.urlParams_.Set("orderBy", orderBy)
 10861  	return c
 10862  }
 10863  
 10864  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 10865  // may return fewer items than requested. If unspecified, server will pick an
 10866  // appropriate default.
 10867  func (c *ProjectsLocationsReportConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReportConfigsListCall {
 10868  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10869  	return c
 10870  }
 10871  
 10872  // PageToken sets the optional parameter "pageToken": A token identifying a
 10873  // page of results the server should return.
 10874  func (c *ProjectsLocationsReportConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReportConfigsListCall {
 10875  	c.urlParams_.Set("pageToken", pageToken)
 10876  	return c
 10877  }
 10878  
 10879  // Fields allows partial responses to be retrieved. See
 10880  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10881  // details.
 10882  func (c *ProjectsLocationsReportConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsListCall {
 10883  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10884  	return c
 10885  }
 10886  
 10887  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10888  // object's ETag matches the given value. This is useful for getting updates
 10889  // only after the object has changed since the last request.
 10890  func (c *ProjectsLocationsReportConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsListCall {
 10891  	c.ifNoneMatch_ = entityTag
 10892  	return c
 10893  }
 10894  
 10895  // Context sets the context to be used in this call's Do method.
 10896  func (c *ProjectsLocationsReportConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsListCall {
 10897  	c.ctx_ = ctx
 10898  	return c
 10899  }
 10900  
 10901  // Header returns a http.Header that can be modified by the caller to add
 10902  // headers to the request.
 10903  func (c *ProjectsLocationsReportConfigsListCall) Header() http.Header {
 10904  	if c.header_ == nil {
 10905  		c.header_ = make(http.Header)
 10906  	}
 10907  	return c.header_
 10908  }
 10909  
 10910  func (c *ProjectsLocationsReportConfigsListCall) doRequest(alt string) (*http.Response, error) {
 10911  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10912  	if c.ifNoneMatch_ != "" {
 10913  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10914  	}
 10915  	var body io.Reader = nil
 10916  	c.urlParams_.Set("alt", alt)
 10917  	c.urlParams_.Set("prettyPrint", "false")
 10918  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reportConfigs")
 10919  	urls += "?" + c.urlParams_.Encode()
 10920  	req, err := http.NewRequest("GET", urls, body)
 10921  	if err != nil {
 10922  		return nil, err
 10923  	}
 10924  	req.Header = reqHeaders
 10925  	googleapi.Expand(req.URL, map[string]string{
 10926  		"parent": c.parent,
 10927  	})
 10928  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10929  }
 10930  
 10931  // Do executes the "migrationcenter.projects.locations.reportConfigs.list" call.
 10932  // Any non-2xx status code is an error. Response headers are in either
 10933  // *ListReportConfigsResponse.ServerResponse.Header or (if a response was
 10934  // returned at all) in error.(*googleapi.Error).Header. Use
 10935  // googleapi.IsNotModified to check whether the returned error was because
 10936  // http.StatusNotModified was returned.
 10937  func (c *ProjectsLocationsReportConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReportConfigsResponse, error) {
 10938  	gensupport.SetOptions(c.urlParams_, opts...)
 10939  	res, err := c.doRequest("json")
 10940  	if res != nil && res.StatusCode == http.StatusNotModified {
 10941  		if res.Body != nil {
 10942  			res.Body.Close()
 10943  		}
 10944  		return nil, gensupport.WrapError(&googleapi.Error{
 10945  			Code:   res.StatusCode,
 10946  			Header: res.Header,
 10947  		})
 10948  	}
 10949  	if err != nil {
 10950  		return nil, err
 10951  	}
 10952  	defer googleapi.CloseBody(res)
 10953  	if err := googleapi.CheckResponse(res); err != nil {
 10954  		return nil, gensupport.WrapError(err)
 10955  	}
 10956  	ret := &ListReportConfigsResponse{
 10957  		ServerResponse: googleapi.ServerResponse{
 10958  			Header:         res.Header,
 10959  			HTTPStatusCode: res.StatusCode,
 10960  		},
 10961  	}
 10962  	target := &ret
 10963  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10964  		return nil, err
 10965  	}
 10966  	return ret, nil
 10967  }
 10968  
 10969  // Pages invokes f for each page of results.
 10970  // A non-nil error returned from f will halt the iteration.
 10971  // The provided context supersedes any context provided to the Context method.
 10972  func (c *ProjectsLocationsReportConfigsListCall) Pages(ctx context.Context, f func(*ListReportConfigsResponse) error) error {
 10973  	c.ctx_ = ctx
 10974  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10975  	for {
 10976  		x, err := c.Do()
 10977  		if err != nil {
 10978  			return err
 10979  		}
 10980  		if err := f(x); err != nil {
 10981  			return err
 10982  		}
 10983  		if x.NextPageToken == "" {
 10984  			return nil
 10985  		}
 10986  		c.PageToken(x.NextPageToken)
 10987  	}
 10988  }
 10989  
 10990  type ProjectsLocationsReportConfigsReportsCreateCall struct {
 10991  	s          *Service
 10992  	parent     string
 10993  	report     *Report
 10994  	urlParams_ gensupport.URLParams
 10995  	ctx_       context.Context
 10996  	header_    http.Header
 10997  }
 10998  
 10999  // Create: Creates a report.
 11000  //
 11001  // - parent: Value for parent.
 11002  func (r *ProjectsLocationsReportConfigsReportsService) Create(parent string, report *Report) *ProjectsLocationsReportConfigsReportsCreateCall {
 11003  	c := &ProjectsLocationsReportConfigsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11004  	c.parent = parent
 11005  	c.report = report
 11006  	return c
 11007  }
 11008  
 11009  // ReportId sets the optional parameter "reportId": Required. User specified id
 11010  // for the report. It will become the last component of the report name. The id
 11011  // must be unique within the project, must conform with RFC-1034, is restricted
 11012  // to lower-cased letters, and has a maximum length of 63 characters. The id
 11013  // must match the regular expression: a-z ([a-z0-9-]{0,61}[a-z0-9])?.
 11014  func (c *ProjectsLocationsReportConfigsReportsCreateCall) ReportId(reportId string) *ProjectsLocationsReportConfigsReportsCreateCall {
 11015  	c.urlParams_.Set("reportId", reportId)
 11016  	return c
 11017  }
 11018  
 11019  // RequestId sets the optional parameter "requestId": An optional request ID to
 11020  // identify requests. Specify a unique request ID so that if you must retry
 11021  // your request, the server will know to ignore the request if it has already
 11022  // been completed. The server will guarantee that for at least 60 minutes since
 11023  // the first request. For example, consider a situation where you make an
 11024  // initial request and the request times out. If you make the request again
 11025  // with the same request ID, the server can check if original operation with
 11026  // the same request ID was received, and if so, will ignore the second request.
 11027  // This prevents clients from accidentally creating duplicate commitments. The
 11028  // request ID must be a valid UUID with the exception that zero UUID is not
 11029  // supported (00000000-0000-0000-0000-000000000000).
 11030  func (c *ProjectsLocationsReportConfigsReportsCreateCall) RequestId(requestId string) *ProjectsLocationsReportConfigsReportsCreateCall {
 11031  	c.urlParams_.Set("requestId", requestId)
 11032  	return c
 11033  }
 11034  
 11035  // Fields allows partial responses to be retrieved. See
 11036  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11037  // details.
 11038  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsCreateCall {
 11039  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11040  	return c
 11041  }
 11042  
 11043  // Context sets the context to be used in this call's Do method.
 11044  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsCreateCall {
 11045  	c.ctx_ = ctx
 11046  	return c
 11047  }
 11048  
 11049  // Header returns a http.Header that can be modified by the caller to add
 11050  // headers to the request.
 11051  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Header() http.Header {
 11052  	if c.header_ == nil {
 11053  		c.header_ = make(http.Header)
 11054  	}
 11055  	return c.header_
 11056  }
 11057  
 11058  func (c *ProjectsLocationsReportConfigsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
 11059  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11060  	var body io.Reader = nil
 11061  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
 11062  	if err != nil {
 11063  		return nil, err
 11064  	}
 11065  	c.urlParams_.Set("alt", alt)
 11066  	c.urlParams_.Set("prettyPrint", "false")
 11067  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
 11068  	urls += "?" + c.urlParams_.Encode()
 11069  	req, err := http.NewRequest("POST", urls, body)
 11070  	if err != nil {
 11071  		return nil, err
 11072  	}
 11073  	req.Header = reqHeaders
 11074  	googleapi.Expand(req.URL, map[string]string{
 11075  		"parent": c.parent,
 11076  	})
 11077  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11078  }
 11079  
 11080  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.create" call.
 11081  // Any non-2xx status code is an error. Response headers are in either
 11082  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11083  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11084  // whether the returned error was because http.StatusNotModified was returned.
 11085  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11086  	gensupport.SetOptions(c.urlParams_, opts...)
 11087  	res, err := c.doRequest("json")
 11088  	if res != nil && res.StatusCode == http.StatusNotModified {
 11089  		if res.Body != nil {
 11090  			res.Body.Close()
 11091  		}
 11092  		return nil, gensupport.WrapError(&googleapi.Error{
 11093  			Code:   res.StatusCode,
 11094  			Header: res.Header,
 11095  		})
 11096  	}
 11097  	if err != nil {
 11098  		return nil, err
 11099  	}
 11100  	defer googleapi.CloseBody(res)
 11101  	if err := googleapi.CheckResponse(res); err != nil {
 11102  		return nil, gensupport.WrapError(err)
 11103  	}
 11104  	ret := &Operation{
 11105  		ServerResponse: googleapi.ServerResponse{
 11106  			Header:         res.Header,
 11107  			HTTPStatusCode: res.StatusCode,
 11108  		},
 11109  	}
 11110  	target := &ret
 11111  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11112  		return nil, err
 11113  	}
 11114  	return ret, nil
 11115  }
 11116  
 11117  type ProjectsLocationsReportConfigsReportsDeleteCall struct {
 11118  	s          *Service
 11119  	name       string
 11120  	urlParams_ gensupport.URLParams
 11121  	ctx_       context.Context
 11122  	header_    http.Header
 11123  }
 11124  
 11125  // Delete: Deletes a Report.
 11126  //
 11127  // - name: Name of the resource.
 11128  func (r *ProjectsLocationsReportConfigsReportsService) Delete(name string) *ProjectsLocationsReportConfigsReportsDeleteCall {
 11129  	c := &ProjectsLocationsReportConfigsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11130  	c.name = name
 11131  	return c
 11132  }
 11133  
 11134  // RequestId sets the optional parameter "requestId": An optional request ID to
 11135  // identify requests. Specify a unique request ID so that if you must retry
 11136  // your request, the server will know to ignore the request if it has already
 11137  // been completed. The server will guarantee that for at least 60 minutes after
 11138  // the first request. For example, consider a situation where you make an
 11139  // initial request and the request times out. If you make the request again
 11140  // with the same request ID, the server can check if original operation with
 11141  // the same request ID was received, and if so, will ignore the second request.
 11142  // This prevents clients from accidentally creating duplicate commitments. The
 11143  // request ID must be a valid UUID with the exception that zero UUID is not
 11144  // supported (00000000-0000-0000-0000-000000000000).
 11145  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) RequestId(requestId string) *ProjectsLocationsReportConfigsReportsDeleteCall {
 11146  	c.urlParams_.Set("requestId", requestId)
 11147  	return c
 11148  }
 11149  
 11150  // Fields allows partial responses to be retrieved. See
 11151  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11152  // details.
 11153  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsDeleteCall {
 11154  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11155  	return c
 11156  }
 11157  
 11158  // Context sets the context to be used in this call's Do method.
 11159  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsDeleteCall {
 11160  	c.ctx_ = ctx
 11161  	return c
 11162  }
 11163  
 11164  // Header returns a http.Header that can be modified by the caller to add
 11165  // headers to the request.
 11166  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Header() http.Header {
 11167  	if c.header_ == nil {
 11168  		c.header_ = make(http.Header)
 11169  	}
 11170  	return c.header_
 11171  }
 11172  
 11173  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11174  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11175  	var body io.Reader = nil
 11176  	c.urlParams_.Set("alt", alt)
 11177  	c.urlParams_.Set("prettyPrint", "false")
 11178  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11179  	urls += "?" + c.urlParams_.Encode()
 11180  	req, err := http.NewRequest("DELETE", urls, body)
 11181  	if err != nil {
 11182  		return nil, err
 11183  	}
 11184  	req.Header = reqHeaders
 11185  	googleapi.Expand(req.URL, map[string]string{
 11186  		"name": c.name,
 11187  	})
 11188  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11189  }
 11190  
 11191  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.delete" call.
 11192  // Any non-2xx status code is an error. Response headers are in either
 11193  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11194  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11195  // whether the returned error was because http.StatusNotModified was returned.
 11196  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11197  	gensupport.SetOptions(c.urlParams_, opts...)
 11198  	res, err := c.doRequest("json")
 11199  	if res != nil && res.StatusCode == http.StatusNotModified {
 11200  		if res.Body != nil {
 11201  			res.Body.Close()
 11202  		}
 11203  		return nil, gensupport.WrapError(&googleapi.Error{
 11204  			Code:   res.StatusCode,
 11205  			Header: res.Header,
 11206  		})
 11207  	}
 11208  	if err != nil {
 11209  		return nil, err
 11210  	}
 11211  	defer googleapi.CloseBody(res)
 11212  	if err := googleapi.CheckResponse(res); err != nil {
 11213  		return nil, gensupport.WrapError(err)
 11214  	}
 11215  	ret := &Operation{
 11216  		ServerResponse: googleapi.ServerResponse{
 11217  			Header:         res.Header,
 11218  			HTTPStatusCode: res.StatusCode,
 11219  		},
 11220  	}
 11221  	target := &ret
 11222  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11223  		return nil, err
 11224  	}
 11225  	return ret, nil
 11226  }
 11227  
 11228  type ProjectsLocationsReportConfigsReportsGetCall struct {
 11229  	s            *Service
 11230  	name         string
 11231  	urlParams_   gensupport.URLParams
 11232  	ifNoneMatch_ string
 11233  	ctx_         context.Context
 11234  	header_      http.Header
 11235  }
 11236  
 11237  // Get: Gets details of a single Report.
 11238  //
 11239  // - name: Name of the resource.
 11240  func (r *ProjectsLocationsReportConfigsReportsService) Get(name string) *ProjectsLocationsReportConfigsReportsGetCall {
 11241  	c := &ProjectsLocationsReportConfigsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11242  	c.name = name
 11243  	return c
 11244  }
 11245  
 11246  // View sets the optional parameter "view": Determines what information to
 11247  // retrieve for the Report.
 11248  //
 11249  // Possible values:
 11250  //
 11251  //	"REPORT_VIEW_UNSPECIFIED" - The report view is not specified. The API
 11252  //
 11253  // displays the basic view by default.
 11254  //
 11255  //	"REPORT_VIEW_BASIC" - The report view includes only basic metadata of the
 11256  //
 11257  // Report. Useful for list views.
 11258  //
 11259  //	"REPORT_VIEW_FULL" - The report view includes all the metadata of the
 11260  //
 11261  // Report. Useful for preview.
 11262  //
 11263  //	"REPORT_VIEW_STANDARD" - The report view includes the standard metadata of
 11264  //
 11265  // an report. Useful for detail view.
 11266  func (c *ProjectsLocationsReportConfigsReportsGetCall) View(view string) *ProjectsLocationsReportConfigsReportsGetCall {
 11267  	c.urlParams_.Set("view", view)
 11268  	return c
 11269  }
 11270  
 11271  // Fields allows partial responses to be retrieved. See
 11272  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11273  // details.
 11274  func (c *ProjectsLocationsReportConfigsReportsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsGetCall {
 11275  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11276  	return c
 11277  }
 11278  
 11279  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11280  // object's ETag matches the given value. This is useful for getting updates
 11281  // only after the object has changed since the last request.
 11282  func (c *ProjectsLocationsReportConfigsReportsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsReportsGetCall {
 11283  	c.ifNoneMatch_ = entityTag
 11284  	return c
 11285  }
 11286  
 11287  // Context sets the context to be used in this call's Do method.
 11288  func (c *ProjectsLocationsReportConfigsReportsGetCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsGetCall {
 11289  	c.ctx_ = ctx
 11290  	return c
 11291  }
 11292  
 11293  // Header returns a http.Header that can be modified by the caller to add
 11294  // headers to the request.
 11295  func (c *ProjectsLocationsReportConfigsReportsGetCall) Header() http.Header {
 11296  	if c.header_ == nil {
 11297  		c.header_ = make(http.Header)
 11298  	}
 11299  	return c.header_
 11300  }
 11301  
 11302  func (c *ProjectsLocationsReportConfigsReportsGetCall) doRequest(alt string) (*http.Response, error) {
 11303  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11304  	if c.ifNoneMatch_ != "" {
 11305  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11306  	}
 11307  	var body io.Reader = nil
 11308  	c.urlParams_.Set("alt", alt)
 11309  	c.urlParams_.Set("prettyPrint", "false")
 11310  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11311  	urls += "?" + c.urlParams_.Encode()
 11312  	req, err := http.NewRequest("GET", urls, body)
 11313  	if err != nil {
 11314  		return nil, err
 11315  	}
 11316  	req.Header = reqHeaders
 11317  	googleapi.Expand(req.URL, map[string]string{
 11318  		"name": c.name,
 11319  	})
 11320  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11321  }
 11322  
 11323  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.get" call.
 11324  // Any non-2xx status code is an error. Response headers are in either
 11325  // *Report.ServerResponse.Header or (if a response was returned at all) in
 11326  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11327  // whether the returned error was because http.StatusNotModified was returned.
 11328  func (c *ProjectsLocationsReportConfigsReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) {
 11329  	gensupport.SetOptions(c.urlParams_, opts...)
 11330  	res, err := c.doRequest("json")
 11331  	if res != nil && res.StatusCode == http.StatusNotModified {
 11332  		if res.Body != nil {
 11333  			res.Body.Close()
 11334  		}
 11335  		return nil, gensupport.WrapError(&googleapi.Error{
 11336  			Code:   res.StatusCode,
 11337  			Header: res.Header,
 11338  		})
 11339  	}
 11340  	if err != nil {
 11341  		return nil, err
 11342  	}
 11343  	defer googleapi.CloseBody(res)
 11344  	if err := googleapi.CheckResponse(res); err != nil {
 11345  		return nil, gensupport.WrapError(err)
 11346  	}
 11347  	ret := &Report{
 11348  		ServerResponse: googleapi.ServerResponse{
 11349  			Header:         res.Header,
 11350  			HTTPStatusCode: res.StatusCode,
 11351  		},
 11352  	}
 11353  	target := &ret
 11354  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11355  		return nil, err
 11356  	}
 11357  	return ret, nil
 11358  }
 11359  
 11360  type ProjectsLocationsReportConfigsReportsListCall struct {
 11361  	s            *Service
 11362  	parent       string
 11363  	urlParams_   gensupport.URLParams
 11364  	ifNoneMatch_ string
 11365  	ctx_         context.Context
 11366  	header_      http.Header
 11367  }
 11368  
 11369  // List: Lists Reports in a given ReportConfig.
 11370  //
 11371  // - parent: Parent value for `ListReportsRequest`.
 11372  func (r *ProjectsLocationsReportConfigsReportsService) List(parent string) *ProjectsLocationsReportConfigsReportsListCall {
 11373  	c := &ProjectsLocationsReportConfigsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11374  	c.parent = parent
 11375  	return c
 11376  }
 11377  
 11378  // Filter sets the optional parameter "filter": Filtering results.
 11379  func (c *ProjectsLocationsReportConfigsReportsListCall) Filter(filter string) *ProjectsLocationsReportConfigsReportsListCall {
 11380  	c.urlParams_.Set("filter", filter)
 11381  	return c
 11382  }
 11383  
 11384  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 11385  // https://google.aip.dev/132#ordering for more details.
 11386  func (c *ProjectsLocationsReportConfigsReportsListCall) OrderBy(orderBy string) *ProjectsLocationsReportConfigsReportsListCall {
 11387  	c.urlParams_.Set("orderBy", orderBy)
 11388  	return c
 11389  }
 11390  
 11391  // PageSize sets the optional parameter "pageSize": Requested page size. The
 11392  // server may return fewer items than requested. If unspecified, the server
 11393  // will pick an appropriate default value.
 11394  func (c *ProjectsLocationsReportConfigsReportsListCall) PageSize(pageSize int64) *ProjectsLocationsReportConfigsReportsListCall {
 11395  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11396  	return c
 11397  }
 11398  
 11399  // PageToken sets the optional parameter "pageToken": A token identifying a
 11400  // page of results that the server should return.
 11401  func (c *ProjectsLocationsReportConfigsReportsListCall) PageToken(pageToken string) *ProjectsLocationsReportConfigsReportsListCall {
 11402  	c.urlParams_.Set("pageToken", pageToken)
 11403  	return c
 11404  }
 11405  
 11406  // View sets the optional parameter "view": Determines what information to
 11407  // retrieve for each Report.
 11408  //
 11409  // Possible values:
 11410  //
 11411  //	"REPORT_VIEW_UNSPECIFIED" - The report view is not specified. The API
 11412  //
 11413  // displays the basic view by default.
 11414  //
 11415  //	"REPORT_VIEW_BASIC" - The report view includes only basic metadata of the
 11416  //
 11417  // Report. Useful for list views.
 11418  //
 11419  //	"REPORT_VIEW_FULL" - The report view includes all the metadata of the
 11420  //
 11421  // Report. Useful for preview.
 11422  //
 11423  //	"REPORT_VIEW_STANDARD" - The report view includes the standard metadata of
 11424  //
 11425  // an report. Useful for detail view.
 11426  func (c *ProjectsLocationsReportConfigsReportsListCall) View(view string) *ProjectsLocationsReportConfigsReportsListCall {
 11427  	c.urlParams_.Set("view", view)
 11428  	return c
 11429  }
 11430  
 11431  // Fields allows partial responses to be retrieved. See
 11432  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11433  // details.
 11434  func (c *ProjectsLocationsReportConfigsReportsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsListCall {
 11435  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11436  	return c
 11437  }
 11438  
 11439  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11440  // object's ETag matches the given value. This is useful for getting updates
 11441  // only after the object has changed since the last request.
 11442  func (c *ProjectsLocationsReportConfigsReportsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsReportsListCall {
 11443  	c.ifNoneMatch_ = entityTag
 11444  	return c
 11445  }
 11446  
 11447  // Context sets the context to be used in this call's Do method.
 11448  func (c *ProjectsLocationsReportConfigsReportsListCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsListCall {
 11449  	c.ctx_ = ctx
 11450  	return c
 11451  }
 11452  
 11453  // Header returns a http.Header that can be modified by the caller to add
 11454  // headers to the request.
 11455  func (c *ProjectsLocationsReportConfigsReportsListCall) Header() http.Header {
 11456  	if c.header_ == nil {
 11457  		c.header_ = make(http.Header)
 11458  	}
 11459  	return c.header_
 11460  }
 11461  
 11462  func (c *ProjectsLocationsReportConfigsReportsListCall) doRequest(alt string) (*http.Response, error) {
 11463  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11464  	if c.ifNoneMatch_ != "" {
 11465  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11466  	}
 11467  	var body io.Reader = nil
 11468  	c.urlParams_.Set("alt", alt)
 11469  	c.urlParams_.Set("prettyPrint", "false")
 11470  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
 11471  	urls += "?" + c.urlParams_.Encode()
 11472  	req, err := http.NewRequest("GET", urls, body)
 11473  	if err != nil {
 11474  		return nil, err
 11475  	}
 11476  	req.Header = reqHeaders
 11477  	googleapi.Expand(req.URL, map[string]string{
 11478  		"parent": c.parent,
 11479  	})
 11480  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11481  }
 11482  
 11483  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.list" call.
 11484  // Any non-2xx status code is an error. Response headers are in either
 11485  // *ListReportsResponse.ServerResponse.Header or (if a response was returned at
 11486  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11487  // check whether the returned error was because http.StatusNotModified was
 11488  // returned.
 11489  func (c *ProjectsLocationsReportConfigsReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsResponse, error) {
 11490  	gensupport.SetOptions(c.urlParams_, opts...)
 11491  	res, err := c.doRequest("json")
 11492  	if res != nil && res.StatusCode == http.StatusNotModified {
 11493  		if res.Body != nil {
 11494  			res.Body.Close()
 11495  		}
 11496  		return nil, gensupport.WrapError(&googleapi.Error{
 11497  			Code:   res.StatusCode,
 11498  			Header: res.Header,
 11499  		})
 11500  	}
 11501  	if err != nil {
 11502  		return nil, err
 11503  	}
 11504  	defer googleapi.CloseBody(res)
 11505  	if err := googleapi.CheckResponse(res); err != nil {
 11506  		return nil, gensupport.WrapError(err)
 11507  	}
 11508  	ret := &ListReportsResponse{
 11509  		ServerResponse: googleapi.ServerResponse{
 11510  			Header:         res.Header,
 11511  			HTTPStatusCode: res.StatusCode,
 11512  		},
 11513  	}
 11514  	target := &ret
 11515  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11516  		return nil, err
 11517  	}
 11518  	return ret, nil
 11519  }
 11520  
 11521  // Pages invokes f for each page of results.
 11522  // A non-nil error returned from f will halt the iteration.
 11523  // The provided context supersedes any context provided to the Context method.
 11524  func (c *ProjectsLocationsReportConfigsReportsListCall) Pages(ctx context.Context, f func(*ListReportsResponse) error) error {
 11525  	c.ctx_ = ctx
 11526  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11527  	for {
 11528  		x, err := c.Do()
 11529  		if err != nil {
 11530  			return err
 11531  		}
 11532  		if err := f(x); err != nil {
 11533  			return err
 11534  		}
 11535  		if x.NextPageToken == "" {
 11536  			return nil
 11537  		}
 11538  		c.PageToken(x.NextPageToken)
 11539  	}
 11540  }
 11541  
 11542  type ProjectsLocationsSourcesCreateCall struct {
 11543  	s          *Service
 11544  	parent     string
 11545  	source     *Source
 11546  	urlParams_ gensupport.URLParams
 11547  	ctx_       context.Context
 11548  	header_    http.Header
 11549  }
 11550  
 11551  // Create: Creates a new source in a given project and location.
 11552  //
 11553  // - parent: Value for parent.
 11554  func (r *ProjectsLocationsSourcesService) Create(parent string, source *Source) *ProjectsLocationsSourcesCreateCall {
 11555  	c := &ProjectsLocationsSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11556  	c.parent = parent
 11557  	c.source = source
 11558  	return c
 11559  }
 11560  
 11561  // RequestId sets the optional parameter "requestId": An optional request ID to
 11562  // identify requests. Specify a unique request ID so that if you must retry
 11563  // your request, the server will know to ignore the request if it has already
 11564  // been completed. The server will guarantee that for at least 60 minutes since
 11565  // the first request. For example, consider a situation where you make an
 11566  // initial request and the request times out. If you make the request again
 11567  // with the same request ID, the server can check if original operation with
 11568  // the same request ID was received, and if so, will ignore the second request.
 11569  // This prevents clients from accidentally creating duplicate commitments. The
 11570  // request ID must be a valid UUID with the exception that zero UUID is not
 11571  // supported (00000000-0000-0000-0000-000000000000).
 11572  func (c *ProjectsLocationsSourcesCreateCall) RequestId(requestId string) *ProjectsLocationsSourcesCreateCall {
 11573  	c.urlParams_.Set("requestId", requestId)
 11574  	return c
 11575  }
 11576  
 11577  // SourceId sets the optional parameter "sourceId": Required. User specified ID
 11578  // for the source. It will become the last component of the source name. The ID
 11579  // must be unique within the project, must conform with RFC-1034, is restricted
 11580  // to lower-cased letters, and has a maximum length of 63 characters. The ID
 11581  // must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
 11582  func (c *ProjectsLocationsSourcesCreateCall) SourceId(sourceId string) *ProjectsLocationsSourcesCreateCall {
 11583  	c.urlParams_.Set("sourceId", sourceId)
 11584  	return c
 11585  }
 11586  
 11587  // Fields allows partial responses to be retrieved. See
 11588  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11589  // details.
 11590  func (c *ProjectsLocationsSourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesCreateCall {
 11591  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11592  	return c
 11593  }
 11594  
 11595  // Context sets the context to be used in this call's Do method.
 11596  func (c *ProjectsLocationsSourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsSourcesCreateCall {
 11597  	c.ctx_ = ctx
 11598  	return c
 11599  }
 11600  
 11601  // Header returns a http.Header that can be modified by the caller to add
 11602  // headers to the request.
 11603  func (c *ProjectsLocationsSourcesCreateCall) Header() http.Header {
 11604  	if c.header_ == nil {
 11605  		c.header_ = make(http.Header)
 11606  	}
 11607  	return c.header_
 11608  }
 11609  
 11610  func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) {
 11611  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11612  	var body io.Reader = nil
 11613  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.source)
 11614  	if err != nil {
 11615  		return nil, err
 11616  	}
 11617  	c.urlParams_.Set("alt", alt)
 11618  	c.urlParams_.Set("prettyPrint", "false")
 11619  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources")
 11620  	urls += "?" + c.urlParams_.Encode()
 11621  	req, err := http.NewRequest("POST", urls, body)
 11622  	if err != nil {
 11623  		return nil, err
 11624  	}
 11625  	req.Header = reqHeaders
 11626  	googleapi.Expand(req.URL, map[string]string{
 11627  		"parent": c.parent,
 11628  	})
 11629  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11630  }
 11631  
 11632  // Do executes the "migrationcenter.projects.locations.sources.create" call.
 11633  // Any non-2xx status code is an error. Response headers are in either
 11634  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11635  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11636  // whether the returned error was because http.StatusNotModified was returned.
 11637  func (c *ProjectsLocationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11638  	gensupport.SetOptions(c.urlParams_, opts...)
 11639  	res, err := c.doRequest("json")
 11640  	if res != nil && res.StatusCode == http.StatusNotModified {
 11641  		if res.Body != nil {
 11642  			res.Body.Close()
 11643  		}
 11644  		return nil, gensupport.WrapError(&googleapi.Error{
 11645  			Code:   res.StatusCode,
 11646  			Header: res.Header,
 11647  		})
 11648  	}
 11649  	if err != nil {
 11650  		return nil, err
 11651  	}
 11652  	defer googleapi.CloseBody(res)
 11653  	if err := googleapi.CheckResponse(res); err != nil {
 11654  		return nil, gensupport.WrapError(err)
 11655  	}
 11656  	ret := &Operation{
 11657  		ServerResponse: googleapi.ServerResponse{
 11658  			Header:         res.Header,
 11659  			HTTPStatusCode: res.StatusCode,
 11660  		},
 11661  	}
 11662  	target := &ret
 11663  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11664  		return nil, err
 11665  	}
 11666  	return ret, nil
 11667  }
 11668  
 11669  type ProjectsLocationsSourcesDeleteCall struct {
 11670  	s          *Service
 11671  	name       string
 11672  	urlParams_ gensupport.URLParams
 11673  	ctx_       context.Context
 11674  	header_    http.Header
 11675  }
 11676  
 11677  // Delete: Deletes a source.
 11678  //
 11679  // - name: Name of the resource.
 11680  func (r *ProjectsLocationsSourcesService) Delete(name string) *ProjectsLocationsSourcesDeleteCall {
 11681  	c := &ProjectsLocationsSourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11682  	c.name = name
 11683  	return c
 11684  }
 11685  
 11686  // RequestId sets the optional parameter "requestId": An optional request ID to
 11687  // identify requests. Specify a unique request ID so that if you must retry
 11688  // your request, the server will know to ignore the request if it has already
 11689  // been completed. The server will guarantee that for at least 60 minutes after
 11690  // the first request. For example, consider a situation where you make an
 11691  // initial request and the request times out. If you make the request again
 11692  // with the same request ID, the server can check if original operation with
 11693  // the same request ID was received, and if so, will ignore the second request.
 11694  // This prevents clients from accidentally creating duplicate commitments. The
 11695  // request ID must be a valid UUID with the exception that zero UUID is not
 11696  // supported (00000000-0000-0000-0000-000000000000).
 11697  func (c *ProjectsLocationsSourcesDeleteCall) RequestId(requestId string) *ProjectsLocationsSourcesDeleteCall {
 11698  	c.urlParams_.Set("requestId", requestId)
 11699  	return c
 11700  }
 11701  
 11702  // Fields allows partial responses to be retrieved. See
 11703  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11704  // details.
 11705  func (c *ProjectsLocationsSourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDeleteCall {
 11706  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11707  	return c
 11708  }
 11709  
 11710  // Context sets the context to be used in this call's Do method.
 11711  func (c *ProjectsLocationsSourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSourcesDeleteCall {
 11712  	c.ctx_ = ctx
 11713  	return c
 11714  }
 11715  
 11716  // Header returns a http.Header that can be modified by the caller to add
 11717  // headers to the request.
 11718  func (c *ProjectsLocationsSourcesDeleteCall) Header() http.Header {
 11719  	if c.header_ == nil {
 11720  		c.header_ = make(http.Header)
 11721  	}
 11722  	return c.header_
 11723  }
 11724  
 11725  func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11726  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11727  	var body io.Reader = nil
 11728  	c.urlParams_.Set("alt", alt)
 11729  	c.urlParams_.Set("prettyPrint", "false")
 11730  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11731  	urls += "?" + c.urlParams_.Encode()
 11732  	req, err := http.NewRequest("DELETE", urls, body)
 11733  	if err != nil {
 11734  		return nil, err
 11735  	}
 11736  	req.Header = reqHeaders
 11737  	googleapi.Expand(req.URL, map[string]string{
 11738  		"name": c.name,
 11739  	})
 11740  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11741  }
 11742  
 11743  // Do executes the "migrationcenter.projects.locations.sources.delete" call.
 11744  // Any non-2xx status code is an error. Response headers are in either
 11745  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11746  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11747  // whether the returned error was because http.StatusNotModified was returned.
 11748  func (c *ProjectsLocationsSourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11749  	gensupport.SetOptions(c.urlParams_, opts...)
 11750  	res, err := c.doRequest("json")
 11751  	if res != nil && res.StatusCode == http.StatusNotModified {
 11752  		if res.Body != nil {
 11753  			res.Body.Close()
 11754  		}
 11755  		return nil, gensupport.WrapError(&googleapi.Error{
 11756  			Code:   res.StatusCode,
 11757  			Header: res.Header,
 11758  		})
 11759  	}
 11760  	if err != nil {
 11761  		return nil, err
 11762  	}
 11763  	defer googleapi.CloseBody(res)
 11764  	if err := googleapi.CheckResponse(res); err != nil {
 11765  		return nil, gensupport.WrapError(err)
 11766  	}
 11767  	ret := &Operation{
 11768  		ServerResponse: googleapi.ServerResponse{
 11769  			Header:         res.Header,
 11770  			HTTPStatusCode: res.StatusCode,
 11771  		},
 11772  	}
 11773  	target := &ret
 11774  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11775  		return nil, err
 11776  	}
 11777  	return ret, nil
 11778  }
 11779  
 11780  type ProjectsLocationsSourcesGetCall struct {
 11781  	s            *Service
 11782  	name         string
 11783  	urlParams_   gensupport.URLParams
 11784  	ifNoneMatch_ string
 11785  	ctx_         context.Context
 11786  	header_      http.Header
 11787  }
 11788  
 11789  // Get: Gets the details of a source.
 11790  //
 11791  // - name: Name of the resource.
 11792  func (r *ProjectsLocationsSourcesService) Get(name string) *ProjectsLocationsSourcesGetCall {
 11793  	c := &ProjectsLocationsSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11794  	c.name = name
 11795  	return c
 11796  }
 11797  
 11798  // Fields allows partial responses to be retrieved. See
 11799  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11800  // details.
 11801  func (c *ProjectsLocationsSourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesGetCall {
 11802  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11803  	return c
 11804  }
 11805  
 11806  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11807  // object's ETag matches the given value. This is useful for getting updates
 11808  // only after the object has changed since the last request.
 11809  func (c *ProjectsLocationsSourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesGetCall {
 11810  	c.ifNoneMatch_ = entityTag
 11811  	return c
 11812  }
 11813  
 11814  // Context sets the context to be used in this call's Do method.
 11815  func (c *ProjectsLocationsSourcesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesGetCall {
 11816  	c.ctx_ = ctx
 11817  	return c
 11818  }
 11819  
 11820  // Header returns a http.Header that can be modified by the caller to add
 11821  // headers to the request.
 11822  func (c *ProjectsLocationsSourcesGetCall) Header() http.Header {
 11823  	if c.header_ == nil {
 11824  		c.header_ = make(http.Header)
 11825  	}
 11826  	return c.header_
 11827  }
 11828  
 11829  func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, error) {
 11830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11831  	if c.ifNoneMatch_ != "" {
 11832  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11833  	}
 11834  	var body io.Reader = nil
 11835  	c.urlParams_.Set("alt", alt)
 11836  	c.urlParams_.Set("prettyPrint", "false")
 11837  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11838  	urls += "?" + c.urlParams_.Encode()
 11839  	req, err := http.NewRequest("GET", urls, body)
 11840  	if err != nil {
 11841  		return nil, err
 11842  	}
 11843  	req.Header = reqHeaders
 11844  	googleapi.Expand(req.URL, map[string]string{
 11845  		"name": c.name,
 11846  	})
 11847  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11848  }
 11849  
 11850  // Do executes the "migrationcenter.projects.locations.sources.get" call.
 11851  // Any non-2xx status code is an error. Response headers are in either
 11852  // *Source.ServerResponse.Header or (if a response was returned at all) in
 11853  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11854  // whether the returned error was because http.StatusNotModified was returned.
 11855  func (c *ProjectsLocationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error) {
 11856  	gensupport.SetOptions(c.urlParams_, opts...)
 11857  	res, err := c.doRequest("json")
 11858  	if res != nil && res.StatusCode == http.StatusNotModified {
 11859  		if res.Body != nil {
 11860  			res.Body.Close()
 11861  		}
 11862  		return nil, gensupport.WrapError(&googleapi.Error{
 11863  			Code:   res.StatusCode,
 11864  			Header: res.Header,
 11865  		})
 11866  	}
 11867  	if err != nil {
 11868  		return nil, err
 11869  	}
 11870  	defer googleapi.CloseBody(res)
 11871  	if err := googleapi.CheckResponse(res); err != nil {
 11872  		return nil, gensupport.WrapError(err)
 11873  	}
 11874  	ret := &Source{
 11875  		ServerResponse: googleapi.ServerResponse{
 11876  			Header:         res.Header,
 11877  			HTTPStatusCode: res.StatusCode,
 11878  		},
 11879  	}
 11880  	target := &ret
 11881  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11882  		return nil, err
 11883  	}
 11884  	return ret, nil
 11885  }
 11886  
 11887  type ProjectsLocationsSourcesListCall struct {
 11888  	s            *Service
 11889  	parent       string
 11890  	urlParams_   gensupport.URLParams
 11891  	ifNoneMatch_ string
 11892  	ctx_         context.Context
 11893  	header_      http.Header
 11894  }
 11895  
 11896  // List: Lists all the sources in a given project and location.
 11897  //
 11898  // - parent: Parent value for `ListSourcesRequest`.
 11899  func (r *ProjectsLocationsSourcesService) List(parent string) *ProjectsLocationsSourcesListCall {
 11900  	c := &ProjectsLocationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11901  	c.parent = parent
 11902  	return c
 11903  }
 11904  
 11905  // Filter sets the optional parameter "filter": Filtering results.
 11906  func (c *ProjectsLocationsSourcesListCall) Filter(filter string) *ProjectsLocationsSourcesListCall {
 11907  	c.urlParams_.Set("filter", filter)
 11908  	return c
 11909  }
 11910  
 11911  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 11912  // https://google.aip.dev/132#ordering for more details.
 11913  func (c *ProjectsLocationsSourcesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesListCall {
 11914  	c.urlParams_.Set("orderBy", orderBy)
 11915  	return c
 11916  }
 11917  
 11918  // PageSize sets the optional parameter "pageSize": Requested page size. The
 11919  // server may return fewer items than requested. If unspecified, the server
 11920  // will pick an appropriate default value.
 11921  func (c *ProjectsLocationsSourcesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesListCall {
 11922  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11923  	return c
 11924  }
 11925  
 11926  // PageToken sets the optional parameter "pageToken": A token identifying a
 11927  // page of results that the server should return.
 11928  func (c *ProjectsLocationsSourcesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesListCall {
 11929  	c.urlParams_.Set("pageToken", pageToken)
 11930  	return c
 11931  }
 11932  
 11933  // Fields allows partial responses to be retrieved. See
 11934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11935  // details.
 11936  func (c *ProjectsLocationsSourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesListCall {
 11937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11938  	return c
 11939  }
 11940  
 11941  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11942  // object's ETag matches the given value. This is useful for getting updates
 11943  // only after the object has changed since the last request.
 11944  func (c *ProjectsLocationsSourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesListCall {
 11945  	c.ifNoneMatch_ = entityTag
 11946  	return c
 11947  }
 11948  
 11949  // Context sets the context to be used in this call's Do method.
 11950  func (c *ProjectsLocationsSourcesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesListCall {
 11951  	c.ctx_ = ctx
 11952  	return c
 11953  }
 11954  
 11955  // Header returns a http.Header that can be modified by the caller to add
 11956  // headers to the request.
 11957  func (c *ProjectsLocationsSourcesListCall) Header() http.Header {
 11958  	if c.header_ == nil {
 11959  		c.header_ = make(http.Header)
 11960  	}
 11961  	return c.header_
 11962  }
 11963  
 11964  func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response, error) {
 11965  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11966  	if c.ifNoneMatch_ != "" {
 11967  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11968  	}
 11969  	var body io.Reader = nil
 11970  	c.urlParams_.Set("alt", alt)
 11971  	c.urlParams_.Set("prettyPrint", "false")
 11972  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sources")
 11973  	urls += "?" + c.urlParams_.Encode()
 11974  	req, err := http.NewRequest("GET", urls, body)
 11975  	if err != nil {
 11976  		return nil, err
 11977  	}
 11978  	req.Header = reqHeaders
 11979  	googleapi.Expand(req.URL, map[string]string{
 11980  		"parent": c.parent,
 11981  	})
 11982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11983  }
 11984  
 11985  // Do executes the "migrationcenter.projects.locations.sources.list" call.
 11986  // Any non-2xx status code is an error. Response headers are in either
 11987  // *ListSourcesResponse.ServerResponse.Header or (if a response was returned at
 11988  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11989  // check whether the returned error was because http.StatusNotModified was
 11990  // returned.
 11991  func (c *ProjectsLocationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) {
 11992  	gensupport.SetOptions(c.urlParams_, opts...)
 11993  	res, err := c.doRequest("json")
 11994  	if res != nil && res.StatusCode == http.StatusNotModified {
 11995  		if res.Body != nil {
 11996  			res.Body.Close()
 11997  		}
 11998  		return nil, gensupport.WrapError(&googleapi.Error{
 11999  			Code:   res.StatusCode,
 12000  			Header: res.Header,
 12001  		})
 12002  	}
 12003  	if err != nil {
 12004  		return nil, err
 12005  	}
 12006  	defer googleapi.CloseBody(res)
 12007  	if err := googleapi.CheckResponse(res); err != nil {
 12008  		return nil, gensupport.WrapError(err)
 12009  	}
 12010  	ret := &ListSourcesResponse{
 12011  		ServerResponse: googleapi.ServerResponse{
 12012  			Header:         res.Header,
 12013  			HTTPStatusCode: res.StatusCode,
 12014  		},
 12015  	}
 12016  	target := &ret
 12017  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12018  		return nil, err
 12019  	}
 12020  	return ret, nil
 12021  }
 12022  
 12023  // Pages invokes f for each page of results.
 12024  // A non-nil error returned from f will halt the iteration.
 12025  // The provided context supersedes any context provided to the Context method.
 12026  func (c *ProjectsLocationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error {
 12027  	c.ctx_ = ctx
 12028  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12029  	for {
 12030  		x, err := c.Do()
 12031  		if err != nil {
 12032  			return err
 12033  		}
 12034  		if err := f(x); err != nil {
 12035  			return err
 12036  		}
 12037  		if x.NextPageToken == "" {
 12038  			return nil
 12039  		}
 12040  		c.PageToken(x.NextPageToken)
 12041  	}
 12042  }
 12043  
 12044  type ProjectsLocationsSourcesPatchCall struct {
 12045  	s          *Service
 12046  	name       string
 12047  	source     *Source
 12048  	urlParams_ gensupport.URLParams
 12049  	ctx_       context.Context
 12050  	header_    http.Header
 12051  }
 12052  
 12053  // Patch: Updates the parameters of a source.
 12054  //
 12055  // - name: Output only. The full name of the source.
 12056  func (r *ProjectsLocationsSourcesService) Patch(name string, source *Source) *ProjectsLocationsSourcesPatchCall {
 12057  	c := &ProjectsLocationsSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12058  	c.name = name
 12059  	c.source = source
 12060  	return c
 12061  }
 12062  
 12063  // RequestId sets the optional parameter "requestId": An optional request ID to
 12064  // identify requests. Specify a unique request ID so that if you must retry
 12065  // your request, the server will know to ignore the request if it has already
 12066  // been completed. The server will guarantee that for at least 60 minutes since
 12067  // the first request. For example, consider a situation where you make an
 12068  // initial request and the request times out. If you make the request again
 12069  // with the same request ID, the server can check if original operation with
 12070  // the same request ID was received, and if so, will ignore the second request.
 12071  // This prevents clients from accidentally creating duplicate commitments. The
 12072  // request ID must be a valid UUID with the exception that zero UUID is not
 12073  // supported (00000000-0000-0000-0000-000000000000).
 12074  func (c *ProjectsLocationsSourcesPatchCall) RequestId(requestId string) *ProjectsLocationsSourcesPatchCall {
 12075  	c.urlParams_.Set("requestId", requestId)
 12076  	return c
 12077  }
 12078  
 12079  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 12080  // used to specify the fields to be overwritten in the `Source` resource by the
 12081  // update. The values specified in the `update_mask` field are relative to the
 12082  // resource, not the full request. A field will be overwritten if it is in the
 12083  // mask. A single * value in the mask lets you to overwrite all fields.
 12084  func (c *ProjectsLocationsSourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSourcesPatchCall {
 12085  	c.urlParams_.Set("updateMask", updateMask)
 12086  	return c
 12087  }
 12088  
 12089  // Fields allows partial responses to be retrieved. See
 12090  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12091  // details.
 12092  func (c *ProjectsLocationsSourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesPatchCall {
 12093  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12094  	return c
 12095  }
 12096  
 12097  // Context sets the context to be used in this call's Do method.
 12098  func (c *ProjectsLocationsSourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsSourcesPatchCall {
 12099  	c.ctx_ = ctx
 12100  	return c
 12101  }
 12102  
 12103  // Header returns a http.Header that can be modified by the caller to add
 12104  // headers to the request.
 12105  func (c *ProjectsLocationsSourcesPatchCall) Header() http.Header {
 12106  	if c.header_ == nil {
 12107  		c.header_ = make(http.Header)
 12108  	}
 12109  	return c.header_
 12110  }
 12111  
 12112  func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) {
 12113  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12114  	var body io.Reader = nil
 12115  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.source)
 12116  	if err != nil {
 12117  		return nil, err
 12118  	}
 12119  	c.urlParams_.Set("alt", alt)
 12120  	c.urlParams_.Set("prettyPrint", "false")
 12121  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12122  	urls += "?" + c.urlParams_.Encode()
 12123  	req, err := http.NewRequest("PATCH", urls, body)
 12124  	if err != nil {
 12125  		return nil, err
 12126  	}
 12127  	req.Header = reqHeaders
 12128  	googleapi.Expand(req.URL, map[string]string{
 12129  		"name": c.name,
 12130  	})
 12131  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12132  }
 12133  
 12134  // Do executes the "migrationcenter.projects.locations.sources.patch" call.
 12135  // Any non-2xx status code is an error. Response headers are in either
 12136  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12137  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12138  // whether the returned error was because http.StatusNotModified was returned.
 12139  func (c *ProjectsLocationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12140  	gensupport.SetOptions(c.urlParams_, opts...)
 12141  	res, err := c.doRequest("json")
 12142  	if res != nil && res.StatusCode == http.StatusNotModified {
 12143  		if res.Body != nil {
 12144  			res.Body.Close()
 12145  		}
 12146  		return nil, gensupport.WrapError(&googleapi.Error{
 12147  			Code:   res.StatusCode,
 12148  			Header: res.Header,
 12149  		})
 12150  	}
 12151  	if err != nil {
 12152  		return nil, err
 12153  	}
 12154  	defer googleapi.CloseBody(res)
 12155  	if err := googleapi.CheckResponse(res); err != nil {
 12156  		return nil, gensupport.WrapError(err)
 12157  	}
 12158  	ret := &Operation{
 12159  		ServerResponse: googleapi.ServerResponse{
 12160  			Header:         res.Header,
 12161  			HTTPStatusCode: res.StatusCode,
 12162  		},
 12163  	}
 12164  	target := &ret
 12165  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12166  		return nil, err
 12167  	}
 12168  	return ret, nil
 12169  }
 12170  
 12171  type ProjectsLocationsSourcesErrorFramesGetCall struct {
 12172  	s            *Service
 12173  	name         string
 12174  	urlParams_   gensupport.URLParams
 12175  	ifNoneMatch_ string
 12176  	ctx_         context.Context
 12177  	header_      http.Header
 12178  }
 12179  
 12180  // Get: Gets the details of an error frame.
 12181  //
 12182  //   - name: The name of the frame to retrieve. Format:
 12183  //     projects/{project}/locations/{location}/sources/{source}/errorFrames/{error
 12184  //     _frame}.
 12185  func (r *ProjectsLocationsSourcesErrorFramesService) Get(name string) *ProjectsLocationsSourcesErrorFramesGetCall {
 12186  	c := &ProjectsLocationsSourcesErrorFramesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12187  	c.name = name
 12188  	return c
 12189  }
 12190  
 12191  // View sets the optional parameter "view": An optional view mode to control
 12192  // the level of details for the frame. The default is a basic frame view.
 12193  //
 12194  // Possible values:
 12195  //
 12196  //	"ERROR_FRAME_VIEW_UNSPECIFIED" - Value is unset. The system will fallback
 12197  //
 12198  // to the default value.
 12199  //
 12200  //	"ERROR_FRAME_VIEW_BASIC" - Include basic frame data, but not the full
 12201  //
 12202  // contents.
 12203  //
 12204  //	"ERROR_FRAME_VIEW_FULL" - Include everything.
 12205  func (c *ProjectsLocationsSourcesErrorFramesGetCall) View(view string) *ProjectsLocationsSourcesErrorFramesGetCall {
 12206  	c.urlParams_.Set("view", view)
 12207  	return c
 12208  }
 12209  
 12210  // Fields allows partial responses to be retrieved. See
 12211  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12212  // details.
 12213  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesErrorFramesGetCall {
 12214  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12215  	return c
 12216  }
 12217  
 12218  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12219  // object's ETag matches the given value. This is useful for getting updates
 12220  // only after the object has changed since the last request.
 12221  func (c *ProjectsLocationsSourcesErrorFramesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesErrorFramesGetCall {
 12222  	c.ifNoneMatch_ = entityTag
 12223  	return c
 12224  }
 12225  
 12226  // Context sets the context to be used in this call's Do method.
 12227  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesErrorFramesGetCall {
 12228  	c.ctx_ = ctx
 12229  	return c
 12230  }
 12231  
 12232  // Header returns a http.Header that can be modified by the caller to add
 12233  // headers to the request.
 12234  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Header() http.Header {
 12235  	if c.header_ == nil {
 12236  		c.header_ = make(http.Header)
 12237  	}
 12238  	return c.header_
 12239  }
 12240  
 12241  func (c *ProjectsLocationsSourcesErrorFramesGetCall) doRequest(alt string) (*http.Response, error) {
 12242  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12243  	if c.ifNoneMatch_ != "" {
 12244  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12245  	}
 12246  	var body io.Reader = nil
 12247  	c.urlParams_.Set("alt", alt)
 12248  	c.urlParams_.Set("prettyPrint", "false")
 12249  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12250  	urls += "?" + c.urlParams_.Encode()
 12251  	req, err := http.NewRequest("GET", urls, body)
 12252  	if err != nil {
 12253  		return nil, err
 12254  	}
 12255  	req.Header = reqHeaders
 12256  	googleapi.Expand(req.URL, map[string]string{
 12257  		"name": c.name,
 12258  	})
 12259  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12260  }
 12261  
 12262  // Do executes the "migrationcenter.projects.locations.sources.errorFrames.get" call.
 12263  // Any non-2xx status code is an error. Response headers are in either
 12264  // *ErrorFrame.ServerResponse.Header or (if a response was returned at all) in
 12265  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12266  // whether the returned error was because http.StatusNotModified was returned.
 12267  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Do(opts ...googleapi.CallOption) (*ErrorFrame, error) {
 12268  	gensupport.SetOptions(c.urlParams_, opts...)
 12269  	res, err := c.doRequest("json")
 12270  	if res != nil && res.StatusCode == http.StatusNotModified {
 12271  		if res.Body != nil {
 12272  			res.Body.Close()
 12273  		}
 12274  		return nil, gensupport.WrapError(&googleapi.Error{
 12275  			Code:   res.StatusCode,
 12276  			Header: res.Header,
 12277  		})
 12278  	}
 12279  	if err != nil {
 12280  		return nil, err
 12281  	}
 12282  	defer googleapi.CloseBody(res)
 12283  	if err := googleapi.CheckResponse(res); err != nil {
 12284  		return nil, gensupport.WrapError(err)
 12285  	}
 12286  	ret := &ErrorFrame{
 12287  		ServerResponse: googleapi.ServerResponse{
 12288  			Header:         res.Header,
 12289  			HTTPStatusCode: res.StatusCode,
 12290  		},
 12291  	}
 12292  	target := &ret
 12293  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12294  		return nil, err
 12295  	}
 12296  	return ret, nil
 12297  }
 12298  
 12299  type ProjectsLocationsSourcesErrorFramesListCall struct {
 12300  	s            *Service
 12301  	parent       string
 12302  	urlParams_   gensupport.URLParams
 12303  	ifNoneMatch_ string
 12304  	ctx_         context.Context
 12305  	header_      http.Header
 12306  }
 12307  
 12308  // List: Lists all error frames in a given source and location.
 12309  //
 12310  // - parent: Parent value (the source) for `ListErrorFramesRequest`.
 12311  func (r *ProjectsLocationsSourcesErrorFramesService) List(parent string) *ProjectsLocationsSourcesErrorFramesListCall {
 12312  	c := &ProjectsLocationsSourcesErrorFramesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12313  	c.parent = parent
 12314  	return c
 12315  }
 12316  
 12317  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 12318  // may return fewer items than requested. If unspecified, server will pick an
 12319  // appropriate default.
 12320  func (c *ProjectsLocationsSourcesErrorFramesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesErrorFramesListCall {
 12321  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12322  	return c
 12323  }
 12324  
 12325  // PageToken sets the optional parameter "pageToken": A token identifying a
 12326  // page of results the server should return.
 12327  func (c *ProjectsLocationsSourcesErrorFramesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesErrorFramesListCall {
 12328  	c.urlParams_.Set("pageToken", pageToken)
 12329  	return c
 12330  }
 12331  
 12332  // View sets the optional parameter "view": An optional view mode to control
 12333  // the level of details of each error frame. The default is a BASIC frame view.
 12334  //
 12335  // Possible values:
 12336  //
 12337  //	"ERROR_FRAME_VIEW_UNSPECIFIED" - Value is unset. The system will fallback
 12338  //
 12339  // to the default value.
 12340  //
 12341  //	"ERROR_FRAME_VIEW_BASIC" - Include basic frame data, but not the full
 12342  //
 12343  // contents.
 12344  //
 12345  //	"ERROR_FRAME_VIEW_FULL" - Include everything.
 12346  func (c *ProjectsLocationsSourcesErrorFramesListCall) View(view string) *ProjectsLocationsSourcesErrorFramesListCall {
 12347  	c.urlParams_.Set("view", view)
 12348  	return c
 12349  }
 12350  
 12351  // Fields allows partial responses to be retrieved. See
 12352  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12353  // details.
 12354  func (c *ProjectsLocationsSourcesErrorFramesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesErrorFramesListCall {
 12355  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12356  	return c
 12357  }
 12358  
 12359  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12360  // object's ETag matches the given value. This is useful for getting updates
 12361  // only after the object has changed since the last request.
 12362  func (c *ProjectsLocationsSourcesErrorFramesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesErrorFramesListCall {
 12363  	c.ifNoneMatch_ = entityTag
 12364  	return c
 12365  }
 12366  
 12367  // Context sets the context to be used in this call's Do method.
 12368  func (c *ProjectsLocationsSourcesErrorFramesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesErrorFramesListCall {
 12369  	c.ctx_ = ctx
 12370  	return c
 12371  }
 12372  
 12373  // Header returns a http.Header that can be modified by the caller to add
 12374  // headers to the request.
 12375  func (c *ProjectsLocationsSourcesErrorFramesListCall) Header() http.Header {
 12376  	if c.header_ == nil {
 12377  		c.header_ = make(http.Header)
 12378  	}
 12379  	return c.header_
 12380  }
 12381  
 12382  func (c *ProjectsLocationsSourcesErrorFramesListCall) doRequest(alt string) (*http.Response, error) {
 12383  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12384  	if c.ifNoneMatch_ != "" {
 12385  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12386  	}
 12387  	var body io.Reader = nil
 12388  	c.urlParams_.Set("alt", alt)
 12389  	c.urlParams_.Set("prettyPrint", "false")
 12390  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/errorFrames")
 12391  	urls += "?" + c.urlParams_.Encode()
 12392  	req, err := http.NewRequest("GET", urls, body)
 12393  	if err != nil {
 12394  		return nil, err
 12395  	}
 12396  	req.Header = reqHeaders
 12397  	googleapi.Expand(req.URL, map[string]string{
 12398  		"parent": c.parent,
 12399  	})
 12400  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12401  }
 12402  
 12403  // Do executes the "migrationcenter.projects.locations.sources.errorFrames.list" call.
 12404  // Any non-2xx status code is an error. Response headers are in either
 12405  // *ListErrorFramesResponse.ServerResponse.Header or (if a response was
 12406  // returned at all) in error.(*googleapi.Error).Header. Use
 12407  // googleapi.IsNotModified to check whether the returned error was because
 12408  // http.StatusNotModified was returned.
 12409  func (c *ProjectsLocationsSourcesErrorFramesListCall) Do(opts ...googleapi.CallOption) (*ListErrorFramesResponse, error) {
 12410  	gensupport.SetOptions(c.urlParams_, opts...)
 12411  	res, err := c.doRequest("json")
 12412  	if res != nil && res.StatusCode == http.StatusNotModified {
 12413  		if res.Body != nil {
 12414  			res.Body.Close()
 12415  		}
 12416  		return nil, gensupport.WrapError(&googleapi.Error{
 12417  			Code:   res.StatusCode,
 12418  			Header: res.Header,
 12419  		})
 12420  	}
 12421  	if err != nil {
 12422  		return nil, err
 12423  	}
 12424  	defer googleapi.CloseBody(res)
 12425  	if err := googleapi.CheckResponse(res); err != nil {
 12426  		return nil, gensupport.WrapError(err)
 12427  	}
 12428  	ret := &ListErrorFramesResponse{
 12429  		ServerResponse: googleapi.ServerResponse{
 12430  			Header:         res.Header,
 12431  			HTTPStatusCode: res.StatusCode,
 12432  		},
 12433  	}
 12434  	target := &ret
 12435  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12436  		return nil, err
 12437  	}
 12438  	return ret, nil
 12439  }
 12440  
 12441  // Pages invokes f for each page of results.
 12442  // A non-nil error returned from f will halt the iteration.
 12443  // The provided context supersedes any context provided to the Context method.
 12444  func (c *ProjectsLocationsSourcesErrorFramesListCall) Pages(ctx context.Context, f func(*ListErrorFramesResponse) error) error {
 12445  	c.ctx_ = ctx
 12446  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12447  	for {
 12448  		x, err := c.Do()
 12449  		if err != nil {
 12450  			return err
 12451  		}
 12452  		if err := f(x); err != nil {
 12453  			return err
 12454  		}
 12455  		if x.NextPageToken == "" {
 12456  			return nil
 12457  		}
 12458  		c.PageToken(x.NextPageToken)
 12459  	}
 12460  }
 12461  

View as plain text