...

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

Documentation: google.golang.org/api/migrationcenter/v1alpha1

     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/v1alpha1"
    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/v1alpha1"
    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:v1alpha1"
    90  const apiName = "migrationcenter"
    91  const apiVersion = "v1alpha1"
    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  	// ShowHidden: Optional. When this value is set to 'true' the response will
   359  	// include all assets, including those that are hidden.
   360  	ShowHidden bool `json:"showHidden,omitempty"`
   361  	// ForceSendFields is a list of field names (e.g. "Aggregations") to
   362  	// unconditionally include in API requests. By default, fields with empty or
   363  	// default values are omitted from API requests. See
   364  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   365  	// details.
   366  	ForceSendFields []string `json:"-"`
   367  	// NullFields is a list of field names (e.g. "Aggregations") to include in API
   368  	// requests with the JSON null value. By default, fields with empty values are
   369  	// omitted from API requests. See
   370  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   371  	NullFields []string `json:"-"`
   372  }
   373  
   374  func (s *AggregateAssetsValuesRequest) MarshalJSON() ([]byte, error) {
   375  	type NoMethod AggregateAssetsValuesRequest
   376  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   377  }
   378  
   379  // AggregateAssetsValuesResponse: A response to a request to aggregated assets
   380  // values.
   381  type AggregateAssetsValuesResponse struct {
   382  	// Results: The aggregation results.
   383  	Results []*AggregationResult `json:"results,omitempty"`
   384  
   385  	// ServerResponse contains the HTTP response code and headers from the server.
   386  	googleapi.ServerResponse `json:"-"`
   387  	// ForceSendFields is a list of field names (e.g. "Results") to unconditionally
   388  	// include in API requests. By default, fields with empty or default values are
   389  	// omitted from API requests. See
   390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   391  	// details.
   392  	ForceSendFields []string `json:"-"`
   393  	// NullFields is a list of field names (e.g. "Results") to include in API
   394  	// requests with the JSON null value. By default, fields with empty values are
   395  	// omitted from API requests. See
   396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   397  	NullFields []string `json:"-"`
   398  }
   399  
   400  func (s *AggregateAssetsValuesResponse) MarshalJSON() ([]byte, error) {
   401  	type NoMethod AggregateAssetsValuesResponse
   402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   403  }
   404  
   405  // Aggregation: Message describing an aggregation. The message includes the
   406  // aggregation type, parameters, and the field on which to perform the
   407  // aggregation.
   408  type Aggregation struct {
   409  	// Count: Count the number of matching objects.
   410  	Count *AggregationCount `json:"count,omitempty"`
   411  	// Field: The name of the field on which to aggregate.
   412  	Field string `json:"field,omitempty"`
   413  	// Frequency: Creates a frequency distribution of all field values.
   414  	Frequency *AggregationFrequency `json:"frequency,omitempty"`
   415  	// Histogram: Creates a bucketed histogram of field values.
   416  	Histogram *AggregationHistogram `json:"histogram,omitempty"`
   417  	// Sum: Sum over a numeric field.
   418  	Sum *AggregationSum `json:"sum,omitempty"`
   419  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   420  	// include in API requests. By default, fields with empty or default values are
   421  	// omitted from API requests. See
   422  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   423  	// details.
   424  	ForceSendFields []string `json:"-"`
   425  	// NullFields is a list of field names (e.g. "Count") to include in API
   426  	// requests with the JSON null value. By default, fields with empty values are
   427  	// omitted from API requests. See
   428  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   429  	NullFields []string `json:"-"`
   430  }
   431  
   432  func (s *Aggregation) MarshalJSON() ([]byte, error) {
   433  	type NoMethod Aggregation
   434  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   435  }
   436  
   437  // AggregationCount: Object count.
   438  type AggregationCount struct {
   439  }
   440  
   441  // AggregationFrequency: Frequency distribution of all field values.
   442  type AggregationFrequency struct {
   443  }
   444  
   445  // AggregationHistogram: Histogram of bucketed assets counts by field value.
   446  type AggregationHistogram struct {
   447  	// LowerBounds: Lower bounds of buckets. The response will contain `n+1`
   448  	// buckets for `n` bounds. The first bucket will count all assets for which the
   449  	// field value is smaller than the first bound. Subsequent buckets will count
   450  	// assets for which the field value is greater or equal to a lower bound and
   451  	// smaller than the next one. The last bucket will count assets for which the
   452  	// field value is greater or equal to the final lower bound. You can define up
   453  	// to 20 lower bounds.
   454  	LowerBounds []float64 `json:"lowerBounds,omitempty"`
   455  	// ForceSendFields is a list of field names (e.g. "LowerBounds") to
   456  	// unconditionally include in API requests. By default, fields with empty or
   457  	// default values are omitted from API requests. See
   458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   459  	// details.
   460  	ForceSendFields []string `json:"-"`
   461  	// NullFields is a list of field names (e.g. "LowerBounds") to include in API
   462  	// requests with the JSON null value. By default, fields with empty values are
   463  	// omitted from API requests. See
   464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   465  	NullFields []string `json:"-"`
   466  }
   467  
   468  func (s *AggregationHistogram) MarshalJSON() ([]byte, error) {
   469  	type NoMethod AggregationHistogram
   470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   471  }
   472  
   473  func (s *AggregationHistogram) UnmarshalJSON(data []byte) error {
   474  	type NoMethod AggregationHistogram
   475  	var s1 struct {
   476  		LowerBounds []gensupport.JSONFloat64 `json:"lowerBounds"`
   477  		*NoMethod
   478  	}
   479  	s1.NoMethod = (*NoMethod)(s)
   480  	if err := json.Unmarshal(data, &s1); err != nil {
   481  		return err
   482  	}
   483  	s.LowerBounds = make([]float64, len(s1.LowerBounds))
   484  	for i := range s1.LowerBounds {
   485  		s.LowerBounds[i] = float64(s1.LowerBounds[i])
   486  	}
   487  	return nil
   488  }
   489  
   490  // AggregationResult: Message describing a result of an aggregation.
   491  type AggregationResult struct {
   492  	Count     *AggregationResultCount     `json:"count,omitempty"`
   493  	Field     string                      `json:"field,omitempty"`
   494  	Frequency *AggregationResultFrequency `json:"frequency,omitempty"`
   495  	Histogram *AggregationResultHistogram `json:"histogram,omitempty"`
   496  	Sum       *AggregationResultSum       `json:"sum,omitempty"`
   497  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   498  	// include in API requests. By default, fields with empty or default values are
   499  	// omitted from API requests. See
   500  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   501  	// details.
   502  	ForceSendFields []string `json:"-"`
   503  	// NullFields is a list of field names (e.g. "Count") to include in API
   504  	// requests with the JSON null value. By default, fields with empty values are
   505  	// omitted from API requests. See
   506  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   507  	NullFields []string `json:"-"`
   508  }
   509  
   510  func (s *AggregationResult) MarshalJSON() ([]byte, error) {
   511  	type NoMethod AggregationResult
   512  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   513  }
   514  
   515  // AggregationResultCount: The result of a count aggregation.
   516  type AggregationResultCount struct {
   517  	Value int64 `json:"value,omitempty,string"`
   518  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
   519  	// include in API requests. By default, fields with empty or default values are
   520  	// omitted from API requests. See
   521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   522  	// details.
   523  	ForceSendFields []string `json:"-"`
   524  	// NullFields is a list of field names (e.g. "Value") to include in API
   525  	// requests with the JSON null value. By default, fields with empty values are
   526  	// omitted from API requests. See
   527  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   528  	NullFields []string `json:"-"`
   529  }
   530  
   531  func (s *AggregationResultCount) MarshalJSON() ([]byte, error) {
   532  	type NoMethod AggregationResultCount
   533  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   534  }
   535  
   536  // AggregationResultFrequency: The result of a frequency distribution
   537  // aggregation.
   538  type AggregationResultFrequency struct {
   539  	Values map[string]string `json:"values,omitempty"`
   540  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
   541  	// include in API requests. By default, fields with empty or default values are
   542  	// omitted from API requests. See
   543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   544  	// details.
   545  	ForceSendFields []string `json:"-"`
   546  	// NullFields is a list of field names (e.g. "Values") to include in API
   547  	// requests with the JSON null value. By default, fields with empty values are
   548  	// omitted from API requests. See
   549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   550  	NullFields []string `json:"-"`
   551  }
   552  
   553  func (s *AggregationResultFrequency) MarshalJSON() ([]byte, error) {
   554  	type NoMethod AggregationResultFrequency
   555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   556  }
   557  
   558  // AggregationResultHistogram: The result of a bucketed histogram aggregation.
   559  type AggregationResultHistogram struct {
   560  	// Buckets: Buckets in the histogram. There will be `n+1` buckets matching `n`
   561  	// lower bounds in the request. The first bucket will be from -infinity to the
   562  	// first bound. Subsequent buckets will be between one bound and the next. The
   563  	// final bucket will be from the final bound to infinity.
   564  	Buckets []*AggregationResultHistogramBucket `json:"buckets,omitempty"`
   565  	// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally
   566  	// include in API requests. By default, fields with empty or default values are
   567  	// omitted from API requests. See
   568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   569  	// details.
   570  	ForceSendFields []string `json:"-"`
   571  	// NullFields is a list of field names (e.g. "Buckets") to include in API
   572  	// requests with the JSON null value. By default, fields with empty values are
   573  	// omitted from API requests. See
   574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   575  	NullFields []string `json:"-"`
   576  }
   577  
   578  func (s *AggregationResultHistogram) MarshalJSON() ([]byte, error) {
   579  	type NoMethod AggregationResultHistogram
   580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   581  }
   582  
   583  // AggregationResultHistogramBucket: A histogram bucket with a lower and upper
   584  // bound, and a count of items with a field value between those bounds. The
   585  // lower bound is inclusive and the upper bound is exclusive. Lower bound may
   586  // be -infinity and upper bound may be infinity.
   587  type AggregationResultHistogramBucket struct {
   588  	// Count: Count of items in the bucket.
   589  	Count int64 `json:"count,omitempty,string"`
   590  	// LowerBound: Lower bound - inclusive.
   591  	LowerBound float64 `json:"lowerBound,omitempty"`
   592  	// UpperBound: Upper bound - exclusive.
   593  	UpperBound float64 `json:"upperBound,omitempty"`
   594  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   595  	// include in API requests. By default, fields with empty or default values are
   596  	// omitted from API requests. See
   597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   598  	// details.
   599  	ForceSendFields []string `json:"-"`
   600  	// NullFields is a list of field names (e.g. "Count") to include in API
   601  	// requests with the JSON null value. By default, fields with empty values are
   602  	// omitted from API requests. See
   603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   604  	NullFields []string `json:"-"`
   605  }
   606  
   607  func (s *AggregationResultHistogramBucket) MarshalJSON() ([]byte, error) {
   608  	type NoMethod AggregationResultHistogramBucket
   609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   610  }
   611  
   612  func (s *AggregationResultHistogramBucket) UnmarshalJSON(data []byte) error {
   613  	type NoMethod AggregationResultHistogramBucket
   614  	var s1 struct {
   615  		LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
   616  		UpperBound gensupport.JSONFloat64 `json:"upperBound"`
   617  		*NoMethod
   618  	}
   619  	s1.NoMethod = (*NoMethod)(s)
   620  	if err := json.Unmarshal(data, &s1); err != nil {
   621  		return err
   622  	}
   623  	s.LowerBound = float64(s1.LowerBound)
   624  	s.UpperBound = float64(s1.UpperBound)
   625  	return nil
   626  }
   627  
   628  // AggregationResultSum: The result of a sum aggregation.
   629  type AggregationResultSum struct {
   630  	Value float64 `json:"value,omitempty"`
   631  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
   632  	// include in API requests. By default, fields with empty or default values are
   633  	// omitted from API requests. See
   634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   635  	// details.
   636  	ForceSendFields []string `json:"-"`
   637  	// NullFields is a list of field names (e.g. "Value") to include in API
   638  	// requests with the JSON null value. By default, fields with empty values are
   639  	// omitted from API requests. See
   640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   641  	NullFields []string `json:"-"`
   642  }
   643  
   644  func (s *AggregationResultSum) MarshalJSON() ([]byte, error) {
   645  	type NoMethod AggregationResultSum
   646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   647  }
   648  
   649  func (s *AggregationResultSum) UnmarshalJSON(data []byte) error {
   650  	type NoMethod AggregationResultSum
   651  	var s1 struct {
   652  		Value gensupport.JSONFloat64 `json:"value"`
   653  		*NoMethod
   654  	}
   655  	s1.NoMethod = (*NoMethod)(s)
   656  	if err := json.Unmarshal(data, &s1); err != nil {
   657  		return err
   658  	}
   659  	s.Value = float64(s1.Value)
   660  	return nil
   661  }
   662  
   663  // AggregationSum: Sum of field values.
   664  type AggregationSum struct {
   665  }
   666  
   667  // Asset: An asset represents a resource in your environment. Asset types
   668  // include virtual machines and databases.
   669  type Asset struct {
   670  	// AssignedGroups: Output only. The list of groups that the asset is assigned
   671  	// to.
   672  	AssignedGroups []string `json:"assignedGroups,omitempty"`
   673  	// Attributes: Generic asset attributes.
   674  	Attributes map[string]string `json:"attributes,omitempty"`
   675  	// CreateTime: Output only. The timestamp when the asset was created.
   676  	CreateTime string `json:"createTime,omitempty"`
   677  	// DatabaseDeploymentDetails: Output only. Asset information specific for
   678  	// database deployments.
   679  	DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"`
   680  	// DatabaseDetails: Output only. Asset information specific for logical
   681  	// databases.
   682  	DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"`
   683  	// Hidden: Optional. Indicates if the asset is hidden.
   684  	Hidden bool `json:"hidden,omitempty"`
   685  	// HideReason: Optional. An optional reason for marking this asset as hidden.
   686  	HideReason string `json:"hideReason,omitempty"`
   687  	// HideTime: Output only. The timestamp when the asset was marked as hidden.
   688  	HideTime string `json:"hideTime,omitempty"`
   689  	// InsightList: Output only. The list of insights associated with the asset.
   690  	InsightList *InsightList `json:"insightList,omitempty"`
   691  	// Labels: Labels as key value pairs.
   692  	Labels map[string]string `json:"labels,omitempty"`
   693  	// Name: Output only. The full name of the asset.
   694  	Name string `json:"name,omitempty"`
   695  	// PerformanceData: Output only. Performance data for the asset.
   696  	PerformanceData *AssetPerformanceData `json:"performanceData,omitempty"`
   697  	// Sources: Output only. The list of sources contributing to the asset.
   698  	Sources []string `json:"sources,omitempty"`
   699  	// Title: Output only. Server generated human readable name of the asset.
   700  	Title string `json:"title,omitempty"`
   701  	// UpdateTime: Output only. The timestamp when the asset was last updated.
   702  	UpdateTime string `json:"updateTime,omitempty"`
   703  	// VirtualMachineDetails: Output only. Asset information specific for virtual
   704  	// machines.
   705  	VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"`
   706  
   707  	// ServerResponse contains the HTTP response code and headers from the server.
   708  	googleapi.ServerResponse `json:"-"`
   709  	// ForceSendFields is a list of field names (e.g. "AssignedGroups") to
   710  	// unconditionally include in API requests. By default, fields with empty or
   711  	// default values are omitted from API requests. See
   712  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   713  	// details.
   714  	ForceSendFields []string `json:"-"`
   715  	// NullFields is a list of field names (e.g. "AssignedGroups") to include in
   716  	// API requests with the JSON null value. By default, fields with empty values
   717  	// are omitted from API requests. See
   718  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   719  	NullFields []string `json:"-"`
   720  }
   721  
   722  func (s *Asset) MarshalJSON() ([]byte, error) {
   723  	type NoMethod Asset
   724  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   725  }
   726  
   727  // AssetFrame: Contains data reported from an inventory source on an asset.
   728  type AssetFrame struct {
   729  	// Attributes: Generic asset attributes.
   730  	Attributes map[string]string `json:"attributes,omitempty"`
   731  	// CollectionType: Optional. Frame collection type, if not specified the
   732  	// collection type will be based on the source type of the source the frame was
   733  	// reported on.
   734  	//
   735  	// Possible values:
   736  	//   "SOURCE_TYPE_UNKNOWN" - Unspecified
   737  	//   "SOURCE_TYPE_UPLOAD" - Manually uploaded file (e.g. CSV)
   738  	//   "SOURCE_TYPE_GUEST_OS_SCAN" - Guest-level info
   739  	//   "SOURCE_TYPE_INVENTORY_SCAN" - Inventory-level scan
   740  	//   "SOURCE_TYPE_CUSTOM" - Third-party owned sources.
   741  	//   "SOURCE_TYPE_DISCOVERY_CLIENT" - Discovery clients
   742  	CollectionType string `json:"collectionType,omitempty"`
   743  	// DatabaseDeploymentDetails: Asset information specific for database
   744  	// deployments.
   745  	DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"`
   746  	// DatabaseDetails: Asset information specific for logical databases.
   747  	DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"`
   748  	// Labels: Labels as key value pairs.
   749  	Labels map[string]string `json:"labels,omitempty"`
   750  	// PerformanceSamples: Asset performance data samples. Samples that are from
   751  	// more than 40 days ago or after tomorrow are ignored.
   752  	PerformanceSamples []*PerformanceSample `json:"performanceSamples,omitempty"`
   753  	// ReportTime: The time the data was reported.
   754  	ReportTime string `json:"reportTime,omitempty"`
   755  	// TraceToken: Optional. Trace token is optionally provided to assist with
   756  	// debugging and traceability.
   757  	TraceToken string `json:"traceToken,omitempty"`
   758  	// VirtualMachineDetails: Asset information specific for virtual machines.
   759  	VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"`
   760  	// ForceSendFields is a list of field names (e.g. "Attributes") 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. "Attributes") 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 *AssetFrame) MarshalJSON() ([]byte, error) {
   774  	type NoMethod AssetFrame
   775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   776  }
   777  
   778  // AssetList: Lists the asset IDs of all assets.
   779  type AssetList struct {
   780  	// AssetIds: Required. A list of asset IDs
   781  	AssetIds []string `json:"assetIds,omitempty"`
   782  	// ForceSendFields is a list of field names (e.g. "AssetIds") to
   783  	// unconditionally include in API requests. By default, fields with empty or
   784  	// default values are omitted from API requests. See
   785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   786  	// details.
   787  	ForceSendFields []string `json:"-"`
   788  	// NullFields is a list of field names (e.g. "AssetIds") to include in API
   789  	// requests with the JSON null value. By default, fields with empty values are
   790  	// omitted from API requests. See
   791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   792  	NullFields []string `json:"-"`
   793  }
   794  
   795  func (s *AssetList) MarshalJSON() ([]byte, error) {
   796  	type NoMethod AssetList
   797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   798  }
   799  
   800  // AssetPerformanceData: Performance data for an asset.
   801  type AssetPerformanceData struct {
   802  	// DailyResourceUsageAggregations: Daily resource usage aggregations. Contains
   803  	// all of the data available for an asset, up to the last 40 days. Aggregations
   804  	// are sorted from oldest to most recent.
   805  	DailyResourceUsageAggregations []*DailyResourceUsageAggregation `json:"dailyResourceUsageAggregations,omitempty"`
   806  	// ForceSendFields is a list of field names (e.g.
   807  	// "DailyResourceUsageAggregations") to unconditionally include in API
   808  	// requests. By default, fields with empty or default values are omitted from
   809  	// API requests. See
   810  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   811  	// details.
   812  	ForceSendFields []string `json:"-"`
   813  	// NullFields is a list of field names (e.g. "DailyResourceUsageAggregations")
   814  	// to include in API requests with the JSON null value. By default, fields with
   815  	// empty values are omitted from API requests. See
   816  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   817  	NullFields []string `json:"-"`
   818  }
   819  
   820  func (s *AssetPerformanceData) MarshalJSON() ([]byte, error) {
   821  	type NoMethod AssetPerformanceData
   822  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   823  }
   824  
   825  // AwsEc2PlatformDetails: AWS EC2 specific details.
   826  type AwsEc2PlatformDetails struct {
   827  	// Location: The location of the machine in the AWS format.
   828  	Location string `json:"location,omitempty"`
   829  	// MachineTypeLabel: AWS platform's machine type label.
   830  	MachineTypeLabel string `json:"machineTypeLabel,omitempty"`
   831  	// ForceSendFields is a list of field names (e.g. "Location") to
   832  	// unconditionally include in API requests. By default, fields with empty or
   833  	// default values are omitted from API requests. See
   834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   835  	// details.
   836  	ForceSendFields []string `json:"-"`
   837  	// NullFields is a list of field names (e.g. "Location") to include in API
   838  	// requests with the JSON null value. By default, fields with empty values are
   839  	// omitted from API requests. See
   840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   841  	NullFields []string `json:"-"`
   842  }
   843  
   844  func (s *AwsEc2PlatformDetails) MarshalJSON() ([]byte, error) {
   845  	type NoMethod AwsEc2PlatformDetails
   846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   847  }
   848  
   849  // AzureVmPlatformDetails: Azure VM specific details.
   850  type AzureVmPlatformDetails struct {
   851  	// Location: The location of the machine in the Azure format.
   852  	Location string `json:"location,omitempty"`
   853  	// MachineTypeLabel: Azure platform's machine type label.
   854  	MachineTypeLabel string `json:"machineTypeLabel,omitempty"`
   855  	// ProvisioningState: Azure platform's provisioning state.
   856  	ProvisioningState string `json:"provisioningState,omitempty"`
   857  	// ForceSendFields is a list of field names (e.g. "Location") to
   858  	// unconditionally include in API requests. By default, fields with empty or
   859  	// default values are omitted from API requests. See
   860  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   861  	// details.
   862  	ForceSendFields []string `json:"-"`
   863  	// NullFields is a list of field names (e.g. "Location") to include in API
   864  	// requests with the JSON null value. By default, fields with empty values are
   865  	// omitted from API requests. See
   866  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   867  	NullFields []string `json:"-"`
   868  }
   869  
   870  func (s *AzureVmPlatformDetails) MarshalJSON() ([]byte, error) {
   871  	type NoMethod AzureVmPlatformDetails
   872  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   873  }
   874  
   875  // BatchDeleteAssetsRequest: A request to delete a list of asset.
   876  type BatchDeleteAssetsRequest struct {
   877  	// AllowMissing: Optional. When this value is set to `true` the request is a
   878  	// no-op for non-existing assets. See
   879  	// https://google.aip.dev/135#delete-if-existing for additional details.
   880  	// Default value is `false`.
   881  	AllowMissing bool `json:"allowMissing,omitempty"`
   882  	// Names: Required. The IDs of the assets to delete. A maximum of 1000 assets
   883  	// can be deleted in a batch. Format:
   884  	// projects/{project}/locations/{location}/assets/{name}.
   885  	Names []string `json:"names,omitempty"`
   886  	// ForceSendFields is a list of field names (e.g. "AllowMissing") to
   887  	// unconditionally include in API requests. By default, fields with empty or
   888  	// default values are omitted from API requests. See
   889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   890  	// details.
   891  	ForceSendFields []string `json:"-"`
   892  	// NullFields is a list of field names (e.g. "AllowMissing") to include in API
   893  	// requests with the JSON null value. By default, fields with empty values are
   894  	// omitted from API requests. See
   895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   896  	NullFields []string `json:"-"`
   897  }
   898  
   899  func (s *BatchDeleteAssetsRequest) MarshalJSON() ([]byte, error) {
   900  	type NoMethod BatchDeleteAssetsRequest
   901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   902  }
   903  
   904  // BatchUpdateAssetsRequest: A request to update a list of assets.
   905  type BatchUpdateAssetsRequest struct {
   906  	// Requests: Required. The request message specifying the resources to update.
   907  	// A maximum of 1000 assets can be modified in a batch.
   908  	Requests []*UpdateAssetRequest `json:"requests,omitempty"`
   909  	// ForceSendFields is a list of field names (e.g. "Requests") to
   910  	// unconditionally include in API requests. By default, fields with empty or
   911  	// default values are omitted from API requests. See
   912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   913  	// details.
   914  	ForceSendFields []string `json:"-"`
   915  	// NullFields is a list of field names (e.g. "Requests") to include in API
   916  	// requests with the JSON null value. By default, fields with empty values are
   917  	// omitted from API requests. See
   918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   919  	NullFields []string `json:"-"`
   920  }
   921  
   922  func (s *BatchUpdateAssetsRequest) MarshalJSON() ([]byte, error) {
   923  	type NoMethod BatchUpdateAssetsRequest
   924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   925  }
   926  
   927  // BatchUpdateAssetsResponse: Response for updating a list of assets.
   928  type BatchUpdateAssetsResponse struct {
   929  	// Assets: Update asset content. The content only includes values after field
   930  	// mask being applied.
   931  	Assets []*Asset `json:"assets,omitempty"`
   932  
   933  	// ServerResponse contains the HTTP response code and headers from the server.
   934  	googleapi.ServerResponse `json:"-"`
   935  	// ForceSendFields is a list of field names (e.g. "Assets") to unconditionally
   936  	// include in API requests. By default, fields with empty or default values are
   937  	// omitted from API requests. See
   938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   939  	// details.
   940  	ForceSendFields []string `json:"-"`
   941  	// NullFields is a list of field names (e.g. "Assets") to include in API
   942  	// requests with the JSON null value. By default, fields with empty values are
   943  	// omitted from API requests. See
   944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   945  	NullFields []string `json:"-"`
   946  }
   947  
   948  func (s *BatchUpdateAssetsResponse) MarshalJSON() ([]byte, error) {
   949  	type NoMethod BatchUpdateAssetsResponse
   950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   951  }
   952  
   953  // BiosDetails: Details about the BIOS.
   954  type BiosDetails struct {
   955  	// BiosManufacturer: BIOS manufacturer.
   956  	BiosManufacturer string `json:"biosManufacturer,omitempty"`
   957  	// BiosName: BIOS name.
   958  	BiosName string `json:"biosName,omitempty"`
   959  	// BiosReleaseDate: BIOS release date.
   960  	BiosReleaseDate string `json:"biosReleaseDate,omitempty"`
   961  	// BiosVersion: BIOS version.
   962  	BiosVersion string `json:"biosVersion,omitempty"`
   963  	// SmbiosUuid: SMBIOS UUID.
   964  	SmbiosUuid string `json:"smbiosUuid,omitempty"`
   965  	// ForceSendFields is a list of field names (e.g. "BiosManufacturer") to
   966  	// unconditionally include in API requests. By default, fields with empty or
   967  	// default values are omitted from API requests. See
   968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   969  	// details.
   970  	ForceSendFields []string `json:"-"`
   971  	// NullFields is a list of field names (e.g. "BiosManufacturer") to include in
   972  	// API requests with the JSON null value. By default, fields with empty values
   973  	// are omitted from API requests. See
   974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   975  	NullFields []string `json:"-"`
   976  }
   977  
   978  func (s *BiosDetails) MarshalJSON() ([]byte, error) {
   979  	type NoMethod BiosDetails
   980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   981  }
   982  
   983  // CancelOperationRequest: The request message for Operations.CancelOperation.
   984  type CancelOperationRequest struct {
   985  }
   986  
   987  // CloudDatabaseMigrationTarget: Cloud database migration target.
   988  type CloudDatabaseMigrationTarget struct {
   989  	// CloudSqlForMysqlShape: Cloud SQL for MySQL database shape.
   990  	CloudSqlForMysqlShape *CloudSqlForMySqlShape `json:"cloudSqlForMysqlShape,omitempty"`
   991  	// CloudSqlForPostgresqlShape: Cloud SQL for Postgres database shape.
   992  	CloudSqlForPostgresqlShape *CloudSqlForPostgreSqlShape `json:"cloudSqlForPostgresqlShape,omitempty"`
   993  	// CloudSqlShape: Cloud SQL for SQL Server database shape.
   994  	CloudSqlShape *CloudSqlForSqlServerShape `json:"cloudSqlShape,omitempty"`
   995  	// ForceSendFields is a list of field names (e.g. "CloudSqlForMysqlShape") to
   996  	// unconditionally include in API requests. By default, fields with empty or
   997  	// default values are omitted from API requests. See
   998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   999  	// details.
  1000  	ForceSendFields []string `json:"-"`
  1001  	// NullFields is a list of field names (e.g. "CloudSqlForMysqlShape") to
  1002  	// include in API requests with the JSON null value. By default, fields with
  1003  	// empty values are omitted from API requests. See
  1004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1005  	NullFields []string `json:"-"`
  1006  }
  1007  
  1008  func (s *CloudDatabaseMigrationTarget) MarshalJSON() ([]byte, error) {
  1009  	type NoMethod CloudDatabaseMigrationTarget
  1010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1011  }
  1012  
  1013  // CloudSqlForMySqlShape: Cloud SQL for MySQL database shape.
  1014  type CloudSqlForMySqlShape struct {
  1015  	// BackupStorageGb: Output only. Predicted backup storage size in GiB.
  1016  	BackupStorageGb int64 `json:"backupStorageGb,omitempty"`
  1017  	// Edition: Output only. Cloud SQL edition.
  1018  	//
  1019  	// Possible values:
  1020  	//   "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition.
  1021  	//   "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of Cloud
  1022  	// SQL and is suitable for applications requiring a balance of performance,
  1023  	// availability, and cost.
  1024  	//   "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance and
  1025  	// availability to run applications requiring the highest level of availability
  1026  	// and performance in addition to the capabilities of the Cloud SQL Enterprise
  1027  	// edition. Note: SQL Server is not available in Enterprise Plus edition. For
  1028  	// SQL Server, Enterprise will always be recommended.
  1029  	Edition string `json:"edition,omitempty"`
  1030  	// EgressGbPerMonth: Output only. Predicted Network Out traffic GiB per month.
  1031  	EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"`
  1032  	// LogicalCoreCount: Output only. Number of logical cores.
  1033  	LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
  1034  	// MemoryMb: Output only. Predicted amount of memory in MiB.
  1035  	MemoryMb int64 `json:"memoryMb,omitempty"`
  1036  	// Storage: Output only. Predicted storage shape.
  1037  	Storage *ComputeStorageDescriptor `json:"storage,omitempty"`
  1038  	// Version: Output only. MySQL version to be used on the Cloud SQL for MySQL
  1039  	// instance.
  1040  	//
  1041  	// Possible values:
  1042  	//   "MY_SQL_VERSION_UNSPECIFIED" - Unspecified MySQL version.
  1043  	//   "MY_SQL_VERSION_5_6" - MySQL 5.6.
  1044  	//   "MY_SQL_VERSION_5_7" - MySQL 5.7.
  1045  	//   "MY_SQL_VERSION_8_0" - MySQL 8.0.
  1046  	Version string `json:"version,omitempty"`
  1047  	// ZoneAvailability: Output only. Cloud SQL zone availability.
  1048  	//
  1049  	// Possible values:
  1050  	//   "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud SQL zone
  1051  	// availability.
  1052  	//   "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from only
  1053  	// one zone. In case of outage, no failover. Not recommended for production.
  1054  	//   "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve data from
  1055  	// multiple zones in a region. Highly available. Automatic failover to another
  1056  	// zone within your selected region. Recommended for production instances.
  1057  	// Increases cost.
  1058  	ZoneAvailability string `json:"zoneAvailability,omitempty"`
  1059  	// ForceSendFields is a list of field names (e.g. "BackupStorageGb") to
  1060  	// unconditionally include in API requests. By default, fields with empty or
  1061  	// default values are omitted from API requests. See
  1062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1063  	// details.
  1064  	ForceSendFields []string `json:"-"`
  1065  	// NullFields is a list of field names (e.g. "BackupStorageGb") to include in
  1066  	// API requests with the JSON null value. By default, fields with empty values
  1067  	// are omitted from API requests. See
  1068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1069  	NullFields []string `json:"-"`
  1070  }
  1071  
  1072  func (s *CloudSqlForMySqlShape) MarshalJSON() ([]byte, error) {
  1073  	type NoMethod CloudSqlForMySqlShape
  1074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1075  }
  1076  
  1077  // CloudSqlForPostgreSqlShape: Cloud SQL for Postgres database shape.
  1078  type CloudSqlForPostgreSqlShape struct {
  1079  	// BackupStorageGb: Output only. Predicted backup storage size in GiB.
  1080  	BackupStorageGb int64 `json:"backupStorageGb,omitempty"`
  1081  	// Edition: Output only. Cloud SQL edition.
  1082  	//
  1083  	// Possible values:
  1084  	//   "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition.
  1085  	//   "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of Cloud
  1086  	// SQL and is suitable for applications requiring a balance of performance,
  1087  	// availability, and cost.
  1088  	//   "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance and
  1089  	// availability to run applications requiring the highest level of availability
  1090  	// and performance in addition to the capabilities of the Cloud SQL Enterprise
  1091  	// edition. Note: SQL Server is not available in Enterprise Plus edition. For
  1092  	// SQL Server, Enterprise will always be recommended.
  1093  	Edition string `json:"edition,omitempty"`
  1094  	// EgressGbPerMonth: Output only. Predicted Network Out traffic GiB per month.
  1095  	EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"`
  1096  	// LogicalCoreCount: Output only. Number of logical cores.
  1097  	LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
  1098  	// MemoryMb: Output only. Predicted amount of memory in MiB.
  1099  	MemoryMb int64 `json:"memoryMb,omitempty"`
  1100  	// Storage: Output only. Predicted storage shape.
  1101  	Storage *ComputeStorageDescriptor `json:"storage,omitempty"`
  1102  	// Version: Output only. PostgreSql version to be used on the Cloud SQL for
  1103  	// PostgreSql instance.
  1104  	//
  1105  	// Possible values:
  1106  	//   "POSTGRESQL_VERSION_UNSPECIFIED" - Unspecified PostgreSQL version.
  1107  	//   "POSTGRESQL_VERSION_9_6" - PostgreSQL 9.6.
  1108  	//   "POSTGRESQL_VERSION_10" - PostgreSQL 10
  1109  	//   "POSTGRESQL_VERSION_11" - PostgreSQL 11
  1110  	//   "POSTGRESQL_VERSION_12" - PostgreSQL 12
  1111  	//   "POSTGRESQL_VERSION_13" - PostgreSQL 13
  1112  	//   "POSTGRESQL_VERSION_14" - PostgreSQL 14
  1113  	//   "POSTGRESQL_VERSION_15" - PostgreSQL 15
  1114  	Version string `json:"version,omitempty"`
  1115  	// ZoneAvailability: Output only. Cloud SQL zone availability.
  1116  	//
  1117  	// Possible values:
  1118  	//   "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud SQL zone
  1119  	// availability.
  1120  	//   "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from only
  1121  	// one zone. In case of outage, no failover. Not recommended for production.
  1122  	//   "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve data from
  1123  	// multiple zones in a region. Highly available. Automatic failover to another
  1124  	// zone within your selected region. Recommended for production instances.
  1125  	// Increases cost.
  1126  	ZoneAvailability string `json:"zoneAvailability,omitempty"`
  1127  	// ForceSendFields is a list of field names (e.g. "BackupStorageGb") to
  1128  	// unconditionally include in API requests. By default, fields with empty or
  1129  	// default values are omitted from API requests. See
  1130  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1131  	// details.
  1132  	ForceSendFields []string `json:"-"`
  1133  	// NullFields is a list of field names (e.g. "BackupStorageGb") to include in
  1134  	// API requests with the JSON null value. By default, fields with empty values
  1135  	// are omitted from API requests. See
  1136  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1137  	NullFields []string `json:"-"`
  1138  }
  1139  
  1140  func (s *CloudSqlForPostgreSqlShape) MarshalJSON() ([]byte, error) {
  1141  	type NoMethod CloudSqlForPostgreSqlShape
  1142  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1143  }
  1144  
  1145  // CloudSqlForSqlServerShape: Cloud SQL for SQL Server database shape.
  1146  type CloudSqlForSqlServerShape struct {
  1147  	// BackupStorageGb: Output only. Predicted backup storage size in GiB.
  1148  	BackupStorageGb int64 `json:"backupStorageGb,omitempty"`
  1149  	// Edition: Output only. Cloud SQL edition.
  1150  	//
  1151  	// Possible values:
  1152  	//   "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition.
  1153  	//   "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of Cloud
  1154  	// SQL and is suitable for applications requiring a balance of performance,
  1155  	// availability, and cost.
  1156  	//   "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance and
  1157  	// availability to run applications requiring the highest level of availability
  1158  	// and performance in addition to the capabilities of the Cloud SQL Enterprise
  1159  	// edition. Note: SQL Server is not available in Enterprise Plus edition. For
  1160  	// SQL Server, Enterprise will always be recommended.
  1161  	Edition string `json:"edition,omitempty"`
  1162  	// EgressGbPerMonth: Output only. Predicted Network Out traffic GiB per month.
  1163  	EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"`
  1164  	// LogicalCoreCount: Output only. Number of logical cores.
  1165  	LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
  1166  	// MemoryMb: Output only. Predicted amount of memory in MiB.
  1167  	MemoryMb int64 `json:"memoryMb,omitempty"`
  1168  	// Storage: Output only. Predicted storage shape.
  1169  	Storage *ComputeStorageDescriptor `json:"storage,omitempty"`
  1170  	// Version: Output only. Microsoft SQL Server version to be used on the Cloud
  1171  	// SQL for SQL server instance.
  1172  	//
  1173  	// Possible values:
  1174  	//   "SQL_SERVER_VERSION_UNSPECIFIED" - Unspecified SQL Server version.
  1175  	//   "SQL_SERVER_VERSION_2017_EXPRESS" - The database version is SQL Server
  1176  	// 2017 Express.
  1177  	//   "SQL_SERVER_VERSION_2017_WEB" - The database version is SQL Server 2017
  1178  	// Web.
  1179  	//   "SQL_SERVER_VERSION_2017_STANDARD" - The database version is SQL Server
  1180  	// 2017 Standard.
  1181  	//   "SQL_SERVER_VERSION_2017_ENTERPRISE" - The database version is SQL Server
  1182  	// 2017 Enterprise.
  1183  	//   "SQL_SERVER_VERSION_2019_EXPRESS" - The database version is SQL Server
  1184  	// 2019 Express.
  1185  	//   "SQL_SERVER_VERSION_2019_WEB" - The database version is SQL Server 2019
  1186  	// Web.
  1187  	//   "SQL_SERVER_VERSION_2019_STANDARD" - The database version is SQL Server
  1188  	// 2019 Standard.
  1189  	//   "SQL_SERVER_VERSION_2019_ENTERPRISE" - The database version is SQL Server
  1190  	// 2019 Enterprise.
  1191  	//   "SQL_SERVER_VERSION_2022_EXPRESS" - The database version is SQL Server
  1192  	// 2022 Express.
  1193  	//   "SQL_SERVER_VERSION_2022_WEB" - The database version is SQL Server 2022
  1194  	// Web.
  1195  	//   "SQL_SERVER_VERSION_2022_STANDARD" - The database version is SQL Server
  1196  	// 2022 Standard.
  1197  	//   "SQL_SERVER_VERSION_2022_ENTERPRISE" - The database version is SQL Server
  1198  	// 2022 Enterprise.
  1199  	Version string `json:"version,omitempty"`
  1200  	// ZoneAvailability: Output only. Cloud SQL zone availability.
  1201  	//
  1202  	// Possible values:
  1203  	//   "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud SQL zone
  1204  	// availability.
  1205  	//   "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from only
  1206  	// one zone. In case of outage, no failover. Not recommended for production.
  1207  	//   "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve data from
  1208  	// multiple zones in a region. Highly available. Automatic failover to another
  1209  	// zone within your selected region. Recommended for production instances.
  1210  	// Increases cost.
  1211  	ZoneAvailability string `json:"zoneAvailability,omitempty"`
  1212  	// ForceSendFields is a list of field names (e.g. "BackupStorageGb") to
  1213  	// unconditionally include in API requests. By default, fields with empty or
  1214  	// default values are omitted from API requests. See
  1215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1216  	// details.
  1217  	ForceSendFields []string `json:"-"`
  1218  	// NullFields is a list of field names (e.g. "BackupStorageGb") to include in
  1219  	// API requests with the JSON null value. By default, fields with empty values
  1220  	// are omitted from API requests. See
  1221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1222  	NullFields []string `json:"-"`
  1223  }
  1224  
  1225  func (s *CloudSqlForSqlServerShape) MarshalJSON() ([]byte, error) {
  1226  	type NoMethod CloudSqlForSqlServerShape
  1227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1228  }
  1229  
  1230  // ComputeEngineMigrationTarget: Compute engine migration target.
  1231  type ComputeEngineMigrationTarget struct {
  1232  	// Shape: Description of the suggested shape for the migration target.
  1233  	Shape *ComputeEngineShapeDescriptor `json:"shape,omitempty"`
  1234  	// ForceSendFields is a list of field names (e.g. "Shape") to unconditionally
  1235  	// include in API requests. By default, fields with empty or default values are
  1236  	// omitted from API requests. See
  1237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1238  	// details.
  1239  	ForceSendFields []string `json:"-"`
  1240  	// NullFields is a list of field names (e.g. "Shape") to include in API
  1241  	// requests with the JSON null value. By default, fields with empty values are
  1242  	// omitted from API requests. See
  1243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1244  	NullFields []string `json:"-"`
  1245  }
  1246  
  1247  func (s *ComputeEngineMigrationTarget) MarshalJSON() ([]byte, error) {
  1248  	type NoMethod ComputeEngineMigrationTarget
  1249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1250  }
  1251  
  1252  // ComputeEnginePreferences: The user preferences relating to Compute Engine
  1253  // target platform.
  1254  type ComputeEnginePreferences struct {
  1255  	// LicenseType: Overridden by os_pricing_preferences if specified. License type
  1256  	// to consider when calculating costs for virtual machine insights and
  1257  	// recommendations. If unspecified, costs are calculated based on the default
  1258  	// licensing plan.
  1259  	//
  1260  	// Possible values:
  1261  	//   "LICENSE_TYPE_UNSPECIFIED" - Unspecified (default value).
  1262  	//   "LICENSE_TYPE_DEFAULT" - Default Google Cloud licensing plan. Licensing is
  1263  	// charged per usage. This a good value to start with.
  1264  	//   "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE" - Bring-your-own-license (BYOL)
  1265  	// plan. User provides the OS license.
  1266  	LicenseType string `json:"licenseType,omitempty"`
  1267  	// MachinePreferences: Preferences concerning the machine types to consider on
  1268  	// Compute Engine.
  1269  	MachinePreferences *MachinePreferences `json:"machinePreferences,omitempty"`
  1270  	// PersistentDiskType: Persistent disk type to use. If unspecified (default),
  1271  	// all types are considered, based on available usage data.
  1272  	//
  1273  	// Possible values:
  1274  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  1275  	// Selecting this value allows the system to use any disk type according to
  1276  	// reported usage. This a good value to start with.
  1277  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  1278  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  1279  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  1280  	PersistentDiskType string `json:"persistentDiskType,omitempty"`
  1281  	// ForceSendFields is a list of field names (e.g. "LicenseType") to
  1282  	// unconditionally include in API requests. By default, fields with empty or
  1283  	// default values are omitted from API requests. See
  1284  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1285  	// details.
  1286  	ForceSendFields []string `json:"-"`
  1287  	// NullFields is a list of field names (e.g. "LicenseType") to include in API
  1288  	// requests with the JSON null value. By default, fields with empty values are
  1289  	// omitted from API requests. See
  1290  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1291  	NullFields []string `json:"-"`
  1292  }
  1293  
  1294  func (s *ComputeEnginePreferences) MarshalJSON() ([]byte, error) {
  1295  	type NoMethod ComputeEnginePreferences
  1296  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1297  }
  1298  
  1299  // ComputeEngineShapeDescriptor: Compute Engine target shape descriptor.
  1300  type ComputeEngineShapeDescriptor struct {
  1301  	// LogicalCoreCount: Output only. Number of logical cores.
  1302  	LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"`
  1303  	// MachineType: Output only. Compute Engine machine type.
  1304  	MachineType string `json:"machineType,omitempty"`
  1305  	// MemoryMb: Output only. Memory in mebibytes.
  1306  	MemoryMb int64 `json:"memoryMb,omitempty"`
  1307  	// PhysicalCoreCount: Output only. Number of physical cores.
  1308  	PhysicalCoreCount int64 `json:"physicalCoreCount,omitempty"`
  1309  	// Series: Output only. Compute Engine machine series.
  1310  	Series string `json:"series,omitempty"`
  1311  	// Storage: Output only. Compute Engine storage. Never empty.
  1312  	Storage []*ComputeStorageDescriptor `json:"storage,omitempty"`
  1313  	// ForceSendFields is a list of field names (e.g. "LogicalCoreCount") to
  1314  	// unconditionally include in API requests. By default, fields with empty or
  1315  	// default values are omitted from API requests. See
  1316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1317  	// details.
  1318  	ForceSendFields []string `json:"-"`
  1319  	// NullFields is a list of field names (e.g. "LogicalCoreCount") to include in
  1320  	// API requests with the JSON null value. By default, fields with empty values
  1321  	// are omitted from API requests. See
  1322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1323  	NullFields []string `json:"-"`
  1324  }
  1325  
  1326  func (s *ComputeEngineShapeDescriptor) MarshalJSON() ([]byte, error) {
  1327  	type NoMethod ComputeEngineShapeDescriptor
  1328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1329  }
  1330  
  1331  // ComputeEngineSoleTenantMigrationTarget: Compute engine sole tenant migration
  1332  // target.
  1333  type ComputeEngineSoleTenantMigrationTarget struct {
  1334  }
  1335  
  1336  // ComputeStorageDescriptor: Compute Engine storage option descriptor.
  1337  type ComputeStorageDescriptor struct {
  1338  	// SizeGb: Disk size in GiB.
  1339  	SizeGb int64 `json:"sizeGb,omitempty"`
  1340  	// Type: Disk type backing the storage.
  1341  	//
  1342  	// Possible values:
  1343  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  1344  	// Selecting this value allows the system to use any disk type according to
  1345  	// reported usage. This a good value to start with.
  1346  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  1347  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  1348  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  1349  	Type string `json:"type,omitempty"`
  1350  	// ForceSendFields is a list of field names (e.g. "SizeGb") to unconditionally
  1351  	// include in API requests. By default, fields with empty or default values are
  1352  	// omitted from API requests. See
  1353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1354  	// details.
  1355  	ForceSendFields []string `json:"-"`
  1356  	// NullFields is a list of field names (e.g. "SizeGb") to include in API
  1357  	// requests with the JSON null value. By default, fields with empty values are
  1358  	// omitted from API requests. See
  1359  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1360  	NullFields []string `json:"-"`
  1361  }
  1362  
  1363  func (s *ComputeStorageDescriptor) MarshalJSON() ([]byte, error) {
  1364  	type NoMethod ComputeStorageDescriptor
  1365  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1366  }
  1367  
  1368  // CpuUsageSample: CPU usage sample.
  1369  type CpuUsageSample struct {
  1370  	// UtilizedPercentage: Percentage of total CPU capacity utilized. Must be in
  1371  	// the interval [0, 100]. On most systems can be calculated using 100 - idle
  1372  	// percentage.
  1373  	UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"`
  1374  	// ForceSendFields is a list of field names (e.g. "UtilizedPercentage") to
  1375  	// unconditionally include in API requests. By default, fields with empty or
  1376  	// default values are omitted from API requests. See
  1377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1378  	// details.
  1379  	ForceSendFields []string `json:"-"`
  1380  	// NullFields is a list of field names (e.g. "UtilizedPercentage") to include
  1381  	// in API requests with the JSON null value. By default, fields with empty
  1382  	// values are omitted from API requests. See
  1383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1384  	NullFields []string `json:"-"`
  1385  }
  1386  
  1387  func (s *CpuUsageSample) MarshalJSON() ([]byte, error) {
  1388  	type NoMethod CpuUsageSample
  1389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1390  }
  1391  
  1392  func (s *CpuUsageSample) UnmarshalJSON(data []byte) error {
  1393  	type NoMethod CpuUsageSample
  1394  	var s1 struct {
  1395  		UtilizedPercentage gensupport.JSONFloat64 `json:"utilizedPercentage"`
  1396  		*NoMethod
  1397  	}
  1398  	s1.NoMethod = (*NoMethod)(s)
  1399  	if err := json.Unmarshal(data, &s1); err != nil {
  1400  		return err
  1401  	}
  1402  	s.UtilizedPercentage = float64(s1.UtilizedPercentage)
  1403  	return nil
  1404  }
  1405  
  1406  // DailyResourceUsageAggregation: Usage data aggregation for a single day.
  1407  type DailyResourceUsageAggregation struct {
  1408  	// Cpu: CPU usage.
  1409  	Cpu *DailyResourceUsageAggregationCPU `json:"cpu,omitempty"`
  1410  	// Date: Aggregation date. Day boundaries are at midnight UTC.
  1411  	Date *Date `json:"date,omitempty"`
  1412  	// Disk: Disk usage.
  1413  	Disk *DailyResourceUsageAggregationDisk `json:"disk,omitempty"`
  1414  	// Memory: Memory usage.
  1415  	Memory *DailyResourceUsageAggregationMemory `json:"memory,omitempty"`
  1416  	// Network: Network usage.
  1417  	Network *DailyResourceUsageAggregationNetwork `json:"network,omitempty"`
  1418  	// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally
  1419  	// include in API requests. By default, fields with empty or default values are
  1420  	// omitted from API requests. See
  1421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1422  	// details.
  1423  	ForceSendFields []string `json:"-"`
  1424  	// NullFields is a list of field names (e.g. "Cpu") to include in API requests
  1425  	// with the JSON null value. By default, fields with empty values are omitted
  1426  	// from API requests. See
  1427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1428  	NullFields []string `json:"-"`
  1429  }
  1430  
  1431  func (s *DailyResourceUsageAggregation) MarshalJSON() ([]byte, error) {
  1432  	type NoMethod DailyResourceUsageAggregation
  1433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1434  }
  1435  
  1436  // DailyResourceUsageAggregationCPU: Statistical aggregation of CPU usage.
  1437  type DailyResourceUsageAggregationCPU struct {
  1438  	// UtilizationPercentage: CPU utilization percentage.
  1439  	UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"`
  1440  	// ForceSendFields is a list of field names (e.g. "UtilizationPercentage") to
  1441  	// unconditionally include in API requests. By default, fields with empty or
  1442  	// default values are omitted from API requests. See
  1443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1444  	// details.
  1445  	ForceSendFields []string `json:"-"`
  1446  	// NullFields is a list of field names (e.g. "UtilizationPercentage") to
  1447  	// include in API requests with the JSON null value. By default, fields with
  1448  	// empty values are omitted from API requests. See
  1449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1450  	NullFields []string `json:"-"`
  1451  }
  1452  
  1453  func (s *DailyResourceUsageAggregationCPU) MarshalJSON() ([]byte, error) {
  1454  	type NoMethod DailyResourceUsageAggregationCPU
  1455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1456  }
  1457  
  1458  // DailyResourceUsageAggregationDisk: Statistical aggregation of disk usage.
  1459  type DailyResourceUsageAggregationDisk struct {
  1460  	// Iops: Disk I/O operations per second.
  1461  	Iops *DailyResourceUsageAggregationStats `json:"iops,omitempty"`
  1462  	// ReadIops: Disk read I/O operations per second.
  1463  	ReadIops *DailyResourceUsageAggregationStats `json:"readIops,omitempty"`
  1464  	// WriteIops: Disk write I/O operations per second.
  1465  	WriteIops *DailyResourceUsageAggregationStats `json:"writeIops,omitempty"`
  1466  	// ForceSendFields is a list of field names (e.g. "Iops") to unconditionally
  1467  	// include in API requests. By default, fields with empty or default values are
  1468  	// omitted from API requests. See
  1469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1470  	// details.
  1471  	ForceSendFields []string `json:"-"`
  1472  	// NullFields is a list of field names (e.g. "Iops") to include in API requests
  1473  	// with the JSON null value. By default, fields with empty values are omitted
  1474  	// from API requests. See
  1475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1476  	NullFields []string `json:"-"`
  1477  }
  1478  
  1479  func (s *DailyResourceUsageAggregationDisk) MarshalJSON() ([]byte, error) {
  1480  	type NoMethod DailyResourceUsageAggregationDisk
  1481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1482  }
  1483  
  1484  // DailyResourceUsageAggregationMemory: Statistical aggregation of memory
  1485  // usage.
  1486  type DailyResourceUsageAggregationMemory struct {
  1487  	// UtilizationPercentage: Memory utilization percentage.
  1488  	UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"`
  1489  	// ForceSendFields is a list of field names (e.g. "UtilizationPercentage") to
  1490  	// unconditionally include in API requests. By default, fields with empty or
  1491  	// default values are omitted from API requests. See
  1492  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1493  	// details.
  1494  	ForceSendFields []string `json:"-"`
  1495  	// NullFields is a list of field names (e.g. "UtilizationPercentage") to
  1496  	// include in API requests with the JSON null value. By default, fields with
  1497  	// empty values are omitted from API requests. See
  1498  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1499  	NullFields []string `json:"-"`
  1500  }
  1501  
  1502  func (s *DailyResourceUsageAggregationMemory) MarshalJSON() ([]byte, error) {
  1503  	type NoMethod DailyResourceUsageAggregationMemory
  1504  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1505  }
  1506  
  1507  // DailyResourceUsageAggregationNetwork: Statistical aggregation of network
  1508  // usage.
  1509  type DailyResourceUsageAggregationNetwork struct {
  1510  	// EgressBps: Network egress in B/s.
  1511  	EgressBps *DailyResourceUsageAggregationStats `json:"egressBps,omitempty"`
  1512  	// IngressBps: Network ingress in B/s.
  1513  	IngressBps *DailyResourceUsageAggregationStats `json:"ingressBps,omitempty"`
  1514  	// ForceSendFields is a list of field names (e.g. "EgressBps") to
  1515  	// unconditionally include in API requests. By default, fields with empty or
  1516  	// default values are omitted from API requests. See
  1517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1518  	// details.
  1519  	ForceSendFields []string `json:"-"`
  1520  	// NullFields is a list of field names (e.g. "EgressBps") to include in API
  1521  	// requests with the JSON null value. By default, fields with empty values are
  1522  	// omitted from API requests. See
  1523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1524  	NullFields []string `json:"-"`
  1525  }
  1526  
  1527  func (s *DailyResourceUsageAggregationNetwork) MarshalJSON() ([]byte, error) {
  1528  	type NoMethod DailyResourceUsageAggregationNetwork
  1529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1530  }
  1531  
  1532  // DailyResourceUsageAggregationStats: Statistical aggregation of samples for a
  1533  // single resource usage.
  1534  type DailyResourceUsageAggregationStats struct {
  1535  	// Average: Average usage value.
  1536  	Average float64 `json:"average,omitempty"`
  1537  	// Median: Median usage value.
  1538  	Median float64 `json:"median,omitempty"`
  1539  	// NinteyFifthPercentile: 95th percentile usage value.
  1540  	NinteyFifthPercentile float64 `json:"ninteyFifthPercentile,omitempty"`
  1541  	// Peak: Peak usage value.
  1542  	Peak float64 `json:"peak,omitempty"`
  1543  	// ForceSendFields is a list of field names (e.g. "Average") to unconditionally
  1544  	// include in API requests. By default, fields with empty or default values are
  1545  	// omitted from API requests. See
  1546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1547  	// details.
  1548  	ForceSendFields []string `json:"-"`
  1549  	// NullFields is a list of field names (e.g. "Average") to include in API
  1550  	// requests with the JSON null value. By default, fields with empty values are
  1551  	// omitted from API requests. See
  1552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1553  	NullFields []string `json:"-"`
  1554  }
  1555  
  1556  func (s *DailyResourceUsageAggregationStats) MarshalJSON() ([]byte, error) {
  1557  	type NoMethod DailyResourceUsageAggregationStats
  1558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1559  }
  1560  
  1561  func (s *DailyResourceUsageAggregationStats) UnmarshalJSON(data []byte) error {
  1562  	type NoMethod DailyResourceUsageAggregationStats
  1563  	var s1 struct {
  1564  		Average               gensupport.JSONFloat64 `json:"average"`
  1565  		Median                gensupport.JSONFloat64 `json:"median"`
  1566  		NinteyFifthPercentile gensupport.JSONFloat64 `json:"ninteyFifthPercentile"`
  1567  		Peak                  gensupport.JSONFloat64 `json:"peak"`
  1568  		*NoMethod
  1569  	}
  1570  	s1.NoMethod = (*NoMethod)(s)
  1571  	if err := json.Unmarshal(data, &s1); err != nil {
  1572  		return err
  1573  	}
  1574  	s.Average = float64(s1.Average)
  1575  	s.Median = float64(s1.Median)
  1576  	s.NinteyFifthPercentile = float64(s1.NinteyFifthPercentile)
  1577  	s.Peak = float64(s1.Peak)
  1578  	return nil
  1579  }
  1580  
  1581  // DatabaseDeploymentDetails: The details of a database deployment asset.
  1582  type DatabaseDeploymentDetails struct {
  1583  	// AggregatedStats: Output only. Aggregated stats for the database deployment.
  1584  	AggregatedStats *DatabaseDeploymentDetailsAggregatedStats `json:"aggregatedStats,omitempty"`
  1585  	// Edition: The database deployment edition.
  1586  	Edition string `json:"edition,omitempty"`
  1587  	// GeneratedId: The database deployment generated ID.
  1588  	GeneratedId string `json:"generatedId,omitempty"`
  1589  	// ManualUniqueId: A manual unique ID set by the user.
  1590  	ManualUniqueId string `json:"manualUniqueId,omitempty"`
  1591  	// Mysql: Details of a MYSQL database deployment.
  1592  	Mysql *MysqlDatabaseDeployment `json:"mysql,omitempty"`
  1593  	// Postgresql: Details of a PostgreSQL database deployment.
  1594  	Postgresql *PostgreSqlDatabaseDeployment `json:"postgresql,omitempty"`
  1595  	// SqlServer: Details of a Microsoft SQL Server database deployment.
  1596  	SqlServer *SqlServerDatabaseDeployment `json:"sqlServer,omitempty"`
  1597  	// Topology: Details of the database deployment topology.
  1598  	Topology *DatabaseDeploymentTopology `json:"topology,omitempty"`
  1599  	// Version: The database deployment version.
  1600  	Version string `json:"version,omitempty"`
  1601  	// ForceSendFields is a list of field names (e.g. "AggregatedStats") to
  1602  	// unconditionally include in API requests. By default, fields with empty or
  1603  	// default values are omitted from API requests. See
  1604  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1605  	// details.
  1606  	ForceSendFields []string `json:"-"`
  1607  	// NullFields is a list of field names (e.g. "AggregatedStats") to include in
  1608  	// API requests with the JSON null value. By default, fields with empty values
  1609  	// are omitted from API requests. See
  1610  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1611  	NullFields []string `json:"-"`
  1612  }
  1613  
  1614  func (s *DatabaseDeploymentDetails) MarshalJSON() ([]byte, error) {
  1615  	type NoMethod DatabaseDeploymentDetails
  1616  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1617  }
  1618  
  1619  // DatabaseDeploymentDetailsAggregatedStats: Aggregated stats for the database
  1620  // deployment.
  1621  type DatabaseDeploymentDetailsAggregatedStats struct {
  1622  	// DatabaseCount: Output only. The number of databases in the deployment.
  1623  	DatabaseCount int64 `json:"databaseCount,omitempty"`
  1624  	// ForceSendFields is a list of field names (e.g. "DatabaseCount") to
  1625  	// unconditionally include in API requests. By default, fields with empty or
  1626  	// default values are omitted from API requests. See
  1627  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1628  	// details.
  1629  	ForceSendFields []string `json:"-"`
  1630  	// NullFields is a list of field names (e.g. "DatabaseCount") to include in API
  1631  	// requests with the JSON null value. By default, fields with empty values are
  1632  	// omitted from API requests. See
  1633  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1634  	NullFields []string `json:"-"`
  1635  }
  1636  
  1637  func (s *DatabaseDeploymentDetailsAggregatedStats) MarshalJSON() ([]byte, error) {
  1638  	type NoMethod DatabaseDeploymentDetailsAggregatedStats
  1639  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1640  }
  1641  
  1642  // DatabaseDeploymentTopology: Details of database deployment's topology.
  1643  type DatabaseDeploymentTopology struct {
  1644  	// CoreCount: Optional. Number of total cores.
  1645  	CoreCount int64 `json:"coreCount,omitempty"`
  1646  	// CoreLimit: Optional. Number of total cores limited by db deployment.
  1647  	CoreLimit int64 `json:"coreLimit,omitempty"`
  1648  	// DiskAllocatedBytes: Optional. Disk allocated in bytes.
  1649  	DiskAllocatedBytes int64 `json:"diskAllocatedBytes,omitempty,string"`
  1650  	// DiskUsedBytes: Optional. Disk used in bytes.
  1651  	DiskUsedBytes int64 `json:"diskUsedBytes,omitempty,string"`
  1652  	// Instances: Optional. List of database instances.
  1653  	Instances []*DatabaseInstance `json:"instances,omitempty"`
  1654  	// MemoryBytes: Optional. Total memory in bytes.
  1655  	MemoryBytes int64 `json:"memoryBytes,omitempty,string"`
  1656  	// MemoryLimitBytes: Optional. Total memory in bytes limited by db deployment.
  1657  	MemoryLimitBytes int64 `json:"memoryLimitBytes,omitempty,string"`
  1658  	// ForceSendFields is a list of field names (e.g. "CoreCount") to
  1659  	// unconditionally include in API requests. By default, fields with empty or
  1660  	// default values are omitted from API requests. See
  1661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1662  	// details.
  1663  	ForceSendFields []string `json:"-"`
  1664  	// NullFields is a list of field names (e.g. "CoreCount") to include in API
  1665  	// requests with the JSON null value. By default, fields with empty values are
  1666  	// omitted from API requests. See
  1667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1668  	NullFields []string `json:"-"`
  1669  }
  1670  
  1671  func (s *DatabaseDeploymentTopology) MarshalJSON() ([]byte, error) {
  1672  	type NoMethod DatabaseDeploymentTopology
  1673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1674  }
  1675  
  1676  // DatabaseDetails: Details of a logical database.
  1677  type DatabaseDetails struct {
  1678  	// AllocatedStorageBytes: The allocated storage for the database in bytes.
  1679  	AllocatedStorageBytes int64 `json:"allocatedStorageBytes,omitempty,string"`
  1680  	// DatabaseName: The name of the database.
  1681  	DatabaseName string `json:"databaseName,omitempty"`
  1682  	// ParentDatabaseDeployment: The parent database deployment that contains the
  1683  	// logical database.
  1684  	ParentDatabaseDeployment *DatabaseDetailsParentDatabaseDeployment `json:"parentDatabaseDeployment,omitempty"`
  1685  	// Schemas: The database schemas.
  1686  	Schemas []*DatabaseSchema `json:"schemas,omitempty"`
  1687  	// ForceSendFields is a list of field names (e.g. "AllocatedStorageBytes") to
  1688  	// unconditionally include in API requests. By default, fields with empty or
  1689  	// default values are omitted from API requests. See
  1690  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1691  	// details.
  1692  	ForceSendFields []string `json:"-"`
  1693  	// NullFields is a list of field names (e.g. "AllocatedStorageBytes") to
  1694  	// include in API requests with the JSON null value. By default, fields with
  1695  	// empty values are omitted from API requests. See
  1696  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1697  	NullFields []string `json:"-"`
  1698  }
  1699  
  1700  func (s *DatabaseDetails) MarshalJSON() ([]byte, error) {
  1701  	type NoMethod DatabaseDetails
  1702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1703  }
  1704  
  1705  // DatabaseDetailsParentDatabaseDeployment: The identifiers of the parent
  1706  // database deployment.
  1707  type DatabaseDetailsParentDatabaseDeployment struct {
  1708  	// GeneratedId: The parent database deployment generated ID.
  1709  	GeneratedId string `json:"generatedId,omitempty"`
  1710  	// ManualUniqueId: The parent database deployment optional manual unique ID set
  1711  	// by the user.
  1712  	ManualUniqueId string `json:"manualUniqueId,omitempty"`
  1713  	// ForceSendFields is a list of field names (e.g. "GeneratedId") to
  1714  	// unconditionally include in API requests. By default, fields with empty or
  1715  	// default values are omitted from API requests. See
  1716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1717  	// details.
  1718  	ForceSendFields []string `json:"-"`
  1719  	// NullFields is a list of field names (e.g. "GeneratedId") to include in API
  1720  	// requests with the JSON null value. By default, fields with empty values are
  1721  	// omitted from API requests. See
  1722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1723  	NullFields []string `json:"-"`
  1724  }
  1725  
  1726  func (s *DatabaseDetailsParentDatabaseDeployment) MarshalJSON() ([]byte, error) {
  1727  	type NoMethod DatabaseDetailsParentDatabaseDeployment
  1728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1729  }
  1730  
  1731  // DatabaseInstance: Details of a database instance.
  1732  type DatabaseInstance struct {
  1733  	// Hosts: Optional. The instance's hosts.
  1734  	Hosts []*DatabaseInstanceHost `json:"hosts,omitempty"`
  1735  	// InstanceName: The instance's name.
  1736  	InstanceName string `json:"instanceName,omitempty"`
  1737  	// Role: The instance role in the database engine.
  1738  	//
  1739  	// Possible values:
  1740  	//   "ROLE_UNSPECIFIED" - Unspecified.
  1741  	//   "PRIMARY" - Primary.
  1742  	//   "SECONDARY" - Secondary.
  1743  	//   "ARBITER" - Arbiter.
  1744  	Role string `json:"role,omitempty"`
  1745  	// ForceSendFields is a list of field names (e.g. "Hosts") to unconditionally
  1746  	// include in API requests. By default, fields with empty or default values are
  1747  	// omitted from API requests. See
  1748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1749  	// details.
  1750  	ForceSendFields []string `json:"-"`
  1751  	// NullFields is a list of field names (e.g. "Hosts") to include in API
  1752  	// requests with the JSON null value. By default, fields with empty values are
  1753  	// omitted from API requests. See
  1754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1755  	NullFields []string `json:"-"`
  1756  }
  1757  
  1758  func (s *DatabaseInstance) MarshalJSON() ([]byte, error) {
  1759  	type NoMethod DatabaseInstance
  1760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1761  }
  1762  
  1763  // DatabaseInstanceHost: Details of a host of a database instance.
  1764  type DatabaseInstanceHost struct {
  1765  	// HostName: Optional. The host name of the host.
  1766  	HostName string `json:"hostName,omitempty"`
  1767  	// ForceSendFields is a list of field names (e.g. "HostName") to
  1768  	// unconditionally include in API requests. By default, fields with empty or
  1769  	// default values are omitted from API requests. See
  1770  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1771  	// details.
  1772  	ForceSendFields []string `json:"-"`
  1773  	// NullFields is a list of field names (e.g. "HostName") to include in API
  1774  	// requests with the JSON null value. By default, fields with empty values are
  1775  	// omitted from API requests. See
  1776  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1777  	NullFields []string `json:"-"`
  1778  }
  1779  
  1780  func (s *DatabaseInstanceHost) MarshalJSON() ([]byte, error) {
  1781  	type NoMethod DatabaseInstanceHost
  1782  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1783  }
  1784  
  1785  // DatabaseObjects: Details of a group of database objects.
  1786  type DatabaseObjects struct {
  1787  	// Category: The category of the objects.
  1788  	//
  1789  	// Possible values:
  1790  	//   "CATEGORY_UNSPECIFIED" - Unspecified type.
  1791  	//   "TABLE" - Table.
  1792  	//   "INDEX" - Index.
  1793  	//   "CONSTRAINTS" - Constraints.
  1794  	//   "VIEWS" - Views.
  1795  	//   "SOURCE_CODE" - Source code, e.g. procedures.
  1796  	//   "OTHER" - Uncategorized objects.
  1797  	Category string `json:"category,omitempty"`
  1798  	// Count: The number of objects.
  1799  	Count int64 `json:"count,omitempty,string"`
  1800  	// ForceSendFields is a list of field names (e.g. "Category") to
  1801  	// unconditionally include in API requests. By default, fields with empty or
  1802  	// default values are omitted from API requests. See
  1803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1804  	// details.
  1805  	ForceSendFields []string `json:"-"`
  1806  	// NullFields is a list of field names (e.g. "Category") to include in API
  1807  	// requests with the JSON null value. By default, fields with empty values are
  1808  	// omitted from API requests. See
  1809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1810  	NullFields []string `json:"-"`
  1811  }
  1812  
  1813  func (s *DatabaseObjects) MarshalJSON() ([]byte, error) {
  1814  	type NoMethod DatabaseObjects
  1815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1816  }
  1817  
  1818  // DatabasePreferences: DatabasePreferences enables you to create sets of
  1819  // preferences for your migrated databases.
  1820  type DatabasePreferences struct {
  1821  	// MssqlToCloudSqlForSqlServerPreferences: Optional. Preferences for target SQL
  1822  	// Server on Cloud SQL when migrating from source Microsoft SQL server.
  1823  	MssqlToCloudSqlForSqlServerPreferences *DatabasePreferencesCloudSqlSqlServer `json:"mssqlToCloudSqlForSqlServerPreferences,omitempty"`
  1824  	// MysqlToCloudSqlForMysqlPreferences: Optional. Preferences for target MySQL
  1825  	// on Cloud SQL when migrating from source MySQL.
  1826  	MysqlToCloudSqlForMysqlPreferences *DatabasePreferencesCloudSqlMySql `json:"mysqlToCloudSqlForMysqlPreferences,omitempty"`
  1827  	// PostgresqlToCloudSqlForPostgresqlPreferences: Optional. Preferences for
  1828  	// target PostgreSQL on Cloud SQL when migrating from source PostgreSQL.
  1829  	PostgresqlToCloudSqlForPostgresqlPreferences *DatabasePreferencesCloudSqlPostgreSql `json:"postgresqlToCloudSqlForPostgresqlPreferences,omitempty"`
  1830  	// ForceSendFields is a list of field names (e.g.
  1831  	// "MssqlToCloudSqlForSqlServerPreferences") to unconditionally include in API
  1832  	// requests. By default, fields with empty or default values are omitted from
  1833  	// API requests. See
  1834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1835  	// details.
  1836  	ForceSendFields []string `json:"-"`
  1837  	// NullFields is a list of field names (e.g.
  1838  	// "MssqlToCloudSqlForSqlServerPreferences") to include in API requests with
  1839  	// the JSON null value. By default, fields with empty values are omitted from
  1840  	// API requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields
  1841  	// for more details.
  1842  	NullFields []string `json:"-"`
  1843  }
  1844  
  1845  func (s *DatabasePreferences) MarshalJSON() ([]byte, error) {
  1846  	type NoMethod DatabasePreferences
  1847  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1848  }
  1849  
  1850  // DatabasePreferencesCloudSqlCommon: Preferences common to Cloud SQL
  1851  // databases.
  1852  type DatabasePreferencesCloudSqlCommon struct {
  1853  	// Backup: Optional. Preferences for database backups.
  1854  	Backup *DatabasePreferencesCloudSqlCommonBackup `json:"backup,omitempty"`
  1855  	// CommitmentPlan: Optional. Commitment plan to consider when calculating
  1856  	// costs. Only regular CUDs (not flexible) are currently available.
  1857  	//
  1858  	// Possible values:
  1859  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  1860  	//   "COMMITMENT_PLAN_NONE" - No commitment plan.
  1861  	//   "COMMITMENT_PLAN_ONE_YEAR" - 1-year regular committed use discount.
  1862  	//   "COMMITMENT_PLAN_THREE_YEARS" - 3-year regular committed use discount.
  1863  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  1864  	// Edition: Optional. Cloud SQL edition. For SQL Server, only Enterprise is
  1865  	// available.
  1866  	//
  1867  	// Possible values:
  1868  	//   "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition.
  1869  	//   "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of Cloud
  1870  	// SQL and is suitable for applications requiring a balance of performance,
  1871  	// availability, and cost.
  1872  	//   "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance and
  1873  	// availability to run applications requiring the highest level of availability
  1874  	// and performance in addition to the capabilities of the Cloud SQL Enterprise
  1875  	// edition. Note: SQL Server is not available in Enterprise Plus edition. For
  1876  	// SQL Server, Enterprise will always be recommended.
  1877  	Edition string `json:"edition,omitempty"`
  1878  	// PersistentDiskType: Optional. Persistent disk type to use. If unspecified, a
  1879  	// disk type is recommended based on available usage data. For SQL Server, only
  1880  	// SSD is available. For MySQL and PostgreSQL, only STANDARD (HDD) and SSD
  1881  	// types are available.
  1882  	//
  1883  	// Possible values:
  1884  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  1885  	// Selecting this value allows the system to use any disk type according to
  1886  	// reported usage. This a good value to start with.
  1887  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  1888  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  1889  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  1890  	PersistentDiskType string `json:"persistentDiskType,omitempty"`
  1891  	// SizingOptimizationStrategy: Optional. Sizing optimization strategy of the
  1892  	// database. Currently supported for Cloud SQL are just two values:
  1893  	// SIZING_OPTIMIZATION_STRATEGY_MODERATE and
  1894  	// SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE.
  1895  	// SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED will behave like
  1896  	// SIZING_OPTIMIZATION_STRATEGY_MODERATE.
  1897  	//
  1898  	// Possible values:
  1899  	//   "SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED" - Unspecified (default value).
  1900  	//   "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE" - No optimization applied.
  1901  	// Virtual machine sizing matches as closely as possible the machine shape on
  1902  	// the source site, not considering any actual performance data.
  1903  	//   "SIZING_OPTIMIZATION_STRATEGY_MODERATE" - Virtual machine sizing will
  1904  	// match the reported usage and shape, with some slack. This a good value to
  1905  	// start with.
  1906  	//   "SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE" - Virtual machine sizing will
  1907  	// match the reported usage, with little slack. Using this option can help
  1908  	// reduce costs.
  1909  	//   "SIZING_OPTIMIZATION_STRATEGY_CUSTOM" - Virtual machine sizing will be
  1910  	// determined by custom parameters. While not supported in the v1 API, this
  1911  	// value is converted to UNSPECIFIED in conversions to the v1 API.
  1912  	SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"`
  1913  	// ZoneAvailability: Optional. Preferred zone availability.
  1914  	//
  1915  	// Possible values:
  1916  	//   "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud SQL zone
  1917  	// availability.
  1918  	//   "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from only
  1919  	// one zone. In case of outage, no failover. Not recommended for production.
  1920  	//   "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve data from
  1921  	// multiple zones in a region. Highly available. Automatic failover to another
  1922  	// zone within your selected region. Recommended for production instances.
  1923  	// Increases cost.
  1924  	ZoneAvailability string `json:"zoneAvailability,omitempty"`
  1925  	// ForceSendFields is a list of field names (e.g. "Backup") to unconditionally
  1926  	// include in API requests. By default, fields with empty or default values are
  1927  	// omitted from API requests. See
  1928  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1929  	// details.
  1930  	ForceSendFields []string `json:"-"`
  1931  	// NullFields is a list of field names (e.g. "Backup") to include in API
  1932  	// requests with the JSON null value. By default, fields with empty values are
  1933  	// omitted from API requests. See
  1934  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1935  	NullFields []string `json:"-"`
  1936  }
  1937  
  1938  func (s *DatabasePreferencesCloudSqlCommon) MarshalJSON() ([]byte, error) {
  1939  	type NoMethod DatabasePreferencesCloudSqlCommon
  1940  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1941  }
  1942  
  1943  // DatabasePreferencesCloudSqlCommonBackup: Preferences for database backups.
  1944  type DatabasePreferencesCloudSqlCommonBackup struct {
  1945  	// BackupMode: Optional. Mode of automated backups.
  1946  	//
  1947  	// Possible values:
  1948  	//   "BACKUP_MODE_UNSPECIFIED" - An unspecified database backup mode.
  1949  	//   "BACKUP_MODE_DISABLED" - Automatic backups disabled, no additional charges
  1950  	// for storage.
  1951  	//   "BACKUP_MODE_ENABLED" - Automatic backups enabled, there will be
  1952  	// additional charges for storage.
  1953  	BackupMode string `json:"backupMode,omitempty"`
  1954  	// ForceSendFields is a list of field names (e.g. "BackupMode") to
  1955  	// unconditionally include in API requests. By default, fields with empty or
  1956  	// default values are omitted from API requests. See
  1957  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1958  	// details.
  1959  	ForceSendFields []string `json:"-"`
  1960  	// NullFields is a list of field names (e.g. "BackupMode") to include in API
  1961  	// requests with the JSON null value. By default, fields with empty values are
  1962  	// omitted from API requests. See
  1963  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1964  	NullFields []string `json:"-"`
  1965  }
  1966  
  1967  func (s *DatabasePreferencesCloudSqlCommonBackup) MarshalJSON() ([]byte, error) {
  1968  	type NoMethod DatabasePreferencesCloudSqlCommonBackup
  1969  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1970  }
  1971  
  1972  // DatabasePreferencesCloudSqlMySql: Preferences for MySQL on Cloud SQL.
  1973  type DatabasePreferencesCloudSqlMySql struct {
  1974  	// Common: Optional. Preferences to Cloud SQL databases.
  1975  	Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"`
  1976  	// ForceSendFields is a list of field names (e.g. "Common") to unconditionally
  1977  	// include in API requests. By default, fields with empty or default values are
  1978  	// omitted from API requests. See
  1979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1980  	// details.
  1981  	ForceSendFields []string `json:"-"`
  1982  	// NullFields is a list of field names (e.g. "Common") to include in API
  1983  	// requests with the JSON null value. By default, fields with empty values are
  1984  	// omitted from API requests. See
  1985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1986  	NullFields []string `json:"-"`
  1987  }
  1988  
  1989  func (s *DatabasePreferencesCloudSqlMySql) MarshalJSON() ([]byte, error) {
  1990  	type NoMethod DatabasePreferencesCloudSqlMySql
  1991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1992  }
  1993  
  1994  // DatabasePreferencesCloudSqlPostgreSql: Preferences for PostgreSQL on Cloud
  1995  // SQL.
  1996  type DatabasePreferencesCloudSqlPostgreSql struct {
  1997  	// Common: Optional. Preferences to Cloud SQL databases.
  1998  	Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"`
  1999  	// ForceSendFields is a list of field names (e.g. "Common") to unconditionally
  2000  	// include in API requests. By default, fields with empty or default values are
  2001  	// omitted from API requests. See
  2002  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2003  	// details.
  2004  	ForceSendFields []string `json:"-"`
  2005  	// NullFields is a list of field names (e.g. "Common") to include in API
  2006  	// requests with the JSON null value. By default, fields with empty values are
  2007  	// omitted from API requests. See
  2008  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2009  	NullFields []string `json:"-"`
  2010  }
  2011  
  2012  func (s *DatabasePreferencesCloudSqlPostgreSql) MarshalJSON() ([]byte, error) {
  2013  	type NoMethod DatabasePreferencesCloudSqlPostgreSql
  2014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2015  }
  2016  
  2017  // DatabasePreferencesCloudSqlSqlServer: Preferences for SQL Server on Cloud
  2018  // SQL.
  2019  type DatabasePreferencesCloudSqlSqlServer struct {
  2020  	// Common: Optional. Preferences to Cloud SQL databases.
  2021  	Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"`
  2022  	// Multithreading: Optional. Preferences for multithreading support.
  2023  	//
  2024  	// Possible values:
  2025  	//   "MULTITHREADING_UNSPECIFIED" - Same as MULTITHREADING_AUTO_SELECT.
  2026  	//   "MULTITHREADING_DISABLED" - No multithreading support.
  2027  	//   "MULTITHREADING_ENABLED" - Allow multithreading support.
  2028  	//   "MULTITHREADING_AUTO_SELECT" - Choose to enable/disable multithreading
  2029  	// according to which is lowest cost for your workload.
  2030  	Multithreading string `json:"multithreading,omitempty"`
  2031  	// VersionType: Optional. Edition of Microsoft SQL version that is used on a
  2032  	// Cloud SQL for SQL server instance.
  2033  	//
  2034  	// Possible values:
  2035  	//   "VERSION_TYPE_UNSPECIFIED" - Unspecified SQL Server version type.
  2036  	//   "VERSION_TYPE_AUTO" - Version will be deduced from the source asset.
  2037  	//   "VERSION_TYPE_EXPRESS" - Version will be one of "Express" versions.
  2038  	//   "VERSION_TYPE_WEB" - Version will be one of "Web" versions.
  2039  	//   "VERSION_TYPE_STANDARD" - Version will be one of "Standard" versions.
  2040  	//   "VERSION_TYPE_ENTERPRISE" - Version will be one of "Enterprise" versions.
  2041  	VersionType string `json:"versionType,omitempty"`
  2042  	// ForceSendFields is a list of field names (e.g. "Common") to unconditionally
  2043  	// include in API requests. By default, fields with empty or default values are
  2044  	// omitted from API requests. See
  2045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2046  	// details.
  2047  	ForceSendFields []string `json:"-"`
  2048  	// NullFields is a list of field names (e.g. "Common") to include in API
  2049  	// requests with the JSON null value. By default, fields with empty values are
  2050  	// omitted from API requests. See
  2051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2052  	NullFields []string `json:"-"`
  2053  }
  2054  
  2055  func (s *DatabasePreferencesCloudSqlSqlServer) MarshalJSON() ([]byte, error) {
  2056  	type NoMethod DatabasePreferencesCloudSqlSqlServer
  2057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2058  }
  2059  
  2060  // DatabaseSchema: Details of a database schema.
  2061  type DatabaseSchema struct {
  2062  	// Mysql: Details of a Mysql schema.
  2063  	Mysql *MySqlSchemaDetails `json:"mysql,omitempty"`
  2064  	// Objects: List of details of objects by category.
  2065  	Objects []*DatabaseObjects `json:"objects,omitempty"`
  2066  	// Postgresql: Details of a PostgreSql schema.
  2067  	Postgresql *PostgreSqlSchemaDetails `json:"postgresql,omitempty"`
  2068  	// SchemaName: The name of the schema.
  2069  	SchemaName string `json:"schemaName,omitempty"`
  2070  	// SqlServer: Details of a SqlServer schema.
  2071  	SqlServer *SqlServerSchemaDetails `json:"sqlServer,omitempty"`
  2072  	// TablesSizeBytes: The total size of tables in bytes.
  2073  	TablesSizeBytes int64 `json:"tablesSizeBytes,omitempty,string"`
  2074  	// ForceSendFields is a list of field names (e.g. "Mysql") to unconditionally
  2075  	// include in API requests. By default, fields with empty or default values are
  2076  	// omitted from API requests. See
  2077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2078  	// details.
  2079  	ForceSendFields []string `json:"-"`
  2080  	// NullFields is a list of field names (e.g. "Mysql") to include in API
  2081  	// requests with the JSON null value. By default, fields with empty values are
  2082  	// omitted from API requests. See
  2083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2084  	NullFields []string `json:"-"`
  2085  }
  2086  
  2087  func (s *DatabaseSchema) MarshalJSON() ([]byte, error) {
  2088  	type NoMethod DatabaseSchema
  2089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2090  }
  2091  
  2092  // Date: Represents a whole or partial calendar date, such as a birthday. The
  2093  // time of day and time zone are either specified elsewhere or are
  2094  // insignificant. The date is relative to the Gregorian Calendar. This can
  2095  // represent one of the following: * A full date, with non-zero year, month,
  2096  // and day values. * A month and day, with a zero year (for example, an
  2097  // anniversary). * A year on its own, with a zero month and a zero day. * A
  2098  // year and month, with a zero day (for example, a credit card expiration
  2099  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  2100  // google.protobuf.Timestamp
  2101  type Date struct {
  2102  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  2103  	// or 0 to specify a year by itself or a year and month where the day isn't
  2104  	// significant.
  2105  	Day int64 `json:"day,omitempty"`
  2106  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  2107  	// a month and day.
  2108  	Month int64 `json:"month,omitempty"`
  2109  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  2110  	// without a year.
  2111  	Year int64 `json:"year,omitempty"`
  2112  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  2113  	// include in API requests. By default, fields with empty or default values are
  2114  	// omitted from API requests. See
  2115  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2116  	// details.
  2117  	ForceSendFields []string `json:"-"`
  2118  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  2119  	// with the JSON null value. By default, fields with empty values are omitted
  2120  	// from API requests. See
  2121  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2122  	NullFields []string `json:"-"`
  2123  }
  2124  
  2125  func (s *Date) MarshalJSON() ([]byte, error) {
  2126  	type NoMethod Date
  2127  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2128  }
  2129  
  2130  // DateTime: Represents civil time (or occasionally physical time). This type
  2131  // can represent a civil time in one of a few possible ways: * When utc_offset
  2132  // is set and time_zone is unset: a civil time on a calendar day with a
  2133  // particular offset from UTC. * When time_zone is set and utc_offset is unset:
  2134  // a civil time on a calendar day in a particular time zone. * When neither
  2135  // time_zone nor utc_offset is set: a civil time on a calendar day in local
  2136  // time. The date is relative to the Proleptic Gregorian Calendar. If year,
  2137  // month, or day are 0, the DateTime is considered not to have a specific year,
  2138  // month, or day respectively. This type may also be used to represent a
  2139  // physical time if all the date and time fields are set and either case of the
  2140  // `time_offset` oneof is set. Consider using `Timestamp` message for physical
  2141  // time instead. If your use case also would like to store the user's timezone,
  2142  // that can be done in another field. This type is more flexible than some
  2143  // applications may want. Make sure to document and validate your application's
  2144  // limitations.
  2145  type DateTime struct {
  2146  	// Day: Optional. Day of month. Must be from 1 to 31 and valid for the year and
  2147  	// month, or 0 if specifying a datetime without a day.
  2148  	Day int64 `json:"day,omitempty"`
  2149  	// Hours: Optional. Hours of day in 24 hour format. Should be from 0 to 23,
  2150  	// defaults to 0 (midnight). An API may choose to allow the value "24:00:00"
  2151  	// for scenarios like business closing time.
  2152  	Hours int64 `json:"hours,omitempty"`
  2153  	// Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, defaults to
  2154  	// 0.
  2155  	Minutes int64 `json:"minutes,omitempty"`
  2156  	// Month: Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
  2157  	// datetime without a month.
  2158  	Month int64 `json:"month,omitempty"`
  2159  	// Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 to
  2160  	// 999,999,999, defaults to 0.
  2161  	Nanos int64 `json:"nanos,omitempty"`
  2162  	// Seconds: Optional. Seconds of minutes of the time. Must normally be from 0
  2163  	// to 59, defaults to 0. An API may allow the value 60 if it allows
  2164  	// leap-seconds.
  2165  	Seconds int64 `json:"seconds,omitempty"`
  2166  	// TimeZone: Time zone.
  2167  	TimeZone *TimeZone `json:"timeZone,omitempty"`
  2168  	// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and +18
  2169  	// hours. For example, a UTC offset of -4:00 would be represented as { seconds:
  2170  	// -14400 }.
  2171  	UtcOffset string `json:"utcOffset,omitempty"`
  2172  	// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
  2173  	// datetime without a year.
  2174  	Year int64 `json:"year,omitempty"`
  2175  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  2176  	// include in API requests. By default, fields with empty or default values are
  2177  	// omitted from API requests. See
  2178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2179  	// details.
  2180  	ForceSendFields []string `json:"-"`
  2181  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  2182  	// with the JSON null value. By default, fields with empty values are omitted
  2183  	// from API requests. See
  2184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2185  	NullFields []string `json:"-"`
  2186  }
  2187  
  2188  func (s *DateTime) MarshalJSON() ([]byte, error) {
  2189  	type NoMethod DateTime
  2190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2191  }
  2192  
  2193  // DetectedSoftware: Information about software detected on an asset.
  2194  type DetectedSoftware struct {
  2195  	// SoftwareFamily: Output only. Software family of the detected software, e.g.
  2196  	// Database, SAP family.
  2197  	SoftwareFamily string `json:"softwareFamily,omitempty"`
  2198  	// SoftwareName: Output only. Software's name.
  2199  	SoftwareName string `json:"softwareName,omitempty"`
  2200  	// ForceSendFields is a list of field names (e.g. "SoftwareFamily") to
  2201  	// unconditionally include in API requests. By default, fields with empty or
  2202  	// default values are omitted from API requests. See
  2203  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2204  	// details.
  2205  	ForceSendFields []string `json:"-"`
  2206  	// NullFields is a list of field names (e.g. "SoftwareFamily") to include in
  2207  	// API requests with the JSON null value. By default, fields with empty values
  2208  	// are omitted from API requests. See
  2209  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2210  	NullFields []string `json:"-"`
  2211  }
  2212  
  2213  func (s *DetectedSoftware) MarshalJSON() ([]byte, error) {
  2214  	type NoMethod DetectedSoftware
  2215  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2216  }
  2217  
  2218  // DiscoveryClient: Represents an installed Migration Center Discovery Client
  2219  // instance.
  2220  type DiscoveryClient struct {
  2221  	// CreateTime: Output only. Time when the discovery client was first created.
  2222  	CreateTime string `json:"createTime,omitempty"`
  2223  	// Description: Optional. Free text description. Maximum length is 1000
  2224  	// characters.
  2225  	Description string `json:"description,omitempty"`
  2226  	// DisplayName: Optional. Free text display name. Maximum length is 63
  2227  	// characters.
  2228  	DisplayName string `json:"displayName,omitempty"`
  2229  	// Errors: Output only. Errors affecting client functionality.
  2230  	Errors []*Status `json:"errors,omitempty"`
  2231  	// ExpireTime: Optional. Client expiration time in UTC. If specified, the
  2232  	// backend will not accept new frames after this time.
  2233  	ExpireTime string `json:"expireTime,omitempty"`
  2234  	// HeartbeatTime: Output only. Last heartbeat time. Healthy clients are
  2235  	// expected to send heartbeats regularly (normally every few minutes).
  2236  	HeartbeatTime string `json:"heartbeatTime,omitempty"`
  2237  	// Labels: Optional. Labels as key value pairs.
  2238  	Labels map[string]string `json:"labels,omitempty"`
  2239  	// Name: Output only. Identifier. Full name of this discovery client.
  2240  	Name string `json:"name,omitempty"`
  2241  	// ServiceAccount: Required. Service account used by the discovery client for
  2242  	// various operation.
  2243  	ServiceAccount string `json:"serviceAccount,omitempty"`
  2244  	// SignalsEndpoint: Output only. This field is intended for internal use.
  2245  	SignalsEndpoint string `json:"signalsEndpoint,omitempty"`
  2246  	// Source: Required. Full name of the source object associated with this
  2247  	// discovery client.
  2248  	Source string `json:"source,omitempty"`
  2249  	// State: Output only. Current state of the discovery client.
  2250  	//
  2251  	// Possible values:
  2252  	//   "STATE_UNSPECIFIED" - Client state is unspecified.
  2253  	//   "ACTIVE" - Client is active.
  2254  	//   "OFFLINE" - Client is offline.
  2255  	//   "DEGRADED" - Client is in a degraded state. See the `errors` field for
  2256  	// details.
  2257  	//   "EXPIRED" - Client has expired. See the expire_time field for the expire
  2258  	// time.
  2259  	State string `json:"state,omitempty"`
  2260  	// Ttl: Optional. Input only. Client time-to-live. If specified, the backend
  2261  	// will not accept new frames after this time. This field is input only. The
  2262  	// derived expiration time is provided as output through the `expire_time`
  2263  	// field.
  2264  	Ttl string `json:"ttl,omitempty"`
  2265  	// UpdateTime: Output only. Time when the discovery client was last updated.
  2266  	// This value is not updated by heartbeats, to view the last heartbeat time
  2267  	// please refer to the `heartbeat_time` field.
  2268  	UpdateTime string `json:"updateTime,omitempty"`
  2269  	// Version: Output only. Client version, as reported in recent heartbeat.
  2270  	Version string `json:"version,omitempty"`
  2271  
  2272  	// ServerResponse contains the HTTP response code and headers from the server.
  2273  	googleapi.ServerResponse `json:"-"`
  2274  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2275  	// unconditionally include in API requests. By default, fields with empty or
  2276  	// default values are omitted from API requests. See
  2277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2278  	// details.
  2279  	ForceSendFields []string `json:"-"`
  2280  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2281  	// requests with the JSON null value. By default, fields with empty values are
  2282  	// omitted from API requests. See
  2283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2284  	NullFields []string `json:"-"`
  2285  }
  2286  
  2287  func (s *DiscoveryClient) MarshalJSON() ([]byte, error) {
  2288  	type NoMethod DiscoveryClient
  2289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2290  }
  2291  
  2292  // DiskEntry: Single disk entry.
  2293  type DiskEntry struct {
  2294  	// DiskLabel: Disk label.
  2295  	DiskLabel string `json:"diskLabel,omitempty"`
  2296  	// DiskLabelType: Disk label type (e.g. BIOS/GPT)
  2297  	DiskLabelType string `json:"diskLabelType,omitempty"`
  2298  	// HwAddress: Disk hardware address (e.g. 0:1 for SCSI).
  2299  	HwAddress string `json:"hwAddress,omitempty"`
  2300  	// InterfaceType: Disks interface type (e.g. SATA/SCSI)
  2301  	InterfaceType string `json:"interfaceType,omitempty"`
  2302  	// Partitions: Partition layout.
  2303  	Partitions *DiskPartitionList `json:"partitions,omitempty"`
  2304  	// Status: Disk status (e.g. online).
  2305  	Status string `json:"status,omitempty"`
  2306  	// TotalCapacityBytes: Disk capacity.
  2307  	TotalCapacityBytes int64 `json:"totalCapacityBytes,omitempty,string"`
  2308  	// TotalFreeBytes: Disk free space.
  2309  	TotalFreeBytes int64 `json:"totalFreeBytes,omitempty,string"`
  2310  	// VmwareConfig: VMware disk details.
  2311  	VmwareConfig *VmwareDiskConfig `json:"vmwareConfig,omitempty"`
  2312  	// ForceSendFields is a list of field names (e.g. "DiskLabel") to
  2313  	// unconditionally include in API requests. By default, fields with empty or
  2314  	// default values are omitted from API requests. See
  2315  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2316  	// details.
  2317  	ForceSendFields []string `json:"-"`
  2318  	// NullFields is a list of field names (e.g. "DiskLabel") to include in API
  2319  	// requests with the JSON null value. By default, fields with empty values are
  2320  	// omitted from API requests. See
  2321  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2322  	NullFields []string `json:"-"`
  2323  }
  2324  
  2325  func (s *DiskEntry) MarshalJSON() ([]byte, error) {
  2326  	type NoMethod DiskEntry
  2327  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2328  }
  2329  
  2330  // DiskEntryList: VM disks.
  2331  type DiskEntryList struct {
  2332  	// Entries: Disk entries.
  2333  	Entries []*DiskEntry `json:"entries,omitempty"`
  2334  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2335  	// include in API requests. By default, fields with empty or default values are
  2336  	// omitted from API requests. See
  2337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2338  	// details.
  2339  	ForceSendFields []string `json:"-"`
  2340  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2341  	// requests with the JSON null value. By default, fields with empty values are
  2342  	// omitted from API requests. See
  2343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2344  	NullFields []string `json:"-"`
  2345  }
  2346  
  2347  func (s *DiskEntryList) MarshalJSON() ([]byte, error) {
  2348  	type NoMethod DiskEntryList
  2349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2350  }
  2351  
  2352  // DiskPartition: Disk Partition details.
  2353  type DiskPartition struct {
  2354  	// CapacityBytes: Partition capacity.
  2355  	CapacityBytes int64 `json:"capacityBytes,omitempty,string"`
  2356  	// FileSystem: Partition file system.
  2357  	FileSystem string `json:"fileSystem,omitempty"`
  2358  	// FreeBytes: Partition free space.
  2359  	FreeBytes int64 `json:"freeBytes,omitempty,string"`
  2360  	// MountPoint: Mount pount (Linux/Windows) or drive letter (Windows).
  2361  	MountPoint string `json:"mountPoint,omitempty"`
  2362  	// SubPartitions: Sub-partitions.
  2363  	SubPartitions *DiskPartitionList `json:"subPartitions,omitempty"`
  2364  	// Type: Partition type (e.g. BIOS boot).
  2365  	Type string `json:"type,omitempty"`
  2366  	// Uuid: Partition UUID.
  2367  	Uuid string `json:"uuid,omitempty"`
  2368  	// ForceSendFields is a list of field names (e.g. "CapacityBytes") to
  2369  	// unconditionally include in API requests. By default, fields with empty or
  2370  	// default values are omitted from API requests. See
  2371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2372  	// details.
  2373  	ForceSendFields []string `json:"-"`
  2374  	// NullFields is a list of field names (e.g. "CapacityBytes") to include in API
  2375  	// requests with the JSON null value. By default, fields with empty values are
  2376  	// omitted from API requests. See
  2377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2378  	NullFields []string `json:"-"`
  2379  }
  2380  
  2381  func (s *DiskPartition) MarshalJSON() ([]byte, error) {
  2382  	type NoMethod DiskPartition
  2383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2384  }
  2385  
  2386  // DiskPartitionList: Disk partition list.
  2387  type DiskPartitionList struct {
  2388  	// Entries: Partition entries.
  2389  	Entries []*DiskPartition `json:"entries,omitempty"`
  2390  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2391  	// include in API requests. By default, fields with empty or default values are
  2392  	// omitted from API requests. See
  2393  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2394  	// details.
  2395  	ForceSendFields []string `json:"-"`
  2396  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2397  	// requests with the JSON null value. By default, fields with empty values are
  2398  	// omitted from API requests. See
  2399  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2400  	NullFields []string `json:"-"`
  2401  }
  2402  
  2403  func (s *DiskPartitionList) MarshalJSON() ([]byte, error) {
  2404  	type NoMethod DiskPartitionList
  2405  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2406  }
  2407  
  2408  // DiskUsageSample: Disk usage sample. Values are across all disks.
  2409  type DiskUsageSample struct {
  2410  	// AverageIops: Average IOPS sampled over a short window. Must be non-negative.
  2411  	// Must be equal to the sum of read and write if one of them is positive. if
  2412  	// both read and write are zero they are ignored.
  2413  	AverageIops float64 `json:"averageIops,omitempty"`
  2414  	// AverageReadIops: Average read IOPS sampled over a short window. Must be
  2415  	// non-negative.
  2416  	AverageReadIops float64 `json:"averageReadIops,omitempty"`
  2417  	// AverageWriteIops: Average write IOPS sampled over a short window. Must be
  2418  	// non-negative.
  2419  	AverageWriteIops float64 `json:"averageWriteIops,omitempty"`
  2420  	// ForceSendFields is a list of field names (e.g. "AverageIops") to
  2421  	// unconditionally include in API requests. By default, fields with empty or
  2422  	// default values are omitted from API requests. See
  2423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2424  	// details.
  2425  	ForceSendFields []string `json:"-"`
  2426  	// NullFields is a list of field names (e.g. "AverageIops") to include in API
  2427  	// requests with the JSON null value. By default, fields with empty values are
  2428  	// omitted from API requests. See
  2429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2430  	NullFields []string `json:"-"`
  2431  }
  2432  
  2433  func (s *DiskUsageSample) MarshalJSON() ([]byte, error) {
  2434  	type NoMethod DiskUsageSample
  2435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2436  }
  2437  
  2438  func (s *DiskUsageSample) UnmarshalJSON(data []byte) error {
  2439  	type NoMethod DiskUsageSample
  2440  	var s1 struct {
  2441  		AverageIops      gensupport.JSONFloat64 `json:"averageIops"`
  2442  		AverageReadIops  gensupport.JSONFloat64 `json:"averageReadIops"`
  2443  		AverageWriteIops gensupport.JSONFloat64 `json:"averageWriteIops"`
  2444  		*NoMethod
  2445  	}
  2446  	s1.NoMethod = (*NoMethod)(s)
  2447  	if err := json.Unmarshal(data, &s1); err != nil {
  2448  		return err
  2449  	}
  2450  	s.AverageIops = float64(s1.AverageIops)
  2451  	s.AverageReadIops = float64(s1.AverageReadIops)
  2452  	s.AverageWriteIops = float64(s1.AverageWriteIops)
  2453  	return nil
  2454  }
  2455  
  2456  // Empty: A generic empty message that you can re-use to avoid defining
  2457  // duplicated empty messages in your APIs. A typical example is to use it as
  2458  // the request or the response type of an API method. For instance: service Foo
  2459  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  2460  type Empty struct {
  2461  	// ServerResponse contains the HTTP response code and headers from the server.
  2462  	googleapi.ServerResponse `json:"-"`
  2463  }
  2464  
  2465  // ErrorFrame: Message representing a frame which failed to be processed due to
  2466  // an error.
  2467  type ErrorFrame struct {
  2468  	// IngestionTime: Output only. Frame ingestion time.
  2469  	IngestionTime string `json:"ingestionTime,omitempty"`
  2470  	// Name: Output only. The identifier of the ErrorFrame.
  2471  	Name string `json:"name,omitempty"`
  2472  	// OriginalFrame: Output only. The frame that was originally reported.
  2473  	OriginalFrame *AssetFrame `json:"originalFrame,omitempty"`
  2474  	// Violations: Output only. All the violations that were detected for the
  2475  	// frame.
  2476  	Violations []*FrameViolationEntry `json:"violations,omitempty"`
  2477  
  2478  	// ServerResponse contains the HTTP response code and headers from the server.
  2479  	googleapi.ServerResponse `json:"-"`
  2480  	// ForceSendFields is a list of field names (e.g. "IngestionTime") to
  2481  	// unconditionally include in API requests. By default, fields with empty or
  2482  	// default values are omitted from API requests. See
  2483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2484  	// details.
  2485  	ForceSendFields []string `json:"-"`
  2486  	// NullFields is a list of field names (e.g. "IngestionTime") to include in API
  2487  	// requests with the JSON null value. By default, fields with empty values are
  2488  	// omitted from API requests. See
  2489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2490  	NullFields []string `json:"-"`
  2491  }
  2492  
  2493  func (s *ErrorFrame) MarshalJSON() ([]byte, error) {
  2494  	type NoMethod ErrorFrame
  2495  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2496  }
  2497  
  2498  // ExecutionReport: A resource that reports result of the import job execution.
  2499  type ExecutionReport struct {
  2500  	// ExecutionErrors: Validation errors encountered during the execution of the
  2501  	// import job.
  2502  	ExecutionErrors *ValidationReport `json:"executionErrors,omitempty"`
  2503  	// FramesReported: Total number of asset frames reported for the import job.
  2504  	FramesReported int64 `json:"framesReported,omitempty"`
  2505  	// JobErrors: List of job-level errors. Deprecated, use the job errors under
  2506  	// execution_errors instead.
  2507  	JobErrors []*ImportError `json:"jobErrors,omitempty"`
  2508  	// TotalRowsCount: Total number of rows in the import job.
  2509  	TotalRowsCount int64 `json:"totalRowsCount,omitempty"`
  2510  	// ForceSendFields is a list of field names (e.g. "ExecutionErrors") to
  2511  	// unconditionally include in API requests. By default, fields with empty or
  2512  	// default values are omitted from API requests. See
  2513  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2514  	// details.
  2515  	ForceSendFields []string `json:"-"`
  2516  	// NullFields is a list of field names (e.g. "ExecutionErrors") to include in
  2517  	// API requests with the JSON null value. By default, fields with empty values
  2518  	// are omitted from API requests. See
  2519  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2520  	NullFields []string `json:"-"`
  2521  }
  2522  
  2523  func (s *ExecutionReport) MarshalJSON() ([]byte, error) {
  2524  	type NoMethod ExecutionReport
  2525  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2526  }
  2527  
  2528  // FileValidationReport: A resource that aggregates the validation errors found
  2529  // in an import job file.
  2530  type FileValidationReport struct {
  2531  	// FileErrors: List of file level errors.
  2532  	FileErrors []*ImportError `json:"fileErrors,omitempty"`
  2533  	// FileName: The name of the file.
  2534  	FileName string `json:"fileName,omitempty"`
  2535  	// PartialReport: Flag indicating that processing was aborted due to maximum
  2536  	// number of errors.
  2537  	PartialReport bool `json:"partialReport,omitempty"`
  2538  	// RowErrors: Partial list of rows that encountered validation error.
  2539  	RowErrors []*ImportRowError `json:"rowErrors,omitempty"`
  2540  	// ForceSendFields is a list of field names (e.g. "FileErrors") to
  2541  	// unconditionally include in API requests. By default, fields with empty or
  2542  	// default values are omitted from API requests. See
  2543  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2544  	// details.
  2545  	ForceSendFields []string `json:"-"`
  2546  	// NullFields is a list of field names (e.g. "FileErrors") to include in API
  2547  	// requests with the JSON null value. By default, fields with empty values are
  2548  	// omitted from API requests. See
  2549  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2550  	NullFields []string `json:"-"`
  2551  }
  2552  
  2553  func (s *FileValidationReport) MarshalJSON() ([]byte, error) {
  2554  	type NoMethod FileValidationReport
  2555  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2556  }
  2557  
  2558  // FitDescriptor: Describes the fit level of an asset for migration to a
  2559  // specific target.
  2560  type FitDescriptor struct {
  2561  	// FitLevel: Fit level.
  2562  	//
  2563  	// Possible values:
  2564  	//   "FIT_LEVEL_UNSPECIFIED" - Not enough information.
  2565  	//   "FIT" - Fit.
  2566  	//   "NO_FIT" - No Fit.
  2567  	//   "REQUIRES_EFFORT" - Fit with effort.
  2568  	FitLevel string `json:"fitLevel,omitempty"`
  2569  	// ForceSendFields is a list of field names (e.g. "FitLevel") to
  2570  	// unconditionally include in API requests. By default, fields with empty or
  2571  	// default values are omitted from API requests. See
  2572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2573  	// details.
  2574  	ForceSendFields []string `json:"-"`
  2575  	// NullFields is a list of field names (e.g. "FitLevel") to include in API
  2576  	// requests with the JSON null value. By default, fields with empty values are
  2577  	// omitted from API requests. See
  2578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2579  	NullFields []string `json:"-"`
  2580  }
  2581  
  2582  func (s *FitDescriptor) MarshalJSON() ([]byte, error) {
  2583  	type NoMethod FitDescriptor
  2584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2585  }
  2586  
  2587  // FrameViolationEntry: A resource that contains a single violation of a
  2588  // reported `AssetFrame` resource.
  2589  type FrameViolationEntry struct {
  2590  	// Field: The field of the original frame where the violation occurred.
  2591  	Field string `json:"field,omitempty"`
  2592  	// Violation: A message describing the violation.
  2593  	Violation string `json:"violation,omitempty"`
  2594  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  2595  	// include in API requests. By default, fields with empty or default values are
  2596  	// omitted from API requests. See
  2597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2598  	// details.
  2599  	ForceSendFields []string `json:"-"`
  2600  	// NullFields is a list of field names (e.g. "Field") to include in API
  2601  	// requests with the JSON null value. By default, fields with empty values are
  2602  	// omitted from API requests. See
  2603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2604  	NullFields []string `json:"-"`
  2605  }
  2606  
  2607  func (s *FrameViolationEntry) MarshalJSON() ([]byte, error) {
  2608  	type NoMethod FrameViolationEntry
  2609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2610  }
  2611  
  2612  // Frames: Collection of frame data.
  2613  type Frames struct {
  2614  	// FramesData: A repeated field of asset data.
  2615  	FramesData []*AssetFrame `json:"framesData,omitempty"`
  2616  	// ForceSendFields is a list of field names (e.g. "FramesData") to
  2617  	// unconditionally include in API requests. By default, fields with empty or
  2618  	// default values are omitted from API requests. See
  2619  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2620  	// details.
  2621  	ForceSendFields []string `json:"-"`
  2622  	// NullFields is a list of field names (e.g. "FramesData") to include in API
  2623  	// requests with the JSON null value. By default, fields with empty values are
  2624  	// omitted from API requests. See
  2625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2626  	NullFields []string `json:"-"`
  2627  }
  2628  
  2629  func (s *Frames) MarshalJSON() ([]byte, error) {
  2630  	type NoMethod Frames
  2631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2632  }
  2633  
  2634  // FstabEntry: Single fstab entry.
  2635  type FstabEntry struct {
  2636  	// File: The mount point for the filesystem.
  2637  	File string `json:"file,omitempty"`
  2638  	// Freq: Used by dump to determine which filesystems need to be dumped.
  2639  	Freq int64 `json:"freq,omitempty"`
  2640  	// Mntops: Mount options associated with the filesystem.
  2641  	Mntops string `json:"mntops,omitempty"`
  2642  	// Passno: Used by the fsck(8) program to determine the order in which
  2643  	// filesystem checks are done at reboot time.
  2644  	Passno int64 `json:"passno,omitempty"`
  2645  	// Spec: The block special device or remote filesystem to be mounted.
  2646  	Spec string `json:"spec,omitempty"`
  2647  	// Vfstype: The type of the filesystem.
  2648  	Vfstype string `json:"vfstype,omitempty"`
  2649  	// ForceSendFields is a list of field names (e.g. "File") to unconditionally
  2650  	// include in API requests. By default, fields with empty or default values are
  2651  	// omitted from API requests. See
  2652  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2653  	// details.
  2654  	ForceSendFields []string `json:"-"`
  2655  	// NullFields is a list of field names (e.g. "File") to include in API requests
  2656  	// with the JSON null value. By default, fields with empty values are omitted
  2657  	// from API requests. See
  2658  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2659  	NullFields []string `json:"-"`
  2660  }
  2661  
  2662  func (s *FstabEntry) MarshalJSON() ([]byte, error) {
  2663  	type NoMethod FstabEntry
  2664  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2665  }
  2666  
  2667  // FstabEntryList: Fstab content.
  2668  type FstabEntryList struct {
  2669  	// Entries: Fstab entries.
  2670  	Entries []*FstabEntry `json:"entries,omitempty"`
  2671  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2672  	// include in API requests. By default, fields with empty or default values are
  2673  	// omitted from API requests. See
  2674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2675  	// details.
  2676  	ForceSendFields []string `json:"-"`
  2677  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2678  	// requests with the JSON null value. By default, fields with empty values are
  2679  	// omitted from API requests. See
  2680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2681  	NullFields []string `json:"-"`
  2682  }
  2683  
  2684  func (s *FstabEntryList) MarshalJSON() ([]byte, error) {
  2685  	type NoMethod FstabEntryList
  2686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2687  }
  2688  
  2689  // GCSPayloadInfo: A resource that represents a payload hosted on Google Cloud
  2690  // Storage.
  2691  type GCSPayloadInfo struct {
  2692  	// Format: The import job format.
  2693  	//
  2694  	// Possible values:
  2695  	//   "IMPORT_JOB_FORMAT_UNSPECIFIED" - Default value.
  2696  	//   "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format.
  2697  	//   "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX).
  2698  	//   "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV).
  2699  	//   "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS using
  2700  	// the [AWS collection
  2701  	// script](https://github.com/GoogleCloudPlatform/aws-to-stratozone-export).
  2702  	//   "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from Azure
  2703  	// using the [Azure collection
  2704  	// script](https://github.com/GoogleCloudPlatform/azure-to-stratozone-export).
  2705  	//   "IMPORT_JOB_FORMAT_MANUAL_CSV" - CSV format created manually. For more
  2706  	// information, see [Manually create and upload data
  2707  	// tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal).
  2708  	//   "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files
  2709  	// generated by a database collector.
  2710  	Format string `json:"format,omitempty"`
  2711  	// Path: The payload path in Google Cloud Storage.
  2712  	Path string `json:"path,omitempty"`
  2713  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
  2714  	// include in API requests. By default, fields with empty or default values are
  2715  	// omitted from API requests. See
  2716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2717  	// details.
  2718  	ForceSendFields []string `json:"-"`
  2719  	// NullFields is a list of field names (e.g. "Format") to include in API
  2720  	// requests with the JSON null value. By default, fields with empty values are
  2721  	// omitted from API requests. See
  2722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2723  	NullFields []string `json:"-"`
  2724  }
  2725  
  2726  func (s *GCSPayloadInfo) MarshalJSON() ([]byte, error) {
  2727  	type NoMethod GCSPayloadInfo
  2728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2729  }
  2730  
  2731  // GenericInsight: A generic insight about an asset.
  2732  type GenericInsight struct {
  2733  	// AdditionalInformation: Output only. Additional information about the
  2734  	// insight, each entry can be a logical entry and must make sense if it is
  2735  	// displayed with line breaks between each entry. Text can contain md style
  2736  	// links.
  2737  	AdditionalInformation []string `json:"additionalInformation,omitempty"`
  2738  	// DefaultMessage: Output only. In case message_code is not yet known by the
  2739  	// client default_message will be the message to be used instead. Text can
  2740  	// contain md file style links.
  2741  	DefaultMessage string `json:"defaultMessage,omitempty"`
  2742  	// MessageId: Output only. Represents a globally unique message id for this
  2743  	// insight, can be used for localization purposes, in case message_code is not
  2744  	// yet known by the client use default_message instead.
  2745  	MessageId int64 `json:"messageId,omitempty,string"`
  2746  	// ForceSendFields is a list of field names (e.g. "AdditionalInformation") to
  2747  	// unconditionally include in API requests. By default, fields with empty or
  2748  	// default values are omitted from API requests. See
  2749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2750  	// details.
  2751  	ForceSendFields []string `json:"-"`
  2752  	// NullFields is a list of field names (e.g. "AdditionalInformation") to
  2753  	// include in API requests with the JSON null value. By default, fields with
  2754  	// empty values are omitted from API requests. See
  2755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2756  	NullFields []string `json:"-"`
  2757  }
  2758  
  2759  func (s *GenericInsight) MarshalJSON() ([]byte, error) {
  2760  	type NoMethod GenericInsight
  2761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2762  }
  2763  
  2764  // GenericPlatformDetails: Generic platform details.
  2765  type GenericPlatformDetails struct {
  2766  	// Location: Free text representation of the machine location. The format of
  2767  	// this field should not be relied on. Different VMs in the same location may
  2768  	// have different string values for this field.
  2769  	Location string `json:"location,omitempty"`
  2770  	// ForceSendFields is a list of field names (e.g. "Location") to
  2771  	// unconditionally include in API requests. By default, fields with empty or
  2772  	// default values are omitted from API requests. See
  2773  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2774  	// details.
  2775  	ForceSendFields []string `json:"-"`
  2776  	// NullFields is a list of field names (e.g. "Location") to include in API
  2777  	// requests with the JSON null value. By default, fields with empty values are
  2778  	// omitted from API requests. See
  2779  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2780  	NullFields []string `json:"-"`
  2781  }
  2782  
  2783  func (s *GenericPlatformDetails) MarshalJSON() ([]byte, error) {
  2784  	type NoMethod GenericPlatformDetails
  2785  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2786  }
  2787  
  2788  // GoogleKubernetesEngineMigrationTarget: GKE migration target.
  2789  type GoogleKubernetesEngineMigrationTarget struct {
  2790  }
  2791  
  2792  // Group: A resource that represents an asset group. The purpose of an asset
  2793  // group is to bundle a set of assets that have something in common, while
  2794  // allowing users to add annotations to the group. An asset can belong to
  2795  // multiple groups.
  2796  type Group struct {
  2797  	// CreateTime: Output only. The timestamp when the group was created.
  2798  	CreateTime string `json:"createTime,omitempty"`
  2799  	// Description: Optional. The description of the group.
  2800  	Description string `json:"description,omitempty"`
  2801  	// DisplayName: Optional. User-friendly display name.
  2802  	DisplayName string `json:"displayName,omitempty"`
  2803  	// Labels: Labels as key value pairs.
  2804  	Labels map[string]string `json:"labels,omitempty"`
  2805  	// Name: Output only. The name of the group.
  2806  	Name string `json:"name,omitempty"`
  2807  	// UpdateTime: Output only. The timestamp when the group was last updated.
  2808  	UpdateTime string `json:"updateTime,omitempty"`
  2809  
  2810  	// ServerResponse contains the HTTP response code and headers from the server.
  2811  	googleapi.ServerResponse `json:"-"`
  2812  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2813  	// unconditionally include in API requests. By default, fields with empty or
  2814  	// default values are omitted from API requests. See
  2815  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2816  	// details.
  2817  	ForceSendFields []string `json:"-"`
  2818  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2819  	// requests with the JSON null value. By default, fields with empty values are
  2820  	// omitted from API requests. See
  2821  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2822  	NullFields []string `json:"-"`
  2823  }
  2824  
  2825  func (s *Group) MarshalJSON() ([]byte, error) {
  2826  	type NoMethod Group
  2827  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2828  }
  2829  
  2830  // GuestConfigDetails: Guest OS config information.
  2831  type GuestConfigDetails struct {
  2832  	// Fstab: Mount list (Linux fstab).
  2833  	Fstab *FstabEntryList `json:"fstab,omitempty"`
  2834  	// Hosts: Hosts file (/etc/hosts).
  2835  	Hosts *HostsEntryList `json:"hosts,omitempty"`
  2836  	// Issue: OS issue (typically /etc/issue in Linux).
  2837  	Issue string `json:"issue,omitempty"`
  2838  	// NfsExports: NFS exports.
  2839  	NfsExports *NfsExportList `json:"nfsExports,omitempty"`
  2840  	// Selinux: SELinux details.
  2841  	Selinux *Selinux `json:"selinux,omitempty"`
  2842  	// ForceSendFields is a list of field names (e.g. "Fstab") to unconditionally
  2843  	// include in API requests. By default, fields with empty or default values are
  2844  	// omitted from API requests. See
  2845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2846  	// details.
  2847  	ForceSendFields []string `json:"-"`
  2848  	// NullFields is a list of field names (e.g. "Fstab") to include in API
  2849  	// requests with the JSON null value. By default, fields with empty values are
  2850  	// omitted from API requests. See
  2851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2852  	NullFields []string `json:"-"`
  2853  }
  2854  
  2855  func (s *GuestConfigDetails) MarshalJSON() ([]byte, error) {
  2856  	type NoMethod GuestConfigDetails
  2857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2858  }
  2859  
  2860  // GuestInstalledApplication: Guest installed application information.
  2861  type GuestInstalledApplication struct {
  2862  	// Licenses: License strings associated with the installed application.
  2863  	Licenses []string `json:"licenses,omitempty"`
  2864  	// Name: Installed application name.
  2865  	Name string `json:"name,omitempty"`
  2866  	// Path: Source path.
  2867  	Path string `json:"path,omitempty"`
  2868  	// Time: Date application was installed.
  2869  	Time string `json:"time,omitempty"`
  2870  	// Vendor: Installed application vendor.
  2871  	Vendor string `json:"vendor,omitempty"`
  2872  	// Version: Installed application version.
  2873  	Version string `json:"version,omitempty"`
  2874  	// ForceSendFields is a list of field names (e.g. "Licenses") to
  2875  	// unconditionally include in API requests. By default, fields with empty or
  2876  	// default values are omitted from API requests. See
  2877  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2878  	// details.
  2879  	ForceSendFields []string `json:"-"`
  2880  	// NullFields is a list of field names (e.g. "Licenses") to include in API
  2881  	// requests with the JSON null value. By default, fields with empty values are
  2882  	// omitted from API requests. See
  2883  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2884  	NullFields []string `json:"-"`
  2885  }
  2886  
  2887  func (s *GuestInstalledApplication) MarshalJSON() ([]byte, error) {
  2888  	type NoMethod GuestInstalledApplication
  2889  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2890  }
  2891  
  2892  // GuestInstalledApplicationList: Guest installed application list.
  2893  type GuestInstalledApplicationList struct {
  2894  	// Entries: Application entries.
  2895  	Entries []*GuestInstalledApplication `json:"entries,omitempty"`
  2896  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2897  	// include in API requests. By default, fields with empty or default values are
  2898  	// omitted from API requests. See
  2899  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2900  	// details.
  2901  	ForceSendFields []string `json:"-"`
  2902  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2903  	// requests with the JSON null value. By default, fields with empty values are
  2904  	// omitted from API requests. See
  2905  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2906  	NullFields []string `json:"-"`
  2907  }
  2908  
  2909  func (s *GuestInstalledApplicationList) MarshalJSON() ([]byte, error) {
  2910  	type NoMethod GuestInstalledApplicationList
  2911  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2912  }
  2913  
  2914  // GuestOsDetails: Information from Guest-level collections.
  2915  type GuestOsDetails struct {
  2916  	// Config: OS and app configuration.
  2917  	Config *GuestConfigDetails `json:"config,omitempty"`
  2918  	// Runtime: Runtime information.
  2919  	Runtime *GuestRuntimeDetails `json:"runtime,omitempty"`
  2920  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2921  	// include in API requests. By default, fields with empty or default values are
  2922  	// omitted from API requests. See
  2923  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2924  	// details.
  2925  	ForceSendFields []string `json:"-"`
  2926  	// NullFields is a list of field names (e.g. "Config") to include in API
  2927  	// requests with the JSON null value. By default, fields with empty values are
  2928  	// omitted from API requests. See
  2929  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2930  	NullFields []string `json:"-"`
  2931  }
  2932  
  2933  func (s *GuestOsDetails) MarshalJSON() ([]byte, error) {
  2934  	type NoMethod GuestOsDetails
  2935  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2936  }
  2937  
  2938  // GuestRuntimeDetails: Guest OS runtime information.
  2939  type GuestRuntimeDetails struct {
  2940  	// Domain: Domain, e.g. c.stratozone-development.internal.
  2941  	Domain string `json:"domain,omitempty"`
  2942  	// InstalledApps: Installed applications information.
  2943  	InstalledApps *GuestInstalledApplicationList `json:"installedApps,omitempty"`
  2944  	// LastUptime: Date since last booted (last uptime date).
  2945  	LastUptime *Date `json:"lastUptime,omitempty"`
  2946  	// MachineName: Machine name.
  2947  	MachineName string `json:"machineName,omitempty"`
  2948  	// NetworkInfo: Runtime network information (connections, ports).
  2949  	NetworkInfo *RuntimeNetworkInfo `json:"networkInfo,omitempty"`
  2950  	// OpenFileList: Open files information.
  2951  	OpenFileList *OpenFileList `json:"openFileList,omitempty"`
  2952  	// Processes: Running processes.
  2953  	Processes *RunningProcessList `json:"processes,omitempty"`
  2954  	// Services: Running background services.
  2955  	Services *RunningServiceList `json:"services,omitempty"`
  2956  	// ForceSendFields is a list of field names (e.g. "Domain") to unconditionally
  2957  	// include in API requests. By default, fields with empty or default values are
  2958  	// omitted from API requests. See
  2959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2960  	// details.
  2961  	ForceSendFields []string `json:"-"`
  2962  	// NullFields is a list of field names (e.g. "Domain") to include in API
  2963  	// requests with the JSON null value. By default, fields with empty values are
  2964  	// omitted from API requests. See
  2965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2966  	NullFields []string `json:"-"`
  2967  }
  2968  
  2969  func (s *GuestRuntimeDetails) MarshalJSON() ([]byte, error) {
  2970  	type NoMethod GuestRuntimeDetails
  2971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2972  }
  2973  
  2974  // HostsEntry: Single /etc/hosts entry.
  2975  type HostsEntry struct {
  2976  	// HostNames: List of host names / aliases.
  2977  	HostNames []string `json:"hostNames,omitempty"`
  2978  	// Ip: IP (raw, IPv4/6 agnostic).
  2979  	Ip string `json:"ip,omitempty"`
  2980  	// ForceSendFields is a list of field names (e.g. "HostNames") to
  2981  	// unconditionally include in API requests. By default, fields with empty or
  2982  	// default values are omitted from API requests. See
  2983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2984  	// details.
  2985  	ForceSendFields []string `json:"-"`
  2986  	// NullFields is a list of field names (e.g. "HostNames") to include in API
  2987  	// requests with the JSON null value. By default, fields with empty values are
  2988  	// omitted from API requests. See
  2989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2990  	NullFields []string `json:"-"`
  2991  }
  2992  
  2993  func (s *HostsEntry) MarshalJSON() ([]byte, error) {
  2994  	type NoMethod HostsEntry
  2995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2996  }
  2997  
  2998  // HostsEntryList: Hosts content.
  2999  type HostsEntryList struct {
  3000  	// Entries: Hosts entries.
  3001  	Entries []*HostsEntry `json:"entries,omitempty"`
  3002  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  3003  	// include in API requests. By default, fields with empty or default values are
  3004  	// omitted from API requests. See
  3005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3006  	// details.
  3007  	ForceSendFields []string `json:"-"`
  3008  	// NullFields is a list of field names (e.g. "Entries") to include in API
  3009  	// requests with the JSON null value. By default, fields with empty values are
  3010  	// omitted from API requests. See
  3011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3012  	NullFields []string `json:"-"`
  3013  }
  3014  
  3015  func (s *HostsEntryList) MarshalJSON() ([]byte, error) {
  3016  	type NoMethod HostsEntryList
  3017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3018  }
  3019  
  3020  // ImportDataFile: A resource that represents a payload file in an import job.
  3021  type ImportDataFile struct {
  3022  	// CreateTime: Output only. The timestamp when the file was created.
  3023  	CreateTime string `json:"createTime,omitempty"`
  3024  	// DisplayName: Optional. User-friendly display name. Maximum length is 256
  3025  	// characters.
  3026  	DisplayName string `json:"displayName,omitempty"`
  3027  	// Format: Required. The payload format.
  3028  	//
  3029  	// Possible values:
  3030  	//   "IMPORT_JOB_FORMAT_UNSPECIFIED" - Default value.
  3031  	//   "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format.
  3032  	//   "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX).
  3033  	//   "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV).
  3034  	//   "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS using
  3035  	// the [AWS collection
  3036  	// script](https://github.com/GoogleCloudPlatform/aws-to-stratozone-export).
  3037  	//   "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from Azure
  3038  	// using the [Azure collection
  3039  	// script](https://github.com/GoogleCloudPlatform/azure-to-stratozone-export).
  3040  	//   "IMPORT_JOB_FORMAT_MANUAL_CSV" - CSV format created manually. For more
  3041  	// information, see [Manually create and upload data
  3042  	// tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal).
  3043  	//   "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files
  3044  	// generated by a database collector.
  3045  	Format string `json:"format,omitempty"`
  3046  	// Name: Output only. The name of the file.
  3047  	Name string `json:"name,omitempty"`
  3048  	// State: Output only. The state of the import data file.
  3049  	//
  3050  	// Possible values:
  3051  	//   "STATE_UNSPECIFIED" - Default value.
  3052  	//   "CREATING" - The data file is being created.
  3053  	//   "ACTIVE" - The data file completed initialization.
  3054  	State string `json:"state,omitempty"`
  3055  	// UploadFileInfo: Information about a file that is uploaded to a storage
  3056  	// service.
  3057  	UploadFileInfo *UploadFileInfo `json:"uploadFileInfo,omitempty"`
  3058  
  3059  	// ServerResponse contains the HTTP response code and headers from the server.
  3060  	googleapi.ServerResponse `json:"-"`
  3061  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3062  	// unconditionally include in API requests. By default, fields with empty or
  3063  	// default values are omitted from API requests. See
  3064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3065  	// details.
  3066  	ForceSendFields []string `json:"-"`
  3067  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3068  	// requests with the JSON null value. By default, fields with empty values are
  3069  	// omitted from API requests. See
  3070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3071  	NullFields []string `json:"-"`
  3072  }
  3073  
  3074  func (s *ImportDataFile) MarshalJSON() ([]byte, error) {
  3075  	type NoMethod ImportDataFile
  3076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3077  }
  3078  
  3079  // ImportError: A resource that reports the errors encountered while processing
  3080  // an import job.
  3081  type ImportError struct {
  3082  	// ErrorDetails: The error information.
  3083  	ErrorDetails string `json:"errorDetails,omitempty"`
  3084  	// Severity: The severity of the error.
  3085  	//
  3086  	// Possible values:
  3087  	//   "SEVERITY_UNSPECIFIED"
  3088  	//   "ERROR"
  3089  	//   "WARNING"
  3090  	//   "INFO"
  3091  	Severity string `json:"severity,omitempty"`
  3092  	// ForceSendFields is a list of field names (e.g. "ErrorDetails") to
  3093  	// unconditionally include in API requests. By default, fields with empty or
  3094  	// default values are omitted from API requests. See
  3095  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3096  	// details.
  3097  	ForceSendFields []string `json:"-"`
  3098  	// NullFields is a list of field names (e.g. "ErrorDetails") to include in API
  3099  	// requests with the JSON null value. By default, fields with empty values are
  3100  	// omitted from API requests. See
  3101  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3102  	NullFields []string `json:"-"`
  3103  }
  3104  
  3105  func (s *ImportError) MarshalJSON() ([]byte, error) {
  3106  	type NoMethod ImportError
  3107  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3108  }
  3109  
  3110  // ImportJob: A resource that represents the background job that imports asset
  3111  // frames.
  3112  type ImportJob struct {
  3113  	// AssetSource: Required. Reference to a source.
  3114  	AssetSource string `json:"assetSource,omitempty"`
  3115  	// CompleteTime: Output only. The timestamp when the import job was completed.
  3116  	CompleteTime string `json:"completeTime,omitempty"`
  3117  	// CreateTime: Output only. The timestamp when the import job was created.
  3118  	CreateTime string `json:"createTime,omitempty"`
  3119  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  3120  	DisplayName string `json:"displayName,omitempty"`
  3121  	// ExecutionReport: Output only. The report with the results of running the
  3122  	// import job.
  3123  	ExecutionReport *ExecutionReport `json:"executionReport,omitempty"`
  3124  	// GcsPayload: The payload is in Google Cloud Storage.
  3125  	GcsPayload *GCSPayloadInfo `json:"gcsPayload,omitempty"`
  3126  	// InlinePayload: The payload is included in the request, mainly used for small
  3127  	// import jobs.
  3128  	InlinePayload *InlinePayloadInfo `json:"inlinePayload,omitempty"`
  3129  	// Labels: Labels as key value pairs.
  3130  	Labels map[string]string `json:"labels,omitempty"`
  3131  	// Name: Output only. The full name of the import job.
  3132  	Name string `json:"name,omitempty"`
  3133  	// State: Output only. The state of the import job.
  3134  	//
  3135  	// Possible values:
  3136  	//   "IMPORT_JOB_STATE_UNSPECIFIED" - Default value.
  3137  	//   "IMPORT_JOB_STATE_PENDING" - The import job is pending.
  3138  	//   "IMPORT_JOB_STATE_RUNNING" - The processing of the import job is ongoing.
  3139  	//   "IMPORT_JOB_STATE_COMPLETED" - The import job processing has completed.
  3140  	//   "IMPORT_JOB_STATE_FAILED" - The import job failed to be processed.
  3141  	//   "IMPORT_JOB_STATE_VALIDATING" - The import job is being validated.
  3142  	//   "IMPORT_JOB_STATE_FAILED_VALIDATION" - The import job contains blocking
  3143  	// errors.
  3144  	//   "IMPORT_JOB_STATE_READY" - The validation of the job completed with no
  3145  	// blocking errors.
  3146  	State string `json:"state,omitempty"`
  3147  	// UpdateTime: Output only. The timestamp when the import job was last updated.
  3148  	UpdateTime string `json:"updateTime,omitempty"`
  3149  	// ValidationReport: Output only. The report with the validation results of the
  3150  	// import job.
  3151  	ValidationReport *ValidationReport `json:"validationReport,omitempty"`
  3152  
  3153  	// ServerResponse contains the HTTP response code and headers from the server.
  3154  	googleapi.ServerResponse `json:"-"`
  3155  	// ForceSendFields is a list of field names (e.g. "AssetSource") to
  3156  	// unconditionally include in API requests. By default, fields with empty or
  3157  	// default values are omitted from API requests. See
  3158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3159  	// details.
  3160  	ForceSendFields []string `json:"-"`
  3161  	// NullFields is a list of field names (e.g. "AssetSource") to include in API
  3162  	// requests with the JSON null value. By default, fields with empty values are
  3163  	// omitted from API requests. See
  3164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3165  	NullFields []string `json:"-"`
  3166  }
  3167  
  3168  func (s *ImportJob) MarshalJSON() ([]byte, error) {
  3169  	type NoMethod ImportJob
  3170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3171  }
  3172  
  3173  // ImportRowError: A resource that reports the import job errors at row level.
  3174  type ImportRowError struct {
  3175  	// ArchiveError: Error details for an archive file.
  3176  	ArchiveError *ImportRowErrorArchiveErrorDetails `json:"archiveError,omitempty"`
  3177  	// AssetTitle: The asset title.
  3178  	AssetTitle string `json:"assetTitle,omitempty"`
  3179  	// CsvError: Error details for a CSV file.
  3180  	CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"`
  3181  	// Errors: The list of errors detected in the row.
  3182  	Errors []*ImportError `json:"errors,omitempty"`
  3183  	// JsonError: Error details for a JSON file.
  3184  	JsonError *ImportRowErrorJsonErrorDetails `json:"jsonError,omitempty"`
  3185  	// RowNumber: The row number where the error was detected.
  3186  	RowNumber int64 `json:"rowNumber,omitempty"`
  3187  	// VmName: The name of the VM in the row.
  3188  	VmName string `json:"vmName,omitempty"`
  3189  	// VmUuid: The VM UUID.
  3190  	VmUuid string `json:"vmUuid,omitempty"`
  3191  	// XlsxError: Error details for an XLSX file.
  3192  	XlsxError *ImportRowErrorXlsxErrorDetails `json:"xlsxError,omitempty"`
  3193  	// ForceSendFields is a list of field names (e.g. "ArchiveError") to
  3194  	// unconditionally include in API requests. By default, fields with empty or
  3195  	// default values are omitted from API requests. See
  3196  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3197  	// details.
  3198  	ForceSendFields []string `json:"-"`
  3199  	// NullFields is a list of field names (e.g. "ArchiveError") to include in API
  3200  	// requests with the JSON null value. By default, fields with empty values are
  3201  	// omitted from API requests. See
  3202  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3203  	NullFields []string `json:"-"`
  3204  }
  3205  
  3206  func (s *ImportRowError) MarshalJSON() ([]byte, error) {
  3207  	type NoMethod ImportRowError
  3208  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3209  }
  3210  
  3211  // ImportRowErrorArchiveErrorDetails: Error details for an archive file.
  3212  type ImportRowErrorArchiveErrorDetails struct {
  3213  	// CsvError: Error details for a CSV file.
  3214  	CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"`
  3215  	// FilePath: The file path inside the archive where the error was detected.
  3216  	FilePath string `json:"filePath,omitempty"`
  3217  	// ForceSendFields is a list of field names (e.g. "CsvError") to
  3218  	// unconditionally include in API requests. By default, fields with empty or
  3219  	// default values are omitted from API requests. See
  3220  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3221  	// details.
  3222  	ForceSendFields []string `json:"-"`
  3223  	// NullFields is a list of field names (e.g. "CsvError") to include in API
  3224  	// requests with the JSON null value. By default, fields with empty values are
  3225  	// omitted from API requests. See
  3226  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3227  	NullFields []string `json:"-"`
  3228  }
  3229  
  3230  func (s *ImportRowErrorArchiveErrorDetails) MarshalJSON() ([]byte, error) {
  3231  	type NoMethod ImportRowErrorArchiveErrorDetails
  3232  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3233  }
  3234  
  3235  // ImportRowErrorCsvErrorDetails: Error details for a CSV file.
  3236  type ImportRowErrorCsvErrorDetails struct {
  3237  	// RowNumber: The row number where the error was detected.
  3238  	RowNumber int64 `json:"rowNumber,omitempty"`
  3239  	// ForceSendFields is a list of field names (e.g. "RowNumber") to
  3240  	// unconditionally include in API requests. By default, fields with empty or
  3241  	// default values are omitted from API requests. See
  3242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3243  	// details.
  3244  	ForceSendFields []string `json:"-"`
  3245  	// NullFields is a list of field names (e.g. "RowNumber") to include in API
  3246  	// requests with the JSON null value. By default, fields with empty values are
  3247  	// omitted from API requests. See
  3248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3249  	NullFields []string `json:"-"`
  3250  }
  3251  
  3252  func (s *ImportRowErrorCsvErrorDetails) MarshalJSON() ([]byte, error) {
  3253  	type NoMethod ImportRowErrorCsvErrorDetails
  3254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3255  }
  3256  
  3257  // ImportRowErrorJsonErrorDetails: Error details for a JSON file.
  3258  type ImportRowErrorJsonErrorDetails struct {
  3259  }
  3260  
  3261  // ImportRowErrorXlsxErrorDetails: Error details for an XLSX file.
  3262  type ImportRowErrorXlsxErrorDetails struct {
  3263  	// RowNumber: The row number where the error was detected.
  3264  	RowNumber int64 `json:"rowNumber,omitempty"`
  3265  	// Sheet: The name of the sheet where the error was detected.
  3266  	Sheet string `json:"sheet,omitempty"`
  3267  	// ForceSendFields is a list of field names (e.g. "RowNumber") to
  3268  	// unconditionally include in API requests. By default, fields with empty or
  3269  	// default values are omitted from API requests. See
  3270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3271  	// details.
  3272  	ForceSendFields []string `json:"-"`
  3273  	// NullFields is a list of field names (e.g. "RowNumber") to include in API
  3274  	// requests with the JSON null value. By default, fields with empty values are
  3275  	// omitted from API requests. See
  3276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3277  	NullFields []string `json:"-"`
  3278  }
  3279  
  3280  func (s *ImportRowErrorXlsxErrorDetails) MarshalJSON() ([]byte, error) {
  3281  	type NoMethod ImportRowErrorXlsxErrorDetails
  3282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3283  }
  3284  
  3285  // InlinePayloadInfo: A resource that represents the inline import job payload.
  3286  type InlinePayloadInfo struct {
  3287  	// Format: The import job format.
  3288  	//
  3289  	// Possible values:
  3290  	//   "IMPORT_JOB_FORMAT_UNSPECIFIED" - Default value.
  3291  	//   "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format.
  3292  	//   "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX).
  3293  	//   "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV).
  3294  	//   "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS using
  3295  	// the [AWS collection
  3296  	// script](https://github.com/GoogleCloudPlatform/aws-to-stratozone-export).
  3297  	//   "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from Azure
  3298  	// using the [Azure collection
  3299  	// script](https://github.com/GoogleCloudPlatform/azure-to-stratozone-export).
  3300  	//   "IMPORT_JOB_FORMAT_MANUAL_CSV" - CSV format created manually. For more
  3301  	// information, see [Manually create and upload data
  3302  	// tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal).
  3303  	//   "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files
  3304  	// generated by a database collector.
  3305  	Format string `json:"format,omitempty"`
  3306  	// Payload: List of payload files.
  3307  	Payload []*PayloadFile `json:"payload,omitempty"`
  3308  	// ForceSendFields is a list of field names (e.g. "Format") to unconditionally
  3309  	// include in API requests. By default, fields with empty or default values are
  3310  	// omitted from API requests. See
  3311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3312  	// details.
  3313  	ForceSendFields []string `json:"-"`
  3314  	// NullFields is a list of field names (e.g. "Format") to include in API
  3315  	// requests with the JSON null value. By default, fields with empty values are
  3316  	// omitted from API requests. See
  3317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3318  	NullFields []string `json:"-"`
  3319  }
  3320  
  3321  func (s *InlinePayloadInfo) MarshalJSON() ([]byte, error) {
  3322  	type NoMethod InlinePayloadInfo
  3323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3324  }
  3325  
  3326  // Insight: An insight about an asset.
  3327  type Insight struct {
  3328  	// GenericInsight: Output only. A generic insight about an asset.
  3329  	GenericInsight *GenericInsight `json:"genericInsight,omitempty"`
  3330  	// MigrationInsight: Output only. An insight about potential migrations for an
  3331  	// asset.
  3332  	MigrationInsight *MigrationInsight `json:"migrationInsight,omitempty"`
  3333  	// SoftwareInsight: Output only. An insight regarding software detected on an
  3334  	// asset.
  3335  	SoftwareInsight *SoftwareInsight `json:"softwareInsight,omitempty"`
  3336  	// ForceSendFields is a list of field names (e.g. "GenericInsight") to
  3337  	// unconditionally include in API requests. By default, fields with empty or
  3338  	// default values are omitted from API requests. See
  3339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3340  	// details.
  3341  	ForceSendFields []string `json:"-"`
  3342  	// NullFields is a list of field names (e.g. "GenericInsight") to include in
  3343  	// API requests with the JSON null value. By default, fields with empty values
  3344  	// are omitted from API requests. See
  3345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3346  	NullFields []string `json:"-"`
  3347  }
  3348  
  3349  func (s *Insight) MarshalJSON() ([]byte, error) {
  3350  	type NoMethod Insight
  3351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3352  }
  3353  
  3354  // InsightList: Message containing insights list.
  3355  type InsightList struct {
  3356  	// Insights: Output only. Insights of the list.
  3357  	Insights []*Insight `json:"insights,omitempty"`
  3358  	// UpdateTime: Output only. Update timestamp.
  3359  	UpdateTime string `json:"updateTime,omitempty"`
  3360  	// ForceSendFields is a list of field names (e.g. "Insights") to
  3361  	// unconditionally include in API requests. By default, fields with empty or
  3362  	// default values are omitted from API requests. See
  3363  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3364  	// details.
  3365  	ForceSendFields []string `json:"-"`
  3366  	// NullFields is a list of field names (e.g. "Insights") to include in API
  3367  	// requests with the JSON null value. By default, fields with empty values are
  3368  	// omitted from API requests. See
  3369  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3370  	NullFields []string `json:"-"`
  3371  }
  3372  
  3373  func (s *InsightList) MarshalJSON() ([]byte, error) {
  3374  	type NoMethod InsightList
  3375  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3376  }
  3377  
  3378  // Issue: An issue associated with a migration.
  3379  type Issue struct {
  3380  	// CompatibilityIssue: Output only. Details about a compatibility issue.
  3381  	CompatibilityIssue *IssueCompatibilityIssue `json:"compatibilityIssue,omitempty"`
  3382  	// Description: Output only. English description of the issue.
  3383  	Description string `json:"description,omitempty"`
  3384  	// IssueCode: Output only. Unique identifier for this issue type.
  3385  	IssueCode string `json:"issueCode,omitempty"`
  3386  	// ForceSendFields is a list of field names (e.g. "CompatibilityIssue") to
  3387  	// unconditionally include in API requests. By default, fields with empty or
  3388  	// default values are omitted from API requests. See
  3389  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3390  	// details.
  3391  	ForceSendFields []string `json:"-"`
  3392  	// NullFields is a list of field names (e.g. "CompatibilityIssue") to include
  3393  	// in API requests with the JSON null value. By default, fields with empty
  3394  	// values are omitted from API requests. See
  3395  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3396  	NullFields []string `json:"-"`
  3397  }
  3398  
  3399  func (s *Issue) MarshalJSON() ([]byte, error) {
  3400  	type NoMethod Issue
  3401  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3402  }
  3403  
  3404  // IssueCompatibilityIssue: Details about a compatibility issue.
  3405  type IssueCompatibilityIssue struct {
  3406  	// AssociatedObject: Output only. Name of the object associated with this
  3407  	// compatibility issue relative to the relevant asset. Does not represent a
  3408  	// fully qualified resource name and is not intended for programmatic use.
  3409  	AssociatedObject string `json:"associatedObject,omitempty"`
  3410  	// AssociatedObjectType: Output only. Type of object associated with this
  3411  	// migration compatibility issue.
  3412  	//
  3413  	// Possible values:
  3414  	//   "OBJECT_TYPE_UNSPECIFIED" - An unspecified object type.
  3415  	//   "DATABASE_DEPLOYMENT" - A database deployment object type.
  3416  	//   "DATABASE" - A logical database object type.
  3417  	//   "SCHEMA" - A schema object type.
  3418  	AssociatedObjectType string `json:"associatedObjectType,omitempty"`
  3419  	// AssociatedValue: Output only. A string representation of actual value
  3420  	// associated with this issue. Some values may contain aggregated information,
  3421  	// such as a flag name and the actual value assigned to it.
  3422  	AssociatedValue string `json:"associatedValue,omitempty"`
  3423  	// Category: Output only. Category of this compatibility issue.
  3424  	//
  3425  	// Possible values:
  3426  	//   "CATEGORY_UNSPECIFIED" - An unspecified compatibility category.
  3427  	//   "DATABASE_FLAG" - Database flag compatibility category.
  3428  	//   "DATABASE_FEATURE" - Database feature compatibility category.
  3429  	Category string `json:"category,omitempty"`
  3430  	// ForceSendFields is a list of field names (e.g. "AssociatedObject") to
  3431  	// unconditionally include in API requests. By default, fields with empty or
  3432  	// default values are omitted from API requests. See
  3433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3434  	// details.
  3435  	ForceSendFields []string `json:"-"`
  3436  	// NullFields is a list of field names (e.g. "AssociatedObject") to include in
  3437  	// API requests with the JSON null value. By default, fields with empty values
  3438  	// are omitted from API requests. See
  3439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3440  	NullFields []string `json:"-"`
  3441  }
  3442  
  3443  func (s *IssueCompatibilityIssue) MarshalJSON() ([]byte, error) {
  3444  	type NoMethod IssueCompatibilityIssue
  3445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3446  }
  3447  
  3448  // ListAssetsResponse: Response message for listing assets.
  3449  type ListAssetsResponse struct {
  3450  	// Assets: A list of assets.
  3451  	Assets []*Asset `json:"assets,omitempty"`
  3452  	// NextPageToken: A token identifying a page of results the server should
  3453  	// return.
  3454  	NextPageToken string `json:"nextPageToken,omitempty"`
  3455  	// Unreachable: Locations that could not be reached.
  3456  	Unreachable []string `json:"unreachable,omitempty"`
  3457  
  3458  	// ServerResponse contains the HTTP response code and headers from the server.
  3459  	googleapi.ServerResponse `json:"-"`
  3460  	// ForceSendFields is a list of field names (e.g. "Assets") to unconditionally
  3461  	// include in API requests. By default, fields with empty or default values are
  3462  	// omitted from API requests. See
  3463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3464  	// details.
  3465  	ForceSendFields []string `json:"-"`
  3466  	// NullFields is a list of field names (e.g. "Assets") to include in API
  3467  	// requests with the JSON null value. By default, fields with empty values are
  3468  	// omitted from API requests. See
  3469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3470  	NullFields []string `json:"-"`
  3471  }
  3472  
  3473  func (s *ListAssetsResponse) MarshalJSON() ([]byte, error) {
  3474  	type NoMethod ListAssetsResponse
  3475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3476  }
  3477  
  3478  // ListDiscoveryClientsResponse: Response message for listing discovery
  3479  // clients.
  3480  type ListDiscoveryClientsResponse struct {
  3481  	// DiscoveryClients: List of discovery clients.
  3482  	DiscoveryClients []*DiscoveryClient `json:"discoveryClients,omitempty"`
  3483  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  3484  	// page. If this field is omitted, there are no subsequent pages.
  3485  	NextPageToken string `json:"nextPageToken,omitempty"`
  3486  	// Unreachable: Locations that could not be reached.
  3487  	Unreachable []string `json:"unreachable,omitempty"`
  3488  
  3489  	// ServerResponse contains the HTTP response code and headers from the server.
  3490  	googleapi.ServerResponse `json:"-"`
  3491  	// ForceSendFields is a list of field names (e.g. "DiscoveryClients") 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. "DiscoveryClients") to include in
  3498  	// API requests with the JSON null value. By default, fields with empty values
  3499  	// are 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 *ListDiscoveryClientsResponse) MarshalJSON() ([]byte, error) {
  3505  	type NoMethod ListDiscoveryClientsResponse
  3506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3507  }
  3508  
  3509  // ListErrorFramesResponse: A response for listing error frames.
  3510  type ListErrorFramesResponse struct {
  3511  	// ErrorFrames: The list of error frames.
  3512  	ErrorFrames []*ErrorFrame `json:"errorFrames,omitempty"`
  3513  	// NextPageToken: A token identifying a page of results the server should
  3514  	// return.
  3515  	NextPageToken string `json:"nextPageToken,omitempty"`
  3516  	// Unreachable: Locations that could not be reached.
  3517  	Unreachable []string `json:"unreachable,omitempty"`
  3518  
  3519  	// ServerResponse contains the HTTP response code and headers from the server.
  3520  	googleapi.ServerResponse `json:"-"`
  3521  	// ForceSendFields is a list of field names (e.g. "ErrorFrames") to
  3522  	// unconditionally include in API requests. By default, fields with empty or
  3523  	// default values are omitted from API requests. See
  3524  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3525  	// details.
  3526  	ForceSendFields []string `json:"-"`
  3527  	// NullFields is a list of field names (e.g. "ErrorFrames") to include in API
  3528  	// requests with the JSON null value. By default, fields with empty values are
  3529  	// omitted from API requests. See
  3530  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3531  	NullFields []string `json:"-"`
  3532  }
  3533  
  3534  func (s *ListErrorFramesResponse) MarshalJSON() ([]byte, error) {
  3535  	type NoMethod ListErrorFramesResponse
  3536  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3537  }
  3538  
  3539  // ListGroupsResponse: A response for listing groups.
  3540  type ListGroupsResponse struct {
  3541  	// Groups: The list of Group
  3542  	Groups []*Group `json:"groups,omitempty"`
  3543  	// NextPageToken: A token identifying a page of results the server should
  3544  	// return.
  3545  	NextPageToken string `json:"nextPageToken,omitempty"`
  3546  	// Unreachable: Locations that could not be reached.
  3547  	Unreachable []string `json:"unreachable,omitempty"`
  3548  
  3549  	// ServerResponse contains the HTTP response code and headers from the server.
  3550  	googleapi.ServerResponse `json:"-"`
  3551  	// ForceSendFields is a list of field names (e.g. "Groups") to unconditionally
  3552  	// include in API requests. By default, fields with empty or default values are
  3553  	// omitted from API requests. See
  3554  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3555  	// details.
  3556  	ForceSendFields []string `json:"-"`
  3557  	// NullFields is a list of field names (e.g. "Groups") to include in API
  3558  	// requests with the JSON null value. By default, fields with empty values are
  3559  	// omitted from API requests. See
  3560  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3561  	NullFields []string `json:"-"`
  3562  }
  3563  
  3564  func (s *ListGroupsResponse) MarshalJSON() ([]byte, error) {
  3565  	type NoMethod ListGroupsResponse
  3566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3567  }
  3568  
  3569  // ListImportDataFilesResponse: Response for listing payload files of an import
  3570  // job.
  3571  type ListImportDataFilesResponse struct {
  3572  	// ImportDataFiles: The list of import data files.
  3573  	ImportDataFiles []*ImportDataFile `json:"importDataFiles,omitempty"`
  3574  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  3575  	// page. If this field is omitted, there are no subsequent pages.
  3576  	NextPageToken string `json:"nextPageToken,omitempty"`
  3577  	// Unreachable: Locations that could not be reached.
  3578  	Unreachable []string `json:"unreachable,omitempty"`
  3579  
  3580  	// ServerResponse contains the HTTP response code and headers from the server.
  3581  	googleapi.ServerResponse `json:"-"`
  3582  	// ForceSendFields is a list of field names (e.g. "ImportDataFiles") to
  3583  	// unconditionally include in API requests. By default, fields with empty or
  3584  	// default values are omitted from API requests. See
  3585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3586  	// details.
  3587  	ForceSendFields []string `json:"-"`
  3588  	// NullFields is a list of field names (e.g. "ImportDataFiles") to include in
  3589  	// API requests with the JSON null value. By default, fields with empty values
  3590  	// are omitted from API requests. See
  3591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3592  	NullFields []string `json:"-"`
  3593  }
  3594  
  3595  func (s *ListImportDataFilesResponse) MarshalJSON() ([]byte, error) {
  3596  	type NoMethod ListImportDataFilesResponse
  3597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3598  }
  3599  
  3600  // ListImportJobsResponse: A response for listing import jobs.
  3601  type ListImportJobsResponse struct {
  3602  	// ImportJobs: The list of import jobs.
  3603  	ImportJobs []*ImportJob `json:"importJobs,omitempty"`
  3604  	// NextPageToken: A token identifying a page of results the server should
  3605  	// return.
  3606  	NextPageToken string `json:"nextPageToken,omitempty"`
  3607  	// Unreachable: Locations that could not be reached.
  3608  	Unreachable []string `json:"unreachable,omitempty"`
  3609  
  3610  	// ServerResponse contains the HTTP response code and headers from the server.
  3611  	googleapi.ServerResponse `json:"-"`
  3612  	// ForceSendFields is a list of field names (e.g. "ImportJobs") to
  3613  	// unconditionally include in API requests. By default, fields with empty or
  3614  	// default values are omitted from API requests. See
  3615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3616  	// details.
  3617  	ForceSendFields []string `json:"-"`
  3618  	// NullFields is a list of field names (e.g. "ImportJobs") to include in API
  3619  	// requests with the JSON null value. By default, fields with empty values are
  3620  	// omitted from API requests. See
  3621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3622  	NullFields []string `json:"-"`
  3623  }
  3624  
  3625  func (s *ListImportJobsResponse) MarshalJSON() ([]byte, error) {
  3626  	type NoMethod ListImportJobsResponse
  3627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3628  }
  3629  
  3630  // ListLocationsResponse: The response message for Locations.ListLocations.
  3631  type ListLocationsResponse struct {
  3632  	// Locations: A list of locations that matches the specified filter in the
  3633  	// request.
  3634  	Locations []*Location `json:"locations,omitempty"`
  3635  	// NextPageToken: The standard List next-page token.
  3636  	NextPageToken string `json:"nextPageToken,omitempty"`
  3637  
  3638  	// ServerResponse contains the HTTP response code and headers from the server.
  3639  	googleapi.ServerResponse `json:"-"`
  3640  	// ForceSendFields is a list of field names (e.g. "Locations") to
  3641  	// unconditionally include in API requests. By default, fields with empty or
  3642  	// default values are omitted from API requests. See
  3643  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3644  	// details.
  3645  	ForceSendFields []string `json:"-"`
  3646  	// NullFields is a list of field names (e.g. "Locations") to include in API
  3647  	// requests with the JSON null value. By default, fields with empty values are
  3648  	// omitted from API requests. See
  3649  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3650  	NullFields []string `json:"-"`
  3651  }
  3652  
  3653  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  3654  	type NoMethod ListLocationsResponse
  3655  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3656  }
  3657  
  3658  // ListOperationsResponse: The response message for Operations.ListOperations.
  3659  type ListOperationsResponse struct {
  3660  	// NextPageToken: The standard List next-page token.
  3661  	NextPageToken string `json:"nextPageToken,omitempty"`
  3662  	// Operations: A list of operations that matches the specified filter in the
  3663  	// request.
  3664  	Operations []*Operation `json:"operations,omitempty"`
  3665  
  3666  	// ServerResponse contains the HTTP response code and headers from the server.
  3667  	googleapi.ServerResponse `json:"-"`
  3668  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3669  	// unconditionally include in API requests. By default, fields with empty or
  3670  	// default values are omitted from API requests. See
  3671  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3672  	// details.
  3673  	ForceSendFields []string `json:"-"`
  3674  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3675  	// requests with the JSON null value. By default, fields with empty values are
  3676  	// omitted from API requests. See
  3677  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3678  	NullFields []string `json:"-"`
  3679  }
  3680  
  3681  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  3682  	type NoMethod ListOperationsResponse
  3683  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3684  }
  3685  
  3686  // ListPreferenceSetsResponse: Response message for listing preference sets.
  3687  type ListPreferenceSetsResponse struct {
  3688  	// NextPageToken: A token identifying a page of results the server should
  3689  	// return.
  3690  	NextPageToken string `json:"nextPageToken,omitempty"`
  3691  	// PreferenceSets: The list of PreferenceSets
  3692  	PreferenceSets []*PreferenceSet `json:"preferenceSets,omitempty"`
  3693  	// Unreachable: Locations that could not be reached.
  3694  	Unreachable []string `json:"unreachable,omitempty"`
  3695  
  3696  	// ServerResponse contains the HTTP response code and headers from the server.
  3697  	googleapi.ServerResponse `json:"-"`
  3698  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3699  	// unconditionally include in API requests. By default, fields with empty or
  3700  	// default values are omitted from API requests. See
  3701  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3702  	// details.
  3703  	ForceSendFields []string `json:"-"`
  3704  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3705  	// requests with the JSON null value. By default, fields with empty values are
  3706  	// omitted from API requests. See
  3707  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3708  	NullFields []string `json:"-"`
  3709  }
  3710  
  3711  func (s *ListPreferenceSetsResponse) MarshalJSON() ([]byte, error) {
  3712  	type NoMethod ListPreferenceSetsResponse
  3713  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3714  }
  3715  
  3716  // ListReportConfigsResponse: Response message for listing report configs.
  3717  type ListReportConfigsResponse struct {
  3718  	// NextPageToken: A token identifying a page of results the server should
  3719  	// return.
  3720  	NextPageToken string `json:"nextPageToken,omitempty"`
  3721  	// ReportConfigs: A list of report configs.
  3722  	ReportConfigs []*ReportConfig `json:"reportConfigs,omitempty"`
  3723  	// Unreachable: Locations that could not be reached.
  3724  	Unreachable []string `json:"unreachable,omitempty"`
  3725  
  3726  	// ServerResponse contains the HTTP response code and headers from the server.
  3727  	googleapi.ServerResponse `json:"-"`
  3728  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3729  	// unconditionally include in API requests. By default, fields with empty or
  3730  	// default values are omitted from API requests. See
  3731  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3732  	// details.
  3733  	ForceSendFields []string `json:"-"`
  3734  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3735  	// requests with the JSON null value. By default, fields with empty values are
  3736  	// omitted from API requests. See
  3737  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3738  	NullFields []string `json:"-"`
  3739  }
  3740  
  3741  func (s *ListReportConfigsResponse) MarshalJSON() ([]byte, error) {
  3742  	type NoMethod ListReportConfigsResponse
  3743  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3744  }
  3745  
  3746  // ListReportsResponse: Response message for listing Reports.
  3747  type ListReportsResponse struct {
  3748  	// NextPageToken: A token identifying a page of results the server should
  3749  	// return.
  3750  	NextPageToken string `json:"nextPageToken,omitempty"`
  3751  	// Reports: The list of Reports.
  3752  	Reports []*Report `json:"reports,omitempty"`
  3753  	// Unreachable: Locations that could not be reached.
  3754  	Unreachable []string `json:"unreachable,omitempty"`
  3755  
  3756  	// ServerResponse contains the HTTP response code and headers from the server.
  3757  	googleapi.ServerResponse `json:"-"`
  3758  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3759  	// unconditionally include in API requests. By default, fields with empty or
  3760  	// default values are omitted from API requests. See
  3761  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3762  	// details.
  3763  	ForceSendFields []string `json:"-"`
  3764  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3765  	// requests with the JSON null value. By default, fields with empty values are
  3766  	// omitted from API requests. See
  3767  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3768  	NullFields []string `json:"-"`
  3769  }
  3770  
  3771  func (s *ListReportsResponse) MarshalJSON() ([]byte, error) {
  3772  	type NoMethod ListReportsResponse
  3773  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3774  }
  3775  
  3776  // ListSourcesResponse: Response message for listing sources.
  3777  type ListSourcesResponse struct {
  3778  	// NextPageToken: A token identifying a page of results the server should
  3779  	// return.
  3780  	NextPageToken string `json:"nextPageToken,omitempty"`
  3781  	// Sources: The list of sources.
  3782  	Sources []*Source `json:"sources,omitempty"`
  3783  	// Unreachable: Locations that could not be reached.
  3784  	Unreachable []string `json:"unreachable,omitempty"`
  3785  
  3786  	// ServerResponse contains the HTTP response code and headers from the server.
  3787  	googleapi.ServerResponse `json:"-"`
  3788  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3789  	// unconditionally include in API requests. By default, fields with empty or
  3790  	// default values are omitted from API requests. See
  3791  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3792  	// details.
  3793  	ForceSendFields []string `json:"-"`
  3794  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  3795  	// requests with the JSON null value. By default, fields with empty values are
  3796  	// omitted from API requests. See
  3797  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3798  	NullFields []string `json:"-"`
  3799  }
  3800  
  3801  func (s *ListSourcesResponse) MarshalJSON() ([]byte, error) {
  3802  	type NoMethod ListSourcesResponse
  3803  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3804  }
  3805  
  3806  // Location: A resource that represents a Google Cloud location.
  3807  type Location struct {
  3808  	// DisplayName: The friendly name for this location, typically a nearby city
  3809  	// name. For example, "Tokyo".
  3810  	DisplayName string `json:"displayName,omitempty"`
  3811  	// Labels: Cross-service attributes for the location. For example
  3812  	// {"cloud.googleapis.com/region": "us-east1"}
  3813  	Labels map[string]string `json:"labels,omitempty"`
  3814  	// LocationId: The canonical id for this location. For example: "us-east1".
  3815  	LocationId string `json:"locationId,omitempty"`
  3816  	// Metadata: Service-specific metadata. For example the available capacity at
  3817  	// the given location.
  3818  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3819  	// Name: Resource name for the location, which may vary between
  3820  	// implementations. For example:
  3821  	// "projects/example-project/locations/us-east1"
  3822  	Name string `json:"name,omitempty"`
  3823  
  3824  	// ServerResponse contains the HTTP response code and headers from the server.
  3825  	googleapi.ServerResponse `json:"-"`
  3826  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3827  	// unconditionally include in API requests. By default, fields with empty or
  3828  	// default values are omitted from API requests. See
  3829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3830  	// details.
  3831  	ForceSendFields []string `json:"-"`
  3832  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  3833  	// requests with the JSON null value. By default, fields with empty values are
  3834  	// omitted from API requests. See
  3835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3836  	NullFields []string `json:"-"`
  3837  }
  3838  
  3839  func (s *Location) MarshalJSON() ([]byte, error) {
  3840  	type NoMethod Location
  3841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3842  }
  3843  
  3844  // MachinePreferences: The type of machines to consider when calculating
  3845  // virtual machine migration insights and recommendations. Not all machine
  3846  // types are available in all zones and regions.
  3847  type MachinePreferences struct {
  3848  	// AllowedMachineSeries: Compute Engine machine series to consider for insights
  3849  	// and recommendations. If empty, no restriction is applied on the machine
  3850  	// series.
  3851  	AllowedMachineSeries []*MachineSeries `json:"allowedMachineSeries,omitempty"`
  3852  	// ForceSendFields is a list of field names (e.g. "AllowedMachineSeries") to
  3853  	// unconditionally include in API requests. By default, fields with empty or
  3854  	// default values are omitted from API requests. See
  3855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3856  	// details.
  3857  	ForceSendFields []string `json:"-"`
  3858  	// NullFields is a list of field names (e.g. "AllowedMachineSeries") to include
  3859  	// in API requests with the JSON null value. By default, fields with empty
  3860  	// values are omitted from API requests. See
  3861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3862  	NullFields []string `json:"-"`
  3863  }
  3864  
  3865  func (s *MachinePreferences) MarshalJSON() ([]byte, error) {
  3866  	type NoMethod MachinePreferences
  3867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3868  }
  3869  
  3870  // MachineSeries: A machine series, for a target product (e.g. Compute Engine,
  3871  // Google Cloud VMware Engine).
  3872  type MachineSeries struct {
  3873  	// Code: Code to identify a machine series. Consult this for more details on
  3874  	// the available series for Compute Engine:
  3875  	// https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison
  3876  	// Consult this for more details on the available series for Google Cloud
  3877  	// VMware Engine: https://cloud.google.com/vmware-engine/pricing
  3878  	Code string `json:"code,omitempty"`
  3879  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  3880  	// include in API requests. By default, fields with empty or default values are
  3881  	// omitted from API requests. See
  3882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3883  	// details.
  3884  	ForceSendFields []string `json:"-"`
  3885  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  3886  	// with the JSON null value. By default, fields with empty values are omitted
  3887  	// from API requests. See
  3888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3889  	NullFields []string `json:"-"`
  3890  }
  3891  
  3892  func (s *MachineSeries) MarshalJSON() ([]byte, error) {
  3893  	type NoMethod MachineSeries
  3894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3895  }
  3896  
  3897  // MemoryUsageSample: Memory usage sample.
  3898  type MemoryUsageSample struct {
  3899  	// UtilizedPercentage: Percentage of system memory utilized. Must be in the
  3900  	// interval [0, 100].
  3901  	UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"`
  3902  	// ForceSendFields is a list of field names (e.g. "UtilizedPercentage") to
  3903  	// unconditionally include in API requests. By default, fields with empty or
  3904  	// default values are omitted from API requests. See
  3905  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3906  	// details.
  3907  	ForceSendFields []string `json:"-"`
  3908  	// NullFields is a list of field names (e.g. "UtilizedPercentage") to include
  3909  	// in API requests with the JSON null value. By default, fields with empty
  3910  	// values are omitted from API requests. See
  3911  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3912  	NullFields []string `json:"-"`
  3913  }
  3914  
  3915  func (s *MemoryUsageSample) MarshalJSON() ([]byte, error) {
  3916  	type NoMethod MemoryUsageSample
  3917  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3918  }
  3919  
  3920  func (s *MemoryUsageSample) UnmarshalJSON(data []byte) error {
  3921  	type NoMethod MemoryUsageSample
  3922  	var s1 struct {
  3923  		UtilizedPercentage gensupport.JSONFloat64 `json:"utilizedPercentage"`
  3924  		*NoMethod
  3925  	}
  3926  	s1.NoMethod = (*NoMethod)(s)
  3927  	if err := json.Unmarshal(data, &s1); err != nil {
  3928  		return err
  3929  	}
  3930  	s.UtilizedPercentage = float64(s1.UtilizedPercentage)
  3931  	return nil
  3932  }
  3933  
  3934  // MigrationInsight: An insight about potential migrations for an asset.
  3935  type MigrationInsight struct {
  3936  	// CloudDatabaseTarget: Output only. A Cloud database migration target.
  3937  	CloudDatabaseTarget *CloudDatabaseMigrationTarget `json:"cloudDatabaseTarget,omitempty"`
  3938  	// ComputeEngineSoleTenantTarget: Output only. A Google Compute Engine Sole
  3939  	// Tenant target.
  3940  	ComputeEngineSoleTenantTarget *ComputeEngineSoleTenantMigrationTarget `json:"computeEngineSoleTenantTarget,omitempty"`
  3941  	// ComputeEngineTarget: Output only. A Google Compute Engine target.
  3942  	ComputeEngineTarget *ComputeEngineMigrationTarget `json:"computeEngineTarget,omitempty"`
  3943  	// Fit: Output only. Description of how well the asset this insight is
  3944  	// associated with fits the proposed migration.
  3945  	Fit *FitDescriptor `json:"fit,omitempty"`
  3946  	// GkeTarget: Output only. A Google Kubernetes Engine target.
  3947  	GkeTarget *GoogleKubernetesEngineMigrationTarget `json:"gkeTarget,omitempty"`
  3948  	// Issues: Output only. Issues associated with this migration.
  3949  	Issues []*Issue `json:"issues,omitempty"`
  3950  	// VmwareEngineTarget: Output only. A VMWare Engine target.
  3951  	VmwareEngineTarget *VmwareEngineMigrationTarget `json:"vmwareEngineTarget,omitempty"`
  3952  	// ForceSendFields is a list of field names (e.g. "CloudDatabaseTarget") to
  3953  	// unconditionally include in API requests. By default, fields with empty or
  3954  	// default values are omitted from API requests. See
  3955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3956  	// details.
  3957  	ForceSendFields []string `json:"-"`
  3958  	// NullFields is a list of field names (e.g. "CloudDatabaseTarget") to include
  3959  	// in API requests with the JSON null value. By default, fields with empty
  3960  	// values are omitted from API requests. See
  3961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3962  	NullFields []string `json:"-"`
  3963  }
  3964  
  3965  func (s *MigrationInsight) MarshalJSON() ([]byte, error) {
  3966  	type NoMethod MigrationInsight
  3967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3968  }
  3969  
  3970  // Money: Represents an amount of money with its currency type.
  3971  type Money struct {
  3972  	// CurrencyCode: The three-letter currency code defined in ISO 4217.
  3973  	CurrencyCode string `json:"currencyCode,omitempty"`
  3974  	// Nanos: Number of nano (10^-9) units of the amount. The value must be between
  3975  	// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`
  3976  	// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,
  3977  	// or negative. If `units` is negative, `nanos` must be negative or zero. For
  3978  	// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
  3979  	Nanos int64 `json:"nanos,omitempty"`
  3980  	// Units: The whole units of the amount. For example if `currencyCode` is
  3981  	// "USD", then 1 unit is one US dollar.
  3982  	Units int64 `json:"units,omitempty,string"`
  3983  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
  3984  	// unconditionally include in API requests. By default, fields with empty or
  3985  	// default values are omitted from API requests. See
  3986  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3987  	// details.
  3988  	ForceSendFields []string `json:"-"`
  3989  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
  3990  	// requests with the JSON null value. By default, fields with empty values are
  3991  	// omitted from API requests. See
  3992  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3993  	NullFields []string `json:"-"`
  3994  }
  3995  
  3996  func (s *Money) MarshalJSON() ([]byte, error) {
  3997  	type NoMethod Money
  3998  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3999  }
  4000  
  4001  // MySqlPlugin: MySql plugin.
  4002  type MySqlPlugin struct {
  4003  	// Enabled: Required. The plugin is active.
  4004  	Enabled bool `json:"enabled,omitempty"`
  4005  	// Plugin: Required. The plugin name.
  4006  	Plugin string `json:"plugin,omitempty"`
  4007  	// Version: Required. The plugin version.
  4008  	Version string `json:"version,omitempty"`
  4009  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  4010  	// include in API requests. By default, fields with empty or default values are
  4011  	// omitted from API requests. See
  4012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4013  	// details.
  4014  	ForceSendFields []string `json:"-"`
  4015  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  4016  	// requests with the JSON null value. By default, fields with empty values are
  4017  	// omitted from API requests. See
  4018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4019  	NullFields []string `json:"-"`
  4020  }
  4021  
  4022  func (s *MySqlPlugin) MarshalJSON() ([]byte, error) {
  4023  	type NoMethod MySqlPlugin
  4024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4025  }
  4026  
  4027  // MySqlProperty: MySql property.
  4028  type MySqlProperty struct {
  4029  	// Enabled: Required. The property is enabled.
  4030  	Enabled bool `json:"enabled,omitempty"`
  4031  	// NumericValue: Required. The property numeric value.
  4032  	NumericValue int64 `json:"numericValue,omitempty,string"`
  4033  	// Property: Required. The property name.
  4034  	Property string `json:"property,omitempty"`
  4035  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  4036  	// include in API requests. By default, fields with empty or default values are
  4037  	// omitted from API requests. See
  4038  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4039  	// details.
  4040  	ForceSendFields []string `json:"-"`
  4041  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  4042  	// requests with the JSON null value. By default, fields with empty values are
  4043  	// omitted from API requests. See
  4044  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4045  	NullFields []string `json:"-"`
  4046  }
  4047  
  4048  func (s *MySqlProperty) MarshalJSON() ([]byte, error) {
  4049  	type NoMethod MySqlProperty
  4050  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4051  }
  4052  
  4053  // MySqlSchemaDetails: Specific details for a Mysql database.
  4054  type MySqlSchemaDetails struct {
  4055  	// StorageEngines: Optional. Mysql storage engine tables.
  4056  	StorageEngines []*MySqlStorageEngineDetails `json:"storageEngines,omitempty"`
  4057  	// ForceSendFields is a list of field names (e.g. "StorageEngines") to
  4058  	// unconditionally include in API requests. By default, fields with empty or
  4059  	// default values are omitted from API requests. See
  4060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4061  	// details.
  4062  	ForceSendFields []string `json:"-"`
  4063  	// NullFields is a list of field names (e.g. "StorageEngines") to include in
  4064  	// API requests with the JSON null value. By default, fields with empty values
  4065  	// are omitted from API requests. See
  4066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4067  	NullFields []string `json:"-"`
  4068  }
  4069  
  4070  func (s *MySqlSchemaDetails) MarshalJSON() ([]byte, error) {
  4071  	type NoMethod MySqlSchemaDetails
  4072  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4073  }
  4074  
  4075  // MySqlStorageEngineDetails: Mysql storage engine tables.
  4076  type MySqlStorageEngineDetails struct {
  4077  	// EncryptedTableCount: Optional. The number of encrypted tables.
  4078  	EncryptedTableCount int64 `json:"encryptedTableCount,omitempty"`
  4079  	// Engine: Required. The storage engine.
  4080  	//
  4081  	// Possible values:
  4082  	//   "ENGINE_UNSPECIFIED" - Unspecified storage engine.
  4083  	//   "INNODB" - InnoDB.
  4084  	//   "MYISAM" - MyISAM.
  4085  	//   "MEMORY" - Memory.
  4086  	//   "CSV" - CSV.
  4087  	//   "ARCHIVE" - Archive.
  4088  	//   "BLACKHOLE" - Blackhole.
  4089  	//   "NDB" - NDB.
  4090  	//   "MERGE" - Merge.
  4091  	//   "FEDERATED" - Federated.
  4092  	//   "EXAMPLE" - Example.
  4093  	//   "OTHER" - Other.
  4094  	Engine string `json:"engine,omitempty"`
  4095  	// TableCount: Optional. The number of tables.
  4096  	TableCount int64 `json:"tableCount,omitempty"`
  4097  	// ForceSendFields is a list of field names (e.g. "EncryptedTableCount") to
  4098  	// unconditionally include in API requests. By default, fields with empty or
  4099  	// default values are omitted from API requests. See
  4100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4101  	// details.
  4102  	ForceSendFields []string `json:"-"`
  4103  	// NullFields is a list of field names (e.g. "EncryptedTableCount") to include
  4104  	// in API requests with the JSON null value. By default, fields with empty
  4105  	// values are omitted from API requests. See
  4106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4107  	NullFields []string `json:"-"`
  4108  }
  4109  
  4110  func (s *MySqlStorageEngineDetails) MarshalJSON() ([]byte, error) {
  4111  	type NoMethod MySqlStorageEngineDetails
  4112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4113  }
  4114  
  4115  // MySqlVariable: MySql variable.
  4116  type MySqlVariable struct {
  4117  	// Category: Required. The variable category.
  4118  	Category string `json:"category,omitempty"`
  4119  	// Value: Required. The variable value.
  4120  	Value string `json:"value,omitempty"`
  4121  	// Variable: Required. The variable name.
  4122  	Variable string `json:"variable,omitempty"`
  4123  	// ForceSendFields is a list of field names (e.g. "Category") to
  4124  	// unconditionally include in API requests. By default, fields with empty or
  4125  	// default values are omitted from API requests. See
  4126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4127  	// details.
  4128  	ForceSendFields []string `json:"-"`
  4129  	// NullFields is a list of field names (e.g. "Category") to include in API
  4130  	// requests with the JSON null value. By default, fields with empty values are
  4131  	// omitted from API requests. See
  4132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4133  	NullFields []string `json:"-"`
  4134  }
  4135  
  4136  func (s *MySqlVariable) MarshalJSON() ([]byte, error) {
  4137  	type NoMethod MySqlVariable
  4138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4139  }
  4140  
  4141  // MysqlDatabaseDeployment: Specific details for a Mysql database deployment.
  4142  type MysqlDatabaseDeployment struct {
  4143  	// Plugins: Optional. List of MySql plugins.
  4144  	Plugins []*MySqlPlugin `json:"plugins,omitempty"`
  4145  	// Properties: Optional. List of MySql properties.
  4146  	Properties []*MySqlProperty `json:"properties,omitempty"`
  4147  	// ResourceGroupsCount: Optional. Number of resource groups.
  4148  	ResourceGroupsCount int64 `json:"resourceGroupsCount,omitempty"`
  4149  	// Variables: Optional. List of MySql variables.
  4150  	Variables []*MySqlVariable `json:"variables,omitempty"`
  4151  	// ForceSendFields is a list of field names (e.g. "Plugins") to unconditionally
  4152  	// include in API requests. By default, fields with empty or default values are
  4153  	// omitted from API requests. See
  4154  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4155  	// details.
  4156  	ForceSendFields []string `json:"-"`
  4157  	// NullFields is a list of field names (e.g. "Plugins") to include in API
  4158  	// requests with the JSON null value. By default, fields with empty values are
  4159  	// omitted from API requests. See
  4160  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4161  	NullFields []string `json:"-"`
  4162  }
  4163  
  4164  func (s *MysqlDatabaseDeployment) MarshalJSON() ([]byte, error) {
  4165  	type NoMethod MysqlDatabaseDeployment
  4166  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4167  }
  4168  
  4169  // NetworkAdapterDetails: Details of network adapter.
  4170  type NetworkAdapterDetails struct {
  4171  	// AdapterType: Network adapter type (e.g. VMXNET3).
  4172  	AdapterType string `json:"adapterType,omitempty"`
  4173  	// Addresses: NetworkAddressList
  4174  	Addresses *NetworkAddressList `json:"addresses,omitempty"`
  4175  	// MacAddress: MAC address.
  4176  	MacAddress string `json:"macAddress,omitempty"`
  4177  	// ForceSendFields is a list of field names (e.g. "AdapterType") to
  4178  	// unconditionally include in API requests. By default, fields with empty or
  4179  	// default values are omitted from API requests. See
  4180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4181  	// details.
  4182  	ForceSendFields []string `json:"-"`
  4183  	// NullFields is a list of field names (e.g. "AdapterType") to include in API
  4184  	// requests with the JSON null value. By default, fields with empty values are
  4185  	// omitted from API requests. See
  4186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4187  	NullFields []string `json:"-"`
  4188  }
  4189  
  4190  func (s *NetworkAdapterDetails) MarshalJSON() ([]byte, error) {
  4191  	type NoMethod NetworkAdapterDetails
  4192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4193  }
  4194  
  4195  // NetworkAdapterList: List of network adapters.
  4196  type NetworkAdapterList struct {
  4197  	// NetworkAdapters: Network adapter descriptions.
  4198  	NetworkAdapters []*NetworkAdapterDetails `json:"networkAdapters,omitempty"`
  4199  	// ForceSendFields is a list of field names (e.g. "NetworkAdapters") to
  4200  	// unconditionally include in API requests. By default, fields with empty or
  4201  	// default values are omitted from API requests. See
  4202  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4203  	// details.
  4204  	ForceSendFields []string `json:"-"`
  4205  	// NullFields is a list of field names (e.g. "NetworkAdapters") to include in
  4206  	// API requests with the JSON null value. By default, fields with empty values
  4207  	// are omitted from API requests. See
  4208  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4209  	NullFields []string `json:"-"`
  4210  }
  4211  
  4212  func (s *NetworkAdapterList) MarshalJSON() ([]byte, error) {
  4213  	type NoMethod NetworkAdapterList
  4214  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4215  }
  4216  
  4217  // NetworkAddress: Details of network address.
  4218  type NetworkAddress struct {
  4219  	// Assignment: Whether DHCP is used to assign addresses.
  4220  	//
  4221  	// Possible values:
  4222  	//   "ADDRESS_ASSIGNMENT_UNSPECIFIED" - Unknown (default value).
  4223  	//   "ADDRESS_ASSIGNMENT_STATIC" - Staticly assigned IP.
  4224  	//   "ADDRESS_ASSIGNMENT_DHCP" - Dynamically assigned IP (DHCP).
  4225  	Assignment string `json:"assignment,omitempty"`
  4226  	// Bcast: Broadcast address.
  4227  	Bcast string `json:"bcast,omitempty"`
  4228  	// Fqdn: Fully qualified domain name.
  4229  	Fqdn string `json:"fqdn,omitempty"`
  4230  	// IpAddress: Assigned or configured IP Address.
  4231  	IpAddress string `json:"ipAddress,omitempty"`
  4232  	// SubnetMask: Subnet mask.
  4233  	SubnetMask string `json:"subnetMask,omitempty"`
  4234  	// ForceSendFields is a list of field names (e.g. "Assignment") to
  4235  	// unconditionally include in API requests. By default, fields with empty or
  4236  	// default values are omitted from API requests. See
  4237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4238  	// details.
  4239  	ForceSendFields []string `json:"-"`
  4240  	// NullFields is a list of field names (e.g. "Assignment") to include in API
  4241  	// requests with the JSON null value. By default, fields with empty values are
  4242  	// omitted from API requests. See
  4243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4244  	NullFields []string `json:"-"`
  4245  }
  4246  
  4247  func (s *NetworkAddress) MarshalJSON() ([]byte, error) {
  4248  	type NoMethod NetworkAddress
  4249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4250  }
  4251  
  4252  // NetworkAddressList: List of allocated/assigned network addresses.
  4253  type NetworkAddressList struct {
  4254  	// Addresses: Network address entries.
  4255  	Addresses []*NetworkAddress `json:"addresses,omitempty"`
  4256  	// ForceSendFields is a list of field names (e.g. "Addresses") to
  4257  	// unconditionally include in API requests. By default, fields with empty or
  4258  	// default values are omitted from API requests. See
  4259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4260  	// details.
  4261  	ForceSendFields []string `json:"-"`
  4262  	// NullFields is a list of field names (e.g. "Addresses") to include in API
  4263  	// requests with the JSON null value. By default, fields with empty values are
  4264  	// omitted from API requests. See
  4265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4266  	NullFields []string `json:"-"`
  4267  }
  4268  
  4269  func (s *NetworkAddressList) MarshalJSON() ([]byte, error) {
  4270  	type NoMethod NetworkAddressList
  4271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4272  }
  4273  
  4274  type NetworkConnection struct {
  4275  	// LocalIpAddress: Local IP address.
  4276  	LocalIpAddress string `json:"localIpAddress,omitempty"`
  4277  	// LocalPort: Local port.
  4278  	LocalPort int64 `json:"localPort,omitempty"`
  4279  	// Pid: Process ID.
  4280  	Pid int64 `json:"pid,omitempty,string"`
  4281  	// ProcessName: Process or service name.
  4282  	ProcessName string `json:"processName,omitempty"`
  4283  	// Protocol: Connection protocol (e.g. TCP/UDP).
  4284  	Protocol string `json:"protocol,omitempty"`
  4285  	// RemoteIpAddress: Remote IP address.
  4286  	RemoteIpAddress string `json:"remoteIpAddress,omitempty"`
  4287  	// RemotePort: Remote port.
  4288  	RemotePort int64 `json:"remotePort,omitempty"`
  4289  	// State: Connection state (e.g. CONNECTED).
  4290  	State string `json:"state,omitempty"`
  4291  	// ForceSendFields is a list of field names (e.g. "LocalIpAddress") to
  4292  	// unconditionally include in API requests. By default, fields with empty or
  4293  	// default values are omitted from API requests. See
  4294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4295  	// details.
  4296  	ForceSendFields []string `json:"-"`
  4297  	// NullFields is a list of field names (e.g. "LocalIpAddress") to include in
  4298  	// API requests with the JSON null value. By default, fields with empty values
  4299  	// are omitted from API requests. See
  4300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4301  	NullFields []string `json:"-"`
  4302  }
  4303  
  4304  func (s *NetworkConnection) MarshalJSON() ([]byte, error) {
  4305  	type NoMethod NetworkConnection
  4306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4307  }
  4308  
  4309  // NetworkConnectionList: Network connection list.
  4310  type NetworkConnectionList struct {
  4311  	// Entries: Network connection entries.
  4312  	Entries []*NetworkConnection `json:"entries,omitempty"`
  4313  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4314  	// include in API requests. By default, fields with empty or default values are
  4315  	// omitted from API requests. See
  4316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4317  	// details.
  4318  	ForceSendFields []string `json:"-"`
  4319  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4320  	// requests with the JSON null value. By default, fields with empty values are
  4321  	// omitted from API requests. See
  4322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4323  	NullFields []string `json:"-"`
  4324  }
  4325  
  4326  func (s *NetworkConnectionList) MarshalJSON() ([]byte, error) {
  4327  	type NoMethod NetworkConnectionList
  4328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4329  }
  4330  
  4331  // NetworkUsageSample: Network usage sample. Values are across all network
  4332  // interfaces.
  4333  type NetworkUsageSample struct {
  4334  	// AverageEgressBps: Average network egress in B/s sampled over a short window.
  4335  	// Must be non-negative.
  4336  	AverageEgressBps float64 `json:"averageEgressBps,omitempty"`
  4337  	// AverageIngressBps: Average network ingress in B/s sampled over a short
  4338  	// window. Must be non-negative.
  4339  	AverageIngressBps float64 `json:"averageIngressBps,omitempty"`
  4340  	// ForceSendFields is a list of field names (e.g. "AverageEgressBps") to
  4341  	// unconditionally include in API requests. By default, fields with empty or
  4342  	// default values are omitted from API requests. See
  4343  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4344  	// details.
  4345  	ForceSendFields []string `json:"-"`
  4346  	// NullFields is a list of field names (e.g. "AverageEgressBps") to include in
  4347  	// API requests with the JSON null value. By default, fields with empty values
  4348  	// are omitted from API requests. See
  4349  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4350  	NullFields []string `json:"-"`
  4351  }
  4352  
  4353  func (s *NetworkUsageSample) MarshalJSON() ([]byte, error) {
  4354  	type NoMethod NetworkUsageSample
  4355  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4356  }
  4357  
  4358  func (s *NetworkUsageSample) UnmarshalJSON(data []byte) error {
  4359  	type NoMethod NetworkUsageSample
  4360  	var s1 struct {
  4361  		AverageEgressBps  gensupport.JSONFloat64 `json:"averageEgressBps"`
  4362  		AverageIngressBps gensupport.JSONFloat64 `json:"averageIngressBps"`
  4363  		*NoMethod
  4364  	}
  4365  	s1.NoMethod = (*NoMethod)(s)
  4366  	if err := json.Unmarshal(data, &s1); err != nil {
  4367  		return err
  4368  	}
  4369  	s.AverageEgressBps = float64(s1.AverageEgressBps)
  4370  	s.AverageIngressBps = float64(s1.AverageIngressBps)
  4371  	return nil
  4372  }
  4373  
  4374  // NfsExport: NFS export.
  4375  type NfsExport struct {
  4376  	// ExportDirectory: The directory being exported.
  4377  	ExportDirectory string `json:"exportDirectory,omitempty"`
  4378  	// Hosts: The hosts or networks to which the export is being shared.
  4379  	Hosts []string `json:"hosts,omitempty"`
  4380  	// ForceSendFields is a list of field names (e.g. "ExportDirectory") to
  4381  	// unconditionally include in API requests. By default, fields with empty or
  4382  	// default values are omitted from API requests. See
  4383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4384  	// details.
  4385  	ForceSendFields []string `json:"-"`
  4386  	// NullFields is a list of field names (e.g. "ExportDirectory") to include in
  4387  	// API requests with the JSON null value. By default, fields with empty values
  4388  	// are omitted from API requests. See
  4389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4390  	NullFields []string `json:"-"`
  4391  }
  4392  
  4393  func (s *NfsExport) MarshalJSON() ([]byte, error) {
  4394  	type NoMethod NfsExport
  4395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4396  }
  4397  
  4398  // NfsExportList: NFS exports.
  4399  type NfsExportList struct {
  4400  	// Entries: NFS export entries.
  4401  	Entries []*NfsExport `json:"entries,omitempty"`
  4402  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4403  	// include in API requests. By default, fields with empty or default values are
  4404  	// omitted from API requests. See
  4405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4406  	// details.
  4407  	ForceSendFields []string `json:"-"`
  4408  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4409  	// requests with the JSON null value. By default, fields with empty values are
  4410  	// omitted from API requests. See
  4411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4412  	NullFields []string `json:"-"`
  4413  }
  4414  
  4415  func (s *NfsExportList) MarshalJSON() ([]byte, error) {
  4416  	type NoMethod NfsExportList
  4417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4418  }
  4419  
  4420  // OpenFileDetails: Open file Information.
  4421  type OpenFileDetails struct {
  4422  	// Command: Opened file command.
  4423  	Command string `json:"command,omitempty"`
  4424  	// FilePath: Opened file file path.
  4425  	FilePath string `json:"filePath,omitempty"`
  4426  	// FileType: Opened file file type.
  4427  	FileType string `json:"fileType,omitempty"`
  4428  	// User: Opened file user.
  4429  	User string `json:"user,omitempty"`
  4430  	// ForceSendFields is a list of field names (e.g. "Command") to unconditionally
  4431  	// include in API requests. By default, fields with empty or default values are
  4432  	// omitted from API requests. See
  4433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4434  	// details.
  4435  	ForceSendFields []string `json:"-"`
  4436  	// NullFields is a list of field names (e.g. "Command") to include in API
  4437  	// requests with the JSON null value. By default, fields with empty values are
  4438  	// omitted from API requests. See
  4439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4440  	NullFields []string `json:"-"`
  4441  }
  4442  
  4443  func (s *OpenFileDetails) MarshalJSON() ([]byte, error) {
  4444  	type NoMethod OpenFileDetails
  4445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4446  }
  4447  
  4448  // OpenFileList: Open file list.
  4449  type OpenFileList struct {
  4450  	// Entries: Open file details entries.
  4451  	Entries []*OpenFileDetails `json:"entries,omitempty"`
  4452  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4453  	// include in API requests. By default, fields with empty or default values are
  4454  	// omitted from API requests. See
  4455  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4456  	// details.
  4457  	ForceSendFields []string `json:"-"`
  4458  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4459  	// requests with the JSON null value. By default, fields with empty values are
  4460  	// omitted from API requests. See
  4461  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4462  	NullFields []string `json:"-"`
  4463  }
  4464  
  4465  func (s *OpenFileList) MarshalJSON() ([]byte, error) {
  4466  	type NoMethod OpenFileList
  4467  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4468  }
  4469  
  4470  // Operation: This resource represents a long-running operation that is the
  4471  // result of a network API call.
  4472  type Operation struct {
  4473  	// Done: If the value is `false`, it means the operation is still in progress.
  4474  	// If `true`, the operation is completed, and either `error` or `response` is
  4475  	// available.
  4476  	Done bool `json:"done,omitempty"`
  4477  	// Error: The error result of the operation in case of failure or cancellation.
  4478  	Error *Status `json:"error,omitempty"`
  4479  	// Metadata: Service-specific metadata associated with the operation. It
  4480  	// typically contains progress information and common metadata such as create
  4481  	// time. Some services might not provide such metadata. Any method that returns
  4482  	// a long-running operation should document the metadata type, if any.
  4483  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  4484  	// Name: The server-assigned name, which is only unique within the same service
  4485  	// that originally returns it. If you use the default HTTP mapping, the `name`
  4486  	// should be a resource name ending with `operations/{unique_id}`.
  4487  	Name string `json:"name,omitempty"`
  4488  	// Response: The normal, successful response of the operation. If the original
  4489  	// method returns no data on success, such as `Delete`, the response is
  4490  	// `google.protobuf.Empty`. If the original method is standard
  4491  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  4492  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  4493  	// original method name. For example, if the original method name is
  4494  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  4495  	Response googleapi.RawMessage `json:"response,omitempty"`
  4496  
  4497  	// ServerResponse contains the HTTP response code and headers from the server.
  4498  	googleapi.ServerResponse `json:"-"`
  4499  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  4500  	// include in API requests. By default, fields with empty or default values are
  4501  	// omitted from API requests. See
  4502  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4503  	// details.
  4504  	ForceSendFields []string `json:"-"`
  4505  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  4506  	// with the JSON null value. By default, fields with empty values are omitted
  4507  	// from API requests. See
  4508  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4509  	NullFields []string `json:"-"`
  4510  }
  4511  
  4512  func (s *Operation) MarshalJSON() ([]byte, error) {
  4513  	type NoMethod Operation
  4514  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4515  }
  4516  
  4517  // OperationMetadata: Represents the metadata of the long-running operation.
  4518  type OperationMetadata struct {
  4519  	// ApiVersion: Output only. API version used to start the operation.
  4520  	ApiVersion string `json:"apiVersion,omitempty"`
  4521  	// CreateTime: Output only. The time the operation was created.
  4522  	CreateTime string `json:"createTime,omitempty"`
  4523  	// EndTime: Output only. The time the operation finished running.
  4524  	EndTime string `json:"endTime,omitempty"`
  4525  	// RequestedCancellation: Output only. Identifies whether the user has
  4526  	// requested cancellation of the operation. Operations that have been cancelled
  4527  	// successfully have Operation.error value with a google.rpc.Status.code of 1,
  4528  	// corresponding to `Code.CANCELLED`.
  4529  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  4530  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  4531  	StatusMessage string `json:"statusMessage,omitempty"`
  4532  	// Target: Output only. Server-defined resource path for the target of the
  4533  	// operation.
  4534  	Target string `json:"target,omitempty"`
  4535  	// Verb: Output only. Name of the verb executed by the operation.
  4536  	Verb string `json:"verb,omitempty"`
  4537  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  4538  	// unconditionally include in API requests. By default, fields with empty or
  4539  	// default values are omitted from API requests. See
  4540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4541  	// details.
  4542  	ForceSendFields []string `json:"-"`
  4543  	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
  4544  	// requests with the JSON null value. By default, fields with empty values are
  4545  	// omitted from API requests. See
  4546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4547  	NullFields []string `json:"-"`
  4548  }
  4549  
  4550  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  4551  	type NoMethod OperationMetadata
  4552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4553  }
  4554  
  4555  // PayloadFile: Payload file for inline import job payload.
  4556  type PayloadFile struct {
  4557  	// Data: The file data.
  4558  	Data string `json:"data,omitempty"`
  4559  	// Name: The file name.
  4560  	Name string `json:"name,omitempty"`
  4561  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  4562  	// include in API requests. By default, fields with empty or default values are
  4563  	// omitted from API requests. See
  4564  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4565  	// details.
  4566  	ForceSendFields []string `json:"-"`
  4567  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  4568  	// with the JSON null value. By default, fields with empty values are omitted
  4569  	// from API requests. See
  4570  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4571  	NullFields []string `json:"-"`
  4572  }
  4573  
  4574  func (s *PayloadFile) MarshalJSON() ([]byte, error) {
  4575  	type NoMethod PayloadFile
  4576  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4577  }
  4578  
  4579  // PerformanceSample: Performance data sample.
  4580  type PerformanceSample struct {
  4581  	// Cpu: CPU usage sample.
  4582  	Cpu *CpuUsageSample `json:"cpu,omitempty"`
  4583  	// Disk: Disk usage sample.
  4584  	Disk *DiskUsageSample `json:"disk,omitempty"`
  4585  	// Memory: Memory usage sample.
  4586  	Memory *MemoryUsageSample `json:"memory,omitempty"`
  4587  	// Network: Network usage sample.
  4588  	Network *NetworkUsageSample `json:"network,omitempty"`
  4589  	// SampleTime: Time the sample was collected. If omitted, the frame report time
  4590  	// will be used.
  4591  	SampleTime string `json:"sampleTime,omitempty"`
  4592  	// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally
  4593  	// include in API requests. By default, fields with empty or default values are
  4594  	// omitted from API requests. See
  4595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4596  	// details.
  4597  	ForceSendFields []string `json:"-"`
  4598  	// NullFields is a list of field names (e.g. "Cpu") to include in API requests
  4599  	// with the JSON null value. By default, fields with empty values are omitted
  4600  	// from API requests. See
  4601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4602  	NullFields []string `json:"-"`
  4603  }
  4604  
  4605  func (s *PerformanceSample) MarshalJSON() ([]byte, error) {
  4606  	type NoMethod PerformanceSample
  4607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4608  }
  4609  
  4610  // PhysicalPlatformDetails: Platform specific details for Physical Machines.
  4611  type PhysicalPlatformDetails struct {
  4612  	// Location: Free text representation of the machine location. The format of
  4613  	// this field should not be relied on. Different machines in the same location
  4614  	// may have different string values for this field.
  4615  	Location string `json:"location,omitempty"`
  4616  	// ForceSendFields is a list of field names (e.g. "Location") to
  4617  	// unconditionally include in API requests. By default, fields with empty or
  4618  	// default values are 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. "Location") to include in API
  4623  	// requests with the JSON null value. By default, fields with empty values are
  4624  	// omitted 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 *PhysicalPlatformDetails) MarshalJSON() ([]byte, error) {
  4630  	type NoMethod PhysicalPlatformDetails
  4631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4632  }
  4633  
  4634  // PlatformDetails: Information about the platform.
  4635  type PlatformDetails struct {
  4636  	// AwsEc2Details: AWS EC2 specific details.
  4637  	AwsEc2Details *AwsEc2PlatformDetails `json:"awsEc2Details,omitempty"`
  4638  	// AzureVmDetails: Azure VM specific details.
  4639  	AzureVmDetails *AzureVmPlatformDetails `json:"azureVmDetails,omitempty"`
  4640  	// GenericDetails: Generic platform details.
  4641  	GenericDetails *GenericPlatformDetails `json:"genericDetails,omitempty"`
  4642  	// PhysicalDetails: Physical machines platform details.
  4643  	PhysicalDetails *PhysicalPlatformDetails `json:"physicalDetails,omitempty"`
  4644  	// VmwareDetails: VMware specific details.
  4645  	VmwareDetails *VmwarePlatformDetails `json:"vmwareDetails,omitempty"`
  4646  	// ForceSendFields is a list of field names (e.g. "AwsEc2Details") to
  4647  	// unconditionally include in API requests. By default, fields with empty or
  4648  	// default values are omitted from API requests. See
  4649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4650  	// details.
  4651  	ForceSendFields []string `json:"-"`
  4652  	// NullFields is a list of field names (e.g. "AwsEc2Details") to include in API
  4653  	// requests with the JSON null value. By default, fields with empty values are
  4654  	// omitted from API requests. See
  4655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4656  	NullFields []string `json:"-"`
  4657  }
  4658  
  4659  func (s *PlatformDetails) MarshalJSON() ([]byte, error) {
  4660  	type NoMethod PlatformDetails
  4661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4662  }
  4663  
  4664  // PostgreSqlDatabaseDeployment: Specific details for a PostgreSQL database
  4665  // deployment.
  4666  type PostgreSqlDatabaseDeployment struct {
  4667  	// Properties: Optional. List of PostgreSql properties.
  4668  	Properties []*PostgreSqlProperty `json:"properties,omitempty"`
  4669  	// Settings: Optional. List of PostgreSql settings.
  4670  	Settings []*PostgreSqlSetting `json:"settings,omitempty"`
  4671  	// ForceSendFields is a list of field names (e.g. "Properties") to
  4672  	// unconditionally include in API requests. By default, fields with empty or
  4673  	// default values are omitted from API requests. See
  4674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4675  	// details.
  4676  	ForceSendFields []string `json:"-"`
  4677  	// NullFields is a list of field names (e.g. "Properties") to include in API
  4678  	// requests with the JSON null value. By default, fields with empty values are
  4679  	// omitted from API requests. See
  4680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4681  	NullFields []string `json:"-"`
  4682  }
  4683  
  4684  func (s *PostgreSqlDatabaseDeployment) MarshalJSON() ([]byte, error) {
  4685  	type NoMethod PostgreSqlDatabaseDeployment
  4686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4687  }
  4688  
  4689  // PostgreSqlExtension: PostgreSql extension.
  4690  type PostgreSqlExtension struct {
  4691  	// Extension: Required. The extension name.
  4692  	Extension string `json:"extension,omitempty"`
  4693  	// Version: Required. The extension version.
  4694  	Version string `json:"version,omitempty"`
  4695  	// ForceSendFields is a list of field names (e.g. "Extension") to
  4696  	// unconditionally include in API requests. By default, fields with empty or
  4697  	// default values are omitted from API requests. See
  4698  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4699  	// details.
  4700  	ForceSendFields []string `json:"-"`
  4701  	// NullFields is a list of field names (e.g. "Extension") to include in API
  4702  	// requests with the JSON null value. By default, fields with empty values are
  4703  	// omitted from API requests. See
  4704  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4705  	NullFields []string `json:"-"`
  4706  }
  4707  
  4708  func (s *PostgreSqlExtension) MarshalJSON() ([]byte, error) {
  4709  	type NoMethod PostgreSqlExtension
  4710  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4711  }
  4712  
  4713  // PostgreSqlProperty: PostgreSql property.
  4714  type PostgreSqlProperty struct {
  4715  	// Enabled: Required. The property is enabled.
  4716  	Enabled bool `json:"enabled,omitempty"`
  4717  	// NumericValue: Required. The property numeric value.
  4718  	NumericValue int64 `json:"numericValue,omitempty,string"`
  4719  	// Property: Required. The property name.
  4720  	Property string `json:"property,omitempty"`
  4721  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  4722  	// include in API requests. By default, fields with empty or default values are
  4723  	// omitted from API requests. See
  4724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4725  	// details.
  4726  	ForceSendFields []string `json:"-"`
  4727  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  4728  	// requests with the JSON null value. By default, fields with empty values are
  4729  	// omitted from API requests. See
  4730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4731  	NullFields []string `json:"-"`
  4732  }
  4733  
  4734  func (s *PostgreSqlProperty) MarshalJSON() ([]byte, error) {
  4735  	type NoMethod PostgreSqlProperty
  4736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4737  }
  4738  
  4739  // PostgreSqlSchemaDetails: Specific details for a PostgreSql schema.
  4740  type PostgreSqlSchemaDetails struct {
  4741  	// ForeignTablesCount: Optional. PostgreSql foreign tables.
  4742  	ForeignTablesCount int64 `json:"foreignTablesCount,omitempty"`
  4743  	// PostgresqlExtensions: Optional. PostgreSql extensions.
  4744  	PostgresqlExtensions []*PostgreSqlExtension `json:"postgresqlExtensions,omitempty"`
  4745  	// ForceSendFields is a list of field names (e.g. "ForeignTablesCount") to
  4746  	// unconditionally include in API requests. By default, fields with empty or
  4747  	// default values are omitted from API requests. See
  4748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4749  	// details.
  4750  	ForceSendFields []string `json:"-"`
  4751  	// NullFields is a list of field names (e.g. "ForeignTablesCount") to include
  4752  	// in API requests with the JSON null value. By default, fields with empty
  4753  	// values are omitted from API requests. See
  4754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4755  	NullFields []string `json:"-"`
  4756  }
  4757  
  4758  func (s *PostgreSqlSchemaDetails) MarshalJSON() ([]byte, error) {
  4759  	type NoMethod PostgreSqlSchemaDetails
  4760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4761  }
  4762  
  4763  // PostgreSqlSetting: PostgreSql setting.
  4764  type PostgreSqlSetting struct {
  4765  	// BoolValue: Required. The setting boolean value.
  4766  	BoolValue bool `json:"boolValue,omitempty"`
  4767  	// IntValue: Required. The setting int value.
  4768  	IntValue int64 `json:"intValue,omitempty,string"`
  4769  	// RealValue: Required. The setting real value.
  4770  	RealValue float64 `json:"realValue,omitempty"`
  4771  	// Setting: Required. The setting name.
  4772  	Setting string `json:"setting,omitempty"`
  4773  	// Source: Required. The setting source.
  4774  	Source string `json:"source,omitempty"`
  4775  	// StringValue: Required. The setting string value. Notice that enum values are
  4776  	// stored as strings.
  4777  	StringValue string `json:"stringValue,omitempty"`
  4778  	// Unit: Optional. The setting unit.
  4779  	Unit string `json:"unit,omitempty"`
  4780  	// ForceSendFields is a list of field names (e.g. "BoolValue") to
  4781  	// unconditionally include in API requests. By default, fields with empty or
  4782  	// default values are omitted from API requests. See
  4783  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4784  	// details.
  4785  	ForceSendFields []string `json:"-"`
  4786  	// NullFields is a list of field names (e.g. "BoolValue") to include in API
  4787  	// requests with the JSON null value. By default, fields with empty values are
  4788  	// omitted from API requests. See
  4789  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4790  	NullFields []string `json:"-"`
  4791  }
  4792  
  4793  func (s *PostgreSqlSetting) MarshalJSON() ([]byte, error) {
  4794  	type NoMethod PostgreSqlSetting
  4795  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4796  }
  4797  
  4798  func (s *PostgreSqlSetting) UnmarshalJSON(data []byte) error {
  4799  	type NoMethod PostgreSqlSetting
  4800  	var s1 struct {
  4801  		RealValue gensupport.JSONFloat64 `json:"realValue"`
  4802  		*NoMethod
  4803  	}
  4804  	s1.NoMethod = (*NoMethod)(s)
  4805  	if err := json.Unmarshal(data, &s1); err != nil {
  4806  		return err
  4807  	}
  4808  	s.RealValue = float64(s1.RealValue)
  4809  	return nil
  4810  }
  4811  
  4812  // PreferenceSet: The preferences that apply to all assets in a given context.
  4813  type PreferenceSet struct {
  4814  	// CreateTime: Output only. The timestamp when the preference set was created.
  4815  	CreateTime string `json:"createTime,omitempty"`
  4816  	// DatabasePreferences: Optional. A set of preferences that applies to all
  4817  	// databases in the context.
  4818  	DatabasePreferences *DatabasePreferences `json:"databasePreferences,omitempty"`
  4819  	// Description: A description of the preference set.
  4820  	Description string `json:"description,omitempty"`
  4821  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  4822  	DisplayName string `json:"displayName,omitempty"`
  4823  	// Name: Output only. Name of the preference set.
  4824  	Name string `json:"name,omitempty"`
  4825  	// RegionPreferences: Optional. Region preferences for assets using this
  4826  	// preference set. If you are unsure which value to set, the migration service
  4827  	// API region is often a good value to start with. If unspecified,
  4828  	// VirtualMachinePreferences.RegionPreferences is used.
  4829  	RegionPreferences *RegionPreferences `json:"regionPreferences,omitempty"`
  4830  	// UpdateTime: Output only. The timestamp when the preference set was last
  4831  	// updated.
  4832  	UpdateTime string `json:"updateTime,omitempty"`
  4833  	// VirtualMachinePreferences: A set of preferences that applies to all virtual
  4834  	// machines in the context.
  4835  	VirtualMachinePreferences *VirtualMachinePreferences `json:"virtualMachinePreferences,omitempty"`
  4836  
  4837  	// ServerResponse contains the HTTP response code and headers from the server.
  4838  	googleapi.ServerResponse `json:"-"`
  4839  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4840  	// unconditionally include in API requests. By default, fields with empty or
  4841  	// default values are omitted from API requests. See
  4842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4843  	// details.
  4844  	ForceSendFields []string `json:"-"`
  4845  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4846  	// requests with the JSON null value. By default, fields with empty values are
  4847  	// omitted from API requests. See
  4848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4849  	NullFields []string `json:"-"`
  4850  }
  4851  
  4852  func (s *PreferenceSet) MarshalJSON() ([]byte, error) {
  4853  	type NoMethod PreferenceSet
  4854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4855  }
  4856  
  4857  // RegionPreferences: The user preferences relating to target regions.
  4858  type RegionPreferences struct {
  4859  	// PreferredRegions: A list of preferred regions, ordered by the most preferred
  4860  	// region first. Set only valid Google Cloud region names. See
  4861  	// https://cloud.google.com/compute/docs/regions-zones for available regions.
  4862  	PreferredRegions []string `json:"preferredRegions,omitempty"`
  4863  	// ForceSendFields is a list of field names (e.g. "PreferredRegions") to
  4864  	// unconditionally include in API requests. By default, fields with empty or
  4865  	// default values are omitted from API requests. See
  4866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4867  	// details.
  4868  	ForceSendFields []string `json:"-"`
  4869  	// NullFields is a list of field names (e.g. "PreferredRegions") to include in
  4870  	// API requests with the JSON null value. By default, fields with empty values
  4871  	// are omitted from API requests. See
  4872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4873  	NullFields []string `json:"-"`
  4874  }
  4875  
  4876  func (s *RegionPreferences) MarshalJSON() ([]byte, error) {
  4877  	type NoMethod RegionPreferences
  4878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4879  }
  4880  
  4881  // RemoveAssetsFromGroupRequest: A request to remove assets from a group.
  4882  type RemoveAssetsFromGroupRequest struct {
  4883  	// AllowMissing: Optional. When this value is set to `false` and one of the
  4884  	// given assets is not an existing member of the group, the operation fails
  4885  	// with a `Not Found` error. When set to `true` this situation is silently
  4886  	// ignored by the server. Default value is `false`.
  4887  	AllowMissing bool `json:"allowMissing,omitempty"`
  4888  	// Assets: Required. List of assets to be removed. The maximum number of assets
  4889  	// that can be removed in a single request is 1000.
  4890  	Assets *AssetList `json:"assets,omitempty"`
  4891  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  4892  	// unique request ID so that if you must retry your request, the server will
  4893  	// know to ignore the request if it has already been completed. The server will
  4894  	// guarantee that for at least 60 minutes after the first request. For example,
  4895  	// consider a situation where you make an initial request and the request times
  4896  	// out. If you make the request again with the same request ID, the server can
  4897  	// check if original operation with the same request ID was received, and if
  4898  	// so, will ignore the second request. This prevents clients from accidentally
  4899  	// creating duplicate commitments. The request ID must be a valid UUID with the
  4900  	// exception that zero UUID is not supported
  4901  	// (00000000-0000-0000-0000-000000000000).
  4902  	RequestId string `json:"requestId,omitempty"`
  4903  	// ForceSendFields is a list of field names (e.g. "AllowMissing") to
  4904  	// unconditionally include in API requests. By default, fields with empty or
  4905  	// default values are omitted from API requests. See
  4906  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4907  	// details.
  4908  	ForceSendFields []string `json:"-"`
  4909  	// NullFields is a list of field names (e.g. "AllowMissing") to include in API
  4910  	// requests with the JSON null value. By default, fields with empty values are
  4911  	// omitted from API requests. See
  4912  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4913  	NullFields []string `json:"-"`
  4914  }
  4915  
  4916  func (s *RemoveAssetsFromGroupRequest) MarshalJSON() ([]byte, error) {
  4917  	type NoMethod RemoveAssetsFromGroupRequest
  4918  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4919  }
  4920  
  4921  // Report: Report represents a point-in-time rendering of the ReportConfig
  4922  // results.
  4923  type Report struct {
  4924  	// CreateTime: Output only. Creation timestamp.
  4925  	CreateTime string `json:"createTime,omitempty"`
  4926  	// Description: Free-text description.
  4927  	Description string `json:"description,omitempty"`
  4928  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  4929  	DisplayName string `json:"displayName,omitempty"`
  4930  	// Name: Output only. Name of resource.
  4931  	Name string `json:"name,omitempty"`
  4932  	// State: Report creation state.
  4933  	//
  4934  	// Possible values:
  4935  	//   "STATE_UNSPECIFIED" - Default Report creation state.
  4936  	//   "PENDING" - Creating Report.
  4937  	//   "SUCCEEDED" - Successfully created Report.
  4938  	//   "FAILED" - Failed to create Report.
  4939  	State string `json:"state,omitempty"`
  4940  	// Summary: Output only. Summary view of the Report.
  4941  	Summary *ReportSummary `json:"summary,omitempty"`
  4942  	// Type: Report type.
  4943  	//
  4944  	// Possible values:
  4945  	//   "TYPE_UNSPECIFIED" - Default report type.
  4946  	//   "TOTAL_COST_OF_OWNERSHIP" - Total cost of ownership report type.
  4947  	Type string `json:"type,omitempty"`
  4948  	// UpdateTime: Output only. Last update timestamp.
  4949  	UpdateTime string `json:"updateTime,omitempty"`
  4950  
  4951  	// ServerResponse contains the HTTP response code and headers from the server.
  4952  	googleapi.ServerResponse `json:"-"`
  4953  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4954  	// unconditionally include in API requests. By default, fields with empty or
  4955  	// default values are omitted from API requests. See
  4956  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4957  	// details.
  4958  	ForceSendFields []string `json:"-"`
  4959  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4960  	// requests with the JSON null value. By default, fields with empty values are
  4961  	// omitted from API requests. See
  4962  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4963  	NullFields []string `json:"-"`
  4964  }
  4965  
  4966  func (s *Report) MarshalJSON() ([]byte, error) {
  4967  	type NoMethod Report
  4968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4969  }
  4970  
  4971  // ReportAssetFramesResponse: A response to a call to `ReportAssetFrame`.
  4972  type ReportAssetFramesResponse struct {
  4973  	// ServerResponse contains the HTTP response code and headers from the server.
  4974  	googleapi.ServerResponse `json:"-"`
  4975  }
  4976  
  4977  // ReportConfig: The groups and associated preference sets on which we can
  4978  // generate reports.
  4979  type ReportConfig struct {
  4980  	// CreateTime: Output only. The timestamp when the resource was created.
  4981  	CreateTime string `json:"createTime,omitempty"`
  4982  	// Description: Free-text description.
  4983  	Description string `json:"description,omitempty"`
  4984  	// DisplayName: User-friendly display name. Maximum length is 63 characters.
  4985  	DisplayName string `json:"displayName,omitempty"`
  4986  	// GroupPreferencesetAssignments: Required. Collection of combinations of
  4987  	// groups and preference sets.
  4988  	GroupPreferencesetAssignments []*ReportConfigGroupPreferenceSetAssignment `json:"groupPreferencesetAssignments,omitempty"`
  4989  	// Name: Output only. Name of resource.
  4990  	Name string `json:"name,omitempty"`
  4991  	// UpdateTime: Output only. The timestamp when the resource was last updated.
  4992  	UpdateTime string `json:"updateTime,omitempty"`
  4993  
  4994  	// ServerResponse contains the HTTP response code and headers from the server.
  4995  	googleapi.ServerResponse `json:"-"`
  4996  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4997  	// unconditionally include in API requests. By default, fields with empty or
  4998  	// default values are omitted from API requests. See
  4999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5000  	// details.
  5001  	ForceSendFields []string `json:"-"`
  5002  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5003  	// requests with the JSON null value. By default, fields with empty values are
  5004  	// omitted from API requests. See
  5005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5006  	NullFields []string `json:"-"`
  5007  }
  5008  
  5009  func (s *ReportConfig) MarshalJSON() ([]byte, error) {
  5010  	type NoMethod ReportConfig
  5011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5012  }
  5013  
  5014  // ReportConfigGroupPreferenceSetAssignment: Represents a combination of a
  5015  // group with a preference set.
  5016  type ReportConfigGroupPreferenceSetAssignment struct {
  5017  	// Group: Required. Name of the group.
  5018  	Group string `json:"group,omitempty"`
  5019  	// PreferenceSet: Required. Name of the Preference Set.
  5020  	PreferenceSet string `json:"preferenceSet,omitempty"`
  5021  	// ForceSendFields is a list of field names (e.g. "Group") to unconditionally
  5022  	// include in API requests. By default, fields with empty or default values are
  5023  	// omitted from API requests. See
  5024  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5025  	// details.
  5026  	ForceSendFields []string `json:"-"`
  5027  	// NullFields is a list of field names (e.g. "Group") to include in API
  5028  	// requests with the JSON null value. By default, fields with empty values are
  5029  	// omitted from API requests. See
  5030  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5031  	NullFields []string `json:"-"`
  5032  }
  5033  
  5034  func (s *ReportConfigGroupPreferenceSetAssignment) MarshalJSON() ([]byte, error) {
  5035  	type NoMethod ReportConfigGroupPreferenceSetAssignment
  5036  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5037  }
  5038  
  5039  // ReportSummary: Describes the Summary view of a Report, which contains
  5040  // aggregated values for all the groups and preference sets included in this
  5041  // Report.
  5042  type ReportSummary struct {
  5043  	// AllAssetsStats: Aggregate statistics for unique assets across all the
  5044  	// groups.
  5045  	AllAssetsStats *ReportSummaryAssetAggregateStats `json:"allAssetsStats,omitempty"`
  5046  	// DatabaseStats: Output only. Aggregate statistics for unique database assets
  5047  	// across all the groups.
  5048  	DatabaseStats *ReportSummaryAssetAggregateStats `json:"databaseStats,omitempty"`
  5049  	// GroupFindings: Findings for each Group included in this report.
  5050  	GroupFindings []*ReportSummaryGroupFinding `json:"groupFindings,omitempty"`
  5051  	// VirtualMachineStats: Output only. Aggregate statistics for unique virtual
  5052  	// machine assets across all the groups.
  5053  	VirtualMachineStats *ReportSummaryAssetAggregateStats `json:"virtualMachineStats,omitempty"`
  5054  	// ForceSendFields is a list of field names (e.g. "AllAssetsStats") to
  5055  	// unconditionally include in API requests. By default, fields with empty or
  5056  	// default values are omitted from API requests. See
  5057  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5058  	// details.
  5059  	ForceSendFields []string `json:"-"`
  5060  	// NullFields is a list of field names (e.g. "AllAssetsStats") to include in
  5061  	// API requests with the JSON null value. By default, fields with empty values
  5062  	// are omitted from API requests. See
  5063  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5064  	NullFields []string `json:"-"`
  5065  }
  5066  
  5067  func (s *ReportSummary) MarshalJSON() ([]byte, error) {
  5068  	type NoMethod ReportSummary
  5069  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5070  }
  5071  
  5072  // ReportSummaryAssetAggregateStats: Aggregate statistics for a collection of
  5073  // assets.
  5074  type ReportSummaryAssetAggregateStats struct {
  5075  	// AssetAge: Count of assets grouped by age.
  5076  	AssetAge *ReportSummaryChartData `json:"assetAge,omitempty"`
  5077  	// CoreCountHistogram: Histogram showing a distribution of CPU core counts.
  5078  	CoreCountHistogram *ReportSummaryHistogramChartData `json:"coreCountHistogram,omitempty"`
  5079  	// DatabaseTypes: Output only. Count of assets grouped by database type. Keys
  5080  	// here are taken from DatabaseType enum. Only present for databases.
  5081  	DatabaseTypes *ReportSummaryChartData `json:"databaseTypes,omitempty"`
  5082  	// MemoryBytesHistogram: Histogram showing a distribution of memory sizes.
  5083  	MemoryBytesHistogram *ReportSummaryHistogramChartData `json:"memoryBytesHistogram,omitempty"`
  5084  	// MemoryUtilization: Total memory split into Used/Free buckets.
  5085  	MemoryUtilization *ReportSummaryChartData `json:"memoryUtilization,omitempty"`
  5086  	// MemoryUtilizationChart: Total memory split into Used/Free buckets.
  5087  	MemoryUtilizationChart *ReportSummaryUtilizationChartData `json:"memoryUtilizationChart,omitempty"`
  5088  	// OperatingSystem: Count of assets grouped by Operating System families. Only
  5089  	// present for virtual machines.
  5090  	OperatingSystem *ReportSummaryChartData `json:"operatingSystem,omitempty"`
  5091  	// StorageBytesHistogram: Histogram showing a distribution of storage sizes.
  5092  	StorageBytesHistogram *ReportSummaryHistogramChartData `json:"storageBytesHistogram,omitempty"`
  5093  	// StorageUtilization: Total storage split into Used/Free buckets.
  5094  	StorageUtilization *ReportSummaryChartData `json:"storageUtilization,omitempty"`
  5095  	// StorageUtilizationChart: Total memory split into Used/Free buckets.
  5096  	StorageUtilizationChart *ReportSummaryUtilizationChartData `json:"storageUtilizationChart,omitempty"`
  5097  	// TotalAssets: Count of the number of unique assets in this collection.
  5098  	TotalAssets int64 `json:"totalAssets,omitempty,string"`
  5099  	// TotalCores: Sum of the CPU core count of all the assets in this collection.
  5100  	TotalCores int64 `json:"totalCores,omitempty,string"`
  5101  	// TotalMemoryBytes: Sum of the memory in bytes of all the assets in this
  5102  	// collection.
  5103  	TotalMemoryBytes int64 `json:"totalMemoryBytes,omitempty,string"`
  5104  	// TotalStorageBytes: Sum of persistent storage in bytes of all the assets in
  5105  	// this collection.
  5106  	TotalStorageBytes int64 `json:"totalStorageBytes,omitempty,string"`
  5107  	// ForceSendFields is a list of field names (e.g. "AssetAge") to
  5108  	// unconditionally include in API requests. By default, fields with empty or
  5109  	// default values are omitted from API requests. See
  5110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5111  	// details.
  5112  	ForceSendFields []string `json:"-"`
  5113  	// NullFields is a list of field names (e.g. "AssetAge") to include in API
  5114  	// requests with the JSON null value. By default, fields with empty values are
  5115  	// omitted from API requests. See
  5116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5117  	NullFields []string `json:"-"`
  5118  }
  5119  
  5120  func (s *ReportSummaryAssetAggregateStats) MarshalJSON() ([]byte, error) {
  5121  	type NoMethod ReportSummaryAssetAggregateStats
  5122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5123  }
  5124  
  5125  // ReportSummaryChartData: Describes a collection of data points rendered as a
  5126  // Chart.
  5127  type ReportSummaryChartData struct {
  5128  	// DataPoints: Each data point in the chart is represented as a name-value pair
  5129  	// with the name being the x-axis label, and the value being the y-axis value.
  5130  	DataPoints []*ReportSummaryChartDataDataPoint `json:"dataPoints,omitempty"`
  5131  	// ForceSendFields is a list of field names (e.g. "DataPoints") to
  5132  	// unconditionally include in API requests. By default, fields with empty or
  5133  	// default values are omitted from API requests. See
  5134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5135  	// details.
  5136  	ForceSendFields []string `json:"-"`
  5137  	// NullFields is a list of field names (e.g. "DataPoints") to include in API
  5138  	// requests with the JSON null value. By default, fields with empty values are
  5139  	// omitted from API requests. See
  5140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5141  	NullFields []string `json:"-"`
  5142  }
  5143  
  5144  func (s *ReportSummaryChartData) MarshalJSON() ([]byte, error) {
  5145  	type NoMethod ReportSummaryChartData
  5146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5147  }
  5148  
  5149  // ReportSummaryChartDataDataPoint: Describes a single data point in the Chart.
  5150  type ReportSummaryChartDataDataPoint struct {
  5151  	// Label: The X-axis label for this data point.
  5152  	Label string `json:"label,omitempty"`
  5153  	// Value: The Y-axis value for this data point.
  5154  	Value float64 `json:"value,omitempty"`
  5155  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  5156  	// include in API requests. By default, fields with empty or default values are
  5157  	// omitted from API requests. See
  5158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5159  	// details.
  5160  	ForceSendFields []string `json:"-"`
  5161  	// NullFields is a list of field names (e.g. "Label") to include in API
  5162  	// requests with the JSON null value. By default, fields with empty values are
  5163  	// omitted from API requests. See
  5164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5165  	NullFields []string `json:"-"`
  5166  }
  5167  
  5168  func (s *ReportSummaryChartDataDataPoint) MarshalJSON() ([]byte, error) {
  5169  	type NoMethod ReportSummaryChartDataDataPoint
  5170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5171  }
  5172  
  5173  func (s *ReportSummaryChartDataDataPoint) UnmarshalJSON(data []byte) error {
  5174  	type NoMethod ReportSummaryChartDataDataPoint
  5175  	var s1 struct {
  5176  		Value gensupport.JSONFloat64 `json:"value"`
  5177  		*NoMethod
  5178  	}
  5179  	s1.NoMethod = (*NoMethod)(s)
  5180  	if err := json.Unmarshal(data, &s1); err != nil {
  5181  		return err
  5182  	}
  5183  	s.Value = float64(s1.Value)
  5184  	return nil
  5185  }
  5186  
  5187  // ReportSummaryDatabaseFinding: DatabaseFinding contains an aggregate costs
  5188  // and shapes for a single database type.
  5189  type ReportSummaryDatabaseFinding struct {
  5190  	// AllocatedAssetCount: Output only. Number of database assets which were
  5191  	// successfully assigned in this finding.
  5192  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5193  	// TotalAssets: Output only. Number of database assets in this finding.
  5194  	TotalAssets int64 `json:"totalAssets,omitempty,string"`
  5195  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5196  	// unconditionally include in API requests. By default, fields with empty or
  5197  	// default values are omitted from API requests. See
  5198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5199  	// details.
  5200  	ForceSendFields []string `json:"-"`
  5201  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5202  	// in API requests with the JSON null value. By default, fields with empty
  5203  	// values are omitted from API requests. See
  5204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5205  	NullFields []string `json:"-"`
  5206  }
  5207  
  5208  func (s *ReportSummaryDatabaseFinding) MarshalJSON() ([]byte, error) {
  5209  	type NoMethod ReportSummaryDatabaseFinding
  5210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5211  }
  5212  
  5213  // ReportSummaryGroupFinding: Summary Findings for a specific Group.
  5214  type ReportSummaryGroupFinding struct {
  5215  	// AssetAggregateStats: Summary statistics for all the assets in this group.
  5216  	AssetAggregateStats *ReportSummaryAssetAggregateStats `json:"assetAggregateStats,omitempty"`
  5217  	// AssetType: Output only. Asset type for the group finding.
  5218  	//
  5219  	// Possible values:
  5220  	//   "ASSET_TYPE_UNSPECIFIED" - Unknown asset type.
  5221  	//   "VIRTUAL_MACHINE" - Virtual Machine asset type
  5222  	//   "DATABASE" - Database asset type
  5223  	AssetType string `json:"assetType,omitempty"`
  5224  	// DatabaseType: Output only. Source asset database type for the group finding.
  5225  	// Only present for databases.
  5226  	//
  5227  	// Possible values:
  5228  	//   "DATABASE_TYPE_UNSPECIFIED" - Unknown database type.
  5229  	//   "SQL_SERVER" - SQL Server database.
  5230  	//   "MYSQL" - MySQL database.
  5231  	//   "POSTGRES" - Postgres database.
  5232  	DatabaseType string `json:"databaseType,omitempty"`
  5233  	// Description: Description for this group finding.
  5234  	Description string `json:"description,omitempty"`
  5235  	// DisplayName: Display Name for this group finding.
  5236  	DisplayName string `json:"displayName,omitempty"`
  5237  	// Group: Output only. Full name of the group.
  5238  	Group string `json:"group,omitempty"`
  5239  	// OverlappingAssetCount: This field is deprecated, do not rely on it having a
  5240  	// value.
  5241  	OverlappingAssetCount int64 `json:"overlappingAssetCount,omitempty,string"`
  5242  	// PreferenceSetFindings: Findings for each of the PreferenceSets for this
  5243  	// group.
  5244  	PreferenceSetFindings []*ReportSummaryGroupPreferenceSetFinding `json:"preferenceSetFindings,omitempty"`
  5245  	// ForceSendFields is a list of field names (e.g. "AssetAggregateStats") to
  5246  	// unconditionally include in API requests. By default, fields with empty or
  5247  	// default values are omitted from API requests. See
  5248  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5249  	// details.
  5250  	ForceSendFields []string `json:"-"`
  5251  	// NullFields is a list of field names (e.g. "AssetAggregateStats") to include
  5252  	// in API requests with the JSON null value. By default, fields with empty
  5253  	// values are omitted from API requests. See
  5254  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5255  	NullFields []string `json:"-"`
  5256  }
  5257  
  5258  func (s *ReportSummaryGroupFinding) MarshalJSON() ([]byte, error) {
  5259  	type NoMethod ReportSummaryGroupFinding
  5260  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5261  }
  5262  
  5263  // ReportSummaryGroupPreferenceSetFinding: Summary Findings for a specific
  5264  // Group/PreferenceSet combination.
  5265  type ReportSummaryGroupPreferenceSetFinding struct {
  5266  	// DatabaseFinding: Output only. Details about databases in this finding. Only
  5267  	// present for databases.
  5268  	DatabaseFinding *ReportSummaryDatabaseFinding `json:"databaseFinding,omitempty"`
  5269  	// Description: Description for the Preference Set.
  5270  	Description string `json:"description,omitempty"`
  5271  	// DisplayName: Display Name of the Preference Set
  5272  	DisplayName string `json:"displayName,omitempty"`
  5273  	// MachineFinding: Output only. A set of findings that applies to all virtual
  5274  	// machines in the input. Only present for virtual machines.
  5275  	MachineFinding *ReportSummaryMachineFinding `json:"machineFinding,omitempty"`
  5276  	// MachinePreferences: A set of preferences that applies to all machines in the
  5277  	// context.
  5278  	MachinePreferences *VirtualMachinePreferences `json:"machinePreferences,omitempty"`
  5279  	// MonthlyCostCompute: Compute monthly cost for this preference set.
  5280  	MonthlyCostCompute *Money `json:"monthlyCostCompute,omitempty"`
  5281  	// MonthlyCostDatabaseBackup: Output only. Backup monthly cost for this
  5282  	// preference set. Only present for databases.
  5283  	MonthlyCostDatabaseBackup *Money `json:"monthlyCostDatabaseBackup,omitempty"`
  5284  	// MonthlyCostDatabaseLicensing: Output only. Database licensing monthly cost
  5285  	// for this preference set. For virtual machines denotes the cost of licenses
  5286  	// for hosted databases.
  5287  	MonthlyCostDatabaseLicensing *Money `json:"monthlyCostDatabaseLicensing,omitempty"`
  5288  	// MonthlyCostNetworkEgress: Network Egress monthly cost for this preference
  5289  	// set. Only present for virtual machines.
  5290  	MonthlyCostNetworkEgress *Money `json:"monthlyCostNetworkEgress,omitempty"`
  5291  	// MonthlyCostOsLicense: Operating system licensing monthly cost for this
  5292  	// preference set. Only present for virtual machines.
  5293  	MonthlyCostOsLicense *Money `json:"monthlyCostOsLicense,omitempty"`
  5294  	// MonthlyCostOther: Miscellaneous monthly cost for this preference set.
  5295  	MonthlyCostOther *Money `json:"monthlyCostOther,omitempty"`
  5296  	// MonthlyCostStorage: Storage monthly cost for this preference set.
  5297  	MonthlyCostStorage *Money `json:"monthlyCostStorage,omitempty"`
  5298  	// MonthlyCostTotal: Total monthly cost for this preference set.
  5299  	MonthlyCostTotal *Money `json:"monthlyCostTotal,omitempty"`
  5300  	// PreferenceSet: Output only. A copy of the preference set used for this
  5301  	// finding.
  5302  	PreferenceSet *PreferenceSet `json:"preferenceSet,omitempty"`
  5303  	// PreferredRegion: Target region for this Preference Set
  5304  	PreferredRegion string `json:"preferredRegion,omitempty"`
  5305  	// PricingTrack: Text describing the pricing track specified for this
  5306  	// Preference Set
  5307  	PricingTrack string `json:"pricingTrack,omitempty"`
  5308  	// SoleTenantFinding: A set of findings that applies to Stole-Tenant machines
  5309  	// in the input. Only present for virtual machines.
  5310  	SoleTenantFinding *ReportSummarySoleTenantFinding `json:"soleTenantFinding,omitempty"`
  5311  	// TopPriority: Text describing the business priority specified for this
  5312  	// Preference Set
  5313  	TopPriority string `json:"topPriority,omitempty"`
  5314  	// VmwareEngineFinding: A set of findings that applies to VMWare machines in
  5315  	// the input. Only present for virtual machines.
  5316  	VmwareEngineFinding *ReportSummaryVMWareEngineFinding `json:"vmwareEngineFinding,omitempty"`
  5317  	// ForceSendFields is a list of field names (e.g. "DatabaseFinding") to
  5318  	// unconditionally include in API requests. By default, fields with empty or
  5319  	// default values are omitted from API requests. See
  5320  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5321  	// details.
  5322  	ForceSendFields []string `json:"-"`
  5323  	// NullFields is a list of field names (e.g. "DatabaseFinding") to include in
  5324  	// API requests with the JSON null value. By default, fields with empty values
  5325  	// are omitted from API requests. See
  5326  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5327  	NullFields []string `json:"-"`
  5328  }
  5329  
  5330  func (s *ReportSummaryGroupPreferenceSetFinding) MarshalJSON() ([]byte, error) {
  5331  	type NoMethod ReportSummaryGroupPreferenceSetFinding
  5332  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5333  }
  5334  
  5335  // ReportSummaryHistogramChartData: A Histogram Chart shows a distribution of
  5336  // values into buckets, showing a count of values which fall into a bucket.
  5337  type ReportSummaryHistogramChartData struct {
  5338  	// Buckets: Buckets in the histogram. There will be `n+1` buckets matching `n`
  5339  	// lower bounds in the request. The first bucket will be from -infinity to the
  5340  	// first bound. Subsequent buckets will be between one bound and the next. The
  5341  	// final bucket will be from the final bound to infinity.
  5342  	Buckets []*ReportSummaryHistogramChartDataBucket `json:"buckets,omitempty"`
  5343  	// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally
  5344  	// include in API requests. By default, fields with empty or default values are
  5345  	// omitted from API requests. See
  5346  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5347  	// details.
  5348  	ForceSendFields []string `json:"-"`
  5349  	// NullFields is a list of field names (e.g. "Buckets") to include in API
  5350  	// requests with the JSON null value. By default, fields with empty values are
  5351  	// omitted from API requests. See
  5352  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5353  	NullFields []string `json:"-"`
  5354  }
  5355  
  5356  func (s *ReportSummaryHistogramChartData) MarshalJSON() ([]byte, error) {
  5357  	type NoMethod ReportSummaryHistogramChartData
  5358  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5359  }
  5360  
  5361  // ReportSummaryHistogramChartDataBucket: A histogram bucket with a lower and
  5362  // upper bound, and a count of items with a field value between those bounds.
  5363  // The lower bound is inclusive and the upper bound is exclusive. Lower bound
  5364  // may be -infinity and upper bound may be infinity.
  5365  type ReportSummaryHistogramChartDataBucket struct {
  5366  	// Count: Count of items in the bucket.
  5367  	Count int64 `json:"count,omitempty,string"`
  5368  	// LowerBound: Lower bound - inclusive.
  5369  	LowerBound int64 `json:"lowerBound,omitempty,string"`
  5370  	// UpperBound: Upper bound - exclusive.
  5371  	UpperBound int64 `json:"upperBound,omitempty,string"`
  5372  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  5373  	// include in API requests. By default, fields with empty or default values are
  5374  	// omitted from API requests. See
  5375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5376  	// details.
  5377  	ForceSendFields []string `json:"-"`
  5378  	// NullFields is a list of field names (e.g. "Count") to include in API
  5379  	// requests with the JSON null value. By default, fields with empty values are
  5380  	// omitted from API requests. See
  5381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5382  	NullFields []string `json:"-"`
  5383  }
  5384  
  5385  func (s *ReportSummaryHistogramChartDataBucket) MarshalJSON() ([]byte, error) {
  5386  	type NoMethod ReportSummaryHistogramChartDataBucket
  5387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5388  }
  5389  
  5390  // ReportSummaryMachineFinding: A set of findings that applies to assets of
  5391  // type Virtual/Physical Machine.
  5392  type ReportSummaryMachineFinding struct {
  5393  	// AllocatedAssetCount: Count of assets which were allocated.
  5394  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5395  	// AllocatedDiskTypes: Set of disk types allocated to assets.
  5396  	//
  5397  	// Possible values:
  5398  	//   "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value).
  5399  	// Selecting this value allows the system to use any disk type according to
  5400  	// reported usage. This a good value to start with.
  5401  	//   "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk.
  5402  	//   "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk.
  5403  	//   "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk.
  5404  	AllocatedDiskTypes []string `json:"allocatedDiskTypes,omitempty"`
  5405  	// AllocatedRegions: Set of regions in which the assets were allocated.
  5406  	AllocatedRegions []string `json:"allocatedRegions,omitempty"`
  5407  	// MachineSeriesAllocations: Distribution of assets based on the Machine
  5408  	// Series.
  5409  	MachineSeriesAllocations []*ReportSummaryMachineSeriesAllocation `json:"machineSeriesAllocations,omitempty"`
  5410  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5411  	// unconditionally include in API requests. By default, fields with empty or
  5412  	// default values are omitted from API requests. See
  5413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5414  	// details.
  5415  	ForceSendFields []string `json:"-"`
  5416  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5417  	// in API requests with the JSON null value. By default, fields with empty
  5418  	// values are omitted from API requests. See
  5419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5420  	NullFields []string `json:"-"`
  5421  }
  5422  
  5423  func (s *ReportSummaryMachineFinding) MarshalJSON() ([]byte, error) {
  5424  	type NoMethod ReportSummaryMachineFinding
  5425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5426  }
  5427  
  5428  // ReportSummaryMachineSeriesAllocation: Represents a data point tracking the
  5429  // count of assets allocated for a specific Machine Series.
  5430  type ReportSummaryMachineSeriesAllocation struct {
  5431  	// AllocatedAssetCount: Count of assets allocated to this machine series.
  5432  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5433  	// MachineSeries: The Machine Series (e.g. "E2", "N2")
  5434  	MachineSeries *MachineSeries `json:"machineSeries,omitempty"`
  5435  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5436  	// unconditionally include in API requests. By default, fields with empty or
  5437  	// default values are omitted from API requests. See
  5438  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5439  	// details.
  5440  	ForceSendFields []string `json:"-"`
  5441  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5442  	// in API requests with the JSON null value. By default, fields with empty
  5443  	// values are omitted from API requests. See
  5444  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5445  	NullFields []string `json:"-"`
  5446  }
  5447  
  5448  func (s *ReportSummaryMachineSeriesAllocation) MarshalJSON() ([]byte, error) {
  5449  	type NoMethod ReportSummaryMachineSeriesAllocation
  5450  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5451  }
  5452  
  5453  // ReportSummarySoleTenantFinding: A set of findings that applies to assets
  5454  // destined for Sole-Tenant nodes.
  5455  type ReportSummarySoleTenantFinding struct {
  5456  	// AllocatedAssetCount: Count of assets which are allocated
  5457  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5458  	// AllocatedRegions: Set of regions in which the assets are allocated
  5459  	AllocatedRegions []string `json:"allocatedRegions,omitempty"`
  5460  	// NodeAllocations: Set of per-nodetype allocation records
  5461  	NodeAllocations []*ReportSummarySoleTenantNodeAllocation `json:"nodeAllocations,omitempty"`
  5462  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5463  	// unconditionally include in API requests. By default, fields with empty or
  5464  	// default values are omitted from API requests. See
  5465  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5466  	// details.
  5467  	ForceSendFields []string `json:"-"`
  5468  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5469  	// in API requests with the JSON null value. By default, fields with empty
  5470  	// values are omitted from API requests. See
  5471  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5472  	NullFields []string `json:"-"`
  5473  }
  5474  
  5475  func (s *ReportSummarySoleTenantFinding) MarshalJSON() ([]byte, error) {
  5476  	type NoMethod ReportSummarySoleTenantFinding
  5477  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5478  }
  5479  
  5480  // ReportSummarySoleTenantNodeAllocation: Represents the assets allocated to a
  5481  // specific Sole-Tenant node type.
  5482  type ReportSummarySoleTenantNodeAllocation struct {
  5483  	// AllocatedAssetCount: Count of assets allocated to these nodes
  5484  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5485  	// Node: Sole Tenant node type, e.g. "m3-node-128-3904"
  5486  	Node *SoleTenantNodeType `json:"node,omitempty"`
  5487  	// NodeCount: Count of this node type to be provisioned
  5488  	NodeCount int64 `json:"nodeCount,omitempty,string"`
  5489  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5490  	// unconditionally include in API requests. By default, fields with empty or
  5491  	// default values are omitted from API requests. See
  5492  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5493  	// details.
  5494  	ForceSendFields []string `json:"-"`
  5495  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5496  	// in API requests with the JSON null value. By default, fields with empty
  5497  	// values are omitted from API requests. See
  5498  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5499  	NullFields []string `json:"-"`
  5500  }
  5501  
  5502  func (s *ReportSummarySoleTenantNodeAllocation) MarshalJSON() ([]byte, error) {
  5503  	type NoMethod ReportSummarySoleTenantNodeAllocation
  5504  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5505  }
  5506  
  5507  // ReportSummaryUtilizationChartData: Utilization Chart is a specific type of
  5508  // visualization which displays a metric classified into "Used" and "Free"
  5509  // buckets.
  5510  type ReportSummaryUtilizationChartData struct {
  5511  	// Free: Aggregate value which falls into the "Free" bucket.
  5512  	Free int64 `json:"free,omitempty,string"`
  5513  	// Used: Aggregate value which falls into the "Used" bucket.
  5514  	Used int64 `json:"used,omitempty,string"`
  5515  	// ForceSendFields is a list of field names (e.g. "Free") to unconditionally
  5516  	// include in API requests. By default, fields with empty or default values are
  5517  	// omitted from API requests. See
  5518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5519  	// details.
  5520  	ForceSendFields []string `json:"-"`
  5521  	// NullFields is a list of field names (e.g. "Free") to include in API requests
  5522  	// with the JSON null value. By default, fields with empty values are omitted
  5523  	// from API requests. See
  5524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5525  	NullFields []string `json:"-"`
  5526  }
  5527  
  5528  func (s *ReportSummaryUtilizationChartData) MarshalJSON() ([]byte, error) {
  5529  	type NoMethod ReportSummaryUtilizationChartData
  5530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5531  }
  5532  
  5533  // ReportSummaryVMWareEngineFinding: A set of findings that applies to assets
  5534  // destined for VMWare Engine.
  5535  type ReportSummaryVMWareEngineFinding struct {
  5536  	// AllocatedAssetCount: Count of assets which are allocated
  5537  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5538  	// AllocatedRegions: Set of regions in which the assets were allocated
  5539  	AllocatedRegions []string `json:"allocatedRegions,omitempty"`
  5540  	// NodeAllocations: Set of per-nodetype allocation records
  5541  	NodeAllocations []*ReportSummaryVMWareNodeAllocation `json:"nodeAllocations,omitempty"`
  5542  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5543  	// unconditionally include in API requests. By default, fields with empty or
  5544  	// default values are omitted from API requests. See
  5545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5546  	// details.
  5547  	ForceSendFields []string `json:"-"`
  5548  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5549  	// in API requests with the JSON null value. By default, fields with empty
  5550  	// values are omitted from API requests. See
  5551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5552  	NullFields []string `json:"-"`
  5553  }
  5554  
  5555  func (s *ReportSummaryVMWareEngineFinding) MarshalJSON() ([]byte, error) {
  5556  	type NoMethod ReportSummaryVMWareEngineFinding
  5557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5558  }
  5559  
  5560  // ReportSummaryVMWareNode: A VMWare Engine Node
  5561  type ReportSummaryVMWareNode struct {
  5562  	// Code: Code to identify VMware Engine node series, e.g. "ve1-standard-72".
  5563  	// Based on the displayName of
  5564  	// cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.node
  5565  	// Types
  5566  	Code string `json:"code,omitempty"`
  5567  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  5568  	// include in API requests. By default, fields with empty or default values are
  5569  	// omitted from API requests. See
  5570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5571  	// details.
  5572  	ForceSendFields []string `json:"-"`
  5573  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  5574  	// with the JSON null value. By default, fields with empty values are omitted
  5575  	// from API requests. See
  5576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5577  	NullFields []string `json:"-"`
  5578  }
  5579  
  5580  func (s *ReportSummaryVMWareNode) MarshalJSON() ([]byte, error) {
  5581  	type NoMethod ReportSummaryVMWareNode
  5582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5583  }
  5584  
  5585  // ReportSummaryVMWareNodeAllocation: Represents assets allocated to a specific
  5586  // VMWare Node type.
  5587  type ReportSummaryVMWareNodeAllocation struct {
  5588  	// AllocatedAssetCount: Count of assets allocated to these nodes
  5589  	AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"`
  5590  	// NodeCount: Count of this node type to be provisioned
  5591  	NodeCount int64 `json:"nodeCount,omitempty,string"`
  5592  	// VmwareNode: VMWare node type, e.g. "ve1-standard-72"
  5593  	VmwareNode *ReportSummaryVMWareNode `json:"vmwareNode,omitempty"`
  5594  	// ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") to
  5595  	// unconditionally include in API requests. By default, fields with empty or
  5596  	// default values are omitted from API requests. See
  5597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5598  	// details.
  5599  	ForceSendFields []string `json:"-"`
  5600  	// NullFields is a list of field names (e.g. "AllocatedAssetCount") to include
  5601  	// in API requests with the JSON null value. By default, fields with empty
  5602  	// values are omitted from API requests. See
  5603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5604  	NullFields []string `json:"-"`
  5605  }
  5606  
  5607  func (s *ReportSummaryVMWareNodeAllocation) MarshalJSON() ([]byte, error) {
  5608  	type NoMethod ReportSummaryVMWareNodeAllocation
  5609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5610  }
  5611  
  5612  // RunImportJobRequest: A request to run an import job.
  5613  type RunImportJobRequest struct {
  5614  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  5615  	// unique request ID so that if you must retry your request, the server will
  5616  	// know to ignore the request if it has already been completed. The server will
  5617  	// guarantee that for at least 60 minutes after the first request. For example,
  5618  	// consider a situation where you make an initial request and the request times
  5619  	// out. If you make the request again with the same request ID, the server can
  5620  	// check if original operation with the same request ID was received, and if
  5621  	// so, will ignore the second request. This prevents clients from accidentally
  5622  	// creating duplicate commitments. The request ID must be a valid UUID with the
  5623  	// exception that zero UUID is not supported
  5624  	// (00000000-0000-0000-0000-000000000000).
  5625  	RequestId string `json:"requestId,omitempty"`
  5626  	// ForceSendFields is a list of field names (e.g. "RequestId") to
  5627  	// unconditionally include in API requests. By default, fields with empty or
  5628  	// default values are omitted from API requests. See
  5629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5630  	// details.
  5631  	ForceSendFields []string `json:"-"`
  5632  	// NullFields is a list of field names (e.g. "RequestId") to include in API
  5633  	// requests with the JSON null value. By default, fields with empty values are
  5634  	// omitted from API requests. See
  5635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5636  	NullFields []string `json:"-"`
  5637  }
  5638  
  5639  func (s *RunImportJobRequest) MarshalJSON() ([]byte, error) {
  5640  	type NoMethod RunImportJobRequest
  5641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5642  }
  5643  
  5644  // RunningProcess: Guest OS running process details.
  5645  type RunningProcess struct {
  5646  	// Attributes: Process extended attributes.
  5647  	Attributes map[string]string `json:"attributes,omitempty"`
  5648  	// Cmdline: Process full command line.
  5649  	Cmdline string `json:"cmdline,omitempty"`
  5650  	// ExePath: Process binary path.
  5651  	ExePath string `json:"exePath,omitempty"`
  5652  	// Pid: Process ID.
  5653  	Pid int64 `json:"pid,omitempty,string"`
  5654  	// User: User running the process.
  5655  	User string `json:"user,omitempty"`
  5656  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  5657  	// unconditionally include in API requests. By default, fields with empty or
  5658  	// default values are omitted from API requests. See
  5659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5660  	// details.
  5661  	ForceSendFields []string `json:"-"`
  5662  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  5663  	// requests with the JSON null value. By default, fields with empty values are
  5664  	// omitted from API requests. See
  5665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5666  	NullFields []string `json:"-"`
  5667  }
  5668  
  5669  func (s *RunningProcess) MarshalJSON() ([]byte, error) {
  5670  	type NoMethod RunningProcess
  5671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5672  }
  5673  
  5674  // RunningProcessList: List of running guest OS processes.
  5675  type RunningProcessList struct {
  5676  	// Processes: Running process entries.
  5677  	Processes []*RunningProcess `json:"processes,omitempty"`
  5678  	// ForceSendFields is a list of field names (e.g. "Processes") to
  5679  	// unconditionally include in API requests. By default, fields with empty or
  5680  	// default values are omitted from API requests. See
  5681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5682  	// details.
  5683  	ForceSendFields []string `json:"-"`
  5684  	// NullFields is a list of field names (e.g. "Processes") to include in API
  5685  	// requests with the JSON null value. By default, fields with empty values are
  5686  	// omitted from API requests. See
  5687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5688  	NullFields []string `json:"-"`
  5689  }
  5690  
  5691  func (s *RunningProcessList) MarshalJSON() ([]byte, error) {
  5692  	type NoMethod RunningProcessList
  5693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5694  }
  5695  
  5696  // RunningService: Guest OS running service details.
  5697  type RunningService struct {
  5698  	// Cmdline: Service command line.
  5699  	Cmdline string `json:"cmdline,omitempty"`
  5700  	// ExePath: Service binary path.
  5701  	ExePath string `json:"exePath,omitempty"`
  5702  	// Name: Service name.
  5703  	Name string `json:"name,omitempty"`
  5704  	// Pid: Service pid.
  5705  	Pid int64 `json:"pid,omitempty,string"`
  5706  	// StartMode: Service start mode (raw, OS-agnostic).
  5707  	StartMode string `json:"startMode,omitempty"`
  5708  	// State: Service state (raw, OS-agnostic).
  5709  	State string `json:"state,omitempty"`
  5710  	// Status: Service status.
  5711  	Status string `json:"status,omitempty"`
  5712  	// ForceSendFields is a list of field names (e.g. "Cmdline") to unconditionally
  5713  	// include in API requests. By default, fields with empty or default values are
  5714  	// omitted from API requests. See
  5715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5716  	// details.
  5717  	ForceSendFields []string `json:"-"`
  5718  	// NullFields is a list of field names (e.g. "Cmdline") to include in API
  5719  	// requests with the JSON null value. By default, fields with empty values are
  5720  	// omitted from API requests. See
  5721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5722  	NullFields []string `json:"-"`
  5723  }
  5724  
  5725  func (s *RunningService) MarshalJSON() ([]byte, error) {
  5726  	type NoMethod RunningService
  5727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5728  }
  5729  
  5730  // RunningServiceList: List of running guest OS services.
  5731  type RunningServiceList struct {
  5732  	// Services: Running service entries.
  5733  	Services []*RunningService `json:"services,omitempty"`
  5734  	// ForceSendFields is a list of field names (e.g. "Services") to
  5735  	// unconditionally include in API requests. By default, fields with empty or
  5736  	// default values are omitted from API requests. See
  5737  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5738  	// details.
  5739  	ForceSendFields []string `json:"-"`
  5740  	// NullFields is a list of field names (e.g. "Services") to include in API
  5741  	// requests with the JSON null value. By default, fields with empty values are
  5742  	// omitted from API requests. See
  5743  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5744  	NullFields []string `json:"-"`
  5745  }
  5746  
  5747  func (s *RunningServiceList) MarshalJSON() ([]byte, error) {
  5748  	type NoMethod RunningServiceList
  5749  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5750  }
  5751  
  5752  // RuntimeNetworkInfo: Runtime networking information.
  5753  type RuntimeNetworkInfo struct {
  5754  	// Connections: Network connections.
  5755  	Connections *NetworkConnectionList `json:"connections,omitempty"`
  5756  	// Netstat: Netstat (raw, OS-agnostic).
  5757  	Netstat string `json:"netstat,omitempty"`
  5758  	// NetstatTime: Netstat time collected.
  5759  	NetstatTime *DateTime `json:"netstatTime,omitempty"`
  5760  	// ForceSendFields is a list of field names (e.g. "Connections") to
  5761  	// unconditionally include in API requests. By default, fields with empty or
  5762  	// default values are omitted from API requests. See
  5763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5764  	// details.
  5765  	ForceSendFields []string `json:"-"`
  5766  	// NullFields is a list of field names (e.g. "Connections") to include in API
  5767  	// requests with the JSON null value. By default, fields with empty values are
  5768  	// omitted from API requests. See
  5769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5770  	NullFields []string `json:"-"`
  5771  }
  5772  
  5773  func (s *RuntimeNetworkInfo) MarshalJSON() ([]byte, error) {
  5774  	type NoMethod RuntimeNetworkInfo
  5775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5776  }
  5777  
  5778  // Selinux: SELinux details.
  5779  type Selinux struct {
  5780  	// Enabled: Is SELinux enabled.
  5781  	Enabled bool `json:"enabled,omitempty"`
  5782  	// Mode: SELinux mode enforcing / permissive.
  5783  	Mode string `json:"mode,omitempty"`
  5784  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  5785  	// include in API requests. By default, fields with empty or default values are
  5786  	// omitted from API requests. See
  5787  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5788  	// details.
  5789  	ForceSendFields []string `json:"-"`
  5790  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  5791  	// requests with the JSON null value. By default, fields with empty values are
  5792  	// omitted from API requests. See
  5793  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5794  	NullFields []string `json:"-"`
  5795  }
  5796  
  5797  func (s *Selinux) MarshalJSON() ([]byte, error) {
  5798  	type NoMethod Selinux
  5799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5800  }
  5801  
  5802  // SendDiscoveryClientHeartbeatRequest: A request to send a discovery client
  5803  // heartbeat.
  5804  type SendDiscoveryClientHeartbeatRequest struct {
  5805  	// Errors: Optional. Errors affecting client functionality.
  5806  	Errors []*Status `json:"errors,omitempty"`
  5807  	// Version: Optional. Client application version.
  5808  	Version string `json:"version,omitempty"`
  5809  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
  5810  	// include in API requests. By default, fields with empty or default values are
  5811  	// omitted from API requests. See
  5812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5813  	// details.
  5814  	ForceSendFields []string `json:"-"`
  5815  	// NullFields is a list of field names (e.g. "Errors") to include in API
  5816  	// requests with the JSON null value. By default, fields with empty values are
  5817  	// omitted from API requests. See
  5818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5819  	NullFields []string `json:"-"`
  5820  }
  5821  
  5822  func (s *SendDiscoveryClientHeartbeatRequest) MarshalJSON() ([]byte, error) {
  5823  	type NoMethod SendDiscoveryClientHeartbeatRequest
  5824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5825  }
  5826  
  5827  // Settings: Describes the Migration Center settings related to the project.
  5828  type Settings struct {
  5829  	// DisableCloudLogging: Disable Cloud Logging for the Migration Center API.
  5830  	// Users are billed for the logs.
  5831  	DisableCloudLogging bool `json:"disableCloudLogging,omitempty"`
  5832  	// Name: Output only. The name of the resource.
  5833  	Name string `json:"name,omitempty"`
  5834  	// PreferenceSet: The preference set used by default for a project.
  5835  	PreferenceSet string `json:"preferenceSet,omitempty"`
  5836  
  5837  	// ServerResponse contains the HTTP response code and headers from the server.
  5838  	googleapi.ServerResponse `json:"-"`
  5839  	// ForceSendFields is a list of field names (e.g. "DisableCloudLogging") to
  5840  	// unconditionally include in API requests. By default, fields with empty or
  5841  	// default values are omitted from API requests. See
  5842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5843  	// details.
  5844  	ForceSendFields []string `json:"-"`
  5845  	// NullFields is a list of field names (e.g. "DisableCloudLogging") to include
  5846  	// in API requests with the JSON null value. By default, fields with empty
  5847  	// values are omitted from API requests. See
  5848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5849  	NullFields []string `json:"-"`
  5850  }
  5851  
  5852  func (s *Settings) MarshalJSON() ([]byte, error) {
  5853  	type NoMethod Settings
  5854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5855  }
  5856  
  5857  // SoftwareInsight: An insight regarding software detected on an asset.
  5858  type SoftwareInsight struct {
  5859  	// DetectedSoftware: Output only. Information about the detected software.
  5860  	DetectedSoftware *DetectedSoftware `json:"detectedSoftware,omitempty"`
  5861  	// ForceSendFields is a list of field names (e.g. "DetectedSoftware") to
  5862  	// unconditionally include in API requests. By default, fields with empty or
  5863  	// default values are omitted from API requests. See
  5864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5865  	// details.
  5866  	ForceSendFields []string `json:"-"`
  5867  	// NullFields is a list of field names (e.g. "DetectedSoftware") to include in
  5868  	// API requests with the JSON null value. By default, fields with empty values
  5869  	// are omitted from API requests. See
  5870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5871  	NullFields []string `json:"-"`
  5872  }
  5873  
  5874  func (s *SoftwareInsight) MarshalJSON() ([]byte, error) {
  5875  	type NoMethod SoftwareInsight
  5876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5877  }
  5878  
  5879  // SoleTenancyPreferences: Preferences concerning Sole Tenancy nodes and VMs.
  5880  type SoleTenancyPreferences struct {
  5881  	// CommitmentPlan: Commitment plan to consider when calculating costs for
  5882  	// virtual machine insights and recommendations. If you are unsure which value
  5883  	// to set, a 3 year commitment plan is often a good value to start with.
  5884  	//
  5885  	// Possible values:
  5886  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  5887  	//   "ON_DEMAND" - No commitment plan (on-demand usage).
  5888  	//   "COMMITMENT_1_YEAR" - 1-year regular committed use discount.
  5889  	//   "COMMITMENT_3_YEAR" - 3-year regular committed use discount.
  5890  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  5891  	// CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are between 1.0
  5892  	// and 2.0 inclusive.
  5893  	CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"`
  5894  	// HostMaintenancePolicy: Sole Tenancy nodes maintenance policy.
  5895  	//
  5896  	// Possible values:
  5897  	//   "HOST_MAINTENANCE_POLICY_UNSPECIFIED" - Unspecified host maintenance
  5898  	// policy.
  5899  	//   "HOST_MAINTENANCE_POLICY_DEFAULT" - Default host maintenance policy.
  5900  	//   "HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE" - Restart in place host
  5901  	// maintenance policy.
  5902  	//   "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP" - Migrate within node
  5903  	// group host maintenance policy.
  5904  	HostMaintenancePolicy string `json:"hostMaintenancePolicy,omitempty"`
  5905  	// NodeTypes: A list of sole tenant node types. An empty list means that all
  5906  	// possible node types will be considered.
  5907  	NodeTypes []*SoleTenantNodeType `json:"nodeTypes,omitempty"`
  5908  	// ForceSendFields is a list of field names (e.g. "CommitmentPlan") to
  5909  	// unconditionally include in API requests. By default, fields with empty or
  5910  	// default values are omitted from API requests. See
  5911  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5912  	// details.
  5913  	ForceSendFields []string `json:"-"`
  5914  	// NullFields is a list of field names (e.g. "CommitmentPlan") to include in
  5915  	// API requests with the JSON null value. By default, fields with empty values
  5916  	// are omitted from API requests. See
  5917  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5918  	NullFields []string `json:"-"`
  5919  }
  5920  
  5921  func (s *SoleTenancyPreferences) MarshalJSON() ([]byte, error) {
  5922  	type NoMethod SoleTenancyPreferences
  5923  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5924  }
  5925  
  5926  func (s *SoleTenancyPreferences) UnmarshalJSON(data []byte) error {
  5927  	type NoMethod SoleTenancyPreferences
  5928  	var s1 struct {
  5929  		CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"`
  5930  		*NoMethod
  5931  	}
  5932  	s1.NoMethod = (*NoMethod)(s)
  5933  	if err := json.Unmarshal(data, &s1); err != nil {
  5934  		return err
  5935  	}
  5936  	s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio)
  5937  	return nil
  5938  }
  5939  
  5940  // SoleTenantNodeType: A Sole Tenant node type.
  5941  type SoleTenantNodeType struct {
  5942  	// NodeName: Name of the Sole Tenant node. Consult
  5943  	// https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes
  5944  	NodeName string `json:"nodeName,omitempty"`
  5945  	// ForceSendFields is a list of field names (e.g. "NodeName") to
  5946  	// unconditionally include in API requests. By default, fields with empty or
  5947  	// default values are omitted from API requests. See
  5948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5949  	// details.
  5950  	ForceSendFields []string `json:"-"`
  5951  	// NullFields is a list of field names (e.g. "NodeName") to include in API
  5952  	// requests with the JSON null value. By default, fields with empty values are
  5953  	// omitted from API requests. See
  5954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5955  	NullFields []string `json:"-"`
  5956  }
  5957  
  5958  func (s *SoleTenantNodeType) MarshalJSON() ([]byte, error) {
  5959  	type NoMethod SoleTenantNodeType
  5960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5961  }
  5962  
  5963  // Source: Source represents an object from which asset information is streamed
  5964  // to Migration Center.
  5965  type Source struct {
  5966  	// CreateTime: Output only. The timestamp when the source was created.
  5967  	CreateTime string `json:"createTime,omitempty"`
  5968  	// Description: Free-text description.
  5969  	Description string `json:"description,omitempty"`
  5970  	// DisplayName: User-friendly display name.
  5971  	DisplayName string `json:"displayName,omitempty"`
  5972  	// ErrorFrameCount: Output only. The number of frames that were reported by the
  5973  	// source and contained errors.
  5974  	ErrorFrameCount int64 `json:"errorFrameCount,omitempty"`
  5975  	// IsManaged: If `true`, the source is managed by other service(s).
  5976  	IsManaged bool `json:"isManaged,omitempty"`
  5977  	// Name: Output only. The full name of the source.
  5978  	Name string `json:"name,omitempty"`
  5979  	// PendingFrameCount: Output only. Number of frames that are still being
  5980  	// processed.
  5981  	PendingFrameCount int64 `json:"pendingFrameCount,omitempty"`
  5982  	// Priority: The information confidence of the source. The higher the value,
  5983  	// the higher the confidence.
  5984  	Priority int64 `json:"priority,omitempty"`
  5985  	// State: Output only. The state of the source.
  5986  	//
  5987  	// Possible values:
  5988  	//   "STATE_UNSPECIFIED" - Unspecified.
  5989  	//   "ACTIVE" - The source is active and ready to be used.
  5990  	//   "DELETING" - In the process of being deleted.
  5991  	//   "INVALID" - Source is in an invalid state. Asset frames reported to it
  5992  	// will be ignored.
  5993  	State string `json:"state,omitempty"`
  5994  	// Type: Data source type.
  5995  	//
  5996  	// Possible values:
  5997  	//   "SOURCE_TYPE_UNKNOWN" - Unspecified
  5998  	//   "SOURCE_TYPE_UPLOAD" - Manually uploaded file (e.g. CSV)
  5999  	//   "SOURCE_TYPE_GUEST_OS_SCAN" - Guest-level info
  6000  	//   "SOURCE_TYPE_INVENTORY_SCAN" - Inventory-level scan
  6001  	//   "SOURCE_TYPE_CUSTOM" - Third-party owned sources.
  6002  	//   "SOURCE_TYPE_DISCOVERY_CLIENT" - Discovery clients
  6003  	Type string `json:"type,omitempty"`
  6004  	// UpdateTime: Output only. The timestamp when the source was last updated.
  6005  	UpdateTime string `json:"updateTime,omitempty"`
  6006  
  6007  	// ServerResponse contains the HTTP response code and headers from the server.
  6008  	googleapi.ServerResponse `json:"-"`
  6009  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6010  	// unconditionally include in API requests. By default, fields with empty or
  6011  	// default values are omitted from API requests. See
  6012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6013  	// details.
  6014  	ForceSendFields []string `json:"-"`
  6015  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6016  	// requests with the JSON null value. By default, fields with empty values are
  6017  	// omitted from API requests. See
  6018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6019  	NullFields []string `json:"-"`
  6020  }
  6021  
  6022  func (s *Source) MarshalJSON() ([]byte, error) {
  6023  	type NoMethod Source
  6024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6025  }
  6026  
  6027  // SqlServerDatabaseDeployment: Specific details for a Microsoft SQL Server
  6028  // database deployment.
  6029  type SqlServerDatabaseDeployment struct {
  6030  	// Features: Optional. List of SQL Server features.
  6031  	Features []*SqlServerFeature `json:"features,omitempty"`
  6032  	// ServerFlags: Optional. List of SQL Server server flags.
  6033  	ServerFlags []*SqlServerServerFlag `json:"serverFlags,omitempty"`
  6034  	// TraceFlags: Optional. List of SQL Server trace flags.
  6035  	TraceFlags []*SqlServerTraceFlag `json:"traceFlags,omitempty"`
  6036  	// ForceSendFields is a list of field names (e.g. "Features") to
  6037  	// unconditionally include in API requests. By default, fields with empty or
  6038  	// default values are omitted from API requests. See
  6039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6040  	// details.
  6041  	ForceSendFields []string `json:"-"`
  6042  	// NullFields is a list of field names (e.g. "Features") to include in API
  6043  	// requests with the JSON null value. By default, fields with empty values are
  6044  	// omitted from API requests. See
  6045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6046  	NullFields []string `json:"-"`
  6047  }
  6048  
  6049  func (s *SqlServerDatabaseDeployment) MarshalJSON() ([]byte, error) {
  6050  	type NoMethod SqlServerDatabaseDeployment
  6051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6052  }
  6053  
  6054  // SqlServerFeature: SQL Server feature details.
  6055  type SqlServerFeature struct {
  6056  	// Enabled: Required. Field enabled is set when a feature is used on the source
  6057  	// deployment.
  6058  	Enabled bool `json:"enabled,omitempty"`
  6059  	// FeatureName: Required. The feature name.
  6060  	FeatureName string `json:"featureName,omitempty"`
  6061  	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
  6062  	// include in API requests. By default, fields with empty or default values are
  6063  	// omitted from API requests. See
  6064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6065  	// details.
  6066  	ForceSendFields []string `json:"-"`
  6067  	// NullFields is a list of field names (e.g. "Enabled") to include in API
  6068  	// requests with the JSON null value. By default, fields with empty values are
  6069  	// omitted from API requests. See
  6070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6071  	NullFields []string `json:"-"`
  6072  }
  6073  
  6074  func (s *SqlServerFeature) MarshalJSON() ([]byte, error) {
  6075  	type NoMethod SqlServerFeature
  6076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6077  }
  6078  
  6079  // SqlServerSchemaDetails: Specific details for a SqlServer database.
  6080  type SqlServerSchemaDetails struct {
  6081  }
  6082  
  6083  // SqlServerServerFlag: SQL Server server flag details.
  6084  type SqlServerServerFlag struct {
  6085  	// ServerFlagName: Required. The server flag name.
  6086  	ServerFlagName string `json:"serverFlagName,omitempty"`
  6087  	// Value: Required. The server flag value set by the user.
  6088  	Value string `json:"value,omitempty"`
  6089  	// ValueInUse: Required. The server flag actual value. If `value_in_use` is
  6090  	// different from `value` it means that either the configuration change was not
  6091  	// applied or it is an expected behavior. See SQL Server documentation for more
  6092  	// details.
  6093  	ValueInUse string `json:"valueInUse,omitempty"`
  6094  	// ForceSendFields is a list of field names (e.g. "ServerFlagName") to
  6095  	// unconditionally include in API requests. By default, fields with empty or
  6096  	// default values are omitted from API requests. See
  6097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6098  	// details.
  6099  	ForceSendFields []string `json:"-"`
  6100  	// NullFields is a list of field names (e.g. "ServerFlagName") to include in
  6101  	// API requests with the JSON null value. By default, fields with empty values
  6102  	// are omitted from API requests. See
  6103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6104  	NullFields []string `json:"-"`
  6105  }
  6106  
  6107  func (s *SqlServerServerFlag) MarshalJSON() ([]byte, error) {
  6108  	type NoMethod SqlServerServerFlag
  6109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6110  }
  6111  
  6112  // SqlServerTraceFlag: SQL Server trace flag details.
  6113  type SqlServerTraceFlag struct {
  6114  	// Scope: Required. The trace flag scope.
  6115  	//
  6116  	// Possible values:
  6117  	//   "SCOPE_UNSPECIFIED" - Unspecified.
  6118  	//   "OFF" - Off.
  6119  	//   "GLOBAL" - Global.
  6120  	//   "SESSION" - Session.
  6121  	Scope string `json:"scope,omitempty"`
  6122  	// TraceFlagName: Required. The trace flag name.
  6123  	TraceFlagName string `json:"traceFlagName,omitempty"`
  6124  	// ForceSendFields is a list of field names (e.g. "Scope") to unconditionally
  6125  	// include in API requests. By default, fields with empty or default values are
  6126  	// omitted from API requests. See
  6127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6128  	// details.
  6129  	ForceSendFields []string `json:"-"`
  6130  	// NullFields is a list of field names (e.g. "Scope") to include in API
  6131  	// requests with the JSON null value. By default, fields with empty values are
  6132  	// omitted from API requests. See
  6133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6134  	NullFields []string `json:"-"`
  6135  }
  6136  
  6137  func (s *SqlServerTraceFlag) MarshalJSON() ([]byte, error) {
  6138  	type NoMethod SqlServerTraceFlag
  6139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6140  }
  6141  
  6142  // Status: The `Status` type defines a logical error model that is suitable for
  6143  // different programming environments, including REST APIs and RPC APIs. It is
  6144  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  6145  // pieces of data: error code, error message, and error details. You can find
  6146  // out more about this error model and how to work with it in the API Design
  6147  // Guide (https://cloud.google.com/apis/design/errors).
  6148  type Status struct {
  6149  	// Code: The status code, which should be an enum value of google.rpc.Code.
  6150  	Code int64 `json:"code,omitempty"`
  6151  	// Details: A list of messages that carry the error details. There is a common
  6152  	// set of message types for APIs to use.
  6153  	Details []googleapi.RawMessage `json:"details,omitempty"`
  6154  	// Message: A developer-facing error message, which should be in English. Any
  6155  	// user-facing error message should be localized and sent in the
  6156  	// google.rpc.Status.details field, or localized by the client.
  6157  	Message string `json:"message,omitempty"`
  6158  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  6159  	// include in API requests. By default, fields with empty or default values are
  6160  	// omitted from API requests. See
  6161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6162  	// details.
  6163  	ForceSendFields []string `json:"-"`
  6164  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  6165  	// with the JSON null value. By default, fields with empty values are omitted
  6166  	// from API requests. See
  6167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6168  	NullFields []string `json:"-"`
  6169  }
  6170  
  6171  func (s *Status) MarshalJSON() ([]byte, error) {
  6172  	type NoMethod Status
  6173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6174  }
  6175  
  6176  // TimeZone: Represents a time zone from the IANA Time Zone Database
  6177  // (https://www.iana.org/time-zones).
  6178  type TimeZone struct {
  6179  	// Id: IANA Time Zone Database time zone, e.g. "America/New_York".
  6180  	Id string `json:"id,omitempty"`
  6181  	// Version: Optional. IANA Time Zone Database version number, e.g. "2019a".
  6182  	Version string `json:"version,omitempty"`
  6183  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  6184  	// include in API requests. By default, fields with empty or default values are
  6185  	// omitted from API requests. See
  6186  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6187  	// details.
  6188  	ForceSendFields []string `json:"-"`
  6189  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  6190  	// with the JSON null value. By default, fields with empty values are omitted
  6191  	// from API requests. See
  6192  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6193  	NullFields []string `json:"-"`
  6194  }
  6195  
  6196  func (s *TimeZone) MarshalJSON() ([]byte, error) {
  6197  	type NoMethod TimeZone
  6198  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6199  }
  6200  
  6201  // UpdateAssetRequest: A request to update an asset.
  6202  type UpdateAssetRequest struct {
  6203  	// Asset: Required. The resource being updated.
  6204  	Asset *Asset `json:"asset,omitempty"`
  6205  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  6206  	// unique request ID so that if you must retry your request, the server will
  6207  	// know to ignore the request if it has already been completed. The server will
  6208  	// guarantee that for at least 60 minutes since the first request. For example,
  6209  	// consider a situation where you make an initial request and the request times
  6210  	// out. If you make the request again with the same request ID, the server can
  6211  	// check if original operation with the same request ID was received, and if
  6212  	// so, will ignore the second request. This prevents clients from accidentally
  6213  	// creating duplicate commitments. The request ID must be a valid UUID with the
  6214  	// exception that zero UUID is not supported
  6215  	// (00000000-0000-0000-0000-000000000000).
  6216  	RequestId string `json:"requestId,omitempty"`
  6217  	// UpdateMask: Required. Field mask is used to specify the fields to be
  6218  	// overwritten in the `Asset` resource by the update. The values specified in
  6219  	// the `update_mask` field are relative to the resource, not the full request.
  6220  	// A field will be overwritten if it is in the mask. A single * value in the
  6221  	// mask lets you to overwrite all fields.
  6222  	UpdateMask string `json:"updateMask,omitempty"`
  6223  	// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally
  6224  	// include in API requests. By default, fields with empty or default values are
  6225  	// omitted from API requests. See
  6226  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6227  	// details.
  6228  	ForceSendFields []string `json:"-"`
  6229  	// NullFields is a list of field names (e.g. "Asset") to include in API
  6230  	// requests with the JSON null value. By default, fields with empty values are
  6231  	// omitted from API requests. See
  6232  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6233  	NullFields []string `json:"-"`
  6234  }
  6235  
  6236  func (s *UpdateAssetRequest) MarshalJSON() ([]byte, error) {
  6237  	type NoMethod UpdateAssetRequest
  6238  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6239  }
  6240  
  6241  // UploadFileInfo: A resource that contains a URI to which a data file can be
  6242  // uploaded.
  6243  type UploadFileInfo struct {
  6244  	// Headers: Output only. The headers that were used to sign the URL.
  6245  	Headers map[string]string `json:"headers,omitempty"`
  6246  	// SignedUri: Output only. Upload URI for the file.
  6247  	SignedUri string `json:"signedUri,omitempty"`
  6248  	// UriExpirationTime: Output only. Expiration time of the upload URI.
  6249  	UriExpirationTime string `json:"uriExpirationTime,omitempty"`
  6250  	// ForceSendFields is a list of field names (e.g. "Headers") to unconditionally
  6251  	// include in API requests. By default, fields with empty or default values are
  6252  	// omitted from API requests. See
  6253  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6254  	// details.
  6255  	ForceSendFields []string `json:"-"`
  6256  	// NullFields is a list of field names (e.g. "Headers") to include in API
  6257  	// requests with the JSON null value. By default, fields with empty values are
  6258  	// omitted from API requests. See
  6259  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6260  	NullFields []string `json:"-"`
  6261  }
  6262  
  6263  func (s *UploadFileInfo) MarshalJSON() ([]byte, error) {
  6264  	type NoMethod UploadFileInfo
  6265  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6266  }
  6267  
  6268  // ValidateImportJobRequest: A request to validate an import job.
  6269  type ValidateImportJobRequest struct {
  6270  	// RequestId: Optional. An optional request ID to identify requests. Specify a
  6271  	// unique request ID so that if you must retry your request, the server will
  6272  	// know to ignore the request if it has already been completed. The server will
  6273  	// guarantee that for at least 60 minutes after the first request. For example,
  6274  	// consider a situation where you make an initial request and the request times
  6275  	// out. If you make the request again with the same request ID, the server can
  6276  	// check if original operation with the same request ID was received, and if
  6277  	// so, will ignore the second request. This prevents clients from accidentally
  6278  	// creating duplicate commitments. The request ID must be a valid UUID with the
  6279  	// exception that zero UUID is not supported
  6280  	// (00000000-0000-0000-0000-000000000000).
  6281  	RequestId string `json:"requestId,omitempty"`
  6282  	// ForceSendFields is a list of field names (e.g. "RequestId") to
  6283  	// unconditionally include in API requests. By default, fields with empty or
  6284  	// default values are omitted from API requests. See
  6285  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6286  	// details.
  6287  	ForceSendFields []string `json:"-"`
  6288  	// NullFields is a list of field names (e.g. "RequestId") to include in API
  6289  	// requests with the JSON null value. By default, fields with empty values are
  6290  	// omitted from API requests. See
  6291  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6292  	NullFields []string `json:"-"`
  6293  }
  6294  
  6295  func (s *ValidateImportJobRequest) MarshalJSON() ([]byte, error) {
  6296  	type NoMethod ValidateImportJobRequest
  6297  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6298  }
  6299  
  6300  // ValidationReport: A resource that aggregates errors across import job files.
  6301  type ValidationReport struct {
  6302  	// FileValidations: List of errors found in files.
  6303  	FileValidations []*FileValidationReport `json:"fileValidations,omitempty"`
  6304  	// JobErrors: List of job level errors.
  6305  	JobErrors []*ImportError `json:"jobErrors,omitempty"`
  6306  	// ForceSendFields is a list of field names (e.g. "FileValidations") to
  6307  	// unconditionally include in API requests. By default, fields with empty or
  6308  	// default values are omitted from API requests. See
  6309  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6310  	// details.
  6311  	ForceSendFields []string `json:"-"`
  6312  	// NullFields is a list of field names (e.g. "FileValidations") to include in
  6313  	// API requests with the JSON null value. By default, fields with empty values
  6314  	// are omitted from API requests. See
  6315  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6316  	NullFields []string `json:"-"`
  6317  }
  6318  
  6319  func (s *ValidationReport) MarshalJSON() ([]byte, error) {
  6320  	type NoMethod ValidationReport
  6321  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6322  }
  6323  
  6324  // VirtualMachineArchitectureDetails: Details of the VM architecture.
  6325  type VirtualMachineArchitectureDetails struct {
  6326  	// Bios: BIOS Details.
  6327  	Bios *BiosDetails `json:"bios,omitempty"`
  6328  	// CpuArchitecture: CPU architecture, e.g., "x64-based PC", "x86_64", "i686"
  6329  	// etc.
  6330  	CpuArchitecture string `json:"cpuArchitecture,omitempty"`
  6331  	// CpuManufacturer: CPU manufacturer, e.g., "Intel", "AMD".
  6332  	CpuManufacturer string `json:"cpuManufacturer,omitempty"`
  6333  	// CpuName: CPU name, e.g., "Intel Xeon E5-2690", "AMD EPYC 7571" etc.
  6334  	CpuName string `json:"cpuName,omitempty"`
  6335  	// CpuSocketCount: Number of processor sockets allocated to the machine.
  6336  	CpuSocketCount int64 `json:"cpuSocketCount,omitempty"`
  6337  	// CpuThreadCount: Number of CPU threads allocated to the machine.
  6338  	CpuThreadCount int64 `json:"cpuThreadCount,omitempty"`
  6339  	// Firmware: Firmware (BIOS/efi).
  6340  	Firmware string `json:"firmware,omitempty"`
  6341  	// Hyperthreading: CPU hyperthreading support.
  6342  	//
  6343  	// Possible values:
  6344  	//   "HYPER_THREADING_UNSPECIFIED" - Unknown (default value).
  6345  	//   "HYPER_THREADING_DISABLED" - Hyperthreading is disabled.
  6346  	//   "HYPER_THREADING_ENABLED" - Hyperthreading is enabled.
  6347  	Hyperthreading string `json:"hyperthreading,omitempty"`
  6348  	// Vendor: Hardware vendor.
  6349  	Vendor string `json:"vendor,omitempty"`
  6350  	// ForceSendFields is a list of field names (e.g. "Bios") to unconditionally
  6351  	// include in API requests. By default, fields with empty or default values are
  6352  	// omitted from API requests. See
  6353  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6354  	// details.
  6355  	ForceSendFields []string `json:"-"`
  6356  	// NullFields is a list of field names (e.g. "Bios") to include in API requests
  6357  	// with the JSON null value. By default, fields with empty values are omitted
  6358  	// from API requests. See
  6359  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6360  	NullFields []string `json:"-"`
  6361  }
  6362  
  6363  func (s *VirtualMachineArchitectureDetails) MarshalJSON() ([]byte, error) {
  6364  	type NoMethod VirtualMachineArchitectureDetails
  6365  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6366  }
  6367  
  6368  // VirtualMachineDetails: Details of a VirtualMachine.
  6369  type VirtualMachineDetails struct {
  6370  	// CoreCount: Number of CPU cores in the VirtualMachine. Must be non-negative.
  6371  	CoreCount int64 `json:"coreCount,omitempty"`
  6372  	// CreateTime: VM creation timestamp.
  6373  	CreateTime string `json:"createTime,omitempty"`
  6374  	// GuestOs: Guest OS information.
  6375  	GuestOs *GuestOsDetails `json:"guestOs,omitempty"`
  6376  	// MemoryMb: The amount of memory in the VirtualMachine. Must be non-negative.
  6377  	MemoryMb int64 `json:"memoryMb,omitempty"`
  6378  	// OsFamily: What family the OS belong to, if known.
  6379  	//
  6380  	// Possible values:
  6381  	//   "OS_FAMILY_UNKNOWN"
  6382  	//   "OS_FAMILY_WINDOWS" - Microsoft Windows Server and Desktop.
  6383  	//   "OS_FAMILY_LINUX" - Various Linux flavors.
  6384  	//   "OS_FAMILY_UNIX" - Non-Linux Unix flavors.
  6385  	OsFamily string `json:"osFamily,omitempty"`
  6386  	// OsName: The name of the operating system running on the VirtualMachine.
  6387  	OsName string `json:"osName,omitempty"`
  6388  	// OsVersion: The version of the operating system running on the virtual
  6389  	// machine.
  6390  	OsVersion string `json:"osVersion,omitempty"`
  6391  	// Platform: Platform information.
  6392  	Platform *PlatformDetails `json:"platform,omitempty"`
  6393  	// PowerState: Power state of VM (poweredOn or poweredOff).
  6394  	PowerState string `json:"powerState,omitempty"`
  6395  	// VcenterFolder: Folder name in vCenter where asset resides.
  6396  	VcenterFolder string `json:"vcenterFolder,omitempty"`
  6397  	// VcenterUrl: vCenter URL used in collection.
  6398  	VcenterUrl string `json:"vcenterUrl,omitempty"`
  6399  	// VcenterVmId: vCenter VM ID.
  6400  	VcenterVmId string `json:"vcenterVmId,omitempty"`
  6401  	// VmArchitecture: VM architecture details (vendor, cpu arch).
  6402  	VmArchitecture *VirtualMachineArchitectureDetails `json:"vmArchitecture,omitempty"`
  6403  	// VmDisks: VM disk details.
  6404  	VmDisks *VirtualMachineDiskDetails `json:"vmDisks,omitempty"`
  6405  	// VmName: Virtual Machine display name.
  6406  	VmName string `json:"vmName,omitempty"`
  6407  	// VmNetwork: VM network details.
  6408  	VmNetwork *VirtualMachineNetworkDetails `json:"vmNetwork,omitempty"`
  6409  	// VmUuid: Virtual Machine unique identifier.
  6410  	VmUuid string `json:"vmUuid,omitempty"`
  6411  	// ForceSendFields is a list of field names (e.g. "CoreCount") to
  6412  	// unconditionally include in API requests. By default, fields with empty or
  6413  	// default values are omitted from API requests. See
  6414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6415  	// details.
  6416  	ForceSendFields []string `json:"-"`
  6417  	// NullFields is a list of field names (e.g. "CoreCount") to include in API
  6418  	// requests with the JSON null value. By default, fields with empty values are
  6419  	// omitted from API requests. See
  6420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6421  	NullFields []string `json:"-"`
  6422  }
  6423  
  6424  func (s *VirtualMachineDetails) MarshalJSON() ([]byte, error) {
  6425  	type NoMethod VirtualMachineDetails
  6426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6427  }
  6428  
  6429  // VirtualMachineDiskDetails: Details of VM disks.
  6430  type VirtualMachineDiskDetails struct {
  6431  	// Disks: List of disks.
  6432  	Disks *DiskEntryList `json:"disks,omitempty"`
  6433  	// HddTotalCapacityBytes: Disk total Capacity.
  6434  	HddTotalCapacityBytes int64 `json:"hddTotalCapacityBytes,omitempty,string"`
  6435  	// HddTotalFreeBytes: Total Disk Free Space.
  6436  	HddTotalFreeBytes int64 `json:"hddTotalFreeBytes,omitempty,string"`
  6437  	// LsblkJson: Raw lsblk output in json.
  6438  	LsblkJson string `json:"lsblkJson,omitempty"`
  6439  	// ForceSendFields is a list of field names (e.g. "Disks") to unconditionally
  6440  	// include in API requests. By default, fields with empty or default values are
  6441  	// omitted from API requests. See
  6442  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6443  	// details.
  6444  	ForceSendFields []string `json:"-"`
  6445  	// NullFields is a list of field names (e.g. "Disks") to include in API
  6446  	// requests with the JSON null value. By default, fields with empty values are
  6447  	// omitted from API requests. See
  6448  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6449  	NullFields []string `json:"-"`
  6450  }
  6451  
  6452  func (s *VirtualMachineDiskDetails) MarshalJSON() ([]byte, error) {
  6453  	type NoMethod VirtualMachineDiskDetails
  6454  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6455  }
  6456  
  6457  // VirtualMachineNetworkDetails: Details of network adapters and settings.
  6458  type VirtualMachineNetworkDetails struct {
  6459  	// DefaultGw: Default gateway address.
  6460  	DefaultGw string `json:"defaultGw,omitempty"`
  6461  	// NetworkAdapters: List of network adapters.
  6462  	NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"`
  6463  	// PrimaryIpAddress: IP address of the machine.
  6464  	PrimaryIpAddress string `json:"primaryIpAddress,omitempty"`
  6465  	// PrimaryMacAddress: MAC address of the machine. This property is used to
  6466  	// uniqly identify the machine.
  6467  	PrimaryMacAddress string `json:"primaryMacAddress,omitempty"`
  6468  	// PublicIpAddress: Public IP address of the machine.
  6469  	PublicIpAddress string `json:"publicIpAddress,omitempty"`
  6470  	// ForceSendFields is a list of field names (e.g. "DefaultGw") to
  6471  	// unconditionally include in API requests. By default, fields with empty or
  6472  	// default values are omitted from API requests. See
  6473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6474  	// details.
  6475  	ForceSendFields []string `json:"-"`
  6476  	// NullFields is a list of field names (e.g. "DefaultGw") to include in API
  6477  	// requests with the JSON null value. By default, fields with empty values are
  6478  	// omitted from API requests. See
  6479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6480  	NullFields []string `json:"-"`
  6481  }
  6482  
  6483  func (s *VirtualMachineNetworkDetails) MarshalJSON() ([]byte, error) {
  6484  	type NoMethod VirtualMachineNetworkDetails
  6485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6486  }
  6487  
  6488  // VirtualMachinePreferences: VirtualMachinePreferences enables you to create
  6489  // sets of preferences, for example, a geographical location and pricing track,
  6490  // for your migrated virtual machines. The set of preferences influence
  6491  // recommendations for migrating virtual machine assets.
  6492  type VirtualMachinePreferences struct {
  6493  	// CommitmentPlan: Commitment plan to consider when calculating costs for
  6494  	// virtual machine insights and recommendations. If you are unsure which value
  6495  	// to set, a 3 year commitment plan is often a good value to start with.
  6496  	//
  6497  	// Possible values:
  6498  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  6499  	//   "COMMITMENT_PLAN_NONE" - No commitment plan.
  6500  	//   "COMMITMENT_PLAN_ONE_YEAR" - 1-year regular committed use discount.
  6501  	//   "COMMITMENT_PLAN_THREE_YEARS" - 3-year regular committed use discount.
  6502  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  6503  	// ComputeEnginePreferences: Compute Engine preferences concern insights and
  6504  	// recommendations for Compute Engine target.
  6505  	ComputeEnginePreferences *ComputeEnginePreferences `json:"computeEnginePreferences,omitempty"`
  6506  	// NetworkCostParameters: Optional. Parameters that affect network cost
  6507  	// estimations. If not set, default values will be used for the parameters.
  6508  	NetworkCostParameters *VirtualMachinePreferencesNetworkCostParameters `json:"networkCostParameters,omitempty"`
  6509  	// RegionPreferences: Region preferences for assets using this preference set.
  6510  	// If you are unsure which value to set, the migration service API region is
  6511  	// often a good value to start with. If PreferenceSet.RegionPreferences is
  6512  	// specified, it overrides this field.
  6513  	RegionPreferences *RegionPreferences `json:"regionPreferences,omitempty"`
  6514  	// SizingOptimizationCustomParameters: Optional. Custom data to use for sizing
  6515  	// optimizations. Relevant when SizingOptimizationStrategy is set to "custom".
  6516  	SizingOptimizationCustomParameters *VirtualMachinePreferencesSizingOptimizationCustomParameters `json:"sizingOptimizationCustomParameters,omitempty"`
  6517  	// SizingOptimizationStrategy: Sizing optimization strategy specifies the
  6518  	// preferred strategy used when extrapolating usage data to calculate insights
  6519  	// and recommendations for a virtual machine. If you are unsure which value to
  6520  	// set, a moderate sizing optimization strategy is often a good value to start
  6521  	// with.
  6522  	//
  6523  	// Possible values:
  6524  	//   "SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED" - Unspecified (default value).
  6525  	//   "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE" - No optimization applied.
  6526  	// Virtual machine sizing matches as closely as possible the machine shape on
  6527  	// the source site, not considering any actual performance data.
  6528  	//   "SIZING_OPTIMIZATION_STRATEGY_MODERATE" - Virtual machine sizing will
  6529  	// match the reported usage and shape, with some slack. This a good value to
  6530  	// start with.
  6531  	//   "SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE" - Virtual machine sizing will
  6532  	// match the reported usage, with little slack. Using this option can help
  6533  	// reduce costs.
  6534  	//   "SIZING_OPTIMIZATION_STRATEGY_CUSTOM" - Virtual machine sizing will be
  6535  	// determined by custom parameters. While not supported in the v1 API, this
  6536  	// value is converted to UNSPECIFIED in conversions to the v1 API.
  6537  	SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"`
  6538  	// SoleTenancyPreferences: Preferences concerning Sole Tenant nodes and virtual
  6539  	// machines.
  6540  	SoleTenancyPreferences *SoleTenancyPreferences `json:"soleTenancyPreferences,omitempty"`
  6541  	// TargetProduct: Target product for assets using this preference set. Specify
  6542  	// either target product or business goal, but not both.
  6543  	//
  6544  	// Possible values:
  6545  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED" - Unspecified (default
  6546  	// value).
  6547  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE" - Prefer to migrate to
  6548  	// Google Cloud Compute Engine.
  6549  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE" - Prefer to migrate to
  6550  	// Google Cloud VMware Engine.
  6551  	//   "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" - Prefer to migrate to
  6552  	// Google Cloud Sole Tenant Nodes.
  6553  	TargetProduct string `json:"targetProduct,omitempty"`
  6554  	// VmwareEnginePreferences: Preferences concerning insights and recommendations
  6555  	// for Google Cloud VMware Engine.
  6556  	VmwareEnginePreferences *VmwareEnginePreferences `json:"vmwareEnginePreferences,omitempty"`
  6557  	// ForceSendFields is a list of field names (e.g. "CommitmentPlan") to
  6558  	// unconditionally include in API requests. By default, fields with empty or
  6559  	// default values are omitted from API requests. See
  6560  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6561  	// details.
  6562  	ForceSendFields []string `json:"-"`
  6563  	// NullFields is a list of field names (e.g. "CommitmentPlan") to include in
  6564  	// API requests with the JSON null value. By default, fields with empty values
  6565  	// are omitted from API requests. See
  6566  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6567  	NullFields []string `json:"-"`
  6568  }
  6569  
  6570  func (s *VirtualMachinePreferences) MarshalJSON() ([]byte, error) {
  6571  	type NoMethod VirtualMachinePreferences
  6572  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6573  }
  6574  
  6575  // VirtualMachinePreferencesNetworkCostParameters: Parameters that affect
  6576  // network cost estimations.
  6577  type VirtualMachinePreferencesNetworkCostParameters struct {
  6578  	// EstimatedEgressTrafficPercentage: Optional. An estimated percentage of
  6579  	// priced outbound traffic (egress traffic) from the measured outbound traffic.
  6580  	// Must be in the interval [0, 100].
  6581  	EstimatedEgressTrafficPercentage int64 `json:"estimatedEgressTrafficPercentage,omitempty"`
  6582  	// ForceSendFields is a list of field names (e.g.
  6583  	// "EstimatedEgressTrafficPercentage") to unconditionally include in API
  6584  	// requests. By default, fields with empty or default values are omitted from
  6585  	// API requests. See
  6586  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6587  	// details.
  6588  	ForceSendFields []string `json:"-"`
  6589  	// NullFields is a list of field names (e.g.
  6590  	// "EstimatedEgressTrafficPercentage") to include in API requests with the JSON
  6591  	// null value. By default, fields with empty values are omitted from API
  6592  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  6593  	// more details.
  6594  	NullFields []string `json:"-"`
  6595  }
  6596  
  6597  func (s *VirtualMachinePreferencesNetworkCostParameters) MarshalJSON() ([]byte, error) {
  6598  	type NoMethod VirtualMachinePreferencesNetworkCostParameters
  6599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6600  }
  6601  
  6602  // VirtualMachinePreferencesSizingOptimizationCustomParameters: Custom data to
  6603  // use for sizing optimizations.
  6604  type VirtualMachinePreferencesSizingOptimizationCustomParameters struct {
  6605  	// AggregationMethod: Optional. Type of statistical aggregation of a resource
  6606  	// utilization data, on which to base the sizing metrics.
  6607  	//
  6608  	// Possible values:
  6609  	//   "AGGREGATION_METHOD_UNSPECIFIED" - Unspecified aggregation method. Can be
  6610  	// used for default value.
  6611  	//   "AGGREGATION_METHOD_AVERAGE" - Average of utilization data.
  6612  	//   "AGGREGATION_METHOD_MEDIAN" - Median of utilization data.
  6613  	//   "AGGREGATION_METHOD_NINETY_FIFTH_PERCENTILE" - 95th percentile of
  6614  	// utilization data.
  6615  	//   "AGGREGATION_METHOD_PEAK" - Peak of utilization data.
  6616  	AggregationMethod string `json:"aggregationMethod,omitempty"`
  6617  	// CpuUsagePercentage: Optional. Desired percentage of CPU usage. Must be in
  6618  	// the interval [1, 100] (or 0 for default value).
  6619  	CpuUsagePercentage int64 `json:"cpuUsagePercentage,omitempty"`
  6620  	// MemoryUsagePercentage: Optional. Desired percentage of memory usage. Must be
  6621  	// in the interval [1, 100] (or 0 for default value).
  6622  	MemoryUsagePercentage int64 `json:"memoryUsagePercentage,omitempty"`
  6623  	// StorageMultiplier: Optional. Desired increase factor of storage, relative to
  6624  	// currently used storage. Must be in the interval [1.0, 2.0] (or 0 for default
  6625  	// value).
  6626  	StorageMultiplier float64 `json:"storageMultiplier,omitempty"`
  6627  	// ForceSendFields is a list of field names (e.g. "AggregationMethod") to
  6628  	// unconditionally include in API requests. By default, fields with empty or
  6629  	// default values are omitted from API requests. See
  6630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6631  	// details.
  6632  	ForceSendFields []string `json:"-"`
  6633  	// NullFields is a list of field names (e.g. "AggregationMethod") to include in
  6634  	// API requests with the JSON null value. By default, fields with empty values
  6635  	// are omitted from API requests. See
  6636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6637  	NullFields []string `json:"-"`
  6638  }
  6639  
  6640  func (s *VirtualMachinePreferencesSizingOptimizationCustomParameters) MarshalJSON() ([]byte, error) {
  6641  	type NoMethod VirtualMachinePreferencesSizingOptimizationCustomParameters
  6642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6643  }
  6644  
  6645  func (s *VirtualMachinePreferencesSizingOptimizationCustomParameters) UnmarshalJSON(data []byte) error {
  6646  	type NoMethod VirtualMachinePreferencesSizingOptimizationCustomParameters
  6647  	var s1 struct {
  6648  		StorageMultiplier gensupport.JSONFloat64 `json:"storageMultiplier"`
  6649  		*NoMethod
  6650  	}
  6651  	s1.NoMethod = (*NoMethod)(s)
  6652  	if err := json.Unmarshal(data, &s1); err != nil {
  6653  		return err
  6654  	}
  6655  	s.StorageMultiplier = float64(s1.StorageMultiplier)
  6656  	return nil
  6657  }
  6658  
  6659  // VmwareDiskConfig: VMware disk config details.
  6660  type VmwareDiskConfig struct {
  6661  	// BackingType: VMDK backing type.
  6662  	//
  6663  	// Possible values:
  6664  	//   "BACKING_TYPE_UNSPECIFIED" - Default value.
  6665  	//   "BACKING_TYPE_FLAT_V1" - Flat v1.
  6666  	//   "BACKING_TYPE_FLAT_V2" - Flat v2.
  6667  	//   "BACKING_TYPE_PMEM" - Persistent memory, also known as Non-Volatile Memory
  6668  	// (NVM).
  6669  	//   "BACKING_TYPE_RDM_V1" - Raw Disk Memory v1.
  6670  	//   "BACKING_TYPE_RDM_V2" - Raw Disk Memory v2.
  6671  	//   "BACKING_TYPE_SESPARSE" - SEsparse is a snapshot format introduced in
  6672  	// vSphere 5.5 for large disks.
  6673  	//   "BACKING_TYPE_SESPARSE_V1" - SEsparse v1.
  6674  	//   "BACKING_TYPE_SESPARSE_V2" - SEsparse v1.
  6675  	BackingType string `json:"backingType,omitempty"`
  6676  	// RdmCompatibilityMode: RDM compatibility mode.
  6677  	RdmCompatibilityMode string `json:"rdmCompatibilityMode,omitempty"`
  6678  	// Shared: Is VMDK shared with other VMs.
  6679  	Shared bool `json:"shared,omitempty"`
  6680  	// VmdkDiskMode: VMDK disk mode.
  6681  	VmdkDiskMode string `json:"vmdkDiskMode,omitempty"`
  6682  	// ForceSendFields is a list of field names (e.g. "BackingType") to
  6683  	// unconditionally include in API requests. By default, fields with empty or
  6684  	// default values are omitted from API requests. See
  6685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6686  	// details.
  6687  	ForceSendFields []string `json:"-"`
  6688  	// NullFields is a list of field names (e.g. "BackingType") to include in API
  6689  	// requests with the JSON null value. By default, fields with empty values are
  6690  	// omitted from API requests. See
  6691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6692  	NullFields []string `json:"-"`
  6693  }
  6694  
  6695  func (s *VmwareDiskConfig) MarshalJSON() ([]byte, error) {
  6696  	type NoMethod VmwareDiskConfig
  6697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6698  }
  6699  
  6700  // VmwareEngineMigrationTarget: VMWare engine migration target.
  6701  type VmwareEngineMigrationTarget struct {
  6702  }
  6703  
  6704  // VmwareEnginePreferences: The user preferences relating to Google Cloud
  6705  // VMware Engine target platform.
  6706  type VmwareEnginePreferences struct {
  6707  	// CommitmentPlan: Commitment plan to consider when calculating costs for
  6708  	// virtual machine insights and recommendations. If you are unsure which value
  6709  	// to set, a 3 year commitment plan is often a good value to start with.
  6710  	//
  6711  	// Possible values:
  6712  	//   "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan.
  6713  	//   "ON_DEMAND" - No commitment plan (on-demand usage).
  6714  	//   "COMMITMENT_1_YEAR_MONTHLY_PAYMENTS" - 1 year commitment (monthly
  6715  	// payments).
  6716  	//   "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS" - 3 year commitment (monthly
  6717  	// payments).
  6718  	//   "COMMITMENT_1_YEAR_UPFRONT_PAYMENT" - 1 year commitment (upfront payment).
  6719  	//   "COMMITMENT_3_YEAR_UPFRONT_PAYMENT" - 3 years commitment (upfront
  6720  	// payment).
  6721  	CommitmentPlan string `json:"commitmentPlan,omitempty"`
  6722  	// CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are between 1.0
  6723  	// and 8.0, with 0.1 increment.
  6724  	CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"`
  6725  	// MemoryOvercommitRatio: Memory overcommit ratio. Acceptable values are 1.0,
  6726  	// 1.25, 1.5, 1.75 and 2.0.
  6727  	MemoryOvercommitRatio float64 `json:"memoryOvercommitRatio,omitempty"`
  6728  	// StorageDeduplicationCompressionRatio: The Deduplication and Compression
  6729  	// ratio is based on the logical (Used Before) space required to store data
  6730  	// before applying deduplication and compression, in relation to the physical
  6731  	// (Used After) space required after applying deduplication and compression.
  6732  	// Specifically, the ratio is the Used Before space divided by the Used After
  6733  	// space. For example, if the Used Before space is 3 GB, but the physical Used
  6734  	// After space is 1 GB, the deduplication and compression ratio is 3x.
  6735  	// Acceptable values are between 1.0 and 4.0.
  6736  	StorageDeduplicationCompressionRatio float64 `json:"storageDeduplicationCompressionRatio,omitempty"`
  6737  	// ForceSendFields is a list of field names (e.g. "CommitmentPlan") to
  6738  	// unconditionally include in API requests. By default, fields with empty or
  6739  	// default values are omitted from API requests. See
  6740  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6741  	// details.
  6742  	ForceSendFields []string `json:"-"`
  6743  	// NullFields is a list of field names (e.g. "CommitmentPlan") to include in
  6744  	// API requests with the JSON null value. By default, fields with empty values
  6745  	// are omitted from API requests. See
  6746  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6747  	NullFields []string `json:"-"`
  6748  }
  6749  
  6750  func (s *VmwareEnginePreferences) MarshalJSON() ([]byte, error) {
  6751  	type NoMethod VmwareEnginePreferences
  6752  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6753  }
  6754  
  6755  func (s *VmwareEnginePreferences) UnmarshalJSON(data []byte) error {
  6756  	type NoMethod VmwareEnginePreferences
  6757  	var s1 struct {
  6758  		CpuOvercommitRatio                   gensupport.JSONFloat64 `json:"cpuOvercommitRatio"`
  6759  		MemoryOvercommitRatio                gensupport.JSONFloat64 `json:"memoryOvercommitRatio"`
  6760  		StorageDeduplicationCompressionRatio gensupport.JSONFloat64 `json:"storageDeduplicationCompressionRatio"`
  6761  		*NoMethod
  6762  	}
  6763  	s1.NoMethod = (*NoMethod)(s)
  6764  	if err := json.Unmarshal(data, &s1); err != nil {
  6765  		return err
  6766  	}
  6767  	s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio)
  6768  	s.MemoryOvercommitRatio = float64(s1.MemoryOvercommitRatio)
  6769  	s.StorageDeduplicationCompressionRatio = float64(s1.StorageDeduplicationCompressionRatio)
  6770  	return nil
  6771  }
  6772  
  6773  // VmwarePlatformDetails: VMware specific details.
  6774  type VmwarePlatformDetails struct {
  6775  	// EsxVersion: ESX version.
  6776  	EsxVersion string `json:"esxVersion,omitempty"`
  6777  	// Osid: VMware os enum -
  6778  	// 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.
  6779  	Osid string `json:"osid,omitempty"`
  6780  	// VcenterVersion: vCenter version.
  6781  	VcenterVersion string `json:"vcenterVersion,omitempty"`
  6782  	// ForceSendFields is a list of field names (e.g. "EsxVersion") to
  6783  	// unconditionally include in API requests. By default, fields with empty or
  6784  	// default values are omitted from API requests. See
  6785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6786  	// details.
  6787  	ForceSendFields []string `json:"-"`
  6788  	// NullFields is a list of field names (e.g. "EsxVersion") to include in API
  6789  	// requests with the JSON null value. By default, fields with empty values are
  6790  	// omitted from API requests. See
  6791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6792  	NullFields []string `json:"-"`
  6793  }
  6794  
  6795  func (s *VmwarePlatformDetails) MarshalJSON() ([]byte, error) {
  6796  	type NoMethod VmwarePlatformDetails
  6797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6798  }
  6799  
  6800  type ProjectsLocationsGetCall struct {
  6801  	s            *Service
  6802  	name         string
  6803  	urlParams_   gensupport.URLParams
  6804  	ifNoneMatch_ string
  6805  	ctx_         context.Context
  6806  	header_      http.Header
  6807  }
  6808  
  6809  // Get: Gets information about a location.
  6810  //
  6811  // - name: Resource name for the location.
  6812  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  6813  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6814  	c.name = name
  6815  	return c
  6816  }
  6817  
  6818  // Fields allows partial responses to be retrieved. See
  6819  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6820  // details.
  6821  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  6822  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6823  	return c
  6824  }
  6825  
  6826  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6827  // object's ETag matches the given value. This is useful for getting updates
  6828  // only after the object has changed since the last request.
  6829  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  6830  	c.ifNoneMatch_ = entityTag
  6831  	return c
  6832  }
  6833  
  6834  // Context sets the context to be used in this call's Do method.
  6835  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  6836  	c.ctx_ = ctx
  6837  	return c
  6838  }
  6839  
  6840  // Header returns a http.Header that can be modified by the caller to add
  6841  // headers to the request.
  6842  func (c *ProjectsLocationsGetCall) Header() http.Header {
  6843  	if c.header_ == nil {
  6844  		c.header_ = make(http.Header)
  6845  	}
  6846  	return c.header_
  6847  }
  6848  
  6849  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  6850  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6851  	if c.ifNoneMatch_ != "" {
  6852  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6853  	}
  6854  	var body io.Reader = nil
  6855  	c.urlParams_.Set("alt", alt)
  6856  	c.urlParams_.Set("prettyPrint", "false")
  6857  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  6858  	urls += "?" + c.urlParams_.Encode()
  6859  	req, err := http.NewRequest("GET", urls, body)
  6860  	if err != nil {
  6861  		return nil, err
  6862  	}
  6863  	req.Header = reqHeaders
  6864  	googleapi.Expand(req.URL, map[string]string{
  6865  		"name": c.name,
  6866  	})
  6867  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6868  }
  6869  
  6870  // Do executes the "migrationcenter.projects.locations.get" call.
  6871  // Any non-2xx status code is an error. Response headers are in either
  6872  // *Location.ServerResponse.Header or (if a response was returned at all) in
  6873  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6874  // whether the returned error was because http.StatusNotModified was returned.
  6875  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  6876  	gensupport.SetOptions(c.urlParams_, opts...)
  6877  	res, err := c.doRequest("json")
  6878  	if res != nil && res.StatusCode == http.StatusNotModified {
  6879  		if res.Body != nil {
  6880  			res.Body.Close()
  6881  		}
  6882  		return nil, gensupport.WrapError(&googleapi.Error{
  6883  			Code:   res.StatusCode,
  6884  			Header: res.Header,
  6885  		})
  6886  	}
  6887  	if err != nil {
  6888  		return nil, err
  6889  	}
  6890  	defer googleapi.CloseBody(res)
  6891  	if err := googleapi.CheckResponse(res); err != nil {
  6892  		return nil, gensupport.WrapError(err)
  6893  	}
  6894  	ret := &Location{
  6895  		ServerResponse: googleapi.ServerResponse{
  6896  			Header:         res.Header,
  6897  			HTTPStatusCode: res.StatusCode,
  6898  		},
  6899  	}
  6900  	target := &ret
  6901  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6902  		return nil, err
  6903  	}
  6904  	return ret, nil
  6905  }
  6906  
  6907  type ProjectsLocationsGetSettingsCall struct {
  6908  	s            *Service
  6909  	name         string
  6910  	urlParams_   gensupport.URLParams
  6911  	ifNoneMatch_ string
  6912  	ctx_         context.Context
  6913  	header_      http.Header
  6914  }
  6915  
  6916  // GetSettings: Gets the details of regional settings.
  6917  //
  6918  // - name: Name of the resource.
  6919  func (r *ProjectsLocationsService) GetSettings(name string) *ProjectsLocationsGetSettingsCall {
  6920  	c := &ProjectsLocationsGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6921  	c.name = name
  6922  	return c
  6923  }
  6924  
  6925  // Fields allows partial responses to be retrieved. See
  6926  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6927  // details.
  6928  func (c *ProjectsLocationsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetSettingsCall {
  6929  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6930  	return c
  6931  }
  6932  
  6933  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6934  // object's ETag matches the given value. This is useful for getting updates
  6935  // only after the object has changed since the last request.
  6936  func (c *ProjectsLocationsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetSettingsCall {
  6937  	c.ifNoneMatch_ = entityTag
  6938  	return c
  6939  }
  6940  
  6941  // Context sets the context to be used in this call's Do method.
  6942  func (c *ProjectsLocationsGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetSettingsCall {
  6943  	c.ctx_ = ctx
  6944  	return c
  6945  }
  6946  
  6947  // Header returns a http.Header that can be modified by the caller to add
  6948  // headers to the request.
  6949  func (c *ProjectsLocationsGetSettingsCall) Header() http.Header {
  6950  	if c.header_ == nil {
  6951  		c.header_ = make(http.Header)
  6952  	}
  6953  	return c.header_
  6954  }
  6955  
  6956  func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response, error) {
  6957  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6958  	if c.ifNoneMatch_ != "" {
  6959  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6960  	}
  6961  	var body io.Reader = nil
  6962  	c.urlParams_.Set("alt", alt)
  6963  	c.urlParams_.Set("prettyPrint", "false")
  6964  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  6965  	urls += "?" + c.urlParams_.Encode()
  6966  	req, err := http.NewRequest("GET", urls, body)
  6967  	if err != nil {
  6968  		return nil, err
  6969  	}
  6970  	req.Header = reqHeaders
  6971  	googleapi.Expand(req.URL, map[string]string{
  6972  		"name": c.name,
  6973  	})
  6974  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6975  }
  6976  
  6977  // Do executes the "migrationcenter.projects.locations.getSettings" call.
  6978  // Any non-2xx status code is an error. Response headers are in either
  6979  // *Settings.ServerResponse.Header or (if a response was returned at all) in
  6980  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6981  // whether the returned error was because http.StatusNotModified was returned.
  6982  func (c *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error) {
  6983  	gensupport.SetOptions(c.urlParams_, opts...)
  6984  	res, err := c.doRequest("json")
  6985  	if res != nil && res.StatusCode == http.StatusNotModified {
  6986  		if res.Body != nil {
  6987  			res.Body.Close()
  6988  		}
  6989  		return nil, gensupport.WrapError(&googleapi.Error{
  6990  			Code:   res.StatusCode,
  6991  			Header: res.Header,
  6992  		})
  6993  	}
  6994  	if err != nil {
  6995  		return nil, err
  6996  	}
  6997  	defer googleapi.CloseBody(res)
  6998  	if err := googleapi.CheckResponse(res); err != nil {
  6999  		return nil, gensupport.WrapError(err)
  7000  	}
  7001  	ret := &Settings{
  7002  		ServerResponse: googleapi.ServerResponse{
  7003  			Header:         res.Header,
  7004  			HTTPStatusCode: res.StatusCode,
  7005  		},
  7006  	}
  7007  	target := &ret
  7008  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7009  		return nil, err
  7010  	}
  7011  	return ret, nil
  7012  }
  7013  
  7014  type ProjectsLocationsListCall struct {
  7015  	s            *Service
  7016  	name         string
  7017  	urlParams_   gensupport.URLParams
  7018  	ifNoneMatch_ string
  7019  	ctx_         context.Context
  7020  	header_      http.Header
  7021  }
  7022  
  7023  // List: Lists information about the supported locations for this service.
  7024  //
  7025  // - name: The resource that owns the locations collection, if applicable.
  7026  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  7027  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7028  	c.name = name
  7029  	return c
  7030  }
  7031  
  7032  // Filter sets the optional parameter "filter": A filter to narrow down results
  7033  // to a preferred subset. The filtering language accepts strings like
  7034  // "displayName=tokyo", and is documented in more detail in AIP-160
  7035  // (https://google.aip.dev/160).
  7036  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  7037  	c.urlParams_.Set("filter", filter)
  7038  	return c
  7039  }
  7040  
  7041  // PageSize sets the optional parameter "pageSize": The maximum number of
  7042  // results to return. If not set, the service selects a default.
  7043  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  7044  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7045  	return c
  7046  }
  7047  
  7048  // PageToken sets the optional parameter "pageToken": A page token received
  7049  // from the `next_page_token` field in the response. Send that page token to
  7050  // receive the subsequent page.
  7051  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  7052  	c.urlParams_.Set("pageToken", pageToken)
  7053  	return c
  7054  }
  7055  
  7056  // Fields allows partial responses to be retrieved. See
  7057  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7058  // details.
  7059  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  7060  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7061  	return c
  7062  }
  7063  
  7064  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7065  // object's ETag matches the given value. This is useful for getting updates
  7066  // only after the object has changed since the last request.
  7067  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  7068  	c.ifNoneMatch_ = entityTag
  7069  	return c
  7070  }
  7071  
  7072  // Context sets the context to be used in this call's Do method.
  7073  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  7074  	c.ctx_ = ctx
  7075  	return c
  7076  }
  7077  
  7078  // Header returns a http.Header that can be modified by the caller to add
  7079  // headers to the request.
  7080  func (c *ProjectsLocationsListCall) Header() http.Header {
  7081  	if c.header_ == nil {
  7082  		c.header_ = make(http.Header)
  7083  	}
  7084  	return c.header_
  7085  }
  7086  
  7087  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  7088  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7089  	if c.ifNoneMatch_ != "" {
  7090  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7091  	}
  7092  	var body io.Reader = nil
  7093  	c.urlParams_.Set("alt", alt)
  7094  	c.urlParams_.Set("prettyPrint", "false")
  7095  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/locations")
  7096  	urls += "?" + c.urlParams_.Encode()
  7097  	req, err := http.NewRequest("GET", urls, body)
  7098  	if err != nil {
  7099  		return nil, err
  7100  	}
  7101  	req.Header = reqHeaders
  7102  	googleapi.Expand(req.URL, map[string]string{
  7103  		"name": c.name,
  7104  	})
  7105  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7106  }
  7107  
  7108  // Do executes the "migrationcenter.projects.locations.list" call.
  7109  // Any non-2xx status code is an error. Response headers are in either
  7110  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  7111  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7112  // check whether the returned error was because http.StatusNotModified was
  7113  // returned.
  7114  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  7115  	gensupport.SetOptions(c.urlParams_, opts...)
  7116  	res, err := c.doRequest("json")
  7117  	if res != nil && res.StatusCode == http.StatusNotModified {
  7118  		if res.Body != nil {
  7119  			res.Body.Close()
  7120  		}
  7121  		return nil, gensupport.WrapError(&googleapi.Error{
  7122  			Code:   res.StatusCode,
  7123  			Header: res.Header,
  7124  		})
  7125  	}
  7126  	if err != nil {
  7127  		return nil, err
  7128  	}
  7129  	defer googleapi.CloseBody(res)
  7130  	if err := googleapi.CheckResponse(res); err != nil {
  7131  		return nil, gensupport.WrapError(err)
  7132  	}
  7133  	ret := &ListLocationsResponse{
  7134  		ServerResponse: googleapi.ServerResponse{
  7135  			Header:         res.Header,
  7136  			HTTPStatusCode: res.StatusCode,
  7137  		},
  7138  	}
  7139  	target := &ret
  7140  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7141  		return nil, err
  7142  	}
  7143  	return ret, nil
  7144  }
  7145  
  7146  // Pages invokes f for each page of results.
  7147  // A non-nil error returned from f will halt the iteration.
  7148  // The provided context supersedes any context provided to the Context method.
  7149  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  7150  	c.ctx_ = ctx
  7151  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7152  	for {
  7153  		x, err := c.Do()
  7154  		if err != nil {
  7155  			return err
  7156  		}
  7157  		if err := f(x); err != nil {
  7158  			return err
  7159  		}
  7160  		if x.NextPageToken == "" {
  7161  			return nil
  7162  		}
  7163  		c.PageToken(x.NextPageToken)
  7164  	}
  7165  }
  7166  
  7167  type ProjectsLocationsUpdateSettingsCall struct {
  7168  	s          *Service
  7169  	name       string
  7170  	settings   *Settings
  7171  	urlParams_ gensupport.URLParams
  7172  	ctx_       context.Context
  7173  	header_    http.Header
  7174  }
  7175  
  7176  // UpdateSettings: Updates the regional-level project settings.
  7177  //
  7178  // - name: Output only. The name of the resource.
  7179  func (r *ProjectsLocationsService) UpdateSettings(name string, settings *Settings) *ProjectsLocationsUpdateSettingsCall {
  7180  	c := &ProjectsLocationsUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7181  	c.name = name
  7182  	c.settings = settings
  7183  	return c
  7184  }
  7185  
  7186  // RequestId sets the optional parameter "requestId": An optional request ID to
  7187  // identify requests. Specify a unique request ID so that if you must retry
  7188  // your request, the server will know to ignore the request if it has already
  7189  // been completed. The server will guarantee that for at least 60 minutes since
  7190  // the first request. For example, consider a situation where you make an
  7191  // initial request and the request times out. If you make the request again
  7192  // with the same request ID, the server can check if original operation with
  7193  // the same request ID was received, and if so, will ignore the second request.
  7194  // This prevents clients from accidentally creating duplicate commitments. The
  7195  // request ID must be a valid UUID with the exception that zero UUID is not
  7196  // supported (00000000-0000-0000-0000-000000000000).
  7197  func (c *ProjectsLocationsUpdateSettingsCall) RequestId(requestId string) *ProjectsLocationsUpdateSettingsCall {
  7198  	c.urlParams_.Set("requestId", requestId)
  7199  	return c
  7200  }
  7201  
  7202  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  7203  // used to specify the fields to be overwritten in the `Settings` resource by
  7204  // the update. The values specified in the `update_mask` field are relative to
  7205  // the resource, not the full request. A field will be overwritten if it is in
  7206  // the mask. A single * value in the mask lets you to overwrite all fields.
  7207  func (c *ProjectsLocationsUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateSettingsCall {
  7208  	c.urlParams_.Set("updateMask", updateMask)
  7209  	return c
  7210  }
  7211  
  7212  // Fields allows partial responses to be retrieved. See
  7213  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7214  // details.
  7215  func (c *ProjectsLocationsUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateSettingsCall {
  7216  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7217  	return c
  7218  }
  7219  
  7220  // Context sets the context to be used in this call's Do method.
  7221  func (c *ProjectsLocationsUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateSettingsCall {
  7222  	c.ctx_ = ctx
  7223  	return c
  7224  }
  7225  
  7226  // Header returns a http.Header that can be modified by the caller to add
  7227  // headers to the request.
  7228  func (c *ProjectsLocationsUpdateSettingsCall) Header() http.Header {
  7229  	if c.header_ == nil {
  7230  		c.header_ = make(http.Header)
  7231  	}
  7232  	return c.header_
  7233  }
  7234  
  7235  func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Response, error) {
  7236  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7237  	var body io.Reader = nil
  7238  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.settings)
  7239  	if err != nil {
  7240  		return nil, err
  7241  	}
  7242  	c.urlParams_.Set("alt", alt)
  7243  	c.urlParams_.Set("prettyPrint", "false")
  7244  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  7245  	urls += "?" + c.urlParams_.Encode()
  7246  	req, err := http.NewRequest("PATCH", urls, body)
  7247  	if err != nil {
  7248  		return nil, err
  7249  	}
  7250  	req.Header = reqHeaders
  7251  	googleapi.Expand(req.URL, map[string]string{
  7252  		"name": c.name,
  7253  	})
  7254  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7255  }
  7256  
  7257  // Do executes the "migrationcenter.projects.locations.updateSettings" call.
  7258  // Any non-2xx status code is an error. Response headers are in either
  7259  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7260  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7261  // whether the returned error was because http.StatusNotModified was returned.
  7262  func (c *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7263  	gensupport.SetOptions(c.urlParams_, opts...)
  7264  	res, err := c.doRequest("json")
  7265  	if res != nil && res.StatusCode == http.StatusNotModified {
  7266  		if res.Body != nil {
  7267  			res.Body.Close()
  7268  		}
  7269  		return nil, gensupport.WrapError(&googleapi.Error{
  7270  			Code:   res.StatusCode,
  7271  			Header: res.Header,
  7272  		})
  7273  	}
  7274  	if err != nil {
  7275  		return nil, err
  7276  	}
  7277  	defer googleapi.CloseBody(res)
  7278  	if err := googleapi.CheckResponse(res); err != nil {
  7279  		return nil, gensupport.WrapError(err)
  7280  	}
  7281  	ret := &Operation{
  7282  		ServerResponse: googleapi.ServerResponse{
  7283  			Header:         res.Header,
  7284  			HTTPStatusCode: res.StatusCode,
  7285  		},
  7286  	}
  7287  	target := &ret
  7288  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7289  		return nil, err
  7290  	}
  7291  	return ret, nil
  7292  }
  7293  
  7294  type ProjectsLocationsAssetsAggregateValuesCall struct {
  7295  	s                            *Service
  7296  	parent                       string
  7297  	aggregateassetsvaluesrequest *AggregateAssetsValuesRequest
  7298  	urlParams_                   gensupport.URLParams
  7299  	ctx_                         context.Context
  7300  	header_                      http.Header
  7301  }
  7302  
  7303  // AggregateValues: Aggregates the requested fields based on provided function.
  7304  //
  7305  // - parent: Parent value for `AggregateAssetsValuesRequest`.
  7306  func (r *ProjectsLocationsAssetsService) AggregateValues(parent string, aggregateassetsvaluesrequest *AggregateAssetsValuesRequest) *ProjectsLocationsAssetsAggregateValuesCall {
  7307  	c := &ProjectsLocationsAssetsAggregateValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7308  	c.parent = parent
  7309  	c.aggregateassetsvaluesrequest = aggregateassetsvaluesrequest
  7310  	return c
  7311  }
  7312  
  7313  // Fields allows partial responses to be retrieved. See
  7314  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7315  // details.
  7316  func (c *ProjectsLocationsAssetsAggregateValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsAggregateValuesCall {
  7317  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7318  	return c
  7319  }
  7320  
  7321  // Context sets the context to be used in this call's Do method.
  7322  func (c *ProjectsLocationsAssetsAggregateValuesCall) Context(ctx context.Context) *ProjectsLocationsAssetsAggregateValuesCall {
  7323  	c.ctx_ = ctx
  7324  	return c
  7325  }
  7326  
  7327  // Header returns a http.Header that can be modified by the caller to add
  7328  // headers to the request.
  7329  func (c *ProjectsLocationsAssetsAggregateValuesCall) Header() http.Header {
  7330  	if c.header_ == nil {
  7331  		c.header_ = make(http.Header)
  7332  	}
  7333  	return c.header_
  7334  }
  7335  
  7336  func (c *ProjectsLocationsAssetsAggregateValuesCall) doRequest(alt string) (*http.Response, error) {
  7337  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7338  	var body io.Reader = nil
  7339  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.aggregateassetsvaluesrequest)
  7340  	if err != nil {
  7341  		return nil, err
  7342  	}
  7343  	c.urlParams_.Set("alt", alt)
  7344  	c.urlParams_.Set("prettyPrint", "false")
  7345  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:aggregateValues")
  7346  	urls += "?" + c.urlParams_.Encode()
  7347  	req, err := http.NewRequest("POST", urls, body)
  7348  	if err != nil {
  7349  		return nil, err
  7350  	}
  7351  	req.Header = reqHeaders
  7352  	googleapi.Expand(req.URL, map[string]string{
  7353  		"parent": c.parent,
  7354  	})
  7355  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7356  }
  7357  
  7358  // Do executes the "migrationcenter.projects.locations.assets.aggregateValues" call.
  7359  // Any non-2xx status code is an error. Response headers are in either
  7360  // *AggregateAssetsValuesResponse.ServerResponse.Header or (if a response was
  7361  // returned at all) in error.(*googleapi.Error).Header. Use
  7362  // googleapi.IsNotModified to check whether the returned error was because
  7363  // http.StatusNotModified was returned.
  7364  func (c *ProjectsLocationsAssetsAggregateValuesCall) Do(opts ...googleapi.CallOption) (*AggregateAssetsValuesResponse, error) {
  7365  	gensupport.SetOptions(c.urlParams_, opts...)
  7366  	res, err := c.doRequest("json")
  7367  	if res != nil && res.StatusCode == http.StatusNotModified {
  7368  		if res.Body != nil {
  7369  			res.Body.Close()
  7370  		}
  7371  		return nil, gensupport.WrapError(&googleapi.Error{
  7372  			Code:   res.StatusCode,
  7373  			Header: res.Header,
  7374  		})
  7375  	}
  7376  	if err != nil {
  7377  		return nil, err
  7378  	}
  7379  	defer googleapi.CloseBody(res)
  7380  	if err := googleapi.CheckResponse(res); err != nil {
  7381  		return nil, gensupport.WrapError(err)
  7382  	}
  7383  	ret := &AggregateAssetsValuesResponse{
  7384  		ServerResponse: googleapi.ServerResponse{
  7385  			Header:         res.Header,
  7386  			HTTPStatusCode: res.StatusCode,
  7387  		},
  7388  	}
  7389  	target := &ret
  7390  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7391  		return nil, err
  7392  	}
  7393  	return ret, nil
  7394  }
  7395  
  7396  type ProjectsLocationsAssetsBatchDeleteCall struct {
  7397  	s                        *Service
  7398  	parent                   string
  7399  	batchdeleteassetsrequest *BatchDeleteAssetsRequest
  7400  	urlParams_               gensupport.URLParams
  7401  	ctx_                     context.Context
  7402  	header_                  http.Header
  7403  }
  7404  
  7405  // BatchDelete: Deletes list of Assets.
  7406  //
  7407  // - parent: Parent value for batch asset delete.
  7408  func (r *ProjectsLocationsAssetsService) BatchDelete(parent string, batchdeleteassetsrequest *BatchDeleteAssetsRequest) *ProjectsLocationsAssetsBatchDeleteCall {
  7409  	c := &ProjectsLocationsAssetsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7410  	c.parent = parent
  7411  	c.batchdeleteassetsrequest = batchdeleteassetsrequest
  7412  	return c
  7413  }
  7414  
  7415  // Fields allows partial responses to be retrieved. See
  7416  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7417  // details.
  7418  func (c *ProjectsLocationsAssetsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsBatchDeleteCall {
  7419  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7420  	return c
  7421  }
  7422  
  7423  // Context sets the context to be used in this call's Do method.
  7424  func (c *ProjectsLocationsAssetsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsBatchDeleteCall {
  7425  	c.ctx_ = ctx
  7426  	return c
  7427  }
  7428  
  7429  // Header returns a http.Header that can be modified by the caller to add
  7430  // headers to the request.
  7431  func (c *ProjectsLocationsAssetsBatchDeleteCall) Header() http.Header {
  7432  	if c.header_ == nil {
  7433  		c.header_ = make(http.Header)
  7434  	}
  7435  	return c.header_
  7436  }
  7437  
  7438  func (c *ProjectsLocationsAssetsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
  7439  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7440  	var body io.Reader = nil
  7441  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchdeleteassetsrequest)
  7442  	if err != nil {
  7443  		return nil, err
  7444  	}
  7445  	c.urlParams_.Set("alt", alt)
  7446  	c.urlParams_.Set("prettyPrint", "false")
  7447  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:batchDelete")
  7448  	urls += "?" + c.urlParams_.Encode()
  7449  	req, err := http.NewRequest("POST", urls, body)
  7450  	if err != nil {
  7451  		return nil, err
  7452  	}
  7453  	req.Header = reqHeaders
  7454  	googleapi.Expand(req.URL, map[string]string{
  7455  		"parent": c.parent,
  7456  	})
  7457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7458  }
  7459  
  7460  // Do executes the "migrationcenter.projects.locations.assets.batchDelete" call.
  7461  // Any non-2xx status code is an error. Response headers are in either
  7462  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  7463  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7464  // whether the returned error was because http.StatusNotModified was returned.
  7465  func (c *ProjectsLocationsAssetsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7466  	gensupport.SetOptions(c.urlParams_, opts...)
  7467  	res, err := c.doRequest("json")
  7468  	if res != nil && res.StatusCode == http.StatusNotModified {
  7469  		if res.Body != nil {
  7470  			res.Body.Close()
  7471  		}
  7472  		return nil, gensupport.WrapError(&googleapi.Error{
  7473  			Code:   res.StatusCode,
  7474  			Header: res.Header,
  7475  		})
  7476  	}
  7477  	if err != nil {
  7478  		return nil, err
  7479  	}
  7480  	defer googleapi.CloseBody(res)
  7481  	if err := googleapi.CheckResponse(res); err != nil {
  7482  		return nil, gensupport.WrapError(err)
  7483  	}
  7484  	ret := &Empty{
  7485  		ServerResponse: googleapi.ServerResponse{
  7486  			Header:         res.Header,
  7487  			HTTPStatusCode: res.StatusCode,
  7488  		},
  7489  	}
  7490  	target := &ret
  7491  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7492  		return nil, err
  7493  	}
  7494  	return ret, nil
  7495  }
  7496  
  7497  type ProjectsLocationsAssetsBatchUpdateCall struct {
  7498  	s                        *Service
  7499  	parent                   string
  7500  	batchupdateassetsrequest *BatchUpdateAssetsRequest
  7501  	urlParams_               gensupport.URLParams
  7502  	ctx_                     context.Context
  7503  	header_                  http.Header
  7504  }
  7505  
  7506  // BatchUpdate: Updates the parameters of a list of assets.
  7507  //
  7508  // - parent: Parent value for batch asset update.
  7509  func (r *ProjectsLocationsAssetsService) BatchUpdate(parent string, batchupdateassetsrequest *BatchUpdateAssetsRequest) *ProjectsLocationsAssetsBatchUpdateCall {
  7510  	c := &ProjectsLocationsAssetsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7511  	c.parent = parent
  7512  	c.batchupdateassetsrequest = batchupdateassetsrequest
  7513  	return c
  7514  }
  7515  
  7516  // Fields allows partial responses to be retrieved. See
  7517  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7518  // details.
  7519  func (c *ProjectsLocationsAssetsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsBatchUpdateCall {
  7520  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7521  	return c
  7522  }
  7523  
  7524  // Context sets the context to be used in this call's Do method.
  7525  func (c *ProjectsLocationsAssetsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAssetsBatchUpdateCall {
  7526  	c.ctx_ = ctx
  7527  	return c
  7528  }
  7529  
  7530  // Header returns a http.Header that can be modified by the caller to add
  7531  // headers to the request.
  7532  func (c *ProjectsLocationsAssetsBatchUpdateCall) Header() http.Header {
  7533  	if c.header_ == nil {
  7534  		c.header_ = make(http.Header)
  7535  	}
  7536  	return c.header_
  7537  }
  7538  
  7539  func (c *ProjectsLocationsAssetsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
  7540  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7541  	var body io.Reader = nil
  7542  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdateassetsrequest)
  7543  	if err != nil {
  7544  		return nil, err
  7545  	}
  7546  	c.urlParams_.Set("alt", alt)
  7547  	c.urlParams_.Set("prettyPrint", "false")
  7548  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:batchUpdate")
  7549  	urls += "?" + c.urlParams_.Encode()
  7550  	req, err := http.NewRequest("POST", urls, body)
  7551  	if err != nil {
  7552  		return nil, err
  7553  	}
  7554  	req.Header = reqHeaders
  7555  	googleapi.Expand(req.URL, map[string]string{
  7556  		"parent": c.parent,
  7557  	})
  7558  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7559  }
  7560  
  7561  // Do executes the "migrationcenter.projects.locations.assets.batchUpdate" call.
  7562  // Any non-2xx status code is an error. Response headers are in either
  7563  // *BatchUpdateAssetsResponse.ServerResponse.Header or (if a response was
  7564  // returned at all) in error.(*googleapi.Error).Header. Use
  7565  // googleapi.IsNotModified to check whether the returned error was because
  7566  // http.StatusNotModified was returned.
  7567  func (c *ProjectsLocationsAssetsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateAssetsResponse, error) {
  7568  	gensupport.SetOptions(c.urlParams_, opts...)
  7569  	res, err := c.doRequest("json")
  7570  	if res != nil && res.StatusCode == http.StatusNotModified {
  7571  		if res.Body != nil {
  7572  			res.Body.Close()
  7573  		}
  7574  		return nil, gensupport.WrapError(&googleapi.Error{
  7575  			Code:   res.StatusCode,
  7576  			Header: res.Header,
  7577  		})
  7578  	}
  7579  	if err != nil {
  7580  		return nil, err
  7581  	}
  7582  	defer googleapi.CloseBody(res)
  7583  	if err := googleapi.CheckResponse(res); err != nil {
  7584  		return nil, gensupport.WrapError(err)
  7585  	}
  7586  	ret := &BatchUpdateAssetsResponse{
  7587  		ServerResponse: googleapi.ServerResponse{
  7588  			Header:         res.Header,
  7589  			HTTPStatusCode: res.StatusCode,
  7590  		},
  7591  	}
  7592  	target := &ret
  7593  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7594  		return nil, err
  7595  	}
  7596  	return ret, nil
  7597  }
  7598  
  7599  type ProjectsLocationsAssetsDeleteCall struct {
  7600  	s          *Service
  7601  	name       string
  7602  	urlParams_ gensupport.URLParams
  7603  	ctx_       context.Context
  7604  	header_    http.Header
  7605  }
  7606  
  7607  // Delete: Deletes an asset.
  7608  //
  7609  // - name: Name of the resource.
  7610  func (r *ProjectsLocationsAssetsService) Delete(name string) *ProjectsLocationsAssetsDeleteCall {
  7611  	c := &ProjectsLocationsAssetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7612  	c.name = name
  7613  	return c
  7614  }
  7615  
  7616  // RequestId sets the optional parameter "requestId": An optional request ID to
  7617  // identify requests. Specify a unique request ID so that if you must retry
  7618  // your request, the server will know to ignore the request if it has already
  7619  // been completed. The server will guarantee that for at least 60 minutes after
  7620  // the first request. For example, consider a situation where you make an
  7621  // initial request and the request times out. If you make the request again
  7622  // with the same request ID, the server can check if original operation with
  7623  // the same request ID was received, and if so, will ignore the second request.
  7624  // This prevents clients from accidentally creating duplicate commitments. The
  7625  // request ID must be a valid UUID with the exception that zero UUID is not
  7626  // supported (00000000-0000-0000-0000-000000000000).
  7627  func (c *ProjectsLocationsAssetsDeleteCall) RequestId(requestId string) *ProjectsLocationsAssetsDeleteCall {
  7628  	c.urlParams_.Set("requestId", requestId)
  7629  	return c
  7630  }
  7631  
  7632  // Fields allows partial responses to be retrieved. See
  7633  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7634  // details.
  7635  func (c *ProjectsLocationsAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsDeleteCall {
  7636  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7637  	return c
  7638  }
  7639  
  7640  // Context sets the context to be used in this call's Do method.
  7641  func (c *ProjectsLocationsAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsDeleteCall {
  7642  	c.ctx_ = ctx
  7643  	return c
  7644  }
  7645  
  7646  // Header returns a http.Header that can be modified by the caller to add
  7647  // headers to the request.
  7648  func (c *ProjectsLocationsAssetsDeleteCall) Header() http.Header {
  7649  	if c.header_ == nil {
  7650  		c.header_ = make(http.Header)
  7651  	}
  7652  	return c.header_
  7653  }
  7654  
  7655  func (c *ProjectsLocationsAssetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7656  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7657  	var body io.Reader = nil
  7658  	c.urlParams_.Set("alt", alt)
  7659  	c.urlParams_.Set("prettyPrint", "false")
  7660  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  7661  	urls += "?" + c.urlParams_.Encode()
  7662  	req, err := http.NewRequest("DELETE", urls, body)
  7663  	if err != nil {
  7664  		return nil, err
  7665  	}
  7666  	req.Header = reqHeaders
  7667  	googleapi.Expand(req.URL, map[string]string{
  7668  		"name": c.name,
  7669  	})
  7670  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7671  }
  7672  
  7673  // Do executes the "migrationcenter.projects.locations.assets.delete" call.
  7674  // Any non-2xx status code is an error. Response headers are in either
  7675  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  7676  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7677  // whether the returned error was because http.StatusNotModified was returned.
  7678  func (c *ProjectsLocationsAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7679  	gensupport.SetOptions(c.urlParams_, opts...)
  7680  	res, err := c.doRequest("json")
  7681  	if res != nil && res.StatusCode == http.StatusNotModified {
  7682  		if res.Body != nil {
  7683  			res.Body.Close()
  7684  		}
  7685  		return nil, gensupport.WrapError(&googleapi.Error{
  7686  			Code:   res.StatusCode,
  7687  			Header: res.Header,
  7688  		})
  7689  	}
  7690  	if err != nil {
  7691  		return nil, err
  7692  	}
  7693  	defer googleapi.CloseBody(res)
  7694  	if err := googleapi.CheckResponse(res); err != nil {
  7695  		return nil, gensupport.WrapError(err)
  7696  	}
  7697  	ret := &Empty{
  7698  		ServerResponse: googleapi.ServerResponse{
  7699  			Header:         res.Header,
  7700  			HTTPStatusCode: res.StatusCode,
  7701  		},
  7702  	}
  7703  	target := &ret
  7704  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7705  		return nil, err
  7706  	}
  7707  	return ret, nil
  7708  }
  7709  
  7710  type ProjectsLocationsAssetsGetCall struct {
  7711  	s            *Service
  7712  	name         string
  7713  	urlParams_   gensupport.URLParams
  7714  	ifNoneMatch_ string
  7715  	ctx_         context.Context
  7716  	header_      http.Header
  7717  }
  7718  
  7719  // Get: Gets the details of an asset.
  7720  //
  7721  // - name: Name of the resource.
  7722  func (r *ProjectsLocationsAssetsService) Get(name string) *ProjectsLocationsAssetsGetCall {
  7723  	c := &ProjectsLocationsAssetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7724  	c.name = name
  7725  	return c
  7726  }
  7727  
  7728  // View sets the optional parameter "view": View of the assets. Defaults to
  7729  // BASIC.
  7730  //
  7731  // Possible values:
  7732  //
  7733  //	"ASSET_VIEW_UNSPECIFIED" - The asset view is not specified. The API
  7734  //
  7735  // displays the basic view by default.
  7736  //
  7737  //	"ASSET_VIEW_BASIC" - The asset view includes only basic metadata of the
  7738  //
  7739  // asset.
  7740  //
  7741  //	"ASSET_VIEW_FULL" - The asset view includes all the metadata of an asset
  7742  //
  7743  // and performance data.
  7744  //
  7745  //	"ASSET_VIEW_STANDARD" - The asset view includes the standard metadata of
  7746  //
  7747  // an asset.
  7748  func (c *ProjectsLocationsAssetsGetCall) View(view string) *ProjectsLocationsAssetsGetCall {
  7749  	c.urlParams_.Set("view", view)
  7750  	return c
  7751  }
  7752  
  7753  // Fields allows partial responses to be retrieved. See
  7754  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7755  // details.
  7756  func (c *ProjectsLocationsAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsGetCall {
  7757  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7758  	return c
  7759  }
  7760  
  7761  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7762  // object's ETag matches the given value. This is useful for getting updates
  7763  // only after the object has changed since the last request.
  7764  func (c *ProjectsLocationsAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsGetCall {
  7765  	c.ifNoneMatch_ = entityTag
  7766  	return c
  7767  }
  7768  
  7769  // Context sets the context to be used in this call's Do method.
  7770  func (c *ProjectsLocationsAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsAssetsGetCall {
  7771  	c.ctx_ = ctx
  7772  	return c
  7773  }
  7774  
  7775  // Header returns a http.Header that can be modified by the caller to add
  7776  // headers to the request.
  7777  func (c *ProjectsLocationsAssetsGetCall) Header() http.Header {
  7778  	if c.header_ == nil {
  7779  		c.header_ = make(http.Header)
  7780  	}
  7781  	return c.header_
  7782  }
  7783  
  7784  func (c *ProjectsLocationsAssetsGetCall) doRequest(alt string) (*http.Response, error) {
  7785  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7786  	if c.ifNoneMatch_ != "" {
  7787  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7788  	}
  7789  	var body io.Reader = nil
  7790  	c.urlParams_.Set("alt", alt)
  7791  	c.urlParams_.Set("prettyPrint", "false")
  7792  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  7793  	urls += "?" + c.urlParams_.Encode()
  7794  	req, err := http.NewRequest("GET", urls, body)
  7795  	if err != nil {
  7796  		return nil, err
  7797  	}
  7798  	req.Header = reqHeaders
  7799  	googleapi.Expand(req.URL, map[string]string{
  7800  		"name": c.name,
  7801  	})
  7802  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7803  }
  7804  
  7805  // Do executes the "migrationcenter.projects.locations.assets.get" call.
  7806  // Any non-2xx status code is an error. Response headers are in either
  7807  // *Asset.ServerResponse.Header or (if a response was returned at all) in
  7808  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7809  // whether the returned error was because http.StatusNotModified was returned.
  7810  func (c *ProjectsLocationsAssetsGetCall) Do(opts ...googleapi.CallOption) (*Asset, error) {
  7811  	gensupport.SetOptions(c.urlParams_, opts...)
  7812  	res, err := c.doRequest("json")
  7813  	if res != nil && res.StatusCode == http.StatusNotModified {
  7814  		if res.Body != nil {
  7815  			res.Body.Close()
  7816  		}
  7817  		return nil, gensupport.WrapError(&googleapi.Error{
  7818  			Code:   res.StatusCode,
  7819  			Header: res.Header,
  7820  		})
  7821  	}
  7822  	if err != nil {
  7823  		return nil, err
  7824  	}
  7825  	defer googleapi.CloseBody(res)
  7826  	if err := googleapi.CheckResponse(res); err != nil {
  7827  		return nil, gensupport.WrapError(err)
  7828  	}
  7829  	ret := &Asset{
  7830  		ServerResponse: googleapi.ServerResponse{
  7831  			Header:         res.Header,
  7832  			HTTPStatusCode: res.StatusCode,
  7833  		},
  7834  	}
  7835  	target := &ret
  7836  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7837  		return nil, err
  7838  	}
  7839  	return ret, nil
  7840  }
  7841  
  7842  type ProjectsLocationsAssetsListCall struct {
  7843  	s            *Service
  7844  	parent       string
  7845  	urlParams_   gensupport.URLParams
  7846  	ifNoneMatch_ string
  7847  	ctx_         context.Context
  7848  	header_      http.Header
  7849  }
  7850  
  7851  // List: Lists all the assets in a given project and location.
  7852  //
  7853  // - parent: Parent value for `ListAssetsRequest`.
  7854  func (r *ProjectsLocationsAssetsService) List(parent string) *ProjectsLocationsAssetsListCall {
  7855  	c := &ProjectsLocationsAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7856  	c.parent = parent
  7857  	return c
  7858  }
  7859  
  7860  // Filter sets the optional parameter "filter": Filtering results.
  7861  func (c *ProjectsLocationsAssetsListCall) Filter(filter string) *ProjectsLocationsAssetsListCall {
  7862  	c.urlParams_.Set("filter", filter)
  7863  	return c
  7864  }
  7865  
  7866  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  7867  // https://google.aip.dev/132#ordering for more details.
  7868  func (c *ProjectsLocationsAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsAssetsListCall {
  7869  	c.urlParams_.Set("orderBy", orderBy)
  7870  	return c
  7871  }
  7872  
  7873  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  7874  // may return fewer items than requested. If unspecified, server will pick an
  7875  // appropriate default.
  7876  func (c *ProjectsLocationsAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsAssetsListCall {
  7877  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7878  	return c
  7879  }
  7880  
  7881  // PageToken sets the optional parameter "pageToken": A token identifying a
  7882  // page of results the server should return.
  7883  func (c *ProjectsLocationsAssetsListCall) PageToken(pageToken string) *ProjectsLocationsAssetsListCall {
  7884  	c.urlParams_.Set("pageToken", pageToken)
  7885  	return c
  7886  }
  7887  
  7888  // ShowHidden sets the optional parameter "showHidden": When this value is set
  7889  // to 'true' the response will include all assets, including those that are
  7890  // hidden.
  7891  func (c *ProjectsLocationsAssetsListCall) ShowHidden(showHidden bool) *ProjectsLocationsAssetsListCall {
  7892  	c.urlParams_.Set("showHidden", fmt.Sprint(showHidden))
  7893  	return c
  7894  }
  7895  
  7896  // View sets the optional parameter "view": View of the assets. Defaults to
  7897  // BASIC.
  7898  //
  7899  // Possible values:
  7900  //
  7901  //	"ASSET_VIEW_UNSPECIFIED" - The asset view is not specified. The API
  7902  //
  7903  // displays the basic view by default.
  7904  //
  7905  //	"ASSET_VIEW_BASIC" - The asset view includes only basic metadata of the
  7906  //
  7907  // asset.
  7908  //
  7909  //	"ASSET_VIEW_FULL" - The asset view includes all the metadata of an asset
  7910  //
  7911  // and performance data.
  7912  //
  7913  //	"ASSET_VIEW_STANDARD" - The asset view includes the standard metadata of
  7914  //
  7915  // an asset.
  7916  func (c *ProjectsLocationsAssetsListCall) View(view string) *ProjectsLocationsAssetsListCall {
  7917  	c.urlParams_.Set("view", view)
  7918  	return c
  7919  }
  7920  
  7921  // Fields allows partial responses to be retrieved. See
  7922  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7923  // details.
  7924  func (c *ProjectsLocationsAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsListCall {
  7925  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7926  	return c
  7927  }
  7928  
  7929  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7930  // object's ETag matches the given value. This is useful for getting updates
  7931  // only after the object has changed since the last request.
  7932  func (c *ProjectsLocationsAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsListCall {
  7933  	c.ifNoneMatch_ = entityTag
  7934  	return c
  7935  }
  7936  
  7937  // Context sets the context to be used in this call's Do method.
  7938  func (c *ProjectsLocationsAssetsListCall) Context(ctx context.Context) *ProjectsLocationsAssetsListCall {
  7939  	c.ctx_ = ctx
  7940  	return c
  7941  }
  7942  
  7943  // Header returns a http.Header that can be modified by the caller to add
  7944  // headers to the request.
  7945  func (c *ProjectsLocationsAssetsListCall) Header() http.Header {
  7946  	if c.header_ == nil {
  7947  		c.header_ = make(http.Header)
  7948  	}
  7949  	return c.header_
  7950  }
  7951  
  7952  func (c *ProjectsLocationsAssetsListCall) doRequest(alt string) (*http.Response, error) {
  7953  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7954  	if c.ifNoneMatch_ != "" {
  7955  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7956  	}
  7957  	var body io.Reader = nil
  7958  	c.urlParams_.Set("alt", alt)
  7959  	c.urlParams_.Set("prettyPrint", "false")
  7960  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets")
  7961  	urls += "?" + c.urlParams_.Encode()
  7962  	req, err := http.NewRequest("GET", urls, body)
  7963  	if err != nil {
  7964  		return nil, err
  7965  	}
  7966  	req.Header = reqHeaders
  7967  	googleapi.Expand(req.URL, map[string]string{
  7968  		"parent": c.parent,
  7969  	})
  7970  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7971  }
  7972  
  7973  // Do executes the "migrationcenter.projects.locations.assets.list" call.
  7974  // Any non-2xx status code is an error. Response headers are in either
  7975  // *ListAssetsResponse.ServerResponse.Header or (if a response was returned at
  7976  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7977  // check whether the returned error was because http.StatusNotModified was
  7978  // returned.
  7979  func (c *ProjectsLocationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error) {
  7980  	gensupport.SetOptions(c.urlParams_, opts...)
  7981  	res, err := c.doRequest("json")
  7982  	if res != nil && res.StatusCode == http.StatusNotModified {
  7983  		if res.Body != nil {
  7984  			res.Body.Close()
  7985  		}
  7986  		return nil, gensupport.WrapError(&googleapi.Error{
  7987  			Code:   res.StatusCode,
  7988  			Header: res.Header,
  7989  		})
  7990  	}
  7991  	if err != nil {
  7992  		return nil, err
  7993  	}
  7994  	defer googleapi.CloseBody(res)
  7995  	if err := googleapi.CheckResponse(res); err != nil {
  7996  		return nil, gensupport.WrapError(err)
  7997  	}
  7998  	ret := &ListAssetsResponse{
  7999  		ServerResponse: googleapi.ServerResponse{
  8000  			Header:         res.Header,
  8001  			HTTPStatusCode: res.StatusCode,
  8002  		},
  8003  	}
  8004  	target := &ret
  8005  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8006  		return nil, err
  8007  	}
  8008  	return ret, nil
  8009  }
  8010  
  8011  // Pages invokes f for each page of results.
  8012  // A non-nil error returned from f will halt the iteration.
  8013  // The provided context supersedes any context provided to the Context method.
  8014  func (c *ProjectsLocationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error {
  8015  	c.ctx_ = ctx
  8016  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8017  	for {
  8018  		x, err := c.Do()
  8019  		if err != nil {
  8020  			return err
  8021  		}
  8022  		if err := f(x); err != nil {
  8023  			return err
  8024  		}
  8025  		if x.NextPageToken == "" {
  8026  			return nil
  8027  		}
  8028  		c.PageToken(x.NextPageToken)
  8029  	}
  8030  }
  8031  
  8032  type ProjectsLocationsAssetsPatchCall struct {
  8033  	s          *Service
  8034  	name       string
  8035  	asset      *Asset
  8036  	urlParams_ gensupport.URLParams
  8037  	ctx_       context.Context
  8038  	header_    http.Header
  8039  }
  8040  
  8041  // Patch: Updates the parameters of an asset.
  8042  //
  8043  // - name: Output only. The full name of the asset.
  8044  func (r *ProjectsLocationsAssetsService) Patch(name string, asset *Asset) *ProjectsLocationsAssetsPatchCall {
  8045  	c := &ProjectsLocationsAssetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8046  	c.name = name
  8047  	c.asset = asset
  8048  	return c
  8049  }
  8050  
  8051  // RequestId sets the optional parameter "requestId": An optional request ID to
  8052  // identify requests. Specify a unique request ID so that if you must retry
  8053  // your request, the server will know to ignore the request if it has already
  8054  // been completed. The server will guarantee that for at least 60 minutes since
  8055  // the first request. For example, consider a situation where you make an
  8056  // initial request and the request times out. If you make the request again
  8057  // with the same request ID, the server can check if original operation with
  8058  // the same request ID was received, and if so, will ignore the second request.
  8059  // This prevents clients from accidentally creating duplicate commitments. The
  8060  // request ID must be a valid UUID with the exception that zero UUID is not
  8061  // supported (00000000-0000-0000-0000-000000000000).
  8062  func (c *ProjectsLocationsAssetsPatchCall) RequestId(requestId string) *ProjectsLocationsAssetsPatchCall {
  8063  	c.urlParams_.Set("requestId", requestId)
  8064  	return c
  8065  }
  8066  
  8067  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  8068  // used to specify the fields to be overwritten in the `Asset` resource by the
  8069  // update. The values specified in the `update_mask` field are relative to the
  8070  // resource, not the full request. A field will be overwritten if it is in the
  8071  // mask. A single * value in the mask lets you to overwrite all fields.
  8072  func (c *ProjectsLocationsAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAssetsPatchCall {
  8073  	c.urlParams_.Set("updateMask", updateMask)
  8074  	return c
  8075  }
  8076  
  8077  // Fields allows partial responses to be retrieved. See
  8078  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8079  // details.
  8080  func (c *ProjectsLocationsAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsPatchCall {
  8081  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8082  	return c
  8083  }
  8084  
  8085  // Context sets the context to be used in this call's Do method.
  8086  func (c *ProjectsLocationsAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAssetsPatchCall {
  8087  	c.ctx_ = ctx
  8088  	return c
  8089  }
  8090  
  8091  // Header returns a http.Header that can be modified by the caller to add
  8092  // headers to the request.
  8093  func (c *ProjectsLocationsAssetsPatchCall) Header() http.Header {
  8094  	if c.header_ == nil {
  8095  		c.header_ = make(http.Header)
  8096  	}
  8097  	return c.header_
  8098  }
  8099  
  8100  func (c *ProjectsLocationsAssetsPatchCall) doRequest(alt string) (*http.Response, error) {
  8101  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8102  	var body io.Reader = nil
  8103  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.asset)
  8104  	if err != nil {
  8105  		return nil, err
  8106  	}
  8107  	c.urlParams_.Set("alt", alt)
  8108  	c.urlParams_.Set("prettyPrint", "false")
  8109  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  8110  	urls += "?" + c.urlParams_.Encode()
  8111  	req, err := http.NewRequest("PATCH", urls, body)
  8112  	if err != nil {
  8113  		return nil, err
  8114  	}
  8115  	req.Header = reqHeaders
  8116  	googleapi.Expand(req.URL, map[string]string{
  8117  		"name": c.name,
  8118  	})
  8119  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8120  }
  8121  
  8122  // Do executes the "migrationcenter.projects.locations.assets.patch" call.
  8123  // Any non-2xx status code is an error. Response headers are in either
  8124  // *Asset.ServerResponse.Header or (if a response was returned at all) in
  8125  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8126  // whether the returned error was because http.StatusNotModified was returned.
  8127  func (c *ProjectsLocationsAssetsPatchCall) Do(opts ...googleapi.CallOption) (*Asset, error) {
  8128  	gensupport.SetOptions(c.urlParams_, opts...)
  8129  	res, err := c.doRequest("json")
  8130  	if res != nil && res.StatusCode == http.StatusNotModified {
  8131  		if res.Body != nil {
  8132  			res.Body.Close()
  8133  		}
  8134  		return nil, gensupport.WrapError(&googleapi.Error{
  8135  			Code:   res.StatusCode,
  8136  			Header: res.Header,
  8137  		})
  8138  	}
  8139  	if err != nil {
  8140  		return nil, err
  8141  	}
  8142  	defer googleapi.CloseBody(res)
  8143  	if err := googleapi.CheckResponse(res); err != nil {
  8144  		return nil, gensupport.WrapError(err)
  8145  	}
  8146  	ret := &Asset{
  8147  		ServerResponse: googleapi.ServerResponse{
  8148  			Header:         res.Header,
  8149  			HTTPStatusCode: res.StatusCode,
  8150  		},
  8151  	}
  8152  	target := &ret
  8153  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8154  		return nil, err
  8155  	}
  8156  	return ret, nil
  8157  }
  8158  
  8159  type ProjectsLocationsAssetsReportAssetFramesCall struct {
  8160  	s          *Service
  8161  	parent     string
  8162  	frames     *Frames
  8163  	urlParams_ gensupport.URLParams
  8164  	ctx_       context.Context
  8165  	header_    http.Header
  8166  }
  8167  
  8168  // ReportAssetFrames: Reports a set of frames.
  8169  //
  8170  // - parent: Parent of the resource.
  8171  func (r *ProjectsLocationsAssetsService) ReportAssetFrames(parent string, frames *Frames) *ProjectsLocationsAssetsReportAssetFramesCall {
  8172  	c := &ProjectsLocationsAssetsReportAssetFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8173  	c.parent = parent
  8174  	c.frames = frames
  8175  	return c
  8176  }
  8177  
  8178  // Source sets the optional parameter "source": Required. Reference to a
  8179  // source.
  8180  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Source(source string) *ProjectsLocationsAssetsReportAssetFramesCall {
  8181  	c.urlParams_.Set("source", source)
  8182  	return c
  8183  }
  8184  
  8185  // Fields allows partial responses to be retrieved. See
  8186  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8187  // details.
  8188  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsReportAssetFramesCall {
  8189  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8190  	return c
  8191  }
  8192  
  8193  // Context sets the context to be used in this call's Do method.
  8194  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Context(ctx context.Context) *ProjectsLocationsAssetsReportAssetFramesCall {
  8195  	c.ctx_ = ctx
  8196  	return c
  8197  }
  8198  
  8199  // Header returns a http.Header that can be modified by the caller to add
  8200  // headers to the request.
  8201  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Header() http.Header {
  8202  	if c.header_ == nil {
  8203  		c.header_ = make(http.Header)
  8204  	}
  8205  	return c.header_
  8206  }
  8207  
  8208  func (c *ProjectsLocationsAssetsReportAssetFramesCall) doRequest(alt string) (*http.Response, error) {
  8209  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8210  	var body io.Reader = nil
  8211  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.frames)
  8212  	if err != nil {
  8213  		return nil, err
  8214  	}
  8215  	c.urlParams_.Set("alt", alt)
  8216  	c.urlParams_.Set("prettyPrint", "false")
  8217  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/assets:reportAssetFrames")
  8218  	urls += "?" + c.urlParams_.Encode()
  8219  	req, err := http.NewRequest("POST", urls, body)
  8220  	if err != nil {
  8221  		return nil, err
  8222  	}
  8223  	req.Header = reqHeaders
  8224  	googleapi.Expand(req.URL, map[string]string{
  8225  		"parent": c.parent,
  8226  	})
  8227  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8228  }
  8229  
  8230  // Do executes the "migrationcenter.projects.locations.assets.reportAssetFrames" call.
  8231  // Any non-2xx status code is an error. Response headers are in either
  8232  // *ReportAssetFramesResponse.ServerResponse.Header or (if a response was
  8233  // returned at all) in error.(*googleapi.Error).Header. Use
  8234  // googleapi.IsNotModified to check whether the returned error was because
  8235  // http.StatusNotModified was returned.
  8236  func (c *ProjectsLocationsAssetsReportAssetFramesCall) Do(opts ...googleapi.CallOption) (*ReportAssetFramesResponse, error) {
  8237  	gensupport.SetOptions(c.urlParams_, opts...)
  8238  	res, err := c.doRequest("json")
  8239  	if res != nil && res.StatusCode == http.StatusNotModified {
  8240  		if res.Body != nil {
  8241  			res.Body.Close()
  8242  		}
  8243  		return nil, gensupport.WrapError(&googleapi.Error{
  8244  			Code:   res.StatusCode,
  8245  			Header: res.Header,
  8246  		})
  8247  	}
  8248  	if err != nil {
  8249  		return nil, err
  8250  	}
  8251  	defer googleapi.CloseBody(res)
  8252  	if err := googleapi.CheckResponse(res); err != nil {
  8253  		return nil, gensupport.WrapError(err)
  8254  	}
  8255  	ret := &ReportAssetFramesResponse{
  8256  		ServerResponse: googleapi.ServerResponse{
  8257  			Header:         res.Header,
  8258  			HTTPStatusCode: res.StatusCode,
  8259  		},
  8260  	}
  8261  	target := &ret
  8262  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8263  		return nil, err
  8264  	}
  8265  	return ret, nil
  8266  }
  8267  
  8268  type ProjectsLocationsDiscoveryClientsCreateCall struct {
  8269  	s               *Service
  8270  	parent          string
  8271  	discoveryclient *DiscoveryClient
  8272  	urlParams_      gensupport.URLParams
  8273  	ctx_            context.Context
  8274  	header_         http.Header
  8275  }
  8276  
  8277  // Create: Creates a new discovery client.
  8278  //
  8279  // - parent: Parent resource.
  8280  func (r *ProjectsLocationsDiscoveryClientsService) Create(parent string, discoveryclient *DiscoveryClient) *ProjectsLocationsDiscoveryClientsCreateCall {
  8281  	c := &ProjectsLocationsDiscoveryClientsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8282  	c.parent = parent
  8283  	c.discoveryclient = discoveryclient
  8284  	return c
  8285  }
  8286  
  8287  // DiscoveryClientId sets the optional parameter "discoveryClientId": Required.
  8288  // User specified ID for the discovery client. It will become the last
  8289  // component of the discovery client name. The ID must be unique within the
  8290  // project, is restricted to lower-cased letters and has a maximum length of 63
  8291  // characters. The ID must match the regular expression:
  8292  // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  8293  func (c *ProjectsLocationsDiscoveryClientsCreateCall) DiscoveryClientId(discoveryClientId string) *ProjectsLocationsDiscoveryClientsCreateCall {
  8294  	c.urlParams_.Set("discoveryClientId", discoveryClientId)
  8295  	return c
  8296  }
  8297  
  8298  // RequestId sets the optional parameter "requestId": An optional request ID to
  8299  // identify requests. Specify a unique request ID so that if you must retry
  8300  // your request, the server will know to ignore the request if it has already
  8301  // been completed. The server will guarantee that for at least 60 minutes since
  8302  // the first request. For example, consider a situation where you make an
  8303  // initial request and the request times out. If you make the request again
  8304  // with the same request ID, the server can check if original operation with
  8305  // the same request ID was received, and if so, will ignore the second request.
  8306  // This prevents clients from accidentally creating duplicate commitments. The
  8307  // request ID must be a valid UUID with the exception that zero UUID is not
  8308  // supported (00000000-0000-0000-0000-000000000000).
  8309  func (c *ProjectsLocationsDiscoveryClientsCreateCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsCreateCall {
  8310  	c.urlParams_.Set("requestId", requestId)
  8311  	return c
  8312  }
  8313  
  8314  // Fields allows partial responses to be retrieved. See
  8315  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8316  // details.
  8317  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsCreateCall {
  8318  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8319  	return c
  8320  }
  8321  
  8322  // Context sets the context to be used in this call's Do method.
  8323  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsCreateCall {
  8324  	c.ctx_ = ctx
  8325  	return c
  8326  }
  8327  
  8328  // Header returns a http.Header that can be modified by the caller to add
  8329  // headers to the request.
  8330  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Header() http.Header {
  8331  	if c.header_ == nil {
  8332  		c.header_ = make(http.Header)
  8333  	}
  8334  	return c.header_
  8335  }
  8336  
  8337  func (c *ProjectsLocationsDiscoveryClientsCreateCall) doRequest(alt string) (*http.Response, error) {
  8338  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8339  	var body io.Reader = nil
  8340  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoveryclient)
  8341  	if err != nil {
  8342  		return nil, err
  8343  	}
  8344  	c.urlParams_.Set("alt", alt)
  8345  	c.urlParams_.Set("prettyPrint", "false")
  8346  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/discoveryClients")
  8347  	urls += "?" + c.urlParams_.Encode()
  8348  	req, err := http.NewRequest("POST", urls, body)
  8349  	if err != nil {
  8350  		return nil, err
  8351  	}
  8352  	req.Header = reqHeaders
  8353  	googleapi.Expand(req.URL, map[string]string{
  8354  		"parent": c.parent,
  8355  	})
  8356  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8357  }
  8358  
  8359  // Do executes the "migrationcenter.projects.locations.discoveryClients.create" call.
  8360  // Any non-2xx status code is an error. Response headers are in either
  8361  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8362  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8363  // whether the returned error was because http.StatusNotModified was returned.
  8364  func (c *ProjectsLocationsDiscoveryClientsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8365  	gensupport.SetOptions(c.urlParams_, opts...)
  8366  	res, err := c.doRequest("json")
  8367  	if res != nil && res.StatusCode == http.StatusNotModified {
  8368  		if res.Body != nil {
  8369  			res.Body.Close()
  8370  		}
  8371  		return nil, gensupport.WrapError(&googleapi.Error{
  8372  			Code:   res.StatusCode,
  8373  			Header: res.Header,
  8374  		})
  8375  	}
  8376  	if err != nil {
  8377  		return nil, err
  8378  	}
  8379  	defer googleapi.CloseBody(res)
  8380  	if err := googleapi.CheckResponse(res); err != nil {
  8381  		return nil, gensupport.WrapError(err)
  8382  	}
  8383  	ret := &Operation{
  8384  		ServerResponse: googleapi.ServerResponse{
  8385  			Header:         res.Header,
  8386  			HTTPStatusCode: res.StatusCode,
  8387  		},
  8388  	}
  8389  	target := &ret
  8390  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8391  		return nil, err
  8392  	}
  8393  	return ret, nil
  8394  }
  8395  
  8396  type ProjectsLocationsDiscoveryClientsDeleteCall struct {
  8397  	s          *Service
  8398  	name       string
  8399  	urlParams_ gensupport.URLParams
  8400  	ctx_       context.Context
  8401  	header_    http.Header
  8402  }
  8403  
  8404  // Delete: Deletes a discovery client.
  8405  //
  8406  // - name: The discovery client name.
  8407  func (r *ProjectsLocationsDiscoveryClientsService) Delete(name string) *ProjectsLocationsDiscoveryClientsDeleteCall {
  8408  	c := &ProjectsLocationsDiscoveryClientsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8409  	c.name = name
  8410  	return c
  8411  }
  8412  
  8413  // RequestId sets the optional parameter "requestId": An optional request ID to
  8414  // identify requests. Specify a unique request ID so that if you must retry
  8415  // your request, the server will know to ignore the request if it has already
  8416  // been completed. The server will guarantee that for at least 60 minutes after
  8417  // the first request. For example, consider a situation where you make an
  8418  // initial request and the request times out. If you make the request again
  8419  // with the same request ID, the server can check if original operation with
  8420  // the same request ID was received, and if so, will ignore the second request.
  8421  // This prevents clients from accidentally creating duplicate commitments. The
  8422  // request ID must be a valid UUID with the exception that zero UUID is not
  8423  // supported (00000000-0000-0000-0000-000000000000).
  8424  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsDeleteCall {
  8425  	c.urlParams_.Set("requestId", requestId)
  8426  	return c
  8427  }
  8428  
  8429  // Fields allows partial responses to be retrieved. See
  8430  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8431  // details.
  8432  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsDeleteCall {
  8433  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8434  	return c
  8435  }
  8436  
  8437  // Context sets the context to be used in this call's Do method.
  8438  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsDeleteCall {
  8439  	c.ctx_ = ctx
  8440  	return c
  8441  }
  8442  
  8443  // Header returns a http.Header that can be modified by the caller to add
  8444  // headers to the request.
  8445  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Header() http.Header {
  8446  	if c.header_ == nil {
  8447  		c.header_ = make(http.Header)
  8448  	}
  8449  	return c.header_
  8450  }
  8451  
  8452  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8453  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8454  	var body io.Reader = nil
  8455  	c.urlParams_.Set("alt", alt)
  8456  	c.urlParams_.Set("prettyPrint", "false")
  8457  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  8458  	urls += "?" + c.urlParams_.Encode()
  8459  	req, err := http.NewRequest("DELETE", urls, body)
  8460  	if err != nil {
  8461  		return nil, err
  8462  	}
  8463  	req.Header = reqHeaders
  8464  	googleapi.Expand(req.URL, map[string]string{
  8465  		"name": c.name,
  8466  	})
  8467  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8468  }
  8469  
  8470  // Do executes the "migrationcenter.projects.locations.discoveryClients.delete" call.
  8471  // Any non-2xx status code is an error. Response headers are in either
  8472  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8473  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8474  // whether the returned error was because http.StatusNotModified was returned.
  8475  func (c *ProjectsLocationsDiscoveryClientsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8476  	gensupport.SetOptions(c.urlParams_, opts...)
  8477  	res, err := c.doRequest("json")
  8478  	if res != nil && res.StatusCode == http.StatusNotModified {
  8479  		if res.Body != nil {
  8480  			res.Body.Close()
  8481  		}
  8482  		return nil, gensupport.WrapError(&googleapi.Error{
  8483  			Code:   res.StatusCode,
  8484  			Header: res.Header,
  8485  		})
  8486  	}
  8487  	if err != nil {
  8488  		return nil, err
  8489  	}
  8490  	defer googleapi.CloseBody(res)
  8491  	if err := googleapi.CheckResponse(res); err != nil {
  8492  		return nil, gensupport.WrapError(err)
  8493  	}
  8494  	ret := &Operation{
  8495  		ServerResponse: googleapi.ServerResponse{
  8496  			Header:         res.Header,
  8497  			HTTPStatusCode: res.StatusCode,
  8498  		},
  8499  	}
  8500  	target := &ret
  8501  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8502  		return nil, err
  8503  	}
  8504  	return ret, nil
  8505  }
  8506  
  8507  type ProjectsLocationsDiscoveryClientsGetCall struct {
  8508  	s            *Service
  8509  	name         string
  8510  	urlParams_   gensupport.URLParams
  8511  	ifNoneMatch_ string
  8512  	ctx_         context.Context
  8513  	header_      http.Header
  8514  }
  8515  
  8516  // Get: Gets the details of a discovery client.
  8517  //
  8518  // - name: The discovery client name.
  8519  func (r *ProjectsLocationsDiscoveryClientsService) Get(name string) *ProjectsLocationsDiscoveryClientsGetCall {
  8520  	c := &ProjectsLocationsDiscoveryClientsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8521  	c.name = name
  8522  	return c
  8523  }
  8524  
  8525  // Fields allows partial responses to be retrieved. See
  8526  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8527  // details.
  8528  func (c *ProjectsLocationsDiscoveryClientsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsGetCall {
  8529  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8530  	return c
  8531  }
  8532  
  8533  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8534  // object's ETag matches the given value. This is useful for getting updates
  8535  // only after the object has changed since the last request.
  8536  func (c *ProjectsLocationsDiscoveryClientsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryClientsGetCall {
  8537  	c.ifNoneMatch_ = entityTag
  8538  	return c
  8539  }
  8540  
  8541  // Context sets the context to be used in this call's Do method.
  8542  func (c *ProjectsLocationsDiscoveryClientsGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsGetCall {
  8543  	c.ctx_ = ctx
  8544  	return c
  8545  }
  8546  
  8547  // Header returns a http.Header that can be modified by the caller to add
  8548  // headers to the request.
  8549  func (c *ProjectsLocationsDiscoveryClientsGetCall) Header() http.Header {
  8550  	if c.header_ == nil {
  8551  		c.header_ = make(http.Header)
  8552  	}
  8553  	return c.header_
  8554  }
  8555  
  8556  func (c *ProjectsLocationsDiscoveryClientsGetCall) doRequest(alt string) (*http.Response, error) {
  8557  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8558  	if c.ifNoneMatch_ != "" {
  8559  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8560  	}
  8561  	var body io.Reader = nil
  8562  	c.urlParams_.Set("alt", alt)
  8563  	c.urlParams_.Set("prettyPrint", "false")
  8564  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  8565  	urls += "?" + c.urlParams_.Encode()
  8566  	req, err := http.NewRequest("GET", urls, body)
  8567  	if err != nil {
  8568  		return nil, err
  8569  	}
  8570  	req.Header = reqHeaders
  8571  	googleapi.Expand(req.URL, map[string]string{
  8572  		"name": c.name,
  8573  	})
  8574  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8575  }
  8576  
  8577  // Do executes the "migrationcenter.projects.locations.discoveryClients.get" call.
  8578  // Any non-2xx status code is an error. Response headers are in either
  8579  // *DiscoveryClient.ServerResponse.Header or (if a response was returned at
  8580  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8581  // check whether the returned error was because http.StatusNotModified was
  8582  // returned.
  8583  func (c *ProjectsLocationsDiscoveryClientsGetCall) Do(opts ...googleapi.CallOption) (*DiscoveryClient, error) {
  8584  	gensupport.SetOptions(c.urlParams_, opts...)
  8585  	res, err := c.doRequest("json")
  8586  	if res != nil && res.StatusCode == http.StatusNotModified {
  8587  		if res.Body != nil {
  8588  			res.Body.Close()
  8589  		}
  8590  		return nil, gensupport.WrapError(&googleapi.Error{
  8591  			Code:   res.StatusCode,
  8592  			Header: res.Header,
  8593  		})
  8594  	}
  8595  	if err != nil {
  8596  		return nil, err
  8597  	}
  8598  	defer googleapi.CloseBody(res)
  8599  	if err := googleapi.CheckResponse(res); err != nil {
  8600  		return nil, gensupport.WrapError(err)
  8601  	}
  8602  	ret := &DiscoveryClient{
  8603  		ServerResponse: googleapi.ServerResponse{
  8604  			Header:         res.Header,
  8605  			HTTPStatusCode: res.StatusCode,
  8606  		},
  8607  	}
  8608  	target := &ret
  8609  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8610  		return nil, err
  8611  	}
  8612  	return ret, nil
  8613  }
  8614  
  8615  type ProjectsLocationsDiscoveryClientsListCall struct {
  8616  	s            *Service
  8617  	parent       string
  8618  	urlParams_   gensupport.URLParams
  8619  	ifNoneMatch_ string
  8620  	ctx_         context.Context
  8621  	header_      http.Header
  8622  }
  8623  
  8624  // List: Lists all the discovery clients in a given project and location.
  8625  //
  8626  // - parent: Parent resource.
  8627  func (r *ProjectsLocationsDiscoveryClientsService) List(parent string) *ProjectsLocationsDiscoveryClientsListCall {
  8628  	c := &ProjectsLocationsDiscoveryClientsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8629  	c.parent = parent
  8630  	return c
  8631  }
  8632  
  8633  // Filter sets the optional parameter "filter": Filter expression to filter
  8634  // results by.
  8635  func (c *ProjectsLocationsDiscoveryClientsListCall) Filter(filter string) *ProjectsLocationsDiscoveryClientsListCall {
  8636  	c.urlParams_.Set("filter", filter)
  8637  	return c
  8638  }
  8639  
  8640  // OrderBy sets the optional parameter "orderBy": Field to sort by.
  8641  func (c *ProjectsLocationsDiscoveryClientsListCall) OrderBy(orderBy string) *ProjectsLocationsDiscoveryClientsListCall {
  8642  	c.urlParams_.Set("orderBy", orderBy)
  8643  	return c
  8644  }
  8645  
  8646  // PageSize sets the optional parameter "pageSize": The maximum number of items
  8647  // to return. The server may return fewer items than requested. If unspecified,
  8648  // the server will pick an appropriate default value.
  8649  func (c *ProjectsLocationsDiscoveryClientsListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveryClientsListCall {
  8650  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8651  	return c
  8652  }
  8653  
  8654  // PageToken sets the optional parameter "pageToken": A page token, received
  8655  // from a previous `ListDiscoveryClients` call. Provide this to retrieve the
  8656  // subsequent page. When paginating, all other parameters provided to
  8657  // `ListDiscoveryClients` must match the call that provided the page token.
  8658  func (c *ProjectsLocationsDiscoveryClientsListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveryClientsListCall {
  8659  	c.urlParams_.Set("pageToken", pageToken)
  8660  	return c
  8661  }
  8662  
  8663  // Fields allows partial responses to be retrieved. See
  8664  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8665  // details.
  8666  func (c *ProjectsLocationsDiscoveryClientsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsListCall {
  8667  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8668  	return c
  8669  }
  8670  
  8671  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8672  // object's ETag matches the given value. This is useful for getting updates
  8673  // only after the object has changed since the last request.
  8674  func (c *ProjectsLocationsDiscoveryClientsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryClientsListCall {
  8675  	c.ifNoneMatch_ = entityTag
  8676  	return c
  8677  }
  8678  
  8679  // Context sets the context to be used in this call's Do method.
  8680  func (c *ProjectsLocationsDiscoveryClientsListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsListCall {
  8681  	c.ctx_ = ctx
  8682  	return c
  8683  }
  8684  
  8685  // Header returns a http.Header that can be modified by the caller to add
  8686  // headers to the request.
  8687  func (c *ProjectsLocationsDiscoveryClientsListCall) Header() http.Header {
  8688  	if c.header_ == nil {
  8689  		c.header_ = make(http.Header)
  8690  	}
  8691  	return c.header_
  8692  }
  8693  
  8694  func (c *ProjectsLocationsDiscoveryClientsListCall) doRequest(alt string) (*http.Response, error) {
  8695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8696  	if c.ifNoneMatch_ != "" {
  8697  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8698  	}
  8699  	var body io.Reader = nil
  8700  	c.urlParams_.Set("alt", alt)
  8701  	c.urlParams_.Set("prettyPrint", "false")
  8702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/discoveryClients")
  8703  	urls += "?" + c.urlParams_.Encode()
  8704  	req, err := http.NewRequest("GET", urls, body)
  8705  	if err != nil {
  8706  		return nil, err
  8707  	}
  8708  	req.Header = reqHeaders
  8709  	googleapi.Expand(req.URL, map[string]string{
  8710  		"parent": c.parent,
  8711  	})
  8712  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8713  }
  8714  
  8715  // Do executes the "migrationcenter.projects.locations.discoveryClients.list" call.
  8716  // Any non-2xx status code is an error. Response headers are in either
  8717  // *ListDiscoveryClientsResponse.ServerResponse.Header or (if a response was
  8718  // returned at all) in error.(*googleapi.Error).Header. Use
  8719  // googleapi.IsNotModified to check whether the returned error was because
  8720  // http.StatusNotModified was returned.
  8721  func (c *ProjectsLocationsDiscoveryClientsListCall) Do(opts ...googleapi.CallOption) (*ListDiscoveryClientsResponse, error) {
  8722  	gensupport.SetOptions(c.urlParams_, opts...)
  8723  	res, err := c.doRequest("json")
  8724  	if res != nil && res.StatusCode == http.StatusNotModified {
  8725  		if res.Body != nil {
  8726  			res.Body.Close()
  8727  		}
  8728  		return nil, gensupport.WrapError(&googleapi.Error{
  8729  			Code:   res.StatusCode,
  8730  			Header: res.Header,
  8731  		})
  8732  	}
  8733  	if err != nil {
  8734  		return nil, err
  8735  	}
  8736  	defer googleapi.CloseBody(res)
  8737  	if err := googleapi.CheckResponse(res); err != nil {
  8738  		return nil, gensupport.WrapError(err)
  8739  	}
  8740  	ret := &ListDiscoveryClientsResponse{
  8741  		ServerResponse: googleapi.ServerResponse{
  8742  			Header:         res.Header,
  8743  			HTTPStatusCode: res.StatusCode,
  8744  		},
  8745  	}
  8746  	target := &ret
  8747  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8748  		return nil, err
  8749  	}
  8750  	return ret, nil
  8751  }
  8752  
  8753  // Pages invokes f for each page of results.
  8754  // A non-nil error returned from f will halt the iteration.
  8755  // The provided context supersedes any context provided to the Context method.
  8756  func (c *ProjectsLocationsDiscoveryClientsListCall) Pages(ctx context.Context, f func(*ListDiscoveryClientsResponse) error) error {
  8757  	c.ctx_ = ctx
  8758  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8759  	for {
  8760  		x, err := c.Do()
  8761  		if err != nil {
  8762  			return err
  8763  		}
  8764  		if err := f(x); err != nil {
  8765  			return err
  8766  		}
  8767  		if x.NextPageToken == "" {
  8768  			return nil
  8769  		}
  8770  		c.PageToken(x.NextPageToken)
  8771  	}
  8772  }
  8773  
  8774  type ProjectsLocationsDiscoveryClientsPatchCall struct {
  8775  	s               *Service
  8776  	name            string
  8777  	discoveryclient *DiscoveryClient
  8778  	urlParams_      gensupport.URLParams
  8779  	ctx_            context.Context
  8780  	header_         http.Header
  8781  }
  8782  
  8783  // Patch: Updates a discovery client.
  8784  //
  8785  // - name: Output only. Identifier. Full name of this discovery client.
  8786  func (r *ProjectsLocationsDiscoveryClientsService) Patch(name string, discoveryclient *DiscoveryClient) *ProjectsLocationsDiscoveryClientsPatchCall {
  8787  	c := &ProjectsLocationsDiscoveryClientsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8788  	c.name = name
  8789  	c.discoveryclient = discoveryclient
  8790  	return c
  8791  }
  8792  
  8793  // RequestId sets the optional parameter "requestId": An optional request ID to
  8794  // identify requests. Specify a unique request ID so that if you must retry
  8795  // your request, the server will know to ignore the request if it has already
  8796  // been completed. The server will guarantee that for at least 60 minutes since
  8797  // the first request. For example, consider a situation where you make an
  8798  // initial request and the request times out. If you make the request again
  8799  // with the same request ID, the server can check if original operation with
  8800  // the same request ID was received, and if so, will ignore the second request.
  8801  // This prevents clients from accidentally creating duplicate commitments. The
  8802  // request ID must be a valid UUID with the exception that zero UUID is not
  8803  // supported (00000000-0000-0000-0000-000000000000).
  8804  func (c *ProjectsLocationsDiscoveryClientsPatchCall) RequestId(requestId string) *ProjectsLocationsDiscoveryClientsPatchCall {
  8805  	c.urlParams_.Set("requestId", requestId)
  8806  	return c
  8807  }
  8808  
  8809  // UpdateMask sets the optional parameter "updateMask": Required. Update mask
  8810  // is used to specify the fields to be overwritten in the `DiscoveryClient`
  8811  // resource by the update. The values specified in the `update_mask` field are
  8812  // relative to the resource, not the full request. A field will be overwritten
  8813  // if it is in the mask. A single * value in the mask lets you to overwrite all
  8814  // fields.
  8815  func (c *ProjectsLocationsDiscoveryClientsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDiscoveryClientsPatchCall {
  8816  	c.urlParams_.Set("updateMask", updateMask)
  8817  	return c
  8818  }
  8819  
  8820  // Fields allows partial responses to be retrieved. See
  8821  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8822  // details.
  8823  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsPatchCall {
  8824  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8825  	return c
  8826  }
  8827  
  8828  // Context sets the context to be used in this call's Do method.
  8829  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsPatchCall {
  8830  	c.ctx_ = ctx
  8831  	return c
  8832  }
  8833  
  8834  // Header returns a http.Header that can be modified by the caller to add
  8835  // headers to the request.
  8836  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Header() http.Header {
  8837  	if c.header_ == nil {
  8838  		c.header_ = make(http.Header)
  8839  	}
  8840  	return c.header_
  8841  }
  8842  
  8843  func (c *ProjectsLocationsDiscoveryClientsPatchCall) doRequest(alt string) (*http.Response, error) {
  8844  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8845  	var body io.Reader = nil
  8846  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoveryclient)
  8847  	if err != nil {
  8848  		return nil, err
  8849  	}
  8850  	c.urlParams_.Set("alt", alt)
  8851  	c.urlParams_.Set("prettyPrint", "false")
  8852  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  8853  	urls += "?" + c.urlParams_.Encode()
  8854  	req, err := http.NewRequest("PATCH", urls, body)
  8855  	if err != nil {
  8856  		return nil, err
  8857  	}
  8858  	req.Header = reqHeaders
  8859  	googleapi.Expand(req.URL, map[string]string{
  8860  		"name": c.name,
  8861  	})
  8862  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8863  }
  8864  
  8865  // Do executes the "migrationcenter.projects.locations.discoveryClients.patch" call.
  8866  // Any non-2xx status code is an error. Response headers are in either
  8867  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8868  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8869  // whether the returned error was because http.StatusNotModified was returned.
  8870  func (c *ProjectsLocationsDiscoveryClientsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8871  	gensupport.SetOptions(c.urlParams_, opts...)
  8872  	res, err := c.doRequest("json")
  8873  	if res != nil && res.StatusCode == http.StatusNotModified {
  8874  		if res.Body != nil {
  8875  			res.Body.Close()
  8876  		}
  8877  		return nil, gensupport.WrapError(&googleapi.Error{
  8878  			Code:   res.StatusCode,
  8879  			Header: res.Header,
  8880  		})
  8881  	}
  8882  	if err != nil {
  8883  		return nil, err
  8884  	}
  8885  	defer googleapi.CloseBody(res)
  8886  	if err := googleapi.CheckResponse(res); err != nil {
  8887  		return nil, gensupport.WrapError(err)
  8888  	}
  8889  	ret := &Operation{
  8890  		ServerResponse: googleapi.ServerResponse{
  8891  			Header:         res.Header,
  8892  			HTTPStatusCode: res.StatusCode,
  8893  		},
  8894  	}
  8895  	target := &ret
  8896  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8897  		return nil, err
  8898  	}
  8899  	return ret, nil
  8900  }
  8901  
  8902  type ProjectsLocationsDiscoveryClientsSendHeartbeatCall struct {
  8903  	s                                   *Service
  8904  	name                                string
  8905  	senddiscoveryclientheartbeatrequest *SendDiscoveryClientHeartbeatRequest
  8906  	urlParams_                          gensupport.URLParams
  8907  	ctx_                                context.Context
  8908  	header_                             http.Header
  8909  }
  8910  
  8911  // SendHeartbeat: Sends a discovery client heartbeat. Healthy clients are
  8912  // expected to send heartbeats regularly (normally every few minutes).
  8913  //
  8914  // - name: The discovery client name.
  8915  func (r *ProjectsLocationsDiscoveryClientsService) SendHeartbeat(name string, senddiscoveryclientheartbeatrequest *SendDiscoveryClientHeartbeatRequest) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
  8916  	c := &ProjectsLocationsDiscoveryClientsSendHeartbeatCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8917  	c.name = name
  8918  	c.senddiscoveryclientheartbeatrequest = senddiscoveryclientheartbeatrequest
  8919  	return c
  8920  }
  8921  
  8922  // Fields allows partial responses to be retrieved. See
  8923  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8924  // details.
  8925  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
  8926  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8927  	return c
  8928  }
  8929  
  8930  // Context sets the context to be used in this call's Do method.
  8931  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryClientsSendHeartbeatCall {
  8932  	c.ctx_ = ctx
  8933  	return c
  8934  }
  8935  
  8936  // Header returns a http.Header that can be modified by the caller to add
  8937  // headers to the request.
  8938  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Header() http.Header {
  8939  	if c.header_ == nil {
  8940  		c.header_ = make(http.Header)
  8941  	}
  8942  	return c.header_
  8943  }
  8944  
  8945  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) doRequest(alt string) (*http.Response, error) {
  8946  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8947  	var body io.Reader = nil
  8948  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.senddiscoveryclientheartbeatrequest)
  8949  	if err != nil {
  8950  		return nil, err
  8951  	}
  8952  	c.urlParams_.Set("alt", alt)
  8953  	c.urlParams_.Set("prettyPrint", "false")
  8954  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:sendHeartbeat")
  8955  	urls += "?" + c.urlParams_.Encode()
  8956  	req, err := http.NewRequest("POST", urls, body)
  8957  	if err != nil {
  8958  		return nil, err
  8959  	}
  8960  	req.Header = reqHeaders
  8961  	googleapi.Expand(req.URL, map[string]string{
  8962  		"name": c.name,
  8963  	})
  8964  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8965  }
  8966  
  8967  // Do executes the "migrationcenter.projects.locations.discoveryClients.sendHeartbeat" call.
  8968  // Any non-2xx status code is an error. Response headers are in either
  8969  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8970  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8971  // whether the returned error was because http.StatusNotModified was returned.
  8972  func (c *ProjectsLocationsDiscoveryClientsSendHeartbeatCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8973  	gensupport.SetOptions(c.urlParams_, opts...)
  8974  	res, err := c.doRequest("json")
  8975  	if res != nil && res.StatusCode == http.StatusNotModified {
  8976  		if res.Body != nil {
  8977  			res.Body.Close()
  8978  		}
  8979  		return nil, gensupport.WrapError(&googleapi.Error{
  8980  			Code:   res.StatusCode,
  8981  			Header: res.Header,
  8982  		})
  8983  	}
  8984  	if err != nil {
  8985  		return nil, err
  8986  	}
  8987  	defer googleapi.CloseBody(res)
  8988  	if err := googleapi.CheckResponse(res); err != nil {
  8989  		return nil, gensupport.WrapError(err)
  8990  	}
  8991  	ret := &Operation{
  8992  		ServerResponse: googleapi.ServerResponse{
  8993  			Header:         res.Header,
  8994  			HTTPStatusCode: res.StatusCode,
  8995  		},
  8996  	}
  8997  	target := &ret
  8998  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8999  		return nil, err
  9000  	}
  9001  	return ret, nil
  9002  }
  9003  
  9004  type ProjectsLocationsGroupsAddAssetsCall struct {
  9005  	s                       *Service
  9006  	group                   string
  9007  	addassetstogrouprequest *AddAssetsToGroupRequest
  9008  	urlParams_              gensupport.URLParams
  9009  	ctx_                    context.Context
  9010  	header_                 http.Header
  9011  }
  9012  
  9013  // AddAssets: Adds assets to a group.
  9014  //
  9015  // - group: Group reference.
  9016  func (r *ProjectsLocationsGroupsService) AddAssets(group string, addassetstogrouprequest *AddAssetsToGroupRequest) *ProjectsLocationsGroupsAddAssetsCall {
  9017  	c := &ProjectsLocationsGroupsAddAssetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9018  	c.group = group
  9019  	c.addassetstogrouprequest = addassetstogrouprequest
  9020  	return c
  9021  }
  9022  
  9023  // Fields allows partial responses to be retrieved. See
  9024  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9025  // details.
  9026  func (c *ProjectsLocationsGroupsAddAssetsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsAddAssetsCall {
  9027  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9028  	return c
  9029  }
  9030  
  9031  // Context sets the context to be used in this call's Do method.
  9032  func (c *ProjectsLocationsGroupsAddAssetsCall) Context(ctx context.Context) *ProjectsLocationsGroupsAddAssetsCall {
  9033  	c.ctx_ = ctx
  9034  	return c
  9035  }
  9036  
  9037  // Header returns a http.Header that can be modified by the caller to add
  9038  // headers to the request.
  9039  func (c *ProjectsLocationsGroupsAddAssetsCall) Header() http.Header {
  9040  	if c.header_ == nil {
  9041  		c.header_ = make(http.Header)
  9042  	}
  9043  	return c.header_
  9044  }
  9045  
  9046  func (c *ProjectsLocationsGroupsAddAssetsCall) doRequest(alt string) (*http.Response, error) {
  9047  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9048  	var body io.Reader = nil
  9049  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addassetstogrouprequest)
  9050  	if err != nil {
  9051  		return nil, err
  9052  	}
  9053  	c.urlParams_.Set("alt", alt)
  9054  	c.urlParams_.Set("prettyPrint", "false")
  9055  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+group}:addAssets")
  9056  	urls += "?" + c.urlParams_.Encode()
  9057  	req, err := http.NewRequest("POST", urls, body)
  9058  	if err != nil {
  9059  		return nil, err
  9060  	}
  9061  	req.Header = reqHeaders
  9062  	googleapi.Expand(req.URL, map[string]string{
  9063  		"group": c.group,
  9064  	})
  9065  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9066  }
  9067  
  9068  // Do executes the "migrationcenter.projects.locations.groups.addAssets" call.
  9069  // Any non-2xx status code is an error. Response headers are in either
  9070  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9071  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9072  // whether the returned error was because http.StatusNotModified was returned.
  9073  func (c *ProjectsLocationsGroupsAddAssetsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9074  	gensupport.SetOptions(c.urlParams_, opts...)
  9075  	res, err := c.doRequest("json")
  9076  	if res != nil && res.StatusCode == http.StatusNotModified {
  9077  		if res.Body != nil {
  9078  			res.Body.Close()
  9079  		}
  9080  		return nil, gensupport.WrapError(&googleapi.Error{
  9081  			Code:   res.StatusCode,
  9082  			Header: res.Header,
  9083  		})
  9084  	}
  9085  	if err != nil {
  9086  		return nil, err
  9087  	}
  9088  	defer googleapi.CloseBody(res)
  9089  	if err := googleapi.CheckResponse(res); err != nil {
  9090  		return nil, gensupport.WrapError(err)
  9091  	}
  9092  	ret := &Operation{
  9093  		ServerResponse: googleapi.ServerResponse{
  9094  			Header:         res.Header,
  9095  			HTTPStatusCode: res.StatusCode,
  9096  		},
  9097  	}
  9098  	target := &ret
  9099  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9100  		return nil, err
  9101  	}
  9102  	return ret, nil
  9103  }
  9104  
  9105  type ProjectsLocationsGroupsCreateCall struct {
  9106  	s          *Service
  9107  	parent     string
  9108  	group      *Group
  9109  	urlParams_ gensupport.URLParams
  9110  	ctx_       context.Context
  9111  	header_    http.Header
  9112  }
  9113  
  9114  // Create: Creates a new group in a given project and location.
  9115  //
  9116  // - parent: Value for parent.
  9117  func (r *ProjectsLocationsGroupsService) Create(parent string, group *Group) *ProjectsLocationsGroupsCreateCall {
  9118  	c := &ProjectsLocationsGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9119  	c.parent = parent
  9120  	c.group = group
  9121  	return c
  9122  }
  9123  
  9124  // GroupId sets the optional parameter "groupId": Required. User specified ID
  9125  // for the group. It will become the last component of the group name. The ID
  9126  // must be unique within the project, must conform with RFC-1034, is restricted
  9127  // to lower-cased letters, and has a maximum length of 63 characters. The ID
  9128  // must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
  9129  func (c *ProjectsLocationsGroupsCreateCall) GroupId(groupId string) *ProjectsLocationsGroupsCreateCall {
  9130  	c.urlParams_.Set("groupId", groupId)
  9131  	return c
  9132  }
  9133  
  9134  // RequestId sets the optional parameter "requestId": An optional request ID to
  9135  // identify requests. Specify a unique request ID so that if you must retry
  9136  // your request, the server will know to ignore the request if it has already
  9137  // been completed. The server will guarantee that for at least 60 minutes since
  9138  // the first request. For example, consider a situation where you make an
  9139  // initial request and the request times out. If you make the request again
  9140  // with the same request ID, the server can check if original operation with
  9141  // the same request ID was received, and if so, will ignore the second request.
  9142  // This prevents clients from accidentally creating duplicate commitments. The
  9143  // request ID must be a valid UUID with the exception that zero UUID is not
  9144  // supported (00000000-0000-0000-0000-000000000000).
  9145  func (c *ProjectsLocationsGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsGroupsCreateCall {
  9146  	c.urlParams_.Set("requestId", requestId)
  9147  	return c
  9148  }
  9149  
  9150  // Fields allows partial responses to be retrieved. See
  9151  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9152  // details.
  9153  func (c *ProjectsLocationsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsCreateCall {
  9154  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9155  	return c
  9156  }
  9157  
  9158  // Context sets the context to be used in this call's Do method.
  9159  func (c *ProjectsLocationsGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsGroupsCreateCall {
  9160  	c.ctx_ = ctx
  9161  	return c
  9162  }
  9163  
  9164  // Header returns a http.Header that can be modified by the caller to add
  9165  // headers to the request.
  9166  func (c *ProjectsLocationsGroupsCreateCall) Header() http.Header {
  9167  	if c.header_ == nil {
  9168  		c.header_ = make(http.Header)
  9169  	}
  9170  	return c.header_
  9171  }
  9172  
  9173  func (c *ProjectsLocationsGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
  9174  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9175  	var body io.Reader = nil
  9176  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
  9177  	if err != nil {
  9178  		return nil, err
  9179  	}
  9180  	c.urlParams_.Set("alt", alt)
  9181  	c.urlParams_.Set("prettyPrint", "false")
  9182  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/groups")
  9183  	urls += "?" + c.urlParams_.Encode()
  9184  	req, err := http.NewRequest("POST", urls, body)
  9185  	if err != nil {
  9186  		return nil, err
  9187  	}
  9188  	req.Header = reqHeaders
  9189  	googleapi.Expand(req.URL, map[string]string{
  9190  		"parent": c.parent,
  9191  	})
  9192  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9193  }
  9194  
  9195  // Do executes the "migrationcenter.projects.locations.groups.create" call.
  9196  // Any non-2xx status code is an error. Response headers are in either
  9197  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9198  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9199  // whether the returned error was because http.StatusNotModified was returned.
  9200  func (c *ProjectsLocationsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9201  	gensupport.SetOptions(c.urlParams_, opts...)
  9202  	res, err := c.doRequest("json")
  9203  	if res != nil && res.StatusCode == http.StatusNotModified {
  9204  		if res.Body != nil {
  9205  			res.Body.Close()
  9206  		}
  9207  		return nil, gensupport.WrapError(&googleapi.Error{
  9208  			Code:   res.StatusCode,
  9209  			Header: res.Header,
  9210  		})
  9211  	}
  9212  	if err != nil {
  9213  		return nil, err
  9214  	}
  9215  	defer googleapi.CloseBody(res)
  9216  	if err := googleapi.CheckResponse(res); err != nil {
  9217  		return nil, gensupport.WrapError(err)
  9218  	}
  9219  	ret := &Operation{
  9220  		ServerResponse: googleapi.ServerResponse{
  9221  			Header:         res.Header,
  9222  			HTTPStatusCode: res.StatusCode,
  9223  		},
  9224  	}
  9225  	target := &ret
  9226  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9227  		return nil, err
  9228  	}
  9229  	return ret, nil
  9230  }
  9231  
  9232  type ProjectsLocationsGroupsDeleteCall struct {
  9233  	s          *Service
  9234  	name       string
  9235  	urlParams_ gensupport.URLParams
  9236  	ctx_       context.Context
  9237  	header_    http.Header
  9238  }
  9239  
  9240  // Delete: Deletes a group.
  9241  //
  9242  // - name: Name of the group resource.
  9243  func (r *ProjectsLocationsGroupsService) Delete(name string) *ProjectsLocationsGroupsDeleteCall {
  9244  	c := &ProjectsLocationsGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9245  	c.name = name
  9246  	return c
  9247  }
  9248  
  9249  // RequestId sets the optional parameter "requestId": An optional request ID to
  9250  // identify requests. Specify a unique request ID so that if you must retry
  9251  // your request, the server will know to ignore the request if it has already
  9252  // been completed. The server will guarantee that for at least 60 minutes after
  9253  // the first request. For example, consider a situation where you make an
  9254  // initial request and the request times out. If you make the request again
  9255  // with the same request ID, the server can check if original operation with
  9256  // the same request ID was received, and if so, will ignore the second request.
  9257  // This prevents clients from accidentally creating duplicate commitments. The
  9258  // request ID must be a valid UUID with the exception that zero UUID is not
  9259  // supported (00000000-0000-0000-0000-000000000000).
  9260  func (c *ProjectsLocationsGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsGroupsDeleteCall {
  9261  	c.urlParams_.Set("requestId", requestId)
  9262  	return c
  9263  }
  9264  
  9265  // Fields allows partial responses to be retrieved. See
  9266  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9267  // details.
  9268  func (c *ProjectsLocationsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsDeleteCall {
  9269  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9270  	return c
  9271  }
  9272  
  9273  // Context sets the context to be used in this call's Do method.
  9274  func (c *ProjectsLocationsGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGroupsDeleteCall {
  9275  	c.ctx_ = ctx
  9276  	return c
  9277  }
  9278  
  9279  // Header returns a http.Header that can be modified by the caller to add
  9280  // headers to the request.
  9281  func (c *ProjectsLocationsGroupsDeleteCall) Header() http.Header {
  9282  	if c.header_ == nil {
  9283  		c.header_ = make(http.Header)
  9284  	}
  9285  	return c.header_
  9286  }
  9287  
  9288  func (c *ProjectsLocationsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9290  	var body io.Reader = nil
  9291  	c.urlParams_.Set("alt", alt)
  9292  	c.urlParams_.Set("prettyPrint", "false")
  9293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  9294  	urls += "?" + c.urlParams_.Encode()
  9295  	req, err := http.NewRequest("DELETE", urls, body)
  9296  	if err != nil {
  9297  		return nil, err
  9298  	}
  9299  	req.Header = reqHeaders
  9300  	googleapi.Expand(req.URL, map[string]string{
  9301  		"name": c.name,
  9302  	})
  9303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9304  }
  9305  
  9306  // Do executes the "migrationcenter.projects.locations.groups.delete" call.
  9307  // Any non-2xx status code is an error. Response headers are in either
  9308  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9309  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9310  // whether the returned error was because http.StatusNotModified was returned.
  9311  func (c *ProjectsLocationsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9312  	gensupport.SetOptions(c.urlParams_, opts...)
  9313  	res, err := c.doRequest("json")
  9314  	if res != nil && res.StatusCode == http.StatusNotModified {
  9315  		if res.Body != nil {
  9316  			res.Body.Close()
  9317  		}
  9318  		return nil, gensupport.WrapError(&googleapi.Error{
  9319  			Code:   res.StatusCode,
  9320  			Header: res.Header,
  9321  		})
  9322  	}
  9323  	if err != nil {
  9324  		return nil, err
  9325  	}
  9326  	defer googleapi.CloseBody(res)
  9327  	if err := googleapi.CheckResponse(res); err != nil {
  9328  		return nil, gensupport.WrapError(err)
  9329  	}
  9330  	ret := &Operation{
  9331  		ServerResponse: googleapi.ServerResponse{
  9332  			Header:         res.Header,
  9333  			HTTPStatusCode: res.StatusCode,
  9334  		},
  9335  	}
  9336  	target := &ret
  9337  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9338  		return nil, err
  9339  	}
  9340  	return ret, nil
  9341  }
  9342  
  9343  type ProjectsLocationsGroupsGetCall struct {
  9344  	s            *Service
  9345  	name         string
  9346  	urlParams_   gensupport.URLParams
  9347  	ifNoneMatch_ string
  9348  	ctx_         context.Context
  9349  	header_      http.Header
  9350  }
  9351  
  9352  // Get: Gets the details of a group.
  9353  //
  9354  // - name: Name of the resource.
  9355  func (r *ProjectsLocationsGroupsService) Get(name string) *ProjectsLocationsGroupsGetCall {
  9356  	c := &ProjectsLocationsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9357  	c.name = name
  9358  	return c
  9359  }
  9360  
  9361  // Fields allows partial responses to be retrieved. See
  9362  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9363  // details.
  9364  func (c *ProjectsLocationsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsGetCall {
  9365  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9366  	return c
  9367  }
  9368  
  9369  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9370  // object's ETag matches the given value. This is useful for getting updates
  9371  // only after the object has changed since the last request.
  9372  func (c *ProjectsLocationsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsGetCall {
  9373  	c.ifNoneMatch_ = entityTag
  9374  	return c
  9375  }
  9376  
  9377  // Context sets the context to be used in this call's Do method.
  9378  func (c *ProjectsLocationsGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsGroupsGetCall {
  9379  	c.ctx_ = ctx
  9380  	return c
  9381  }
  9382  
  9383  // Header returns a http.Header that can be modified by the caller to add
  9384  // headers to the request.
  9385  func (c *ProjectsLocationsGroupsGetCall) Header() http.Header {
  9386  	if c.header_ == nil {
  9387  		c.header_ = make(http.Header)
  9388  	}
  9389  	return c.header_
  9390  }
  9391  
  9392  func (c *ProjectsLocationsGroupsGetCall) doRequest(alt string) (*http.Response, error) {
  9393  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9394  	if c.ifNoneMatch_ != "" {
  9395  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9396  	}
  9397  	var body io.Reader = nil
  9398  	c.urlParams_.Set("alt", alt)
  9399  	c.urlParams_.Set("prettyPrint", "false")
  9400  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  9401  	urls += "?" + c.urlParams_.Encode()
  9402  	req, err := http.NewRequest("GET", urls, body)
  9403  	if err != nil {
  9404  		return nil, err
  9405  	}
  9406  	req.Header = reqHeaders
  9407  	googleapi.Expand(req.URL, map[string]string{
  9408  		"name": c.name,
  9409  	})
  9410  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9411  }
  9412  
  9413  // Do executes the "migrationcenter.projects.locations.groups.get" call.
  9414  // Any non-2xx status code is an error. Response headers are in either
  9415  // *Group.ServerResponse.Header or (if a response was returned at all) in
  9416  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9417  // whether the returned error was because http.StatusNotModified was returned.
  9418  func (c *ProjectsLocationsGroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error) {
  9419  	gensupport.SetOptions(c.urlParams_, opts...)
  9420  	res, err := c.doRequest("json")
  9421  	if res != nil && res.StatusCode == http.StatusNotModified {
  9422  		if res.Body != nil {
  9423  			res.Body.Close()
  9424  		}
  9425  		return nil, gensupport.WrapError(&googleapi.Error{
  9426  			Code:   res.StatusCode,
  9427  			Header: res.Header,
  9428  		})
  9429  	}
  9430  	if err != nil {
  9431  		return nil, err
  9432  	}
  9433  	defer googleapi.CloseBody(res)
  9434  	if err := googleapi.CheckResponse(res); err != nil {
  9435  		return nil, gensupport.WrapError(err)
  9436  	}
  9437  	ret := &Group{
  9438  		ServerResponse: googleapi.ServerResponse{
  9439  			Header:         res.Header,
  9440  			HTTPStatusCode: res.StatusCode,
  9441  		},
  9442  	}
  9443  	target := &ret
  9444  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9445  		return nil, err
  9446  	}
  9447  	return ret, nil
  9448  }
  9449  
  9450  type ProjectsLocationsGroupsListCall struct {
  9451  	s            *Service
  9452  	parent       string
  9453  	urlParams_   gensupport.URLParams
  9454  	ifNoneMatch_ string
  9455  	ctx_         context.Context
  9456  	header_      http.Header
  9457  }
  9458  
  9459  // List: Lists all groups in a given project and location.
  9460  //
  9461  // - parent: Parent value for `ListGroupsRequest`.
  9462  func (r *ProjectsLocationsGroupsService) List(parent string) *ProjectsLocationsGroupsListCall {
  9463  	c := &ProjectsLocationsGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9464  	c.parent = parent
  9465  	return c
  9466  }
  9467  
  9468  // Filter sets the optional parameter "filter": Filtering results.
  9469  func (c *ProjectsLocationsGroupsListCall) Filter(filter string) *ProjectsLocationsGroupsListCall {
  9470  	c.urlParams_.Set("filter", filter)
  9471  	return c
  9472  }
  9473  
  9474  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
  9475  // https://google.aip.dev/132#ordering for more details.
  9476  func (c *ProjectsLocationsGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsGroupsListCall {
  9477  	c.urlParams_.Set("orderBy", orderBy)
  9478  	return c
  9479  }
  9480  
  9481  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  9482  // may return fewer items than requested. If unspecified, server will pick an
  9483  // appropriate default.
  9484  func (c *ProjectsLocationsGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsGroupsListCall {
  9485  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9486  	return c
  9487  }
  9488  
  9489  // PageToken sets the optional parameter "pageToken": A token identifying a
  9490  // page of results the server should return.
  9491  func (c *ProjectsLocationsGroupsListCall) PageToken(pageToken string) *ProjectsLocationsGroupsListCall {
  9492  	c.urlParams_.Set("pageToken", pageToken)
  9493  	return c
  9494  }
  9495  
  9496  // Fields allows partial responses to be retrieved. See
  9497  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9498  // details.
  9499  func (c *ProjectsLocationsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsListCall {
  9500  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9501  	return c
  9502  }
  9503  
  9504  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9505  // object's ETag matches the given value. This is useful for getting updates
  9506  // only after the object has changed since the last request.
  9507  func (c *ProjectsLocationsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsListCall {
  9508  	c.ifNoneMatch_ = entityTag
  9509  	return c
  9510  }
  9511  
  9512  // Context sets the context to be used in this call's Do method.
  9513  func (c *ProjectsLocationsGroupsListCall) Context(ctx context.Context) *ProjectsLocationsGroupsListCall {
  9514  	c.ctx_ = ctx
  9515  	return c
  9516  }
  9517  
  9518  // Header returns a http.Header that can be modified by the caller to add
  9519  // headers to the request.
  9520  func (c *ProjectsLocationsGroupsListCall) Header() http.Header {
  9521  	if c.header_ == nil {
  9522  		c.header_ = make(http.Header)
  9523  	}
  9524  	return c.header_
  9525  }
  9526  
  9527  func (c *ProjectsLocationsGroupsListCall) doRequest(alt string) (*http.Response, error) {
  9528  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9529  	if c.ifNoneMatch_ != "" {
  9530  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9531  	}
  9532  	var body io.Reader = nil
  9533  	c.urlParams_.Set("alt", alt)
  9534  	c.urlParams_.Set("prettyPrint", "false")
  9535  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/groups")
  9536  	urls += "?" + c.urlParams_.Encode()
  9537  	req, err := http.NewRequest("GET", urls, body)
  9538  	if err != nil {
  9539  		return nil, err
  9540  	}
  9541  	req.Header = reqHeaders
  9542  	googleapi.Expand(req.URL, map[string]string{
  9543  		"parent": c.parent,
  9544  	})
  9545  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9546  }
  9547  
  9548  // Do executes the "migrationcenter.projects.locations.groups.list" call.
  9549  // Any non-2xx status code is an error. Response headers are in either
  9550  // *ListGroupsResponse.ServerResponse.Header or (if a response was returned at
  9551  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9552  // check whether the returned error was because http.StatusNotModified was
  9553  // returned.
  9554  func (c *ProjectsLocationsGroupsListCall) Do(opts ...googleapi.CallOption) (*ListGroupsResponse, error) {
  9555  	gensupport.SetOptions(c.urlParams_, opts...)
  9556  	res, err := c.doRequest("json")
  9557  	if res != nil && res.StatusCode == http.StatusNotModified {
  9558  		if res.Body != nil {
  9559  			res.Body.Close()
  9560  		}
  9561  		return nil, gensupport.WrapError(&googleapi.Error{
  9562  			Code:   res.StatusCode,
  9563  			Header: res.Header,
  9564  		})
  9565  	}
  9566  	if err != nil {
  9567  		return nil, err
  9568  	}
  9569  	defer googleapi.CloseBody(res)
  9570  	if err := googleapi.CheckResponse(res); err != nil {
  9571  		return nil, gensupport.WrapError(err)
  9572  	}
  9573  	ret := &ListGroupsResponse{
  9574  		ServerResponse: googleapi.ServerResponse{
  9575  			Header:         res.Header,
  9576  			HTTPStatusCode: res.StatusCode,
  9577  		},
  9578  	}
  9579  	target := &ret
  9580  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9581  		return nil, err
  9582  	}
  9583  	return ret, nil
  9584  }
  9585  
  9586  // Pages invokes f for each page of results.
  9587  // A non-nil error returned from f will halt the iteration.
  9588  // The provided context supersedes any context provided to the Context method.
  9589  func (c *ProjectsLocationsGroupsListCall) Pages(ctx context.Context, f func(*ListGroupsResponse) error) error {
  9590  	c.ctx_ = ctx
  9591  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9592  	for {
  9593  		x, err := c.Do()
  9594  		if err != nil {
  9595  			return err
  9596  		}
  9597  		if err := f(x); err != nil {
  9598  			return err
  9599  		}
  9600  		if x.NextPageToken == "" {
  9601  			return nil
  9602  		}
  9603  		c.PageToken(x.NextPageToken)
  9604  	}
  9605  }
  9606  
  9607  type ProjectsLocationsGroupsPatchCall struct {
  9608  	s          *Service
  9609  	name       string
  9610  	group      *Group
  9611  	urlParams_ gensupport.URLParams
  9612  	ctx_       context.Context
  9613  	header_    http.Header
  9614  }
  9615  
  9616  // Patch: Updates the parameters of a group.
  9617  //
  9618  // - name: Output only. The name of the group.
  9619  func (r *ProjectsLocationsGroupsService) Patch(name string, group *Group) *ProjectsLocationsGroupsPatchCall {
  9620  	c := &ProjectsLocationsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9621  	c.name = name
  9622  	c.group = group
  9623  	return c
  9624  }
  9625  
  9626  // RequestId sets the optional parameter "requestId": An optional request ID to
  9627  // identify requests. Specify a unique request ID so that if you must retry
  9628  // your request, the server will know to ignore the request if it has already
  9629  // been completed. The server will guarantee that for at least 60 minutes since
  9630  // the first request. For example, consider a situation where you make an
  9631  // initial request and the request times out. If you make the request again
  9632  // with the same request ID, the server can check if original operation with
  9633  // the same request ID was received, and if so, will ignore the second request.
  9634  // This prevents clients from accidentally creating duplicate commitments. The
  9635  // request ID must be a valid UUID with the exception that zero UUID is not
  9636  // supported (00000000-0000-0000-0000-000000000000).
  9637  func (c *ProjectsLocationsGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsGroupsPatchCall {
  9638  	c.urlParams_.Set("requestId", requestId)
  9639  	return c
  9640  }
  9641  
  9642  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
  9643  // used to specify the fields to be overwritten in the `Group` resource by the
  9644  // update. The values specified in the `update_mask` are relative to the
  9645  // resource, not the full request. A field will be overwritten if it is in the
  9646  // mask. A single * value in the mask lets you to overwrite all fields.
  9647  func (c *ProjectsLocationsGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGroupsPatchCall {
  9648  	c.urlParams_.Set("updateMask", updateMask)
  9649  	return c
  9650  }
  9651  
  9652  // Fields allows partial responses to be retrieved. See
  9653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9654  // details.
  9655  func (c *ProjectsLocationsGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsPatchCall {
  9656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9657  	return c
  9658  }
  9659  
  9660  // Context sets the context to be used in this call's Do method.
  9661  func (c *ProjectsLocationsGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsGroupsPatchCall {
  9662  	c.ctx_ = ctx
  9663  	return c
  9664  }
  9665  
  9666  // Header returns a http.Header that can be modified by the caller to add
  9667  // headers to the request.
  9668  func (c *ProjectsLocationsGroupsPatchCall) Header() http.Header {
  9669  	if c.header_ == nil {
  9670  		c.header_ = make(http.Header)
  9671  	}
  9672  	return c.header_
  9673  }
  9674  
  9675  func (c *ProjectsLocationsGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
  9676  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9677  	var body io.Reader = nil
  9678  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.group)
  9679  	if err != nil {
  9680  		return nil, err
  9681  	}
  9682  	c.urlParams_.Set("alt", alt)
  9683  	c.urlParams_.Set("prettyPrint", "false")
  9684  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
  9685  	urls += "?" + c.urlParams_.Encode()
  9686  	req, err := http.NewRequest("PATCH", urls, body)
  9687  	if err != nil {
  9688  		return nil, err
  9689  	}
  9690  	req.Header = reqHeaders
  9691  	googleapi.Expand(req.URL, map[string]string{
  9692  		"name": c.name,
  9693  	})
  9694  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9695  }
  9696  
  9697  // Do executes the "migrationcenter.projects.locations.groups.patch" call.
  9698  // Any non-2xx status code is an error. Response headers are in either
  9699  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9700  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9701  // whether the returned error was because http.StatusNotModified was returned.
  9702  func (c *ProjectsLocationsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9703  	gensupport.SetOptions(c.urlParams_, opts...)
  9704  	res, err := c.doRequest("json")
  9705  	if res != nil && res.StatusCode == http.StatusNotModified {
  9706  		if res.Body != nil {
  9707  			res.Body.Close()
  9708  		}
  9709  		return nil, gensupport.WrapError(&googleapi.Error{
  9710  			Code:   res.StatusCode,
  9711  			Header: res.Header,
  9712  		})
  9713  	}
  9714  	if err != nil {
  9715  		return nil, err
  9716  	}
  9717  	defer googleapi.CloseBody(res)
  9718  	if err := googleapi.CheckResponse(res); err != nil {
  9719  		return nil, gensupport.WrapError(err)
  9720  	}
  9721  	ret := &Operation{
  9722  		ServerResponse: googleapi.ServerResponse{
  9723  			Header:         res.Header,
  9724  			HTTPStatusCode: res.StatusCode,
  9725  		},
  9726  	}
  9727  	target := &ret
  9728  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9729  		return nil, err
  9730  	}
  9731  	return ret, nil
  9732  }
  9733  
  9734  type ProjectsLocationsGroupsRemoveAssetsCall struct {
  9735  	s                            *Service
  9736  	group                        string
  9737  	removeassetsfromgrouprequest *RemoveAssetsFromGroupRequest
  9738  	urlParams_                   gensupport.URLParams
  9739  	ctx_                         context.Context
  9740  	header_                      http.Header
  9741  }
  9742  
  9743  // RemoveAssets: Removes assets from a group.
  9744  //
  9745  // - group: Group reference.
  9746  func (r *ProjectsLocationsGroupsService) RemoveAssets(group string, removeassetsfromgrouprequest *RemoveAssetsFromGroupRequest) *ProjectsLocationsGroupsRemoveAssetsCall {
  9747  	c := &ProjectsLocationsGroupsRemoveAssetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9748  	c.group = group
  9749  	c.removeassetsfromgrouprequest = removeassetsfromgrouprequest
  9750  	return c
  9751  }
  9752  
  9753  // Fields allows partial responses to be retrieved. See
  9754  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9755  // details.
  9756  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsRemoveAssetsCall {
  9757  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9758  	return c
  9759  }
  9760  
  9761  // Context sets the context to be used in this call's Do method.
  9762  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Context(ctx context.Context) *ProjectsLocationsGroupsRemoveAssetsCall {
  9763  	c.ctx_ = ctx
  9764  	return c
  9765  }
  9766  
  9767  // Header returns a http.Header that can be modified by the caller to add
  9768  // headers to the request.
  9769  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Header() http.Header {
  9770  	if c.header_ == nil {
  9771  		c.header_ = make(http.Header)
  9772  	}
  9773  	return c.header_
  9774  }
  9775  
  9776  func (c *ProjectsLocationsGroupsRemoveAssetsCall) doRequest(alt string) (*http.Response, error) {
  9777  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9778  	var body io.Reader = nil
  9779  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeassetsfromgrouprequest)
  9780  	if err != nil {
  9781  		return nil, err
  9782  	}
  9783  	c.urlParams_.Set("alt", alt)
  9784  	c.urlParams_.Set("prettyPrint", "false")
  9785  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+group}:removeAssets")
  9786  	urls += "?" + c.urlParams_.Encode()
  9787  	req, err := http.NewRequest("POST", urls, body)
  9788  	if err != nil {
  9789  		return nil, err
  9790  	}
  9791  	req.Header = reqHeaders
  9792  	googleapi.Expand(req.URL, map[string]string{
  9793  		"group": c.group,
  9794  	})
  9795  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9796  }
  9797  
  9798  // Do executes the "migrationcenter.projects.locations.groups.removeAssets" call.
  9799  // Any non-2xx status code is an error. Response headers are in either
  9800  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9801  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9802  // whether the returned error was because http.StatusNotModified was returned.
  9803  func (c *ProjectsLocationsGroupsRemoveAssetsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9804  	gensupport.SetOptions(c.urlParams_, opts...)
  9805  	res, err := c.doRequest("json")
  9806  	if res != nil && res.StatusCode == http.StatusNotModified {
  9807  		if res.Body != nil {
  9808  			res.Body.Close()
  9809  		}
  9810  		return nil, gensupport.WrapError(&googleapi.Error{
  9811  			Code:   res.StatusCode,
  9812  			Header: res.Header,
  9813  		})
  9814  	}
  9815  	if err != nil {
  9816  		return nil, err
  9817  	}
  9818  	defer googleapi.CloseBody(res)
  9819  	if err := googleapi.CheckResponse(res); err != nil {
  9820  		return nil, gensupport.WrapError(err)
  9821  	}
  9822  	ret := &Operation{
  9823  		ServerResponse: googleapi.ServerResponse{
  9824  			Header:         res.Header,
  9825  			HTTPStatusCode: res.StatusCode,
  9826  		},
  9827  	}
  9828  	target := &ret
  9829  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9830  		return nil, err
  9831  	}
  9832  	return ret, nil
  9833  }
  9834  
  9835  type ProjectsLocationsImportJobsCreateCall struct {
  9836  	s          *Service
  9837  	parent     string
  9838  	importjob  *ImportJob
  9839  	urlParams_ gensupport.URLParams
  9840  	ctx_       context.Context
  9841  	header_    http.Header
  9842  }
  9843  
  9844  // Create: Creates an import job.
  9845  //
  9846  // - parent: Value for parent.
  9847  func (r *ProjectsLocationsImportJobsService) Create(parent string, importjob *ImportJob) *ProjectsLocationsImportJobsCreateCall {
  9848  	c := &ProjectsLocationsImportJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9849  	c.parent = parent
  9850  	c.importjob = importjob
  9851  	return c
  9852  }
  9853  
  9854  // ImportJobId sets the optional parameter "importJobId": Required. ID of the
  9855  // import job.
  9856  func (c *ProjectsLocationsImportJobsCreateCall) ImportJobId(importJobId string) *ProjectsLocationsImportJobsCreateCall {
  9857  	c.urlParams_.Set("importJobId", importJobId)
  9858  	return c
  9859  }
  9860  
  9861  // RequestId sets the optional parameter "requestId": An optional request ID to
  9862  // identify requests. Specify a unique request ID so that if you must retry
  9863  // your request, the server will know to ignore the request if it has already
  9864  // been completed. The server will guarantee that for at least 60 minutes since
  9865  // the first request. For example, consider a situation where you make an
  9866  // initial request and the request times out. If you make the request again
  9867  // with the same request ID, the server can check if original operation with
  9868  // the same request ID was received, and if so, will ignore the second request.
  9869  // This prevents clients from accidentally creating duplicate commitments. The
  9870  // request ID must be a valid UUID with the exception that zero UUID is not
  9871  // supported (00000000-0000-0000-0000-000000000000).
  9872  func (c *ProjectsLocationsImportJobsCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsCreateCall {
  9873  	c.urlParams_.Set("requestId", requestId)
  9874  	return c
  9875  }
  9876  
  9877  // Fields allows partial responses to be retrieved. See
  9878  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9879  // details.
  9880  func (c *ProjectsLocationsImportJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsCreateCall {
  9881  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9882  	return c
  9883  }
  9884  
  9885  // Context sets the context to be used in this call's Do method.
  9886  func (c *ProjectsLocationsImportJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsCreateCall {
  9887  	c.ctx_ = ctx
  9888  	return c
  9889  }
  9890  
  9891  // Header returns a http.Header that can be modified by the caller to add
  9892  // headers to the request.
  9893  func (c *ProjectsLocationsImportJobsCreateCall) Header() http.Header {
  9894  	if c.header_ == nil {
  9895  		c.header_ = make(http.Header)
  9896  	}
  9897  	return c.header_
  9898  }
  9899  
  9900  func (c *ProjectsLocationsImportJobsCreateCall) doRequest(alt string) (*http.Response, error) {
  9901  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9902  	var body io.Reader = nil
  9903  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importjob)
  9904  	if err != nil {
  9905  		return nil, err
  9906  	}
  9907  	c.urlParams_.Set("alt", alt)
  9908  	c.urlParams_.Set("prettyPrint", "false")
  9909  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importJobs")
  9910  	urls += "?" + c.urlParams_.Encode()
  9911  	req, err := http.NewRequest("POST", urls, body)
  9912  	if err != nil {
  9913  		return nil, err
  9914  	}
  9915  	req.Header = reqHeaders
  9916  	googleapi.Expand(req.URL, map[string]string{
  9917  		"parent": c.parent,
  9918  	})
  9919  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9920  }
  9921  
  9922  // Do executes the "migrationcenter.projects.locations.importJobs.create" call.
  9923  // Any non-2xx status code is an error. Response headers are in either
  9924  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9925  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9926  // whether the returned error was because http.StatusNotModified was returned.
  9927  func (c *ProjectsLocationsImportJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9928  	gensupport.SetOptions(c.urlParams_, opts...)
  9929  	res, err := c.doRequest("json")
  9930  	if res != nil && res.StatusCode == http.StatusNotModified {
  9931  		if res.Body != nil {
  9932  			res.Body.Close()
  9933  		}
  9934  		return nil, gensupport.WrapError(&googleapi.Error{
  9935  			Code:   res.StatusCode,
  9936  			Header: res.Header,
  9937  		})
  9938  	}
  9939  	if err != nil {
  9940  		return nil, err
  9941  	}
  9942  	defer googleapi.CloseBody(res)
  9943  	if err := googleapi.CheckResponse(res); err != nil {
  9944  		return nil, gensupport.WrapError(err)
  9945  	}
  9946  	ret := &Operation{
  9947  		ServerResponse: googleapi.ServerResponse{
  9948  			Header:         res.Header,
  9949  			HTTPStatusCode: res.StatusCode,
  9950  		},
  9951  	}
  9952  	target := &ret
  9953  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9954  		return nil, err
  9955  	}
  9956  	return ret, nil
  9957  }
  9958  
  9959  type ProjectsLocationsImportJobsDeleteCall struct {
  9960  	s          *Service
  9961  	name       string
  9962  	urlParams_ gensupport.URLParams
  9963  	ctx_       context.Context
  9964  	header_    http.Header
  9965  }
  9966  
  9967  // Delete: Deletes an import job.
  9968  //
  9969  // - name: Name of the resource.
  9970  func (r *ProjectsLocationsImportJobsService) Delete(name string) *ProjectsLocationsImportJobsDeleteCall {
  9971  	c := &ProjectsLocationsImportJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9972  	c.name = name
  9973  	return c
  9974  }
  9975  
  9976  // Force sets the optional parameter "force": If set to `true`, any
  9977  // `ImportDataFiles` of this job will also be deleted If set to `false`, the
  9978  // request only works if the job has no data files.
  9979  func (c *ProjectsLocationsImportJobsDeleteCall) Force(force bool) *ProjectsLocationsImportJobsDeleteCall {
  9980  	c.urlParams_.Set("force", fmt.Sprint(force))
  9981  	return c
  9982  }
  9983  
  9984  // RequestId sets the optional parameter "requestId": An optional request ID to
  9985  // identify requests. Specify a unique request ID so that if you must retry
  9986  // your request, the server will know to ignore the request if it has already
  9987  // been completed. The server will guarantee that for at least 60 minutes after
  9988  // the first request. For example, consider a situation where you make an
  9989  // initial request and the request times out. If you make the request again
  9990  // with the same request ID, the server can check if original operation with
  9991  // the same request ID was received, and if so, will ignore the second request.
  9992  // This prevents clients from accidentally creating duplicate commitments. The
  9993  // request ID must be a valid UUID with the exception that zero UUID is not
  9994  // supported (00000000-0000-0000-0000-000000000000).
  9995  func (c *ProjectsLocationsImportJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsDeleteCall {
  9996  	c.urlParams_.Set("requestId", requestId)
  9997  	return c
  9998  }
  9999  
 10000  // Fields allows partial responses to be retrieved. See
 10001  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10002  // details.
 10003  func (c *ProjectsLocationsImportJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsDeleteCall {
 10004  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10005  	return c
 10006  }
 10007  
 10008  // Context sets the context to be used in this call's Do method.
 10009  func (c *ProjectsLocationsImportJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsDeleteCall {
 10010  	c.ctx_ = ctx
 10011  	return c
 10012  }
 10013  
 10014  // Header returns a http.Header that can be modified by the caller to add
 10015  // headers to the request.
 10016  func (c *ProjectsLocationsImportJobsDeleteCall) Header() http.Header {
 10017  	if c.header_ == nil {
 10018  		c.header_ = make(http.Header)
 10019  	}
 10020  	return c.header_
 10021  }
 10022  
 10023  func (c *ProjectsLocationsImportJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10024  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10025  	var body io.Reader = nil
 10026  	c.urlParams_.Set("alt", alt)
 10027  	c.urlParams_.Set("prettyPrint", "false")
 10028  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 10029  	urls += "?" + c.urlParams_.Encode()
 10030  	req, err := http.NewRequest("DELETE", urls, body)
 10031  	if err != nil {
 10032  		return nil, err
 10033  	}
 10034  	req.Header = reqHeaders
 10035  	googleapi.Expand(req.URL, map[string]string{
 10036  		"name": c.name,
 10037  	})
 10038  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10039  }
 10040  
 10041  // Do executes the "migrationcenter.projects.locations.importJobs.delete" call.
 10042  // Any non-2xx status code is an error. Response headers are in either
 10043  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10044  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10045  // whether the returned error was because http.StatusNotModified was returned.
 10046  func (c *ProjectsLocationsImportJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10047  	gensupport.SetOptions(c.urlParams_, opts...)
 10048  	res, err := c.doRequest("json")
 10049  	if res != nil && res.StatusCode == http.StatusNotModified {
 10050  		if res.Body != nil {
 10051  			res.Body.Close()
 10052  		}
 10053  		return nil, gensupport.WrapError(&googleapi.Error{
 10054  			Code:   res.StatusCode,
 10055  			Header: res.Header,
 10056  		})
 10057  	}
 10058  	if err != nil {
 10059  		return nil, err
 10060  	}
 10061  	defer googleapi.CloseBody(res)
 10062  	if err := googleapi.CheckResponse(res); err != nil {
 10063  		return nil, gensupport.WrapError(err)
 10064  	}
 10065  	ret := &Operation{
 10066  		ServerResponse: googleapi.ServerResponse{
 10067  			Header:         res.Header,
 10068  			HTTPStatusCode: res.StatusCode,
 10069  		},
 10070  	}
 10071  	target := &ret
 10072  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10073  		return nil, err
 10074  	}
 10075  	return ret, nil
 10076  }
 10077  
 10078  type ProjectsLocationsImportJobsGetCall struct {
 10079  	s            *Service
 10080  	name         string
 10081  	urlParams_   gensupport.URLParams
 10082  	ifNoneMatch_ string
 10083  	ctx_         context.Context
 10084  	header_      http.Header
 10085  }
 10086  
 10087  // Get: Gets the details of an import job.
 10088  //
 10089  // - name: Name of the resource.
 10090  func (r *ProjectsLocationsImportJobsService) Get(name string) *ProjectsLocationsImportJobsGetCall {
 10091  	c := &ProjectsLocationsImportJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10092  	c.name = name
 10093  	return c
 10094  }
 10095  
 10096  // View sets the optional parameter "view": The level of details of the import
 10097  // job. Default value is FULL.
 10098  //
 10099  // Possible values:
 10100  //
 10101  //	"IMPORT_JOB_VIEW_UNSPECIFIED" - The import job view is not specified. The
 10102  //
 10103  // API displays the basic view by default.
 10104  //
 10105  //	"IMPORT_JOB_VIEW_BASIC" - The import job view includes basic metadata of
 10106  //
 10107  // an import job. This view does not include payload information.
 10108  //
 10109  //	"IMPORT_JOB_VIEW_FULL" - The import job view includes all metadata of an
 10110  //
 10111  // import job.
 10112  func (c *ProjectsLocationsImportJobsGetCall) View(view string) *ProjectsLocationsImportJobsGetCall {
 10113  	c.urlParams_.Set("view", view)
 10114  	return c
 10115  }
 10116  
 10117  // Fields allows partial responses to be retrieved. See
 10118  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10119  // details.
 10120  func (c *ProjectsLocationsImportJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsGetCall {
 10121  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10122  	return c
 10123  }
 10124  
 10125  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10126  // object's ETag matches the given value. This is useful for getting updates
 10127  // only after the object has changed since the last request.
 10128  func (c *ProjectsLocationsImportJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsGetCall {
 10129  	c.ifNoneMatch_ = entityTag
 10130  	return c
 10131  }
 10132  
 10133  // Context sets the context to be used in this call's Do method.
 10134  func (c *ProjectsLocationsImportJobsGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsGetCall {
 10135  	c.ctx_ = ctx
 10136  	return c
 10137  }
 10138  
 10139  // Header returns a http.Header that can be modified by the caller to add
 10140  // headers to the request.
 10141  func (c *ProjectsLocationsImportJobsGetCall) Header() http.Header {
 10142  	if c.header_ == nil {
 10143  		c.header_ = make(http.Header)
 10144  	}
 10145  	return c.header_
 10146  }
 10147  
 10148  func (c *ProjectsLocationsImportJobsGetCall) doRequest(alt string) (*http.Response, error) {
 10149  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10150  	if c.ifNoneMatch_ != "" {
 10151  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10152  	}
 10153  	var body io.Reader = nil
 10154  	c.urlParams_.Set("alt", alt)
 10155  	c.urlParams_.Set("prettyPrint", "false")
 10156  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 10157  	urls += "?" + c.urlParams_.Encode()
 10158  	req, err := http.NewRequest("GET", urls, body)
 10159  	if err != nil {
 10160  		return nil, err
 10161  	}
 10162  	req.Header = reqHeaders
 10163  	googleapi.Expand(req.URL, map[string]string{
 10164  		"name": c.name,
 10165  	})
 10166  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10167  }
 10168  
 10169  // Do executes the "migrationcenter.projects.locations.importJobs.get" call.
 10170  // Any non-2xx status code is an error. Response headers are in either
 10171  // *ImportJob.ServerResponse.Header or (if a response was returned at all) in
 10172  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10173  // whether the returned error was because http.StatusNotModified was returned.
 10174  func (c *ProjectsLocationsImportJobsGetCall) Do(opts ...googleapi.CallOption) (*ImportJob, error) {
 10175  	gensupport.SetOptions(c.urlParams_, opts...)
 10176  	res, err := c.doRequest("json")
 10177  	if res != nil && res.StatusCode == http.StatusNotModified {
 10178  		if res.Body != nil {
 10179  			res.Body.Close()
 10180  		}
 10181  		return nil, gensupport.WrapError(&googleapi.Error{
 10182  			Code:   res.StatusCode,
 10183  			Header: res.Header,
 10184  		})
 10185  	}
 10186  	if err != nil {
 10187  		return nil, err
 10188  	}
 10189  	defer googleapi.CloseBody(res)
 10190  	if err := googleapi.CheckResponse(res); err != nil {
 10191  		return nil, gensupport.WrapError(err)
 10192  	}
 10193  	ret := &ImportJob{
 10194  		ServerResponse: googleapi.ServerResponse{
 10195  			Header:         res.Header,
 10196  			HTTPStatusCode: res.StatusCode,
 10197  		},
 10198  	}
 10199  	target := &ret
 10200  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10201  		return nil, err
 10202  	}
 10203  	return ret, nil
 10204  }
 10205  
 10206  type ProjectsLocationsImportJobsListCall struct {
 10207  	s            *Service
 10208  	parent       string
 10209  	urlParams_   gensupport.URLParams
 10210  	ifNoneMatch_ string
 10211  	ctx_         context.Context
 10212  	header_      http.Header
 10213  }
 10214  
 10215  // List: Lists all import jobs.
 10216  //
 10217  // - parent: Parent value for `ListImportJobsRequest`.
 10218  func (r *ProjectsLocationsImportJobsService) List(parent string) *ProjectsLocationsImportJobsListCall {
 10219  	c := &ProjectsLocationsImportJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10220  	c.parent = parent
 10221  	return c
 10222  }
 10223  
 10224  // Filter sets the optional parameter "filter": Filtering results.
 10225  func (c *ProjectsLocationsImportJobsListCall) Filter(filter string) *ProjectsLocationsImportJobsListCall {
 10226  	c.urlParams_.Set("filter", filter)
 10227  	return c
 10228  }
 10229  
 10230  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 10231  // https://google.aip.dev/132#ordering for more details.
 10232  func (c *ProjectsLocationsImportJobsListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsListCall {
 10233  	c.urlParams_.Set("orderBy", orderBy)
 10234  	return c
 10235  }
 10236  
 10237  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 10238  // may return fewer items than requested. If unspecified, server will pick an
 10239  // appropriate default.
 10240  func (c *ProjectsLocationsImportJobsListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsListCall {
 10241  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10242  	return c
 10243  }
 10244  
 10245  // PageToken sets the optional parameter "pageToken": A token identifying a
 10246  // page of results the server should return.
 10247  func (c *ProjectsLocationsImportJobsListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsListCall {
 10248  	c.urlParams_.Set("pageToken", pageToken)
 10249  	return c
 10250  }
 10251  
 10252  // View sets the optional parameter "view": The level of details of each import
 10253  // job. Default value is BASIC.
 10254  //
 10255  // Possible values:
 10256  //
 10257  //	"IMPORT_JOB_VIEW_UNSPECIFIED" - The import job view is not specified. The
 10258  //
 10259  // API displays the basic view by default.
 10260  //
 10261  //	"IMPORT_JOB_VIEW_BASIC" - The import job view includes basic metadata of
 10262  //
 10263  // an import job. This view does not include payload information.
 10264  //
 10265  //	"IMPORT_JOB_VIEW_FULL" - The import job view includes all metadata of an
 10266  //
 10267  // import job.
 10268  func (c *ProjectsLocationsImportJobsListCall) View(view string) *ProjectsLocationsImportJobsListCall {
 10269  	c.urlParams_.Set("view", view)
 10270  	return c
 10271  }
 10272  
 10273  // Fields allows partial responses to be retrieved. See
 10274  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10275  // details.
 10276  func (c *ProjectsLocationsImportJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsListCall {
 10277  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10278  	return c
 10279  }
 10280  
 10281  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10282  // object's ETag matches the given value. This is useful for getting updates
 10283  // only after the object has changed since the last request.
 10284  func (c *ProjectsLocationsImportJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsListCall {
 10285  	c.ifNoneMatch_ = entityTag
 10286  	return c
 10287  }
 10288  
 10289  // Context sets the context to be used in this call's Do method.
 10290  func (c *ProjectsLocationsImportJobsListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsListCall {
 10291  	c.ctx_ = ctx
 10292  	return c
 10293  }
 10294  
 10295  // Header returns a http.Header that can be modified by the caller to add
 10296  // headers to the request.
 10297  func (c *ProjectsLocationsImportJobsListCall) Header() http.Header {
 10298  	if c.header_ == nil {
 10299  		c.header_ = make(http.Header)
 10300  	}
 10301  	return c.header_
 10302  }
 10303  
 10304  func (c *ProjectsLocationsImportJobsListCall) doRequest(alt string) (*http.Response, error) {
 10305  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10306  	if c.ifNoneMatch_ != "" {
 10307  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10308  	}
 10309  	var body io.Reader = nil
 10310  	c.urlParams_.Set("alt", alt)
 10311  	c.urlParams_.Set("prettyPrint", "false")
 10312  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importJobs")
 10313  	urls += "?" + c.urlParams_.Encode()
 10314  	req, err := http.NewRequest("GET", urls, body)
 10315  	if err != nil {
 10316  		return nil, err
 10317  	}
 10318  	req.Header = reqHeaders
 10319  	googleapi.Expand(req.URL, map[string]string{
 10320  		"parent": c.parent,
 10321  	})
 10322  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10323  }
 10324  
 10325  // Do executes the "migrationcenter.projects.locations.importJobs.list" call.
 10326  // Any non-2xx status code is an error. Response headers are in either
 10327  // *ListImportJobsResponse.ServerResponse.Header or (if a response was returned
 10328  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10329  // check whether the returned error was because http.StatusNotModified was
 10330  // returned.
 10331  func (c *ProjectsLocationsImportJobsListCall) Do(opts ...googleapi.CallOption) (*ListImportJobsResponse, error) {
 10332  	gensupport.SetOptions(c.urlParams_, opts...)
 10333  	res, err := c.doRequest("json")
 10334  	if res != nil && res.StatusCode == http.StatusNotModified {
 10335  		if res.Body != nil {
 10336  			res.Body.Close()
 10337  		}
 10338  		return nil, gensupport.WrapError(&googleapi.Error{
 10339  			Code:   res.StatusCode,
 10340  			Header: res.Header,
 10341  		})
 10342  	}
 10343  	if err != nil {
 10344  		return nil, err
 10345  	}
 10346  	defer googleapi.CloseBody(res)
 10347  	if err := googleapi.CheckResponse(res); err != nil {
 10348  		return nil, gensupport.WrapError(err)
 10349  	}
 10350  	ret := &ListImportJobsResponse{
 10351  		ServerResponse: googleapi.ServerResponse{
 10352  			Header:         res.Header,
 10353  			HTTPStatusCode: res.StatusCode,
 10354  		},
 10355  	}
 10356  	target := &ret
 10357  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10358  		return nil, err
 10359  	}
 10360  	return ret, nil
 10361  }
 10362  
 10363  // Pages invokes f for each page of results.
 10364  // A non-nil error returned from f will halt the iteration.
 10365  // The provided context supersedes any context provided to the Context method.
 10366  func (c *ProjectsLocationsImportJobsListCall) Pages(ctx context.Context, f func(*ListImportJobsResponse) error) error {
 10367  	c.ctx_ = ctx
 10368  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10369  	for {
 10370  		x, err := c.Do()
 10371  		if err != nil {
 10372  			return err
 10373  		}
 10374  		if err := f(x); err != nil {
 10375  			return err
 10376  		}
 10377  		if x.NextPageToken == "" {
 10378  			return nil
 10379  		}
 10380  		c.PageToken(x.NextPageToken)
 10381  	}
 10382  }
 10383  
 10384  type ProjectsLocationsImportJobsPatchCall struct {
 10385  	s          *Service
 10386  	name       string
 10387  	importjob  *ImportJob
 10388  	urlParams_ gensupport.URLParams
 10389  	ctx_       context.Context
 10390  	header_    http.Header
 10391  }
 10392  
 10393  // Patch: Updates an import job.
 10394  //
 10395  // - name: Output only. The full name of the import job.
 10396  func (r *ProjectsLocationsImportJobsService) Patch(name string, importjob *ImportJob) *ProjectsLocationsImportJobsPatchCall {
 10397  	c := &ProjectsLocationsImportJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10398  	c.name = name
 10399  	c.importjob = importjob
 10400  	return c
 10401  }
 10402  
 10403  // RequestId sets the optional parameter "requestId": An optional request ID to
 10404  // identify requests. Specify a unique request ID so that if you must retry
 10405  // your request, the server will know to ignore the request if it has already
 10406  // been completed. The server will guarantee that for at least 60 minutes since
 10407  // the first request. For example, consider a situation where you make an
 10408  // initial request and the request times out. If you make the request again
 10409  // with the same request ID, the server can check if original operation with
 10410  // the same request ID was received, and if so, will ignore the second request.
 10411  // This prevents clients from accidentally creating duplicate commitments. The
 10412  // request ID must be a valid UUID with the exception that zero UUID is not
 10413  // supported (00000000-0000-0000-0000-000000000000).
 10414  func (c *ProjectsLocationsImportJobsPatchCall) RequestId(requestId string) *ProjectsLocationsImportJobsPatchCall {
 10415  	c.urlParams_.Set("requestId", requestId)
 10416  	return c
 10417  }
 10418  
 10419  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 10420  // used to specify the fields to be overwritten in the `Asset` resource by the
 10421  // update. The values specified in the `update_mask` field are relative to the
 10422  // resource, not the full request. A field will be overwritten if it is in the
 10423  // mask. A single * value in the mask lets you to overwrite all fields.
 10424  func (c *ProjectsLocationsImportJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsImportJobsPatchCall {
 10425  	c.urlParams_.Set("updateMask", updateMask)
 10426  	return c
 10427  }
 10428  
 10429  // Fields allows partial responses to be retrieved. See
 10430  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10431  // details.
 10432  func (c *ProjectsLocationsImportJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsPatchCall {
 10433  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10434  	return c
 10435  }
 10436  
 10437  // Context sets the context to be used in this call's Do method.
 10438  func (c *ProjectsLocationsImportJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsImportJobsPatchCall {
 10439  	c.ctx_ = ctx
 10440  	return c
 10441  }
 10442  
 10443  // Header returns a http.Header that can be modified by the caller to add
 10444  // headers to the request.
 10445  func (c *ProjectsLocationsImportJobsPatchCall) Header() http.Header {
 10446  	if c.header_ == nil {
 10447  		c.header_ = make(http.Header)
 10448  	}
 10449  	return c.header_
 10450  }
 10451  
 10452  func (c *ProjectsLocationsImportJobsPatchCall) doRequest(alt string) (*http.Response, error) {
 10453  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10454  	var body io.Reader = nil
 10455  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importjob)
 10456  	if err != nil {
 10457  		return nil, err
 10458  	}
 10459  	c.urlParams_.Set("alt", alt)
 10460  	c.urlParams_.Set("prettyPrint", "false")
 10461  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 10462  	urls += "?" + c.urlParams_.Encode()
 10463  	req, err := http.NewRequest("PATCH", urls, body)
 10464  	if err != nil {
 10465  		return nil, err
 10466  	}
 10467  	req.Header = reqHeaders
 10468  	googleapi.Expand(req.URL, map[string]string{
 10469  		"name": c.name,
 10470  	})
 10471  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10472  }
 10473  
 10474  // Do executes the "migrationcenter.projects.locations.importJobs.patch" call.
 10475  // Any non-2xx status code is an error. Response headers are in either
 10476  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10477  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10478  // whether the returned error was because http.StatusNotModified was returned.
 10479  func (c *ProjectsLocationsImportJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10480  	gensupport.SetOptions(c.urlParams_, opts...)
 10481  	res, err := c.doRequest("json")
 10482  	if res != nil && res.StatusCode == http.StatusNotModified {
 10483  		if res.Body != nil {
 10484  			res.Body.Close()
 10485  		}
 10486  		return nil, gensupport.WrapError(&googleapi.Error{
 10487  			Code:   res.StatusCode,
 10488  			Header: res.Header,
 10489  		})
 10490  	}
 10491  	if err != nil {
 10492  		return nil, err
 10493  	}
 10494  	defer googleapi.CloseBody(res)
 10495  	if err := googleapi.CheckResponse(res); err != nil {
 10496  		return nil, gensupport.WrapError(err)
 10497  	}
 10498  	ret := &Operation{
 10499  		ServerResponse: googleapi.ServerResponse{
 10500  			Header:         res.Header,
 10501  			HTTPStatusCode: res.StatusCode,
 10502  		},
 10503  	}
 10504  	target := &ret
 10505  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10506  		return nil, err
 10507  	}
 10508  	return ret, nil
 10509  }
 10510  
 10511  type ProjectsLocationsImportJobsRunCall struct {
 10512  	s                   *Service
 10513  	name                string
 10514  	runimportjobrequest *RunImportJobRequest
 10515  	urlParams_          gensupport.URLParams
 10516  	ctx_                context.Context
 10517  	header_             http.Header
 10518  }
 10519  
 10520  // Run: Runs an import job.
 10521  //
 10522  // - name: The name of the import job to run.
 10523  func (r *ProjectsLocationsImportJobsService) Run(name string, runimportjobrequest *RunImportJobRequest) *ProjectsLocationsImportJobsRunCall {
 10524  	c := &ProjectsLocationsImportJobsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10525  	c.name = name
 10526  	c.runimportjobrequest = runimportjobrequest
 10527  	return c
 10528  }
 10529  
 10530  // Fields allows partial responses to be retrieved. See
 10531  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10532  // details.
 10533  func (c *ProjectsLocationsImportJobsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsRunCall {
 10534  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10535  	return c
 10536  }
 10537  
 10538  // Context sets the context to be used in this call's Do method.
 10539  func (c *ProjectsLocationsImportJobsRunCall) Context(ctx context.Context) *ProjectsLocationsImportJobsRunCall {
 10540  	c.ctx_ = ctx
 10541  	return c
 10542  }
 10543  
 10544  // Header returns a http.Header that can be modified by the caller to add
 10545  // headers to the request.
 10546  func (c *ProjectsLocationsImportJobsRunCall) Header() http.Header {
 10547  	if c.header_ == nil {
 10548  		c.header_ = make(http.Header)
 10549  	}
 10550  	return c.header_
 10551  }
 10552  
 10553  func (c *ProjectsLocationsImportJobsRunCall) doRequest(alt string) (*http.Response, error) {
 10554  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10555  	var body io.Reader = nil
 10556  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.runimportjobrequest)
 10557  	if err != nil {
 10558  		return nil, err
 10559  	}
 10560  	c.urlParams_.Set("alt", alt)
 10561  	c.urlParams_.Set("prettyPrint", "false")
 10562  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:run")
 10563  	urls += "?" + c.urlParams_.Encode()
 10564  	req, err := http.NewRequest("POST", urls, body)
 10565  	if err != nil {
 10566  		return nil, err
 10567  	}
 10568  	req.Header = reqHeaders
 10569  	googleapi.Expand(req.URL, map[string]string{
 10570  		"name": c.name,
 10571  	})
 10572  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10573  }
 10574  
 10575  // Do executes the "migrationcenter.projects.locations.importJobs.run" call.
 10576  // Any non-2xx status code is an error. Response headers are in either
 10577  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10578  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10579  // whether the returned error was because http.StatusNotModified was returned.
 10580  func (c *ProjectsLocationsImportJobsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10581  	gensupport.SetOptions(c.urlParams_, opts...)
 10582  	res, err := c.doRequest("json")
 10583  	if res != nil && res.StatusCode == http.StatusNotModified {
 10584  		if res.Body != nil {
 10585  			res.Body.Close()
 10586  		}
 10587  		return nil, gensupport.WrapError(&googleapi.Error{
 10588  			Code:   res.StatusCode,
 10589  			Header: res.Header,
 10590  		})
 10591  	}
 10592  	if err != nil {
 10593  		return nil, err
 10594  	}
 10595  	defer googleapi.CloseBody(res)
 10596  	if err := googleapi.CheckResponse(res); err != nil {
 10597  		return nil, gensupport.WrapError(err)
 10598  	}
 10599  	ret := &Operation{
 10600  		ServerResponse: googleapi.ServerResponse{
 10601  			Header:         res.Header,
 10602  			HTTPStatusCode: res.StatusCode,
 10603  		},
 10604  	}
 10605  	target := &ret
 10606  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10607  		return nil, err
 10608  	}
 10609  	return ret, nil
 10610  }
 10611  
 10612  type ProjectsLocationsImportJobsValidateCall struct {
 10613  	s                        *Service
 10614  	name                     string
 10615  	validateimportjobrequest *ValidateImportJobRequest
 10616  	urlParams_               gensupport.URLParams
 10617  	ctx_                     context.Context
 10618  	header_                  http.Header
 10619  }
 10620  
 10621  // Validate: Validates an import job.
 10622  //
 10623  // - name: The name of the import job to validate.
 10624  func (r *ProjectsLocationsImportJobsService) Validate(name string, validateimportjobrequest *ValidateImportJobRequest) *ProjectsLocationsImportJobsValidateCall {
 10625  	c := &ProjectsLocationsImportJobsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10626  	c.name = name
 10627  	c.validateimportjobrequest = validateimportjobrequest
 10628  	return c
 10629  }
 10630  
 10631  // Fields allows partial responses to be retrieved. See
 10632  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10633  // details.
 10634  func (c *ProjectsLocationsImportJobsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsValidateCall {
 10635  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10636  	return c
 10637  }
 10638  
 10639  // Context sets the context to be used in this call's Do method.
 10640  func (c *ProjectsLocationsImportJobsValidateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsValidateCall {
 10641  	c.ctx_ = ctx
 10642  	return c
 10643  }
 10644  
 10645  // Header returns a http.Header that can be modified by the caller to add
 10646  // headers to the request.
 10647  func (c *ProjectsLocationsImportJobsValidateCall) Header() http.Header {
 10648  	if c.header_ == nil {
 10649  		c.header_ = make(http.Header)
 10650  	}
 10651  	return c.header_
 10652  }
 10653  
 10654  func (c *ProjectsLocationsImportJobsValidateCall) doRequest(alt string) (*http.Response, error) {
 10655  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10656  	var body io.Reader = nil
 10657  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.validateimportjobrequest)
 10658  	if err != nil {
 10659  		return nil, err
 10660  	}
 10661  	c.urlParams_.Set("alt", alt)
 10662  	c.urlParams_.Set("prettyPrint", "false")
 10663  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:validate")
 10664  	urls += "?" + c.urlParams_.Encode()
 10665  	req, err := http.NewRequest("POST", urls, body)
 10666  	if err != nil {
 10667  		return nil, err
 10668  	}
 10669  	req.Header = reqHeaders
 10670  	googleapi.Expand(req.URL, map[string]string{
 10671  		"name": c.name,
 10672  	})
 10673  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10674  }
 10675  
 10676  // Do executes the "migrationcenter.projects.locations.importJobs.validate" call.
 10677  // Any non-2xx status code is an error. Response headers are in either
 10678  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10679  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10680  // whether the returned error was because http.StatusNotModified was returned.
 10681  func (c *ProjectsLocationsImportJobsValidateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10682  	gensupport.SetOptions(c.urlParams_, opts...)
 10683  	res, err := c.doRequest("json")
 10684  	if res != nil && res.StatusCode == http.StatusNotModified {
 10685  		if res.Body != nil {
 10686  			res.Body.Close()
 10687  		}
 10688  		return nil, gensupport.WrapError(&googleapi.Error{
 10689  			Code:   res.StatusCode,
 10690  			Header: res.Header,
 10691  		})
 10692  	}
 10693  	if err != nil {
 10694  		return nil, err
 10695  	}
 10696  	defer googleapi.CloseBody(res)
 10697  	if err := googleapi.CheckResponse(res); err != nil {
 10698  		return nil, gensupport.WrapError(err)
 10699  	}
 10700  	ret := &Operation{
 10701  		ServerResponse: googleapi.ServerResponse{
 10702  			Header:         res.Header,
 10703  			HTTPStatusCode: res.StatusCode,
 10704  		},
 10705  	}
 10706  	target := &ret
 10707  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10708  		return nil, err
 10709  	}
 10710  	return ret, nil
 10711  }
 10712  
 10713  type ProjectsLocationsImportJobsImportDataFilesCreateCall struct {
 10714  	s              *Service
 10715  	parent         string
 10716  	importdatafile *ImportDataFile
 10717  	urlParams_     gensupport.URLParams
 10718  	ctx_           context.Context
 10719  	header_        http.Header
 10720  }
 10721  
 10722  // Create: Creates an import data file.
 10723  //
 10724  // - parent: Name of the parent of the ImportDataFile.
 10725  func (r *ProjectsLocationsImportJobsImportDataFilesService) Create(parent string, importdatafile *ImportDataFile) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
 10726  	c := &ProjectsLocationsImportJobsImportDataFilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10727  	c.parent = parent
 10728  	c.importdatafile = importdatafile
 10729  	return c
 10730  }
 10731  
 10732  // ImportDataFileId sets the optional parameter "importDataFileId": Required.
 10733  // The ID of the new data file.
 10734  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) ImportDataFileId(importDataFileId string) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
 10735  	c.urlParams_.Set("importDataFileId", importDataFileId)
 10736  	return c
 10737  }
 10738  
 10739  // RequestId sets the optional parameter "requestId": An optional request ID to
 10740  // identify requests. Specify a unique request ID so that if you must retry
 10741  // your request, the server will know to ignore the request if it has already
 10742  // been completed. The server will guarantee that for at least 60 minutes since
 10743  // the first request. For example, consider a situation where you make an
 10744  // initial request and the request times out. If you make the request again
 10745  // with the same request ID, the server can check if original operation with
 10746  // the same request ID was received, and if so, will ignore the second request.
 10747  // This prevents clients from accidentally creating duplicate commitments. The
 10748  // request ID must be a valid UUID with the exception that zero UUID is not
 10749  // supported (00000000-0000-0000-0000-000000000000).
 10750  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
 10751  	c.urlParams_.Set("requestId", requestId)
 10752  	return c
 10753  }
 10754  
 10755  // Fields allows partial responses to be retrieved. See
 10756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10757  // details.
 10758  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
 10759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10760  	return c
 10761  }
 10762  
 10763  // Context sets the context to be used in this call's Do method.
 10764  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesCreateCall {
 10765  	c.ctx_ = ctx
 10766  	return c
 10767  }
 10768  
 10769  // Header returns a http.Header that can be modified by the caller to add
 10770  // headers to the request.
 10771  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Header() http.Header {
 10772  	if c.header_ == nil {
 10773  		c.header_ = make(http.Header)
 10774  	}
 10775  	return c.header_
 10776  }
 10777  
 10778  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) doRequest(alt string) (*http.Response, error) {
 10779  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10780  	var body io.Reader = nil
 10781  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdatafile)
 10782  	if err != nil {
 10783  		return nil, err
 10784  	}
 10785  	c.urlParams_.Set("alt", alt)
 10786  	c.urlParams_.Set("prettyPrint", "false")
 10787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importDataFiles")
 10788  	urls += "?" + c.urlParams_.Encode()
 10789  	req, err := http.NewRequest("POST", urls, body)
 10790  	if err != nil {
 10791  		return nil, err
 10792  	}
 10793  	req.Header = reqHeaders
 10794  	googleapi.Expand(req.URL, map[string]string{
 10795  		"parent": c.parent,
 10796  	})
 10797  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10798  }
 10799  
 10800  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.create" call.
 10801  // Any non-2xx status code is an error. Response headers are in either
 10802  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10803  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10804  // whether the returned error was because http.StatusNotModified was returned.
 10805  func (c *ProjectsLocationsImportJobsImportDataFilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10806  	gensupport.SetOptions(c.urlParams_, opts...)
 10807  	res, err := c.doRequest("json")
 10808  	if res != nil && res.StatusCode == http.StatusNotModified {
 10809  		if res.Body != nil {
 10810  			res.Body.Close()
 10811  		}
 10812  		return nil, gensupport.WrapError(&googleapi.Error{
 10813  			Code:   res.StatusCode,
 10814  			Header: res.Header,
 10815  		})
 10816  	}
 10817  	if err != nil {
 10818  		return nil, err
 10819  	}
 10820  	defer googleapi.CloseBody(res)
 10821  	if err := googleapi.CheckResponse(res); err != nil {
 10822  		return nil, gensupport.WrapError(err)
 10823  	}
 10824  	ret := &Operation{
 10825  		ServerResponse: googleapi.ServerResponse{
 10826  			Header:         res.Header,
 10827  			HTTPStatusCode: res.StatusCode,
 10828  		},
 10829  	}
 10830  	target := &ret
 10831  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10832  		return nil, err
 10833  	}
 10834  	return ret, nil
 10835  }
 10836  
 10837  type ProjectsLocationsImportJobsImportDataFilesDeleteCall struct {
 10838  	s          *Service
 10839  	name       string
 10840  	urlParams_ gensupport.URLParams
 10841  	ctx_       context.Context
 10842  	header_    http.Header
 10843  }
 10844  
 10845  // Delete: Delete an import data file.
 10846  //
 10847  // - name: Name of the ImportDataFile to delete.
 10848  func (r *ProjectsLocationsImportJobsImportDataFilesService) Delete(name string) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
 10849  	c := &ProjectsLocationsImportJobsImportDataFilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10850  	c.name = name
 10851  	return c
 10852  }
 10853  
 10854  // RequestId sets the optional parameter "requestId": An optional request ID to
 10855  // identify requests. Specify a unique request ID so that if you must retry
 10856  // your request, the server will know to ignore the request if it has already
 10857  // been completed. The server will guarantee that for at least 60 minutes after
 10858  // the first request. For example, consider a situation where you make an
 10859  // initial request and the request times out. If you make the request again
 10860  // with the same request ID, the server can check if original operation with
 10861  // the same request ID was received, and if so, will ignore the second request.
 10862  // This prevents clients from accidentally creating duplicate commitments. The
 10863  // request ID must be a valid UUID with the exception that zero UUID is not
 10864  // supported (00000000-0000-0000-0000-000000000000).
 10865  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
 10866  	c.urlParams_.Set("requestId", requestId)
 10867  	return c
 10868  }
 10869  
 10870  // Fields allows partial responses to be retrieved. See
 10871  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10872  // details.
 10873  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
 10874  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10875  	return c
 10876  }
 10877  
 10878  // Context sets the context to be used in this call's Do method.
 10879  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesDeleteCall {
 10880  	c.ctx_ = ctx
 10881  	return c
 10882  }
 10883  
 10884  // Header returns a http.Header that can be modified by the caller to add
 10885  // headers to the request.
 10886  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Header() http.Header {
 10887  	if c.header_ == nil {
 10888  		c.header_ = make(http.Header)
 10889  	}
 10890  	return c.header_
 10891  }
 10892  
 10893  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) doRequest(alt string) (*http.Response, error) {
 10894  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10895  	var body io.Reader = nil
 10896  	c.urlParams_.Set("alt", alt)
 10897  	c.urlParams_.Set("prettyPrint", "false")
 10898  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 10899  	urls += "?" + c.urlParams_.Encode()
 10900  	req, err := http.NewRequest("DELETE", urls, body)
 10901  	if err != nil {
 10902  		return nil, err
 10903  	}
 10904  	req.Header = reqHeaders
 10905  	googleapi.Expand(req.URL, map[string]string{
 10906  		"name": c.name,
 10907  	})
 10908  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10909  }
 10910  
 10911  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.delete" call.
 10912  // Any non-2xx status code is an error. Response headers are in either
 10913  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10914  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10915  // whether the returned error was because http.StatusNotModified was returned.
 10916  func (c *ProjectsLocationsImportJobsImportDataFilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10917  	gensupport.SetOptions(c.urlParams_, opts...)
 10918  	res, err := c.doRequest("json")
 10919  	if res != nil && res.StatusCode == http.StatusNotModified {
 10920  		if res.Body != nil {
 10921  			res.Body.Close()
 10922  		}
 10923  		return nil, gensupport.WrapError(&googleapi.Error{
 10924  			Code:   res.StatusCode,
 10925  			Header: res.Header,
 10926  		})
 10927  	}
 10928  	if err != nil {
 10929  		return nil, err
 10930  	}
 10931  	defer googleapi.CloseBody(res)
 10932  	if err := googleapi.CheckResponse(res); err != nil {
 10933  		return nil, gensupport.WrapError(err)
 10934  	}
 10935  	ret := &Operation{
 10936  		ServerResponse: googleapi.ServerResponse{
 10937  			Header:         res.Header,
 10938  			HTTPStatusCode: res.StatusCode,
 10939  		},
 10940  	}
 10941  	target := &ret
 10942  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10943  		return nil, err
 10944  	}
 10945  	return ret, nil
 10946  }
 10947  
 10948  type ProjectsLocationsImportJobsImportDataFilesGetCall struct {
 10949  	s            *Service
 10950  	name         string
 10951  	urlParams_   gensupport.URLParams
 10952  	ifNoneMatch_ string
 10953  	ctx_         context.Context
 10954  	header_      http.Header
 10955  }
 10956  
 10957  // Get: Gets an import data file.
 10958  //
 10959  // - name: Name of the ImportDataFile.
 10960  func (r *ProjectsLocationsImportJobsImportDataFilesService) Get(name string) *ProjectsLocationsImportJobsImportDataFilesGetCall {
 10961  	c := &ProjectsLocationsImportJobsImportDataFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10962  	c.name = name
 10963  	return c
 10964  }
 10965  
 10966  // Fields allows partial responses to be retrieved. See
 10967  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10968  // details.
 10969  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesGetCall {
 10970  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10971  	return c
 10972  }
 10973  
 10974  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10975  // object's ETag matches the given value. This is useful for getting updates
 10976  // only after the object has changed since the last request.
 10977  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsImportDataFilesGetCall {
 10978  	c.ifNoneMatch_ = entityTag
 10979  	return c
 10980  }
 10981  
 10982  // Context sets the context to be used in this call's Do method.
 10983  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesGetCall {
 10984  	c.ctx_ = ctx
 10985  	return c
 10986  }
 10987  
 10988  // Header returns a http.Header that can be modified by the caller to add
 10989  // headers to the request.
 10990  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Header() http.Header {
 10991  	if c.header_ == nil {
 10992  		c.header_ = make(http.Header)
 10993  	}
 10994  	return c.header_
 10995  }
 10996  
 10997  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) doRequest(alt string) (*http.Response, error) {
 10998  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10999  	if c.ifNoneMatch_ != "" {
 11000  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11001  	}
 11002  	var body io.Reader = nil
 11003  	c.urlParams_.Set("alt", alt)
 11004  	c.urlParams_.Set("prettyPrint", "false")
 11005  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 11006  	urls += "?" + c.urlParams_.Encode()
 11007  	req, err := http.NewRequest("GET", urls, body)
 11008  	if err != nil {
 11009  		return nil, err
 11010  	}
 11011  	req.Header = reqHeaders
 11012  	googleapi.Expand(req.URL, map[string]string{
 11013  		"name": c.name,
 11014  	})
 11015  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11016  }
 11017  
 11018  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.get" call.
 11019  // Any non-2xx status code is an error. Response headers are in either
 11020  // *ImportDataFile.ServerResponse.Header or (if a response was returned at all)
 11021  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11022  // whether the returned error was because http.StatusNotModified was returned.
 11023  func (c *ProjectsLocationsImportJobsImportDataFilesGetCall) Do(opts ...googleapi.CallOption) (*ImportDataFile, error) {
 11024  	gensupport.SetOptions(c.urlParams_, opts...)
 11025  	res, err := c.doRequest("json")
 11026  	if res != nil && res.StatusCode == http.StatusNotModified {
 11027  		if res.Body != nil {
 11028  			res.Body.Close()
 11029  		}
 11030  		return nil, gensupport.WrapError(&googleapi.Error{
 11031  			Code:   res.StatusCode,
 11032  			Header: res.Header,
 11033  		})
 11034  	}
 11035  	if err != nil {
 11036  		return nil, err
 11037  	}
 11038  	defer googleapi.CloseBody(res)
 11039  	if err := googleapi.CheckResponse(res); err != nil {
 11040  		return nil, gensupport.WrapError(err)
 11041  	}
 11042  	ret := &ImportDataFile{
 11043  		ServerResponse: googleapi.ServerResponse{
 11044  			Header:         res.Header,
 11045  			HTTPStatusCode: res.StatusCode,
 11046  		},
 11047  	}
 11048  	target := &ret
 11049  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11050  		return nil, err
 11051  	}
 11052  	return ret, nil
 11053  }
 11054  
 11055  type ProjectsLocationsImportJobsImportDataFilesListCall struct {
 11056  	s            *Service
 11057  	parent       string
 11058  	urlParams_   gensupport.URLParams
 11059  	ifNoneMatch_ string
 11060  	ctx_         context.Context
 11061  	header_      http.Header
 11062  }
 11063  
 11064  // List: List import data files.
 11065  //
 11066  // - parent: Name of the parent of the `ImportDataFiles` resource.
 11067  func (r *ProjectsLocationsImportJobsImportDataFilesService) List(parent string) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11068  	c := &ProjectsLocationsImportJobsImportDataFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11069  	c.parent = parent
 11070  	return c
 11071  }
 11072  
 11073  // Filter sets the optional parameter "filter": Filtering results.
 11074  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Filter(filter string) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11075  	c.urlParams_.Set("filter", filter)
 11076  	return c
 11077  }
 11078  
 11079  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 11080  // https://google.aip.dev/132#ordering for more details.
 11081  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11082  	c.urlParams_.Set("orderBy", orderBy)
 11083  	return c
 11084  }
 11085  
 11086  // PageSize sets the optional parameter "pageSize": The maximum number of data
 11087  // files to return. The service may return fewer than this value. If
 11088  // unspecified, at most 500 data files will be returned. The maximum value is
 11089  // 1000; values above 1000 will be coerced to 1000.
 11090  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11091  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11092  	return c
 11093  }
 11094  
 11095  // PageToken sets the optional parameter "pageToken": A page token, received
 11096  // from a previous `ListImportDataFiles` call. Provide this to retrieve the
 11097  // subsequent page. When paginating, all other parameters provided to
 11098  // `ListImportDataFiles` must match the call that provided the page token.
 11099  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11100  	c.urlParams_.Set("pageToken", pageToken)
 11101  	return c
 11102  }
 11103  
 11104  // Fields allows partial responses to be retrieved. See
 11105  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11106  // details.
 11107  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11108  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11109  	return c
 11110  }
 11111  
 11112  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11113  // object's ETag matches the given value. This is useful for getting updates
 11114  // only after the object has changed since the last request.
 11115  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11116  	c.ifNoneMatch_ = entityTag
 11117  	return c
 11118  }
 11119  
 11120  // Context sets the context to be used in this call's Do method.
 11121  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsImportDataFilesListCall {
 11122  	c.ctx_ = ctx
 11123  	return c
 11124  }
 11125  
 11126  // Header returns a http.Header that can be modified by the caller to add
 11127  // headers to the request.
 11128  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Header() http.Header {
 11129  	if c.header_ == nil {
 11130  		c.header_ = make(http.Header)
 11131  	}
 11132  	return c.header_
 11133  }
 11134  
 11135  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) doRequest(alt string) (*http.Response, error) {
 11136  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11137  	if c.ifNoneMatch_ != "" {
 11138  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11139  	}
 11140  	var body io.Reader = nil
 11141  	c.urlParams_.Set("alt", alt)
 11142  	c.urlParams_.Set("prettyPrint", "false")
 11143  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/importDataFiles")
 11144  	urls += "?" + c.urlParams_.Encode()
 11145  	req, err := http.NewRequest("GET", urls, body)
 11146  	if err != nil {
 11147  		return nil, err
 11148  	}
 11149  	req.Header = reqHeaders
 11150  	googleapi.Expand(req.URL, map[string]string{
 11151  		"parent": c.parent,
 11152  	})
 11153  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11154  }
 11155  
 11156  // Do executes the "migrationcenter.projects.locations.importJobs.importDataFiles.list" call.
 11157  // Any non-2xx status code is an error. Response headers are in either
 11158  // *ListImportDataFilesResponse.ServerResponse.Header or (if a response was
 11159  // returned at all) in error.(*googleapi.Error).Header. Use
 11160  // googleapi.IsNotModified to check whether the returned error was because
 11161  // http.StatusNotModified was returned.
 11162  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Do(opts ...googleapi.CallOption) (*ListImportDataFilesResponse, error) {
 11163  	gensupport.SetOptions(c.urlParams_, opts...)
 11164  	res, err := c.doRequest("json")
 11165  	if res != nil && res.StatusCode == http.StatusNotModified {
 11166  		if res.Body != nil {
 11167  			res.Body.Close()
 11168  		}
 11169  		return nil, gensupport.WrapError(&googleapi.Error{
 11170  			Code:   res.StatusCode,
 11171  			Header: res.Header,
 11172  		})
 11173  	}
 11174  	if err != nil {
 11175  		return nil, err
 11176  	}
 11177  	defer googleapi.CloseBody(res)
 11178  	if err := googleapi.CheckResponse(res); err != nil {
 11179  		return nil, gensupport.WrapError(err)
 11180  	}
 11181  	ret := &ListImportDataFilesResponse{
 11182  		ServerResponse: googleapi.ServerResponse{
 11183  			Header:         res.Header,
 11184  			HTTPStatusCode: res.StatusCode,
 11185  		},
 11186  	}
 11187  	target := &ret
 11188  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11189  		return nil, err
 11190  	}
 11191  	return ret, nil
 11192  }
 11193  
 11194  // Pages invokes f for each page of results.
 11195  // A non-nil error returned from f will halt the iteration.
 11196  // The provided context supersedes any context provided to the Context method.
 11197  func (c *ProjectsLocationsImportJobsImportDataFilesListCall) Pages(ctx context.Context, f func(*ListImportDataFilesResponse) error) error {
 11198  	c.ctx_ = ctx
 11199  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11200  	for {
 11201  		x, err := c.Do()
 11202  		if err != nil {
 11203  			return err
 11204  		}
 11205  		if err := f(x); err != nil {
 11206  			return err
 11207  		}
 11208  		if x.NextPageToken == "" {
 11209  			return nil
 11210  		}
 11211  		c.PageToken(x.NextPageToken)
 11212  	}
 11213  }
 11214  
 11215  type ProjectsLocationsOperationsCancelCall struct {
 11216  	s                      *Service
 11217  	name                   string
 11218  	canceloperationrequest *CancelOperationRequest
 11219  	urlParams_             gensupport.URLParams
 11220  	ctx_                   context.Context
 11221  	header_                http.Header
 11222  }
 11223  
 11224  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 11225  // server makes a best effort to cancel the operation, but success is not
 11226  // guaranteed. If the server doesn't support this method, it returns
 11227  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 11228  // other methods to check whether the cancellation succeeded or whether the
 11229  // operation completed despite cancellation. On successful cancellation, the
 11230  // operation is not deleted; instead, it becomes an operation with an
 11231  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 11232  // `Code.CANCELLED`.
 11233  //
 11234  // - name: The name of the operation resource to be cancelled.
 11235  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
 11236  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11237  	c.name = name
 11238  	c.canceloperationrequest = canceloperationrequest
 11239  	return c
 11240  }
 11241  
 11242  // Fields allows partial responses to be retrieved. See
 11243  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11244  // details.
 11245  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 11246  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11247  	return c
 11248  }
 11249  
 11250  // Context sets the context to be used in this call's Do method.
 11251  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 11252  	c.ctx_ = ctx
 11253  	return c
 11254  }
 11255  
 11256  // Header returns a http.Header that can be modified by the caller to add
 11257  // headers to the request.
 11258  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 11259  	if c.header_ == nil {
 11260  		c.header_ = make(http.Header)
 11261  	}
 11262  	return c.header_
 11263  }
 11264  
 11265  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 11266  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11267  	var body io.Reader = nil
 11268  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
 11269  	if err != nil {
 11270  		return nil, err
 11271  	}
 11272  	c.urlParams_.Set("alt", alt)
 11273  	c.urlParams_.Set("prettyPrint", "false")
 11274  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:cancel")
 11275  	urls += "?" + c.urlParams_.Encode()
 11276  	req, err := http.NewRequest("POST", urls, body)
 11277  	if err != nil {
 11278  		return nil, err
 11279  	}
 11280  	req.Header = reqHeaders
 11281  	googleapi.Expand(req.URL, map[string]string{
 11282  		"name": c.name,
 11283  	})
 11284  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11285  }
 11286  
 11287  // Do executes the "migrationcenter.projects.locations.operations.cancel" call.
 11288  // Any non-2xx status code is an error. Response headers are in either
 11289  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11290  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11291  // whether the returned error was because http.StatusNotModified was returned.
 11292  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11293  	gensupport.SetOptions(c.urlParams_, opts...)
 11294  	res, err := c.doRequest("json")
 11295  	if res != nil && res.StatusCode == http.StatusNotModified {
 11296  		if res.Body != nil {
 11297  			res.Body.Close()
 11298  		}
 11299  		return nil, gensupport.WrapError(&googleapi.Error{
 11300  			Code:   res.StatusCode,
 11301  			Header: res.Header,
 11302  		})
 11303  	}
 11304  	if err != nil {
 11305  		return nil, err
 11306  	}
 11307  	defer googleapi.CloseBody(res)
 11308  	if err := googleapi.CheckResponse(res); err != nil {
 11309  		return nil, gensupport.WrapError(err)
 11310  	}
 11311  	ret := &Empty{
 11312  		ServerResponse: googleapi.ServerResponse{
 11313  			Header:         res.Header,
 11314  			HTTPStatusCode: res.StatusCode,
 11315  		},
 11316  	}
 11317  	target := &ret
 11318  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11319  		return nil, err
 11320  	}
 11321  	return ret, nil
 11322  }
 11323  
 11324  type ProjectsLocationsOperationsDeleteCall struct {
 11325  	s          *Service
 11326  	name       string
 11327  	urlParams_ gensupport.URLParams
 11328  	ctx_       context.Context
 11329  	header_    http.Header
 11330  }
 11331  
 11332  // Delete: Deletes a long-running operation. This method indicates that the
 11333  // client is no longer interested in the operation result. It does not cancel
 11334  // the operation. If the server doesn't support this method, it returns
 11335  // `google.rpc.Code.UNIMPLEMENTED`.
 11336  //
 11337  // - name: The name of the operation resource to be deleted.
 11338  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
 11339  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11340  	c.name = name
 11341  	return c
 11342  }
 11343  
 11344  // Fields allows partial responses to be retrieved. See
 11345  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11346  // details.
 11347  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
 11348  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11349  	return c
 11350  }
 11351  
 11352  // Context sets the context to be used in this call's Do method.
 11353  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
 11354  	c.ctx_ = ctx
 11355  	return c
 11356  }
 11357  
 11358  // Header returns a http.Header that can be modified by the caller to add
 11359  // headers to the request.
 11360  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
 11361  	if c.header_ == nil {
 11362  		c.header_ = make(http.Header)
 11363  	}
 11364  	return c.header_
 11365  }
 11366  
 11367  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11368  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11369  	var body io.Reader = nil
 11370  	c.urlParams_.Set("alt", alt)
 11371  	c.urlParams_.Set("prettyPrint", "false")
 11372  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 11373  	urls += "?" + c.urlParams_.Encode()
 11374  	req, err := http.NewRequest("DELETE", urls, body)
 11375  	if err != nil {
 11376  		return nil, err
 11377  	}
 11378  	req.Header = reqHeaders
 11379  	googleapi.Expand(req.URL, map[string]string{
 11380  		"name": c.name,
 11381  	})
 11382  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11383  }
 11384  
 11385  // Do executes the "migrationcenter.projects.locations.operations.delete" call.
 11386  // Any non-2xx status code is an error. Response headers are in either
 11387  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11388  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11389  // whether the returned error was because http.StatusNotModified was returned.
 11390  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11391  	gensupport.SetOptions(c.urlParams_, opts...)
 11392  	res, err := c.doRequest("json")
 11393  	if res != nil && res.StatusCode == http.StatusNotModified {
 11394  		if res.Body != nil {
 11395  			res.Body.Close()
 11396  		}
 11397  		return nil, gensupport.WrapError(&googleapi.Error{
 11398  			Code:   res.StatusCode,
 11399  			Header: res.Header,
 11400  		})
 11401  	}
 11402  	if err != nil {
 11403  		return nil, err
 11404  	}
 11405  	defer googleapi.CloseBody(res)
 11406  	if err := googleapi.CheckResponse(res); err != nil {
 11407  		return nil, gensupport.WrapError(err)
 11408  	}
 11409  	ret := &Empty{
 11410  		ServerResponse: googleapi.ServerResponse{
 11411  			Header:         res.Header,
 11412  			HTTPStatusCode: res.StatusCode,
 11413  		},
 11414  	}
 11415  	target := &ret
 11416  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11417  		return nil, err
 11418  	}
 11419  	return ret, nil
 11420  }
 11421  
 11422  type ProjectsLocationsOperationsGetCall struct {
 11423  	s            *Service
 11424  	name         string
 11425  	urlParams_   gensupport.URLParams
 11426  	ifNoneMatch_ string
 11427  	ctx_         context.Context
 11428  	header_      http.Header
 11429  }
 11430  
 11431  // Get: Gets the latest state of a long-running operation. Clients can use this
 11432  // method to poll the operation result at intervals as recommended by the API
 11433  // service.
 11434  //
 11435  // - name: The name of the operation resource.
 11436  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 11437  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11438  	c.name = name
 11439  	return c
 11440  }
 11441  
 11442  // Fields allows partial responses to be retrieved. See
 11443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11444  // details.
 11445  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 11446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11447  	return c
 11448  }
 11449  
 11450  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11451  // object's ETag matches the given value. This is useful for getting updates
 11452  // only after the object has changed since the last request.
 11453  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 11454  	c.ifNoneMatch_ = entityTag
 11455  	return c
 11456  }
 11457  
 11458  // Context sets the context to be used in this call's Do method.
 11459  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 11460  	c.ctx_ = ctx
 11461  	return c
 11462  }
 11463  
 11464  // Header returns a http.Header that can be modified by the caller to add
 11465  // headers to the request.
 11466  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 11467  	if c.header_ == nil {
 11468  		c.header_ = make(http.Header)
 11469  	}
 11470  	return c.header_
 11471  }
 11472  
 11473  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 11474  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11475  	if c.ifNoneMatch_ != "" {
 11476  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11477  	}
 11478  	var body io.Reader = nil
 11479  	c.urlParams_.Set("alt", alt)
 11480  	c.urlParams_.Set("prettyPrint", "false")
 11481  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 11482  	urls += "?" + c.urlParams_.Encode()
 11483  	req, err := http.NewRequest("GET", urls, body)
 11484  	if err != nil {
 11485  		return nil, err
 11486  	}
 11487  	req.Header = reqHeaders
 11488  	googleapi.Expand(req.URL, map[string]string{
 11489  		"name": c.name,
 11490  	})
 11491  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11492  }
 11493  
 11494  // Do executes the "migrationcenter.projects.locations.operations.get" call.
 11495  // Any non-2xx status code is an error. Response headers are in either
 11496  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11497  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11498  // whether the returned error was because http.StatusNotModified was returned.
 11499  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11500  	gensupport.SetOptions(c.urlParams_, opts...)
 11501  	res, err := c.doRequest("json")
 11502  	if res != nil && res.StatusCode == http.StatusNotModified {
 11503  		if res.Body != nil {
 11504  			res.Body.Close()
 11505  		}
 11506  		return nil, gensupport.WrapError(&googleapi.Error{
 11507  			Code:   res.StatusCode,
 11508  			Header: res.Header,
 11509  		})
 11510  	}
 11511  	if err != nil {
 11512  		return nil, err
 11513  	}
 11514  	defer googleapi.CloseBody(res)
 11515  	if err := googleapi.CheckResponse(res); err != nil {
 11516  		return nil, gensupport.WrapError(err)
 11517  	}
 11518  	ret := &Operation{
 11519  		ServerResponse: googleapi.ServerResponse{
 11520  			Header:         res.Header,
 11521  			HTTPStatusCode: res.StatusCode,
 11522  		},
 11523  	}
 11524  	target := &ret
 11525  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11526  		return nil, err
 11527  	}
 11528  	return ret, nil
 11529  }
 11530  
 11531  type ProjectsLocationsOperationsListCall struct {
 11532  	s            *Service
 11533  	name         string
 11534  	urlParams_   gensupport.URLParams
 11535  	ifNoneMatch_ string
 11536  	ctx_         context.Context
 11537  	header_      http.Header
 11538  }
 11539  
 11540  // List: Lists operations that match the specified filter in the request. If
 11541  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 11542  //
 11543  // - name: The name of the operation's parent resource.
 11544  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 11545  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11546  	c.name = name
 11547  	return c
 11548  }
 11549  
 11550  // Filter sets the optional parameter "filter": The standard list filter.
 11551  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 11552  	c.urlParams_.Set("filter", filter)
 11553  	return c
 11554  }
 11555  
 11556  // PageSize sets the optional parameter "pageSize": The standard list page
 11557  // size.
 11558  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 11559  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11560  	return c
 11561  }
 11562  
 11563  // PageToken sets the optional parameter "pageToken": The standard list page
 11564  // token.
 11565  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 11566  	c.urlParams_.Set("pageToken", pageToken)
 11567  	return c
 11568  }
 11569  
 11570  // Fields allows partial responses to be retrieved. See
 11571  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11572  // details.
 11573  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 11574  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11575  	return c
 11576  }
 11577  
 11578  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11579  // object's ETag matches the given value. This is useful for getting updates
 11580  // only after the object has changed since the last request.
 11581  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 11582  	c.ifNoneMatch_ = entityTag
 11583  	return c
 11584  }
 11585  
 11586  // Context sets the context to be used in this call's Do method.
 11587  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 11588  	c.ctx_ = ctx
 11589  	return c
 11590  }
 11591  
 11592  // Header returns a http.Header that can be modified by the caller to add
 11593  // headers to the request.
 11594  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 11595  	if c.header_ == nil {
 11596  		c.header_ = make(http.Header)
 11597  	}
 11598  	return c.header_
 11599  }
 11600  
 11601  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 11602  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11603  	if c.ifNoneMatch_ != "" {
 11604  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11605  	}
 11606  	var body io.Reader = nil
 11607  	c.urlParams_.Set("alt", alt)
 11608  	c.urlParams_.Set("prettyPrint", "false")
 11609  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/operations")
 11610  	urls += "?" + c.urlParams_.Encode()
 11611  	req, err := http.NewRequest("GET", urls, body)
 11612  	if err != nil {
 11613  		return nil, err
 11614  	}
 11615  	req.Header = reqHeaders
 11616  	googleapi.Expand(req.URL, map[string]string{
 11617  		"name": c.name,
 11618  	})
 11619  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11620  }
 11621  
 11622  // Do executes the "migrationcenter.projects.locations.operations.list" call.
 11623  // Any non-2xx status code is an error. Response headers are in either
 11624  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
 11625  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11626  // check whether the returned error was because http.StatusNotModified was
 11627  // returned.
 11628  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
 11629  	gensupport.SetOptions(c.urlParams_, opts...)
 11630  	res, err := c.doRequest("json")
 11631  	if res != nil && res.StatusCode == http.StatusNotModified {
 11632  		if res.Body != nil {
 11633  			res.Body.Close()
 11634  		}
 11635  		return nil, gensupport.WrapError(&googleapi.Error{
 11636  			Code:   res.StatusCode,
 11637  			Header: res.Header,
 11638  		})
 11639  	}
 11640  	if err != nil {
 11641  		return nil, err
 11642  	}
 11643  	defer googleapi.CloseBody(res)
 11644  	if err := googleapi.CheckResponse(res); err != nil {
 11645  		return nil, gensupport.WrapError(err)
 11646  	}
 11647  	ret := &ListOperationsResponse{
 11648  		ServerResponse: googleapi.ServerResponse{
 11649  			Header:         res.Header,
 11650  			HTTPStatusCode: res.StatusCode,
 11651  		},
 11652  	}
 11653  	target := &ret
 11654  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11655  		return nil, err
 11656  	}
 11657  	return ret, nil
 11658  }
 11659  
 11660  // Pages invokes f for each page of results.
 11661  // A non-nil error returned from f will halt the iteration.
 11662  // The provided context supersedes any context provided to the Context method.
 11663  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
 11664  	c.ctx_ = ctx
 11665  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11666  	for {
 11667  		x, err := c.Do()
 11668  		if err != nil {
 11669  			return err
 11670  		}
 11671  		if err := f(x); err != nil {
 11672  			return err
 11673  		}
 11674  		if x.NextPageToken == "" {
 11675  			return nil
 11676  		}
 11677  		c.PageToken(x.NextPageToken)
 11678  	}
 11679  }
 11680  
 11681  type ProjectsLocationsPreferenceSetsCreateCall struct {
 11682  	s             *Service
 11683  	parent        string
 11684  	preferenceset *PreferenceSet
 11685  	urlParams_    gensupport.URLParams
 11686  	ctx_          context.Context
 11687  	header_       http.Header
 11688  }
 11689  
 11690  // Create: Creates a new preference set in a given project and location.
 11691  //
 11692  // - parent: Value for parent.
 11693  func (r *ProjectsLocationsPreferenceSetsService) Create(parent string, preferenceset *PreferenceSet) *ProjectsLocationsPreferenceSetsCreateCall {
 11694  	c := &ProjectsLocationsPreferenceSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11695  	c.parent = parent
 11696  	c.preferenceset = preferenceset
 11697  	return c
 11698  }
 11699  
 11700  // PreferenceSetId sets the optional parameter "preferenceSetId":
 11701  func (c *ProjectsLocationsPreferenceSetsCreateCall) PreferenceSetId(preferenceSetId string) *ProjectsLocationsPreferenceSetsCreateCall {
 11702  	c.urlParams_.Set("preferenceSetId", preferenceSetId)
 11703  	return c
 11704  }
 11705  
 11706  // RequestId sets the optional parameter "requestId": An optional request ID to
 11707  // identify requests. Specify a unique request ID so that if you must retry
 11708  // your request, the server will know to ignore the request if it has already
 11709  // been completed. The server will guarantee that for at least 60 minutes since
 11710  // the first request. For example, consider a situation where you make an
 11711  // initial request and the request times out. If you make the request again
 11712  // with the same request ID, the server can check if original operation with
 11713  // the same request ID was received, and if so, will ignore the second request.
 11714  // This prevents clients from accidentally creating duplicate commitments. The
 11715  // request ID must be a valid UUID with the exception that zero UUID is not
 11716  // supported (00000000-0000-0000-0000-000000000000).
 11717  func (c *ProjectsLocationsPreferenceSetsCreateCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsCreateCall {
 11718  	c.urlParams_.Set("requestId", requestId)
 11719  	return c
 11720  }
 11721  
 11722  // Fields allows partial responses to be retrieved. See
 11723  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11724  // details.
 11725  func (c *ProjectsLocationsPreferenceSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsCreateCall {
 11726  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11727  	return c
 11728  }
 11729  
 11730  // Context sets the context to be used in this call's Do method.
 11731  func (c *ProjectsLocationsPreferenceSetsCreateCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsCreateCall {
 11732  	c.ctx_ = ctx
 11733  	return c
 11734  }
 11735  
 11736  // Header returns a http.Header that can be modified by the caller to add
 11737  // headers to the request.
 11738  func (c *ProjectsLocationsPreferenceSetsCreateCall) Header() http.Header {
 11739  	if c.header_ == nil {
 11740  		c.header_ = make(http.Header)
 11741  	}
 11742  	return c.header_
 11743  }
 11744  
 11745  func (c *ProjectsLocationsPreferenceSetsCreateCall) doRequest(alt string) (*http.Response, error) {
 11746  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11747  	var body io.Reader = nil
 11748  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.preferenceset)
 11749  	if err != nil {
 11750  		return nil, err
 11751  	}
 11752  	c.urlParams_.Set("alt", alt)
 11753  	c.urlParams_.Set("prettyPrint", "false")
 11754  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/preferenceSets")
 11755  	urls += "?" + c.urlParams_.Encode()
 11756  	req, err := http.NewRequest("POST", urls, body)
 11757  	if err != nil {
 11758  		return nil, err
 11759  	}
 11760  	req.Header = reqHeaders
 11761  	googleapi.Expand(req.URL, map[string]string{
 11762  		"parent": c.parent,
 11763  	})
 11764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11765  }
 11766  
 11767  // Do executes the "migrationcenter.projects.locations.preferenceSets.create" call.
 11768  // Any non-2xx status code is an error. Response headers are in either
 11769  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11770  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11771  // whether the returned error was because http.StatusNotModified was returned.
 11772  func (c *ProjectsLocationsPreferenceSetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11773  	gensupport.SetOptions(c.urlParams_, opts...)
 11774  	res, err := c.doRequest("json")
 11775  	if res != nil && res.StatusCode == http.StatusNotModified {
 11776  		if res.Body != nil {
 11777  			res.Body.Close()
 11778  		}
 11779  		return nil, gensupport.WrapError(&googleapi.Error{
 11780  			Code:   res.StatusCode,
 11781  			Header: res.Header,
 11782  		})
 11783  	}
 11784  	if err != nil {
 11785  		return nil, err
 11786  	}
 11787  	defer googleapi.CloseBody(res)
 11788  	if err := googleapi.CheckResponse(res); err != nil {
 11789  		return nil, gensupport.WrapError(err)
 11790  	}
 11791  	ret := &Operation{
 11792  		ServerResponse: googleapi.ServerResponse{
 11793  			Header:         res.Header,
 11794  			HTTPStatusCode: res.StatusCode,
 11795  		},
 11796  	}
 11797  	target := &ret
 11798  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11799  		return nil, err
 11800  	}
 11801  	return ret, nil
 11802  }
 11803  
 11804  type ProjectsLocationsPreferenceSetsDeleteCall struct {
 11805  	s          *Service
 11806  	name       string
 11807  	urlParams_ gensupport.URLParams
 11808  	ctx_       context.Context
 11809  	header_    http.Header
 11810  }
 11811  
 11812  // Delete: Deletes a preference set.
 11813  //
 11814  // - name: Name of the group resource.
 11815  func (r *ProjectsLocationsPreferenceSetsService) Delete(name string) *ProjectsLocationsPreferenceSetsDeleteCall {
 11816  	c := &ProjectsLocationsPreferenceSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11817  	c.name = name
 11818  	return c
 11819  }
 11820  
 11821  // RequestId sets the optional parameter "requestId": An optional request ID to
 11822  // identify requests. Specify a unique request ID so that if you must retry
 11823  // your request, the server will know to ignore the request if it has already
 11824  // been completed. The server will guarantee that for at least 60 minutes after
 11825  // the first request. For example, consider a situation where you make an
 11826  // initial request and the request times out. If you make the request again
 11827  // with the same request ID, the server can check if original operation with
 11828  // the same request ID was received, and if so, will ignore the second request.
 11829  // This prevents clients from accidentally creating duplicate commitments. The
 11830  // request ID must be a valid UUID with the exception that zero UUID is not
 11831  // supported (00000000-0000-0000-0000-000000000000).
 11832  func (c *ProjectsLocationsPreferenceSetsDeleteCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsDeleteCall {
 11833  	c.urlParams_.Set("requestId", requestId)
 11834  	return c
 11835  }
 11836  
 11837  // Fields allows partial responses to be retrieved. See
 11838  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11839  // details.
 11840  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsDeleteCall {
 11841  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11842  	return c
 11843  }
 11844  
 11845  // Context sets the context to be used in this call's Do method.
 11846  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsDeleteCall {
 11847  	c.ctx_ = ctx
 11848  	return c
 11849  }
 11850  
 11851  // Header returns a http.Header that can be modified by the caller to add
 11852  // headers to the request.
 11853  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Header() http.Header {
 11854  	if c.header_ == nil {
 11855  		c.header_ = make(http.Header)
 11856  	}
 11857  	return c.header_
 11858  }
 11859  
 11860  func (c *ProjectsLocationsPreferenceSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11861  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11862  	var body io.Reader = nil
 11863  	c.urlParams_.Set("alt", alt)
 11864  	c.urlParams_.Set("prettyPrint", "false")
 11865  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 11866  	urls += "?" + c.urlParams_.Encode()
 11867  	req, err := http.NewRequest("DELETE", urls, body)
 11868  	if err != nil {
 11869  		return nil, err
 11870  	}
 11871  	req.Header = reqHeaders
 11872  	googleapi.Expand(req.URL, map[string]string{
 11873  		"name": c.name,
 11874  	})
 11875  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11876  }
 11877  
 11878  // Do executes the "migrationcenter.projects.locations.preferenceSets.delete" call.
 11879  // Any non-2xx status code is an error. Response headers are in either
 11880  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11881  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11882  // whether the returned error was because http.StatusNotModified was returned.
 11883  func (c *ProjectsLocationsPreferenceSetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11884  	gensupport.SetOptions(c.urlParams_, opts...)
 11885  	res, err := c.doRequest("json")
 11886  	if res != nil && res.StatusCode == http.StatusNotModified {
 11887  		if res.Body != nil {
 11888  			res.Body.Close()
 11889  		}
 11890  		return nil, gensupport.WrapError(&googleapi.Error{
 11891  			Code:   res.StatusCode,
 11892  			Header: res.Header,
 11893  		})
 11894  	}
 11895  	if err != nil {
 11896  		return nil, err
 11897  	}
 11898  	defer googleapi.CloseBody(res)
 11899  	if err := googleapi.CheckResponse(res); err != nil {
 11900  		return nil, gensupport.WrapError(err)
 11901  	}
 11902  	ret := &Operation{
 11903  		ServerResponse: googleapi.ServerResponse{
 11904  			Header:         res.Header,
 11905  			HTTPStatusCode: res.StatusCode,
 11906  		},
 11907  	}
 11908  	target := &ret
 11909  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11910  		return nil, err
 11911  	}
 11912  	return ret, nil
 11913  }
 11914  
 11915  type ProjectsLocationsPreferenceSetsGetCall struct {
 11916  	s            *Service
 11917  	name         string
 11918  	urlParams_   gensupport.URLParams
 11919  	ifNoneMatch_ string
 11920  	ctx_         context.Context
 11921  	header_      http.Header
 11922  }
 11923  
 11924  // Get: Gets the details of a preference set.
 11925  //
 11926  // - name: Name of the resource.
 11927  func (r *ProjectsLocationsPreferenceSetsService) Get(name string) *ProjectsLocationsPreferenceSetsGetCall {
 11928  	c := &ProjectsLocationsPreferenceSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11929  	c.name = name
 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 *ProjectsLocationsPreferenceSetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsGetCall {
 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 *ProjectsLocationsPreferenceSetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreferenceSetsGetCall {
 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 *ProjectsLocationsPreferenceSetsGetCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsGetCall {
 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 *ProjectsLocationsPreferenceSetsGetCall) Header() http.Header {
 11958  	if c.header_ == nil {
 11959  		c.header_ = make(http.Header)
 11960  	}
 11961  	return c.header_
 11962  }
 11963  
 11964  func (c *ProjectsLocationsPreferenceSetsGetCall) 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, "v1alpha1/{+name}")
 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  		"name": c.name,
 11981  	})
 11982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11983  }
 11984  
 11985  // Do executes the "migrationcenter.projects.locations.preferenceSets.get" call.
 11986  // Any non-2xx status code is an error. Response headers are in either
 11987  // *PreferenceSet.ServerResponse.Header or (if a response was returned at all)
 11988  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11989  // whether the returned error was because http.StatusNotModified was returned.
 11990  func (c *ProjectsLocationsPreferenceSetsGetCall) Do(opts ...googleapi.CallOption) (*PreferenceSet, error) {
 11991  	gensupport.SetOptions(c.urlParams_, opts...)
 11992  	res, err := c.doRequest("json")
 11993  	if res != nil && res.StatusCode == http.StatusNotModified {
 11994  		if res.Body != nil {
 11995  			res.Body.Close()
 11996  		}
 11997  		return nil, gensupport.WrapError(&googleapi.Error{
 11998  			Code:   res.StatusCode,
 11999  			Header: res.Header,
 12000  		})
 12001  	}
 12002  	if err != nil {
 12003  		return nil, err
 12004  	}
 12005  	defer googleapi.CloseBody(res)
 12006  	if err := googleapi.CheckResponse(res); err != nil {
 12007  		return nil, gensupport.WrapError(err)
 12008  	}
 12009  	ret := &PreferenceSet{
 12010  		ServerResponse: googleapi.ServerResponse{
 12011  			Header:         res.Header,
 12012  			HTTPStatusCode: res.StatusCode,
 12013  		},
 12014  	}
 12015  	target := &ret
 12016  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12017  		return nil, err
 12018  	}
 12019  	return ret, nil
 12020  }
 12021  
 12022  type ProjectsLocationsPreferenceSetsListCall struct {
 12023  	s            *Service
 12024  	parent       string
 12025  	urlParams_   gensupport.URLParams
 12026  	ifNoneMatch_ string
 12027  	ctx_         context.Context
 12028  	header_      http.Header
 12029  }
 12030  
 12031  // List: Lists all the preference sets in a given project and location.
 12032  //
 12033  // - parent: Parent value for `ListPreferenceSetsRequest`.
 12034  func (r *ProjectsLocationsPreferenceSetsService) List(parent string) *ProjectsLocationsPreferenceSetsListCall {
 12035  	c := &ProjectsLocationsPreferenceSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12036  	c.parent = parent
 12037  	return c
 12038  }
 12039  
 12040  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 12041  // https://google.aip.dev/132#ordering for more details.
 12042  func (c *ProjectsLocationsPreferenceSetsListCall) OrderBy(orderBy string) *ProjectsLocationsPreferenceSetsListCall {
 12043  	c.urlParams_.Set("orderBy", orderBy)
 12044  	return c
 12045  }
 12046  
 12047  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 12048  // may return fewer items than requested. If unspecified, at most 500
 12049  // preference sets will be returned. The maximum value is 1000; values above
 12050  // 1000 will be coerced to 1000.
 12051  func (c *ProjectsLocationsPreferenceSetsListCall) PageSize(pageSize int64) *ProjectsLocationsPreferenceSetsListCall {
 12052  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12053  	return c
 12054  }
 12055  
 12056  // PageToken sets the optional parameter "pageToken": A token identifying a
 12057  // page of results the server should return.
 12058  func (c *ProjectsLocationsPreferenceSetsListCall) PageToken(pageToken string) *ProjectsLocationsPreferenceSetsListCall {
 12059  	c.urlParams_.Set("pageToken", pageToken)
 12060  	return c
 12061  }
 12062  
 12063  // Fields allows partial responses to be retrieved. See
 12064  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12065  // details.
 12066  func (c *ProjectsLocationsPreferenceSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsListCall {
 12067  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12068  	return c
 12069  }
 12070  
 12071  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12072  // object's ETag matches the given value. This is useful for getting updates
 12073  // only after the object has changed since the last request.
 12074  func (c *ProjectsLocationsPreferenceSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPreferenceSetsListCall {
 12075  	c.ifNoneMatch_ = entityTag
 12076  	return c
 12077  }
 12078  
 12079  // Context sets the context to be used in this call's Do method.
 12080  func (c *ProjectsLocationsPreferenceSetsListCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsListCall {
 12081  	c.ctx_ = ctx
 12082  	return c
 12083  }
 12084  
 12085  // Header returns a http.Header that can be modified by the caller to add
 12086  // headers to the request.
 12087  func (c *ProjectsLocationsPreferenceSetsListCall) Header() http.Header {
 12088  	if c.header_ == nil {
 12089  		c.header_ = make(http.Header)
 12090  	}
 12091  	return c.header_
 12092  }
 12093  
 12094  func (c *ProjectsLocationsPreferenceSetsListCall) doRequest(alt string) (*http.Response, error) {
 12095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12096  	if c.ifNoneMatch_ != "" {
 12097  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12098  	}
 12099  	var body io.Reader = nil
 12100  	c.urlParams_.Set("alt", alt)
 12101  	c.urlParams_.Set("prettyPrint", "false")
 12102  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/preferenceSets")
 12103  	urls += "?" + c.urlParams_.Encode()
 12104  	req, err := http.NewRequest("GET", urls, body)
 12105  	if err != nil {
 12106  		return nil, err
 12107  	}
 12108  	req.Header = reqHeaders
 12109  	googleapi.Expand(req.URL, map[string]string{
 12110  		"parent": c.parent,
 12111  	})
 12112  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12113  }
 12114  
 12115  // Do executes the "migrationcenter.projects.locations.preferenceSets.list" call.
 12116  // Any non-2xx status code is an error. Response headers are in either
 12117  // *ListPreferenceSetsResponse.ServerResponse.Header or (if a response was
 12118  // returned at all) in error.(*googleapi.Error).Header. Use
 12119  // googleapi.IsNotModified to check whether the returned error was because
 12120  // http.StatusNotModified was returned.
 12121  func (c *ProjectsLocationsPreferenceSetsListCall) Do(opts ...googleapi.CallOption) (*ListPreferenceSetsResponse, error) {
 12122  	gensupport.SetOptions(c.urlParams_, opts...)
 12123  	res, err := c.doRequest("json")
 12124  	if res != nil && res.StatusCode == http.StatusNotModified {
 12125  		if res.Body != nil {
 12126  			res.Body.Close()
 12127  		}
 12128  		return nil, gensupport.WrapError(&googleapi.Error{
 12129  			Code:   res.StatusCode,
 12130  			Header: res.Header,
 12131  		})
 12132  	}
 12133  	if err != nil {
 12134  		return nil, err
 12135  	}
 12136  	defer googleapi.CloseBody(res)
 12137  	if err := googleapi.CheckResponse(res); err != nil {
 12138  		return nil, gensupport.WrapError(err)
 12139  	}
 12140  	ret := &ListPreferenceSetsResponse{
 12141  		ServerResponse: googleapi.ServerResponse{
 12142  			Header:         res.Header,
 12143  			HTTPStatusCode: res.StatusCode,
 12144  		},
 12145  	}
 12146  	target := &ret
 12147  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12148  		return nil, err
 12149  	}
 12150  	return ret, nil
 12151  }
 12152  
 12153  // Pages invokes f for each page of results.
 12154  // A non-nil error returned from f will halt the iteration.
 12155  // The provided context supersedes any context provided to the Context method.
 12156  func (c *ProjectsLocationsPreferenceSetsListCall) Pages(ctx context.Context, f func(*ListPreferenceSetsResponse) error) error {
 12157  	c.ctx_ = ctx
 12158  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12159  	for {
 12160  		x, err := c.Do()
 12161  		if err != nil {
 12162  			return err
 12163  		}
 12164  		if err := f(x); err != nil {
 12165  			return err
 12166  		}
 12167  		if x.NextPageToken == "" {
 12168  			return nil
 12169  		}
 12170  		c.PageToken(x.NextPageToken)
 12171  	}
 12172  }
 12173  
 12174  type ProjectsLocationsPreferenceSetsPatchCall struct {
 12175  	s             *Service
 12176  	name          string
 12177  	preferenceset *PreferenceSet
 12178  	urlParams_    gensupport.URLParams
 12179  	ctx_          context.Context
 12180  	header_       http.Header
 12181  }
 12182  
 12183  // Patch: Updates the parameters of a preference set.
 12184  //
 12185  // - name: Output only. Name of the preference set.
 12186  func (r *ProjectsLocationsPreferenceSetsService) Patch(name string, preferenceset *PreferenceSet) *ProjectsLocationsPreferenceSetsPatchCall {
 12187  	c := &ProjectsLocationsPreferenceSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12188  	c.name = name
 12189  	c.preferenceset = preferenceset
 12190  	return c
 12191  }
 12192  
 12193  // RequestId sets the optional parameter "requestId": An optional request ID to
 12194  // identify requests. Specify a unique request ID so that if you must retry
 12195  // your request, the server will know to ignore the request if it has already
 12196  // been completed. The server will guarantee that for at least 60 minutes since
 12197  // the first request. For example, consider a situation where you make an
 12198  // initial request and the request times out. If you make the request again
 12199  // with the same request ID, the server can check if original operation with
 12200  // the same request ID was received, and if so, will ignore the second request.
 12201  // This prevents clients from accidentally creating duplicate commitments. The
 12202  // request ID must be a valid UUID with the exception that zero UUID is not
 12203  // supported (00000000-0000-0000-0000-000000000000).
 12204  func (c *ProjectsLocationsPreferenceSetsPatchCall) RequestId(requestId string) *ProjectsLocationsPreferenceSetsPatchCall {
 12205  	c.urlParams_.Set("requestId", requestId)
 12206  	return c
 12207  }
 12208  
 12209  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 12210  // used to specify the fields to be overwritten in the `PreferenceSet` resource
 12211  // by the update. The values specified in the `update_mask` field are relative
 12212  // to the resource, not the full request. A field will be overwritten if it is
 12213  // in the mask. A single * value in the mask lets you to overwrite all fields.
 12214  func (c *ProjectsLocationsPreferenceSetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPreferenceSetsPatchCall {
 12215  	c.urlParams_.Set("updateMask", updateMask)
 12216  	return c
 12217  }
 12218  
 12219  // Fields allows partial responses to be retrieved. See
 12220  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12221  // details.
 12222  func (c *ProjectsLocationsPreferenceSetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPreferenceSetsPatchCall {
 12223  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12224  	return c
 12225  }
 12226  
 12227  // Context sets the context to be used in this call's Do method.
 12228  func (c *ProjectsLocationsPreferenceSetsPatchCall) Context(ctx context.Context) *ProjectsLocationsPreferenceSetsPatchCall {
 12229  	c.ctx_ = ctx
 12230  	return c
 12231  }
 12232  
 12233  // Header returns a http.Header that can be modified by the caller to add
 12234  // headers to the request.
 12235  func (c *ProjectsLocationsPreferenceSetsPatchCall) Header() http.Header {
 12236  	if c.header_ == nil {
 12237  		c.header_ = make(http.Header)
 12238  	}
 12239  	return c.header_
 12240  }
 12241  
 12242  func (c *ProjectsLocationsPreferenceSetsPatchCall) doRequest(alt string) (*http.Response, error) {
 12243  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12244  	var body io.Reader = nil
 12245  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.preferenceset)
 12246  	if err != nil {
 12247  		return nil, err
 12248  	}
 12249  	c.urlParams_.Set("alt", alt)
 12250  	c.urlParams_.Set("prettyPrint", "false")
 12251  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 12252  	urls += "?" + c.urlParams_.Encode()
 12253  	req, err := http.NewRequest("PATCH", urls, body)
 12254  	if err != nil {
 12255  		return nil, err
 12256  	}
 12257  	req.Header = reqHeaders
 12258  	googleapi.Expand(req.URL, map[string]string{
 12259  		"name": c.name,
 12260  	})
 12261  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12262  }
 12263  
 12264  // Do executes the "migrationcenter.projects.locations.preferenceSets.patch" call.
 12265  // Any non-2xx status code is an error. Response headers are in either
 12266  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12267  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12268  // whether the returned error was because http.StatusNotModified was returned.
 12269  func (c *ProjectsLocationsPreferenceSetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12270  	gensupport.SetOptions(c.urlParams_, opts...)
 12271  	res, err := c.doRequest("json")
 12272  	if res != nil && res.StatusCode == http.StatusNotModified {
 12273  		if res.Body != nil {
 12274  			res.Body.Close()
 12275  		}
 12276  		return nil, gensupport.WrapError(&googleapi.Error{
 12277  			Code:   res.StatusCode,
 12278  			Header: res.Header,
 12279  		})
 12280  	}
 12281  	if err != nil {
 12282  		return nil, err
 12283  	}
 12284  	defer googleapi.CloseBody(res)
 12285  	if err := googleapi.CheckResponse(res); err != nil {
 12286  		return nil, gensupport.WrapError(err)
 12287  	}
 12288  	ret := &Operation{
 12289  		ServerResponse: googleapi.ServerResponse{
 12290  			Header:         res.Header,
 12291  			HTTPStatusCode: res.StatusCode,
 12292  		},
 12293  	}
 12294  	target := &ret
 12295  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12296  		return nil, err
 12297  	}
 12298  	return ret, nil
 12299  }
 12300  
 12301  type ProjectsLocationsReportConfigsCreateCall struct {
 12302  	s            *Service
 12303  	parent       string
 12304  	reportconfig *ReportConfig
 12305  	urlParams_   gensupport.URLParams
 12306  	ctx_         context.Context
 12307  	header_      http.Header
 12308  }
 12309  
 12310  // Create: Creates a report configuration.
 12311  //
 12312  // - parent: Value for parent.
 12313  func (r *ProjectsLocationsReportConfigsService) Create(parent string, reportconfig *ReportConfig) *ProjectsLocationsReportConfigsCreateCall {
 12314  	c := &ProjectsLocationsReportConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12315  	c.parent = parent
 12316  	c.reportconfig = reportconfig
 12317  	return c
 12318  }
 12319  
 12320  // ReportConfigId sets the optional parameter "reportConfigId": Required. User
 12321  // specified ID for the report config. It will become the last component of the
 12322  // report config name. The ID must be unique within the project, must conform
 12323  // with RFC-1034, is restricted to lower-cased letters, and has a maximum
 12324  // length of 63 characters. The ID must match the regular expression: a-z
 12325  // ([a-z0-9-]{0,61}[a-z0-9])?.
 12326  func (c *ProjectsLocationsReportConfigsCreateCall) ReportConfigId(reportConfigId string) *ProjectsLocationsReportConfigsCreateCall {
 12327  	c.urlParams_.Set("reportConfigId", reportConfigId)
 12328  	return c
 12329  }
 12330  
 12331  // RequestId sets the optional parameter "requestId": An optional request ID to
 12332  // identify requests. Specify a unique request ID so that if you must retry
 12333  // your request, the server will know to ignore the request if it has already
 12334  // been completed. The server will guarantee that for at least 60 minutes since
 12335  // the first request. For example, consider a situation where you make an
 12336  // initial request and the request times out. If you make the request again
 12337  // with the same request ID, the server can check if original operation with
 12338  // the same request ID was received, and if so, will ignore the second request.
 12339  // This prevents clients from accidentally creating duplicate commitments. The
 12340  // request ID must be a valid UUID with the exception that zero UUID is not
 12341  // supported (00000000-0000-0000-0000-000000000000).
 12342  func (c *ProjectsLocationsReportConfigsCreateCall) RequestId(requestId string) *ProjectsLocationsReportConfigsCreateCall {
 12343  	c.urlParams_.Set("requestId", requestId)
 12344  	return c
 12345  }
 12346  
 12347  // Fields allows partial responses to be retrieved. See
 12348  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12349  // details.
 12350  func (c *ProjectsLocationsReportConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsCreateCall {
 12351  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12352  	return c
 12353  }
 12354  
 12355  // Context sets the context to be used in this call's Do method.
 12356  func (c *ProjectsLocationsReportConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsCreateCall {
 12357  	c.ctx_ = ctx
 12358  	return c
 12359  }
 12360  
 12361  // Header returns a http.Header that can be modified by the caller to add
 12362  // headers to the request.
 12363  func (c *ProjectsLocationsReportConfigsCreateCall) Header() http.Header {
 12364  	if c.header_ == nil {
 12365  		c.header_ = make(http.Header)
 12366  	}
 12367  	return c.header_
 12368  }
 12369  
 12370  func (c *ProjectsLocationsReportConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
 12371  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12372  	var body io.Reader = nil
 12373  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportconfig)
 12374  	if err != nil {
 12375  		return nil, err
 12376  	}
 12377  	c.urlParams_.Set("alt", alt)
 12378  	c.urlParams_.Set("prettyPrint", "false")
 12379  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reportConfigs")
 12380  	urls += "?" + c.urlParams_.Encode()
 12381  	req, err := http.NewRequest("POST", urls, body)
 12382  	if err != nil {
 12383  		return nil, err
 12384  	}
 12385  	req.Header = reqHeaders
 12386  	googleapi.Expand(req.URL, map[string]string{
 12387  		"parent": c.parent,
 12388  	})
 12389  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12390  }
 12391  
 12392  // Do executes the "migrationcenter.projects.locations.reportConfigs.create" call.
 12393  // Any non-2xx status code is an error. Response headers are in either
 12394  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12395  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12396  // whether the returned error was because http.StatusNotModified was returned.
 12397  func (c *ProjectsLocationsReportConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12398  	gensupport.SetOptions(c.urlParams_, opts...)
 12399  	res, err := c.doRequest("json")
 12400  	if res != nil && res.StatusCode == http.StatusNotModified {
 12401  		if res.Body != nil {
 12402  			res.Body.Close()
 12403  		}
 12404  		return nil, gensupport.WrapError(&googleapi.Error{
 12405  			Code:   res.StatusCode,
 12406  			Header: res.Header,
 12407  		})
 12408  	}
 12409  	if err != nil {
 12410  		return nil, err
 12411  	}
 12412  	defer googleapi.CloseBody(res)
 12413  	if err := googleapi.CheckResponse(res); err != nil {
 12414  		return nil, gensupport.WrapError(err)
 12415  	}
 12416  	ret := &Operation{
 12417  		ServerResponse: googleapi.ServerResponse{
 12418  			Header:         res.Header,
 12419  			HTTPStatusCode: res.StatusCode,
 12420  		},
 12421  	}
 12422  	target := &ret
 12423  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12424  		return nil, err
 12425  	}
 12426  	return ret, nil
 12427  }
 12428  
 12429  type ProjectsLocationsReportConfigsDeleteCall struct {
 12430  	s          *Service
 12431  	name       string
 12432  	urlParams_ gensupport.URLParams
 12433  	ctx_       context.Context
 12434  	header_    http.Header
 12435  }
 12436  
 12437  // Delete: Deletes a ReportConfig.
 12438  //
 12439  // - name: Name of the resource.
 12440  func (r *ProjectsLocationsReportConfigsService) Delete(name string) *ProjectsLocationsReportConfigsDeleteCall {
 12441  	c := &ProjectsLocationsReportConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12442  	c.name = name
 12443  	return c
 12444  }
 12445  
 12446  // Force sets the optional parameter "force": If set to `true`, any child
 12447  // `Reports` of this entity will also be deleted. If set to `false`, the
 12448  // request only works if the resource has no children.
 12449  func (c *ProjectsLocationsReportConfigsDeleteCall) Force(force bool) *ProjectsLocationsReportConfigsDeleteCall {
 12450  	c.urlParams_.Set("force", fmt.Sprint(force))
 12451  	return c
 12452  }
 12453  
 12454  // RequestId sets the optional parameter "requestId": An optional request ID to
 12455  // identify requests. Specify a unique request ID so that if you must retry
 12456  // your request, the server will know to ignore the request if it has already
 12457  // been completed. The server will guarantee that for at least 60 minutes after
 12458  // the first request. For example, consider a situation where you make an
 12459  // initial request and the request times out. If you make the request again
 12460  // with the same request ID, the server can check if original operation with
 12461  // the same request ID was received, and if so, will ignore the second request.
 12462  // This prevents clients from accidentally creating duplicate commitments. The
 12463  // request ID must be a valid UUID with the exception that zero UUID is not
 12464  // supported (00000000-0000-0000-0000-000000000000).
 12465  func (c *ProjectsLocationsReportConfigsDeleteCall) RequestId(requestId string) *ProjectsLocationsReportConfigsDeleteCall {
 12466  	c.urlParams_.Set("requestId", requestId)
 12467  	return c
 12468  }
 12469  
 12470  // Fields allows partial responses to be retrieved. See
 12471  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12472  // details.
 12473  func (c *ProjectsLocationsReportConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsDeleteCall {
 12474  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12475  	return c
 12476  }
 12477  
 12478  // Context sets the context to be used in this call's Do method.
 12479  func (c *ProjectsLocationsReportConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsDeleteCall {
 12480  	c.ctx_ = ctx
 12481  	return c
 12482  }
 12483  
 12484  // Header returns a http.Header that can be modified by the caller to add
 12485  // headers to the request.
 12486  func (c *ProjectsLocationsReportConfigsDeleteCall) Header() http.Header {
 12487  	if c.header_ == nil {
 12488  		c.header_ = make(http.Header)
 12489  	}
 12490  	return c.header_
 12491  }
 12492  
 12493  func (c *ProjectsLocationsReportConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12494  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12495  	var body io.Reader = nil
 12496  	c.urlParams_.Set("alt", alt)
 12497  	c.urlParams_.Set("prettyPrint", "false")
 12498  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 12499  	urls += "?" + c.urlParams_.Encode()
 12500  	req, err := http.NewRequest("DELETE", urls, body)
 12501  	if err != nil {
 12502  		return nil, err
 12503  	}
 12504  	req.Header = reqHeaders
 12505  	googleapi.Expand(req.URL, map[string]string{
 12506  		"name": c.name,
 12507  	})
 12508  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12509  }
 12510  
 12511  // Do executes the "migrationcenter.projects.locations.reportConfigs.delete" call.
 12512  // Any non-2xx status code is an error. Response headers are in either
 12513  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12514  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12515  // whether the returned error was because http.StatusNotModified was returned.
 12516  func (c *ProjectsLocationsReportConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12517  	gensupport.SetOptions(c.urlParams_, opts...)
 12518  	res, err := c.doRequest("json")
 12519  	if res != nil && res.StatusCode == http.StatusNotModified {
 12520  		if res.Body != nil {
 12521  			res.Body.Close()
 12522  		}
 12523  		return nil, gensupport.WrapError(&googleapi.Error{
 12524  			Code:   res.StatusCode,
 12525  			Header: res.Header,
 12526  		})
 12527  	}
 12528  	if err != nil {
 12529  		return nil, err
 12530  	}
 12531  	defer googleapi.CloseBody(res)
 12532  	if err := googleapi.CheckResponse(res); err != nil {
 12533  		return nil, gensupport.WrapError(err)
 12534  	}
 12535  	ret := &Operation{
 12536  		ServerResponse: googleapi.ServerResponse{
 12537  			Header:         res.Header,
 12538  			HTTPStatusCode: res.StatusCode,
 12539  		},
 12540  	}
 12541  	target := &ret
 12542  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12543  		return nil, err
 12544  	}
 12545  	return ret, nil
 12546  }
 12547  
 12548  type ProjectsLocationsReportConfigsGetCall struct {
 12549  	s            *Service
 12550  	name         string
 12551  	urlParams_   gensupport.URLParams
 12552  	ifNoneMatch_ string
 12553  	ctx_         context.Context
 12554  	header_      http.Header
 12555  }
 12556  
 12557  // Get: Gets details of a single ReportConfig.
 12558  //
 12559  // - name: Name of the resource.
 12560  func (r *ProjectsLocationsReportConfigsService) Get(name string) *ProjectsLocationsReportConfigsGetCall {
 12561  	c := &ProjectsLocationsReportConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12562  	c.name = name
 12563  	return c
 12564  }
 12565  
 12566  // Fields allows partial responses to be retrieved. See
 12567  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12568  // details.
 12569  func (c *ProjectsLocationsReportConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsGetCall {
 12570  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12571  	return c
 12572  }
 12573  
 12574  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12575  // object's ETag matches the given value. This is useful for getting updates
 12576  // only after the object has changed since the last request.
 12577  func (c *ProjectsLocationsReportConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsGetCall {
 12578  	c.ifNoneMatch_ = entityTag
 12579  	return c
 12580  }
 12581  
 12582  // Context sets the context to be used in this call's Do method.
 12583  func (c *ProjectsLocationsReportConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsGetCall {
 12584  	c.ctx_ = ctx
 12585  	return c
 12586  }
 12587  
 12588  // Header returns a http.Header that can be modified by the caller to add
 12589  // headers to the request.
 12590  func (c *ProjectsLocationsReportConfigsGetCall) Header() http.Header {
 12591  	if c.header_ == nil {
 12592  		c.header_ = make(http.Header)
 12593  	}
 12594  	return c.header_
 12595  }
 12596  
 12597  func (c *ProjectsLocationsReportConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 12598  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12599  	if c.ifNoneMatch_ != "" {
 12600  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12601  	}
 12602  	var body io.Reader = nil
 12603  	c.urlParams_.Set("alt", alt)
 12604  	c.urlParams_.Set("prettyPrint", "false")
 12605  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 12606  	urls += "?" + c.urlParams_.Encode()
 12607  	req, err := http.NewRequest("GET", urls, body)
 12608  	if err != nil {
 12609  		return nil, err
 12610  	}
 12611  	req.Header = reqHeaders
 12612  	googleapi.Expand(req.URL, map[string]string{
 12613  		"name": c.name,
 12614  	})
 12615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12616  }
 12617  
 12618  // Do executes the "migrationcenter.projects.locations.reportConfigs.get" call.
 12619  // Any non-2xx status code is an error. Response headers are in either
 12620  // *ReportConfig.ServerResponse.Header or (if a response was returned at all)
 12621  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12622  // whether the returned error was because http.StatusNotModified was returned.
 12623  func (c *ProjectsLocationsReportConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReportConfig, error) {
 12624  	gensupport.SetOptions(c.urlParams_, opts...)
 12625  	res, err := c.doRequest("json")
 12626  	if res != nil && res.StatusCode == http.StatusNotModified {
 12627  		if res.Body != nil {
 12628  			res.Body.Close()
 12629  		}
 12630  		return nil, gensupport.WrapError(&googleapi.Error{
 12631  			Code:   res.StatusCode,
 12632  			Header: res.Header,
 12633  		})
 12634  	}
 12635  	if err != nil {
 12636  		return nil, err
 12637  	}
 12638  	defer googleapi.CloseBody(res)
 12639  	if err := googleapi.CheckResponse(res); err != nil {
 12640  		return nil, gensupport.WrapError(err)
 12641  	}
 12642  	ret := &ReportConfig{
 12643  		ServerResponse: googleapi.ServerResponse{
 12644  			Header:         res.Header,
 12645  			HTTPStatusCode: res.StatusCode,
 12646  		},
 12647  	}
 12648  	target := &ret
 12649  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12650  		return nil, err
 12651  	}
 12652  	return ret, nil
 12653  }
 12654  
 12655  type ProjectsLocationsReportConfigsListCall struct {
 12656  	s            *Service
 12657  	parent       string
 12658  	urlParams_   gensupport.URLParams
 12659  	ifNoneMatch_ string
 12660  	ctx_         context.Context
 12661  	header_      http.Header
 12662  }
 12663  
 12664  // List: Lists ReportConfigs in a given project and location.
 12665  //
 12666  // - parent: Parent value for `ListReportConfigsRequest`.
 12667  func (r *ProjectsLocationsReportConfigsService) List(parent string) *ProjectsLocationsReportConfigsListCall {
 12668  	c := &ProjectsLocationsReportConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12669  	c.parent = parent
 12670  	return c
 12671  }
 12672  
 12673  // Filter sets the optional parameter "filter": Filtering results.
 12674  func (c *ProjectsLocationsReportConfigsListCall) Filter(filter string) *ProjectsLocationsReportConfigsListCall {
 12675  	c.urlParams_.Set("filter", filter)
 12676  	return c
 12677  }
 12678  
 12679  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 12680  // https://google.aip.dev/132#ordering for more details.
 12681  func (c *ProjectsLocationsReportConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReportConfigsListCall {
 12682  	c.urlParams_.Set("orderBy", orderBy)
 12683  	return c
 12684  }
 12685  
 12686  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 12687  // may return fewer items than requested. If unspecified, server will pick an
 12688  // appropriate default.
 12689  func (c *ProjectsLocationsReportConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReportConfigsListCall {
 12690  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12691  	return c
 12692  }
 12693  
 12694  // PageToken sets the optional parameter "pageToken": A token identifying a
 12695  // page of results the server should return.
 12696  func (c *ProjectsLocationsReportConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReportConfigsListCall {
 12697  	c.urlParams_.Set("pageToken", pageToken)
 12698  	return c
 12699  }
 12700  
 12701  // Fields allows partial responses to be retrieved. See
 12702  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12703  // details.
 12704  func (c *ProjectsLocationsReportConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsListCall {
 12705  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12706  	return c
 12707  }
 12708  
 12709  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12710  // object's ETag matches the given value. This is useful for getting updates
 12711  // only after the object has changed since the last request.
 12712  func (c *ProjectsLocationsReportConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsListCall {
 12713  	c.ifNoneMatch_ = entityTag
 12714  	return c
 12715  }
 12716  
 12717  // Context sets the context to be used in this call's Do method.
 12718  func (c *ProjectsLocationsReportConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsListCall {
 12719  	c.ctx_ = ctx
 12720  	return c
 12721  }
 12722  
 12723  // Header returns a http.Header that can be modified by the caller to add
 12724  // headers to the request.
 12725  func (c *ProjectsLocationsReportConfigsListCall) Header() http.Header {
 12726  	if c.header_ == nil {
 12727  		c.header_ = make(http.Header)
 12728  	}
 12729  	return c.header_
 12730  }
 12731  
 12732  func (c *ProjectsLocationsReportConfigsListCall) doRequest(alt string) (*http.Response, error) {
 12733  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12734  	if c.ifNoneMatch_ != "" {
 12735  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12736  	}
 12737  	var body io.Reader = nil
 12738  	c.urlParams_.Set("alt", alt)
 12739  	c.urlParams_.Set("prettyPrint", "false")
 12740  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reportConfigs")
 12741  	urls += "?" + c.urlParams_.Encode()
 12742  	req, err := http.NewRequest("GET", urls, body)
 12743  	if err != nil {
 12744  		return nil, err
 12745  	}
 12746  	req.Header = reqHeaders
 12747  	googleapi.Expand(req.URL, map[string]string{
 12748  		"parent": c.parent,
 12749  	})
 12750  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12751  }
 12752  
 12753  // Do executes the "migrationcenter.projects.locations.reportConfigs.list" call.
 12754  // Any non-2xx status code is an error. Response headers are in either
 12755  // *ListReportConfigsResponse.ServerResponse.Header or (if a response was
 12756  // returned at all) in error.(*googleapi.Error).Header. Use
 12757  // googleapi.IsNotModified to check whether the returned error was because
 12758  // http.StatusNotModified was returned.
 12759  func (c *ProjectsLocationsReportConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReportConfigsResponse, error) {
 12760  	gensupport.SetOptions(c.urlParams_, opts...)
 12761  	res, err := c.doRequest("json")
 12762  	if res != nil && res.StatusCode == http.StatusNotModified {
 12763  		if res.Body != nil {
 12764  			res.Body.Close()
 12765  		}
 12766  		return nil, gensupport.WrapError(&googleapi.Error{
 12767  			Code:   res.StatusCode,
 12768  			Header: res.Header,
 12769  		})
 12770  	}
 12771  	if err != nil {
 12772  		return nil, err
 12773  	}
 12774  	defer googleapi.CloseBody(res)
 12775  	if err := googleapi.CheckResponse(res); err != nil {
 12776  		return nil, gensupport.WrapError(err)
 12777  	}
 12778  	ret := &ListReportConfigsResponse{
 12779  		ServerResponse: googleapi.ServerResponse{
 12780  			Header:         res.Header,
 12781  			HTTPStatusCode: res.StatusCode,
 12782  		},
 12783  	}
 12784  	target := &ret
 12785  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12786  		return nil, err
 12787  	}
 12788  	return ret, nil
 12789  }
 12790  
 12791  // Pages invokes f for each page of results.
 12792  // A non-nil error returned from f will halt the iteration.
 12793  // The provided context supersedes any context provided to the Context method.
 12794  func (c *ProjectsLocationsReportConfigsListCall) Pages(ctx context.Context, f func(*ListReportConfigsResponse) error) error {
 12795  	c.ctx_ = ctx
 12796  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12797  	for {
 12798  		x, err := c.Do()
 12799  		if err != nil {
 12800  			return err
 12801  		}
 12802  		if err := f(x); err != nil {
 12803  			return err
 12804  		}
 12805  		if x.NextPageToken == "" {
 12806  			return nil
 12807  		}
 12808  		c.PageToken(x.NextPageToken)
 12809  	}
 12810  }
 12811  
 12812  type ProjectsLocationsReportConfigsReportsCreateCall struct {
 12813  	s          *Service
 12814  	parent     string
 12815  	report     *Report
 12816  	urlParams_ gensupport.URLParams
 12817  	ctx_       context.Context
 12818  	header_    http.Header
 12819  }
 12820  
 12821  // Create: Creates a report.
 12822  //
 12823  // - parent: Value for parent.
 12824  func (r *ProjectsLocationsReportConfigsReportsService) Create(parent string, report *Report) *ProjectsLocationsReportConfigsReportsCreateCall {
 12825  	c := &ProjectsLocationsReportConfigsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12826  	c.parent = parent
 12827  	c.report = report
 12828  	return c
 12829  }
 12830  
 12831  // ReportId sets the optional parameter "reportId": Required. User specified id
 12832  // for the report. It will become the last component of the report name. The id
 12833  // must be unique within the project, must conform with RFC-1034, is restricted
 12834  // to lower-cased letters, and has a maximum length of 63 characters. The id
 12835  // must match the regular expression: a-z ([a-z0-9-]{0,61}[a-z0-9])?.
 12836  func (c *ProjectsLocationsReportConfigsReportsCreateCall) ReportId(reportId string) *ProjectsLocationsReportConfigsReportsCreateCall {
 12837  	c.urlParams_.Set("reportId", reportId)
 12838  	return c
 12839  }
 12840  
 12841  // RequestId sets the optional parameter "requestId": An optional request ID to
 12842  // identify requests. Specify a unique request ID so that if you must retry
 12843  // your request, the server will know to ignore the request if it has already
 12844  // been completed. The server will guarantee that for at least 60 minutes since
 12845  // the first request. For example, consider a situation where you make an
 12846  // initial request and the request times out. If you make the request again
 12847  // with the same request ID, the server can check if original operation with
 12848  // the same request ID was received, and if so, will ignore the second request.
 12849  // This prevents clients from accidentally creating duplicate commitments. The
 12850  // request ID must be a valid UUID with the exception that zero UUID is not
 12851  // supported (00000000-0000-0000-0000-000000000000).
 12852  func (c *ProjectsLocationsReportConfigsReportsCreateCall) RequestId(requestId string) *ProjectsLocationsReportConfigsReportsCreateCall {
 12853  	c.urlParams_.Set("requestId", requestId)
 12854  	return c
 12855  }
 12856  
 12857  // Fields allows partial responses to be retrieved. See
 12858  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12859  // details.
 12860  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsCreateCall {
 12861  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12862  	return c
 12863  }
 12864  
 12865  // Context sets the context to be used in this call's Do method.
 12866  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsCreateCall {
 12867  	c.ctx_ = ctx
 12868  	return c
 12869  }
 12870  
 12871  // Header returns a http.Header that can be modified by the caller to add
 12872  // headers to the request.
 12873  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Header() http.Header {
 12874  	if c.header_ == nil {
 12875  		c.header_ = make(http.Header)
 12876  	}
 12877  	return c.header_
 12878  }
 12879  
 12880  func (c *ProjectsLocationsReportConfigsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
 12881  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12882  	var body io.Reader = nil
 12883  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.report)
 12884  	if err != nil {
 12885  		return nil, err
 12886  	}
 12887  	c.urlParams_.Set("alt", alt)
 12888  	c.urlParams_.Set("prettyPrint", "false")
 12889  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reports")
 12890  	urls += "?" + c.urlParams_.Encode()
 12891  	req, err := http.NewRequest("POST", urls, body)
 12892  	if err != nil {
 12893  		return nil, err
 12894  	}
 12895  	req.Header = reqHeaders
 12896  	googleapi.Expand(req.URL, map[string]string{
 12897  		"parent": c.parent,
 12898  	})
 12899  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12900  }
 12901  
 12902  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.create" call.
 12903  // Any non-2xx status code is an error. Response headers are in either
 12904  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12905  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12906  // whether the returned error was because http.StatusNotModified was returned.
 12907  func (c *ProjectsLocationsReportConfigsReportsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12908  	gensupport.SetOptions(c.urlParams_, opts...)
 12909  	res, err := c.doRequest("json")
 12910  	if res != nil && res.StatusCode == http.StatusNotModified {
 12911  		if res.Body != nil {
 12912  			res.Body.Close()
 12913  		}
 12914  		return nil, gensupport.WrapError(&googleapi.Error{
 12915  			Code:   res.StatusCode,
 12916  			Header: res.Header,
 12917  		})
 12918  	}
 12919  	if err != nil {
 12920  		return nil, err
 12921  	}
 12922  	defer googleapi.CloseBody(res)
 12923  	if err := googleapi.CheckResponse(res); err != nil {
 12924  		return nil, gensupport.WrapError(err)
 12925  	}
 12926  	ret := &Operation{
 12927  		ServerResponse: googleapi.ServerResponse{
 12928  			Header:         res.Header,
 12929  			HTTPStatusCode: res.StatusCode,
 12930  		},
 12931  	}
 12932  	target := &ret
 12933  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12934  		return nil, err
 12935  	}
 12936  	return ret, nil
 12937  }
 12938  
 12939  type ProjectsLocationsReportConfigsReportsDeleteCall struct {
 12940  	s          *Service
 12941  	name       string
 12942  	urlParams_ gensupport.URLParams
 12943  	ctx_       context.Context
 12944  	header_    http.Header
 12945  }
 12946  
 12947  // Delete: Deletes a Report.
 12948  //
 12949  // - name: Name of the resource.
 12950  func (r *ProjectsLocationsReportConfigsReportsService) Delete(name string) *ProjectsLocationsReportConfigsReportsDeleteCall {
 12951  	c := &ProjectsLocationsReportConfigsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12952  	c.name = name
 12953  	return c
 12954  }
 12955  
 12956  // RequestId sets the optional parameter "requestId": An optional request ID to
 12957  // identify requests. Specify a unique request ID so that if you must retry
 12958  // your request, the server will know to ignore the request if it has already
 12959  // been completed. The server will guarantee that for at least 60 minutes after
 12960  // the first request. For example, consider a situation where you make an
 12961  // initial request and the request times out. If you make the request again
 12962  // with the same request ID, the server can check if original operation with
 12963  // the same request ID was received, and if so, will ignore the second request.
 12964  // This prevents clients from accidentally creating duplicate commitments. The
 12965  // request ID must be a valid UUID with the exception that zero UUID is not
 12966  // supported (00000000-0000-0000-0000-000000000000).
 12967  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) RequestId(requestId string) *ProjectsLocationsReportConfigsReportsDeleteCall {
 12968  	c.urlParams_.Set("requestId", requestId)
 12969  	return c
 12970  }
 12971  
 12972  // Fields allows partial responses to be retrieved. See
 12973  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12974  // details.
 12975  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsDeleteCall {
 12976  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12977  	return c
 12978  }
 12979  
 12980  // Context sets the context to be used in this call's Do method.
 12981  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsDeleteCall {
 12982  	c.ctx_ = ctx
 12983  	return c
 12984  }
 12985  
 12986  // Header returns a http.Header that can be modified by the caller to add
 12987  // headers to the request.
 12988  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Header() http.Header {
 12989  	if c.header_ == nil {
 12990  		c.header_ = make(http.Header)
 12991  	}
 12992  	return c.header_
 12993  }
 12994  
 12995  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12996  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12997  	var body io.Reader = nil
 12998  	c.urlParams_.Set("alt", alt)
 12999  	c.urlParams_.Set("prettyPrint", "false")
 13000  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 13001  	urls += "?" + c.urlParams_.Encode()
 13002  	req, err := http.NewRequest("DELETE", urls, body)
 13003  	if err != nil {
 13004  		return nil, err
 13005  	}
 13006  	req.Header = reqHeaders
 13007  	googleapi.Expand(req.URL, map[string]string{
 13008  		"name": c.name,
 13009  	})
 13010  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13011  }
 13012  
 13013  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.delete" call.
 13014  // Any non-2xx status code is an error. Response headers are in either
 13015  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 13016  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13017  // whether the returned error was because http.StatusNotModified was returned.
 13018  func (c *ProjectsLocationsReportConfigsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 13019  	gensupport.SetOptions(c.urlParams_, opts...)
 13020  	res, err := c.doRequest("json")
 13021  	if res != nil && res.StatusCode == http.StatusNotModified {
 13022  		if res.Body != nil {
 13023  			res.Body.Close()
 13024  		}
 13025  		return nil, gensupport.WrapError(&googleapi.Error{
 13026  			Code:   res.StatusCode,
 13027  			Header: res.Header,
 13028  		})
 13029  	}
 13030  	if err != nil {
 13031  		return nil, err
 13032  	}
 13033  	defer googleapi.CloseBody(res)
 13034  	if err := googleapi.CheckResponse(res); err != nil {
 13035  		return nil, gensupport.WrapError(err)
 13036  	}
 13037  	ret := &Operation{
 13038  		ServerResponse: googleapi.ServerResponse{
 13039  			Header:         res.Header,
 13040  			HTTPStatusCode: res.StatusCode,
 13041  		},
 13042  	}
 13043  	target := &ret
 13044  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13045  		return nil, err
 13046  	}
 13047  	return ret, nil
 13048  }
 13049  
 13050  type ProjectsLocationsReportConfigsReportsGetCall struct {
 13051  	s            *Service
 13052  	name         string
 13053  	urlParams_   gensupport.URLParams
 13054  	ifNoneMatch_ string
 13055  	ctx_         context.Context
 13056  	header_      http.Header
 13057  }
 13058  
 13059  // Get: Gets details of a single Report.
 13060  //
 13061  // - name: Name of the resource.
 13062  func (r *ProjectsLocationsReportConfigsReportsService) Get(name string) *ProjectsLocationsReportConfigsReportsGetCall {
 13063  	c := &ProjectsLocationsReportConfigsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13064  	c.name = name
 13065  	return c
 13066  }
 13067  
 13068  // View sets the optional parameter "view": Determines what information to
 13069  // retrieve for the Report.
 13070  //
 13071  // Possible values:
 13072  //
 13073  //	"REPORT_VIEW_UNSPECIFIED" - The report view is not specified. The API
 13074  //
 13075  // displays the basic view by default.
 13076  //
 13077  //	"REPORT_VIEW_BASIC" - The report view includes only basic metadata of the
 13078  //
 13079  // Report. Useful for list views.
 13080  //
 13081  //	"REPORT_VIEW_FULL" - The report view includes all the metadata of the
 13082  //
 13083  // Report. Useful for preview.
 13084  //
 13085  //	"REPORT_VIEW_STANDARD" - The report view includes the standard metadata of
 13086  //
 13087  // an report. Useful for detail view.
 13088  func (c *ProjectsLocationsReportConfigsReportsGetCall) View(view string) *ProjectsLocationsReportConfigsReportsGetCall {
 13089  	c.urlParams_.Set("view", view)
 13090  	return c
 13091  }
 13092  
 13093  // Fields allows partial responses to be retrieved. See
 13094  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13095  // details.
 13096  func (c *ProjectsLocationsReportConfigsReportsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsGetCall {
 13097  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13098  	return c
 13099  }
 13100  
 13101  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13102  // object's ETag matches the given value. This is useful for getting updates
 13103  // only after the object has changed since the last request.
 13104  func (c *ProjectsLocationsReportConfigsReportsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsReportsGetCall {
 13105  	c.ifNoneMatch_ = entityTag
 13106  	return c
 13107  }
 13108  
 13109  // Context sets the context to be used in this call's Do method.
 13110  func (c *ProjectsLocationsReportConfigsReportsGetCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsGetCall {
 13111  	c.ctx_ = ctx
 13112  	return c
 13113  }
 13114  
 13115  // Header returns a http.Header that can be modified by the caller to add
 13116  // headers to the request.
 13117  func (c *ProjectsLocationsReportConfigsReportsGetCall) Header() http.Header {
 13118  	if c.header_ == nil {
 13119  		c.header_ = make(http.Header)
 13120  	}
 13121  	return c.header_
 13122  }
 13123  
 13124  func (c *ProjectsLocationsReportConfigsReportsGetCall) doRequest(alt string) (*http.Response, error) {
 13125  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13126  	if c.ifNoneMatch_ != "" {
 13127  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13128  	}
 13129  	var body io.Reader = nil
 13130  	c.urlParams_.Set("alt", alt)
 13131  	c.urlParams_.Set("prettyPrint", "false")
 13132  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 13133  	urls += "?" + c.urlParams_.Encode()
 13134  	req, err := http.NewRequest("GET", urls, body)
 13135  	if err != nil {
 13136  		return nil, err
 13137  	}
 13138  	req.Header = reqHeaders
 13139  	googleapi.Expand(req.URL, map[string]string{
 13140  		"name": c.name,
 13141  	})
 13142  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13143  }
 13144  
 13145  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.get" call.
 13146  // Any non-2xx status code is an error. Response headers are in either
 13147  // *Report.ServerResponse.Header or (if a response was returned at all) in
 13148  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13149  // whether the returned error was because http.StatusNotModified was returned.
 13150  func (c *ProjectsLocationsReportConfigsReportsGetCall) Do(opts ...googleapi.CallOption) (*Report, error) {
 13151  	gensupport.SetOptions(c.urlParams_, opts...)
 13152  	res, err := c.doRequest("json")
 13153  	if res != nil && res.StatusCode == http.StatusNotModified {
 13154  		if res.Body != nil {
 13155  			res.Body.Close()
 13156  		}
 13157  		return nil, gensupport.WrapError(&googleapi.Error{
 13158  			Code:   res.StatusCode,
 13159  			Header: res.Header,
 13160  		})
 13161  	}
 13162  	if err != nil {
 13163  		return nil, err
 13164  	}
 13165  	defer googleapi.CloseBody(res)
 13166  	if err := googleapi.CheckResponse(res); err != nil {
 13167  		return nil, gensupport.WrapError(err)
 13168  	}
 13169  	ret := &Report{
 13170  		ServerResponse: googleapi.ServerResponse{
 13171  			Header:         res.Header,
 13172  			HTTPStatusCode: res.StatusCode,
 13173  		},
 13174  	}
 13175  	target := &ret
 13176  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13177  		return nil, err
 13178  	}
 13179  	return ret, nil
 13180  }
 13181  
 13182  type ProjectsLocationsReportConfigsReportsListCall struct {
 13183  	s            *Service
 13184  	parent       string
 13185  	urlParams_   gensupport.URLParams
 13186  	ifNoneMatch_ string
 13187  	ctx_         context.Context
 13188  	header_      http.Header
 13189  }
 13190  
 13191  // List: Lists Reports in a given ReportConfig.
 13192  //
 13193  // - parent: Parent value for `ListReportsRequest`.
 13194  func (r *ProjectsLocationsReportConfigsReportsService) List(parent string) *ProjectsLocationsReportConfigsReportsListCall {
 13195  	c := &ProjectsLocationsReportConfigsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13196  	c.parent = parent
 13197  	return c
 13198  }
 13199  
 13200  // Filter sets the optional parameter "filter": Filtering results.
 13201  func (c *ProjectsLocationsReportConfigsReportsListCall) Filter(filter string) *ProjectsLocationsReportConfigsReportsListCall {
 13202  	c.urlParams_.Set("filter", filter)
 13203  	return c
 13204  }
 13205  
 13206  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 13207  // https://google.aip.dev/132#ordering for more details.
 13208  func (c *ProjectsLocationsReportConfigsReportsListCall) OrderBy(orderBy string) *ProjectsLocationsReportConfigsReportsListCall {
 13209  	c.urlParams_.Set("orderBy", orderBy)
 13210  	return c
 13211  }
 13212  
 13213  // PageSize sets the optional parameter "pageSize": Requested page size. The
 13214  // server may return fewer items than requested. If unspecified, the server
 13215  // will pick an appropriate default value.
 13216  func (c *ProjectsLocationsReportConfigsReportsListCall) PageSize(pageSize int64) *ProjectsLocationsReportConfigsReportsListCall {
 13217  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13218  	return c
 13219  }
 13220  
 13221  // PageToken sets the optional parameter "pageToken": A token identifying a
 13222  // page of results that the server should return.
 13223  func (c *ProjectsLocationsReportConfigsReportsListCall) PageToken(pageToken string) *ProjectsLocationsReportConfigsReportsListCall {
 13224  	c.urlParams_.Set("pageToken", pageToken)
 13225  	return c
 13226  }
 13227  
 13228  // View sets the optional parameter "view": Determines what information to
 13229  // retrieve for each Report.
 13230  //
 13231  // Possible values:
 13232  //
 13233  //	"REPORT_VIEW_UNSPECIFIED" - The report view is not specified. The API
 13234  //
 13235  // displays the basic view by default.
 13236  //
 13237  //	"REPORT_VIEW_BASIC" - The report view includes only basic metadata of the
 13238  //
 13239  // Report. Useful for list views.
 13240  //
 13241  //	"REPORT_VIEW_FULL" - The report view includes all the metadata of the
 13242  //
 13243  // Report. Useful for preview.
 13244  //
 13245  //	"REPORT_VIEW_STANDARD" - The report view includes the standard metadata of
 13246  //
 13247  // an report. Useful for detail view.
 13248  func (c *ProjectsLocationsReportConfigsReportsListCall) View(view string) *ProjectsLocationsReportConfigsReportsListCall {
 13249  	c.urlParams_.Set("view", view)
 13250  	return c
 13251  }
 13252  
 13253  // Fields allows partial responses to be retrieved. See
 13254  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13255  // details.
 13256  func (c *ProjectsLocationsReportConfigsReportsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReportConfigsReportsListCall {
 13257  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13258  	return c
 13259  }
 13260  
 13261  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13262  // object's ETag matches the given value. This is useful for getting updates
 13263  // only after the object has changed since the last request.
 13264  func (c *ProjectsLocationsReportConfigsReportsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReportConfigsReportsListCall {
 13265  	c.ifNoneMatch_ = entityTag
 13266  	return c
 13267  }
 13268  
 13269  // Context sets the context to be used in this call's Do method.
 13270  func (c *ProjectsLocationsReportConfigsReportsListCall) Context(ctx context.Context) *ProjectsLocationsReportConfigsReportsListCall {
 13271  	c.ctx_ = ctx
 13272  	return c
 13273  }
 13274  
 13275  // Header returns a http.Header that can be modified by the caller to add
 13276  // headers to the request.
 13277  func (c *ProjectsLocationsReportConfigsReportsListCall) Header() http.Header {
 13278  	if c.header_ == nil {
 13279  		c.header_ = make(http.Header)
 13280  	}
 13281  	return c.header_
 13282  }
 13283  
 13284  func (c *ProjectsLocationsReportConfigsReportsListCall) doRequest(alt string) (*http.Response, error) {
 13285  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13286  	if c.ifNoneMatch_ != "" {
 13287  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13288  	}
 13289  	var body io.Reader = nil
 13290  	c.urlParams_.Set("alt", alt)
 13291  	c.urlParams_.Set("prettyPrint", "false")
 13292  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/reports")
 13293  	urls += "?" + c.urlParams_.Encode()
 13294  	req, err := http.NewRequest("GET", urls, body)
 13295  	if err != nil {
 13296  		return nil, err
 13297  	}
 13298  	req.Header = reqHeaders
 13299  	googleapi.Expand(req.URL, map[string]string{
 13300  		"parent": c.parent,
 13301  	})
 13302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13303  }
 13304  
 13305  // Do executes the "migrationcenter.projects.locations.reportConfigs.reports.list" call.
 13306  // Any non-2xx status code is an error. Response headers are in either
 13307  // *ListReportsResponse.ServerResponse.Header or (if a response was returned at
 13308  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13309  // check whether the returned error was because http.StatusNotModified was
 13310  // returned.
 13311  func (c *ProjectsLocationsReportConfigsReportsListCall) Do(opts ...googleapi.CallOption) (*ListReportsResponse, error) {
 13312  	gensupport.SetOptions(c.urlParams_, opts...)
 13313  	res, err := c.doRequest("json")
 13314  	if res != nil && res.StatusCode == http.StatusNotModified {
 13315  		if res.Body != nil {
 13316  			res.Body.Close()
 13317  		}
 13318  		return nil, gensupport.WrapError(&googleapi.Error{
 13319  			Code:   res.StatusCode,
 13320  			Header: res.Header,
 13321  		})
 13322  	}
 13323  	if err != nil {
 13324  		return nil, err
 13325  	}
 13326  	defer googleapi.CloseBody(res)
 13327  	if err := googleapi.CheckResponse(res); err != nil {
 13328  		return nil, gensupport.WrapError(err)
 13329  	}
 13330  	ret := &ListReportsResponse{
 13331  		ServerResponse: googleapi.ServerResponse{
 13332  			Header:         res.Header,
 13333  			HTTPStatusCode: res.StatusCode,
 13334  		},
 13335  	}
 13336  	target := &ret
 13337  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13338  		return nil, err
 13339  	}
 13340  	return ret, nil
 13341  }
 13342  
 13343  // Pages invokes f for each page of results.
 13344  // A non-nil error returned from f will halt the iteration.
 13345  // The provided context supersedes any context provided to the Context method.
 13346  func (c *ProjectsLocationsReportConfigsReportsListCall) Pages(ctx context.Context, f func(*ListReportsResponse) error) error {
 13347  	c.ctx_ = ctx
 13348  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13349  	for {
 13350  		x, err := c.Do()
 13351  		if err != nil {
 13352  			return err
 13353  		}
 13354  		if err := f(x); err != nil {
 13355  			return err
 13356  		}
 13357  		if x.NextPageToken == "" {
 13358  			return nil
 13359  		}
 13360  		c.PageToken(x.NextPageToken)
 13361  	}
 13362  }
 13363  
 13364  type ProjectsLocationsSourcesCreateCall struct {
 13365  	s          *Service
 13366  	parent     string
 13367  	source     *Source
 13368  	urlParams_ gensupport.URLParams
 13369  	ctx_       context.Context
 13370  	header_    http.Header
 13371  }
 13372  
 13373  // Create: Creates a new source in a given project and location.
 13374  //
 13375  // - parent: Value for parent.
 13376  func (r *ProjectsLocationsSourcesService) Create(parent string, source *Source) *ProjectsLocationsSourcesCreateCall {
 13377  	c := &ProjectsLocationsSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13378  	c.parent = parent
 13379  	c.source = source
 13380  	return c
 13381  }
 13382  
 13383  // RequestId sets the optional parameter "requestId": An optional request ID to
 13384  // identify requests. Specify a unique request ID so that if you must retry
 13385  // your request, the server will know to ignore the request if it has already
 13386  // been completed. The server will guarantee that for at least 60 minutes since
 13387  // the first request. For example, consider a situation where you make an
 13388  // initial request and the request times out. If you make the request again
 13389  // with the same request ID, the server can check if original operation with
 13390  // the same request ID was received, and if so, will ignore the second request.
 13391  // This prevents clients from accidentally creating duplicate commitments. The
 13392  // request ID must be a valid UUID with the exception that zero UUID is not
 13393  // supported (00000000-0000-0000-0000-000000000000).
 13394  func (c *ProjectsLocationsSourcesCreateCall) RequestId(requestId string) *ProjectsLocationsSourcesCreateCall {
 13395  	c.urlParams_.Set("requestId", requestId)
 13396  	return c
 13397  }
 13398  
 13399  // SourceId sets the optional parameter "sourceId": Required. User specified ID
 13400  // for the source. It will become the last component of the source name. The ID
 13401  // must be unique within the project, must conform with RFC-1034, is restricted
 13402  // to lower-cased letters, and has a maximum length of 63 characters. The ID
 13403  // must match the regular expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
 13404  func (c *ProjectsLocationsSourcesCreateCall) SourceId(sourceId string) *ProjectsLocationsSourcesCreateCall {
 13405  	c.urlParams_.Set("sourceId", sourceId)
 13406  	return c
 13407  }
 13408  
 13409  // Fields allows partial responses to be retrieved. See
 13410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13411  // details.
 13412  func (c *ProjectsLocationsSourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesCreateCall {
 13413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13414  	return c
 13415  }
 13416  
 13417  // Context sets the context to be used in this call's Do method.
 13418  func (c *ProjectsLocationsSourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsSourcesCreateCall {
 13419  	c.ctx_ = ctx
 13420  	return c
 13421  }
 13422  
 13423  // Header returns a http.Header that can be modified by the caller to add
 13424  // headers to the request.
 13425  func (c *ProjectsLocationsSourcesCreateCall) Header() http.Header {
 13426  	if c.header_ == nil {
 13427  		c.header_ = make(http.Header)
 13428  	}
 13429  	return c.header_
 13430  }
 13431  
 13432  func (c *ProjectsLocationsSourcesCreateCall) doRequest(alt string) (*http.Response, error) {
 13433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13434  	var body io.Reader = nil
 13435  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.source)
 13436  	if err != nil {
 13437  		return nil, err
 13438  	}
 13439  	c.urlParams_.Set("alt", alt)
 13440  	c.urlParams_.Set("prettyPrint", "false")
 13441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/sources")
 13442  	urls += "?" + c.urlParams_.Encode()
 13443  	req, err := http.NewRequest("POST", urls, body)
 13444  	if err != nil {
 13445  		return nil, err
 13446  	}
 13447  	req.Header = reqHeaders
 13448  	googleapi.Expand(req.URL, map[string]string{
 13449  		"parent": c.parent,
 13450  	})
 13451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13452  }
 13453  
 13454  // Do executes the "migrationcenter.projects.locations.sources.create" call.
 13455  // Any non-2xx status code is an error. Response headers are in either
 13456  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 13457  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13458  // whether the returned error was because http.StatusNotModified was returned.
 13459  func (c *ProjectsLocationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 13460  	gensupport.SetOptions(c.urlParams_, opts...)
 13461  	res, err := c.doRequest("json")
 13462  	if res != nil && res.StatusCode == http.StatusNotModified {
 13463  		if res.Body != nil {
 13464  			res.Body.Close()
 13465  		}
 13466  		return nil, gensupport.WrapError(&googleapi.Error{
 13467  			Code:   res.StatusCode,
 13468  			Header: res.Header,
 13469  		})
 13470  	}
 13471  	if err != nil {
 13472  		return nil, err
 13473  	}
 13474  	defer googleapi.CloseBody(res)
 13475  	if err := googleapi.CheckResponse(res); err != nil {
 13476  		return nil, gensupport.WrapError(err)
 13477  	}
 13478  	ret := &Operation{
 13479  		ServerResponse: googleapi.ServerResponse{
 13480  			Header:         res.Header,
 13481  			HTTPStatusCode: res.StatusCode,
 13482  		},
 13483  	}
 13484  	target := &ret
 13485  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13486  		return nil, err
 13487  	}
 13488  	return ret, nil
 13489  }
 13490  
 13491  type ProjectsLocationsSourcesDeleteCall struct {
 13492  	s          *Service
 13493  	name       string
 13494  	urlParams_ gensupport.URLParams
 13495  	ctx_       context.Context
 13496  	header_    http.Header
 13497  }
 13498  
 13499  // Delete: Deletes a source.
 13500  //
 13501  // - name: Name of the resource.
 13502  func (r *ProjectsLocationsSourcesService) Delete(name string) *ProjectsLocationsSourcesDeleteCall {
 13503  	c := &ProjectsLocationsSourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13504  	c.name = name
 13505  	return c
 13506  }
 13507  
 13508  // RequestId sets the optional parameter "requestId": An optional request ID to
 13509  // identify requests. Specify a unique request ID so that if you must retry
 13510  // your request, the server will know to ignore the request if it has already
 13511  // been completed. The server will guarantee that for at least 60 minutes after
 13512  // the first request. For example, consider a situation where you make an
 13513  // initial request and the request times out. If you make the request again
 13514  // with the same request ID, the server can check if original operation with
 13515  // the same request ID was received, and if so, will ignore the second request.
 13516  // This prevents clients from accidentally creating duplicate commitments. The
 13517  // request ID must be a valid UUID with the exception that zero UUID is not
 13518  // supported (00000000-0000-0000-0000-000000000000).
 13519  func (c *ProjectsLocationsSourcesDeleteCall) RequestId(requestId string) *ProjectsLocationsSourcesDeleteCall {
 13520  	c.urlParams_.Set("requestId", requestId)
 13521  	return c
 13522  }
 13523  
 13524  // Fields allows partial responses to be retrieved. See
 13525  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13526  // details.
 13527  func (c *ProjectsLocationsSourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDeleteCall {
 13528  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13529  	return c
 13530  }
 13531  
 13532  // Context sets the context to be used in this call's Do method.
 13533  func (c *ProjectsLocationsSourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSourcesDeleteCall {
 13534  	c.ctx_ = ctx
 13535  	return c
 13536  }
 13537  
 13538  // Header returns a http.Header that can be modified by the caller to add
 13539  // headers to the request.
 13540  func (c *ProjectsLocationsSourcesDeleteCall) Header() http.Header {
 13541  	if c.header_ == nil {
 13542  		c.header_ = make(http.Header)
 13543  	}
 13544  	return c.header_
 13545  }
 13546  
 13547  func (c *ProjectsLocationsSourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
 13548  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13549  	var body io.Reader = nil
 13550  	c.urlParams_.Set("alt", alt)
 13551  	c.urlParams_.Set("prettyPrint", "false")
 13552  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 13553  	urls += "?" + c.urlParams_.Encode()
 13554  	req, err := http.NewRequest("DELETE", urls, body)
 13555  	if err != nil {
 13556  		return nil, err
 13557  	}
 13558  	req.Header = reqHeaders
 13559  	googleapi.Expand(req.URL, map[string]string{
 13560  		"name": c.name,
 13561  	})
 13562  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13563  }
 13564  
 13565  // Do executes the "migrationcenter.projects.locations.sources.delete" call.
 13566  // Any non-2xx status code is an error. Response headers are in either
 13567  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 13568  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13569  // whether the returned error was because http.StatusNotModified was returned.
 13570  func (c *ProjectsLocationsSourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 13571  	gensupport.SetOptions(c.urlParams_, opts...)
 13572  	res, err := c.doRequest("json")
 13573  	if res != nil && res.StatusCode == http.StatusNotModified {
 13574  		if res.Body != nil {
 13575  			res.Body.Close()
 13576  		}
 13577  		return nil, gensupport.WrapError(&googleapi.Error{
 13578  			Code:   res.StatusCode,
 13579  			Header: res.Header,
 13580  		})
 13581  	}
 13582  	if err != nil {
 13583  		return nil, err
 13584  	}
 13585  	defer googleapi.CloseBody(res)
 13586  	if err := googleapi.CheckResponse(res); err != nil {
 13587  		return nil, gensupport.WrapError(err)
 13588  	}
 13589  	ret := &Operation{
 13590  		ServerResponse: googleapi.ServerResponse{
 13591  			Header:         res.Header,
 13592  			HTTPStatusCode: res.StatusCode,
 13593  		},
 13594  	}
 13595  	target := &ret
 13596  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13597  		return nil, err
 13598  	}
 13599  	return ret, nil
 13600  }
 13601  
 13602  type ProjectsLocationsSourcesGetCall struct {
 13603  	s            *Service
 13604  	name         string
 13605  	urlParams_   gensupport.URLParams
 13606  	ifNoneMatch_ string
 13607  	ctx_         context.Context
 13608  	header_      http.Header
 13609  }
 13610  
 13611  // Get: Gets the details of a source.
 13612  //
 13613  // - name: Name of the resource.
 13614  func (r *ProjectsLocationsSourcesService) Get(name string) *ProjectsLocationsSourcesGetCall {
 13615  	c := &ProjectsLocationsSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13616  	c.name = name
 13617  	return c
 13618  }
 13619  
 13620  // Fields allows partial responses to be retrieved. See
 13621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13622  // details.
 13623  func (c *ProjectsLocationsSourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesGetCall {
 13624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13625  	return c
 13626  }
 13627  
 13628  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13629  // object's ETag matches the given value. This is useful for getting updates
 13630  // only after the object has changed since the last request.
 13631  func (c *ProjectsLocationsSourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesGetCall {
 13632  	c.ifNoneMatch_ = entityTag
 13633  	return c
 13634  }
 13635  
 13636  // Context sets the context to be used in this call's Do method.
 13637  func (c *ProjectsLocationsSourcesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesGetCall {
 13638  	c.ctx_ = ctx
 13639  	return c
 13640  }
 13641  
 13642  // Header returns a http.Header that can be modified by the caller to add
 13643  // headers to the request.
 13644  func (c *ProjectsLocationsSourcesGetCall) Header() http.Header {
 13645  	if c.header_ == nil {
 13646  		c.header_ = make(http.Header)
 13647  	}
 13648  	return c.header_
 13649  }
 13650  
 13651  func (c *ProjectsLocationsSourcesGetCall) doRequest(alt string) (*http.Response, error) {
 13652  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13653  	if c.ifNoneMatch_ != "" {
 13654  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13655  	}
 13656  	var body io.Reader = nil
 13657  	c.urlParams_.Set("alt", alt)
 13658  	c.urlParams_.Set("prettyPrint", "false")
 13659  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 13660  	urls += "?" + c.urlParams_.Encode()
 13661  	req, err := http.NewRequest("GET", urls, body)
 13662  	if err != nil {
 13663  		return nil, err
 13664  	}
 13665  	req.Header = reqHeaders
 13666  	googleapi.Expand(req.URL, map[string]string{
 13667  		"name": c.name,
 13668  	})
 13669  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13670  }
 13671  
 13672  // Do executes the "migrationcenter.projects.locations.sources.get" call.
 13673  // Any non-2xx status code is an error. Response headers are in either
 13674  // *Source.ServerResponse.Header or (if a response was returned at all) in
 13675  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13676  // whether the returned error was because http.StatusNotModified was returned.
 13677  func (c *ProjectsLocationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error) {
 13678  	gensupport.SetOptions(c.urlParams_, opts...)
 13679  	res, err := c.doRequest("json")
 13680  	if res != nil && res.StatusCode == http.StatusNotModified {
 13681  		if res.Body != nil {
 13682  			res.Body.Close()
 13683  		}
 13684  		return nil, gensupport.WrapError(&googleapi.Error{
 13685  			Code:   res.StatusCode,
 13686  			Header: res.Header,
 13687  		})
 13688  	}
 13689  	if err != nil {
 13690  		return nil, err
 13691  	}
 13692  	defer googleapi.CloseBody(res)
 13693  	if err := googleapi.CheckResponse(res); err != nil {
 13694  		return nil, gensupport.WrapError(err)
 13695  	}
 13696  	ret := &Source{
 13697  		ServerResponse: googleapi.ServerResponse{
 13698  			Header:         res.Header,
 13699  			HTTPStatusCode: res.StatusCode,
 13700  		},
 13701  	}
 13702  	target := &ret
 13703  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13704  		return nil, err
 13705  	}
 13706  	return ret, nil
 13707  }
 13708  
 13709  type ProjectsLocationsSourcesListCall struct {
 13710  	s            *Service
 13711  	parent       string
 13712  	urlParams_   gensupport.URLParams
 13713  	ifNoneMatch_ string
 13714  	ctx_         context.Context
 13715  	header_      http.Header
 13716  }
 13717  
 13718  // List: Lists all the sources in a given project and location.
 13719  //
 13720  // - parent: Parent value for `ListSourcesRequest`.
 13721  func (r *ProjectsLocationsSourcesService) List(parent string) *ProjectsLocationsSourcesListCall {
 13722  	c := &ProjectsLocationsSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13723  	c.parent = parent
 13724  	return c
 13725  }
 13726  
 13727  // Filter sets the optional parameter "filter": Filtering results.
 13728  func (c *ProjectsLocationsSourcesListCall) Filter(filter string) *ProjectsLocationsSourcesListCall {
 13729  	c.urlParams_.Set("filter", filter)
 13730  	return c
 13731  }
 13732  
 13733  // OrderBy sets the optional parameter "orderBy": Field to sort by. See
 13734  // https://google.aip.dev/132#ordering for more details.
 13735  func (c *ProjectsLocationsSourcesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesListCall {
 13736  	c.urlParams_.Set("orderBy", orderBy)
 13737  	return c
 13738  }
 13739  
 13740  // PageSize sets the optional parameter "pageSize": Requested page size. The
 13741  // server may return fewer items than requested. If unspecified, the server
 13742  // will pick an appropriate default value.
 13743  func (c *ProjectsLocationsSourcesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesListCall {
 13744  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13745  	return c
 13746  }
 13747  
 13748  // PageToken sets the optional parameter "pageToken": A token identifying a
 13749  // page of results that the server should return.
 13750  func (c *ProjectsLocationsSourcesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesListCall {
 13751  	c.urlParams_.Set("pageToken", pageToken)
 13752  	return c
 13753  }
 13754  
 13755  // Fields allows partial responses to be retrieved. See
 13756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13757  // details.
 13758  func (c *ProjectsLocationsSourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesListCall {
 13759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13760  	return c
 13761  }
 13762  
 13763  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13764  // object's ETag matches the given value. This is useful for getting updates
 13765  // only after the object has changed since the last request.
 13766  func (c *ProjectsLocationsSourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesListCall {
 13767  	c.ifNoneMatch_ = entityTag
 13768  	return c
 13769  }
 13770  
 13771  // Context sets the context to be used in this call's Do method.
 13772  func (c *ProjectsLocationsSourcesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesListCall {
 13773  	c.ctx_ = ctx
 13774  	return c
 13775  }
 13776  
 13777  // Header returns a http.Header that can be modified by the caller to add
 13778  // headers to the request.
 13779  func (c *ProjectsLocationsSourcesListCall) Header() http.Header {
 13780  	if c.header_ == nil {
 13781  		c.header_ = make(http.Header)
 13782  	}
 13783  	return c.header_
 13784  }
 13785  
 13786  func (c *ProjectsLocationsSourcesListCall) doRequest(alt string) (*http.Response, error) {
 13787  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13788  	if c.ifNoneMatch_ != "" {
 13789  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13790  	}
 13791  	var body io.Reader = nil
 13792  	c.urlParams_.Set("alt", alt)
 13793  	c.urlParams_.Set("prettyPrint", "false")
 13794  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/sources")
 13795  	urls += "?" + c.urlParams_.Encode()
 13796  	req, err := http.NewRequest("GET", urls, body)
 13797  	if err != nil {
 13798  		return nil, err
 13799  	}
 13800  	req.Header = reqHeaders
 13801  	googleapi.Expand(req.URL, map[string]string{
 13802  		"parent": c.parent,
 13803  	})
 13804  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13805  }
 13806  
 13807  // Do executes the "migrationcenter.projects.locations.sources.list" call.
 13808  // Any non-2xx status code is an error. Response headers are in either
 13809  // *ListSourcesResponse.ServerResponse.Header or (if a response was returned at
 13810  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13811  // check whether the returned error was because http.StatusNotModified was
 13812  // returned.
 13813  func (c *ProjectsLocationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error) {
 13814  	gensupport.SetOptions(c.urlParams_, opts...)
 13815  	res, err := c.doRequest("json")
 13816  	if res != nil && res.StatusCode == http.StatusNotModified {
 13817  		if res.Body != nil {
 13818  			res.Body.Close()
 13819  		}
 13820  		return nil, gensupport.WrapError(&googleapi.Error{
 13821  			Code:   res.StatusCode,
 13822  			Header: res.Header,
 13823  		})
 13824  	}
 13825  	if err != nil {
 13826  		return nil, err
 13827  	}
 13828  	defer googleapi.CloseBody(res)
 13829  	if err := googleapi.CheckResponse(res); err != nil {
 13830  		return nil, gensupport.WrapError(err)
 13831  	}
 13832  	ret := &ListSourcesResponse{
 13833  		ServerResponse: googleapi.ServerResponse{
 13834  			Header:         res.Header,
 13835  			HTTPStatusCode: res.StatusCode,
 13836  		},
 13837  	}
 13838  	target := &ret
 13839  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13840  		return nil, err
 13841  	}
 13842  	return ret, nil
 13843  }
 13844  
 13845  // Pages invokes f for each page of results.
 13846  // A non-nil error returned from f will halt the iteration.
 13847  // The provided context supersedes any context provided to the Context method.
 13848  func (c *ProjectsLocationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error {
 13849  	c.ctx_ = ctx
 13850  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13851  	for {
 13852  		x, err := c.Do()
 13853  		if err != nil {
 13854  			return err
 13855  		}
 13856  		if err := f(x); err != nil {
 13857  			return err
 13858  		}
 13859  		if x.NextPageToken == "" {
 13860  			return nil
 13861  		}
 13862  		c.PageToken(x.NextPageToken)
 13863  	}
 13864  }
 13865  
 13866  type ProjectsLocationsSourcesPatchCall struct {
 13867  	s          *Service
 13868  	name       string
 13869  	source     *Source
 13870  	urlParams_ gensupport.URLParams
 13871  	ctx_       context.Context
 13872  	header_    http.Header
 13873  }
 13874  
 13875  // Patch: Updates the parameters of a source.
 13876  //
 13877  // - name: Output only. The full name of the source.
 13878  func (r *ProjectsLocationsSourcesService) Patch(name string, source *Source) *ProjectsLocationsSourcesPatchCall {
 13879  	c := &ProjectsLocationsSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13880  	c.name = name
 13881  	c.source = source
 13882  	return c
 13883  }
 13884  
 13885  // RequestId sets the optional parameter "requestId": An optional request ID to
 13886  // identify requests. Specify a unique request ID so that if you must retry
 13887  // your request, the server will know to ignore the request if it has already
 13888  // been completed. The server will guarantee that for at least 60 minutes since
 13889  // the first request. For example, consider a situation where you make an
 13890  // initial request and the request times out. If you make the request again
 13891  // with the same request ID, the server can check if original operation with
 13892  // the same request ID was received, and if so, will ignore the second request.
 13893  // This prevents clients from accidentally creating duplicate commitments. The
 13894  // request ID must be a valid UUID with the exception that zero UUID is not
 13895  // supported (00000000-0000-0000-0000-000000000000).
 13896  func (c *ProjectsLocationsSourcesPatchCall) RequestId(requestId string) *ProjectsLocationsSourcesPatchCall {
 13897  	c.urlParams_.Set("requestId", requestId)
 13898  	return c
 13899  }
 13900  
 13901  // UpdateMask sets the optional parameter "updateMask": Required. Field mask is
 13902  // used to specify the fields to be overwritten in the `Source` resource by the
 13903  // update. The values specified in the `update_mask` field are relative to the
 13904  // resource, not the full request. A field will be overwritten if it is in the
 13905  // mask. A single * value in the mask lets you to overwrite all fields.
 13906  func (c *ProjectsLocationsSourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSourcesPatchCall {
 13907  	c.urlParams_.Set("updateMask", updateMask)
 13908  	return c
 13909  }
 13910  
 13911  // Fields allows partial responses to be retrieved. See
 13912  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13913  // details.
 13914  func (c *ProjectsLocationsSourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesPatchCall {
 13915  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13916  	return c
 13917  }
 13918  
 13919  // Context sets the context to be used in this call's Do method.
 13920  func (c *ProjectsLocationsSourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsSourcesPatchCall {
 13921  	c.ctx_ = ctx
 13922  	return c
 13923  }
 13924  
 13925  // Header returns a http.Header that can be modified by the caller to add
 13926  // headers to the request.
 13927  func (c *ProjectsLocationsSourcesPatchCall) Header() http.Header {
 13928  	if c.header_ == nil {
 13929  		c.header_ = make(http.Header)
 13930  	}
 13931  	return c.header_
 13932  }
 13933  
 13934  func (c *ProjectsLocationsSourcesPatchCall) doRequest(alt string) (*http.Response, error) {
 13935  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13936  	var body io.Reader = nil
 13937  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.source)
 13938  	if err != nil {
 13939  		return nil, err
 13940  	}
 13941  	c.urlParams_.Set("alt", alt)
 13942  	c.urlParams_.Set("prettyPrint", "false")
 13943  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 13944  	urls += "?" + c.urlParams_.Encode()
 13945  	req, err := http.NewRequest("PATCH", urls, body)
 13946  	if err != nil {
 13947  		return nil, err
 13948  	}
 13949  	req.Header = reqHeaders
 13950  	googleapi.Expand(req.URL, map[string]string{
 13951  		"name": c.name,
 13952  	})
 13953  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13954  }
 13955  
 13956  // Do executes the "migrationcenter.projects.locations.sources.patch" call.
 13957  // Any non-2xx status code is an error. Response headers are in either
 13958  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 13959  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13960  // whether the returned error was because http.StatusNotModified was returned.
 13961  func (c *ProjectsLocationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 13962  	gensupport.SetOptions(c.urlParams_, opts...)
 13963  	res, err := c.doRequest("json")
 13964  	if res != nil && res.StatusCode == http.StatusNotModified {
 13965  		if res.Body != nil {
 13966  			res.Body.Close()
 13967  		}
 13968  		return nil, gensupport.WrapError(&googleapi.Error{
 13969  			Code:   res.StatusCode,
 13970  			Header: res.Header,
 13971  		})
 13972  	}
 13973  	if err != nil {
 13974  		return nil, err
 13975  	}
 13976  	defer googleapi.CloseBody(res)
 13977  	if err := googleapi.CheckResponse(res); err != nil {
 13978  		return nil, gensupport.WrapError(err)
 13979  	}
 13980  	ret := &Operation{
 13981  		ServerResponse: googleapi.ServerResponse{
 13982  			Header:         res.Header,
 13983  			HTTPStatusCode: res.StatusCode,
 13984  		},
 13985  	}
 13986  	target := &ret
 13987  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13988  		return nil, err
 13989  	}
 13990  	return ret, nil
 13991  }
 13992  
 13993  type ProjectsLocationsSourcesErrorFramesGetCall struct {
 13994  	s            *Service
 13995  	name         string
 13996  	urlParams_   gensupport.URLParams
 13997  	ifNoneMatch_ string
 13998  	ctx_         context.Context
 13999  	header_      http.Header
 14000  }
 14001  
 14002  // Get: Gets the details of an error frame.
 14003  //
 14004  //   - name: The name of the frame to retrieve. Format:
 14005  //     projects/{project}/locations/{location}/sources/{source}/errorFrames/{error
 14006  //     _frame}.
 14007  func (r *ProjectsLocationsSourcesErrorFramesService) Get(name string) *ProjectsLocationsSourcesErrorFramesGetCall {
 14008  	c := &ProjectsLocationsSourcesErrorFramesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14009  	c.name = name
 14010  	return c
 14011  }
 14012  
 14013  // View sets the optional parameter "view": An optional view mode to control
 14014  // the level of details for the frame. The default is a basic frame view.
 14015  //
 14016  // Possible values:
 14017  //
 14018  //	"ERROR_FRAME_VIEW_UNSPECIFIED" - Value is unset. The system will fallback
 14019  //
 14020  // to the default value.
 14021  //
 14022  //	"ERROR_FRAME_VIEW_BASIC" - Include basic frame data, but not the full
 14023  //
 14024  // contents.
 14025  //
 14026  //	"ERROR_FRAME_VIEW_FULL" - Include everything.
 14027  func (c *ProjectsLocationsSourcesErrorFramesGetCall) View(view string) *ProjectsLocationsSourcesErrorFramesGetCall {
 14028  	c.urlParams_.Set("view", view)
 14029  	return c
 14030  }
 14031  
 14032  // Fields allows partial responses to be retrieved. See
 14033  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14034  // details.
 14035  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesErrorFramesGetCall {
 14036  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14037  	return c
 14038  }
 14039  
 14040  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14041  // object's ETag matches the given value. This is useful for getting updates
 14042  // only after the object has changed since the last request.
 14043  func (c *ProjectsLocationsSourcesErrorFramesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesErrorFramesGetCall {
 14044  	c.ifNoneMatch_ = entityTag
 14045  	return c
 14046  }
 14047  
 14048  // Context sets the context to be used in this call's Do method.
 14049  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesErrorFramesGetCall {
 14050  	c.ctx_ = ctx
 14051  	return c
 14052  }
 14053  
 14054  // Header returns a http.Header that can be modified by the caller to add
 14055  // headers to the request.
 14056  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Header() http.Header {
 14057  	if c.header_ == nil {
 14058  		c.header_ = make(http.Header)
 14059  	}
 14060  	return c.header_
 14061  }
 14062  
 14063  func (c *ProjectsLocationsSourcesErrorFramesGetCall) doRequest(alt string) (*http.Response, error) {
 14064  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14065  	if c.ifNoneMatch_ != "" {
 14066  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14067  	}
 14068  	var body io.Reader = nil
 14069  	c.urlParams_.Set("alt", alt)
 14070  	c.urlParams_.Set("prettyPrint", "false")
 14071  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
 14072  	urls += "?" + c.urlParams_.Encode()
 14073  	req, err := http.NewRequest("GET", urls, body)
 14074  	if err != nil {
 14075  		return nil, err
 14076  	}
 14077  	req.Header = reqHeaders
 14078  	googleapi.Expand(req.URL, map[string]string{
 14079  		"name": c.name,
 14080  	})
 14081  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14082  }
 14083  
 14084  // Do executes the "migrationcenter.projects.locations.sources.errorFrames.get" call.
 14085  // Any non-2xx status code is an error. Response headers are in either
 14086  // *ErrorFrame.ServerResponse.Header or (if a response was returned at all) in
 14087  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14088  // whether the returned error was because http.StatusNotModified was returned.
 14089  func (c *ProjectsLocationsSourcesErrorFramesGetCall) Do(opts ...googleapi.CallOption) (*ErrorFrame, error) {
 14090  	gensupport.SetOptions(c.urlParams_, opts...)
 14091  	res, err := c.doRequest("json")
 14092  	if res != nil && res.StatusCode == http.StatusNotModified {
 14093  		if res.Body != nil {
 14094  			res.Body.Close()
 14095  		}
 14096  		return nil, gensupport.WrapError(&googleapi.Error{
 14097  			Code:   res.StatusCode,
 14098  			Header: res.Header,
 14099  		})
 14100  	}
 14101  	if err != nil {
 14102  		return nil, err
 14103  	}
 14104  	defer googleapi.CloseBody(res)
 14105  	if err := googleapi.CheckResponse(res); err != nil {
 14106  		return nil, gensupport.WrapError(err)
 14107  	}
 14108  	ret := &ErrorFrame{
 14109  		ServerResponse: googleapi.ServerResponse{
 14110  			Header:         res.Header,
 14111  			HTTPStatusCode: res.StatusCode,
 14112  		},
 14113  	}
 14114  	target := &ret
 14115  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14116  		return nil, err
 14117  	}
 14118  	return ret, nil
 14119  }
 14120  
 14121  type ProjectsLocationsSourcesErrorFramesListCall struct {
 14122  	s            *Service
 14123  	parent       string
 14124  	urlParams_   gensupport.URLParams
 14125  	ifNoneMatch_ string
 14126  	ctx_         context.Context
 14127  	header_      http.Header
 14128  }
 14129  
 14130  // List: Lists all error frames in a given source and location.
 14131  //
 14132  // - parent: Parent value (the source) for `ListErrorFramesRequest`.
 14133  func (r *ProjectsLocationsSourcesErrorFramesService) List(parent string) *ProjectsLocationsSourcesErrorFramesListCall {
 14134  	c := &ProjectsLocationsSourcesErrorFramesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14135  	c.parent = parent
 14136  	return c
 14137  }
 14138  
 14139  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 14140  // may return fewer items than requested. If unspecified, server will pick an
 14141  // appropriate default.
 14142  func (c *ProjectsLocationsSourcesErrorFramesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesErrorFramesListCall {
 14143  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14144  	return c
 14145  }
 14146  
 14147  // PageToken sets the optional parameter "pageToken": A token identifying a
 14148  // page of results the server should return.
 14149  func (c *ProjectsLocationsSourcesErrorFramesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesErrorFramesListCall {
 14150  	c.urlParams_.Set("pageToken", pageToken)
 14151  	return c
 14152  }
 14153  
 14154  // View sets the optional parameter "view": An optional view mode to control
 14155  // the level of details of each error frame. The default is a BASIC frame view.
 14156  //
 14157  // Possible values:
 14158  //
 14159  //	"ERROR_FRAME_VIEW_UNSPECIFIED" - Value is unset. The system will fallback
 14160  //
 14161  // to the default value.
 14162  //
 14163  //	"ERROR_FRAME_VIEW_BASIC" - Include basic frame data, but not the full
 14164  //
 14165  // contents.
 14166  //
 14167  //	"ERROR_FRAME_VIEW_FULL" - Include everything.
 14168  func (c *ProjectsLocationsSourcesErrorFramesListCall) View(view string) *ProjectsLocationsSourcesErrorFramesListCall {
 14169  	c.urlParams_.Set("view", view)
 14170  	return c
 14171  }
 14172  
 14173  // Fields allows partial responses to be retrieved. See
 14174  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14175  // details.
 14176  func (c *ProjectsLocationsSourcesErrorFramesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesErrorFramesListCall {
 14177  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14178  	return c
 14179  }
 14180  
 14181  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14182  // object's ETag matches the given value. This is useful for getting updates
 14183  // only after the object has changed since the last request.
 14184  func (c *ProjectsLocationsSourcesErrorFramesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesErrorFramesListCall {
 14185  	c.ifNoneMatch_ = entityTag
 14186  	return c
 14187  }
 14188  
 14189  // Context sets the context to be used in this call's Do method.
 14190  func (c *ProjectsLocationsSourcesErrorFramesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesErrorFramesListCall {
 14191  	c.ctx_ = ctx
 14192  	return c
 14193  }
 14194  
 14195  // Header returns a http.Header that can be modified by the caller to add
 14196  // headers to the request.
 14197  func (c *ProjectsLocationsSourcesErrorFramesListCall) Header() http.Header {
 14198  	if c.header_ == nil {
 14199  		c.header_ = make(http.Header)
 14200  	}
 14201  	return c.header_
 14202  }
 14203  
 14204  func (c *ProjectsLocationsSourcesErrorFramesListCall) doRequest(alt string) (*http.Response, error) {
 14205  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14206  	if c.ifNoneMatch_ != "" {
 14207  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14208  	}
 14209  	var body io.Reader = nil
 14210  	c.urlParams_.Set("alt", alt)
 14211  	c.urlParams_.Set("prettyPrint", "false")
 14212  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/errorFrames")
 14213  	urls += "?" + c.urlParams_.Encode()
 14214  	req, err := http.NewRequest("GET", urls, body)
 14215  	if err != nil {
 14216  		return nil, err
 14217  	}
 14218  	req.Header = reqHeaders
 14219  	googleapi.Expand(req.URL, map[string]string{
 14220  		"parent": c.parent,
 14221  	})
 14222  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14223  }
 14224  
 14225  // Do executes the "migrationcenter.projects.locations.sources.errorFrames.list" call.
 14226  // Any non-2xx status code is an error. Response headers are in either
 14227  // *ListErrorFramesResponse.ServerResponse.Header or (if a response was
 14228  // returned at all) in error.(*googleapi.Error).Header. Use
 14229  // googleapi.IsNotModified to check whether the returned error was because
 14230  // http.StatusNotModified was returned.
 14231  func (c *ProjectsLocationsSourcesErrorFramesListCall) Do(opts ...googleapi.CallOption) (*ListErrorFramesResponse, error) {
 14232  	gensupport.SetOptions(c.urlParams_, opts...)
 14233  	res, err := c.doRequest("json")
 14234  	if res != nil && res.StatusCode == http.StatusNotModified {
 14235  		if res.Body != nil {
 14236  			res.Body.Close()
 14237  		}
 14238  		return nil, gensupport.WrapError(&googleapi.Error{
 14239  			Code:   res.StatusCode,
 14240  			Header: res.Header,
 14241  		})
 14242  	}
 14243  	if err != nil {
 14244  		return nil, err
 14245  	}
 14246  	defer googleapi.CloseBody(res)
 14247  	if err := googleapi.CheckResponse(res); err != nil {
 14248  		return nil, gensupport.WrapError(err)
 14249  	}
 14250  	ret := &ListErrorFramesResponse{
 14251  		ServerResponse: googleapi.ServerResponse{
 14252  			Header:         res.Header,
 14253  			HTTPStatusCode: res.StatusCode,
 14254  		},
 14255  	}
 14256  	target := &ret
 14257  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14258  		return nil, err
 14259  	}
 14260  	return ret, nil
 14261  }
 14262  
 14263  // Pages invokes f for each page of results.
 14264  // A non-nil error returned from f will halt the iteration.
 14265  // The provided context supersedes any context provided to the Context method.
 14266  func (c *ProjectsLocationsSourcesErrorFramesListCall) Pages(ctx context.Context, f func(*ListErrorFramesResponse) error) error {
 14267  	c.ctx_ = ctx
 14268  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14269  	for {
 14270  		x, err := c.Do()
 14271  		if err != nil {
 14272  			return err
 14273  		}
 14274  		if err := f(x); err != nil {
 14275  			return err
 14276  		}
 14277  		if x.NextPageToken == "" {
 14278  			return nil
 14279  		}
 14280  		c.PageToken(x.NextPageToken)
 14281  	}
 14282  }
 14283  

View as plain text