...

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

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

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package dataplex provides access to the Cloud Dataplex API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/dataplex/docs
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/dataplex/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	dataplexService, err := dataplex.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  //	dataplexService, err := dataplex.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  //	dataplexService, err := dataplex.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package dataplex // import "google.golang.org/api/dataplex/v1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "dataplex:v1"
    90  const apiName = "dataplex"
    91  const apiVersion = "v1"
    92  const basePath = "https://dataplex.googleapis.com/"
    93  const basePathTemplate = "https://dataplex.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://dataplex.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.AspectTypes = NewProjectsLocationsAspectTypesService(s)
   172  	rs.DataAttributeBindings = NewProjectsLocationsDataAttributeBindingsService(s)
   173  	rs.DataScans = NewProjectsLocationsDataScansService(s)
   174  	rs.DataTaxonomies = NewProjectsLocationsDataTaxonomiesService(s)
   175  	rs.EntryGroups = NewProjectsLocationsEntryGroupsService(s)
   176  	rs.EntryTypes = NewProjectsLocationsEntryTypesService(s)
   177  	rs.GovernanceRules = NewProjectsLocationsGovernanceRulesService(s)
   178  	rs.Lakes = NewProjectsLocationsLakesService(s)
   179  	rs.Operations = NewProjectsLocationsOperationsService(s)
   180  	return rs
   181  }
   182  
   183  type ProjectsLocationsService struct {
   184  	s *Service
   185  
   186  	AspectTypes *ProjectsLocationsAspectTypesService
   187  
   188  	DataAttributeBindings *ProjectsLocationsDataAttributeBindingsService
   189  
   190  	DataScans *ProjectsLocationsDataScansService
   191  
   192  	DataTaxonomies *ProjectsLocationsDataTaxonomiesService
   193  
   194  	EntryGroups *ProjectsLocationsEntryGroupsService
   195  
   196  	EntryTypes *ProjectsLocationsEntryTypesService
   197  
   198  	GovernanceRules *ProjectsLocationsGovernanceRulesService
   199  
   200  	Lakes *ProjectsLocationsLakesService
   201  
   202  	Operations *ProjectsLocationsOperationsService
   203  }
   204  
   205  func NewProjectsLocationsAspectTypesService(s *Service) *ProjectsLocationsAspectTypesService {
   206  	rs := &ProjectsLocationsAspectTypesService{s: s}
   207  	return rs
   208  }
   209  
   210  type ProjectsLocationsAspectTypesService struct {
   211  	s *Service
   212  }
   213  
   214  func NewProjectsLocationsDataAttributeBindingsService(s *Service) *ProjectsLocationsDataAttributeBindingsService {
   215  	rs := &ProjectsLocationsDataAttributeBindingsService{s: s}
   216  	return rs
   217  }
   218  
   219  type ProjectsLocationsDataAttributeBindingsService struct {
   220  	s *Service
   221  }
   222  
   223  func NewProjectsLocationsDataScansService(s *Service) *ProjectsLocationsDataScansService {
   224  	rs := &ProjectsLocationsDataScansService{s: s}
   225  	rs.Jobs = NewProjectsLocationsDataScansJobsService(s)
   226  	return rs
   227  }
   228  
   229  type ProjectsLocationsDataScansService struct {
   230  	s *Service
   231  
   232  	Jobs *ProjectsLocationsDataScansJobsService
   233  }
   234  
   235  func NewProjectsLocationsDataScansJobsService(s *Service) *ProjectsLocationsDataScansJobsService {
   236  	rs := &ProjectsLocationsDataScansJobsService{s: s}
   237  	return rs
   238  }
   239  
   240  type ProjectsLocationsDataScansJobsService struct {
   241  	s *Service
   242  }
   243  
   244  func NewProjectsLocationsDataTaxonomiesService(s *Service) *ProjectsLocationsDataTaxonomiesService {
   245  	rs := &ProjectsLocationsDataTaxonomiesService{s: s}
   246  	rs.Attributes = NewProjectsLocationsDataTaxonomiesAttributesService(s)
   247  	return rs
   248  }
   249  
   250  type ProjectsLocationsDataTaxonomiesService struct {
   251  	s *Service
   252  
   253  	Attributes *ProjectsLocationsDataTaxonomiesAttributesService
   254  }
   255  
   256  func NewProjectsLocationsDataTaxonomiesAttributesService(s *Service) *ProjectsLocationsDataTaxonomiesAttributesService {
   257  	rs := &ProjectsLocationsDataTaxonomiesAttributesService{s: s}
   258  	return rs
   259  }
   260  
   261  type ProjectsLocationsDataTaxonomiesAttributesService struct {
   262  	s *Service
   263  }
   264  
   265  func NewProjectsLocationsEntryGroupsService(s *Service) *ProjectsLocationsEntryGroupsService {
   266  	rs := &ProjectsLocationsEntryGroupsService{s: s}
   267  	rs.Entries = NewProjectsLocationsEntryGroupsEntriesService(s)
   268  	return rs
   269  }
   270  
   271  type ProjectsLocationsEntryGroupsService struct {
   272  	s *Service
   273  
   274  	Entries *ProjectsLocationsEntryGroupsEntriesService
   275  }
   276  
   277  func NewProjectsLocationsEntryGroupsEntriesService(s *Service) *ProjectsLocationsEntryGroupsEntriesService {
   278  	rs := &ProjectsLocationsEntryGroupsEntriesService{s: s}
   279  	return rs
   280  }
   281  
   282  type ProjectsLocationsEntryGroupsEntriesService struct {
   283  	s *Service
   284  }
   285  
   286  func NewProjectsLocationsEntryTypesService(s *Service) *ProjectsLocationsEntryTypesService {
   287  	rs := &ProjectsLocationsEntryTypesService{s: s}
   288  	return rs
   289  }
   290  
   291  type ProjectsLocationsEntryTypesService struct {
   292  	s *Service
   293  }
   294  
   295  func NewProjectsLocationsGovernanceRulesService(s *Service) *ProjectsLocationsGovernanceRulesService {
   296  	rs := &ProjectsLocationsGovernanceRulesService{s: s}
   297  	return rs
   298  }
   299  
   300  type ProjectsLocationsGovernanceRulesService struct {
   301  	s *Service
   302  }
   303  
   304  func NewProjectsLocationsLakesService(s *Service) *ProjectsLocationsLakesService {
   305  	rs := &ProjectsLocationsLakesService{s: s}
   306  	rs.Actions = NewProjectsLocationsLakesActionsService(s)
   307  	rs.Content = NewProjectsLocationsLakesContentService(s)
   308  	rs.Contentitems = NewProjectsLocationsLakesContentitemsService(s)
   309  	rs.Environments = NewProjectsLocationsLakesEnvironmentsService(s)
   310  	rs.Tasks = NewProjectsLocationsLakesTasksService(s)
   311  	rs.Zones = NewProjectsLocationsLakesZonesService(s)
   312  	return rs
   313  }
   314  
   315  type ProjectsLocationsLakesService struct {
   316  	s *Service
   317  
   318  	Actions *ProjectsLocationsLakesActionsService
   319  
   320  	Content *ProjectsLocationsLakesContentService
   321  
   322  	Contentitems *ProjectsLocationsLakesContentitemsService
   323  
   324  	Environments *ProjectsLocationsLakesEnvironmentsService
   325  
   326  	Tasks *ProjectsLocationsLakesTasksService
   327  
   328  	Zones *ProjectsLocationsLakesZonesService
   329  }
   330  
   331  func NewProjectsLocationsLakesActionsService(s *Service) *ProjectsLocationsLakesActionsService {
   332  	rs := &ProjectsLocationsLakesActionsService{s: s}
   333  	return rs
   334  }
   335  
   336  type ProjectsLocationsLakesActionsService struct {
   337  	s *Service
   338  }
   339  
   340  func NewProjectsLocationsLakesContentService(s *Service) *ProjectsLocationsLakesContentService {
   341  	rs := &ProjectsLocationsLakesContentService{s: s}
   342  	return rs
   343  }
   344  
   345  type ProjectsLocationsLakesContentService struct {
   346  	s *Service
   347  }
   348  
   349  func NewProjectsLocationsLakesContentitemsService(s *Service) *ProjectsLocationsLakesContentitemsService {
   350  	rs := &ProjectsLocationsLakesContentitemsService{s: s}
   351  	return rs
   352  }
   353  
   354  type ProjectsLocationsLakesContentitemsService struct {
   355  	s *Service
   356  }
   357  
   358  func NewProjectsLocationsLakesEnvironmentsService(s *Service) *ProjectsLocationsLakesEnvironmentsService {
   359  	rs := &ProjectsLocationsLakesEnvironmentsService{s: s}
   360  	rs.Sessions = NewProjectsLocationsLakesEnvironmentsSessionsService(s)
   361  	return rs
   362  }
   363  
   364  type ProjectsLocationsLakesEnvironmentsService struct {
   365  	s *Service
   366  
   367  	Sessions *ProjectsLocationsLakesEnvironmentsSessionsService
   368  }
   369  
   370  func NewProjectsLocationsLakesEnvironmentsSessionsService(s *Service) *ProjectsLocationsLakesEnvironmentsSessionsService {
   371  	rs := &ProjectsLocationsLakesEnvironmentsSessionsService{s: s}
   372  	return rs
   373  }
   374  
   375  type ProjectsLocationsLakesEnvironmentsSessionsService struct {
   376  	s *Service
   377  }
   378  
   379  func NewProjectsLocationsLakesTasksService(s *Service) *ProjectsLocationsLakesTasksService {
   380  	rs := &ProjectsLocationsLakesTasksService{s: s}
   381  	rs.Jobs = NewProjectsLocationsLakesTasksJobsService(s)
   382  	return rs
   383  }
   384  
   385  type ProjectsLocationsLakesTasksService struct {
   386  	s *Service
   387  
   388  	Jobs *ProjectsLocationsLakesTasksJobsService
   389  }
   390  
   391  func NewProjectsLocationsLakesTasksJobsService(s *Service) *ProjectsLocationsLakesTasksJobsService {
   392  	rs := &ProjectsLocationsLakesTasksJobsService{s: s}
   393  	return rs
   394  }
   395  
   396  type ProjectsLocationsLakesTasksJobsService struct {
   397  	s *Service
   398  }
   399  
   400  func NewProjectsLocationsLakesZonesService(s *Service) *ProjectsLocationsLakesZonesService {
   401  	rs := &ProjectsLocationsLakesZonesService{s: s}
   402  	rs.Actions = NewProjectsLocationsLakesZonesActionsService(s)
   403  	rs.Assets = NewProjectsLocationsLakesZonesAssetsService(s)
   404  	rs.Entities = NewProjectsLocationsLakesZonesEntitiesService(s)
   405  	return rs
   406  }
   407  
   408  type ProjectsLocationsLakesZonesService struct {
   409  	s *Service
   410  
   411  	Actions *ProjectsLocationsLakesZonesActionsService
   412  
   413  	Assets *ProjectsLocationsLakesZonesAssetsService
   414  
   415  	Entities *ProjectsLocationsLakesZonesEntitiesService
   416  }
   417  
   418  func NewProjectsLocationsLakesZonesActionsService(s *Service) *ProjectsLocationsLakesZonesActionsService {
   419  	rs := &ProjectsLocationsLakesZonesActionsService{s: s}
   420  	return rs
   421  }
   422  
   423  type ProjectsLocationsLakesZonesActionsService struct {
   424  	s *Service
   425  }
   426  
   427  func NewProjectsLocationsLakesZonesAssetsService(s *Service) *ProjectsLocationsLakesZonesAssetsService {
   428  	rs := &ProjectsLocationsLakesZonesAssetsService{s: s}
   429  	rs.Actions = NewProjectsLocationsLakesZonesAssetsActionsService(s)
   430  	return rs
   431  }
   432  
   433  type ProjectsLocationsLakesZonesAssetsService struct {
   434  	s *Service
   435  
   436  	Actions *ProjectsLocationsLakesZonesAssetsActionsService
   437  }
   438  
   439  func NewProjectsLocationsLakesZonesAssetsActionsService(s *Service) *ProjectsLocationsLakesZonesAssetsActionsService {
   440  	rs := &ProjectsLocationsLakesZonesAssetsActionsService{s: s}
   441  	return rs
   442  }
   443  
   444  type ProjectsLocationsLakesZonesAssetsActionsService struct {
   445  	s *Service
   446  }
   447  
   448  func NewProjectsLocationsLakesZonesEntitiesService(s *Service) *ProjectsLocationsLakesZonesEntitiesService {
   449  	rs := &ProjectsLocationsLakesZonesEntitiesService{s: s}
   450  	rs.Partitions = NewProjectsLocationsLakesZonesEntitiesPartitionsService(s)
   451  	return rs
   452  }
   453  
   454  type ProjectsLocationsLakesZonesEntitiesService struct {
   455  	s *Service
   456  
   457  	Partitions *ProjectsLocationsLakesZonesEntitiesPartitionsService
   458  }
   459  
   460  func NewProjectsLocationsLakesZonesEntitiesPartitionsService(s *Service) *ProjectsLocationsLakesZonesEntitiesPartitionsService {
   461  	rs := &ProjectsLocationsLakesZonesEntitiesPartitionsService{s: s}
   462  	return rs
   463  }
   464  
   465  type ProjectsLocationsLakesZonesEntitiesPartitionsService struct {
   466  	s *Service
   467  }
   468  
   469  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   470  	rs := &ProjectsLocationsOperationsService{s: s}
   471  	return rs
   472  }
   473  
   474  type ProjectsLocationsOperationsService struct {
   475  	s *Service
   476  }
   477  
   478  // Empty: A generic empty message that you can re-use to avoid defining
   479  // duplicated empty messages in your APIs. A typical example is to use it as
   480  // the request or the response type of an API method. For instance: service Foo
   481  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   482  type Empty struct {
   483  	// ServerResponse contains the HTTP response code and headers from the server.
   484  	googleapi.ServerResponse `json:"-"`
   485  }
   486  
   487  // GoogleCloudDataplexV1Action: Action represents an issue requiring
   488  // administrator action for resolution.
   489  type GoogleCloudDataplexV1Action struct {
   490  	// Asset: Output only. The relative resource name of the asset, of the form:
   491  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
   492  	// _id}/assets/{asset_id}.
   493  	Asset string `json:"asset,omitempty"`
   494  	// Category: The category of issue associated with the action.
   495  	//
   496  	// Possible values:
   497  	//   "CATEGORY_UNSPECIFIED" - Unspecified category.
   498  	//   "RESOURCE_MANAGEMENT" - Resource management related issues.
   499  	//   "SECURITY_POLICY" - Security policy related issues.
   500  	//   "DATA_DISCOVERY" - Data and discovery related issues.
   501  	Category string `json:"category,omitempty"`
   502  	// DataLocations: The list of data locations associated with this action. Cloud
   503  	// Storage locations are represented as URI paths(E.g.
   504  	// gs://bucket/table1/year=2020/month=Jan/). BigQuery locations refer to
   505  	// resource names(E.g.
   506  	// bigquery.googleapis.com/projects/project-id/datasets/dataset-id).
   507  	DataLocations []string `json:"dataLocations,omitempty"`
   508  	// DetectTime: The time that the issue was detected.
   509  	DetectTime string `json:"detectTime,omitempty"`
   510  	// FailedSecurityPolicyApply: Details for issues related to applying security
   511  	// policy.
   512  	FailedSecurityPolicyApply *GoogleCloudDataplexV1ActionFailedSecurityPolicyApply `json:"failedSecurityPolicyApply,omitempty"`
   513  	// IncompatibleDataSchema: Details for issues related to incompatible schemas
   514  	// detected within data.
   515  	IncompatibleDataSchema *GoogleCloudDataplexV1ActionIncompatibleDataSchema `json:"incompatibleDataSchema,omitempty"`
   516  	// InvalidDataFormat: Details for issues related to invalid or unsupported data
   517  	// formats.
   518  	InvalidDataFormat *GoogleCloudDataplexV1ActionInvalidDataFormat `json:"invalidDataFormat,omitempty"`
   519  	// InvalidDataOrganization: Details for issues related to invalid data
   520  	// arrangement.
   521  	InvalidDataOrganization *GoogleCloudDataplexV1ActionInvalidDataOrganization `json:"invalidDataOrganization,omitempty"`
   522  	// InvalidDataPartition: Details for issues related to invalid or unsupported
   523  	// data partition structure.
   524  	InvalidDataPartition *GoogleCloudDataplexV1ActionInvalidDataPartition `json:"invalidDataPartition,omitempty"`
   525  	// Issue: Detailed description of the issue requiring action.
   526  	Issue string `json:"issue,omitempty"`
   527  	// Lake: Output only. The relative resource name of the lake, of the form:
   528  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
   529  	Lake string `json:"lake,omitempty"`
   530  	// MissingData: Details for issues related to absence of data within managed
   531  	// resources.
   532  	MissingData *GoogleCloudDataplexV1ActionMissingData `json:"missingData,omitempty"`
   533  	// MissingResource: Details for issues related to absence of a managed
   534  	// resource.
   535  	MissingResource *GoogleCloudDataplexV1ActionMissingResource `json:"missingResource,omitempty"`
   536  	// Name: Output only. The relative resource name of the action, of the form:
   537  	// projects/{project}/locations/{location}/lakes/{lake}/actions/{action}
   538  	// projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{ac
   539  	// tion}
   540  	// projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{ass
   541  	// et}/actions/{action}.
   542  	Name string `json:"name,omitempty"`
   543  	// UnauthorizedResource: Details for issues related to lack of permissions to
   544  	// access data resources.
   545  	UnauthorizedResource *GoogleCloudDataplexV1ActionUnauthorizedResource `json:"unauthorizedResource,omitempty"`
   546  	// Zone: Output only. The relative resource name of the zone, of the form:
   547  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
   548  	// _id}.
   549  	Zone string `json:"zone,omitempty"`
   550  	// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally
   551  	// include in API requests. By default, fields with empty or default values are
   552  	// omitted from API requests. See
   553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   554  	// details.
   555  	ForceSendFields []string `json:"-"`
   556  	// NullFields is a list of field names (e.g. "Asset") to include in API
   557  	// requests with the JSON null value. By default, fields with empty values are
   558  	// omitted from API requests. See
   559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   560  	NullFields []string `json:"-"`
   561  }
   562  
   563  func (s *GoogleCloudDataplexV1Action) MarshalJSON() ([]byte, error) {
   564  	type NoMethod GoogleCloudDataplexV1Action
   565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   566  }
   567  
   568  // GoogleCloudDataplexV1ActionFailedSecurityPolicyApply: Failed to apply
   569  // security policy to the managed resource(s) under a lake, zone or an asset.
   570  // For a lake or zone resource, one or more underlying assets has a failure
   571  // applying security policy to the associated managed resource.
   572  type GoogleCloudDataplexV1ActionFailedSecurityPolicyApply struct {
   573  	// Asset: Resource name of one of the assets with failing security policy
   574  	// application. Populated for a lake or zone resource only.
   575  	Asset string `json:"asset,omitempty"`
   576  	// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally
   577  	// include in API requests. By default, fields with empty or default values are
   578  	// omitted from API requests. See
   579  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   580  	// details.
   581  	ForceSendFields []string `json:"-"`
   582  	// NullFields is a list of field names (e.g. "Asset") to include in API
   583  	// requests with the JSON null value. By default, fields with empty values are
   584  	// omitted from API requests. See
   585  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   586  	NullFields []string `json:"-"`
   587  }
   588  
   589  func (s *GoogleCloudDataplexV1ActionFailedSecurityPolicyApply) MarshalJSON() ([]byte, error) {
   590  	type NoMethod GoogleCloudDataplexV1ActionFailedSecurityPolicyApply
   591  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   592  }
   593  
   594  // GoogleCloudDataplexV1ActionIncompatibleDataSchema: Action details for
   595  // incompatible schemas detected by discovery.
   596  type GoogleCloudDataplexV1ActionIncompatibleDataSchema struct {
   597  	// ExistingSchema: The existing and expected schema of the table. The schema is
   598  	// provided as a JSON formatted structure listing columns and data types.
   599  	ExistingSchema string `json:"existingSchema,omitempty"`
   600  	// NewSchema: The new and incompatible schema within the table. The schema is
   601  	// provided as a JSON formatted structured listing columns and data types.
   602  	NewSchema string `json:"newSchema,omitempty"`
   603  	// SampledDataLocations: The list of data locations sampled and used for
   604  	// format/schema inference.
   605  	SampledDataLocations []string `json:"sampledDataLocations,omitempty"`
   606  	// SchemaChange: Whether the action relates to a schema that is incompatible or
   607  	// modified.
   608  	//
   609  	// Possible values:
   610  	//   "SCHEMA_CHANGE_UNSPECIFIED" - Schema change unspecified.
   611  	//   "INCOMPATIBLE" - Newly discovered schema is incompatible with existing
   612  	// schema.
   613  	//   "MODIFIED" - Newly discovered schema has changed from existing schema for
   614  	// data in a curated zone.
   615  	SchemaChange string `json:"schemaChange,omitempty"`
   616  	// Table: The name of the table containing invalid data.
   617  	Table string `json:"table,omitempty"`
   618  	// ForceSendFields is a list of field names (e.g. "ExistingSchema") to
   619  	// unconditionally include in API requests. By default, fields with empty or
   620  	// default values are omitted from API requests. See
   621  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   622  	// details.
   623  	ForceSendFields []string `json:"-"`
   624  	// NullFields is a list of field names (e.g. "ExistingSchema") to include in
   625  	// API requests with the JSON null value. By default, fields with empty values
   626  	// are omitted from API requests. See
   627  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   628  	NullFields []string `json:"-"`
   629  }
   630  
   631  func (s *GoogleCloudDataplexV1ActionIncompatibleDataSchema) MarshalJSON() ([]byte, error) {
   632  	type NoMethod GoogleCloudDataplexV1ActionIncompatibleDataSchema
   633  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   634  }
   635  
   636  // GoogleCloudDataplexV1ActionInvalidDataFormat: Action details for invalid or
   637  // unsupported data files detected by discovery.
   638  type GoogleCloudDataplexV1ActionInvalidDataFormat struct {
   639  	// ExpectedFormat: The expected data format of the entity.
   640  	ExpectedFormat string `json:"expectedFormat,omitempty"`
   641  	// NewFormat: The new unexpected data format within the entity.
   642  	NewFormat string `json:"newFormat,omitempty"`
   643  	// SampledDataLocations: The list of data locations sampled and used for
   644  	// format/schema inference.
   645  	SampledDataLocations []string `json:"sampledDataLocations,omitempty"`
   646  	// ForceSendFields is a list of field names (e.g. "ExpectedFormat") to
   647  	// unconditionally include in API requests. By default, fields with empty or
   648  	// default values are omitted from API requests. See
   649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   650  	// details.
   651  	ForceSendFields []string `json:"-"`
   652  	// NullFields is a list of field names (e.g. "ExpectedFormat") to include in
   653  	// API requests with the JSON null value. By default, fields with empty values
   654  	// are omitted from API requests. See
   655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   656  	NullFields []string `json:"-"`
   657  }
   658  
   659  func (s *GoogleCloudDataplexV1ActionInvalidDataFormat) MarshalJSON() ([]byte, error) {
   660  	type NoMethod GoogleCloudDataplexV1ActionInvalidDataFormat
   661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   662  }
   663  
   664  // GoogleCloudDataplexV1ActionInvalidDataOrganization: Action details for
   665  // invalid data arrangement.
   666  type GoogleCloudDataplexV1ActionInvalidDataOrganization struct {
   667  }
   668  
   669  // GoogleCloudDataplexV1ActionInvalidDataPartition: Action details for invalid
   670  // or unsupported partitions detected by discovery.
   671  type GoogleCloudDataplexV1ActionInvalidDataPartition struct {
   672  	// ExpectedStructure: The issue type of InvalidDataPartition.
   673  	//
   674  	// Possible values:
   675  	//   "PARTITION_STRUCTURE_UNSPECIFIED" - PartitionStructure unspecified.
   676  	//   "CONSISTENT_KEYS" - Consistent hive-style partition definition (both raw
   677  	// and curated zone).
   678  	//   "HIVE_STYLE_KEYS" - Hive style partition definition (curated zone only).
   679  	ExpectedStructure string `json:"expectedStructure,omitempty"`
   680  	// ForceSendFields is a list of field names (e.g. "ExpectedStructure") to
   681  	// unconditionally include in API requests. By default, fields with empty or
   682  	// default values are omitted from API requests. See
   683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   684  	// details.
   685  	ForceSendFields []string `json:"-"`
   686  	// NullFields is a list of field names (e.g. "ExpectedStructure") to include in
   687  	// API requests with the JSON null value. By default, fields with empty values
   688  	// are omitted from API requests. See
   689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   690  	NullFields []string `json:"-"`
   691  }
   692  
   693  func (s *GoogleCloudDataplexV1ActionInvalidDataPartition) MarshalJSON() ([]byte, error) {
   694  	type NoMethod GoogleCloudDataplexV1ActionInvalidDataPartition
   695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   696  }
   697  
   698  // GoogleCloudDataplexV1ActionMissingData: Action details for absence of data
   699  // detected by discovery.
   700  type GoogleCloudDataplexV1ActionMissingData struct {
   701  }
   702  
   703  // GoogleCloudDataplexV1ActionMissingResource: Action details for resource
   704  // references in assets that cannot be located.
   705  type GoogleCloudDataplexV1ActionMissingResource struct {
   706  }
   707  
   708  // GoogleCloudDataplexV1ActionUnauthorizedResource: Action details for
   709  // unauthorized resource issues raised to indicate that the service account
   710  // associated with the lake instance is not authorized to access or manage the
   711  // resource associated with an asset.
   712  type GoogleCloudDataplexV1ActionUnauthorizedResource struct {
   713  }
   714  
   715  // GoogleCloudDataplexV1Aspect: An aspect is a single piece of metadata
   716  // describing an entry.
   717  type GoogleCloudDataplexV1Aspect struct {
   718  	AspectSource *GoogleCloudDataplexV1AspectSource `json:"aspectSource,omitempty"`
   719  	// AspectType: Output only. The resource name of the type used to create this
   720  	// Aspect.
   721  	AspectType string `json:"aspectType,omitempty"`
   722  	// CreateTime: Output only. The time when the Aspect was created.
   723  	CreateTime string `json:"createTime,omitempty"`
   724  	// Data: Required. The content of the aspect, according to its aspect type
   725  	// schema. This will replace content. The maximum size of the field is 120KB
   726  	// (encoded as UTF-8).
   727  	Data googleapi.RawMessage `json:"data,omitempty"`
   728  	// Path: Output only. The path in the entry under which the aspect is attached.
   729  	Path string `json:"path,omitempty"`
   730  	// UpdateTime: Output only. The time when the Aspect was last updated.
   731  	UpdateTime string `json:"updateTime,omitempty"`
   732  	// ForceSendFields is a list of field names (e.g. "AspectSource") to
   733  	// unconditionally include in API requests. By default, fields with empty or
   734  	// default values are omitted from API requests. See
   735  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   736  	// details.
   737  	ForceSendFields []string `json:"-"`
   738  	// NullFields is a list of field names (e.g. "AspectSource") to include in API
   739  	// requests with the JSON null value. By default, fields with empty values are
   740  	// omitted from API requests. See
   741  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   742  	NullFields []string `json:"-"`
   743  }
   744  
   745  func (s *GoogleCloudDataplexV1Aspect) MarshalJSON() ([]byte, error) {
   746  	type NoMethod GoogleCloudDataplexV1Aspect
   747  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   748  }
   749  
   750  // GoogleCloudDataplexV1AspectSource: AspectSource contains source system
   751  // related information for the aspect.
   752  type GoogleCloudDataplexV1AspectSource struct {
   753  	// CreateTime: The create time of the aspect in the source system.
   754  	CreateTime string `json:"createTime,omitempty"`
   755  	// UpdateTime: The update time of the aspect in the source system.
   756  	UpdateTime string `json:"updateTime,omitempty"`
   757  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   758  	// unconditionally include in API requests. By default, fields with empty or
   759  	// default values are omitted from API requests. See
   760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   761  	// details.
   762  	ForceSendFields []string `json:"-"`
   763  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   764  	// requests with the JSON null value. By default, fields with empty values are
   765  	// omitted from API requests. See
   766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   767  	NullFields []string `json:"-"`
   768  }
   769  
   770  func (s *GoogleCloudDataplexV1AspectSource) MarshalJSON() ([]byte, error) {
   771  	type NoMethod GoogleCloudDataplexV1AspectSource
   772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   773  }
   774  
   775  // GoogleCloudDataplexV1AspectType: Aspect Type is a template for creating
   776  // Aspects, and represents the JSON-schema for a given Entry, e.g., BigQuery
   777  // Table Schema.
   778  type GoogleCloudDataplexV1AspectType struct {
   779  	// Authorization: Immutable. Authorization defined for this type.
   780  	Authorization *GoogleCloudDataplexV1AspectTypeAuthorization `json:"authorization,omitempty"`
   781  	// CreateTime: Output only. The time when the AspectType was created.
   782  	CreateTime string `json:"createTime,omitempty"`
   783  	// Description: Optional. Description of the AspectType.
   784  	Description string `json:"description,omitempty"`
   785  	// DisplayName: Optional. User friendly display name.
   786  	DisplayName string `json:"displayName,omitempty"`
   787  	// Etag: This checksum is computed by the server based on the value of other
   788  	// fields, and may be sent on update and delete requests to ensure the client
   789  	// has an up-to-date value before proceeding.
   790  	Etag string `json:"etag,omitempty"`
   791  	// Labels: Optional. User-defined labels for the AspectType.
   792  	Labels map[string]string `json:"labels,omitempty"`
   793  	// MetadataTemplate: Required. MetadataTemplate of the aspect.
   794  	MetadataTemplate *GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"metadataTemplate,omitempty"`
   795  	// Name: Output only. The relative resource name of the AspectType, of the
   796  	// form:
   797  	// projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id
   798  	// }.
   799  	Name string `json:"name,omitempty"`
   800  	// TransferStatus: Output only. Denotes the transfer status of the Aspect Type.
   801  	// It is unspecified for Aspect Types created from Dataplex API.
   802  	//
   803  	// Possible values:
   804  	//   "TRANSFER_STATUS_UNSPECIFIED" - The default value. It is set for resources
   805  	// that were not subject for migration from Data Catalog service.
   806  	//   "TRANSFER_STATUS_MIGRATED" - Indicates that a resource was migrated from
   807  	// Data Catalog service but it hasn't been transferred yet. In particular the
   808  	// resource cannot be updated from Dataplex API.
   809  	//   "TRANSFER_STATUS_TRANSFERRED" - Indicates that a resource was transferred
   810  	// from Data Catalog service. The resource can only be updated from Dataplex
   811  	// API.
   812  	TransferStatus string `json:"transferStatus,omitempty"`
   813  	// Uid: Output only. System generated globally unique ID for the AspectType.
   814  	// This ID will be different if the AspectType is deleted and re-created with
   815  	// the same name.
   816  	Uid string `json:"uid,omitempty"`
   817  	// UpdateTime: Output only. The time when the AspectType was last updated.
   818  	UpdateTime string `json:"updateTime,omitempty"`
   819  
   820  	// ServerResponse contains the HTTP response code and headers from the server.
   821  	googleapi.ServerResponse `json:"-"`
   822  	// ForceSendFields is a list of field names (e.g. "Authorization") to
   823  	// unconditionally include in API requests. By default, fields with empty or
   824  	// default values are omitted from API requests. See
   825  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   826  	// details.
   827  	ForceSendFields []string `json:"-"`
   828  	// NullFields is a list of field names (e.g. "Authorization") to include in API
   829  	// requests with the JSON null value. By default, fields with empty values are
   830  	// omitted from API requests. See
   831  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   832  	NullFields []string `json:"-"`
   833  }
   834  
   835  func (s *GoogleCloudDataplexV1AspectType) MarshalJSON() ([]byte, error) {
   836  	type NoMethod GoogleCloudDataplexV1AspectType
   837  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   838  }
   839  
   840  // GoogleCloudDataplexV1AspectTypeAuthorization: Autorization for an Aspect
   841  // Type.
   842  type GoogleCloudDataplexV1AspectTypeAuthorization struct {
   843  	// AlternateUsePermission: Immutable. The IAM permission grantable on the Entry
   844  	// Group to allow access to instantiate Aspects of Dataplex owned Aspect Types,
   845  	// only settable for Dataplex owned Types.
   846  	AlternateUsePermission string `json:"alternateUsePermission,omitempty"`
   847  	// ForceSendFields is a list of field names (e.g. "AlternateUsePermission") to
   848  	// unconditionally include in API requests. By default, fields with empty or
   849  	// default values are omitted from API requests. See
   850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   851  	// details.
   852  	ForceSendFields []string `json:"-"`
   853  	// NullFields is a list of field names (e.g. "AlternateUsePermission") to
   854  	// include in API requests with the JSON null value. By default, fields with
   855  	// empty values are omitted from API requests. See
   856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   857  	NullFields []string `json:"-"`
   858  }
   859  
   860  func (s *GoogleCloudDataplexV1AspectTypeAuthorization) MarshalJSON() ([]byte, error) {
   861  	type NoMethod GoogleCloudDataplexV1AspectTypeAuthorization
   862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   863  }
   864  
   865  // GoogleCloudDataplexV1AspectTypeMetadataTemplate: MetadataTemplate definition
   866  // for AspectType
   867  type GoogleCloudDataplexV1AspectTypeMetadataTemplate struct {
   868  	// Annotations: Optional. Specifies annotations on this field.
   869  	Annotations *GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations `json:"annotations,omitempty"`
   870  	// ArrayItems: Optional. array_items needs to be set if the type is array.
   871  	// array_items can refer to a primitive field or a complex (record only) field.
   872  	// To specify a primitive field, just name and type needs to be set in the
   873  	// nested MetadataTemplate. The recommended value for the name field is item,
   874  	// as this is not used in the actual payload.
   875  	ArrayItems *GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"arrayItems,omitempty"`
   876  	// Constraints: Optional. Specifies the constraints on this field.
   877  	Constraints *GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints `json:"constraints,omitempty"`
   878  	// EnumValues: Optional. The list of values for an enum type. Needs to be
   879  	// defined if the type is enum.
   880  	EnumValues []*GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue `json:"enumValues,omitempty"`
   881  	// Index: Optional. Index is used to encode Template messages. The value of
   882  	// index can range between 1 and 2,147,483,647. Index must be unique within all
   883  	// fields in a Template. (Nested Templates can reuse indexes). Once a Template
   884  	// is defined, the index cannot be changed, because it identifies the field in
   885  	// the actual storage format. Index is a mandatory field, but it is optional
   886  	// for top level fields, and map/array "values" definitions.
   887  	Index int64 `json:"index,omitempty"`
   888  	// MapItems: Optional. map_items needs to be set if the type is map. map_items
   889  	// can refer to a primitive field or a complex (record only) field. To specify
   890  	// a primitive field, just name and type needs to be set in the nested
   891  	// MetadataTemplate. The recommended value for the name field is item, as this
   892  	// is not used in the actual payload.
   893  	MapItems *GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"mapItems,omitempty"`
   894  	// Name: Required. The name of the field.
   895  	Name string `json:"name,omitempty"`
   896  	// RecordFields: Optional. Field definition, needs to be specified if the type
   897  	// is record. Defines the nested fields.
   898  	RecordFields []*GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"recordFields,omitempty"`
   899  	// Type: Required. The datatype of this field. The following values are
   900  	// supported: Primitive types (string, integer, boolean, double, datetime);
   901  	// datetime must be of the format RFC3339 UTC "Zulu" (Examples:
   902  	// "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). Complex types
   903  	// (enum, array, map, record).
   904  	Type string `json:"type,omitempty"`
   905  	// TypeId: Optional. Id can be used if this definition of the field needs to be
   906  	// reused later. Id needs to be unique across the entire template. Id can only
   907  	// be specified if the field type is record.
   908  	TypeId string `json:"typeId,omitempty"`
   909  	// TypeRef: Optional. A reference to another field definition (instead of an
   910  	// inline definition). The value must be equal to the value of an id field
   911  	// defined elsewhere in the MetadataTemplate. Only fields with type as record
   912  	// can refer to other fields.
   913  	TypeRef string `json:"typeRef,omitempty"`
   914  	// ForceSendFields is a list of field names (e.g. "Annotations") to
   915  	// unconditionally include in API requests. By default, fields with empty or
   916  	// default values are omitted from API requests. See
   917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   918  	// details.
   919  	ForceSendFields []string `json:"-"`
   920  	// NullFields is a list of field names (e.g. "Annotations") to include in API
   921  	// requests with the JSON null value. By default, fields with empty values are
   922  	// omitted from API requests. See
   923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   924  	NullFields []string `json:"-"`
   925  }
   926  
   927  func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplate) MarshalJSON() ([]byte, error) {
   928  	type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplate
   929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   930  }
   931  
   932  // GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations: Definition of
   933  // the annotations of a field
   934  type GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations struct {
   935  	// Deprecated -- Optional. Marks a field as deprecated, a deprecation message
   936  	// can be included.
   937  	Deprecated string `json:"deprecated,omitempty"`
   938  	// Description: Optional. Specify a description for a field
   939  	Description string `json:"description,omitempty"`
   940  	// DisplayName: Optional. Specify a displayname for a field.
   941  	DisplayName string `json:"displayName,omitempty"`
   942  	// DisplayOrder: Optional. Specify a display order for a field. Display order
   943  	// can be used to reorder where a field is rendered
   944  	DisplayOrder int64 `json:"displayOrder,omitempty"`
   945  	// StringType: Optional. String Type annotations can be used to specify special
   946  	// meaning to string fields. The following values are supported: richText: The
   947  	// field must be interpreted as a rich text field. url: A fully qualified url
   948  	// link. resource: A service qualified resource reference.
   949  	StringType string `json:"stringType,omitempty"`
   950  	// StringValues: Optional. Suggested hints for string fields. These can be used
   951  	// to suggest values to users, through an UI for example.
   952  	StringValues []string `json:"stringValues,omitempty"`
   953  	// ForceSendFields is a list of field names (e.g. "Deprecated") to
   954  	// unconditionally include in API requests. By default, fields with empty or
   955  	// default values are omitted from API requests. See
   956  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   957  	// details.
   958  	ForceSendFields []string `json:"-"`
   959  	// NullFields is a list of field names (e.g. "Deprecated") to include in API
   960  	// requests with the JSON null value. By default, fields with empty values are
   961  	// omitted from API requests. See
   962  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   963  	NullFields []string `json:"-"`
   964  }
   965  
   966  func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations) MarshalJSON() ([]byte, error) {
   967  	type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations
   968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   969  }
   970  
   971  // GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints: Definition of
   972  // the constraints of a field
   973  type GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints struct {
   974  	// Required: Optional. Marks this as an optional/required field.
   975  	Required bool `json:"required,omitempty"`
   976  	// ForceSendFields is a list of field names (e.g. "Required") to
   977  	// unconditionally include in API requests. By default, fields with empty or
   978  	// default values are omitted from API requests. See
   979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   980  	// details.
   981  	ForceSendFields []string `json:"-"`
   982  	// NullFields is a list of field names (e.g. "Required") to include in API
   983  	// requests with the JSON null value. By default, fields with empty values are
   984  	// omitted from API requests. See
   985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   986  	NullFields []string `json:"-"`
   987  }
   988  
   989  func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints) MarshalJSON() ([]byte, error) {
   990  	type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints
   991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   992  }
   993  
   994  // GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue: Definition of
   995  // Enumvalue (to be used by enum fields)
   996  type GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue struct {
   997  	// Deprecated -- Optional. Optional deprecation message to be set if an enum
   998  	// value needs to be deprecated.
   999  	Deprecated string `json:"deprecated,omitempty"`
  1000  	// Index: Required. Index for the enum. Cannot be modified.
  1001  	Index int64 `json:"index,omitempty"`
  1002  	// Name: Required. Name of the enumvalue. This is the actual value that the
  1003  	// aspect will contain.
  1004  	Name string `json:"name,omitempty"`
  1005  	// ForceSendFields is a list of field names (e.g. "Deprecated") to
  1006  	// unconditionally include in API requests. By default, fields with empty or
  1007  	// default values are omitted from API requests. See
  1008  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1009  	// details.
  1010  	ForceSendFields []string `json:"-"`
  1011  	// NullFields is a list of field names (e.g. "Deprecated") to include in API
  1012  	// requests with the JSON null value. By default, fields with empty values are
  1013  	// omitted from API requests. See
  1014  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1015  	NullFields []string `json:"-"`
  1016  }
  1017  
  1018  func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue) MarshalJSON() ([]byte, error) {
  1019  	type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
  1020  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1021  }
  1022  
  1023  // GoogleCloudDataplexV1Asset: An asset represents a cloud resource that is
  1024  // being managed within a lake as a member of a zone.
  1025  type GoogleCloudDataplexV1Asset struct {
  1026  	// CreateTime: Output only. The time when the asset was created.
  1027  	CreateTime string `json:"createTime,omitempty"`
  1028  	// Description: Optional. Description of the asset.
  1029  	Description string `json:"description,omitempty"`
  1030  	// DiscoverySpec: Optional. Specification of the discovery feature applied to
  1031  	// data referenced by this asset. When this spec is left unset, the asset will
  1032  	// use the spec set on the parent zone.
  1033  	DiscoverySpec *GoogleCloudDataplexV1AssetDiscoverySpec `json:"discoverySpec,omitempty"`
  1034  	// DiscoveryStatus: Output only. Status of the discovery feature applied to
  1035  	// data referenced by this asset.
  1036  	DiscoveryStatus *GoogleCloudDataplexV1AssetDiscoveryStatus `json:"discoveryStatus,omitempty"`
  1037  	// DisplayName: Optional. User friendly display name.
  1038  	DisplayName string `json:"displayName,omitempty"`
  1039  	// Labels: Optional. User defined labels for the asset.
  1040  	Labels map[string]string `json:"labels,omitempty"`
  1041  	// Name: Output only. The relative resource name of the asset, of the form:
  1042  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
  1043  	// _id}/assets/{asset_id}.
  1044  	Name string `json:"name,omitempty"`
  1045  	// ResourceSpec: Required. Specification of the resource that is referenced by
  1046  	// this asset.
  1047  	ResourceSpec *GoogleCloudDataplexV1AssetResourceSpec `json:"resourceSpec,omitempty"`
  1048  	// ResourceStatus: Output only. Status of the resource referenced by this
  1049  	// asset.
  1050  	ResourceStatus *GoogleCloudDataplexV1AssetResourceStatus `json:"resourceStatus,omitempty"`
  1051  	// SecurityStatus: Output only. Status of the security policy applied to
  1052  	// resource referenced by this asset.
  1053  	SecurityStatus *GoogleCloudDataplexV1AssetSecurityStatus `json:"securityStatus,omitempty"`
  1054  	// State: Output only. Current state of the asset.
  1055  	//
  1056  	// Possible values:
  1057  	//   "STATE_UNSPECIFIED" - State is not specified.
  1058  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  1059  	//   "CREATING" - Resource is under creation.
  1060  	//   "DELETING" - Resource is under deletion.
  1061  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  1062  	State string `json:"state,omitempty"`
  1063  	// Uid: Output only. System generated globally unique ID for the asset. This ID
  1064  	// will be different if the asset is deleted and re-created with the same name.
  1065  	Uid string `json:"uid,omitempty"`
  1066  	// UpdateTime: Output only. The time when the asset was last updated.
  1067  	UpdateTime string `json:"updateTime,omitempty"`
  1068  
  1069  	// ServerResponse contains the HTTP response code and headers from the server.
  1070  	googleapi.ServerResponse `json:"-"`
  1071  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1072  	// unconditionally include in API requests. By default, fields with empty or
  1073  	// default values are omitted from API requests. See
  1074  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1075  	// details.
  1076  	ForceSendFields []string `json:"-"`
  1077  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1078  	// requests with the JSON null value. By default, fields with empty values are
  1079  	// omitted from API requests. See
  1080  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1081  	NullFields []string `json:"-"`
  1082  }
  1083  
  1084  func (s *GoogleCloudDataplexV1Asset) MarshalJSON() ([]byte, error) {
  1085  	type NoMethod GoogleCloudDataplexV1Asset
  1086  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1087  }
  1088  
  1089  // GoogleCloudDataplexV1AssetDiscoverySpec: Settings to manage the metadata
  1090  // discovery and publishing for an asset.
  1091  type GoogleCloudDataplexV1AssetDiscoverySpec struct {
  1092  	// CsvOptions: Optional. Configuration for CSV data.
  1093  	CsvOptions *GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions `json:"csvOptions,omitempty"`
  1094  	// Enabled: Optional. Whether discovery is enabled.
  1095  	Enabled bool `json:"enabled,omitempty"`
  1096  	// ExcludePatterns: Optional. The list of patterns to apply for selecting data
  1097  	// to exclude during discovery. For Cloud Storage bucket assets, these are
  1098  	// interpreted as glob patterns used to match object names. For BigQuery
  1099  	// dataset assets, these are interpreted as patterns to match table names.
  1100  	ExcludePatterns []string `json:"excludePatterns,omitempty"`
  1101  	// IncludePatterns: Optional. The list of patterns to apply for selecting data
  1102  	// to include during discovery if only a subset of the data should considered.
  1103  	// For Cloud Storage bucket assets, these are interpreted as glob patterns used
  1104  	// to match object names. For BigQuery dataset assets, these are interpreted as
  1105  	// patterns to match table names.
  1106  	IncludePatterns []string `json:"includePatterns,omitempty"`
  1107  	// JsonOptions: Optional. Configuration for Json data.
  1108  	JsonOptions *GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions `json:"jsonOptions,omitempty"`
  1109  	// Schedule: Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
  1110  	// running discovery periodically. Successive discovery runs must be scheduled
  1111  	// at least 60 minutes apart. The default value is to run discovery every 60
  1112  	// minutes. To explicitly set a timezone to the cron tab, apply a prefix in the
  1113  	// cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The
  1114  	// ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database.
  1115  	// For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 *
  1116  	// * * *.
  1117  	Schedule string `json:"schedule,omitempty"`
  1118  	// ForceSendFields is a list of field names (e.g. "CsvOptions") to
  1119  	// unconditionally include in API requests. By default, fields with empty or
  1120  	// default values are omitted from API requests. See
  1121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1122  	// details.
  1123  	ForceSendFields []string `json:"-"`
  1124  	// NullFields is a list of field names (e.g. "CsvOptions") to include in API
  1125  	// requests with the JSON null value. By default, fields with empty values are
  1126  	// omitted from API requests. See
  1127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1128  	NullFields []string `json:"-"`
  1129  }
  1130  
  1131  func (s *GoogleCloudDataplexV1AssetDiscoverySpec) MarshalJSON() ([]byte, error) {
  1132  	type NoMethod GoogleCloudDataplexV1AssetDiscoverySpec
  1133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1134  }
  1135  
  1136  // GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions: Describe CSV and similar
  1137  // semi-structured data formats.
  1138  type GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions struct {
  1139  	// Delimiter: Optional. The delimiter being used to separate values. This
  1140  	// defaults to ','.
  1141  	Delimiter string `json:"delimiter,omitempty"`
  1142  	// DisableTypeInference: Optional. Whether to disable the inference of data
  1143  	// type for CSV data. If true, all columns will be registered as strings.
  1144  	DisableTypeInference bool `json:"disableTypeInference,omitempty"`
  1145  	// Encoding: Optional. The character encoding of the data. The default is
  1146  	// UTF-8.
  1147  	Encoding string `json:"encoding,omitempty"`
  1148  	// HeaderRows: Optional. The number of rows to interpret as header rows that
  1149  	// should be skipped when reading data rows.
  1150  	HeaderRows int64 `json:"headerRows,omitempty"`
  1151  	// ForceSendFields is a list of field names (e.g. "Delimiter") to
  1152  	// unconditionally include in API requests. By default, fields with empty or
  1153  	// default values are omitted from API requests. See
  1154  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1155  	// details.
  1156  	ForceSendFields []string `json:"-"`
  1157  	// NullFields is a list of field names (e.g. "Delimiter") to include in API
  1158  	// requests with the JSON null value. By default, fields with empty values are
  1159  	// omitted from API requests. See
  1160  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1161  	NullFields []string `json:"-"`
  1162  }
  1163  
  1164  func (s *GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions) MarshalJSON() ([]byte, error) {
  1165  	type NoMethod GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions
  1166  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1167  }
  1168  
  1169  // GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions: Describe JSON data
  1170  // format.
  1171  type GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions struct {
  1172  	// DisableTypeInference: Optional. Whether to disable the inference of data
  1173  	// type for Json data. If true, all columns will be registered as their
  1174  	// primitive types (strings, number or boolean).
  1175  	DisableTypeInference bool `json:"disableTypeInference,omitempty"`
  1176  	// Encoding: Optional. The character encoding of the data. The default is
  1177  	// UTF-8.
  1178  	Encoding string `json:"encoding,omitempty"`
  1179  	// ForceSendFields is a list of field names (e.g. "DisableTypeInference") to
  1180  	// unconditionally include in API requests. By default, fields with empty or
  1181  	// default values are omitted from API requests. See
  1182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1183  	// details.
  1184  	ForceSendFields []string `json:"-"`
  1185  	// NullFields is a list of field names (e.g. "DisableTypeInference") to include
  1186  	// in API requests with the JSON null value. By default, fields with empty
  1187  	// values are omitted from API requests. See
  1188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1189  	NullFields []string `json:"-"`
  1190  }
  1191  
  1192  func (s *GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions) MarshalJSON() ([]byte, error) {
  1193  	type NoMethod GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions
  1194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1195  }
  1196  
  1197  // GoogleCloudDataplexV1AssetDiscoveryStatus: Status of discovery for an asset.
  1198  type GoogleCloudDataplexV1AssetDiscoveryStatus struct {
  1199  	// LastRunDuration: The duration of the last discovery run.
  1200  	LastRunDuration string `json:"lastRunDuration,omitempty"`
  1201  	// LastRunTime: The start time of the last discovery run.
  1202  	LastRunTime string `json:"lastRunTime,omitempty"`
  1203  	// Message: Additional information about the current state.
  1204  	Message string `json:"message,omitempty"`
  1205  	// State: The current status of the discovery feature.
  1206  	//
  1207  	// Possible values:
  1208  	//   "STATE_UNSPECIFIED" - State is unspecified.
  1209  	//   "SCHEDULED" - Discovery for the asset is scheduled.
  1210  	//   "IN_PROGRESS" - Discovery for the asset is running.
  1211  	//   "PAUSED" - Discovery for the asset is currently paused (e.g. due to a lack
  1212  	// of available resources). It will be automatically resumed.
  1213  	//   "DISABLED" - Discovery for the asset is disabled.
  1214  	State string `json:"state,omitempty"`
  1215  	// Stats: Data Stats of the asset reported by discovery.
  1216  	Stats *GoogleCloudDataplexV1AssetDiscoveryStatusStats `json:"stats,omitempty"`
  1217  	// UpdateTime: Last update time of the status.
  1218  	UpdateTime string `json:"updateTime,omitempty"`
  1219  	// ForceSendFields is a list of field names (e.g. "LastRunDuration") to
  1220  	// unconditionally include in API requests. By default, fields with empty or
  1221  	// default values are omitted from API requests. See
  1222  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1223  	// details.
  1224  	ForceSendFields []string `json:"-"`
  1225  	// NullFields is a list of field names (e.g. "LastRunDuration") to include in
  1226  	// API requests with the JSON null value. By default, fields with empty values
  1227  	// are omitted from API requests. See
  1228  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1229  	NullFields []string `json:"-"`
  1230  }
  1231  
  1232  func (s *GoogleCloudDataplexV1AssetDiscoveryStatus) MarshalJSON() ([]byte, error) {
  1233  	type NoMethod GoogleCloudDataplexV1AssetDiscoveryStatus
  1234  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1235  }
  1236  
  1237  // GoogleCloudDataplexV1AssetDiscoveryStatusStats: The aggregated data
  1238  // statistics for the asset reported by discovery.
  1239  type GoogleCloudDataplexV1AssetDiscoveryStatusStats struct {
  1240  	// DataItems: The count of data items within the referenced resource.
  1241  	DataItems int64 `json:"dataItems,omitempty,string"`
  1242  	// DataSize: The number of stored data bytes within the referenced resource.
  1243  	DataSize int64 `json:"dataSize,omitempty,string"`
  1244  	// Filesets: The count of fileset entities within the referenced resource.
  1245  	Filesets int64 `json:"filesets,omitempty,string"`
  1246  	// Tables: The count of table entities within the referenced resource.
  1247  	Tables int64 `json:"tables,omitempty,string"`
  1248  	// ForceSendFields is a list of field names (e.g. "DataItems") to
  1249  	// unconditionally include in API requests. By default, fields with empty or
  1250  	// default values are omitted from API requests. See
  1251  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1252  	// details.
  1253  	ForceSendFields []string `json:"-"`
  1254  	// NullFields is a list of field names (e.g. "DataItems") to include in API
  1255  	// requests with the JSON null value. By default, fields with empty values are
  1256  	// omitted from API requests. See
  1257  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1258  	NullFields []string `json:"-"`
  1259  }
  1260  
  1261  func (s *GoogleCloudDataplexV1AssetDiscoveryStatusStats) MarshalJSON() ([]byte, error) {
  1262  	type NoMethod GoogleCloudDataplexV1AssetDiscoveryStatusStats
  1263  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1264  }
  1265  
  1266  // GoogleCloudDataplexV1AssetResourceSpec: Identifies the cloud resource that
  1267  // is referenced by this asset.
  1268  type GoogleCloudDataplexV1AssetResourceSpec struct {
  1269  	// Name: Immutable. Relative name of the cloud resource that contains the data
  1270  	// that is being managed within a lake. For example:
  1271  	// projects/{project_number}/buckets/{bucket_id}
  1272  	// projects/{project_number}/datasets/{dataset_id}
  1273  	Name string `json:"name,omitempty"`
  1274  	// ReadAccessMode: Optional. Determines how read permissions are handled for
  1275  	// each asset and their associated tables. Only available to storage buckets
  1276  	// assets.
  1277  	//
  1278  	// Possible values:
  1279  	//   "ACCESS_MODE_UNSPECIFIED" - Access mode unspecified.
  1280  	//   "DIRECT" - Default. Data is accessed directly using storage APIs.
  1281  	//   "MANAGED" - Data is accessed through a managed interface using BigQuery
  1282  	// APIs.
  1283  	ReadAccessMode string `json:"readAccessMode,omitempty"`
  1284  	// Type: Required. Immutable. Type of resource.
  1285  	//
  1286  	// Possible values:
  1287  	//   "TYPE_UNSPECIFIED" - Type not specified.
  1288  	//   "STORAGE_BUCKET" - Cloud Storage bucket.
  1289  	//   "BIGQUERY_DATASET" - BigQuery dataset.
  1290  	Type string `json:"type,omitempty"`
  1291  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1292  	// include in API requests. By default, fields with empty or default values are
  1293  	// omitted from API requests. See
  1294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1295  	// details.
  1296  	ForceSendFields []string `json:"-"`
  1297  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1298  	// with the JSON null value. By default, fields with empty values are omitted
  1299  	// from API requests. See
  1300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1301  	NullFields []string `json:"-"`
  1302  }
  1303  
  1304  func (s *GoogleCloudDataplexV1AssetResourceSpec) MarshalJSON() ([]byte, error) {
  1305  	type NoMethod GoogleCloudDataplexV1AssetResourceSpec
  1306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1307  }
  1308  
  1309  // GoogleCloudDataplexV1AssetResourceStatus: Status of the resource referenced
  1310  // by an asset.
  1311  type GoogleCloudDataplexV1AssetResourceStatus struct {
  1312  	// ManagedAccessIdentity: Output only. Service account associated with the
  1313  	// BigQuery Connection.
  1314  	ManagedAccessIdentity string `json:"managedAccessIdentity,omitempty"`
  1315  	// Message: Additional information about the current state.
  1316  	Message string `json:"message,omitempty"`
  1317  	// State: The current state of the managed resource.
  1318  	//
  1319  	// Possible values:
  1320  	//   "STATE_UNSPECIFIED" - State unspecified.
  1321  	//   "READY" - Resource does not have any errors.
  1322  	//   "ERROR" - Resource has errors.
  1323  	State string `json:"state,omitempty"`
  1324  	// UpdateTime: Last update time of the status.
  1325  	UpdateTime string `json:"updateTime,omitempty"`
  1326  	// ForceSendFields is a list of field names (e.g. "ManagedAccessIdentity") to
  1327  	// unconditionally include in API requests. By default, fields with empty or
  1328  	// default values are omitted from API requests. See
  1329  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1330  	// details.
  1331  	ForceSendFields []string `json:"-"`
  1332  	// NullFields is a list of field names (e.g. "ManagedAccessIdentity") to
  1333  	// include in API requests with the JSON null value. By default, fields with
  1334  	// empty values are omitted from API requests. See
  1335  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1336  	NullFields []string `json:"-"`
  1337  }
  1338  
  1339  func (s *GoogleCloudDataplexV1AssetResourceStatus) MarshalJSON() ([]byte, error) {
  1340  	type NoMethod GoogleCloudDataplexV1AssetResourceStatus
  1341  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1342  }
  1343  
  1344  // GoogleCloudDataplexV1AssetSecurityStatus: Security policy status of the
  1345  // asset. Data security policy, i.e., readers, writers & owners, should be
  1346  // specified in the lake/zone/asset IAM policy.
  1347  type GoogleCloudDataplexV1AssetSecurityStatus struct {
  1348  	// Message: Additional information about the current state.
  1349  	Message string `json:"message,omitempty"`
  1350  	// State: The current state of the security policy applied to the attached
  1351  	// resource.
  1352  	//
  1353  	// Possible values:
  1354  	//   "STATE_UNSPECIFIED" - State unspecified.
  1355  	//   "READY" - Security policy has been successfully applied to the attached
  1356  	// resource.
  1357  	//   "APPLYING" - Security policy is in the process of being applied to the
  1358  	// attached resource.
  1359  	//   "ERROR" - Security policy could not be applied to the attached resource
  1360  	// due to errors.
  1361  	State string `json:"state,omitempty"`
  1362  	// UpdateTime: Last update time of the status.
  1363  	UpdateTime string `json:"updateTime,omitempty"`
  1364  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  1365  	// include in API requests. By default, fields with empty or default values are
  1366  	// omitted from API requests. See
  1367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1368  	// details.
  1369  	ForceSendFields []string `json:"-"`
  1370  	// NullFields is a list of field names (e.g. "Message") to include in API
  1371  	// requests with the JSON null value. By default, fields with empty values are
  1372  	// omitted from API requests. See
  1373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1374  	NullFields []string `json:"-"`
  1375  }
  1376  
  1377  func (s *GoogleCloudDataplexV1AssetSecurityStatus) MarshalJSON() ([]byte, error) {
  1378  	type NoMethod GoogleCloudDataplexV1AssetSecurityStatus
  1379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1380  }
  1381  
  1382  // GoogleCloudDataplexV1AssetStatus: Aggregated status of the underlying assets
  1383  // of a lake or zone.
  1384  type GoogleCloudDataplexV1AssetStatus struct {
  1385  	// ActiveAssets: Number of active assets.
  1386  	ActiveAssets int64 `json:"activeAssets,omitempty"`
  1387  	// SecurityPolicyApplyingAssets: Number of assets that are in process of
  1388  	// updating the security policy on attached resources.
  1389  	SecurityPolicyApplyingAssets int64 `json:"securityPolicyApplyingAssets,omitempty"`
  1390  	// UpdateTime: Last update time of the status.
  1391  	UpdateTime string `json:"updateTime,omitempty"`
  1392  	// ForceSendFields is a list of field names (e.g. "ActiveAssets") to
  1393  	// unconditionally include in API requests. By default, fields with empty or
  1394  	// default values are omitted from API requests. See
  1395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1396  	// details.
  1397  	ForceSendFields []string `json:"-"`
  1398  	// NullFields is a list of field names (e.g. "ActiveAssets") to include in API
  1399  	// requests with the JSON null value. By default, fields with empty values are
  1400  	// omitted from API requests. See
  1401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1402  	NullFields []string `json:"-"`
  1403  }
  1404  
  1405  func (s *GoogleCloudDataplexV1AssetStatus) MarshalJSON() ([]byte, error) {
  1406  	type NoMethod GoogleCloudDataplexV1AssetStatus
  1407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1408  }
  1409  
  1410  // GoogleCloudDataplexV1CancelJobRequest: Cancel task jobs.
  1411  type GoogleCloudDataplexV1CancelJobRequest struct {
  1412  }
  1413  
  1414  // GoogleCloudDataplexV1Content: Content represents a user-visible notebook or
  1415  // a sql script
  1416  type GoogleCloudDataplexV1Content struct {
  1417  	// CreateTime: Output only. Content creation time.
  1418  	CreateTime string `json:"createTime,omitempty"`
  1419  	// DataText: Required. Content data in string format.
  1420  	DataText string `json:"dataText,omitempty"`
  1421  	// Description: Optional. Description of the content.
  1422  	Description string `json:"description,omitempty"`
  1423  	// Labels: Optional. User defined labels for the content.
  1424  	Labels map[string]string `json:"labels,omitempty"`
  1425  	// Name: Output only. The relative resource name of the content, of the form:
  1426  	// projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{conten
  1427  	// t_id}
  1428  	Name string `json:"name,omitempty"`
  1429  	// Notebook: Notebook related configurations.
  1430  	Notebook *GoogleCloudDataplexV1ContentNotebook `json:"notebook,omitempty"`
  1431  	// Path: Required. The path for the Content file, represented as directory
  1432  	// structure. Unique within a lake. Limited to alphanumerics, hyphens,
  1433  	// underscores, dots and slashes.
  1434  	Path string `json:"path,omitempty"`
  1435  	// SqlScript: Sql Script related configurations.
  1436  	SqlScript *GoogleCloudDataplexV1ContentSqlScript `json:"sqlScript,omitempty"`
  1437  	// Uid: Output only. System generated globally unique ID for the content. This
  1438  	// ID will be different if the content is deleted and re-created with the same
  1439  	// name.
  1440  	Uid string `json:"uid,omitempty"`
  1441  	// UpdateTime: Output only. The time when the content was last updated.
  1442  	UpdateTime string `json:"updateTime,omitempty"`
  1443  
  1444  	// ServerResponse contains the HTTP response code and headers from the server.
  1445  	googleapi.ServerResponse `json:"-"`
  1446  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1447  	// unconditionally include in API requests. By default, fields with empty or
  1448  	// default values are omitted from API requests. See
  1449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1450  	// details.
  1451  	ForceSendFields []string `json:"-"`
  1452  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1453  	// requests with the JSON null value. By default, fields with empty values are
  1454  	// omitted from API requests. See
  1455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1456  	NullFields []string `json:"-"`
  1457  }
  1458  
  1459  func (s *GoogleCloudDataplexV1Content) MarshalJSON() ([]byte, error) {
  1460  	type NoMethod GoogleCloudDataplexV1Content
  1461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1462  }
  1463  
  1464  // GoogleCloudDataplexV1ContentNotebook: Configuration for Notebook content.
  1465  type GoogleCloudDataplexV1ContentNotebook struct {
  1466  	// KernelType: Required. Kernel Type of the notebook.
  1467  	//
  1468  	// Possible values:
  1469  	//   "KERNEL_TYPE_UNSPECIFIED" - Kernel Type unspecified.
  1470  	//   "PYTHON3" - Python 3 Kernel.
  1471  	KernelType string `json:"kernelType,omitempty"`
  1472  	// ForceSendFields is a list of field names (e.g. "KernelType") to
  1473  	// unconditionally include in API requests. By default, fields with empty or
  1474  	// default values are omitted from API requests. See
  1475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1476  	// details.
  1477  	ForceSendFields []string `json:"-"`
  1478  	// NullFields is a list of field names (e.g. "KernelType") to include in API
  1479  	// requests with the JSON null value. By default, fields with empty values are
  1480  	// omitted from API requests. See
  1481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1482  	NullFields []string `json:"-"`
  1483  }
  1484  
  1485  func (s *GoogleCloudDataplexV1ContentNotebook) MarshalJSON() ([]byte, error) {
  1486  	type NoMethod GoogleCloudDataplexV1ContentNotebook
  1487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1488  }
  1489  
  1490  // GoogleCloudDataplexV1ContentSqlScript: Configuration for the Sql Script
  1491  // content.
  1492  type GoogleCloudDataplexV1ContentSqlScript struct {
  1493  	// Engine: Required. Query Engine to be used for the Sql Query.
  1494  	//
  1495  	// Possible values:
  1496  	//   "QUERY_ENGINE_UNSPECIFIED" - Value was unspecified.
  1497  	//   "SPARK" - Spark SQL Query.
  1498  	Engine string `json:"engine,omitempty"`
  1499  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
  1500  	// include in API requests. By default, fields with empty or default values are
  1501  	// omitted from API requests. See
  1502  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1503  	// details.
  1504  	ForceSendFields []string `json:"-"`
  1505  	// NullFields is a list of field names (e.g. "Engine") to include in API
  1506  	// requests with the JSON null value. By default, fields with empty values are
  1507  	// omitted from API requests. See
  1508  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1509  	NullFields []string `json:"-"`
  1510  }
  1511  
  1512  func (s *GoogleCloudDataplexV1ContentSqlScript) MarshalJSON() ([]byte, error) {
  1513  	type NoMethod GoogleCloudDataplexV1ContentSqlScript
  1514  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1515  }
  1516  
  1517  // GoogleCloudDataplexV1DataAccessSpec: DataAccessSpec holds the access control
  1518  // configuration to be enforced on data stored within resources (eg: rows,
  1519  // columns in BigQuery Tables). When associated with data, the data is only
  1520  // accessible to principals explicitly granted access through the
  1521  // DataAccessSpec. Principals with access to the containing resource are not
  1522  // implicitly granted access.
  1523  type GoogleCloudDataplexV1DataAccessSpec struct {
  1524  	// Readers: Optional. The format of strings follows the pattern followed by IAM
  1525  	// in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set
  1526  	// of principals to be granted reader role on data stored within resources.
  1527  	Readers []string `json:"readers,omitempty"`
  1528  	// ForceSendFields is a list of field names (e.g. "Readers") to unconditionally
  1529  	// include in API requests. By default, fields with empty or default values are
  1530  	// omitted from API requests. See
  1531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1532  	// details.
  1533  	ForceSendFields []string `json:"-"`
  1534  	// NullFields is a list of field names (e.g. "Readers") to include in API
  1535  	// requests with the JSON null value. By default, fields with empty values are
  1536  	// omitted from API requests. See
  1537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1538  	NullFields []string `json:"-"`
  1539  }
  1540  
  1541  func (s *GoogleCloudDataplexV1DataAccessSpec) MarshalJSON() ([]byte, error) {
  1542  	type NoMethod GoogleCloudDataplexV1DataAccessSpec
  1543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1544  }
  1545  
  1546  // GoogleCloudDataplexV1DataAttribute: Denotes one dataAttribute in a
  1547  // dataTaxonomy, for example, PII. DataAttribute resources can be defined in a
  1548  // hierarchy. A single dataAttribute resource can contain specs of multiple
  1549  // types PII - ResourceAccessSpec : - readers :foo@bar.com - DataAccessSpec : -
  1550  // readers :bar@foo.com
  1551  type GoogleCloudDataplexV1DataAttribute struct {
  1552  	// AttributeCount: Output only. The number of child attributes present for this
  1553  	// attribute.
  1554  	AttributeCount int64 `json:"attributeCount,omitempty"`
  1555  	// CreateTime: Output only. The time when the DataAttribute was created.
  1556  	CreateTime string `json:"createTime,omitempty"`
  1557  	// DataAccessSpec: Optional. Specified when applied to data stored on the
  1558  	// resource (eg: rows, columns in BigQuery Tables).
  1559  	DataAccessSpec *GoogleCloudDataplexV1DataAccessSpec `json:"dataAccessSpec,omitempty"`
  1560  	// Description: Optional. Description of the DataAttribute.
  1561  	Description string `json:"description,omitempty"`
  1562  	// DisplayName: Optional. User friendly display name.
  1563  	DisplayName string `json:"displayName,omitempty"`
  1564  	// Etag: This checksum is computed by the server based on the value of other
  1565  	// fields, and may be sent on update and delete requests to ensure the client
  1566  	// has an up-to-date value before proceeding.
  1567  	Etag string `json:"etag,omitempty"`
  1568  	// Labels: Optional. User-defined labels for the DataAttribute.
  1569  	Labels map[string]string `json:"labels,omitempty"`
  1570  	// Name: Output only. The relative resource name of the dataAttribute, of the
  1571  	// form:
  1572  	// projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonom
  1573  	// y}/attributes/{data_attribute_id}.
  1574  	Name string `json:"name,omitempty"`
  1575  	// ParentId: Optional. The ID of the parent DataAttribute resource, should
  1576  	// belong to the same data taxonomy. Circular dependency in parent chain is not
  1577  	// valid. Maximum depth of the hierarchy allowed is 4. a -> b -> c -> d -> e,
  1578  	// depth = 4
  1579  	ParentId string `json:"parentId,omitempty"`
  1580  	// ResourceAccessSpec: Optional. Specified when applied to a resource (eg:
  1581  	// Cloud Storage bucket, BigQuery dataset, BigQuery table).
  1582  	ResourceAccessSpec *GoogleCloudDataplexV1ResourceAccessSpec `json:"resourceAccessSpec,omitempty"`
  1583  	// Uid: Output only. System generated globally unique ID for the DataAttribute.
  1584  	// This ID will be different if the DataAttribute is deleted and re-created
  1585  	// with the same name.
  1586  	Uid string `json:"uid,omitempty"`
  1587  	// UpdateTime: Output only. The time when the DataAttribute was last updated.
  1588  	UpdateTime string `json:"updateTime,omitempty"`
  1589  
  1590  	// ServerResponse contains the HTTP response code and headers from the server.
  1591  	googleapi.ServerResponse `json:"-"`
  1592  	// ForceSendFields is a list of field names (e.g. "AttributeCount") to
  1593  	// unconditionally include in API requests. By default, fields with empty or
  1594  	// default values are omitted from API requests. See
  1595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1596  	// details.
  1597  	ForceSendFields []string `json:"-"`
  1598  	// NullFields is a list of field names (e.g. "AttributeCount") to include in
  1599  	// API requests with the JSON null value. By default, fields with empty values
  1600  	// are omitted from API requests. See
  1601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1602  	NullFields []string `json:"-"`
  1603  }
  1604  
  1605  func (s *GoogleCloudDataplexV1DataAttribute) MarshalJSON() ([]byte, error) {
  1606  	type NoMethod GoogleCloudDataplexV1DataAttribute
  1607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1608  }
  1609  
  1610  // GoogleCloudDataplexV1DataAttributeBinding: DataAttributeBinding represents
  1611  // binding of attributes to resources. Eg: Bind 'CustomerInfo' entity with
  1612  // 'PII' attribute.
  1613  type GoogleCloudDataplexV1DataAttributeBinding struct {
  1614  	// Attributes: Optional. List of attributes to be associated with the resource,
  1615  	// provided in the form:
  1616  	// projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attribu
  1617  	// tes/{data_attribute_id}
  1618  	Attributes []string `json:"attributes,omitempty"`
  1619  	// CreateTime: Output only. The time when the DataAttributeBinding was created.
  1620  	CreateTime string `json:"createTime,omitempty"`
  1621  	// Description: Optional. Description of the DataAttributeBinding.
  1622  	Description string `json:"description,omitempty"`
  1623  	// DisplayName: Optional. User friendly display name.
  1624  	DisplayName string `json:"displayName,omitempty"`
  1625  	// Etag: This checksum is computed by the server based on the value of other
  1626  	// fields, and may be sent on update and delete requests to ensure the client
  1627  	// has an up-to-date value before proceeding. Etags must be used when calling
  1628  	// the DeleteDataAttributeBinding and the UpdateDataAttributeBinding method.
  1629  	Etag string `json:"etag,omitempty"`
  1630  	// Labels: Optional. User-defined labels for the DataAttributeBinding.
  1631  	Labels map[string]string `json:"labels,omitempty"`
  1632  	// Name: Output only. The relative resource name of the Data Attribute Binding,
  1633  	// of the form:
  1634  	// projects/{project_number}/locations/{location}/dataAttributeBindings/{data_at
  1635  	// tribute_binding_id}
  1636  	Name string `json:"name,omitempty"`
  1637  	// Paths: Optional. The list of paths for items within the associated resource
  1638  	// (eg. columns and partitions within a table) along with attribute bindings.
  1639  	Paths []*GoogleCloudDataplexV1DataAttributeBindingPath `json:"paths,omitempty"`
  1640  	// Resource: Optional. Immutable. The resource name of the resource that is
  1641  	// associated to attributes. Presently, only entity resource is supported in
  1642  	// the form:
  1643  	// projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{e
  1644  	// ntity_id} Must belong in the same project and region as the attribute
  1645  	// binding, and there can only exist one active binding for a resource.
  1646  	Resource string `json:"resource,omitempty"`
  1647  	// Uid: Output only. System generated globally unique ID for the
  1648  	// DataAttributeBinding. This ID will be different if the DataAttributeBinding
  1649  	// is deleted and re-created with the same name.
  1650  	Uid string `json:"uid,omitempty"`
  1651  	// UpdateTime: Output only. The time when the DataAttributeBinding was last
  1652  	// updated.
  1653  	UpdateTime string `json:"updateTime,omitempty"`
  1654  
  1655  	// ServerResponse contains the HTTP response code and headers from the server.
  1656  	googleapi.ServerResponse `json:"-"`
  1657  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  1658  	// unconditionally include in API requests. By default, fields with empty or
  1659  	// default values are omitted from API requests. See
  1660  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1661  	// details.
  1662  	ForceSendFields []string `json:"-"`
  1663  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  1664  	// requests with the JSON null value. By default, fields with empty values are
  1665  	// omitted from API requests. See
  1666  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1667  	NullFields []string `json:"-"`
  1668  }
  1669  
  1670  func (s *GoogleCloudDataplexV1DataAttributeBinding) MarshalJSON() ([]byte, error) {
  1671  	type NoMethod GoogleCloudDataplexV1DataAttributeBinding
  1672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1673  }
  1674  
  1675  // GoogleCloudDataplexV1DataAttributeBindingPath: Represents a subresource of
  1676  // the given resource, and associated bindings with it. Currently supported
  1677  // subresources are column and partition schema fields within a table.
  1678  type GoogleCloudDataplexV1DataAttributeBindingPath struct {
  1679  	// Attributes: Optional. List of attributes to be associated with the path of
  1680  	// the resource, provided in the form:
  1681  	// projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attribu
  1682  	// tes/{data_attribute_id}
  1683  	Attributes []string `json:"attributes,omitempty"`
  1684  	// Name: Required. The name identifier of the path. Nested columns should be of
  1685  	// the form: 'address.city'.
  1686  	Name string `json:"name,omitempty"`
  1687  	// ForceSendFields is a list of field names (e.g. "Attributes") 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. "Attributes") to include in API
  1694  	// requests with the JSON null value. By default, fields with empty values are
  1695  	// 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 *GoogleCloudDataplexV1DataAttributeBindingPath) MarshalJSON() ([]byte, error) {
  1701  	type NoMethod GoogleCloudDataplexV1DataAttributeBindingPath
  1702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1703  }
  1704  
  1705  // GoogleCloudDataplexV1DataProfileResult: DataProfileResult defines the output
  1706  // of DataProfileScan. Each field of the table will have field type specific
  1707  // profile result.
  1708  type GoogleCloudDataplexV1DataProfileResult struct {
  1709  	// PostScanActionsResult: Output only. The result of post scan actions.
  1710  	PostScanActionsResult *GoogleCloudDataplexV1DataProfileResultPostScanActionsResult `json:"postScanActionsResult,omitempty"`
  1711  	// Profile: The profile information per field.
  1712  	Profile *GoogleCloudDataplexV1DataProfileResultProfile `json:"profile,omitempty"`
  1713  	// RowCount: The count of rows scanned.
  1714  	RowCount int64 `json:"rowCount,omitempty,string"`
  1715  	// ScannedData: The data scanned for this result.
  1716  	ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"`
  1717  	// ForceSendFields is a list of field names (e.g. "PostScanActionsResult") to
  1718  	// unconditionally include in API requests. By default, fields with empty or
  1719  	// default values are omitted from API requests. See
  1720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1721  	// details.
  1722  	ForceSendFields []string `json:"-"`
  1723  	// NullFields is a list of field names (e.g. "PostScanActionsResult") to
  1724  	// include in API requests with the JSON null value. By default, fields with
  1725  	// empty values are omitted from API requests. See
  1726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1727  	NullFields []string `json:"-"`
  1728  }
  1729  
  1730  func (s *GoogleCloudDataplexV1DataProfileResult) MarshalJSON() ([]byte, error) {
  1731  	type NoMethod GoogleCloudDataplexV1DataProfileResult
  1732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1733  }
  1734  
  1735  // GoogleCloudDataplexV1DataProfileResultPostScanActionsResult: The result of
  1736  // post scan actions of DataProfileScan job.
  1737  type GoogleCloudDataplexV1DataProfileResultPostScanActionsResult struct {
  1738  	// BigqueryExportResult: Output only. The result of BigQuery export post scan
  1739  	// action.
  1740  	BigqueryExportResult *GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"`
  1741  	// ForceSendFields is a list of field names (e.g. "BigqueryExportResult") to
  1742  	// unconditionally include in API requests. By default, fields with empty or
  1743  	// default values are omitted from API requests. See
  1744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1745  	// details.
  1746  	ForceSendFields []string `json:"-"`
  1747  	// NullFields is a list of field names (e.g. "BigqueryExportResult") to include
  1748  	// in API requests with the JSON null value. By default, fields with empty
  1749  	// values are omitted from API requests. See
  1750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1751  	NullFields []string `json:"-"`
  1752  }
  1753  
  1754  func (s *GoogleCloudDataplexV1DataProfileResultPostScanActionsResult) MarshalJSON() ([]byte, error) {
  1755  	type NoMethod GoogleCloudDataplexV1DataProfileResultPostScanActionsResult
  1756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1757  }
  1758  
  1759  // GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResu
  1760  // lt: The result of BigQuery export post scan action.
  1761  type GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult struct {
  1762  	// Message: Output only. Additional information about the BigQuery exporting.
  1763  	Message string `json:"message,omitempty"`
  1764  	// State: Output only. Execution state for the BigQuery exporting.
  1765  	//
  1766  	// Possible values:
  1767  	//   "STATE_UNSPECIFIED" - The exporting state is unspecified.
  1768  	//   "SUCCEEDED" - The exporting completed successfully.
  1769  	//   "FAILED" - The exporting is no longer running due to an error.
  1770  	//   "SKIPPED" - The exporting is skipped due to no valid scan result to export
  1771  	// (usually caused by scan failed).
  1772  	State string `json:"state,omitempty"`
  1773  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  1774  	// include in API requests. By default, fields with empty or default values are
  1775  	// omitted from API requests. See
  1776  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1777  	// details.
  1778  	ForceSendFields []string `json:"-"`
  1779  	// NullFields is a list of field names (e.g. "Message") to include in API
  1780  	// requests with the JSON null value. By default, fields with empty values are
  1781  	// omitted from API requests. See
  1782  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1783  	NullFields []string `json:"-"`
  1784  }
  1785  
  1786  func (s *GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) {
  1787  	type NoMethod GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult
  1788  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1789  }
  1790  
  1791  // GoogleCloudDataplexV1DataProfileResultProfile: Contains name, type, mode and
  1792  // field type specific profile information.
  1793  type GoogleCloudDataplexV1DataProfileResultProfile struct {
  1794  	// Fields: List of fields with structural and profile information for each
  1795  	// field.
  1796  	Fields []*GoogleCloudDataplexV1DataProfileResultProfileField `json:"fields,omitempty"`
  1797  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  1798  	// include in API requests. By default, fields with empty or default values are
  1799  	// omitted from API requests. See
  1800  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1801  	// details.
  1802  	ForceSendFields []string `json:"-"`
  1803  	// NullFields is a list of field names (e.g. "Fields") to include in API
  1804  	// requests with the JSON null value. By default, fields with empty values are
  1805  	// omitted from API requests. See
  1806  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1807  	NullFields []string `json:"-"`
  1808  }
  1809  
  1810  func (s *GoogleCloudDataplexV1DataProfileResultProfile) MarshalJSON() ([]byte, error) {
  1811  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfile
  1812  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1813  }
  1814  
  1815  // GoogleCloudDataplexV1DataProfileResultProfileField: A field within a table.
  1816  type GoogleCloudDataplexV1DataProfileResultProfileField struct {
  1817  	// Mode: The mode of the field. Possible values include: REQUIRED, if it is a
  1818  	// required field. NULLABLE, if it is an optional field. REPEATED, if it is a
  1819  	// repeated field.
  1820  	Mode string `json:"mode,omitempty"`
  1821  	// Name: The name of the field.
  1822  	Name string `json:"name,omitempty"`
  1823  	// Profile: Profile information for the corresponding field.
  1824  	Profile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo `json:"profile,omitempty"`
  1825  	// Type: The data type retrieved from the schema of the data source. For
  1826  	// instance, for a BigQuery native table, it is the BigQuery Table Schema
  1827  	// (https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
  1828  	// For a Dataplex Entity, it is the Entity Schema
  1829  	// (https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
  1830  	Type string `json:"type,omitempty"`
  1831  	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
  1832  	// include in API requests. By default, fields with empty or default values are
  1833  	// omitted from 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. "Mode") to include in API requests
  1838  	// with the JSON null value. By default, fields with empty values are omitted
  1839  	// from API requests. See
  1840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1841  	NullFields []string `json:"-"`
  1842  }
  1843  
  1844  func (s *GoogleCloudDataplexV1DataProfileResultProfileField) MarshalJSON() ([]byte, error) {
  1845  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileField
  1846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1847  }
  1848  
  1849  // GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo: The profile
  1850  // information for each field type.
  1851  type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo struct {
  1852  	// DistinctRatio: Ratio of rows with distinct values against total scanned
  1853  	// rows. Not available for complex non-groupable field type RECORD and fields
  1854  	// with REPEATABLE mode.
  1855  	DistinctRatio float64 `json:"distinctRatio,omitempty"`
  1856  	// DoubleProfile: Double type field information.
  1857  	DoubleProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo `json:"doubleProfile,omitempty"`
  1858  	// IntegerProfile: Integer type field information.
  1859  	IntegerProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo `json:"integerProfile,omitempty"`
  1860  	// NullRatio: Ratio of rows with null value against total scanned rows.
  1861  	NullRatio float64 `json:"nullRatio,omitempty"`
  1862  	// StringProfile: String type field information.
  1863  	StringProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo `json:"stringProfile,omitempty"`
  1864  	// TopNValues: The list of top N non-null values, frequency and ratio with
  1865  	// which they occur in the scanned data. N is 10 or equal to the number of
  1866  	// distinct values in the field, whichever is smaller. Not available for
  1867  	// complex non-groupable field type RECORD and fields with REPEATABLE mode.
  1868  	TopNValues []*GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue `json:"topNValues,omitempty"`
  1869  	// ForceSendFields is a list of field names (e.g. "DistinctRatio") to
  1870  	// unconditionally include in API requests. By default, fields with empty or
  1871  	// default values are omitted from API requests. See
  1872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1873  	// details.
  1874  	ForceSendFields []string `json:"-"`
  1875  	// NullFields is a list of field names (e.g. "DistinctRatio") to include in API
  1876  	// requests with the JSON null value. By default, fields with empty values are
  1877  	// omitted from API requests. See
  1878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1879  	NullFields []string `json:"-"`
  1880  }
  1881  
  1882  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo) MarshalJSON() ([]byte, error) {
  1883  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo
  1884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1885  }
  1886  
  1887  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo) UnmarshalJSON(data []byte) error {
  1888  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo
  1889  	var s1 struct {
  1890  		DistinctRatio gensupport.JSONFloat64 `json:"distinctRatio"`
  1891  		NullRatio     gensupport.JSONFloat64 `json:"nullRatio"`
  1892  		*NoMethod
  1893  	}
  1894  	s1.NoMethod = (*NoMethod)(s)
  1895  	if err := json.Unmarshal(data, &s1); err != nil {
  1896  		return err
  1897  	}
  1898  	s.DistinctRatio = float64(s1.DistinctRatio)
  1899  	s.NullRatio = float64(s1.NullRatio)
  1900  	return nil
  1901  }
  1902  
  1903  // GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo:
  1904  //
  1905  //	The profile information for a double type field.
  1906  type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo struct {
  1907  	// Average: Average of non-null values in the scanned data. NaN, if the field
  1908  	// has a NaN.
  1909  	Average float64 `json:"average,omitempty"`
  1910  	// Max: Maximum of non-null values in the scanned data. NaN, if the field has a
  1911  	// NaN.
  1912  	Max float64 `json:"max,omitempty"`
  1913  	// Min: Minimum of non-null values in the scanned data. NaN, if the field has a
  1914  	// NaN.
  1915  	Min float64 `json:"min,omitempty"`
  1916  	// Quartiles: A quartile divides the number of data points into four parts, or
  1917  	// quarters, of more-or-less equal size. Three main quartiles used are: The
  1918  	// first quartile (Q1) splits off the lowest 25% of data from the highest 75%.
  1919  	// It is also known as the lower or 25th empirical quartile, as 25% of the data
  1920  	// is below this point. The second quartile (Q2) is the median of a data set.
  1921  	// So, 50% of the data lies below this point. The third quartile (Q3) splits
  1922  	// off the highest 25% of data from the lowest 75%. It is known as the upper or
  1923  	// 75th empirical quartile, as 75% of the data lies below this point. Here, the
  1924  	// quartiles is provided as an ordered list of quartile values for the scanned
  1925  	// data, occurring in order Q1, median, Q3.
  1926  	Quartiles []float64 `json:"quartiles,omitempty"`
  1927  	// StandardDeviation: Standard deviation of non-null values in the scanned
  1928  	// data. NaN, if the field has a NaN.
  1929  	StandardDeviation float64 `json:"standardDeviation,omitempty"`
  1930  	// ForceSendFields is a list of field names (e.g. "Average") to unconditionally
  1931  	// include in API requests. By default, fields with empty or default values are
  1932  	// omitted from API requests. See
  1933  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1934  	// details.
  1935  	ForceSendFields []string `json:"-"`
  1936  	// NullFields is a list of field names (e.g. "Average") to include in API
  1937  	// requests with the JSON null value. By default, fields with empty values are
  1938  	// omitted from API requests. See
  1939  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1940  	NullFields []string `json:"-"`
  1941  }
  1942  
  1943  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo) MarshalJSON() ([]byte, error) {
  1944  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo
  1945  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1946  }
  1947  
  1948  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo) UnmarshalJSON(data []byte) error {
  1949  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo
  1950  	var s1 struct {
  1951  		Average           gensupport.JSONFloat64   `json:"average"`
  1952  		Max               gensupport.JSONFloat64   `json:"max"`
  1953  		Min               gensupport.JSONFloat64   `json:"min"`
  1954  		Quartiles         []gensupport.JSONFloat64 `json:"quartiles"`
  1955  		StandardDeviation gensupport.JSONFloat64   `json:"standardDeviation"`
  1956  		*NoMethod
  1957  	}
  1958  	s1.NoMethod = (*NoMethod)(s)
  1959  	if err := json.Unmarshal(data, &s1); err != nil {
  1960  		return err
  1961  	}
  1962  	s.Average = float64(s1.Average)
  1963  	s.Max = float64(s1.Max)
  1964  	s.Min = float64(s1.Min)
  1965  	s.Quartiles = make([]float64, len(s1.Quartiles))
  1966  	for i := range s1.Quartiles {
  1967  		s.Quartiles[i] = float64(s1.Quartiles[i])
  1968  	}
  1969  	s.StandardDeviation = float64(s1.StandardDeviation)
  1970  	return nil
  1971  }
  1972  
  1973  // GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo
  1974  // : The profile information for an integer type field.
  1975  type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo struct {
  1976  	// Average: Average of non-null values in the scanned data. NaN, if the field
  1977  	// has a NaN.
  1978  	Average float64 `json:"average,omitempty"`
  1979  	// Max: Maximum of non-null values in the scanned data. NaN, if the field has a
  1980  	// NaN.
  1981  	Max int64 `json:"max,omitempty,string"`
  1982  	// Min: Minimum of non-null values in the scanned data. NaN, if the field has a
  1983  	// NaN.
  1984  	Min int64 `json:"min,omitempty,string"`
  1985  	// Quartiles: A quartile divides the number of data points into four parts, or
  1986  	// quarters, of more-or-less equal size. Three main quartiles used are: The
  1987  	// first quartile (Q1) splits off the lowest 25% of data from the highest 75%.
  1988  	// It is also known as the lower or 25th empirical quartile, as 25% of the data
  1989  	// is below this point. The second quartile (Q2) is the median of a data set.
  1990  	// So, 50% of the data lies below this point. The third quartile (Q3) splits
  1991  	// off the highest 25% of data from the lowest 75%. It is known as the upper or
  1992  	// 75th empirical quartile, as 75% of the data lies below this point. Here, the
  1993  	// quartiles is provided as an ordered list of approximate quartile values for
  1994  	// the scanned data, occurring in order Q1, median, Q3.
  1995  	Quartiles googleapi.Int64s `json:"quartiles,omitempty"`
  1996  	// StandardDeviation: Standard deviation of non-null values in the scanned
  1997  	// data. NaN, if the field has a NaN.
  1998  	StandardDeviation float64 `json:"standardDeviation,omitempty"`
  1999  	// ForceSendFields is a list of field names (e.g. "Average") 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. "Average") 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 *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo) MarshalJSON() ([]byte, error) {
  2013  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo
  2014  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2015  }
  2016  
  2017  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo) UnmarshalJSON(data []byte) error {
  2018  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo
  2019  	var s1 struct {
  2020  		Average           gensupport.JSONFloat64 `json:"average"`
  2021  		StandardDeviation gensupport.JSONFloat64 `json:"standardDeviation"`
  2022  		*NoMethod
  2023  	}
  2024  	s1.NoMethod = (*NoMethod)(s)
  2025  	if err := json.Unmarshal(data, &s1); err != nil {
  2026  		return err
  2027  	}
  2028  	s.Average = float64(s1.Average)
  2029  	s.StandardDeviation = float64(s1.StandardDeviation)
  2030  	return nil
  2031  }
  2032  
  2033  // GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo:
  2034  //
  2035  //	The profile information for a string type field.
  2036  type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo struct {
  2037  	// AverageLength: Average length of non-null values in the scanned data.
  2038  	AverageLength float64 `json:"averageLength,omitempty"`
  2039  	// MaxLength: Maximum length of non-null values in the scanned data.
  2040  	MaxLength int64 `json:"maxLength,omitempty,string"`
  2041  	// MinLength: Minimum length of non-null values in the scanned data.
  2042  	MinLength int64 `json:"minLength,omitempty,string"`
  2043  	// ForceSendFields is a list of field names (e.g. "AverageLength") to
  2044  	// unconditionally include in API requests. By default, fields with empty or
  2045  	// default values are omitted from API requests. See
  2046  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2047  	// details.
  2048  	ForceSendFields []string `json:"-"`
  2049  	// NullFields is a list of field names (e.g. "AverageLength") to include in API
  2050  	// requests with the JSON null value. By default, fields with empty values are
  2051  	// omitted from API requests. See
  2052  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2053  	NullFields []string `json:"-"`
  2054  }
  2055  
  2056  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo) MarshalJSON() ([]byte, error) {
  2057  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo
  2058  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2059  }
  2060  
  2061  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo) UnmarshalJSON(data []byte) error {
  2062  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo
  2063  	var s1 struct {
  2064  		AverageLength gensupport.JSONFloat64 `json:"averageLength"`
  2065  		*NoMethod
  2066  	}
  2067  	s1.NoMethod = (*NoMethod)(s)
  2068  	if err := json.Unmarshal(data, &s1); err != nil {
  2069  		return err
  2070  	}
  2071  	s.AverageLength = float64(s1.AverageLength)
  2072  	return nil
  2073  }
  2074  
  2075  // GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue: Top
  2076  // N non-null values in the scanned data.
  2077  type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue struct {
  2078  	// Count: Count of the corresponding value in the scanned data.
  2079  	Count int64 `json:"count,omitempty,string"`
  2080  	// Ratio: Ratio of the corresponding value in the field against the total
  2081  	// number of rows in the scanned data.
  2082  	Ratio float64 `json:"ratio,omitempty"`
  2083  	// Value: String value of a top N non-null value.
  2084  	Value string `json:"value,omitempty"`
  2085  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  2086  	// include in API requests. By default, fields with empty or default values are
  2087  	// omitted from API requests. See
  2088  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2089  	// details.
  2090  	ForceSendFields []string `json:"-"`
  2091  	// NullFields is a list of field names (e.g. "Count") to include in API
  2092  	// requests with the JSON null value. By default, fields with empty values are
  2093  	// omitted from API requests. See
  2094  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2095  	NullFields []string `json:"-"`
  2096  }
  2097  
  2098  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) MarshalJSON() ([]byte, error) {
  2099  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue
  2100  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2101  }
  2102  
  2103  func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) UnmarshalJSON(data []byte) error {
  2104  	type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue
  2105  	var s1 struct {
  2106  		Ratio gensupport.JSONFloat64 `json:"ratio"`
  2107  		*NoMethod
  2108  	}
  2109  	s1.NoMethod = (*NoMethod)(s)
  2110  	if err := json.Unmarshal(data, &s1); err != nil {
  2111  		return err
  2112  	}
  2113  	s.Ratio = float64(s1.Ratio)
  2114  	return nil
  2115  }
  2116  
  2117  // GoogleCloudDataplexV1DataProfileSpec: DataProfileScan related setting.
  2118  type GoogleCloudDataplexV1DataProfileSpec struct {
  2119  	// ExcludeFields: Optional. The fields to exclude from data profile.If
  2120  	// specified, the fields will be excluded from data profile, regardless of
  2121  	// include_fields value.
  2122  	ExcludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"excludeFields,omitempty"`
  2123  	// IncludeFields: Optional. The fields to include in data profile.If not
  2124  	// specified, all fields at the time of profile scan job execution are
  2125  	// included, except for ones listed in exclude_fields.
  2126  	IncludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"includeFields,omitempty"`
  2127  	// PostScanActions: Optional. Actions to take upon job completion..
  2128  	PostScanActions *GoogleCloudDataplexV1DataProfileSpecPostScanActions `json:"postScanActions,omitempty"`
  2129  	// RowFilter: Optional. A filter applied to all rows in a single DataScan job.
  2130  	// The filter needs to be a valid SQL expression for a WHERE clause in BigQuery
  2131  	// standard SQL syntax. Example: col1 >= 0 AND col2 < 10
  2132  	RowFilter string `json:"rowFilter,omitempty"`
  2133  	// SamplingPercent: Optional. The percentage of the records to be selected from
  2134  	// the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3
  2135  	// significant decimal digits. Sampling is not applied if sampling_percent is
  2136  	// not specified, 0 or 100.
  2137  	SamplingPercent float64 `json:"samplingPercent,omitempty"`
  2138  	// ForceSendFields is a list of field names (e.g. "ExcludeFields") to
  2139  	// unconditionally include in API requests. By default, fields with empty or
  2140  	// default values are omitted from API requests. See
  2141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2142  	// details.
  2143  	ForceSendFields []string `json:"-"`
  2144  	// NullFields is a list of field names (e.g. "ExcludeFields") to include in API
  2145  	// requests with the JSON null value. By default, fields with empty values are
  2146  	// omitted from API requests. See
  2147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2148  	NullFields []string `json:"-"`
  2149  }
  2150  
  2151  func (s *GoogleCloudDataplexV1DataProfileSpec) MarshalJSON() ([]byte, error) {
  2152  	type NoMethod GoogleCloudDataplexV1DataProfileSpec
  2153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2154  }
  2155  
  2156  func (s *GoogleCloudDataplexV1DataProfileSpec) UnmarshalJSON(data []byte) error {
  2157  	type NoMethod GoogleCloudDataplexV1DataProfileSpec
  2158  	var s1 struct {
  2159  		SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
  2160  		*NoMethod
  2161  	}
  2162  	s1.NoMethod = (*NoMethod)(s)
  2163  	if err := json.Unmarshal(data, &s1); err != nil {
  2164  		return err
  2165  	}
  2166  	s.SamplingPercent = float64(s1.SamplingPercent)
  2167  	return nil
  2168  }
  2169  
  2170  // GoogleCloudDataplexV1DataProfileSpecPostScanActions: The configuration of
  2171  // post scan actions of DataProfileScan job.
  2172  type GoogleCloudDataplexV1DataProfileSpecPostScanActions struct {
  2173  	// BigqueryExport: Optional. If set, results will be exported to the provided
  2174  	// BigQuery table.
  2175  	BigqueryExport *GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport `json:"bigqueryExport,omitempty"`
  2176  	// ForceSendFields is a list of field names (e.g. "BigqueryExport") to
  2177  	// unconditionally include in API requests. By default, fields with empty or
  2178  	// default values are omitted from API requests. See
  2179  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2180  	// details.
  2181  	ForceSendFields []string `json:"-"`
  2182  	// NullFields is a list of field names (e.g. "BigqueryExport") to include in
  2183  	// API requests with the JSON null value. By default, fields with empty values
  2184  	// are omitted from API requests. See
  2185  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2186  	NullFields []string `json:"-"`
  2187  }
  2188  
  2189  func (s *GoogleCloudDataplexV1DataProfileSpecPostScanActions) MarshalJSON() ([]byte, error) {
  2190  	type NoMethod GoogleCloudDataplexV1DataProfileSpecPostScanActions
  2191  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2192  }
  2193  
  2194  // GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport: The
  2195  // configuration of BigQuery export post scan action.
  2196  type GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport struct {
  2197  	// ResultsTable: Optional. The BigQuery table to export DataProfileScan results
  2198  	// to. Format:
  2199  	// //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABL
  2200  	// E_ID
  2201  	ResultsTable string `json:"resultsTable,omitempty"`
  2202  	// ForceSendFields is a list of field names (e.g. "ResultsTable") to
  2203  	// unconditionally include in API requests. By default, fields with empty or
  2204  	// default values are omitted from API requests. See
  2205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2206  	// details.
  2207  	ForceSendFields []string `json:"-"`
  2208  	// NullFields is a list of field names (e.g. "ResultsTable") to include in API
  2209  	// requests with the JSON null value. By default, fields with empty values are
  2210  	// omitted from API requests. See
  2211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2212  	NullFields []string `json:"-"`
  2213  }
  2214  
  2215  func (s *GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport) MarshalJSON() ([]byte, error) {
  2216  	type NoMethod GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport
  2217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2218  }
  2219  
  2220  // GoogleCloudDataplexV1DataProfileSpecSelectedFields: The specification for
  2221  // fields to include or exclude in data profile scan.
  2222  type GoogleCloudDataplexV1DataProfileSpecSelectedFields struct {
  2223  	// FieldNames: Optional. Expected input is a list of fully qualified names of
  2224  	// fields as in the schema.Only top-level field names for nested fields are
  2225  	// supported. For instance, if 'x' is of nested field type, listing 'x' is
  2226  	// supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields
  2227  	// of 'x'.
  2228  	FieldNames []string `json:"fieldNames,omitempty"`
  2229  	// ForceSendFields is a list of field names (e.g. "FieldNames") to
  2230  	// unconditionally include in API requests. By default, fields with empty or
  2231  	// default values are omitted from API requests. See
  2232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2233  	// details.
  2234  	ForceSendFields []string `json:"-"`
  2235  	// NullFields is a list of field names (e.g. "FieldNames") to include in API
  2236  	// requests with the JSON null value. By default, fields with empty values are
  2237  	// omitted from API requests. See
  2238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2239  	NullFields []string `json:"-"`
  2240  }
  2241  
  2242  func (s *GoogleCloudDataplexV1DataProfileSpecSelectedFields) MarshalJSON() ([]byte, error) {
  2243  	type NoMethod GoogleCloudDataplexV1DataProfileSpecSelectedFields
  2244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2245  }
  2246  
  2247  // GoogleCloudDataplexV1DataQualityColumnResult: DataQualityColumnResult
  2248  // provides a more detailed, per-column view of the results.
  2249  type GoogleCloudDataplexV1DataQualityColumnResult struct {
  2250  	// Column: Output only. The column specified in the DataQualityRule.
  2251  	Column string `json:"column,omitempty"`
  2252  	// Score: Output only. The column-level data quality score for this data scan
  2253  	// job if and only if the 'column' field is set.The score ranges between
  2254  	// between 0, 100 (up to two decimal points).
  2255  	Score float64 `json:"score,omitempty"`
  2256  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  2257  	// include in API requests. By default, fields with empty or default values are
  2258  	// omitted from API requests. See
  2259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2260  	// details.
  2261  	ForceSendFields []string `json:"-"`
  2262  	// NullFields is a list of field names (e.g. "Column") to include in API
  2263  	// requests with the JSON null value. By default, fields with empty values are
  2264  	// omitted from API requests. See
  2265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2266  	NullFields []string `json:"-"`
  2267  }
  2268  
  2269  func (s *GoogleCloudDataplexV1DataQualityColumnResult) MarshalJSON() ([]byte, error) {
  2270  	type NoMethod GoogleCloudDataplexV1DataQualityColumnResult
  2271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2272  }
  2273  
  2274  func (s *GoogleCloudDataplexV1DataQualityColumnResult) UnmarshalJSON(data []byte) error {
  2275  	type NoMethod GoogleCloudDataplexV1DataQualityColumnResult
  2276  	var s1 struct {
  2277  		Score gensupport.JSONFloat64 `json:"score"`
  2278  		*NoMethod
  2279  	}
  2280  	s1.NoMethod = (*NoMethod)(s)
  2281  	if err := json.Unmarshal(data, &s1); err != nil {
  2282  		return err
  2283  	}
  2284  	s.Score = float64(s1.Score)
  2285  	return nil
  2286  }
  2287  
  2288  // GoogleCloudDataplexV1DataQualityDimension: A dimension captures data quality
  2289  // intent about a defined subset of the rules specified.
  2290  type GoogleCloudDataplexV1DataQualityDimension struct {
  2291  	// Name: The dimension name a rule belongs to. Supported dimensions are
  2292  	// "COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS",
  2293  	// "INTEGRITY"
  2294  	Name string `json:"name,omitempty"`
  2295  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2296  	// include in API requests. By default, fields with empty or default values are
  2297  	// omitted from API requests. See
  2298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2299  	// details.
  2300  	ForceSendFields []string `json:"-"`
  2301  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2302  	// with the JSON null value. By default, fields with empty values are omitted
  2303  	// from API requests. See
  2304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2305  	NullFields []string `json:"-"`
  2306  }
  2307  
  2308  func (s *GoogleCloudDataplexV1DataQualityDimension) MarshalJSON() ([]byte, error) {
  2309  	type NoMethod GoogleCloudDataplexV1DataQualityDimension
  2310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2311  }
  2312  
  2313  // GoogleCloudDataplexV1DataQualityDimensionResult: DataQualityDimensionResult
  2314  // provides a more detailed, per-dimension view of the results.
  2315  type GoogleCloudDataplexV1DataQualityDimensionResult struct {
  2316  	// Dimension: Output only. The dimension config specified in the
  2317  	// DataQualitySpec, as is.
  2318  	Dimension *GoogleCloudDataplexV1DataQualityDimension `json:"dimension,omitempty"`
  2319  	// Passed: Whether the dimension passed or failed.
  2320  	Passed bool `json:"passed,omitempty"`
  2321  	// Score: Output only. The dimension-level data quality score for this data
  2322  	// scan job if and only if the 'dimension' field is set.The score ranges
  2323  	// between 0, 100 (up to two decimal points).
  2324  	Score float64 `json:"score,omitempty"`
  2325  	// ForceSendFields is a list of field names (e.g. "Dimension") to
  2326  	// unconditionally include in API requests. By default, fields with empty or
  2327  	// default values are omitted from API requests. See
  2328  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2329  	// details.
  2330  	ForceSendFields []string `json:"-"`
  2331  	// NullFields is a list of field names (e.g. "Dimension") to include in API
  2332  	// requests with the JSON null value. By default, fields with empty values are
  2333  	// omitted from API requests. See
  2334  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2335  	NullFields []string `json:"-"`
  2336  }
  2337  
  2338  func (s *GoogleCloudDataplexV1DataQualityDimensionResult) MarshalJSON() ([]byte, error) {
  2339  	type NoMethod GoogleCloudDataplexV1DataQualityDimensionResult
  2340  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2341  }
  2342  
  2343  func (s *GoogleCloudDataplexV1DataQualityDimensionResult) UnmarshalJSON(data []byte) error {
  2344  	type NoMethod GoogleCloudDataplexV1DataQualityDimensionResult
  2345  	var s1 struct {
  2346  		Score gensupport.JSONFloat64 `json:"score"`
  2347  		*NoMethod
  2348  	}
  2349  	s1.NoMethod = (*NoMethod)(s)
  2350  	if err := json.Unmarshal(data, &s1); err != nil {
  2351  		return err
  2352  	}
  2353  	s.Score = float64(s1.Score)
  2354  	return nil
  2355  }
  2356  
  2357  // GoogleCloudDataplexV1DataQualityResult: The output of a DataQualityScan.
  2358  type GoogleCloudDataplexV1DataQualityResult struct {
  2359  	// Columns: Output only. A list of results at the column level.A column will
  2360  	// have a corresponding DataQualityColumnResult if and only if there is at
  2361  	// least one rule with the 'column' field set to it.
  2362  	Columns []*GoogleCloudDataplexV1DataQualityColumnResult `json:"columns,omitempty"`
  2363  	// Dimensions: A list of results at the dimension level.A dimension will have a
  2364  	// corresponding DataQualityDimensionResult if and only if there is at least
  2365  	// one rule with the 'dimension' field set to it.
  2366  	Dimensions []*GoogleCloudDataplexV1DataQualityDimensionResult `json:"dimensions,omitempty"`
  2367  	// Passed: Overall data quality result -- true if all rules passed.
  2368  	Passed bool `json:"passed,omitempty"`
  2369  	// PostScanActionsResult: Output only. The result of post scan actions.
  2370  	PostScanActionsResult *GoogleCloudDataplexV1DataQualityResultPostScanActionsResult `json:"postScanActionsResult,omitempty"`
  2371  	// RowCount: The count of rows processed.
  2372  	RowCount int64 `json:"rowCount,omitempty,string"`
  2373  	// Rules: A list of all the rules in a job, and their results.
  2374  	Rules []*GoogleCloudDataplexV1DataQualityRuleResult `json:"rules,omitempty"`
  2375  	// ScannedData: The data scanned for this result.
  2376  	ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"`
  2377  	// Score: Output only. The overall data quality score.The score ranges between
  2378  	// 0, 100 (up to two decimal points).
  2379  	Score float64 `json:"score,omitempty"`
  2380  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  2381  	// include in API requests. By default, fields with empty or default values are
  2382  	// omitted from API requests. See
  2383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2384  	// details.
  2385  	ForceSendFields []string `json:"-"`
  2386  	// NullFields is a list of field names (e.g. "Columns") to include in API
  2387  	// requests with the JSON null value. By default, fields with empty values are
  2388  	// omitted from API requests. See
  2389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2390  	NullFields []string `json:"-"`
  2391  }
  2392  
  2393  func (s *GoogleCloudDataplexV1DataQualityResult) MarshalJSON() ([]byte, error) {
  2394  	type NoMethod GoogleCloudDataplexV1DataQualityResult
  2395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2396  }
  2397  
  2398  func (s *GoogleCloudDataplexV1DataQualityResult) UnmarshalJSON(data []byte) error {
  2399  	type NoMethod GoogleCloudDataplexV1DataQualityResult
  2400  	var s1 struct {
  2401  		Score gensupport.JSONFloat64 `json:"score"`
  2402  		*NoMethod
  2403  	}
  2404  	s1.NoMethod = (*NoMethod)(s)
  2405  	if err := json.Unmarshal(data, &s1); err != nil {
  2406  		return err
  2407  	}
  2408  	s.Score = float64(s1.Score)
  2409  	return nil
  2410  }
  2411  
  2412  // GoogleCloudDataplexV1DataQualityResultPostScanActionsResult: The result of
  2413  // post scan actions of DataQualityScan job.
  2414  type GoogleCloudDataplexV1DataQualityResultPostScanActionsResult struct {
  2415  	// BigqueryExportResult: Output only. The result of BigQuery export post scan
  2416  	// action.
  2417  	BigqueryExportResult *GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"`
  2418  	// ForceSendFields is a list of field names (e.g. "BigqueryExportResult") to
  2419  	// unconditionally include in API requests. By default, fields with empty or
  2420  	// default values are omitted from API requests. See
  2421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2422  	// details.
  2423  	ForceSendFields []string `json:"-"`
  2424  	// NullFields is a list of field names (e.g. "BigqueryExportResult") to include
  2425  	// in API requests with the JSON null value. By default, fields with empty
  2426  	// values are omitted from API requests. See
  2427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2428  	NullFields []string `json:"-"`
  2429  }
  2430  
  2431  func (s *GoogleCloudDataplexV1DataQualityResultPostScanActionsResult) MarshalJSON() ([]byte, error) {
  2432  	type NoMethod GoogleCloudDataplexV1DataQualityResultPostScanActionsResult
  2433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2434  }
  2435  
  2436  // GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResu
  2437  // lt: The result of BigQuery export post scan action.
  2438  type GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult struct {
  2439  	// Message: Output only. Additional information about the BigQuery exporting.
  2440  	Message string `json:"message,omitempty"`
  2441  	// State: Output only. Execution state for the BigQuery exporting.
  2442  	//
  2443  	// Possible values:
  2444  	//   "STATE_UNSPECIFIED" - The exporting state is unspecified.
  2445  	//   "SUCCEEDED" - The exporting completed successfully.
  2446  	//   "FAILED" - The exporting is no longer running due to an error.
  2447  	//   "SKIPPED" - The exporting is skipped due to no valid scan result to export
  2448  	// (usually caused by scan failed).
  2449  	State string `json:"state,omitempty"`
  2450  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  2451  	// include in API requests. By default, fields with empty or default values are
  2452  	// omitted from API requests. See
  2453  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2454  	// details.
  2455  	ForceSendFields []string `json:"-"`
  2456  	// NullFields is a list of field names (e.g. "Message") to include in API
  2457  	// requests with the JSON null value. By default, fields with empty values are
  2458  	// omitted from API requests. See
  2459  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2460  	NullFields []string `json:"-"`
  2461  }
  2462  
  2463  func (s *GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) {
  2464  	type NoMethod GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult
  2465  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2466  }
  2467  
  2468  // GoogleCloudDataplexV1DataQualityRule: A rule captures data quality intent
  2469  // about a data source.
  2470  type GoogleCloudDataplexV1DataQualityRule struct {
  2471  	// Column: Optional. The unnested column which this rule is evaluated against.
  2472  	Column string `json:"column,omitempty"`
  2473  	// Description: Optional. Description of the rule. The maximum length is 1,024
  2474  	// characters.
  2475  	Description string `json:"description,omitempty"`
  2476  	// Dimension: Required. The dimension a rule belongs to. Results are also
  2477  	// aggregated at the dimension level. Supported dimensions are "COMPLETENESS",
  2478  	// "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"
  2479  	Dimension string `json:"dimension,omitempty"`
  2480  	// IgnoreNull: Optional. Rows with null values will automatically fail a rule,
  2481  	// unless ignore_null is true. In that case, such null rows are trivially
  2482  	// considered passing.This field is only valid for the following type of rules:
  2483  	// RangeExpectation RegexExpectation SetExpectation UniquenessExpectation
  2484  	IgnoreNull bool `json:"ignoreNull,omitempty"`
  2485  	// Name: Optional. A mutable name for the rule. The name must contain only
  2486  	// letters (a-z, A-Z), numbers (0-9), or hyphens (-). The maximum length is 63
  2487  	// characters. Must start with a letter. Must end with a number or a letter.
  2488  	Name string `json:"name,omitempty"`
  2489  	// NonNullExpectation: Row-level rule which evaluates whether each column value
  2490  	// is null.
  2491  	NonNullExpectation *GoogleCloudDataplexV1DataQualityRuleNonNullExpectation `json:"nonNullExpectation,omitempty"`
  2492  	// RangeExpectation: Row-level rule which evaluates whether each column value
  2493  	// lies between a specified range.
  2494  	RangeExpectation *GoogleCloudDataplexV1DataQualityRuleRangeExpectation `json:"rangeExpectation,omitempty"`
  2495  	// RegexExpectation: Row-level rule which evaluates whether each column value
  2496  	// matches a specified regex.
  2497  	RegexExpectation *GoogleCloudDataplexV1DataQualityRuleRegexExpectation `json:"regexExpectation,omitempty"`
  2498  	// RowConditionExpectation: Row-level rule which evaluates whether each row in
  2499  	// a table passes the specified condition.
  2500  	RowConditionExpectation *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation `json:"rowConditionExpectation,omitempty"`
  2501  	// SetExpectation: Row-level rule which evaluates whether each column value is
  2502  	// contained by a specified set.
  2503  	SetExpectation *GoogleCloudDataplexV1DataQualityRuleSetExpectation `json:"setExpectation,omitempty"`
  2504  	// SqlAssertion: Aggregate rule which evaluates the number of rows returned for
  2505  	// the provided statement.
  2506  	SqlAssertion *GoogleCloudDataplexV1DataQualityRuleSqlAssertion `json:"sqlAssertion,omitempty"`
  2507  	// StatisticRangeExpectation: Aggregate rule which evaluates whether the column
  2508  	// aggregate statistic lies between a specified range.
  2509  	StatisticRangeExpectation *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation `json:"statisticRangeExpectation,omitempty"`
  2510  	// TableConditionExpectation: Aggregate rule which evaluates whether the
  2511  	// provided expression is true for a table.
  2512  	TableConditionExpectation *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation `json:"tableConditionExpectation,omitempty"`
  2513  	// Threshold: Optional. The minimum ratio of passing_rows / total_rows required
  2514  	// to pass this rule, with a range of 0.0, 1.0.0 indicates default value (i.e.
  2515  	// 1.0).This field is only valid for row-level type rules.
  2516  	Threshold float64 `json:"threshold,omitempty"`
  2517  	// UniquenessExpectation: Row-level rule which evaluates whether each column
  2518  	// value is unique.
  2519  	UniquenessExpectation *GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation `json:"uniquenessExpectation,omitempty"`
  2520  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  2521  	// include in API requests. By default, fields with empty or default values are
  2522  	// omitted from API requests. See
  2523  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2524  	// details.
  2525  	ForceSendFields []string `json:"-"`
  2526  	// NullFields is a list of field names (e.g. "Column") to include in API
  2527  	// requests with the JSON null value. By default, fields with empty values are
  2528  	// omitted from API requests. See
  2529  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2530  	NullFields []string `json:"-"`
  2531  }
  2532  
  2533  func (s *GoogleCloudDataplexV1DataQualityRule) MarshalJSON() ([]byte, error) {
  2534  	type NoMethod GoogleCloudDataplexV1DataQualityRule
  2535  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2536  }
  2537  
  2538  func (s *GoogleCloudDataplexV1DataQualityRule) UnmarshalJSON(data []byte) error {
  2539  	type NoMethod GoogleCloudDataplexV1DataQualityRule
  2540  	var s1 struct {
  2541  		Threshold gensupport.JSONFloat64 `json:"threshold"`
  2542  		*NoMethod
  2543  	}
  2544  	s1.NoMethod = (*NoMethod)(s)
  2545  	if err := json.Unmarshal(data, &s1); err != nil {
  2546  		return err
  2547  	}
  2548  	s.Threshold = float64(s1.Threshold)
  2549  	return nil
  2550  }
  2551  
  2552  // GoogleCloudDataplexV1DataQualityRuleNonNullExpectation: Evaluates whether
  2553  // each column value is null.
  2554  type GoogleCloudDataplexV1DataQualityRuleNonNullExpectation struct {
  2555  }
  2556  
  2557  // GoogleCloudDataplexV1DataQualityRuleRangeExpectation: Evaluates whether each
  2558  // column value lies between a specified range.
  2559  type GoogleCloudDataplexV1DataQualityRuleRangeExpectation struct {
  2560  	// MaxValue: Optional. The maximum column value allowed for a row to pass this
  2561  	// validation. At least one of min_value and max_value need to be provided.
  2562  	MaxValue string `json:"maxValue,omitempty"`
  2563  	// MinValue: Optional. The minimum column value allowed for a row to pass this
  2564  	// validation. At least one of min_value and max_value need to be provided.
  2565  	MinValue string `json:"minValue,omitempty"`
  2566  	// StrictMaxEnabled: Optional. Whether each value needs to be strictly lesser
  2567  	// than ('<') the maximum, or if equality is allowed.Only relevant if a
  2568  	// max_value has been defined. Default = false.
  2569  	StrictMaxEnabled bool `json:"strictMaxEnabled,omitempty"`
  2570  	// StrictMinEnabled: Optional. Whether each value needs to be strictly greater
  2571  	// than ('>') the minimum, or if equality is allowed.Only relevant if a
  2572  	// min_value has been defined. Default = false.
  2573  	StrictMinEnabled bool `json:"strictMinEnabled,omitempty"`
  2574  	// ForceSendFields is a list of field names (e.g. "MaxValue") to
  2575  	// unconditionally include in API requests. By default, fields with empty or
  2576  	// default values are omitted from API requests. See
  2577  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2578  	// details.
  2579  	ForceSendFields []string `json:"-"`
  2580  	// NullFields is a list of field names (e.g. "MaxValue") to include in API
  2581  	// requests with the JSON null value. By default, fields with empty values are
  2582  	// omitted from API requests. See
  2583  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2584  	NullFields []string `json:"-"`
  2585  }
  2586  
  2587  func (s *GoogleCloudDataplexV1DataQualityRuleRangeExpectation) MarshalJSON() ([]byte, error) {
  2588  	type NoMethod GoogleCloudDataplexV1DataQualityRuleRangeExpectation
  2589  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2590  }
  2591  
  2592  // GoogleCloudDataplexV1DataQualityRuleRegexExpectation: Evaluates whether each
  2593  // column value matches a specified regex.
  2594  type GoogleCloudDataplexV1DataQualityRuleRegexExpectation struct {
  2595  	// Regex: Optional. A regular expression the column value is expected to match.
  2596  	Regex string `json:"regex,omitempty"`
  2597  	// ForceSendFields is a list of field names (e.g. "Regex") to unconditionally
  2598  	// include in API requests. By default, fields with empty or default values are
  2599  	// omitted from API requests. See
  2600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2601  	// details.
  2602  	ForceSendFields []string `json:"-"`
  2603  	// NullFields is a list of field names (e.g. "Regex") to include in API
  2604  	// requests with the JSON null value. By default, fields with empty values are
  2605  	// omitted from API requests. See
  2606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2607  	NullFields []string `json:"-"`
  2608  }
  2609  
  2610  func (s *GoogleCloudDataplexV1DataQualityRuleRegexExpectation) MarshalJSON() ([]byte, error) {
  2611  	type NoMethod GoogleCloudDataplexV1DataQualityRuleRegexExpectation
  2612  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2613  }
  2614  
  2615  // GoogleCloudDataplexV1DataQualityRuleResult: DataQualityRuleResult provides a
  2616  // more detailed, per-rule view of the results.
  2617  type GoogleCloudDataplexV1DataQualityRuleResult struct {
  2618  	// AssertionRowCount: Output only. The number of rows returned by the sql
  2619  	// statement in the SqlAssertion rule.This field is only valid for SqlAssertion
  2620  	// rules.
  2621  	AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"`
  2622  	// EvaluatedCount: The number of rows a rule was evaluated against.This field
  2623  	// is only valid for row-level type rules.Evaluated count can be configured to
  2624  	// either include all rows (default) - with null rows automatically failing
  2625  	// rule evaluation, or exclude null rows from the evaluated_count, by setting
  2626  	// ignore_nulls = true.
  2627  	EvaluatedCount int64 `json:"evaluatedCount,omitempty,string"`
  2628  	// FailingRowsQuery: The query to find rows that did not pass this rule.This
  2629  	// field is only valid for row-level type rules.
  2630  	FailingRowsQuery string `json:"failingRowsQuery,omitempty"`
  2631  	// NullCount: The number of rows with null values in the specified column.
  2632  	NullCount int64 `json:"nullCount,omitempty,string"`
  2633  	// PassRatio: The ratio of passed_count / evaluated_count.This field is only
  2634  	// valid for row-level type rules.
  2635  	PassRatio float64 `json:"passRatio,omitempty"`
  2636  	// Passed: Whether the rule passed or failed.
  2637  	Passed bool `json:"passed,omitempty"`
  2638  	// PassedCount: The number of rows which passed a rule evaluation.This field is
  2639  	// only valid for row-level type rules.
  2640  	PassedCount int64 `json:"passedCount,omitempty,string"`
  2641  	// Rule: The rule specified in the DataQualitySpec, as is.
  2642  	Rule *GoogleCloudDataplexV1DataQualityRule `json:"rule,omitempty"`
  2643  	// ForceSendFields is a list of field names (e.g. "AssertionRowCount") to
  2644  	// unconditionally include in API requests. By default, fields with empty or
  2645  	// default values are omitted from API requests. See
  2646  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2647  	// details.
  2648  	ForceSendFields []string `json:"-"`
  2649  	// NullFields is a list of field names (e.g. "AssertionRowCount") to include in
  2650  	// API requests with the JSON null value. By default, fields with empty values
  2651  	// are omitted from API requests. See
  2652  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2653  	NullFields []string `json:"-"`
  2654  }
  2655  
  2656  func (s *GoogleCloudDataplexV1DataQualityRuleResult) MarshalJSON() ([]byte, error) {
  2657  	type NoMethod GoogleCloudDataplexV1DataQualityRuleResult
  2658  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2659  }
  2660  
  2661  func (s *GoogleCloudDataplexV1DataQualityRuleResult) UnmarshalJSON(data []byte) error {
  2662  	type NoMethod GoogleCloudDataplexV1DataQualityRuleResult
  2663  	var s1 struct {
  2664  		PassRatio gensupport.JSONFloat64 `json:"passRatio"`
  2665  		*NoMethod
  2666  	}
  2667  	s1.NoMethod = (*NoMethod)(s)
  2668  	if err := json.Unmarshal(data, &s1); err != nil {
  2669  		return err
  2670  	}
  2671  	s.PassRatio = float64(s1.PassRatio)
  2672  	return nil
  2673  }
  2674  
  2675  // GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation: Evaluates
  2676  // whether each row passes the specified condition.The SQL expression needs to
  2677  // use BigQuery standard SQL syntax and should produce a boolean value per row
  2678  // as the result.Example: col1 >= 0 AND col2 < 10
  2679  type GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation struct {
  2680  	// SqlExpression: Optional. The SQL expression.
  2681  	SqlExpression string `json:"sqlExpression,omitempty"`
  2682  	// ForceSendFields is a list of field names (e.g. "SqlExpression") to
  2683  	// unconditionally include in API requests. By default, fields with empty or
  2684  	// default values are omitted from API requests. See
  2685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2686  	// details.
  2687  	ForceSendFields []string `json:"-"`
  2688  	// NullFields is a list of field names (e.g. "SqlExpression") to include in API
  2689  	// requests with the JSON null value. By default, fields with empty values are
  2690  	// omitted from API requests. See
  2691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2692  	NullFields []string `json:"-"`
  2693  }
  2694  
  2695  func (s *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation) MarshalJSON() ([]byte, error) {
  2696  	type NoMethod GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation
  2697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2698  }
  2699  
  2700  // GoogleCloudDataplexV1DataQualityRuleSetExpectation: Evaluates whether each
  2701  // column value is contained by a specified set.
  2702  type GoogleCloudDataplexV1DataQualityRuleSetExpectation struct {
  2703  	// Values: Optional. Expected values for the column value.
  2704  	Values []string `json:"values,omitempty"`
  2705  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  2706  	// include in API requests. By default, fields with empty or default values are
  2707  	// omitted from API requests. See
  2708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2709  	// details.
  2710  	ForceSendFields []string `json:"-"`
  2711  	// NullFields is a list of field names (e.g. "Values") to include in API
  2712  	// requests with the JSON null value. By default, fields with empty values are
  2713  	// omitted from API requests. See
  2714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2715  	NullFields []string `json:"-"`
  2716  }
  2717  
  2718  func (s *GoogleCloudDataplexV1DataQualityRuleSetExpectation) MarshalJSON() ([]byte, error) {
  2719  	type NoMethod GoogleCloudDataplexV1DataQualityRuleSetExpectation
  2720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2721  }
  2722  
  2723  // GoogleCloudDataplexV1DataQualityRuleSqlAssertion: Queries for rows returned
  2724  // by the provided SQL statement. If any rows are are returned, this rule
  2725  // fails.The SQL statement needs to use BigQuery standard SQL syntax, and must
  2726  // not contain any semicolons.${data()} can be used to reference the rows being
  2727  // evaluated, i.e. the table after all additional filters (row filters,
  2728  // incremental data filters, sampling) are applied.Example: SELECT * FROM
  2729  // ${data()} WHERE price < 0
  2730  type GoogleCloudDataplexV1DataQualityRuleSqlAssertion struct {
  2731  	// SqlStatement: Optional. The SQL statement.
  2732  	SqlStatement string `json:"sqlStatement,omitempty"`
  2733  	// ForceSendFields is a list of field names (e.g. "SqlStatement") to
  2734  	// unconditionally include in API requests. By default, fields with empty or
  2735  	// default values are omitted from API requests. See
  2736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2737  	// details.
  2738  	ForceSendFields []string `json:"-"`
  2739  	// NullFields is a list of field names (e.g. "SqlStatement") to include in API
  2740  	// requests with the JSON null value. By default, fields with empty values are
  2741  	// omitted from API requests. See
  2742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2743  	NullFields []string `json:"-"`
  2744  }
  2745  
  2746  func (s *GoogleCloudDataplexV1DataQualityRuleSqlAssertion) MarshalJSON() ([]byte, error) {
  2747  	type NoMethod GoogleCloudDataplexV1DataQualityRuleSqlAssertion
  2748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2749  }
  2750  
  2751  // GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation: Evaluates
  2752  // whether the column aggregate statistic lies between a specified range.
  2753  type GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation struct {
  2754  	// MaxValue: Optional. The maximum column statistic value allowed for a row to
  2755  	// pass this validation.At least one of min_value and max_value need to be
  2756  	// provided.
  2757  	MaxValue string `json:"maxValue,omitempty"`
  2758  	// MinValue: Optional. The minimum column statistic value allowed for a row to
  2759  	// pass this validation.At least one of min_value and max_value need to be
  2760  	// provided.
  2761  	MinValue string `json:"minValue,omitempty"`
  2762  	// Statistic: Optional. The aggregate metric to evaluate.
  2763  	//
  2764  	// Possible values:
  2765  	//   "STATISTIC_UNDEFINED" - Unspecified statistic type
  2766  	//   "MEAN" - Evaluate the column mean
  2767  	//   "MIN" - Evaluate the column min
  2768  	//   "MAX" - Evaluate the column max
  2769  	Statistic string `json:"statistic,omitempty"`
  2770  	// StrictMaxEnabled: Optional. Whether column statistic needs to be strictly
  2771  	// lesser than ('<') the maximum, or if equality is allowed.Only relevant if a
  2772  	// max_value has been defined. Default = false.
  2773  	StrictMaxEnabled bool `json:"strictMaxEnabled,omitempty"`
  2774  	// StrictMinEnabled: Optional. Whether column statistic needs to be strictly
  2775  	// greater than ('>') the minimum, or if equality is allowed.Only relevant if a
  2776  	// min_value has been defined. Default = false.
  2777  	StrictMinEnabled bool `json:"strictMinEnabled,omitempty"`
  2778  	// ForceSendFields is a list of field names (e.g. "MaxValue") to
  2779  	// unconditionally include in API requests. By default, fields with empty or
  2780  	// default values are omitted from API requests. See
  2781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2782  	// details.
  2783  	ForceSendFields []string `json:"-"`
  2784  	// NullFields is a list of field names (e.g. "MaxValue") to include in API
  2785  	// requests with the JSON null value. By default, fields with empty values are
  2786  	// omitted from API requests. See
  2787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2788  	NullFields []string `json:"-"`
  2789  }
  2790  
  2791  func (s *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation) MarshalJSON() ([]byte, error) {
  2792  	type NoMethod GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation
  2793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2794  }
  2795  
  2796  // GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation: Evaluates
  2797  // whether the provided expression is true.The SQL expression needs to use
  2798  // BigQuery standard SQL syntax and should produce a scalar boolean
  2799  // result.Example: MIN(col1) >= 0
  2800  type GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation struct {
  2801  	// SqlExpression: Optional. The SQL expression.
  2802  	SqlExpression string `json:"sqlExpression,omitempty"`
  2803  	// ForceSendFields is a list of field names (e.g. "SqlExpression") to
  2804  	// unconditionally include in API requests. By default, fields with empty or
  2805  	// default values are omitted from API requests. See
  2806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2807  	// details.
  2808  	ForceSendFields []string `json:"-"`
  2809  	// NullFields is a list of field names (e.g. "SqlExpression") to include in API
  2810  	// requests with the JSON null value. By default, fields with empty values are
  2811  	// omitted from API requests. See
  2812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2813  	NullFields []string `json:"-"`
  2814  }
  2815  
  2816  func (s *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation) MarshalJSON() ([]byte, error) {
  2817  	type NoMethod GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation
  2818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2819  }
  2820  
  2821  // GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation: Evaluates whether
  2822  // the column has duplicates.
  2823  type GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation struct {
  2824  }
  2825  
  2826  // GoogleCloudDataplexV1DataQualityScanRuleResult: Information about the result
  2827  // of a data quality rule for data quality scan. The monitored resource is
  2828  // 'DataScan'.
  2829  type GoogleCloudDataplexV1DataQualityScanRuleResult struct {
  2830  	// AssertionRowCount: The number of rows returned by the sql statement in the
  2831  	// SqlAssertion rule. This field is only valid for SqlAssertion rules.
  2832  	AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"`
  2833  	// Column: The column which this rule is evaluated against.
  2834  	Column string `json:"column,omitempty"`
  2835  	// DataSource: The data source of the data scan (e.g. BigQuery table name).
  2836  	DataSource string `json:"dataSource,omitempty"`
  2837  	// EvaluatedRowCount: The number of rows evaluated against the data quality
  2838  	// rule. This field is only valid for rules of PER_ROW evaluation type.
  2839  	EvaluatedRowCount int64 `json:"evaluatedRowCount,omitempty,string"`
  2840  	// EvalutionType: The evaluation type of the data quality rule.
  2841  	//
  2842  	// Possible values:
  2843  	//   "EVALUATION_TYPE_UNSPECIFIED" - An unspecified evaluation type.
  2844  	//   "PER_ROW" - The rule evaluation is done at per row level.
  2845  	//   "AGGREGATE" - The rule evaluation is done for an aggregate of rows.
  2846  	EvalutionType string `json:"evalutionType,omitempty"`
  2847  	// JobId: Identifier of the specific data scan job this log entry is for.
  2848  	JobId string `json:"jobId,omitempty"`
  2849  	// NullRowCount: The number of rows with null values in the specified column.
  2850  	NullRowCount int64 `json:"nullRowCount,omitempty,string"`
  2851  	// PassedRowCount: The number of rows which passed a rule evaluation. This
  2852  	// field is only valid for rules of PER_ROW evaluation type.
  2853  	PassedRowCount int64 `json:"passedRowCount,omitempty,string"`
  2854  	// Result: The result of the data quality rule.
  2855  	//
  2856  	// Possible values:
  2857  	//   "RESULT_UNSPECIFIED" - An unspecified result.
  2858  	//   "PASSED" - The data quality rule passed.
  2859  	//   "FAILED" - The data quality rule failed.
  2860  	Result string `json:"result,omitempty"`
  2861  	// RuleDimension: The dimension of the data quality rule.
  2862  	RuleDimension string `json:"ruleDimension,omitempty"`
  2863  	// RuleName: The name of the data quality rule.
  2864  	RuleName string `json:"ruleName,omitempty"`
  2865  	// RuleType: The type of the data quality rule.
  2866  	//
  2867  	// Possible values:
  2868  	//   "RULE_TYPE_UNSPECIFIED" - An unspecified rule type.
  2869  	//   "NON_NULL_EXPECTATION" - Please see
  2870  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.
  2871  	//   "RANGE_EXPECTATION" - Please see
  2872  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.
  2873  	//   "REGEX_EXPECTATION" - Please see
  2874  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.
  2875  	//   "ROW_CONDITION_EXPECTATION" - Please see
  2876  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.
  2877  	//   "SET_EXPECTATION" - Please see
  2878  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation.
  2879  	//   "STATISTIC_RANGE_EXPECTATION" - Please see
  2880  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.
  2881  	//   "TABLE_CONDITION_EXPECTATION" - Please see
  2882  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.
  2883  	//   "UNIQUENESS_EXPECTATION" - Please see
  2884  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.
  2885  	//   "SQL_ASSERTION" - Please see
  2886  	// https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion.
  2887  	RuleType string `json:"ruleType,omitempty"`
  2888  	// ThresholdPercent: The passing threshold (0.0, 100.0) of the data quality
  2889  	// rule.
  2890  	ThresholdPercent float64 `json:"thresholdPercent,omitempty"`
  2891  	// ForceSendFields is a list of field names (e.g. "AssertionRowCount") to
  2892  	// unconditionally include in API requests. By default, fields with empty or
  2893  	// default values are omitted from API requests. See
  2894  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2895  	// details.
  2896  	ForceSendFields []string `json:"-"`
  2897  	// NullFields is a list of field names (e.g. "AssertionRowCount") to include in
  2898  	// API requests with the JSON null value. By default, fields with empty values
  2899  	// are omitted from API requests. See
  2900  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2901  	NullFields []string `json:"-"`
  2902  }
  2903  
  2904  func (s *GoogleCloudDataplexV1DataQualityScanRuleResult) MarshalJSON() ([]byte, error) {
  2905  	type NoMethod GoogleCloudDataplexV1DataQualityScanRuleResult
  2906  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2907  }
  2908  
  2909  func (s *GoogleCloudDataplexV1DataQualityScanRuleResult) UnmarshalJSON(data []byte) error {
  2910  	type NoMethod GoogleCloudDataplexV1DataQualityScanRuleResult
  2911  	var s1 struct {
  2912  		ThresholdPercent gensupport.JSONFloat64 `json:"thresholdPercent"`
  2913  		*NoMethod
  2914  	}
  2915  	s1.NoMethod = (*NoMethod)(s)
  2916  	if err := json.Unmarshal(data, &s1); err != nil {
  2917  		return err
  2918  	}
  2919  	s.ThresholdPercent = float64(s1.ThresholdPercent)
  2920  	return nil
  2921  }
  2922  
  2923  // GoogleCloudDataplexV1DataQualitySpec: DataQualityScan related setting.
  2924  type GoogleCloudDataplexV1DataQualitySpec struct {
  2925  	// PostScanActions: Optional. Actions to take upon job completion.
  2926  	PostScanActions *GoogleCloudDataplexV1DataQualitySpecPostScanActions `json:"postScanActions,omitempty"`
  2927  	// RowFilter: Optional. A filter applied to all rows in a single DataScan job.
  2928  	// The filter needs to be a valid SQL expression for a WHERE clause in BigQuery
  2929  	// standard SQL syntax. Example: col1 >= 0 AND col2 < 10
  2930  	RowFilter string `json:"rowFilter,omitempty"`
  2931  	// Rules: Required. The list of rules to evaluate against a data source. At
  2932  	// least one rule is required.
  2933  	Rules []*GoogleCloudDataplexV1DataQualityRule `json:"rules,omitempty"`
  2934  	// SamplingPercent: Optional. The percentage of the records to be selected from
  2935  	// the dataset for DataScan. Value can range between 0.0 and 100.0 with up to 3
  2936  	// significant decimal digits. Sampling is not applied if sampling_percent is
  2937  	// not specified, 0 or 100.
  2938  	SamplingPercent float64 `json:"samplingPercent,omitempty"`
  2939  	// ForceSendFields is a list of field names (e.g. "PostScanActions") to
  2940  	// unconditionally include in API requests. By default, fields with empty or
  2941  	// default values are omitted from API requests. See
  2942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2943  	// details.
  2944  	ForceSendFields []string `json:"-"`
  2945  	// NullFields is a list of field names (e.g. "PostScanActions") to include in
  2946  	// API requests with the JSON null value. By default, fields with empty values
  2947  	// are omitted from API requests. See
  2948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2949  	NullFields []string `json:"-"`
  2950  }
  2951  
  2952  func (s *GoogleCloudDataplexV1DataQualitySpec) MarshalJSON() ([]byte, error) {
  2953  	type NoMethod GoogleCloudDataplexV1DataQualitySpec
  2954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2955  }
  2956  
  2957  func (s *GoogleCloudDataplexV1DataQualitySpec) UnmarshalJSON(data []byte) error {
  2958  	type NoMethod GoogleCloudDataplexV1DataQualitySpec
  2959  	var s1 struct {
  2960  		SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
  2961  		*NoMethod
  2962  	}
  2963  	s1.NoMethod = (*NoMethod)(s)
  2964  	if err := json.Unmarshal(data, &s1); err != nil {
  2965  		return err
  2966  	}
  2967  	s.SamplingPercent = float64(s1.SamplingPercent)
  2968  	return nil
  2969  }
  2970  
  2971  // GoogleCloudDataplexV1DataQualitySpecPostScanActions: The configuration of
  2972  // post scan actions of DataQualityScan.
  2973  type GoogleCloudDataplexV1DataQualitySpecPostScanActions struct {
  2974  	// BigqueryExport: Optional. If set, results will be exported to the provided
  2975  	// BigQuery table.
  2976  	BigqueryExport *GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport `json:"bigqueryExport,omitempty"`
  2977  	// NotificationReport: Optional. If set, results will be sent to the provided
  2978  	// notification receipts upon triggers.
  2979  	NotificationReport *GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport `json:"notificationReport,omitempty"`
  2980  	// ForceSendFields is a list of field names (e.g. "BigqueryExport") 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. "BigqueryExport") to include in
  2987  	// API requests with the JSON null value. By default, fields with empty values
  2988  	// are 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 *GoogleCloudDataplexV1DataQualitySpecPostScanActions) MarshalJSON() ([]byte, error) {
  2994  	type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActions
  2995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2996  }
  2997  
  2998  // GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport: The
  2999  // configuration of BigQuery export post scan action.
  3000  type GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport struct {
  3001  	// ResultsTable: Optional. The BigQuery table to export DataQualityScan results
  3002  	// to. Format:
  3003  	// //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABL
  3004  	// E_ID
  3005  	ResultsTable string `json:"resultsTable,omitempty"`
  3006  	// ForceSendFields is a list of field names (e.g. "ResultsTable") to
  3007  	// unconditionally include in API requests. By default, fields with empty or
  3008  	// default values are omitted from API requests. See
  3009  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3010  	// details.
  3011  	ForceSendFields []string `json:"-"`
  3012  	// NullFields is a list of field names (e.g. "ResultsTable") to include in API
  3013  	// requests with the JSON null value. By default, fields with empty values are
  3014  	// omitted from API requests. See
  3015  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3016  	NullFields []string `json:"-"`
  3017  }
  3018  
  3019  func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport) MarshalJSON() ([]byte, error) {
  3020  	type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport
  3021  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3022  }
  3023  
  3024  // GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger: This
  3025  // trigger is triggered whenever a scan job run ends, regardless of the result.
  3026  type GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger struct {
  3027  }
  3028  
  3029  // GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger: This
  3030  // trigger is triggered when the scan job itself fails, regardless of the
  3031  // result.
  3032  type GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger struct {
  3033  }
  3034  
  3035  // GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport: The
  3036  // configuration of notification report post scan action.
  3037  type GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport struct {
  3038  	// JobEndTrigger: Optional. If set, report will be sent when a scan job ends.
  3039  	JobEndTrigger *GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger `json:"jobEndTrigger,omitempty"`
  3040  	// JobFailureTrigger: Optional. If set, report will be sent when a scan job
  3041  	// fails.
  3042  	JobFailureTrigger *GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger `json:"jobFailureTrigger,omitempty"`
  3043  	// Recipients: Required. The recipients who will receive the notification
  3044  	// report.
  3045  	Recipients *GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients `json:"recipients,omitempty"`
  3046  	// ScoreThresholdTrigger: Optional. If set, report will be sent when score
  3047  	// threshold is met.
  3048  	ScoreThresholdTrigger *GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger `json:"scoreThresholdTrigger,omitempty"`
  3049  	// ForceSendFields is a list of field names (e.g. "JobEndTrigger") to
  3050  	// unconditionally include in API requests. By default, fields with empty or
  3051  	// default values are omitted from API requests. See
  3052  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3053  	// details.
  3054  	ForceSendFields []string `json:"-"`
  3055  	// NullFields is a list of field names (e.g. "JobEndTrigger") to include in API
  3056  	// requests with the JSON null value. By default, fields with empty values are
  3057  	// omitted from API requests. See
  3058  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3059  	NullFields []string `json:"-"`
  3060  }
  3061  
  3062  func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport) MarshalJSON() ([]byte, error) {
  3063  	type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport
  3064  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3065  }
  3066  
  3067  // GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients: The
  3068  // individuals or groups who are designated to receive notifications upon
  3069  // triggers.
  3070  type GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients struct {
  3071  	// Emails: Optional. The email recipients who will receive the DataQualityScan
  3072  	// results report.
  3073  	Emails []string `json:"emails,omitempty"`
  3074  	// ForceSendFields is a list of field names (e.g. "Emails") to unconditionally
  3075  	// include in API requests. By default, fields with empty or default values are
  3076  	// omitted from API requests. See
  3077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3078  	// details.
  3079  	ForceSendFields []string `json:"-"`
  3080  	// NullFields is a list of field names (e.g. "Emails") to include in API
  3081  	// requests with the JSON null value. By default, fields with empty values are
  3082  	// omitted from API requests. See
  3083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3084  	NullFields []string `json:"-"`
  3085  }
  3086  
  3087  func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients) MarshalJSON() ([]byte, error) {
  3088  	type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients
  3089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3090  }
  3091  
  3092  // GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger:
  3093  // This trigger is triggered when the DQ score in the job result is less than a
  3094  // specified input score.
  3095  type GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger struct {
  3096  	// ScoreThreshold: Optional. The score range is in 0,100.
  3097  	ScoreThreshold float64 `json:"scoreThreshold,omitempty"`
  3098  	// ForceSendFields is a list of field names (e.g. "ScoreThreshold") to
  3099  	// unconditionally include in API requests. By default, fields with empty or
  3100  	// default values are omitted from API requests. See
  3101  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3102  	// details.
  3103  	ForceSendFields []string `json:"-"`
  3104  	// NullFields is a list of field names (e.g. "ScoreThreshold") to include in
  3105  	// API requests with the JSON null value. By default, fields with empty values
  3106  	// are omitted from API requests. See
  3107  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3108  	NullFields []string `json:"-"`
  3109  }
  3110  
  3111  func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger) MarshalJSON() ([]byte, error) {
  3112  	type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger
  3113  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3114  }
  3115  
  3116  func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger) UnmarshalJSON(data []byte) error {
  3117  	type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger
  3118  	var s1 struct {
  3119  		ScoreThreshold gensupport.JSONFloat64 `json:"scoreThreshold"`
  3120  		*NoMethod
  3121  	}
  3122  	s1.NoMethod = (*NoMethod)(s)
  3123  	if err := json.Unmarshal(data, &s1); err != nil {
  3124  		return err
  3125  	}
  3126  	s.ScoreThreshold = float64(s1.ScoreThreshold)
  3127  	return nil
  3128  }
  3129  
  3130  // GoogleCloudDataplexV1DataScan: Represents a user-visible job which provides
  3131  // the insights for the related data source.For example: Data Quality:
  3132  // generates queries based on the rules and runs against the data to get data
  3133  // quality check results. Data Profile: analyzes the data in table(s) and
  3134  // generates insights about the structure, content and relationships (such as
  3135  // null percent, cardinality, min/max/mean, etc).
  3136  type GoogleCloudDataplexV1DataScan struct {
  3137  	// CreateTime: Output only. The time when the scan was created.
  3138  	CreateTime string `json:"createTime,omitempty"`
  3139  	// Data: Required. The data source for DataScan.
  3140  	Data *GoogleCloudDataplexV1DataSource `json:"data,omitempty"`
  3141  	// DataProfileResult: Output only. The result of the data profile scan.
  3142  	DataProfileResult *GoogleCloudDataplexV1DataProfileResult `json:"dataProfileResult,omitempty"`
  3143  	// DataProfileSpec: DataProfileScan related setting.
  3144  	DataProfileSpec *GoogleCloudDataplexV1DataProfileSpec `json:"dataProfileSpec,omitempty"`
  3145  	// DataQualityResult: Output only. The result of the data quality scan.
  3146  	DataQualityResult *GoogleCloudDataplexV1DataQualityResult `json:"dataQualityResult,omitempty"`
  3147  	// DataQualitySpec: DataQualityScan related setting.
  3148  	DataQualitySpec *GoogleCloudDataplexV1DataQualitySpec `json:"dataQualitySpec,omitempty"`
  3149  	// Description: Optional. Description of the scan. Must be between 1-1024
  3150  	// characters.
  3151  	Description string `json:"description,omitempty"`
  3152  	// DisplayName: Optional. User friendly display name. Must be between 1-256
  3153  	// characters.
  3154  	DisplayName string `json:"displayName,omitempty"`
  3155  	// ExecutionSpec: Optional. DataScan execution settings.If not specified, the
  3156  	// fields in it will use their default values.
  3157  	ExecutionSpec *GoogleCloudDataplexV1DataScanExecutionSpec `json:"executionSpec,omitempty"`
  3158  	// ExecutionStatus: Output only. Status of the data scan execution.
  3159  	ExecutionStatus *GoogleCloudDataplexV1DataScanExecutionStatus `json:"executionStatus,omitempty"`
  3160  	// Labels: Optional. User-defined labels for the scan.
  3161  	Labels map[string]string `json:"labels,omitempty"`
  3162  	// Name: Output only. The relative resource name of the scan, of the form:
  3163  	// projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where
  3164  	// project refers to a project_id or project_number and location_id refers to a
  3165  	// GCP region.
  3166  	Name string `json:"name,omitempty"`
  3167  	// State: Output only. Current state of the DataScan.
  3168  	//
  3169  	// Possible values:
  3170  	//   "STATE_UNSPECIFIED" - State is not specified.
  3171  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  3172  	//   "CREATING" - Resource is under creation.
  3173  	//   "DELETING" - Resource is under deletion.
  3174  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  3175  	State string `json:"state,omitempty"`
  3176  	// Type: Output only. The type of DataScan.
  3177  	//
  3178  	// Possible values:
  3179  	//   "DATA_SCAN_TYPE_UNSPECIFIED" - The DataScan type is unspecified.
  3180  	//   "DATA_QUALITY" - Data Quality scan.
  3181  	//   "DATA_PROFILE" - Data Profile scan.
  3182  	Type string `json:"type,omitempty"`
  3183  	// Uid: Output only. System generated globally unique ID for the scan. This ID
  3184  	// will be different if the scan is deleted and re-created with the same name.
  3185  	Uid string `json:"uid,omitempty"`
  3186  	// UpdateTime: Output only. The time when the scan was last updated.
  3187  	UpdateTime string `json:"updateTime,omitempty"`
  3188  
  3189  	// ServerResponse contains the HTTP response code and headers from the server.
  3190  	googleapi.ServerResponse `json:"-"`
  3191  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3192  	// unconditionally include in API requests. By default, fields with empty or
  3193  	// default values are omitted from API requests. See
  3194  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3195  	// details.
  3196  	ForceSendFields []string `json:"-"`
  3197  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3198  	// requests with the JSON null value. By default, fields with empty values are
  3199  	// omitted from API requests. See
  3200  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3201  	NullFields []string `json:"-"`
  3202  }
  3203  
  3204  func (s *GoogleCloudDataplexV1DataScan) MarshalJSON() ([]byte, error) {
  3205  	type NoMethod GoogleCloudDataplexV1DataScan
  3206  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3207  }
  3208  
  3209  // GoogleCloudDataplexV1DataScanEvent: These messages contain information about
  3210  // the execution of a datascan. The monitored resource is 'DataScan' Next ID:
  3211  // 13
  3212  type GoogleCloudDataplexV1DataScanEvent struct {
  3213  	// CreateTime: The time when the data scan job was created.
  3214  	CreateTime string `json:"createTime,omitempty"`
  3215  	// DataProfile: Data profile result for data profile type data scan.
  3216  	DataProfile *GoogleCloudDataplexV1DataScanEventDataProfileResult `json:"dataProfile,omitempty"`
  3217  	// DataProfileConfigs: Applied configs for data profile type data scan.
  3218  	DataProfileConfigs *GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs `json:"dataProfileConfigs,omitempty"`
  3219  	// DataQuality: Data quality result for data quality type data scan.
  3220  	DataQuality *GoogleCloudDataplexV1DataScanEventDataQualityResult `json:"dataQuality,omitempty"`
  3221  	// DataQualityConfigs: Applied configs for data quality type data scan.
  3222  	DataQualityConfigs *GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs `json:"dataQualityConfigs,omitempty"`
  3223  	// DataSource: The data source of the data scan
  3224  	DataSource string `json:"dataSource,omitempty"`
  3225  	// EndTime: The time when the data scan job finished.
  3226  	EndTime string `json:"endTime,omitempty"`
  3227  	// JobId: The identifier of the specific data scan job this log entry is for.
  3228  	JobId string `json:"jobId,omitempty"`
  3229  	// Message: The message describing the data scan job event.
  3230  	Message string `json:"message,omitempty"`
  3231  	// PostScanActionsResult: The result of post scan actions.
  3232  	PostScanActionsResult *GoogleCloudDataplexV1DataScanEventPostScanActionsResult `json:"postScanActionsResult,omitempty"`
  3233  	// Scope: The scope of the data scan (e.g. full, incremental).
  3234  	//
  3235  	// Possible values:
  3236  	//   "SCOPE_UNSPECIFIED" - An unspecified scope type.
  3237  	//   "FULL" - Data scan runs on all of the data.
  3238  	//   "INCREMENTAL" - Data scan runs on incremental data.
  3239  	Scope string `json:"scope,omitempty"`
  3240  	// SpecVersion: A version identifier of the spec which was used to execute this
  3241  	// job.
  3242  	SpecVersion string `json:"specVersion,omitempty"`
  3243  	// StartTime: The time when the data scan job started to run.
  3244  	StartTime string `json:"startTime,omitempty"`
  3245  	// State: The status of the data scan job.
  3246  	//
  3247  	// Possible values:
  3248  	//   "STATE_UNSPECIFIED" - Unspecified job state.
  3249  	//   "STARTED" - Data scan job started.
  3250  	//   "SUCCEEDED" - Data scan job successfully completed.
  3251  	//   "FAILED" - Data scan job was unsuccessful.
  3252  	//   "CANCELLED" - Data scan job was cancelled.
  3253  	//   "CREATED" - Data scan job was createed.
  3254  	State string `json:"state,omitempty"`
  3255  	// Trigger: The trigger type of the data scan job.
  3256  	//
  3257  	// Possible values:
  3258  	//   "TRIGGER_UNSPECIFIED" - An unspecified trigger type.
  3259  	//   "ON_DEMAND" - Data scan triggers on demand.
  3260  	//   "SCHEDULE" - Data scan triggers as per schedule.
  3261  	Trigger string `json:"trigger,omitempty"`
  3262  	// Type: The type of the data scan.
  3263  	//
  3264  	// Possible values:
  3265  	//   "SCAN_TYPE_UNSPECIFIED" - An unspecified data scan type.
  3266  	//   "DATA_PROFILE" - Data scan for data profile.
  3267  	//   "DATA_QUALITY" - Data scan for data quality.
  3268  	Type string `json:"type,omitempty"`
  3269  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3270  	// unconditionally include in API requests. By default, fields with empty or
  3271  	// default values are omitted from API requests. See
  3272  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3273  	// details.
  3274  	ForceSendFields []string `json:"-"`
  3275  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3276  	// requests with the JSON null value. By default, fields with empty values are
  3277  	// omitted from API requests. See
  3278  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3279  	NullFields []string `json:"-"`
  3280  }
  3281  
  3282  func (s *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) {
  3283  	type NoMethod GoogleCloudDataplexV1DataScanEvent
  3284  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3285  }
  3286  
  3287  // GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs: Applied configs
  3288  // for data profile type data scan job.
  3289  type GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs struct {
  3290  	// ColumnFilterApplied: Boolean indicating whether a column filter was applied
  3291  	// in the DataScan job.
  3292  	ColumnFilterApplied bool `json:"columnFilterApplied,omitempty"`
  3293  	// RowFilterApplied: Boolean indicating whether a row filter was applied in the
  3294  	// DataScan job.
  3295  	RowFilterApplied bool `json:"rowFilterApplied,omitempty"`
  3296  	// SamplingPercent: The percentage of the records selected from the dataset for
  3297  	// DataScan. Value ranges between 0.0 and 100.0. Value 0.0 or 100.0 imply that
  3298  	// sampling was not applied.
  3299  	SamplingPercent float64 `json:"samplingPercent,omitempty"`
  3300  	// ForceSendFields is a list of field names (e.g. "ColumnFilterApplied") to
  3301  	// unconditionally include in API requests. By default, fields with empty or
  3302  	// default values are omitted from API requests. See
  3303  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3304  	// details.
  3305  	ForceSendFields []string `json:"-"`
  3306  	// NullFields is a list of field names (e.g. "ColumnFilterApplied") to include
  3307  	// in API requests with the JSON null value. By default, fields with empty
  3308  	// values are omitted from API requests. See
  3309  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3310  	NullFields []string `json:"-"`
  3311  }
  3312  
  3313  func (s *GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs) MarshalJSON() ([]byte, error) {
  3314  	type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs
  3315  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3316  }
  3317  
  3318  func (s *GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs) UnmarshalJSON(data []byte) error {
  3319  	type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs
  3320  	var s1 struct {
  3321  		SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
  3322  		*NoMethod
  3323  	}
  3324  	s1.NoMethod = (*NoMethod)(s)
  3325  	if err := json.Unmarshal(data, &s1); err != nil {
  3326  		return err
  3327  	}
  3328  	s.SamplingPercent = float64(s1.SamplingPercent)
  3329  	return nil
  3330  }
  3331  
  3332  // GoogleCloudDataplexV1DataScanEventDataProfileResult: Data profile result for
  3333  // data scan job.
  3334  type GoogleCloudDataplexV1DataScanEventDataProfileResult struct {
  3335  	// RowCount: The count of rows processed in the data scan job.
  3336  	RowCount int64 `json:"rowCount,omitempty,string"`
  3337  	// ForceSendFields is a list of field names (e.g. "RowCount") to
  3338  	// unconditionally include in API requests. By default, fields with empty or
  3339  	// default values are omitted from API requests. See
  3340  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3341  	// details.
  3342  	ForceSendFields []string `json:"-"`
  3343  	// NullFields is a list of field names (e.g. "RowCount") to include in API
  3344  	// requests with the JSON null value. By default, fields with empty values are
  3345  	// omitted from API requests. See
  3346  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3347  	NullFields []string `json:"-"`
  3348  }
  3349  
  3350  func (s *GoogleCloudDataplexV1DataScanEventDataProfileResult) MarshalJSON() ([]byte, error) {
  3351  	type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileResult
  3352  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3353  }
  3354  
  3355  // GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs: Applied configs
  3356  // for data quality type data scan job.
  3357  type GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs struct {
  3358  	// RowFilterApplied: Boolean indicating whether a row filter was applied in the
  3359  	// DataScan job.
  3360  	RowFilterApplied bool `json:"rowFilterApplied,omitempty"`
  3361  	// SamplingPercent: The percentage of the records selected from the dataset for
  3362  	// DataScan. Value ranges between 0.0 and 100.0. Value 0.0 or 100.0 imply that
  3363  	// sampling was not applied.
  3364  	SamplingPercent float64 `json:"samplingPercent,omitempty"`
  3365  	// ForceSendFields is a list of field names (e.g. "RowFilterApplied") to
  3366  	// unconditionally include in API requests. By default, fields with empty or
  3367  	// default values are omitted from API requests. See
  3368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3369  	// details.
  3370  	ForceSendFields []string `json:"-"`
  3371  	// NullFields is a list of field names (e.g. "RowFilterApplied") to include in
  3372  	// API requests with the JSON null value. By default, fields with empty values
  3373  	// are omitted from API requests. See
  3374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3375  	NullFields []string `json:"-"`
  3376  }
  3377  
  3378  func (s *GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs) MarshalJSON() ([]byte, error) {
  3379  	type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs
  3380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3381  }
  3382  
  3383  func (s *GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs) UnmarshalJSON(data []byte) error {
  3384  	type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs
  3385  	var s1 struct {
  3386  		SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
  3387  		*NoMethod
  3388  	}
  3389  	s1.NoMethod = (*NoMethod)(s)
  3390  	if err := json.Unmarshal(data, &s1); err != nil {
  3391  		return err
  3392  	}
  3393  	s.SamplingPercent = float64(s1.SamplingPercent)
  3394  	return nil
  3395  }
  3396  
  3397  // GoogleCloudDataplexV1DataScanEventDataQualityResult: Data quality result for
  3398  // data scan job.
  3399  type GoogleCloudDataplexV1DataScanEventDataQualityResult struct {
  3400  	// ColumnScore: The score of each column scanned in the data scan job. The key
  3401  	// of the map is the name of the column. The value is the data quality score
  3402  	// for the column.The score ranges between 0, 100 (up to two decimal points).
  3403  	ColumnScore map[string]float64 `json:"columnScore,omitempty"`
  3404  	// DimensionPassed: The result of each dimension for data quality result. The
  3405  	// key of the map is the name of the dimension. The value is the bool value
  3406  	// depicting whether the dimension result was pass or not.
  3407  	DimensionPassed map[string]bool `json:"dimensionPassed,omitempty"`
  3408  	// DimensionScore: The score of each dimension for data quality result. The key
  3409  	// of the map is the name of the dimension. The value is the data quality score
  3410  	// for the dimension.The score ranges between 0, 100 (up to two decimal
  3411  	// points).
  3412  	DimensionScore map[string]float64 `json:"dimensionScore,omitempty"`
  3413  	// Passed: Whether the data quality result was pass or not.
  3414  	Passed bool `json:"passed,omitempty"`
  3415  	// RowCount: The count of rows processed in the data scan job.
  3416  	RowCount int64 `json:"rowCount,omitempty,string"`
  3417  	// Score: The table-level data quality score for the data scan job.The data
  3418  	// quality score ranges between 0, 100 (up to two decimal points).
  3419  	Score float64 `json:"score,omitempty"`
  3420  	// ForceSendFields is a list of field names (e.g. "ColumnScore") to
  3421  	// unconditionally include in API requests. By default, fields with empty or
  3422  	// default values are omitted from API requests. See
  3423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3424  	// details.
  3425  	ForceSendFields []string `json:"-"`
  3426  	// NullFields is a list of field names (e.g. "ColumnScore") to include in API
  3427  	// requests with the JSON null value. By default, fields with empty values are
  3428  	// omitted from API requests. See
  3429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3430  	NullFields []string `json:"-"`
  3431  }
  3432  
  3433  func (s *GoogleCloudDataplexV1DataScanEventDataQualityResult) MarshalJSON() ([]byte, error) {
  3434  	type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult
  3435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3436  }
  3437  
  3438  func (s *GoogleCloudDataplexV1DataScanEventDataQualityResult) UnmarshalJSON(data []byte) error {
  3439  	type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult
  3440  	var s1 struct {
  3441  		Score gensupport.JSONFloat64 `json:"score"`
  3442  		*NoMethod
  3443  	}
  3444  	s1.NoMethod = (*NoMethod)(s)
  3445  	if err := json.Unmarshal(data, &s1); err != nil {
  3446  		return err
  3447  	}
  3448  	s.Score = float64(s1.Score)
  3449  	return nil
  3450  }
  3451  
  3452  // GoogleCloudDataplexV1DataScanEventPostScanActionsResult: Post scan actions
  3453  // result for data scan job.
  3454  type GoogleCloudDataplexV1DataScanEventPostScanActionsResult struct {
  3455  	// BigqueryExportResult: The result of BigQuery export post scan action.
  3456  	BigqueryExportResult *GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"`
  3457  	// ForceSendFields is a list of field names (e.g. "BigqueryExportResult") to
  3458  	// unconditionally include in API requests. By default, fields with empty or
  3459  	// default values are omitted from API requests. See
  3460  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3461  	// details.
  3462  	ForceSendFields []string `json:"-"`
  3463  	// NullFields is a list of field names (e.g. "BigqueryExportResult") to include
  3464  	// in API requests with the JSON null value. By default, fields with empty
  3465  	// values are omitted from API requests. See
  3466  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3467  	NullFields []string `json:"-"`
  3468  }
  3469  
  3470  func (s *GoogleCloudDataplexV1DataScanEventPostScanActionsResult) MarshalJSON() ([]byte, error) {
  3471  	type NoMethod GoogleCloudDataplexV1DataScanEventPostScanActionsResult
  3472  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3473  }
  3474  
  3475  // GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult:
  3476  // The result of BigQuery export post scan action.
  3477  type GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult struct {
  3478  	// Message: Additional information about the BigQuery exporting.
  3479  	Message string `json:"message,omitempty"`
  3480  	// State: Execution state for the BigQuery exporting.
  3481  	//
  3482  	// Possible values:
  3483  	//   "STATE_UNSPECIFIED" - The exporting state is unspecified.
  3484  	//   "SUCCEEDED" - The exporting completed successfully.
  3485  	//   "FAILED" - The exporting is no longer running due to an error.
  3486  	//   "SKIPPED" - The exporting is skipped due to no valid scan result to export
  3487  	// (usually caused by scan failed).
  3488  	State string `json:"state,omitempty"`
  3489  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  3490  	// include in API requests. By default, fields with empty or default values are
  3491  	// omitted from API requests. See
  3492  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3493  	// details.
  3494  	ForceSendFields []string `json:"-"`
  3495  	// NullFields is a list of field names (e.g. "Message") to include in API
  3496  	// requests with the JSON null value. By default, fields with empty values are
  3497  	// omitted from API requests. See
  3498  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3499  	NullFields []string `json:"-"`
  3500  }
  3501  
  3502  func (s *GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) {
  3503  	type NoMethod GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult
  3504  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3505  }
  3506  
  3507  // GoogleCloudDataplexV1DataScanExecutionSpec: DataScan execution settings.
  3508  type GoogleCloudDataplexV1DataScanExecutionSpec struct {
  3509  	// Field: Immutable. The unnested field (of type Date or Timestamp) that
  3510  	// contains values which monotonically increase over time.If not specified, a
  3511  	// data scan will run for all data in the table.
  3512  	Field string `json:"field,omitempty"`
  3513  	// Trigger: Optional. Spec related to how often and when a scan should be
  3514  	// triggered.If not specified, the default is OnDemand, which means the scan
  3515  	// will not run until the user calls RunDataScan API.
  3516  	Trigger *GoogleCloudDataplexV1Trigger `json:"trigger,omitempty"`
  3517  	// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
  3518  	// include in API requests. By default, fields with empty or default values are
  3519  	// omitted from API requests. See
  3520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3521  	// details.
  3522  	ForceSendFields []string `json:"-"`
  3523  	// NullFields is a list of field names (e.g. "Field") to include in API
  3524  	// requests with the JSON null value. By default, fields with empty values are
  3525  	// omitted from API requests. See
  3526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3527  	NullFields []string `json:"-"`
  3528  }
  3529  
  3530  func (s *GoogleCloudDataplexV1DataScanExecutionSpec) MarshalJSON() ([]byte, error) {
  3531  	type NoMethod GoogleCloudDataplexV1DataScanExecutionSpec
  3532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3533  }
  3534  
  3535  // GoogleCloudDataplexV1DataScanExecutionStatus: Status of the data scan
  3536  // execution.
  3537  type GoogleCloudDataplexV1DataScanExecutionStatus struct {
  3538  	// LatestJobEndTime: The time when the latest DataScanJob ended.
  3539  	LatestJobEndTime string `json:"latestJobEndTime,omitempty"`
  3540  	// LatestJobStartTime: The time when the latest DataScanJob started.
  3541  	LatestJobStartTime string `json:"latestJobStartTime,omitempty"`
  3542  	// ForceSendFields is a list of field names (e.g. "LatestJobEndTime") to
  3543  	// unconditionally include in API requests. By default, fields with empty or
  3544  	// default values are omitted from API requests. See
  3545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3546  	// details.
  3547  	ForceSendFields []string `json:"-"`
  3548  	// NullFields is a list of field names (e.g. "LatestJobEndTime") to include in
  3549  	// API requests with the JSON null value. By default, fields with empty values
  3550  	// are omitted from API requests. See
  3551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3552  	NullFields []string `json:"-"`
  3553  }
  3554  
  3555  func (s *GoogleCloudDataplexV1DataScanExecutionStatus) MarshalJSON() ([]byte, error) {
  3556  	type NoMethod GoogleCloudDataplexV1DataScanExecutionStatus
  3557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3558  }
  3559  
  3560  // GoogleCloudDataplexV1DataScanJob: A DataScanJob represents an instance of
  3561  // DataScan execution.
  3562  type GoogleCloudDataplexV1DataScanJob struct {
  3563  	// DataProfileResult: Output only. The result of the data profile scan.
  3564  	DataProfileResult *GoogleCloudDataplexV1DataProfileResult `json:"dataProfileResult,omitempty"`
  3565  	// DataProfileSpec: Output only. DataProfileScan related setting.
  3566  	DataProfileSpec *GoogleCloudDataplexV1DataProfileSpec `json:"dataProfileSpec,omitempty"`
  3567  	// DataQualityResult: Output only. The result of the data quality scan.
  3568  	DataQualityResult *GoogleCloudDataplexV1DataQualityResult `json:"dataQualityResult,omitempty"`
  3569  	// DataQualitySpec: Output only. DataQualityScan related setting.
  3570  	DataQualitySpec *GoogleCloudDataplexV1DataQualitySpec `json:"dataQualitySpec,omitempty"`
  3571  	// EndTime: Output only. The time when the DataScanJob ended.
  3572  	EndTime string `json:"endTime,omitempty"`
  3573  	// Message: Output only. Additional information about the current state.
  3574  	Message string `json:"message,omitempty"`
  3575  	// Name: Output only. The relative resource name of the DataScanJob, of the
  3576  	// form:
  3577  	// projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_
  3578  	// id}, where project refers to a project_id or project_number and location_id
  3579  	// refers to a GCP region.
  3580  	Name string `json:"name,omitempty"`
  3581  	// StartTime: Output only. The time when the DataScanJob was started.
  3582  	StartTime string `json:"startTime,omitempty"`
  3583  	// State: Output only. Execution state for the DataScanJob.
  3584  	//
  3585  	// Possible values:
  3586  	//   "STATE_UNSPECIFIED" - The DataScanJob state is unspecified.
  3587  	//   "RUNNING" - The DataScanJob is running.
  3588  	//   "CANCELING" - The DataScanJob is canceling.
  3589  	//   "CANCELLED" - The DataScanJob cancellation was successful.
  3590  	//   "SUCCEEDED" - The DataScanJob completed successfully.
  3591  	//   "FAILED" - The DataScanJob is no longer running due to an error.
  3592  	//   "PENDING" - The DataScanJob has been created but not started to run yet.
  3593  	State string `json:"state,omitempty"`
  3594  	// Type: Output only. The type of the parent DataScan.
  3595  	//
  3596  	// Possible values:
  3597  	//   "DATA_SCAN_TYPE_UNSPECIFIED" - The DataScan type is unspecified.
  3598  	//   "DATA_QUALITY" - Data Quality scan.
  3599  	//   "DATA_PROFILE" - Data Profile scan.
  3600  	Type string `json:"type,omitempty"`
  3601  	// Uid: Output only. System generated globally unique ID for the DataScanJob.
  3602  	Uid string `json:"uid,omitempty"`
  3603  
  3604  	// ServerResponse contains the HTTP response code and headers from the server.
  3605  	googleapi.ServerResponse `json:"-"`
  3606  	// ForceSendFields is a list of field names (e.g. "DataProfileResult") to
  3607  	// unconditionally include in API requests. By default, fields with empty or
  3608  	// default values are omitted from API requests. See
  3609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3610  	// details.
  3611  	ForceSendFields []string `json:"-"`
  3612  	// NullFields is a list of field names (e.g. "DataProfileResult") to include in
  3613  	// API requests with the JSON null value. By default, fields with empty values
  3614  	// are omitted from API requests. See
  3615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3616  	NullFields []string `json:"-"`
  3617  }
  3618  
  3619  func (s *GoogleCloudDataplexV1DataScanJob) MarshalJSON() ([]byte, error) {
  3620  	type NoMethod GoogleCloudDataplexV1DataScanJob
  3621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3622  }
  3623  
  3624  // GoogleCloudDataplexV1DataSource: The data source for DataScan.
  3625  type GoogleCloudDataplexV1DataSource struct {
  3626  	// Entity: Immutable. The Dataplex entity that represents the data source (e.g.
  3627  	// BigQuery table) for DataScan, of the form:
  3628  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
  3629  	// _id}/entities/{entity_id}.
  3630  	Entity string `json:"entity,omitempty"`
  3631  	// Resource: Immutable. The service-qualified full resource name of the cloud
  3632  	// resource for a DataScan job to scan against. The field could be: BigQuery
  3633  	// table of type "TABLE" for DataProfileScan/DataQualityScan Format:
  3634  	// //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABL
  3635  	// E_ID
  3636  	Resource string `json:"resource,omitempty"`
  3637  	// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
  3638  	// include in API requests. By default, fields with empty or default values are
  3639  	// omitted from API requests. See
  3640  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3641  	// details.
  3642  	ForceSendFields []string `json:"-"`
  3643  	// NullFields is a list of field names (e.g. "Entity") to include in API
  3644  	// requests with the JSON null value. By default, fields with empty values are
  3645  	// omitted from API requests. See
  3646  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3647  	NullFields []string `json:"-"`
  3648  }
  3649  
  3650  func (s *GoogleCloudDataplexV1DataSource) MarshalJSON() ([]byte, error) {
  3651  	type NoMethod GoogleCloudDataplexV1DataSource
  3652  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3653  }
  3654  
  3655  // GoogleCloudDataplexV1DataTaxonomy: DataTaxonomy represents a set of
  3656  // hierarchical DataAttributes resources, grouped with a common theme Eg:
  3657  // 'SensitiveDataTaxonomy' can have attributes to manage PII data. It is
  3658  // defined at project level.
  3659  type GoogleCloudDataplexV1DataTaxonomy struct {
  3660  	// AttributeCount: Output only. The number of attributes in the DataTaxonomy.
  3661  	AttributeCount int64 `json:"attributeCount,omitempty"`
  3662  	// ClassCount: Output only. The number of classes in the DataTaxonomy.
  3663  	ClassCount int64 `json:"classCount,omitempty"`
  3664  	// CreateTime: Output only. The time when the DataTaxonomy was created.
  3665  	CreateTime string `json:"createTime,omitempty"`
  3666  	// Description: Optional. Description of the DataTaxonomy.
  3667  	Description string `json:"description,omitempty"`
  3668  	// DisplayName: Optional. User friendly display name.
  3669  	DisplayName string `json:"displayName,omitempty"`
  3670  	// Etag: This checksum is computed by the server based on the value of other
  3671  	// fields, and may be sent on update and delete requests to ensure the client
  3672  	// has an up-to-date value before proceeding.
  3673  	Etag string `json:"etag,omitempty"`
  3674  	// Labels: Optional. User-defined labels for the DataTaxonomy.
  3675  	Labels map[string]string `json:"labels,omitempty"`
  3676  	// Name: Output only. The relative resource name of the DataTaxonomy, of the
  3677  	// form:
  3678  	// projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxono
  3679  	// my_id}.
  3680  	Name string `json:"name,omitempty"`
  3681  	// Uid: Output only. System generated globally unique ID for the dataTaxonomy.
  3682  	// This ID will be different if the DataTaxonomy is deleted and re-created with
  3683  	// the same name.
  3684  	Uid string `json:"uid,omitempty"`
  3685  	// UpdateTime: Output only. The time when the DataTaxonomy was last updated.
  3686  	UpdateTime string `json:"updateTime,omitempty"`
  3687  
  3688  	// ServerResponse contains the HTTP response code and headers from the server.
  3689  	googleapi.ServerResponse `json:"-"`
  3690  	// ForceSendFields is a list of field names (e.g. "AttributeCount") to
  3691  	// unconditionally include in API requests. By default, fields with empty or
  3692  	// default values are omitted from API requests. See
  3693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3694  	// details.
  3695  	ForceSendFields []string `json:"-"`
  3696  	// NullFields is a list of field names (e.g. "AttributeCount") to include in
  3697  	// API requests with the JSON null value. By default, fields with empty values
  3698  	// are omitted from API requests. See
  3699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3700  	NullFields []string `json:"-"`
  3701  }
  3702  
  3703  func (s *GoogleCloudDataplexV1DataTaxonomy) MarshalJSON() ([]byte, error) {
  3704  	type NoMethod GoogleCloudDataplexV1DataTaxonomy
  3705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3706  }
  3707  
  3708  // GoogleCloudDataplexV1DiscoveryEvent: The payload associated with Discovery
  3709  // data processing.
  3710  type GoogleCloudDataplexV1DiscoveryEvent struct {
  3711  	// Action: Details about the action associated with the event.
  3712  	Action *GoogleCloudDataplexV1DiscoveryEventActionDetails `json:"action,omitempty"`
  3713  	// AssetId: The id of the associated asset.
  3714  	AssetId string `json:"assetId,omitempty"`
  3715  	// Config: Details about discovery configuration in effect.
  3716  	Config *GoogleCloudDataplexV1DiscoveryEventConfigDetails `json:"config,omitempty"`
  3717  	// DataLocation: The data location associated with the event.
  3718  	DataLocation string `json:"dataLocation,omitempty"`
  3719  	// Entity: Details about the entity associated with the event.
  3720  	Entity *GoogleCloudDataplexV1DiscoveryEventEntityDetails `json:"entity,omitempty"`
  3721  	// LakeId: The id of the associated lake.
  3722  	LakeId string `json:"lakeId,omitempty"`
  3723  	// Message: The log message.
  3724  	Message string `json:"message,omitempty"`
  3725  	// Partition: Details about the partition associated with the event.
  3726  	Partition *GoogleCloudDataplexV1DiscoveryEventPartitionDetails `json:"partition,omitempty"`
  3727  	// Type: The type of the event being logged.
  3728  	//
  3729  	// Possible values:
  3730  	//   "EVENT_TYPE_UNSPECIFIED" - An unspecified event type.
  3731  	//   "CONFIG" - An event representing discovery configuration in effect.
  3732  	//   "ENTITY_CREATED" - An event representing a metadata entity being created.
  3733  	//   "ENTITY_UPDATED" - An event representing a metadata entity being updated.
  3734  	//   "ENTITY_DELETED" - An event representing a metadata entity being deleted.
  3735  	//   "PARTITION_CREATED" - An event representing a partition being created.
  3736  	//   "PARTITION_UPDATED" - An event representing a partition being updated.
  3737  	//   "PARTITION_DELETED" - An event representing a partition being deleted.
  3738  	Type string `json:"type,omitempty"`
  3739  	// ZoneId: The id of the associated zone.
  3740  	ZoneId string `json:"zoneId,omitempty"`
  3741  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  3742  	// include in API requests. By default, fields with empty or default values are
  3743  	// omitted from API requests. See
  3744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3745  	// details.
  3746  	ForceSendFields []string `json:"-"`
  3747  	// NullFields is a list of field names (e.g. "Action") to include in API
  3748  	// requests with the JSON null value. By default, fields with empty values are
  3749  	// omitted from API requests. See
  3750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3751  	NullFields []string `json:"-"`
  3752  }
  3753  
  3754  func (s *GoogleCloudDataplexV1DiscoveryEvent) MarshalJSON() ([]byte, error) {
  3755  	type NoMethod GoogleCloudDataplexV1DiscoveryEvent
  3756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3757  }
  3758  
  3759  // GoogleCloudDataplexV1DiscoveryEventActionDetails: Details about the action.
  3760  type GoogleCloudDataplexV1DiscoveryEventActionDetails struct {
  3761  	// Type: The type of action. Eg. IncompatibleDataSchema, InvalidDataFormat
  3762  	Type string `json:"type,omitempty"`
  3763  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  3764  	// include in API requests. By default, fields with empty or default values are
  3765  	// omitted from API requests. See
  3766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3767  	// details.
  3768  	ForceSendFields []string `json:"-"`
  3769  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  3770  	// with the JSON null value. By default, fields with empty values are omitted
  3771  	// from API requests. See
  3772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3773  	NullFields []string `json:"-"`
  3774  }
  3775  
  3776  func (s *GoogleCloudDataplexV1DiscoveryEventActionDetails) MarshalJSON() ([]byte, error) {
  3777  	type NoMethod GoogleCloudDataplexV1DiscoveryEventActionDetails
  3778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3779  }
  3780  
  3781  // GoogleCloudDataplexV1DiscoveryEventConfigDetails: Details about
  3782  // configuration events.
  3783  type GoogleCloudDataplexV1DiscoveryEventConfigDetails struct {
  3784  	// Parameters: A list of discovery configuration parameters in effect. The keys
  3785  	// are the field paths within DiscoverySpec. Eg. includePatterns,
  3786  	// excludePatterns, csvOptions.disableTypeInference, etc.
  3787  	Parameters map[string]string `json:"parameters,omitempty"`
  3788  	// ForceSendFields is a list of field names (e.g. "Parameters") 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. "Parameters") 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 *GoogleCloudDataplexV1DiscoveryEventConfigDetails) MarshalJSON() ([]byte, error) {
  3802  	type NoMethod GoogleCloudDataplexV1DiscoveryEventConfigDetails
  3803  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3804  }
  3805  
  3806  // GoogleCloudDataplexV1DiscoveryEventEntityDetails: Details about the entity.
  3807  type GoogleCloudDataplexV1DiscoveryEventEntityDetails struct {
  3808  	// Entity: The name of the entity resource. The name is the fully-qualified
  3809  	// resource name.
  3810  	Entity string `json:"entity,omitempty"`
  3811  	// Type: The type of the entity resource.
  3812  	//
  3813  	// Possible values:
  3814  	//   "ENTITY_TYPE_UNSPECIFIED" - An unspecified event type.
  3815  	//   "TABLE" - Entities representing structured data.
  3816  	//   "FILESET" - Entities representing unstructured data.
  3817  	Type string `json:"type,omitempty"`
  3818  	// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
  3819  	// include in API requests. By default, fields with empty or default values are
  3820  	// omitted from API requests. See
  3821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3822  	// details.
  3823  	ForceSendFields []string `json:"-"`
  3824  	// NullFields is a list of field names (e.g. "Entity") to include in API
  3825  	// requests with the JSON null value. By default, fields with empty values are
  3826  	// omitted from API requests. See
  3827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3828  	NullFields []string `json:"-"`
  3829  }
  3830  
  3831  func (s *GoogleCloudDataplexV1DiscoveryEventEntityDetails) MarshalJSON() ([]byte, error) {
  3832  	type NoMethod GoogleCloudDataplexV1DiscoveryEventEntityDetails
  3833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3834  }
  3835  
  3836  // GoogleCloudDataplexV1DiscoveryEventPartitionDetails: Details about the
  3837  // partition.
  3838  type GoogleCloudDataplexV1DiscoveryEventPartitionDetails struct {
  3839  	// Entity: The name to the containing entity resource. The name is the
  3840  	// fully-qualified resource name.
  3841  	Entity string `json:"entity,omitempty"`
  3842  	// Partition: The name to the partition resource. The name is the
  3843  	// fully-qualified resource name.
  3844  	Partition string `json:"partition,omitempty"`
  3845  	// SampledDataLocations: The locations of the data items (e.g., a Cloud Storage
  3846  	// objects) sampled for metadata inference.
  3847  	SampledDataLocations []string `json:"sampledDataLocations,omitempty"`
  3848  	// Type: The type of the containing entity resource.
  3849  	//
  3850  	// Possible values:
  3851  	//   "ENTITY_TYPE_UNSPECIFIED" - An unspecified event type.
  3852  	//   "TABLE" - Entities representing structured data.
  3853  	//   "FILESET" - Entities representing unstructured data.
  3854  	Type string `json:"type,omitempty"`
  3855  	// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
  3856  	// include in API requests. By default, fields with empty or default values are
  3857  	// omitted from API requests. See
  3858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3859  	// details.
  3860  	ForceSendFields []string `json:"-"`
  3861  	// NullFields is a list of field names (e.g. "Entity") to include in API
  3862  	// requests with the JSON null value. By default, fields with empty values are
  3863  	// omitted from API requests. See
  3864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3865  	NullFields []string `json:"-"`
  3866  }
  3867  
  3868  func (s *GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]byte, error) {
  3869  	type NoMethod GoogleCloudDataplexV1DiscoveryEventPartitionDetails
  3870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3871  }
  3872  
  3873  // GoogleCloudDataplexV1Entity: Represents tables and fileset metadata
  3874  // contained within a zone.
  3875  type GoogleCloudDataplexV1Entity struct {
  3876  	// Access: Output only. Identifies the access mechanism to the entity. Not user
  3877  	// settable.
  3878  	Access *GoogleCloudDataplexV1StorageAccess `json:"access,omitempty"`
  3879  	// Asset: Required. Immutable. The ID of the asset associated with the storage
  3880  	// location containing the entity data. The entity must be with in the same
  3881  	// zone with the asset.
  3882  	Asset string `json:"asset,omitempty"`
  3883  	// CatalogEntry: Output only. The name of the associated Data Catalog entry.
  3884  	CatalogEntry string `json:"catalogEntry,omitempty"`
  3885  	// Compatibility: Output only. Metadata stores that the entity is compatible
  3886  	// with.
  3887  	Compatibility *GoogleCloudDataplexV1EntityCompatibilityStatus `json:"compatibility,omitempty"`
  3888  	// CreateTime: Output only. The time when the entity was created.
  3889  	CreateTime string `json:"createTime,omitempty"`
  3890  	// DataPath: Required. Immutable. The storage path of the entity data. For
  3891  	// Cloud Storage data, this is the fully-qualified path to the entity, such as
  3892  	// gs://bucket/path/to/data. For BigQuery data, this is the name of the table
  3893  	// resource, such as projects/project_id/datasets/dataset_id/tables/table_id.
  3894  	DataPath string `json:"dataPath,omitempty"`
  3895  	// DataPathPattern: Optional. The set of items within the data path
  3896  	// constituting the data in the entity, represented as a glob path. Example:
  3897  	// gs://bucket/path/to/data/**/*.csv.
  3898  	DataPathPattern string `json:"dataPathPattern,omitempty"`
  3899  	// Description: Optional. User friendly longer description text. Must be
  3900  	// shorter than or equal to 1024 characters.
  3901  	Description string `json:"description,omitempty"`
  3902  	// DisplayName: Optional. Display name must be shorter than or equal to 256
  3903  	// characters.
  3904  	DisplayName string `json:"displayName,omitempty"`
  3905  	// Etag: Optional. The etag associated with the entity, which can be retrieved
  3906  	// with a GetEntity request. Required for update and delete requests.
  3907  	Etag string `json:"etag,omitempty"`
  3908  	// Format: Required. Identifies the storage format of the entity data. It does
  3909  	// not apply to entities with data stored in BigQuery.
  3910  	Format *GoogleCloudDataplexV1StorageFormat `json:"format,omitempty"`
  3911  	// Id: Required. A user-provided entity ID. It is mutable, and will be used as
  3912  	// the published table name. Specifying a new ID in an update entity request
  3913  	// will override the existing value. The ID must contain only letters (a-z,
  3914  	// A-Z), numbers (0-9), and underscores, and consist of 256 or fewer
  3915  	// characters.
  3916  	Id string `json:"id,omitempty"`
  3917  	// Name: Output only. The resource name of the entity, of the form:
  3918  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
  3919  	// _id}/entities/{id}.
  3920  	Name string `json:"name,omitempty"`
  3921  	// Schema: Required. The description of the data structure and layout. The
  3922  	// schema is not included in list responses. It is only included in SCHEMA and
  3923  	// FULL entity views of a GetEntity response.
  3924  	Schema *GoogleCloudDataplexV1Schema `json:"schema,omitempty"`
  3925  	// System: Required. Immutable. Identifies the storage system of the entity
  3926  	// data.
  3927  	//
  3928  	// Possible values:
  3929  	//   "STORAGE_SYSTEM_UNSPECIFIED" - Storage system unspecified.
  3930  	//   "CLOUD_STORAGE" - The entity data is contained within a Cloud Storage
  3931  	// bucket.
  3932  	//   "BIGQUERY" - The entity data is contained within a BigQuery dataset.
  3933  	System string `json:"system,omitempty"`
  3934  	// Type: Required. Immutable. The type of entity.
  3935  	//
  3936  	// Possible values:
  3937  	//   "TYPE_UNSPECIFIED" - Type unspecified.
  3938  	//   "TABLE" - Structured and semi-structured data.
  3939  	//   "FILESET" - Unstructured data.
  3940  	Type string `json:"type,omitempty"`
  3941  	// Uid: Output only. System generated unique ID for the Entity. This ID will be
  3942  	// different if the Entity is deleted and re-created with the same name.
  3943  	Uid string `json:"uid,omitempty"`
  3944  	// UpdateTime: Output only. The time when the entity was last updated.
  3945  	UpdateTime string `json:"updateTime,omitempty"`
  3946  
  3947  	// ServerResponse contains the HTTP response code and headers from the server.
  3948  	googleapi.ServerResponse `json:"-"`
  3949  	// ForceSendFields is a list of field names (e.g. "Access") to unconditionally
  3950  	// include in API requests. By default, fields with empty or default values are
  3951  	// omitted from API requests. See
  3952  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3953  	// details.
  3954  	ForceSendFields []string `json:"-"`
  3955  	// NullFields is a list of field names (e.g. "Access") to include in API
  3956  	// requests with the JSON null value. By default, fields with empty values are
  3957  	// omitted from API requests. See
  3958  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3959  	NullFields []string `json:"-"`
  3960  }
  3961  
  3962  func (s *GoogleCloudDataplexV1Entity) MarshalJSON() ([]byte, error) {
  3963  	type NoMethod GoogleCloudDataplexV1Entity
  3964  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3965  }
  3966  
  3967  // GoogleCloudDataplexV1EntityCompatibilityStatus: Provides compatibility
  3968  // information for various metadata stores.
  3969  type GoogleCloudDataplexV1EntityCompatibilityStatus struct {
  3970  	// Bigquery: Output only. Whether this entity is compatible with BigQuery.
  3971  	Bigquery *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"bigquery,omitempty"`
  3972  	// HiveMetastore: Output only. Whether this entity is compatible with Hive
  3973  	// Metastore.
  3974  	HiveMetastore *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"hiveMetastore,omitempty"`
  3975  	// ForceSendFields is a list of field names (e.g. "Bigquery") to
  3976  	// unconditionally include in API requests. By default, fields with empty or
  3977  	// default values are omitted from API requests. See
  3978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3979  	// details.
  3980  	ForceSendFields []string `json:"-"`
  3981  	// NullFields is a list of field names (e.g. "Bigquery") to include in API
  3982  	// requests with the JSON null value. By default, fields with empty values are
  3983  	// omitted from API requests. See
  3984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3985  	NullFields []string `json:"-"`
  3986  }
  3987  
  3988  func (s *GoogleCloudDataplexV1EntityCompatibilityStatus) MarshalJSON() ([]byte, error) {
  3989  	type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatus
  3990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3991  }
  3992  
  3993  // GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility: Provides
  3994  // compatibility information for a specific metadata store.
  3995  type GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility struct {
  3996  	// Compatible: Output only. Whether the entity is compatible and can be
  3997  	// represented in the metadata store.
  3998  	Compatible bool `json:"compatible,omitempty"`
  3999  	// Reason: Output only. Provides additional detail if the entity is
  4000  	// incompatible with the metadata store.
  4001  	Reason string `json:"reason,omitempty"`
  4002  	// ForceSendFields is a list of field names (e.g. "Compatible") to
  4003  	// unconditionally include in API requests. By default, fields with empty or
  4004  	// default values are omitted from API requests. See
  4005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4006  	// details.
  4007  	ForceSendFields []string `json:"-"`
  4008  	// NullFields is a list of field names (e.g. "Compatible") to include in API
  4009  	// requests with the JSON null value. By default, fields with empty values are
  4010  	// omitted from API requests. See
  4011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4012  	NullFields []string `json:"-"`
  4013  }
  4014  
  4015  func (s *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility) MarshalJSON() ([]byte, error) {
  4016  	type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility
  4017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4018  }
  4019  
  4020  // GoogleCloudDataplexV1Entry: An entry is a representation of a data asset
  4021  // which can be described by various metadata.
  4022  type GoogleCloudDataplexV1Entry struct {
  4023  	// Aspects: Optional. The Aspects attached to the Entry. The format for the key
  4024  	// can be one of the following: 1. {projectId}.{locationId}.{aspectTypeId} (if
  4025  	// the aspect is attached directly to the entry) 2.
  4026  	// {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is attached to
  4027  	// an entry's path)
  4028  	Aspects map[string]GoogleCloudDataplexV1Aspect `json:"aspects,omitempty"`
  4029  	// CreateTime: Output only. The time when the Entry was created.
  4030  	CreateTime string `json:"createTime,omitempty"`
  4031  	// EntrySource: Optional. Source system related information for an entry.
  4032  	EntrySource *GoogleCloudDataplexV1EntrySource `json:"entrySource,omitempty"`
  4033  	// EntryType: Required. Immutable. The resource name of the EntryType used to
  4034  	// create this Entry.
  4035  	EntryType string `json:"entryType,omitempty"`
  4036  	// FullyQualifiedName: Optional. A name for the entry that can reference it in
  4037  	// an external system. The maximum size of the field is 4000 characters.
  4038  	FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
  4039  	// Name: Identifier. The relative resource name of the Entry, of the form:
  4040  	// projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{en
  4041  	// try}.
  4042  	Name string `json:"name,omitempty"`
  4043  	// ParentEntry: Optional. Immutable. The resource name of the parent entry.
  4044  	ParentEntry string `json:"parentEntry,omitempty"`
  4045  	// UpdateTime: Output only. The time when the Entry was last updated.
  4046  	UpdateTime string `json:"updateTime,omitempty"`
  4047  
  4048  	// ServerResponse contains the HTTP response code and headers from the server.
  4049  	googleapi.ServerResponse `json:"-"`
  4050  	// ForceSendFields is a list of field names (e.g. "Aspects") to unconditionally
  4051  	// include in API requests. By default, fields with empty or default values are
  4052  	// omitted from API requests. See
  4053  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4054  	// details.
  4055  	ForceSendFields []string `json:"-"`
  4056  	// NullFields is a list of field names (e.g. "Aspects") to include in API
  4057  	// requests with the JSON null value. By default, fields with empty values are
  4058  	// omitted from API requests. See
  4059  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4060  	NullFields []string `json:"-"`
  4061  }
  4062  
  4063  func (s *GoogleCloudDataplexV1Entry) MarshalJSON() ([]byte, error) {
  4064  	type NoMethod GoogleCloudDataplexV1Entry
  4065  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4066  }
  4067  
  4068  // GoogleCloudDataplexV1EntryGroup: An Entry Group represents a logical
  4069  // grouping of one or more Entries.
  4070  type GoogleCloudDataplexV1EntryGroup struct {
  4071  	// CreateTime: Output only. The time when the EntryGroup was created.
  4072  	CreateTime string `json:"createTime,omitempty"`
  4073  	// Description: Optional. Description of the EntryGroup.
  4074  	Description string `json:"description,omitempty"`
  4075  	// DisplayName: Optional. User friendly display name.
  4076  	DisplayName string `json:"displayName,omitempty"`
  4077  	// Etag: This checksum is computed by the server based on the value of other
  4078  	// fields, and may be sent on update and delete requests to ensure the client
  4079  	// has an up-to-date value before proceeding.
  4080  	Etag string `json:"etag,omitempty"`
  4081  	// Labels: Optional. User-defined labels for the EntryGroup.
  4082  	Labels map[string]string `json:"labels,omitempty"`
  4083  	// Name: Output only. The relative resource name of the EntryGroup, of the
  4084  	// form:
  4085  	// projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id
  4086  	// }.
  4087  	Name string `json:"name,omitempty"`
  4088  	// TransferStatus: Output only. Denotes the transfer status of the Entry Group.
  4089  	// It is unspecified for Entry Group created from Dataplex API.
  4090  	//
  4091  	// Possible values:
  4092  	//   "TRANSFER_STATUS_UNSPECIFIED" - The default value. It is set for resources
  4093  	// that were not subject for migration from Data Catalog service.
  4094  	//   "TRANSFER_STATUS_MIGRATED" - Indicates that a resource was migrated from
  4095  	// Data Catalog service but it hasn't been transferred yet. In particular the
  4096  	// resource cannot be updated from Dataplex API.
  4097  	//   "TRANSFER_STATUS_TRANSFERRED" - Indicates that a resource was transferred
  4098  	// from Data Catalog service. The resource can only be updated from Dataplex
  4099  	// API.
  4100  	TransferStatus string `json:"transferStatus,omitempty"`
  4101  	// Uid: Output only. System generated globally unique ID for the EntryGroup.
  4102  	// This ID will be different if the EntryGroup is deleted and re-created with
  4103  	// the same name.
  4104  	Uid string `json:"uid,omitempty"`
  4105  	// UpdateTime: Output only. The time when the EntryGroup was last updated.
  4106  	UpdateTime string `json:"updateTime,omitempty"`
  4107  
  4108  	// ServerResponse contains the HTTP response code and headers from the server.
  4109  	googleapi.ServerResponse `json:"-"`
  4110  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4111  	// unconditionally include in API requests. By default, fields with empty or
  4112  	// default values are omitted from API requests. See
  4113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4114  	// details.
  4115  	ForceSendFields []string `json:"-"`
  4116  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4117  	// requests with the JSON null value. By default, fields with empty values are
  4118  	// omitted from API requests. See
  4119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4120  	NullFields []string `json:"-"`
  4121  }
  4122  
  4123  func (s *GoogleCloudDataplexV1EntryGroup) MarshalJSON() ([]byte, error) {
  4124  	type NoMethod GoogleCloudDataplexV1EntryGroup
  4125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4126  }
  4127  
  4128  // GoogleCloudDataplexV1EntrySource: EntrySource contains source system related
  4129  // information for the entry.
  4130  type GoogleCloudDataplexV1EntrySource struct {
  4131  	// Ancestors: Immutable. The ancestors of the Entry in the source system.
  4132  	Ancestors []*GoogleCloudDataplexV1EntrySourceAncestor `json:"ancestors,omitempty"`
  4133  	// CreateTime: The create time of the resource in the source system.
  4134  	CreateTime string `json:"createTime,omitempty"`
  4135  	// Description: Description of the Entry. The maximum size of the field is 2000
  4136  	// characters.
  4137  	Description string `json:"description,omitempty"`
  4138  	// DisplayName: User friendly display name. The maximum size of the field is
  4139  	// 500 characters.
  4140  	DisplayName string `json:"displayName,omitempty"`
  4141  	// Labels: User-defined labels. The maximum size of keys and values is 128
  4142  	// characters each.
  4143  	Labels map[string]string `json:"labels,omitempty"`
  4144  	// Platform: The platform containing the source system. The maximum size of the
  4145  	// field is 64 characters.
  4146  	Platform string `json:"platform,omitempty"`
  4147  	// Resource: The name of the resource in the source system. The maximum size of
  4148  	// the field is 4000 characters.
  4149  	Resource string `json:"resource,omitempty"`
  4150  	// System: The name of the source system. The maximum size of the field is 64
  4151  	// characters.
  4152  	System string `json:"system,omitempty"`
  4153  	// UpdateTime: The update time of the resource in the source system.
  4154  	UpdateTime string `json:"updateTime,omitempty"`
  4155  	// ForceSendFields is a list of field names (e.g. "Ancestors") to
  4156  	// unconditionally include in API requests. By default, fields with empty or
  4157  	// default values are omitted from API requests. See
  4158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4159  	// details.
  4160  	ForceSendFields []string `json:"-"`
  4161  	// NullFields is a list of field names (e.g. "Ancestors") to include in API
  4162  	// requests with the JSON null value. By default, fields with empty values are
  4163  	// omitted from API requests. See
  4164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4165  	NullFields []string `json:"-"`
  4166  }
  4167  
  4168  func (s *GoogleCloudDataplexV1EntrySource) MarshalJSON() ([]byte, error) {
  4169  	type NoMethod GoogleCloudDataplexV1EntrySource
  4170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4171  }
  4172  
  4173  // GoogleCloudDataplexV1EntrySourceAncestor: Ancestor contains information
  4174  // about individual items in the hierarchy of an Entry.
  4175  type GoogleCloudDataplexV1EntrySourceAncestor struct {
  4176  	// Name: Optional. The name of the ancestor resource.
  4177  	Name string `json:"name,omitempty"`
  4178  	// Type: Optional. The type of the ancestor resource.
  4179  	Type string `json:"type,omitempty"`
  4180  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  4181  	// include in API requests. By default, fields with empty or default values are
  4182  	// omitted from API requests. See
  4183  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4184  	// details.
  4185  	ForceSendFields []string `json:"-"`
  4186  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  4187  	// with the JSON null value. By default, fields with empty values are omitted
  4188  	// from API requests. See
  4189  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4190  	NullFields []string `json:"-"`
  4191  }
  4192  
  4193  func (s *GoogleCloudDataplexV1EntrySourceAncestor) MarshalJSON() ([]byte, error) {
  4194  	type NoMethod GoogleCloudDataplexV1EntrySourceAncestor
  4195  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4196  }
  4197  
  4198  // GoogleCloudDataplexV1EntryType: Entry Type is a template for creating
  4199  // Entries.
  4200  type GoogleCloudDataplexV1EntryType struct {
  4201  	// Authorization: Immutable. Authorization defined for this type.
  4202  	Authorization *GoogleCloudDataplexV1EntryTypeAuthorization `json:"authorization,omitempty"`
  4203  	// CreateTime: Output only. The time when the EntryType was created.
  4204  	CreateTime string `json:"createTime,omitempty"`
  4205  	// Description: Optional. Description of the EntryType.
  4206  	Description string `json:"description,omitempty"`
  4207  	// DisplayName: Optional. User friendly display name.
  4208  	DisplayName string `json:"displayName,omitempty"`
  4209  	// Etag: Optional. This checksum is computed by the server based on the value
  4210  	// of other fields, and may be sent on update and delete requests to ensure the
  4211  	// client has an up-to-date value before proceeding.
  4212  	Etag string `json:"etag,omitempty"`
  4213  	// Labels: Optional. User-defined labels for the EntryType.
  4214  	Labels map[string]string `json:"labels,omitempty"`
  4215  	// Name: Output only. The relative resource name of the EntryType, of the form:
  4216  	// projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}.
  4217  	Name string `json:"name,omitempty"`
  4218  	// Platform: Optional. The platform that Entries of this type belongs to.
  4219  	Platform string `json:"platform,omitempty"`
  4220  	// RequiredAspects: AspectInfo for the entry type.
  4221  	RequiredAspects []*GoogleCloudDataplexV1EntryTypeAspectInfo `json:"requiredAspects,omitempty"`
  4222  	// System: Optional. The system that Entries of this type belongs to. Examples
  4223  	// include CloudSQL, MariaDB etc
  4224  	System string `json:"system,omitempty"`
  4225  	// TypeAliases: Optional. Indicates the class this Entry Type belongs to, for
  4226  	// example, TABLE, DATABASE, MODEL.
  4227  	TypeAliases []string `json:"typeAliases,omitempty"`
  4228  	// Uid: Output only. System generated globally unique ID for the EntryType.
  4229  	// This ID will be different if the EntryType is deleted and re-created with
  4230  	// the same name.
  4231  	Uid string `json:"uid,omitempty"`
  4232  	// UpdateTime: Output only. The time when the EntryType was last updated.
  4233  	UpdateTime string `json:"updateTime,omitempty"`
  4234  
  4235  	// ServerResponse contains the HTTP response code and headers from the server.
  4236  	googleapi.ServerResponse `json:"-"`
  4237  	// ForceSendFields is a list of field names (e.g. "Authorization") to
  4238  	// unconditionally include in API requests. By default, fields with empty or
  4239  	// default values are omitted from API requests. See
  4240  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4241  	// details.
  4242  	ForceSendFields []string `json:"-"`
  4243  	// NullFields is a list of field names (e.g. "Authorization") to include in API
  4244  	// requests with the JSON null value. By default, fields with empty values are
  4245  	// omitted from API requests. See
  4246  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4247  	NullFields []string `json:"-"`
  4248  }
  4249  
  4250  func (s *GoogleCloudDataplexV1EntryType) MarshalJSON() ([]byte, error) {
  4251  	type NoMethod GoogleCloudDataplexV1EntryType
  4252  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4253  }
  4254  
  4255  type GoogleCloudDataplexV1EntryTypeAspectInfo struct {
  4256  	// Type: Required aspect type for the entry type.
  4257  	Type string `json:"type,omitempty"`
  4258  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  4259  	// include in API requests. By default, fields with empty or default values are
  4260  	// omitted from API requests. See
  4261  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4262  	// details.
  4263  	ForceSendFields []string `json:"-"`
  4264  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  4265  	// with the JSON null value. By default, fields with empty values are omitted
  4266  	// from API requests. See
  4267  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4268  	NullFields []string `json:"-"`
  4269  }
  4270  
  4271  func (s *GoogleCloudDataplexV1EntryTypeAspectInfo) MarshalJSON() ([]byte, error) {
  4272  	type NoMethod GoogleCloudDataplexV1EntryTypeAspectInfo
  4273  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4274  }
  4275  
  4276  // GoogleCloudDataplexV1EntryTypeAuthorization: Authorization for an Entry
  4277  // Type.
  4278  type GoogleCloudDataplexV1EntryTypeAuthorization struct {
  4279  	// AlternateUsePermission: Immutable. The IAM permission grantable on the Entry
  4280  	// Group to allow access to instantiate Entries of Dataplex owned Entry Types,
  4281  	// only settable for Dataplex owned Types.
  4282  	AlternateUsePermission string `json:"alternateUsePermission,omitempty"`
  4283  	// ForceSendFields is a list of field names (e.g. "AlternateUsePermission") to
  4284  	// unconditionally include in API requests. By default, fields with empty or
  4285  	// default values are omitted from API requests. See
  4286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4287  	// details.
  4288  	ForceSendFields []string `json:"-"`
  4289  	// NullFields is a list of field names (e.g. "AlternateUsePermission") to
  4290  	// include in API requests with the JSON null value. By default, fields with
  4291  	// empty values are omitted from API requests. See
  4292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4293  	NullFields []string `json:"-"`
  4294  }
  4295  
  4296  func (s *GoogleCloudDataplexV1EntryTypeAuthorization) MarshalJSON() ([]byte, error) {
  4297  	type NoMethod GoogleCloudDataplexV1EntryTypeAuthorization
  4298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4299  }
  4300  
  4301  // GoogleCloudDataplexV1Environment: Environment represents a user-visible
  4302  // compute infrastructure for analytics within a lake.
  4303  type GoogleCloudDataplexV1Environment struct {
  4304  	// CreateTime: Output only. Environment creation time.
  4305  	CreateTime string `json:"createTime,omitempty"`
  4306  	// Description: Optional. Description of the environment.
  4307  	Description string `json:"description,omitempty"`
  4308  	// DisplayName: Optional. User friendly display name.
  4309  	DisplayName string `json:"displayName,omitempty"`
  4310  	// Endpoints: Output only. URI Endpoints to access sessions associated with the
  4311  	// Environment.
  4312  	Endpoints *GoogleCloudDataplexV1EnvironmentEndpoints `json:"endpoints,omitempty"`
  4313  	// InfrastructureSpec: Required. Infrastructure specification for the
  4314  	// Environment.
  4315  	InfrastructureSpec *GoogleCloudDataplexV1EnvironmentInfrastructureSpec `json:"infrastructureSpec,omitempty"`
  4316  	// Labels: Optional. User defined labels for the environment.
  4317  	Labels map[string]string `json:"labels,omitempty"`
  4318  	// Name: Output only. The relative resource name of the environment, of the
  4319  	// form:
  4320  	// projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{en
  4321  	// vironment_id}
  4322  	Name string `json:"name,omitempty"`
  4323  	// SessionSpec: Optional. Configuration for sessions created for this
  4324  	// environment.
  4325  	SessionSpec *GoogleCloudDataplexV1EnvironmentSessionSpec `json:"sessionSpec,omitempty"`
  4326  	// SessionStatus: Output only. Status of sessions created for this environment.
  4327  	SessionStatus *GoogleCloudDataplexV1EnvironmentSessionStatus `json:"sessionStatus,omitempty"`
  4328  	// State: Output only. Current state of the environment.
  4329  	//
  4330  	// Possible values:
  4331  	//   "STATE_UNSPECIFIED" - State is not specified.
  4332  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  4333  	//   "CREATING" - Resource is under creation.
  4334  	//   "DELETING" - Resource is under deletion.
  4335  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  4336  	State string `json:"state,omitempty"`
  4337  	// Uid: Output only. System generated globally unique ID for the environment.
  4338  	// This ID will be different if the environment is deleted and re-created with
  4339  	// the same name.
  4340  	Uid string `json:"uid,omitempty"`
  4341  	// UpdateTime: Output only. The time when the environment was last updated.
  4342  	UpdateTime string `json:"updateTime,omitempty"`
  4343  
  4344  	// ServerResponse contains the HTTP response code and headers from the server.
  4345  	googleapi.ServerResponse `json:"-"`
  4346  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4347  	// unconditionally include in API requests. By default, fields with empty or
  4348  	// default values are omitted from API requests. See
  4349  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4350  	// details.
  4351  	ForceSendFields []string `json:"-"`
  4352  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4353  	// requests with the JSON null value. By default, fields with empty values are
  4354  	// omitted from API requests. See
  4355  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4356  	NullFields []string `json:"-"`
  4357  }
  4358  
  4359  func (s *GoogleCloudDataplexV1Environment) MarshalJSON() ([]byte, error) {
  4360  	type NoMethod GoogleCloudDataplexV1Environment
  4361  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4362  }
  4363  
  4364  // GoogleCloudDataplexV1EnvironmentEndpoints: URI Endpoints to access sessions
  4365  // associated with the Environment.
  4366  type GoogleCloudDataplexV1EnvironmentEndpoints struct {
  4367  	// Notebooks: Output only. URI to serve notebook APIs
  4368  	Notebooks string `json:"notebooks,omitempty"`
  4369  	// Sql: Output only. URI to serve SQL APIs
  4370  	Sql string `json:"sql,omitempty"`
  4371  	// ForceSendFields is a list of field names (e.g. "Notebooks") to
  4372  	// unconditionally include in API requests. By default, fields with empty or
  4373  	// default values are omitted from API requests. See
  4374  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4375  	// details.
  4376  	ForceSendFields []string `json:"-"`
  4377  	// NullFields is a list of field names (e.g. "Notebooks") to include in API
  4378  	// requests with the JSON null value. By default, fields with empty values are
  4379  	// omitted from API requests. See
  4380  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4381  	NullFields []string `json:"-"`
  4382  }
  4383  
  4384  func (s *GoogleCloudDataplexV1EnvironmentEndpoints) MarshalJSON() ([]byte, error) {
  4385  	type NoMethod GoogleCloudDataplexV1EnvironmentEndpoints
  4386  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4387  }
  4388  
  4389  // GoogleCloudDataplexV1EnvironmentInfrastructureSpec: Configuration for the
  4390  // underlying infrastructure used to run workloads.
  4391  type GoogleCloudDataplexV1EnvironmentInfrastructureSpec struct {
  4392  	// Compute: Optional. Compute resources needed for analyze interactive
  4393  	// workloads.
  4394  	Compute *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources `json:"compute,omitempty"`
  4395  	// OsImage: Required. Software Runtime Configuration for analyze interactive
  4396  	// workloads.
  4397  	OsImage *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime `json:"osImage,omitempty"`
  4398  	// ForceSendFields is a list of field names (e.g. "Compute") to unconditionally
  4399  	// include in API requests. By default, fields with empty or default values are
  4400  	// omitted from API requests. See
  4401  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4402  	// details.
  4403  	ForceSendFields []string `json:"-"`
  4404  	// NullFields is a list of field names (e.g. "Compute") to include in API
  4405  	// requests with the JSON null value. By default, fields with empty values are
  4406  	// omitted from API requests. See
  4407  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4408  	NullFields []string `json:"-"`
  4409  }
  4410  
  4411  func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpec) MarshalJSON() ([]byte, error) {
  4412  	type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpec
  4413  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4414  }
  4415  
  4416  // GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources: Compute
  4417  // resources associated with the analyze interactive workloads.
  4418  type GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources struct {
  4419  	// DiskSizeGb: Optional. Size in GB of the disk. Default is 100 GB.
  4420  	DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
  4421  	// MaxNodeCount: Optional. Max configurable nodes. If max_node_count >
  4422  	// node_count, then auto-scaling is enabled.
  4423  	MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
  4424  	// NodeCount: Optional. Total number of nodes in the sessions created for this
  4425  	// environment.
  4426  	NodeCount int64 `json:"nodeCount,omitempty"`
  4427  	// ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
  4428  	// unconditionally include in API requests. By default, fields with empty or
  4429  	// default values are omitted from API requests. See
  4430  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4431  	// details.
  4432  	ForceSendFields []string `json:"-"`
  4433  	// NullFields is a list of field names (e.g. "DiskSizeGb") to include in API
  4434  	// requests with the JSON null value. By default, fields with empty values are
  4435  	// omitted from API requests. See
  4436  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4437  	NullFields []string `json:"-"`
  4438  }
  4439  
  4440  func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources) MarshalJSON() ([]byte, error) {
  4441  	type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources
  4442  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4443  }
  4444  
  4445  // GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime: Software
  4446  // Runtime Configuration to run Analyze.
  4447  type GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime struct {
  4448  	// ImageVersion: Required. Dataplex Image version.
  4449  	ImageVersion string `json:"imageVersion,omitempty"`
  4450  	// JavaLibraries: Optional. List of Java jars to be included in the runtime
  4451  	// environment. Valid input includes Cloud Storage URIs to Jar binaries. For
  4452  	// example, gs://bucket-name/my/path/to/file.jar
  4453  	JavaLibraries []string `json:"javaLibraries,omitempty"`
  4454  	// Properties: Optional. Spark properties to provide configuration for use in
  4455  	// sessions created for this environment. The properties to set on daemon
  4456  	// config files. Property keys are specified in prefix:property format. The
  4457  	// prefix must be "spark".
  4458  	Properties map[string]string `json:"properties,omitempty"`
  4459  	// PythonPackages: Optional. A list of python packages to be installed. Valid
  4460  	// formats include Cloud Storage URI to a PIP installable library. For example,
  4461  	// gs://bucket-name/my/path/to/lib.tar.gz
  4462  	PythonPackages []string `json:"pythonPackages,omitempty"`
  4463  	// ForceSendFields is a list of field names (e.g. "ImageVersion") to
  4464  	// unconditionally include in API requests. By default, fields with empty or
  4465  	// default values are omitted from API requests. See
  4466  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4467  	// details.
  4468  	ForceSendFields []string `json:"-"`
  4469  	// NullFields is a list of field names (e.g. "ImageVersion") to include in API
  4470  	// requests with the JSON null value. By default, fields with empty values are
  4471  	// omitted from API requests. See
  4472  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4473  	NullFields []string `json:"-"`
  4474  }
  4475  
  4476  func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime) MarshalJSON() ([]byte, error) {
  4477  	type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime
  4478  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4479  }
  4480  
  4481  // GoogleCloudDataplexV1EnvironmentSessionSpec: Configuration for sessions
  4482  // created for this environment.
  4483  type GoogleCloudDataplexV1EnvironmentSessionSpec struct {
  4484  	// EnableFastStartup: Optional. If True, this causes sessions to be pre-created
  4485  	// and available for faster startup to enable interactive exploration
  4486  	// use-cases. This defaults to False to avoid additional billed charges. These
  4487  	// can only be set to True for the environment with name set to "default", and
  4488  	// with default configuration.
  4489  	EnableFastStartup bool `json:"enableFastStartup,omitempty"`
  4490  	// MaxIdleDuration: Optional. The idle time configuration of the session. The
  4491  	// session will be auto-terminated at the end of this period.
  4492  	MaxIdleDuration string `json:"maxIdleDuration,omitempty"`
  4493  	// ForceSendFields is a list of field names (e.g. "EnableFastStartup") to
  4494  	// unconditionally include in API requests. By default, fields with empty or
  4495  	// default values are omitted from API requests. See
  4496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4497  	// details.
  4498  	ForceSendFields []string `json:"-"`
  4499  	// NullFields is a list of field names (e.g. "EnableFastStartup") to include in
  4500  	// API requests with the JSON null value. By default, fields with empty values
  4501  	// are omitted from API requests. See
  4502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4503  	NullFields []string `json:"-"`
  4504  }
  4505  
  4506  func (s *GoogleCloudDataplexV1EnvironmentSessionSpec) MarshalJSON() ([]byte, error) {
  4507  	type NoMethod GoogleCloudDataplexV1EnvironmentSessionSpec
  4508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4509  }
  4510  
  4511  // GoogleCloudDataplexV1EnvironmentSessionStatus: Status of sessions created
  4512  // for this environment.
  4513  type GoogleCloudDataplexV1EnvironmentSessionStatus struct {
  4514  	// Active: Output only. Queries over sessions to mark whether the environment
  4515  	// is currently active or not
  4516  	Active bool `json:"active,omitempty"`
  4517  	// ForceSendFields is a list of field names (e.g. "Active") to unconditionally
  4518  	// include in API requests. By default, fields with empty or default values are
  4519  	// omitted from API requests. See
  4520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4521  	// details.
  4522  	ForceSendFields []string `json:"-"`
  4523  	// NullFields is a list of field names (e.g. "Active") to include in API
  4524  	// requests with the JSON null value. By default, fields with empty values are
  4525  	// omitted from API requests. See
  4526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4527  	NullFields []string `json:"-"`
  4528  }
  4529  
  4530  func (s *GoogleCloudDataplexV1EnvironmentSessionStatus) MarshalJSON() ([]byte, error) {
  4531  	type NoMethod GoogleCloudDataplexV1EnvironmentSessionStatus
  4532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4533  }
  4534  
  4535  // GoogleCloudDataplexV1GenerateDataQualityRulesRequest: Generate recommended
  4536  // DataQualityRules request.
  4537  type GoogleCloudDataplexV1GenerateDataQualityRulesRequest struct {
  4538  }
  4539  
  4540  // GoogleCloudDataplexV1GenerateDataQualityRulesResponse: Generate recommended
  4541  // DataQualityRules response.
  4542  type GoogleCloudDataplexV1GenerateDataQualityRulesResponse struct {
  4543  	// Rule: Generated recommended {@link DataQualityRule}s.
  4544  	Rule []*GoogleCloudDataplexV1DataQualityRule `json:"rule,omitempty"`
  4545  
  4546  	// ServerResponse contains the HTTP response code and headers from the server.
  4547  	googleapi.ServerResponse `json:"-"`
  4548  	// ForceSendFields is a list of field names (e.g. "Rule") to unconditionally
  4549  	// include in API requests. By default, fields with empty or default values are
  4550  	// omitted from API requests. See
  4551  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4552  	// details.
  4553  	ForceSendFields []string `json:"-"`
  4554  	// NullFields is a list of field names (e.g. "Rule") to include in API requests
  4555  	// with the JSON null value. By default, fields with empty values are omitted
  4556  	// from API requests. See
  4557  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4558  	NullFields []string `json:"-"`
  4559  }
  4560  
  4561  func (s *GoogleCloudDataplexV1GenerateDataQualityRulesResponse) MarshalJSON() ([]byte, error) {
  4562  	type NoMethod GoogleCloudDataplexV1GenerateDataQualityRulesResponse
  4563  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4564  }
  4565  
  4566  // GoogleCloudDataplexV1GovernanceEvent: Payload associated with Governance
  4567  // related log events.
  4568  type GoogleCloudDataplexV1GovernanceEvent struct {
  4569  	// Entity: Entity resource information if the log event is associated with a
  4570  	// specific entity.
  4571  	Entity *GoogleCloudDataplexV1GovernanceEventEntity `json:"entity,omitempty"`
  4572  	// EventType: The type of the event.
  4573  	//
  4574  	// Possible values:
  4575  	//   "EVENT_TYPE_UNSPECIFIED" - An unspecified event type.
  4576  	//   "RESOURCE_IAM_POLICY_UPDATE" - Resource IAM policy update event.
  4577  	//   "BIGQUERY_TABLE_CREATE" - BigQuery table create event.
  4578  	//   "BIGQUERY_TABLE_UPDATE" - BigQuery table update event.
  4579  	//   "BIGQUERY_TABLE_DELETE" - BigQuery table delete event.
  4580  	//   "BIGQUERY_CONNECTION_CREATE" - BigQuery connection create event.
  4581  	//   "BIGQUERY_CONNECTION_UPDATE" - BigQuery connection update event.
  4582  	//   "BIGQUERY_CONNECTION_DELETE" - BigQuery connection delete event.
  4583  	//   "BIGQUERY_TAXONOMY_CREATE" - BigQuery taxonomy created.
  4584  	//   "BIGQUERY_POLICY_TAG_CREATE" - BigQuery policy tag created.
  4585  	//   "BIGQUERY_POLICY_TAG_DELETE" - BigQuery policy tag deleted.
  4586  	//   "BIGQUERY_POLICY_TAG_SET_IAM_POLICY" - BigQuery set iam policy for policy
  4587  	// tag.
  4588  	//   "ACCESS_POLICY_UPDATE" - Access policy update event.
  4589  	//   "GOVERNANCE_RULE_MATCHED_RESOURCES" - Number of resources matched with
  4590  	// particular Query.
  4591  	//   "GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS" - Rule processing exceeds the
  4592  	// allowed limit.
  4593  	//   "GOVERNANCE_RULE_ERRORS" - Rule processing errors.
  4594  	//   "GOVERNANCE_RULE_PROCESSING" - Governance rule processing Event.
  4595  	EventType string `json:"eventType,omitempty"`
  4596  	// Message: The log message.
  4597  	Message string `json:"message,omitempty"`
  4598  	// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
  4599  	// include in API requests. By default, fields with empty or default values are
  4600  	// omitted from API requests. See
  4601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4602  	// details.
  4603  	ForceSendFields []string `json:"-"`
  4604  	// NullFields is a list of field names (e.g. "Entity") to include in API
  4605  	// requests with the JSON null value. By default, fields with empty values are
  4606  	// omitted from API requests. See
  4607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4608  	NullFields []string `json:"-"`
  4609  }
  4610  
  4611  func (s *GoogleCloudDataplexV1GovernanceEvent) MarshalJSON() ([]byte, error) {
  4612  	type NoMethod GoogleCloudDataplexV1GovernanceEvent
  4613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4614  }
  4615  
  4616  // GoogleCloudDataplexV1GovernanceEventEntity: Information about Entity
  4617  // resource that the log event is associated with.
  4618  type GoogleCloudDataplexV1GovernanceEventEntity struct {
  4619  	// Entity: The Entity resource the log event is associated with. Format:
  4620  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
  4621  	// _id}/entities/{entity_id}
  4622  	Entity string `json:"entity,omitempty"`
  4623  	// EntityType: Type of entity.
  4624  	//
  4625  	// Possible values:
  4626  	//   "ENTITY_TYPE_UNSPECIFIED" - An unspecified Entity type.
  4627  	//   "TABLE" - Table entity type.
  4628  	//   "FILESET" - Fileset entity type.
  4629  	EntityType string `json:"entityType,omitempty"`
  4630  	// ForceSendFields is a list of field names (e.g. "Entity") to unconditionally
  4631  	// include in API requests. By default, fields with empty or default values are
  4632  	// omitted from API requests. See
  4633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4634  	// details.
  4635  	ForceSendFields []string `json:"-"`
  4636  	// NullFields is a list of field names (e.g. "Entity") to include in API
  4637  	// requests with the JSON null value. By default, fields with empty values are
  4638  	// omitted from API requests. See
  4639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4640  	NullFields []string `json:"-"`
  4641  }
  4642  
  4643  func (s *GoogleCloudDataplexV1GovernanceEventEntity) MarshalJSON() ([]byte, error) {
  4644  	type NoMethod GoogleCloudDataplexV1GovernanceEventEntity
  4645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4646  }
  4647  
  4648  // GoogleCloudDataplexV1Job: A job represents an instance of a task.
  4649  type GoogleCloudDataplexV1Job struct {
  4650  	// EndTime: Output only. The time when the job ended.
  4651  	EndTime string `json:"endTime,omitempty"`
  4652  	// ExecutionSpec: Output only. Spec related to how a task is executed.
  4653  	ExecutionSpec *GoogleCloudDataplexV1TaskExecutionSpec `json:"executionSpec,omitempty"`
  4654  	// Labels: Output only. User-defined labels for the task.
  4655  	Labels map[string]string `json:"labels,omitempty"`
  4656  	// Message: Output only. Additional information about the current state.
  4657  	Message string `json:"message,omitempty"`
  4658  	// Name: Output only. The relative resource name of the job, of the form:
  4659  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task
  4660  	// _id}/jobs/{job_id}.
  4661  	Name string `json:"name,omitempty"`
  4662  	// RetryCount: Output only. The number of times the job has been retried
  4663  	// (excluding the initial attempt).
  4664  	RetryCount int64 `json:"retryCount,omitempty"`
  4665  	// Service: Output only. The underlying service running a job.
  4666  	//
  4667  	// Possible values:
  4668  	//   "SERVICE_UNSPECIFIED" - Service used to run the job is unspecified.
  4669  	//   "DATAPROC" - Dataproc service is used to run this job.
  4670  	Service string `json:"service,omitempty"`
  4671  	// ServiceJob: Output only. The full resource name for the job run under a
  4672  	// particular service.
  4673  	ServiceJob string `json:"serviceJob,omitempty"`
  4674  	// StartTime: Output only. The time when the job was started.
  4675  	StartTime string `json:"startTime,omitempty"`
  4676  	// State: Output only. Execution state for the job.
  4677  	//
  4678  	// Possible values:
  4679  	//   "STATE_UNSPECIFIED" - The job state is unknown.
  4680  	//   "RUNNING" - The job is running.
  4681  	//   "CANCELLING" - The job is cancelling.
  4682  	//   "CANCELLED" - The job cancellation was successful.
  4683  	//   "SUCCEEDED" - The job completed successfully.
  4684  	//   "FAILED" - The job is no longer running due to an error.
  4685  	//   "ABORTED" - The job was cancelled outside of Dataplex.
  4686  	State string `json:"state,omitempty"`
  4687  	// Trigger: Output only. Job execution trigger.
  4688  	//
  4689  	// Possible values:
  4690  	//   "TRIGGER_UNSPECIFIED" - The trigger is unspecified.
  4691  	//   "TASK_CONFIG" - The job was triggered by Dataplex based on trigger spec
  4692  	// from task definition.
  4693  	//   "RUN_REQUEST" - The job was triggered by the explicit call of Task API.
  4694  	Trigger string `json:"trigger,omitempty"`
  4695  	// Uid: Output only. System generated globally unique ID for the job.
  4696  	Uid string `json:"uid,omitempty"`
  4697  
  4698  	// ServerResponse contains the HTTP response code and headers from the server.
  4699  	googleapi.ServerResponse `json:"-"`
  4700  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  4701  	// include in API requests. By default, fields with empty or default values are
  4702  	// omitted from API requests. See
  4703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4704  	// details.
  4705  	ForceSendFields []string `json:"-"`
  4706  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  4707  	// requests with the JSON null value. By default, fields with empty values are
  4708  	// omitted from API requests. See
  4709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4710  	NullFields []string `json:"-"`
  4711  }
  4712  
  4713  func (s *GoogleCloudDataplexV1Job) MarshalJSON() ([]byte, error) {
  4714  	type NoMethod GoogleCloudDataplexV1Job
  4715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4716  }
  4717  
  4718  // GoogleCloudDataplexV1JobEvent: The payload associated with Job logs that
  4719  // contains events describing jobs that have run within a Lake.
  4720  type GoogleCloudDataplexV1JobEvent struct {
  4721  	// EndTime: The time when the job ended running.
  4722  	EndTime string `json:"endTime,omitempty"`
  4723  	// ExecutionTrigger: Job execution trigger.
  4724  	//
  4725  	// Possible values:
  4726  	//   "EXECUTION_TRIGGER_UNSPECIFIED" - The job execution trigger is
  4727  	// unspecified.
  4728  	//   "TASK_CONFIG" - The job was triggered by Dataplex based on trigger spec
  4729  	// from task definition.
  4730  	//   "RUN_REQUEST" - The job was triggered by the explicit call of Task API.
  4731  	ExecutionTrigger string `json:"executionTrigger,omitempty"`
  4732  	// JobId: The unique id identifying the job.
  4733  	JobId string `json:"jobId,omitempty"`
  4734  	// Message: The log message.
  4735  	Message string `json:"message,omitempty"`
  4736  	// Retries: The number of retries.
  4737  	Retries int64 `json:"retries,omitempty"`
  4738  	// Service: The service used to execute the job.
  4739  	//
  4740  	// Possible values:
  4741  	//   "SERVICE_UNSPECIFIED" - Unspecified service.
  4742  	//   "DATAPROC" - Cloud Dataproc.
  4743  	Service string `json:"service,omitempty"`
  4744  	// ServiceJob: The reference to the job within the service.
  4745  	ServiceJob string `json:"serviceJob,omitempty"`
  4746  	// StartTime: The time when the job started running.
  4747  	StartTime string `json:"startTime,omitempty"`
  4748  	// State: The job state on completion.
  4749  	//
  4750  	// Possible values:
  4751  	//   "STATE_UNSPECIFIED" - Unspecified job state.
  4752  	//   "SUCCEEDED" - Job successfully completed.
  4753  	//   "FAILED" - Job was unsuccessful.
  4754  	//   "CANCELLED" - Job was cancelled by the user.
  4755  	//   "ABORTED" - Job was cancelled or aborted via the service executing the
  4756  	// job.
  4757  	State string `json:"state,omitempty"`
  4758  	// Type: The type of the job.
  4759  	//
  4760  	// Possible values:
  4761  	//   "TYPE_UNSPECIFIED" - Unspecified job type.
  4762  	//   "SPARK" - Spark jobs.
  4763  	//   "NOTEBOOK" - Notebook jobs.
  4764  	Type string `json:"type,omitempty"`
  4765  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  4766  	// include in API requests. By default, fields with empty or default values are
  4767  	// omitted from API requests. See
  4768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4769  	// details.
  4770  	ForceSendFields []string `json:"-"`
  4771  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  4772  	// requests with the JSON null value. By default, fields with empty values are
  4773  	// omitted from API requests. See
  4774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4775  	NullFields []string `json:"-"`
  4776  }
  4777  
  4778  func (s *GoogleCloudDataplexV1JobEvent) MarshalJSON() ([]byte, error) {
  4779  	type NoMethod GoogleCloudDataplexV1JobEvent
  4780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4781  }
  4782  
  4783  // GoogleCloudDataplexV1Lake: A lake is a centralized repository for managing
  4784  // enterprise data across the organization distributed across many cloud
  4785  // projects, and stored in a variety of storage services such as Google Cloud
  4786  // Storage and BigQuery. The resources attached to a lake are referred to as
  4787  // managed resources. Data within these managed resources can be structured or
  4788  // unstructured. A lake provides data admins with tools to organize, secure and
  4789  // manage their data at scale, and provides data scientists and data engineers
  4790  // an integrated experience to easily search, discover, analyze and transform
  4791  // data and associated metadata.
  4792  type GoogleCloudDataplexV1Lake struct {
  4793  	// AssetStatus: Output only. Aggregated status of the underlying assets of the
  4794  	// lake.
  4795  	AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"`
  4796  	// CreateTime: Output only. The time when the lake was created.
  4797  	CreateTime string `json:"createTime,omitempty"`
  4798  	// Description: Optional. Description of the lake.
  4799  	Description string `json:"description,omitempty"`
  4800  	// DisplayName: Optional. User friendly display name.
  4801  	DisplayName string `json:"displayName,omitempty"`
  4802  	// Labels: Optional. User-defined labels for the lake.
  4803  	Labels map[string]string `json:"labels,omitempty"`
  4804  	// Metastore: Optional. Settings to manage lake and Dataproc Metastore service
  4805  	// instance association.
  4806  	Metastore *GoogleCloudDataplexV1LakeMetastore `json:"metastore,omitempty"`
  4807  	// MetastoreStatus: Output only. Metastore status of the lake.
  4808  	MetastoreStatus *GoogleCloudDataplexV1LakeMetastoreStatus `json:"metastoreStatus,omitempty"`
  4809  	// Name: Output only. The relative resource name of the lake, of the form:
  4810  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
  4811  	Name string `json:"name,omitempty"`
  4812  	// ServiceAccount: Output only. Service account associated with this lake. This
  4813  	// service account must be authorized to access or operate on resources managed
  4814  	// by the lake.
  4815  	ServiceAccount string `json:"serviceAccount,omitempty"`
  4816  	// State: Output only. Current state of the lake.
  4817  	//
  4818  	// Possible values:
  4819  	//   "STATE_UNSPECIFIED" - State is not specified.
  4820  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  4821  	//   "CREATING" - Resource is under creation.
  4822  	//   "DELETING" - Resource is under deletion.
  4823  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  4824  	State string `json:"state,omitempty"`
  4825  	// Uid: Output only. System generated globally unique ID for the lake. This ID
  4826  	// will be different if the lake is deleted and re-created with the same name.
  4827  	Uid string `json:"uid,omitempty"`
  4828  	// UpdateTime: Output only. The time when the lake was last updated.
  4829  	UpdateTime string `json:"updateTime,omitempty"`
  4830  
  4831  	// ServerResponse contains the HTTP response code and headers from the server.
  4832  	googleapi.ServerResponse `json:"-"`
  4833  	// ForceSendFields is a list of field names (e.g. "AssetStatus") to
  4834  	// unconditionally include in API requests. By default, fields with empty or
  4835  	// default values are omitted from API requests. See
  4836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4837  	// details.
  4838  	ForceSendFields []string `json:"-"`
  4839  	// NullFields is a list of field names (e.g. "AssetStatus") to include in API
  4840  	// requests with the JSON null value. By default, fields with empty values are
  4841  	// omitted from API requests. See
  4842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4843  	NullFields []string `json:"-"`
  4844  }
  4845  
  4846  func (s *GoogleCloudDataplexV1Lake) MarshalJSON() ([]byte, error) {
  4847  	type NoMethod GoogleCloudDataplexV1Lake
  4848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4849  }
  4850  
  4851  // GoogleCloudDataplexV1LakeMetastore: Settings to manage association of
  4852  // Dataproc Metastore with a lake.
  4853  type GoogleCloudDataplexV1LakeMetastore struct {
  4854  	// Service: Optional. A relative reference to the Dataproc Metastore
  4855  	// (https://cloud.google.com/dataproc-metastore/docs) service associated with
  4856  	// the lake:
  4857  	// projects/{project_id}/locations/{location_id}/services/{service_id}
  4858  	Service string `json:"service,omitempty"`
  4859  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
  4860  	// include in API requests. By default, fields with empty or default values are
  4861  	// omitted from API requests. See
  4862  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4863  	// details.
  4864  	ForceSendFields []string `json:"-"`
  4865  	// NullFields is a list of field names (e.g. "Service") to include in API
  4866  	// requests with the JSON null value. By default, fields with empty values are
  4867  	// omitted from API requests. See
  4868  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4869  	NullFields []string `json:"-"`
  4870  }
  4871  
  4872  func (s *GoogleCloudDataplexV1LakeMetastore) MarshalJSON() ([]byte, error) {
  4873  	type NoMethod GoogleCloudDataplexV1LakeMetastore
  4874  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4875  }
  4876  
  4877  // GoogleCloudDataplexV1LakeMetastoreStatus: Status of Lake and Dataproc
  4878  // Metastore service instance association.
  4879  type GoogleCloudDataplexV1LakeMetastoreStatus struct {
  4880  	// Endpoint: The URI of the endpoint used to access the Metastore service.
  4881  	Endpoint string `json:"endpoint,omitempty"`
  4882  	// Message: Additional information about the current status.
  4883  	Message string `json:"message,omitempty"`
  4884  	// State: Current state of association.
  4885  	//
  4886  	// Possible values:
  4887  	//   "STATE_UNSPECIFIED" - Unspecified.
  4888  	//   "NONE" - A Metastore service instance is not associated with the lake.
  4889  	//   "READY" - A Metastore service instance is attached to the lake.
  4890  	//   "UPDATING" - Attach/detach is in progress.
  4891  	//   "ERROR" - Attach/detach could not be done due to errors.
  4892  	State string `json:"state,omitempty"`
  4893  	// UpdateTime: Last update time of the metastore status of the lake.
  4894  	UpdateTime string `json:"updateTime,omitempty"`
  4895  	// ForceSendFields is a list of field names (e.g. "Endpoint") to
  4896  	// unconditionally include in API requests. By default, fields with empty or
  4897  	// default values are omitted from API requests. See
  4898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4899  	// details.
  4900  	ForceSendFields []string `json:"-"`
  4901  	// NullFields is a list of field names (e.g. "Endpoint") to include in API
  4902  	// requests with the JSON null value. By default, fields with empty values are
  4903  	// omitted from API requests. See
  4904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4905  	NullFields []string `json:"-"`
  4906  }
  4907  
  4908  func (s *GoogleCloudDataplexV1LakeMetastoreStatus) MarshalJSON() ([]byte, error) {
  4909  	type NoMethod GoogleCloudDataplexV1LakeMetastoreStatus
  4910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4911  }
  4912  
  4913  // GoogleCloudDataplexV1ListActionsResponse: List actions response.
  4914  type GoogleCloudDataplexV1ListActionsResponse struct {
  4915  	// Actions: Actions under the given parent lake/zone/asset.
  4916  	Actions []*GoogleCloudDataplexV1Action `json:"actions,omitempty"`
  4917  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4918  	// are no more results in the list.
  4919  	NextPageToken string `json:"nextPageToken,omitempty"`
  4920  
  4921  	// ServerResponse contains the HTTP response code and headers from the server.
  4922  	googleapi.ServerResponse `json:"-"`
  4923  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  4924  	// include in API requests. By default, fields with empty or default values are
  4925  	// omitted from API requests. See
  4926  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4927  	// details.
  4928  	ForceSendFields []string `json:"-"`
  4929  	// NullFields is a list of field names (e.g. "Actions") to include in API
  4930  	// requests with the JSON null value. By default, fields with empty values are
  4931  	// omitted from API requests. See
  4932  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4933  	NullFields []string `json:"-"`
  4934  }
  4935  
  4936  func (s *GoogleCloudDataplexV1ListActionsResponse) MarshalJSON() ([]byte, error) {
  4937  	type NoMethod GoogleCloudDataplexV1ListActionsResponse
  4938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4939  }
  4940  
  4941  // GoogleCloudDataplexV1ListAspectTypesResponse: List AspectTypes response
  4942  type GoogleCloudDataplexV1ListAspectTypesResponse struct {
  4943  	// AspectTypes: ListAspectTypes under the given parent location.
  4944  	AspectTypes []*GoogleCloudDataplexV1AspectType `json:"aspectTypes,omitempty"`
  4945  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4946  	// are no more results in the list.
  4947  	NextPageToken string `json:"nextPageToken,omitempty"`
  4948  	// UnreachableLocations: Locations that could not be reached.
  4949  	UnreachableLocations []string `json:"unreachableLocations,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. "AspectTypes") 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. "AspectTypes") 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 *GoogleCloudDataplexV1ListAspectTypesResponse) MarshalJSON() ([]byte, error) {
  4967  	type NoMethod GoogleCloudDataplexV1ListAspectTypesResponse
  4968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4969  }
  4970  
  4971  // GoogleCloudDataplexV1ListAssetsResponse: List assets response.
  4972  type GoogleCloudDataplexV1ListAssetsResponse struct {
  4973  	// Assets: Asset under the given parent zone.
  4974  	Assets []*GoogleCloudDataplexV1Asset `json:"assets,omitempty"`
  4975  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4976  	// are no more results in the list.
  4977  	NextPageToken string `json:"nextPageToken,omitempty"`
  4978  
  4979  	// ServerResponse contains the HTTP response code and headers from the server.
  4980  	googleapi.ServerResponse `json:"-"`
  4981  	// ForceSendFields is a list of field names (e.g. "Assets") to unconditionally
  4982  	// include in API requests. By default, fields with empty or default values are
  4983  	// omitted from API requests. See
  4984  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4985  	// details.
  4986  	ForceSendFields []string `json:"-"`
  4987  	// NullFields is a list of field names (e.g. "Assets") to include in API
  4988  	// requests with the JSON null value. By default, fields with empty values are
  4989  	// omitted from API requests. See
  4990  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4991  	NullFields []string `json:"-"`
  4992  }
  4993  
  4994  func (s *GoogleCloudDataplexV1ListAssetsResponse) MarshalJSON() ([]byte, error) {
  4995  	type NoMethod GoogleCloudDataplexV1ListAssetsResponse
  4996  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4997  }
  4998  
  4999  // GoogleCloudDataplexV1ListContentResponse: List content response.
  5000  type GoogleCloudDataplexV1ListContentResponse struct {
  5001  	// Content: Content under the given parent lake.
  5002  	Content []*GoogleCloudDataplexV1Content `json:"content,omitempty"`
  5003  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5004  	// are no more results in the list.
  5005  	NextPageToken string `json:"nextPageToken,omitempty"`
  5006  
  5007  	// ServerResponse contains the HTTP response code and headers from the server.
  5008  	googleapi.ServerResponse `json:"-"`
  5009  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5010  	// include in API requests. By default, fields with empty or default values are
  5011  	// omitted from API requests. See
  5012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5013  	// details.
  5014  	ForceSendFields []string `json:"-"`
  5015  	// NullFields is a list of field names (e.g. "Content") to include in API
  5016  	// requests with the JSON null value. By default, fields with empty values are
  5017  	// omitted from API requests. See
  5018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5019  	NullFields []string `json:"-"`
  5020  }
  5021  
  5022  func (s *GoogleCloudDataplexV1ListContentResponse) MarshalJSON() ([]byte, error) {
  5023  	type NoMethod GoogleCloudDataplexV1ListContentResponse
  5024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5025  }
  5026  
  5027  // GoogleCloudDataplexV1ListDataAttributeBindingsResponse: List
  5028  // DataAttributeBindings response.
  5029  type GoogleCloudDataplexV1ListDataAttributeBindingsResponse struct {
  5030  	// DataAttributeBindings: DataAttributeBindings under the given parent
  5031  	// Location.
  5032  	DataAttributeBindings []*GoogleCloudDataplexV1DataAttributeBinding `json:"dataAttributeBindings,omitempty"`
  5033  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5034  	// are no more results in the list.
  5035  	NextPageToken string `json:"nextPageToken,omitempty"`
  5036  	// UnreachableLocations: Locations that could not be reached.
  5037  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5038  
  5039  	// ServerResponse contains the HTTP response code and headers from the server.
  5040  	googleapi.ServerResponse `json:"-"`
  5041  	// ForceSendFields is a list of field names (e.g. "DataAttributeBindings") to
  5042  	// unconditionally include in API requests. By default, fields with empty or
  5043  	// default values are omitted from API requests. See
  5044  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5045  	// details.
  5046  	ForceSendFields []string `json:"-"`
  5047  	// NullFields is a list of field names (e.g. "DataAttributeBindings") to
  5048  	// include in API requests with the JSON null value. By default, fields with
  5049  	// empty values are omitted from API requests. See
  5050  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5051  	NullFields []string `json:"-"`
  5052  }
  5053  
  5054  func (s *GoogleCloudDataplexV1ListDataAttributeBindingsResponse) MarshalJSON() ([]byte, error) {
  5055  	type NoMethod GoogleCloudDataplexV1ListDataAttributeBindingsResponse
  5056  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5057  }
  5058  
  5059  // GoogleCloudDataplexV1ListDataAttributesResponse: List DataAttributes
  5060  // response.
  5061  type GoogleCloudDataplexV1ListDataAttributesResponse struct {
  5062  	// DataAttributes: DataAttributes under the given parent DataTaxonomy.
  5063  	DataAttributes []*GoogleCloudDataplexV1DataAttribute `json:"dataAttributes,omitempty"`
  5064  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5065  	// are no more results in the list.
  5066  	NextPageToken string `json:"nextPageToken,omitempty"`
  5067  	// UnreachableLocations: Locations that could not be reached.
  5068  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5069  
  5070  	// ServerResponse contains the HTTP response code and headers from the server.
  5071  	googleapi.ServerResponse `json:"-"`
  5072  	// ForceSendFields is a list of field names (e.g. "DataAttributes") to
  5073  	// unconditionally include in API requests. By default, fields with empty or
  5074  	// default values are omitted from API requests. See
  5075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5076  	// details.
  5077  	ForceSendFields []string `json:"-"`
  5078  	// NullFields is a list of field names (e.g. "DataAttributes") to include in
  5079  	// API requests with the JSON null value. By default, fields with empty values
  5080  	// are omitted from API requests. See
  5081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5082  	NullFields []string `json:"-"`
  5083  }
  5084  
  5085  func (s *GoogleCloudDataplexV1ListDataAttributesResponse) MarshalJSON() ([]byte, error) {
  5086  	type NoMethod GoogleCloudDataplexV1ListDataAttributesResponse
  5087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5088  }
  5089  
  5090  // GoogleCloudDataplexV1ListDataScanJobsResponse: List DataScanJobs response.
  5091  type GoogleCloudDataplexV1ListDataScanJobsResponse struct {
  5092  	// DataScanJobs: DataScanJobs (BASIC view only) under a given dataScan.
  5093  	DataScanJobs []*GoogleCloudDataplexV1DataScanJob `json:"dataScanJobs,omitempty"`
  5094  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5095  	// are no more results in the list.
  5096  	NextPageToken string `json:"nextPageToken,omitempty"`
  5097  
  5098  	// ServerResponse contains the HTTP response code and headers from the server.
  5099  	googleapi.ServerResponse `json:"-"`
  5100  	// ForceSendFields is a list of field names (e.g. "DataScanJobs") to
  5101  	// unconditionally include in API requests. By default, fields with empty or
  5102  	// default values are omitted from API requests. See
  5103  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5104  	// details.
  5105  	ForceSendFields []string `json:"-"`
  5106  	// NullFields is a list of field names (e.g. "DataScanJobs") to include in API
  5107  	// requests with the JSON null value. By default, fields with empty values are
  5108  	// omitted from API requests. See
  5109  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5110  	NullFields []string `json:"-"`
  5111  }
  5112  
  5113  func (s *GoogleCloudDataplexV1ListDataScanJobsResponse) MarshalJSON() ([]byte, error) {
  5114  	type NoMethod GoogleCloudDataplexV1ListDataScanJobsResponse
  5115  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5116  }
  5117  
  5118  // GoogleCloudDataplexV1ListDataScansResponse: List dataScans response.
  5119  type GoogleCloudDataplexV1ListDataScansResponse struct {
  5120  	// DataScans: DataScans (BASIC view only) under the given parent location.
  5121  	DataScans []*GoogleCloudDataplexV1DataScan `json:"dataScans,omitempty"`
  5122  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5123  	// are no more results in the list.
  5124  	NextPageToken string `json:"nextPageToken,omitempty"`
  5125  	// Unreachable: Locations that could not be reached.
  5126  	Unreachable []string `json:"unreachable,omitempty"`
  5127  
  5128  	// ServerResponse contains the HTTP response code and headers from the server.
  5129  	googleapi.ServerResponse `json:"-"`
  5130  	// ForceSendFields is a list of field names (e.g. "DataScans") to
  5131  	// unconditionally include in API requests. By default, fields with empty or
  5132  	// default values are omitted from API requests. See
  5133  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5134  	// details.
  5135  	ForceSendFields []string `json:"-"`
  5136  	// NullFields is a list of field names (e.g. "DataScans") to include in API
  5137  	// requests with the JSON null value. By default, fields with empty values are
  5138  	// omitted from API requests. See
  5139  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5140  	NullFields []string `json:"-"`
  5141  }
  5142  
  5143  func (s *GoogleCloudDataplexV1ListDataScansResponse) MarshalJSON() ([]byte, error) {
  5144  	type NoMethod GoogleCloudDataplexV1ListDataScansResponse
  5145  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5146  }
  5147  
  5148  // GoogleCloudDataplexV1ListDataTaxonomiesResponse: List DataTaxonomies
  5149  // response.
  5150  type GoogleCloudDataplexV1ListDataTaxonomiesResponse struct {
  5151  	// DataTaxonomies: DataTaxonomies under the given parent location.
  5152  	DataTaxonomies []*GoogleCloudDataplexV1DataTaxonomy `json:"dataTaxonomies,omitempty"`
  5153  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5154  	// are no more results in the list.
  5155  	NextPageToken string `json:"nextPageToken,omitempty"`
  5156  	// UnreachableLocations: Locations that could not be reached.
  5157  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5158  
  5159  	// ServerResponse contains the HTTP response code and headers from the server.
  5160  	googleapi.ServerResponse `json:"-"`
  5161  	// ForceSendFields is a list of field names (e.g. "DataTaxonomies") to
  5162  	// unconditionally include in API requests. By default, fields with empty or
  5163  	// default values are omitted from API requests. See
  5164  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5165  	// details.
  5166  	ForceSendFields []string `json:"-"`
  5167  	// NullFields is a list of field names (e.g. "DataTaxonomies") to include in
  5168  	// API requests with the JSON null value. By default, fields with empty values
  5169  	// are omitted from API requests. See
  5170  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5171  	NullFields []string `json:"-"`
  5172  }
  5173  
  5174  func (s *GoogleCloudDataplexV1ListDataTaxonomiesResponse) MarshalJSON() ([]byte, error) {
  5175  	type NoMethod GoogleCloudDataplexV1ListDataTaxonomiesResponse
  5176  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5177  }
  5178  
  5179  // GoogleCloudDataplexV1ListEntitiesResponse: List metadata entities response.
  5180  type GoogleCloudDataplexV1ListEntitiesResponse struct {
  5181  	// Entities: Entities in the specified parent zone.
  5182  	Entities []*GoogleCloudDataplexV1Entity `json:"entities,omitempty"`
  5183  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5184  	// are no remaining results in the list.
  5185  	NextPageToken string `json:"nextPageToken,omitempty"`
  5186  
  5187  	// ServerResponse contains the HTTP response code and headers from the server.
  5188  	googleapi.ServerResponse `json:"-"`
  5189  	// ForceSendFields is a list of field names (e.g. "Entities") to
  5190  	// unconditionally include in API requests. By default, fields with empty or
  5191  	// default values are omitted from API requests. See
  5192  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5193  	// details.
  5194  	ForceSendFields []string `json:"-"`
  5195  	// NullFields is a list of field names (e.g. "Entities") to include in API
  5196  	// requests with the JSON null value. By default, fields with empty values are
  5197  	// omitted from API requests. See
  5198  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5199  	NullFields []string `json:"-"`
  5200  }
  5201  
  5202  func (s *GoogleCloudDataplexV1ListEntitiesResponse) MarshalJSON() ([]byte, error) {
  5203  	type NoMethod GoogleCloudDataplexV1ListEntitiesResponse
  5204  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5205  }
  5206  
  5207  type GoogleCloudDataplexV1ListEntriesResponse struct {
  5208  	// Entries: The list of entries.
  5209  	Entries []*GoogleCloudDataplexV1Entry `json:"entries,omitempty"`
  5210  	// NextPageToken: Pagination token.
  5211  	NextPageToken string `json:"nextPageToken,omitempty"`
  5212  
  5213  	// ServerResponse contains the HTTP response code and headers from the server.
  5214  	googleapi.ServerResponse `json:"-"`
  5215  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  5216  	// include in API requests. By default, fields with empty or default values are
  5217  	// omitted from API requests. See
  5218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5219  	// details.
  5220  	ForceSendFields []string `json:"-"`
  5221  	// NullFields is a list of field names (e.g. "Entries") to include in API
  5222  	// requests with the JSON null value. By default, fields with empty values are
  5223  	// omitted from API requests. See
  5224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5225  	NullFields []string `json:"-"`
  5226  }
  5227  
  5228  func (s *GoogleCloudDataplexV1ListEntriesResponse) MarshalJSON() ([]byte, error) {
  5229  	type NoMethod GoogleCloudDataplexV1ListEntriesResponse
  5230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5231  }
  5232  
  5233  // GoogleCloudDataplexV1ListEntryGroupsResponse: List ListEntryGroups response.
  5234  type GoogleCloudDataplexV1ListEntryGroupsResponse struct {
  5235  	// EntryGroups: ListEntryGroups under the given parent location.
  5236  	EntryGroups []*GoogleCloudDataplexV1EntryGroup `json:"entryGroups,omitempty"`
  5237  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5238  	// are no more results in the list.
  5239  	NextPageToken string `json:"nextPageToken,omitempty"`
  5240  	// UnreachableLocations: Locations that could not be reached.
  5241  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5242  
  5243  	// ServerResponse contains the HTTP response code and headers from the server.
  5244  	googleapi.ServerResponse `json:"-"`
  5245  	// ForceSendFields is a list of field names (e.g. "EntryGroups") 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. "EntryGroups") to include in API
  5252  	// requests with the JSON null value. By default, fields with empty values are
  5253  	// 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 *GoogleCloudDataplexV1ListEntryGroupsResponse) MarshalJSON() ([]byte, error) {
  5259  	type NoMethod GoogleCloudDataplexV1ListEntryGroupsResponse
  5260  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5261  }
  5262  
  5263  // GoogleCloudDataplexV1ListEntryTypesResponse: List EntryTypes response
  5264  type GoogleCloudDataplexV1ListEntryTypesResponse struct {
  5265  	// EntryTypes: ListEntryTypes under the given parent location.
  5266  	EntryTypes []*GoogleCloudDataplexV1EntryType `json:"entryTypes,omitempty"`
  5267  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5268  	// are no more results in the list.
  5269  	NextPageToken string `json:"nextPageToken,omitempty"`
  5270  	// UnreachableLocations: Locations that could not be reached.
  5271  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5272  
  5273  	// ServerResponse contains the HTTP response code and headers from the server.
  5274  	googleapi.ServerResponse `json:"-"`
  5275  	// ForceSendFields is a list of field names (e.g. "EntryTypes") to
  5276  	// unconditionally include in API requests. By default, fields with empty or
  5277  	// default values are omitted from API requests. See
  5278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5279  	// details.
  5280  	ForceSendFields []string `json:"-"`
  5281  	// NullFields is a list of field names (e.g. "EntryTypes") to include in API
  5282  	// requests with the JSON null value. By default, fields with empty values are
  5283  	// omitted from API requests. See
  5284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5285  	NullFields []string `json:"-"`
  5286  }
  5287  
  5288  func (s *GoogleCloudDataplexV1ListEntryTypesResponse) MarshalJSON() ([]byte, error) {
  5289  	type NoMethod GoogleCloudDataplexV1ListEntryTypesResponse
  5290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5291  }
  5292  
  5293  // GoogleCloudDataplexV1ListEnvironmentsResponse: List environments response.
  5294  type GoogleCloudDataplexV1ListEnvironmentsResponse struct {
  5295  	// Environments: Environments under the given parent lake.
  5296  	Environments []*GoogleCloudDataplexV1Environment `json:"environments,omitempty"`
  5297  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5298  	// are no more results in the list.
  5299  	NextPageToken string `json:"nextPageToken,omitempty"`
  5300  
  5301  	// ServerResponse contains the HTTP response code and headers from the server.
  5302  	googleapi.ServerResponse `json:"-"`
  5303  	// ForceSendFields is a list of field names (e.g. "Environments") to
  5304  	// unconditionally include in API requests. By default, fields with empty or
  5305  	// default values are omitted from API requests. See
  5306  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5307  	// details.
  5308  	ForceSendFields []string `json:"-"`
  5309  	// NullFields is a list of field names (e.g. "Environments") to include in API
  5310  	// requests with the JSON null value. By default, fields with empty values are
  5311  	// omitted from API requests. See
  5312  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5313  	NullFields []string `json:"-"`
  5314  }
  5315  
  5316  func (s *GoogleCloudDataplexV1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
  5317  	type NoMethod GoogleCloudDataplexV1ListEnvironmentsResponse
  5318  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5319  }
  5320  
  5321  // GoogleCloudDataplexV1ListJobsResponse: List jobs response.
  5322  type GoogleCloudDataplexV1ListJobsResponse struct {
  5323  	// Jobs: Jobs under a given task.
  5324  	Jobs []*GoogleCloudDataplexV1Job `json:"jobs,omitempty"`
  5325  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5326  	// are no more results in the list.
  5327  	NextPageToken string `json:"nextPageToken,omitempty"`
  5328  
  5329  	// ServerResponse contains the HTTP response code and headers from the server.
  5330  	googleapi.ServerResponse `json:"-"`
  5331  	// ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally
  5332  	// include in API requests. By default, fields with empty or default values are
  5333  	// omitted from API requests. See
  5334  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5335  	// details.
  5336  	ForceSendFields []string `json:"-"`
  5337  	// NullFields is a list of field names (e.g. "Jobs") to include in API requests
  5338  	// with the JSON null value. By default, fields with empty values are omitted
  5339  	// from API requests. See
  5340  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5341  	NullFields []string `json:"-"`
  5342  }
  5343  
  5344  func (s *GoogleCloudDataplexV1ListJobsResponse) MarshalJSON() ([]byte, error) {
  5345  	type NoMethod GoogleCloudDataplexV1ListJobsResponse
  5346  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5347  }
  5348  
  5349  // GoogleCloudDataplexV1ListLakesResponse: List lakes response.
  5350  type GoogleCloudDataplexV1ListLakesResponse struct {
  5351  	// Lakes: Lakes under the given parent location.
  5352  	Lakes []*GoogleCloudDataplexV1Lake `json:"lakes,omitempty"`
  5353  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5354  	// are no more results in the list.
  5355  	NextPageToken string `json:"nextPageToken,omitempty"`
  5356  	// UnreachableLocations: Locations that could not be reached.
  5357  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5358  
  5359  	// ServerResponse contains the HTTP response code and headers from the server.
  5360  	googleapi.ServerResponse `json:"-"`
  5361  	// ForceSendFields is a list of field names (e.g. "Lakes") to unconditionally
  5362  	// include in API requests. By default, fields with empty or default values are
  5363  	// omitted from API requests. See
  5364  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5365  	// details.
  5366  	ForceSendFields []string `json:"-"`
  5367  	// NullFields is a list of field names (e.g. "Lakes") to include in API
  5368  	// requests with the JSON null value. By default, fields with empty values are
  5369  	// omitted from API requests. See
  5370  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5371  	NullFields []string `json:"-"`
  5372  }
  5373  
  5374  func (s *GoogleCloudDataplexV1ListLakesResponse) MarshalJSON() ([]byte, error) {
  5375  	type NoMethod GoogleCloudDataplexV1ListLakesResponse
  5376  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5377  }
  5378  
  5379  // GoogleCloudDataplexV1ListPartitionsResponse: List metadata partitions
  5380  // response.
  5381  type GoogleCloudDataplexV1ListPartitionsResponse struct {
  5382  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5383  	// are no remaining results in the list.
  5384  	NextPageToken string `json:"nextPageToken,omitempty"`
  5385  	// Partitions: Partitions under the specified parent entity.
  5386  	Partitions []*GoogleCloudDataplexV1Partition `json:"partitions,omitempty"`
  5387  
  5388  	// ServerResponse contains the HTTP response code and headers from the server.
  5389  	googleapi.ServerResponse `json:"-"`
  5390  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5391  	// unconditionally include in API requests. By default, fields with empty or
  5392  	// default values are omitted from API requests. See
  5393  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5394  	// details.
  5395  	ForceSendFields []string `json:"-"`
  5396  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5397  	// requests with the JSON null value. By default, fields with empty values are
  5398  	// omitted from API requests. See
  5399  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5400  	NullFields []string `json:"-"`
  5401  }
  5402  
  5403  func (s *GoogleCloudDataplexV1ListPartitionsResponse) MarshalJSON() ([]byte, error) {
  5404  	type NoMethod GoogleCloudDataplexV1ListPartitionsResponse
  5405  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5406  }
  5407  
  5408  // GoogleCloudDataplexV1ListSessionsResponse: List sessions response.
  5409  type GoogleCloudDataplexV1ListSessionsResponse struct {
  5410  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5411  	// are no more results in the list.
  5412  	NextPageToken string `json:"nextPageToken,omitempty"`
  5413  	// Sessions: Sessions under a given environment.
  5414  	Sessions []*GoogleCloudDataplexV1Session `json:"sessions,omitempty"`
  5415  
  5416  	// ServerResponse contains the HTTP response code and headers from the server.
  5417  	googleapi.ServerResponse `json:"-"`
  5418  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5419  	// unconditionally include in API requests. By default, fields with empty or
  5420  	// default values are omitted from API requests. See
  5421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5422  	// details.
  5423  	ForceSendFields []string `json:"-"`
  5424  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5425  	// requests with the JSON null value. By default, fields with empty values are
  5426  	// omitted from API requests. See
  5427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5428  	NullFields []string `json:"-"`
  5429  }
  5430  
  5431  func (s *GoogleCloudDataplexV1ListSessionsResponse) MarshalJSON() ([]byte, error) {
  5432  	type NoMethod GoogleCloudDataplexV1ListSessionsResponse
  5433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5434  }
  5435  
  5436  // GoogleCloudDataplexV1ListTasksResponse: List tasks response.
  5437  type GoogleCloudDataplexV1ListTasksResponse struct {
  5438  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5439  	// are no more results in the list.
  5440  	NextPageToken string `json:"nextPageToken,omitempty"`
  5441  	// Tasks: Tasks under the given parent lake.
  5442  	Tasks []*GoogleCloudDataplexV1Task `json:"tasks,omitempty"`
  5443  	// UnreachableLocations: Locations that could not be reached.
  5444  	UnreachableLocations []string `json:"unreachableLocations,omitempty"`
  5445  
  5446  	// ServerResponse contains the HTTP response code and headers from the server.
  5447  	googleapi.ServerResponse `json:"-"`
  5448  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5449  	// unconditionally include in API requests. By default, fields with empty or
  5450  	// default values are omitted from API requests. See
  5451  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5452  	// details.
  5453  	ForceSendFields []string `json:"-"`
  5454  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5455  	// requests with the JSON null value. By default, fields with empty values are
  5456  	// omitted from API requests. See
  5457  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5458  	NullFields []string `json:"-"`
  5459  }
  5460  
  5461  func (s *GoogleCloudDataplexV1ListTasksResponse) MarshalJSON() ([]byte, error) {
  5462  	type NoMethod GoogleCloudDataplexV1ListTasksResponse
  5463  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5464  }
  5465  
  5466  // GoogleCloudDataplexV1ListZonesResponse: List zones response.
  5467  type GoogleCloudDataplexV1ListZonesResponse struct {
  5468  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5469  	// are no more results in the list.
  5470  	NextPageToken string `json:"nextPageToken,omitempty"`
  5471  	// Zones: Zones under the given parent lake.
  5472  	Zones []*GoogleCloudDataplexV1Zone `json:"zones,omitempty"`
  5473  
  5474  	// ServerResponse contains the HTTP response code and headers from the server.
  5475  	googleapi.ServerResponse `json:"-"`
  5476  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5477  	// unconditionally include in API requests. By default, fields with empty or
  5478  	// default values are omitted from API requests. See
  5479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5480  	// details.
  5481  	ForceSendFields []string `json:"-"`
  5482  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5483  	// requests with the JSON null value. By default, fields with empty values are
  5484  	// omitted from API requests. See
  5485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5486  	NullFields []string `json:"-"`
  5487  }
  5488  
  5489  func (s *GoogleCloudDataplexV1ListZonesResponse) MarshalJSON() ([]byte, error) {
  5490  	type NoMethod GoogleCloudDataplexV1ListZonesResponse
  5491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5492  }
  5493  
  5494  // GoogleCloudDataplexV1OperationMetadata: Represents the metadata of a
  5495  // long-running operation.
  5496  type GoogleCloudDataplexV1OperationMetadata struct {
  5497  	// ApiVersion: Output only. API version used to start the operation.
  5498  	ApiVersion string `json:"apiVersion,omitempty"`
  5499  	// CreateTime: Output only. The time the operation was created.
  5500  	CreateTime string `json:"createTime,omitempty"`
  5501  	// EndTime: Output only. The time the operation finished running.
  5502  	EndTime string `json:"endTime,omitempty"`
  5503  	// RequestedCancellation: Output only. Identifies whether the user has
  5504  	// requested cancellation of the operation. Operations that have successfully
  5505  	// been cancelled have Operation.error value with a google.rpc.Status.code of
  5506  	// 1, corresponding to Code.CANCELLED.
  5507  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  5508  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  5509  	StatusMessage string `json:"statusMessage,omitempty"`
  5510  	// Target: Output only. Server-defined resource path for the target of the
  5511  	// operation.
  5512  	Target string `json:"target,omitempty"`
  5513  	// Verb: Output only. Name of the verb executed by the operation.
  5514  	Verb string `json:"verb,omitempty"`
  5515  	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
  5516  	// unconditionally include in API requests. By default, fields with empty or
  5517  	// default values are 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. "ApiVersion") to include in API
  5522  	// requests with the JSON null value. By default, fields with empty values are
  5523  	// omitted 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 *GoogleCloudDataplexV1OperationMetadata) MarshalJSON() ([]byte, error) {
  5529  	type NoMethod GoogleCloudDataplexV1OperationMetadata
  5530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5531  }
  5532  
  5533  // GoogleCloudDataplexV1Partition: Represents partition metadata contained
  5534  // within entity instances.
  5535  type GoogleCloudDataplexV1Partition struct {
  5536  	// Etag: Optional. The etag for this partition.
  5537  	Etag string `json:"etag,omitempty"`
  5538  	// Location: Required. Immutable. The location of the entity data within the
  5539  	// partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2.
  5540  	// Or projects//datasets//tables/
  5541  	Location string `json:"location,omitempty"`
  5542  	// Name: Output only. Partition values used in the HTTP URL must be double
  5543  	// encoded. For example, url_encode(url_encode(value)) can be used to encode
  5544  	// "US:CA/CA#Sunnyvale so that the request URL ends with
  5545  	// "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response
  5546  	// retains the encoded format.
  5547  	Name string `json:"name,omitempty"`
  5548  	// Values: Required. Immutable. The set of values representing the partition,
  5549  	// which correspond to the partition schema defined in the parent entity.
  5550  	Values []string `json:"values,omitempty"`
  5551  
  5552  	// ServerResponse contains the HTTP response code and headers from the server.
  5553  	googleapi.ServerResponse `json:"-"`
  5554  	// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally
  5555  	// include in API requests. By default, fields with empty or default values are
  5556  	// omitted from API requests. See
  5557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5558  	// details.
  5559  	ForceSendFields []string `json:"-"`
  5560  	// NullFields is a list of field names (e.g. "Etag") to include in API requests
  5561  	// with the JSON null value. By default, fields with empty values are omitted
  5562  	// from API requests. See
  5563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5564  	NullFields []string `json:"-"`
  5565  }
  5566  
  5567  func (s *GoogleCloudDataplexV1Partition) MarshalJSON() ([]byte, error) {
  5568  	type NoMethod GoogleCloudDataplexV1Partition
  5569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5570  }
  5571  
  5572  // GoogleCloudDataplexV1ResourceAccessSpec: ResourceAccessSpec holds the access
  5573  // control configuration to be enforced on the resources, for example, Cloud
  5574  // Storage bucket, BigQuery dataset, BigQuery table.
  5575  type GoogleCloudDataplexV1ResourceAccessSpec struct {
  5576  	// Owners: Optional. The set of principals to be granted owner role on the
  5577  	// resource.
  5578  	Owners []string `json:"owners,omitempty"`
  5579  	// Readers: Optional. The format of strings follows the pattern followed by IAM
  5580  	// in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set
  5581  	// of principals to be granted reader role on the resource.
  5582  	Readers []string `json:"readers,omitempty"`
  5583  	// Writers: Optional. The set of principals to be granted writer role on the
  5584  	// resource.
  5585  	Writers []string `json:"writers,omitempty"`
  5586  	// ForceSendFields is a list of field names (e.g. "Owners") to unconditionally
  5587  	// include in API requests. By default, fields with empty or default values are
  5588  	// omitted from API requests. See
  5589  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5590  	// details.
  5591  	ForceSendFields []string `json:"-"`
  5592  	// NullFields is a list of field names (e.g. "Owners") to include in API
  5593  	// requests with the JSON null value. By default, fields with empty values are
  5594  	// omitted from API requests. See
  5595  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5596  	NullFields []string `json:"-"`
  5597  }
  5598  
  5599  func (s *GoogleCloudDataplexV1ResourceAccessSpec) MarshalJSON() ([]byte, error) {
  5600  	type NoMethod GoogleCloudDataplexV1ResourceAccessSpec
  5601  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5602  }
  5603  
  5604  // GoogleCloudDataplexV1RunDataScanRequest: Run DataScan Request
  5605  type GoogleCloudDataplexV1RunDataScanRequest struct {
  5606  }
  5607  
  5608  // GoogleCloudDataplexV1RunDataScanResponse: Run DataScan Response.
  5609  type GoogleCloudDataplexV1RunDataScanResponse struct {
  5610  	// Job: DataScanJob created by RunDataScan request.
  5611  	Job *GoogleCloudDataplexV1DataScanJob `json:"job,omitempty"`
  5612  
  5613  	// ServerResponse contains the HTTP response code and headers from the server.
  5614  	googleapi.ServerResponse `json:"-"`
  5615  	// ForceSendFields is a list of field names (e.g. "Job") to unconditionally
  5616  	// include in API requests. By default, fields with empty or default values are
  5617  	// omitted from API requests. See
  5618  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5619  	// details.
  5620  	ForceSendFields []string `json:"-"`
  5621  	// NullFields is a list of field names (e.g. "Job") to include in API requests
  5622  	// with the JSON null value. By default, fields with empty values are omitted
  5623  	// from API requests. See
  5624  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5625  	NullFields []string `json:"-"`
  5626  }
  5627  
  5628  func (s *GoogleCloudDataplexV1RunDataScanResponse) MarshalJSON() ([]byte, error) {
  5629  	type NoMethod GoogleCloudDataplexV1RunDataScanResponse
  5630  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5631  }
  5632  
  5633  type GoogleCloudDataplexV1RunTaskRequest struct {
  5634  	// Args: Optional. Execution spec arguments. If the map is left empty, the task
  5635  	// will run with existing execution spec args from task definition. If the map
  5636  	// contains an entry with a new key, the same will be added to existing set of
  5637  	// args. If the map contains an entry with an existing arg key in task
  5638  	// definition, the task will run with new arg value for that entry. Clearing an
  5639  	// existing arg will require arg value to be explicitly set to a hyphen "-".
  5640  	// The arg value cannot be empty.
  5641  	Args map[string]string `json:"args,omitempty"`
  5642  	// Labels: Optional. User-defined labels for the task. If the map is left
  5643  	// empty, the task will run with existing labels from task definition. If the
  5644  	// map contains an entry with a new key, the same will be added to existing set
  5645  	// of labels. If the map contains an entry with an existing label key in task
  5646  	// definition, the task will run with new label value for that entry. Clearing
  5647  	// an existing label will require label value to be explicitly set to a hyphen
  5648  	// "-". The label value cannot be empty.
  5649  	Labels map[string]string `json:"labels,omitempty"`
  5650  	// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
  5651  	// include in API requests. By default, fields with empty or default values are
  5652  	// omitted from API requests. See
  5653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5654  	// details.
  5655  	ForceSendFields []string `json:"-"`
  5656  	// NullFields is a list of field names (e.g. "Args") to include in API requests
  5657  	// with the JSON null value. By default, fields with empty values are omitted
  5658  	// from API requests. See
  5659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5660  	NullFields []string `json:"-"`
  5661  }
  5662  
  5663  func (s *GoogleCloudDataplexV1RunTaskRequest) MarshalJSON() ([]byte, error) {
  5664  	type NoMethod GoogleCloudDataplexV1RunTaskRequest
  5665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5666  }
  5667  
  5668  type GoogleCloudDataplexV1RunTaskResponse struct {
  5669  	// Job: Jobs created by RunTask API.
  5670  	Job *GoogleCloudDataplexV1Job `json:"job,omitempty"`
  5671  
  5672  	// ServerResponse contains the HTTP response code and headers from the server.
  5673  	googleapi.ServerResponse `json:"-"`
  5674  	// ForceSendFields is a list of field names (e.g. "Job") to unconditionally
  5675  	// include in API requests. By default, fields with empty or default values are
  5676  	// omitted from API requests. See
  5677  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5678  	// details.
  5679  	ForceSendFields []string `json:"-"`
  5680  	// NullFields is a list of field names (e.g. "Job") to include in API requests
  5681  	// with the JSON null value. By default, fields with empty values are omitted
  5682  	// from API requests. See
  5683  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5684  	NullFields []string `json:"-"`
  5685  }
  5686  
  5687  func (s *GoogleCloudDataplexV1RunTaskResponse) MarshalJSON() ([]byte, error) {
  5688  	type NoMethod GoogleCloudDataplexV1RunTaskResponse
  5689  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5690  }
  5691  
  5692  // GoogleCloudDataplexV1ScannedData: The data scanned during processing (e.g.
  5693  // in incremental DataScan)
  5694  type GoogleCloudDataplexV1ScannedData struct {
  5695  	// IncrementalField: The range denoted by values of an incremental field
  5696  	IncrementalField *GoogleCloudDataplexV1ScannedDataIncrementalField `json:"incrementalField,omitempty"`
  5697  	// ForceSendFields is a list of field names (e.g. "IncrementalField") to
  5698  	// unconditionally include in API requests. By default, fields with empty or
  5699  	// default values are omitted from API requests. See
  5700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5701  	// details.
  5702  	ForceSendFields []string `json:"-"`
  5703  	// NullFields is a list of field names (e.g. "IncrementalField") to include in
  5704  	// API requests with the JSON null value. By default, fields with empty values
  5705  	// are omitted from API requests. See
  5706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5707  	NullFields []string `json:"-"`
  5708  }
  5709  
  5710  func (s *GoogleCloudDataplexV1ScannedData) MarshalJSON() ([]byte, error) {
  5711  	type NoMethod GoogleCloudDataplexV1ScannedData
  5712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5713  }
  5714  
  5715  // GoogleCloudDataplexV1ScannedDataIncrementalField: A data range denoted by a
  5716  // pair of start/end values of a field.
  5717  type GoogleCloudDataplexV1ScannedDataIncrementalField struct {
  5718  	// End: Value that marks the end of the range.
  5719  	End string `json:"end,omitempty"`
  5720  	// Field: The field that contains values which monotonically increases over
  5721  	// time (e.g. a timestamp column).
  5722  	Field string `json:"field,omitempty"`
  5723  	// Start: Value that marks the start of the range.
  5724  	Start string `json:"start,omitempty"`
  5725  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  5726  	// include in API requests. By default, fields with empty or default values are
  5727  	// omitted from API requests. See
  5728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5729  	// details.
  5730  	ForceSendFields []string `json:"-"`
  5731  	// NullFields is a list of field names (e.g. "End") to include in API requests
  5732  	// with the JSON null value. By default, fields with empty values are omitted
  5733  	// from API requests. See
  5734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5735  	NullFields []string `json:"-"`
  5736  }
  5737  
  5738  func (s *GoogleCloudDataplexV1ScannedDataIncrementalField) MarshalJSON() ([]byte, error) {
  5739  	type NoMethod GoogleCloudDataplexV1ScannedDataIncrementalField
  5740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5741  }
  5742  
  5743  // GoogleCloudDataplexV1Schema: Schema information describing the structure and
  5744  // layout of the data.
  5745  type GoogleCloudDataplexV1Schema struct {
  5746  	// Fields: Optional. The sequence of fields describing data in table entities.
  5747  	// Note: BigQuery SchemaFields are immutable.
  5748  	Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"`
  5749  	// PartitionFields: Optional. The sequence of fields describing the partition
  5750  	// structure in entities. If this field is empty, there are no partitions
  5751  	// within the data.
  5752  	PartitionFields []*GoogleCloudDataplexV1SchemaPartitionField `json:"partitionFields,omitempty"`
  5753  	// PartitionStyle: Optional. The structure of paths containing partition data
  5754  	// within the entity.
  5755  	//
  5756  	// Possible values:
  5757  	//   "PARTITION_STYLE_UNSPECIFIED" - PartitionStyle unspecified
  5758  	//   "HIVE_COMPATIBLE" - Partitions are hive-compatible. Examples:
  5759  	// gs://bucket/path/to/table/dt=2019-10-31/lang=en,
  5760  	// gs://bucket/path/to/table/dt=2019-10-31/lang=en/late.
  5761  	PartitionStyle string `json:"partitionStyle,omitempty"`
  5762  	// UserManaged: Required. Set to true if user-managed or false if managed by
  5763  	// Dataplex. The default is false (managed by Dataplex). Set to falseto enable
  5764  	// Dataplex discovery to update the schema. including new data discovery,
  5765  	// schema inference, and schema evolution. Users retain the ability to input
  5766  	// and edit the schema. Dataplex treats schema input by the user as though
  5767  	// produced by a previous Dataplex discovery operation, and it will evolve the
  5768  	// schema and take action based on that treatment. Set to true to fully manage
  5769  	// the entity schema. This setting guarantees that Dataplex will not change
  5770  	// schema fields.
  5771  	UserManaged bool `json:"userManaged,omitempty"`
  5772  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  5773  	// include in API requests. By default, fields with empty or default values are
  5774  	// omitted from API requests. See
  5775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5776  	// details.
  5777  	ForceSendFields []string `json:"-"`
  5778  	// NullFields is a list of field names (e.g. "Fields") to include in API
  5779  	// requests with the JSON null value. By default, fields with empty values are
  5780  	// omitted from API requests. See
  5781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5782  	NullFields []string `json:"-"`
  5783  }
  5784  
  5785  func (s *GoogleCloudDataplexV1Schema) MarshalJSON() ([]byte, error) {
  5786  	type NoMethod GoogleCloudDataplexV1Schema
  5787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5788  }
  5789  
  5790  // GoogleCloudDataplexV1SchemaPartitionField: Represents a key field within the
  5791  // entity's partition structure. You could have up to 20 partition fields, but
  5792  // only the first 10 partitions have the filtering ability due to performance
  5793  // consideration. Note: Partition fields are immutable.
  5794  type GoogleCloudDataplexV1SchemaPartitionField struct {
  5795  	// Name: Required. Partition field name must consist of letters, numbers, and
  5796  	// underscores only, with a maximum of length of 256 characters, and must begin
  5797  	// with a letter or underscore..
  5798  	Name string `json:"name,omitempty"`
  5799  	// Type: Required. Immutable. The type of field.
  5800  	//
  5801  	// Possible values:
  5802  	//   "TYPE_UNSPECIFIED" - SchemaType unspecified.
  5803  	//   "BOOLEAN" - Boolean field.
  5804  	//   "BYTE" - Single byte numeric field.
  5805  	//   "INT16" - 16-bit numeric field.
  5806  	//   "INT32" - 32-bit numeric field.
  5807  	//   "INT64" - 64-bit numeric field.
  5808  	//   "FLOAT" - Floating point numeric field.
  5809  	//   "DOUBLE" - Double precision numeric field.
  5810  	//   "DECIMAL" - Real value numeric field.
  5811  	//   "STRING" - Sequence of characters field.
  5812  	//   "BINARY" - Sequence of bytes field.
  5813  	//   "TIMESTAMP" - Date and time field.
  5814  	//   "DATE" - Date field.
  5815  	//   "TIME" - Time field.
  5816  	//   "RECORD" - Structured field. Nested fields that define the structure of
  5817  	// the map. If all nested fields are nullable, this field represents a union.
  5818  	//   "NULL" - Null field that does not have values.
  5819  	Type string `json:"type,omitempty"`
  5820  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  5821  	// include in API requests. By default, fields with empty or default values are
  5822  	// omitted from API requests. See
  5823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5824  	// details.
  5825  	ForceSendFields []string `json:"-"`
  5826  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  5827  	// with the JSON null value. By default, fields with empty values are omitted
  5828  	// from API requests. See
  5829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5830  	NullFields []string `json:"-"`
  5831  }
  5832  
  5833  func (s *GoogleCloudDataplexV1SchemaPartitionField) MarshalJSON() ([]byte, error) {
  5834  	type NoMethod GoogleCloudDataplexV1SchemaPartitionField
  5835  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5836  }
  5837  
  5838  // GoogleCloudDataplexV1SchemaSchemaField: Represents a column field within a
  5839  // table schema.
  5840  type GoogleCloudDataplexV1SchemaSchemaField struct {
  5841  	// Description: Optional. User friendly field description. Must be less than or
  5842  	// equal to 1024 characters.
  5843  	Description string `json:"description,omitempty"`
  5844  	// Fields: Optional. Any nested field for complex types.
  5845  	Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"`
  5846  	// Mode: Required. Additional field semantics.
  5847  	//
  5848  	// Possible values:
  5849  	//   "MODE_UNSPECIFIED" - Mode unspecified.
  5850  	//   "REQUIRED" - The field has required semantics.
  5851  	//   "NULLABLE" - The field has optional semantics, and may be null.
  5852  	//   "REPEATED" - The field has repeated (0 or more) semantics, and is a list
  5853  	// of values.
  5854  	Mode string `json:"mode,omitempty"`
  5855  	// Name: Required. The name of the field. Must contain only letters, numbers
  5856  	// and underscores, with a maximum length of 767 characters, and must begin
  5857  	// with a letter or underscore.
  5858  	Name string `json:"name,omitempty"`
  5859  	// Type: Required. The type of field.
  5860  	//
  5861  	// Possible values:
  5862  	//   "TYPE_UNSPECIFIED" - SchemaType unspecified.
  5863  	//   "BOOLEAN" - Boolean field.
  5864  	//   "BYTE" - Single byte numeric field.
  5865  	//   "INT16" - 16-bit numeric field.
  5866  	//   "INT32" - 32-bit numeric field.
  5867  	//   "INT64" - 64-bit numeric field.
  5868  	//   "FLOAT" - Floating point numeric field.
  5869  	//   "DOUBLE" - Double precision numeric field.
  5870  	//   "DECIMAL" - Real value numeric field.
  5871  	//   "STRING" - Sequence of characters field.
  5872  	//   "BINARY" - Sequence of bytes field.
  5873  	//   "TIMESTAMP" - Date and time field.
  5874  	//   "DATE" - Date field.
  5875  	//   "TIME" - Time field.
  5876  	//   "RECORD" - Structured field. Nested fields that define the structure of
  5877  	// the map. If all nested fields are nullable, this field represents a union.
  5878  	//   "NULL" - Null field that does not have values.
  5879  	Type string `json:"type,omitempty"`
  5880  	// ForceSendFields is a list of field names (e.g. "Description") to
  5881  	// unconditionally include in API requests. By default, fields with empty or
  5882  	// default values are omitted from API requests. See
  5883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5884  	// details.
  5885  	ForceSendFields []string `json:"-"`
  5886  	// NullFields is a list of field names (e.g. "Description") to include in API
  5887  	// requests with the JSON null value. By default, fields with empty values are
  5888  	// omitted from API requests. See
  5889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5890  	NullFields []string `json:"-"`
  5891  }
  5892  
  5893  func (s *GoogleCloudDataplexV1SchemaSchemaField) MarshalJSON() ([]byte, error) {
  5894  	type NoMethod GoogleCloudDataplexV1SchemaSchemaField
  5895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5896  }
  5897  
  5898  type GoogleCloudDataplexV1SearchEntriesResponse struct {
  5899  	// NextPageToken: Pagination token.
  5900  	NextPageToken string `json:"nextPageToken,omitempty"`
  5901  	// Results: The results matching the search query.
  5902  	Results []*GoogleCloudDataplexV1SearchEntriesResult `json:"results,omitempty"`
  5903  	// TotalSize: The estimated total number of matching entries. Not guaranteed to
  5904  	// be accurate.
  5905  	TotalSize int64 `json:"totalSize,omitempty"`
  5906  	// Unreachable: Unreachable locations. Search results don't include data from
  5907  	// those locations.
  5908  	Unreachable []string `json:"unreachable,omitempty"`
  5909  
  5910  	// ServerResponse contains the HTTP response code and headers from the server.
  5911  	googleapi.ServerResponse `json:"-"`
  5912  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5913  	// unconditionally include in API requests. By default, fields with empty or
  5914  	// default values are omitted from API requests. See
  5915  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5916  	// details.
  5917  	ForceSendFields []string `json:"-"`
  5918  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5919  	// requests with the JSON null value. By default, fields with empty values are
  5920  	// omitted from API requests. See
  5921  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5922  	NullFields []string `json:"-"`
  5923  }
  5924  
  5925  func (s *GoogleCloudDataplexV1SearchEntriesResponse) MarshalJSON() ([]byte, error) {
  5926  	type NoMethod GoogleCloudDataplexV1SearchEntriesResponse
  5927  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5928  }
  5929  
  5930  // GoogleCloudDataplexV1SearchEntriesResult: A single result of a SearchEntries
  5931  // request.
  5932  type GoogleCloudDataplexV1SearchEntriesResult struct {
  5933  	// DataplexEntry: Entry format of the result.
  5934  	DataplexEntry *GoogleCloudDataplexV1Entry `json:"dataplexEntry,omitempty"`
  5935  	// LinkedResource: Linked resource name.
  5936  	LinkedResource string `json:"linkedResource,omitempty"`
  5937  	// Snippets: Snippets.
  5938  	Snippets *GoogleCloudDataplexV1SearchEntriesResultSnippets `json:"snippets,omitempty"`
  5939  	// ForceSendFields is a list of field names (e.g. "DataplexEntry") to
  5940  	// unconditionally include in API requests. By default, fields with empty or
  5941  	// default values are omitted from API requests. See
  5942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5943  	// details.
  5944  	ForceSendFields []string `json:"-"`
  5945  	// NullFields is a list of field names (e.g. "DataplexEntry") to include in API
  5946  	// requests with the JSON null value. By default, fields with empty values are
  5947  	// omitted from API requests. See
  5948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5949  	NullFields []string `json:"-"`
  5950  }
  5951  
  5952  func (s *GoogleCloudDataplexV1SearchEntriesResult) MarshalJSON() ([]byte, error) {
  5953  	type NoMethod GoogleCloudDataplexV1SearchEntriesResult
  5954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5955  }
  5956  
  5957  // GoogleCloudDataplexV1SearchEntriesResultSnippets: Snippets for the entry,
  5958  // contains HTML-style highlighting for matched tokens, will be used in UI.
  5959  type GoogleCloudDataplexV1SearchEntriesResultSnippets struct {
  5960  	// DataplexEntry: Entry
  5961  	DataplexEntry *GoogleCloudDataplexV1Entry `json:"dataplexEntry,omitempty"`
  5962  	// ForceSendFields is a list of field names (e.g. "DataplexEntry") to
  5963  	// unconditionally include in API requests. By default, fields with empty or
  5964  	// default values are omitted from API requests. See
  5965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5966  	// details.
  5967  	ForceSendFields []string `json:"-"`
  5968  	// NullFields is a list of field names (e.g. "DataplexEntry") to include in API
  5969  	// requests with the JSON null value. By default, fields with empty values are
  5970  	// omitted from API requests. See
  5971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5972  	NullFields []string `json:"-"`
  5973  }
  5974  
  5975  func (s *GoogleCloudDataplexV1SearchEntriesResultSnippets) MarshalJSON() ([]byte, error) {
  5976  	type NoMethod GoogleCloudDataplexV1SearchEntriesResultSnippets
  5977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5978  }
  5979  
  5980  // GoogleCloudDataplexV1Session: Represents an active analyze session running
  5981  // for a user.
  5982  type GoogleCloudDataplexV1Session struct {
  5983  	// CreateTime: Output only. Session start time.
  5984  	CreateTime string `json:"createTime,omitempty"`
  5985  	// Name: Output only. The relative resource name of the content, of the form:
  5986  	// projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{en
  5987  	// vironment_id}/sessions/{session_id}
  5988  	Name string `json:"name,omitempty"`
  5989  	// State: Output only. State of Session
  5990  	//
  5991  	// Possible values:
  5992  	//   "STATE_UNSPECIFIED" - State is not specified.
  5993  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  5994  	//   "CREATING" - Resource is under creation.
  5995  	//   "DELETING" - Resource is under deletion.
  5996  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  5997  	State string `json:"state,omitempty"`
  5998  	// UserId: Output only. Email of user running the session.
  5999  	UserId string `json:"userId,omitempty"`
  6000  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6001  	// unconditionally include in API requests. By default, fields with empty or
  6002  	// default values are omitted from API requests. See
  6003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6004  	// details.
  6005  	ForceSendFields []string `json:"-"`
  6006  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6007  	// requests with the JSON null value. By default, fields with empty values are
  6008  	// omitted from API requests. See
  6009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6010  	NullFields []string `json:"-"`
  6011  }
  6012  
  6013  func (s *GoogleCloudDataplexV1Session) MarshalJSON() ([]byte, error) {
  6014  	type NoMethod GoogleCloudDataplexV1Session
  6015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6016  }
  6017  
  6018  // GoogleCloudDataplexV1SessionEvent: These messages contain information about
  6019  // sessions within an environment. The monitored resource is 'Environment'.
  6020  type GoogleCloudDataplexV1SessionEvent struct {
  6021  	// EventSucceeded: The status of the event.
  6022  	EventSucceeded bool `json:"eventSucceeded,omitempty"`
  6023  	// FastStartupEnabled: If the session is associated with an environment with
  6024  	// fast startup enabled, and was created before being assigned to a user.
  6025  	FastStartupEnabled bool `json:"fastStartupEnabled,omitempty"`
  6026  	// Message: The log message.
  6027  	Message string `json:"message,omitempty"`
  6028  	// Query: The execution details of the query.
  6029  	Query *GoogleCloudDataplexV1SessionEventQueryDetail `json:"query,omitempty"`
  6030  	// SessionId: Unique identifier for the session.
  6031  	SessionId string `json:"sessionId,omitempty"`
  6032  	// Type: The type of the event.
  6033  	//
  6034  	// Possible values:
  6035  	//   "EVENT_TYPE_UNSPECIFIED" - An unspecified event type.
  6036  	//   "START" - Event when the session is assigned to a user.
  6037  	//   "STOP" - Event for stop of a session.
  6038  	//   "QUERY" - Query events in the session.
  6039  	//   "CREATE" - Event for creation of a cluster. It is not yet assigned to a
  6040  	// user. This comes before START in the sequence
  6041  	Type string `json:"type,omitempty"`
  6042  	// UnassignedDuration: The idle duration of a warm pooled session before it is
  6043  	// assigned to user.
  6044  	UnassignedDuration string `json:"unassignedDuration,omitempty"`
  6045  	// UserId: The information about the user that created the session. It will be
  6046  	// the email address of the user.
  6047  	UserId string `json:"userId,omitempty"`
  6048  	// ForceSendFields is a list of field names (e.g. "EventSucceeded") to
  6049  	// unconditionally include in API requests. By default, fields with empty or
  6050  	// default values are omitted from API requests. See
  6051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6052  	// details.
  6053  	ForceSendFields []string `json:"-"`
  6054  	// NullFields is a list of field names (e.g. "EventSucceeded") to include in
  6055  	// API requests with the JSON null value. By default, fields with empty values
  6056  	// are omitted from API requests. See
  6057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6058  	NullFields []string `json:"-"`
  6059  }
  6060  
  6061  func (s *GoogleCloudDataplexV1SessionEvent) MarshalJSON() ([]byte, error) {
  6062  	type NoMethod GoogleCloudDataplexV1SessionEvent
  6063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6064  }
  6065  
  6066  // GoogleCloudDataplexV1SessionEventQueryDetail: Execution details of the
  6067  // query.
  6068  type GoogleCloudDataplexV1SessionEventQueryDetail struct {
  6069  	// DataProcessedBytes: The data processed by the query.
  6070  	DataProcessedBytes int64 `json:"dataProcessedBytes,omitempty,string"`
  6071  	// Duration: Time taken for execution of the query.
  6072  	Duration string `json:"duration,omitempty"`
  6073  	// Engine: Query Execution engine.
  6074  	//
  6075  	// Possible values:
  6076  	//   "ENGINE_UNSPECIFIED" - An unspecified Engine type.
  6077  	//   "SPARK_SQL" - Spark-sql engine is specified in Query.
  6078  	//   "BIGQUERY" - BigQuery engine is specified in Query.
  6079  	Engine string `json:"engine,omitempty"`
  6080  	// QueryId: The unique Query id identifying the query.
  6081  	QueryId string `json:"queryId,omitempty"`
  6082  	// QueryText: The query text executed.
  6083  	QueryText string `json:"queryText,omitempty"`
  6084  	// ResultSizeBytes: The size of results the query produced.
  6085  	ResultSizeBytes int64 `json:"resultSizeBytes,omitempty,string"`
  6086  	// ForceSendFields is a list of field names (e.g. "DataProcessedBytes") to
  6087  	// unconditionally include in API requests. By default, fields with empty or
  6088  	// default values are omitted from API requests. See
  6089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6090  	// details.
  6091  	ForceSendFields []string `json:"-"`
  6092  	// NullFields is a list of field names (e.g. "DataProcessedBytes") to include
  6093  	// in API requests with the JSON null value. By default, fields with empty
  6094  	// values are omitted from API requests. See
  6095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6096  	NullFields []string `json:"-"`
  6097  }
  6098  
  6099  func (s *GoogleCloudDataplexV1SessionEventQueryDetail) MarshalJSON() ([]byte, error) {
  6100  	type NoMethod GoogleCloudDataplexV1SessionEventQueryDetail
  6101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6102  }
  6103  
  6104  // GoogleCloudDataplexV1StorageAccess: Describes the access mechanism of the
  6105  // data within its storage location.
  6106  type GoogleCloudDataplexV1StorageAccess struct {
  6107  	// Read: Output only. Describes the read access mechanism of the data. Not user
  6108  	// settable.
  6109  	//
  6110  	// Possible values:
  6111  	//   "ACCESS_MODE_UNSPECIFIED" - Access mode unspecified.
  6112  	//   "DIRECT" - Default. Data is accessed directly using storage APIs.
  6113  	//   "MANAGED" - Data is accessed through a managed interface using BigQuery
  6114  	// APIs.
  6115  	Read string `json:"read,omitempty"`
  6116  	// ForceSendFields is a list of field names (e.g. "Read") to unconditionally
  6117  	// include in API requests. By default, fields with empty or default values are
  6118  	// omitted from API requests. See
  6119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6120  	// details.
  6121  	ForceSendFields []string `json:"-"`
  6122  	// NullFields is a list of field names (e.g. "Read") to include in API requests
  6123  	// with the JSON null value. By default, fields with empty values are omitted
  6124  	// from API requests. See
  6125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6126  	NullFields []string `json:"-"`
  6127  }
  6128  
  6129  func (s *GoogleCloudDataplexV1StorageAccess) MarshalJSON() ([]byte, error) {
  6130  	type NoMethod GoogleCloudDataplexV1StorageAccess
  6131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6132  }
  6133  
  6134  // GoogleCloudDataplexV1StorageFormat: Describes the format of the data within
  6135  // its storage location.
  6136  type GoogleCloudDataplexV1StorageFormat struct {
  6137  	// CompressionFormat: Optional. The compression type associated with the stored
  6138  	// data. If unspecified, the data is uncompressed.
  6139  	//
  6140  	// Possible values:
  6141  	//   "COMPRESSION_FORMAT_UNSPECIFIED" - CompressionFormat unspecified. Implies
  6142  	// uncompressed data.
  6143  	//   "GZIP" - GZip compressed set of files.
  6144  	//   "BZIP2" - BZip2 compressed set of files.
  6145  	CompressionFormat string `json:"compressionFormat,omitempty"`
  6146  	// Csv: Optional. Additional information about CSV formatted data.
  6147  	Csv *GoogleCloudDataplexV1StorageFormatCsvOptions `json:"csv,omitempty"`
  6148  	// Format: Output only. The data format associated with the stored data, which
  6149  	// represents content type values. The value is inferred from mime type.
  6150  	//
  6151  	// Possible values:
  6152  	//   "FORMAT_UNSPECIFIED" - Format unspecified.
  6153  	//   "PARQUET" - Parquet-formatted structured data.
  6154  	//   "AVRO" - Avro-formatted structured data.
  6155  	//   "ORC" - Orc-formatted structured data.
  6156  	//   "CSV" - Csv-formatted semi-structured data.
  6157  	//   "JSON" - Json-formatted semi-structured data.
  6158  	//   "IMAGE" - Image data formats (such as jpg and png).
  6159  	//   "AUDIO" - Audio data formats (such as mp3, and wav).
  6160  	//   "VIDEO" - Video data formats (such as mp4 and mpg).
  6161  	//   "TEXT" - Textual data formats (such as txt and xml).
  6162  	//   "TFRECORD" - TensorFlow record format.
  6163  	//   "OTHER" - Data that doesn't match a specific format.
  6164  	//   "UNKNOWN" - Data of an unknown format.
  6165  	Format string `json:"format,omitempty"`
  6166  	// Iceberg: Optional. Additional information about iceberg tables.
  6167  	Iceberg *GoogleCloudDataplexV1StorageFormatIcebergOptions `json:"iceberg,omitempty"`
  6168  	// Json: Optional. Additional information about CSV formatted data.
  6169  	Json *GoogleCloudDataplexV1StorageFormatJsonOptions `json:"json,omitempty"`
  6170  	// MimeType: Required. The mime type descriptor for the data. Must match the
  6171  	// pattern {type}/{subtype}. Supported values: application/x-parquet
  6172  	// application/x-avro application/x-orc application/x-tfrecord
  6173  	// application/x-parquet+iceberg application/x-avro+iceberg
  6174  	// application/x-orc+iceberg application/json application/{subtypes} text/csv
  6175  	// text/ image/{image subtype} video/{video subtype} audio/{audio subtype}
  6176  	MimeType string `json:"mimeType,omitempty"`
  6177  	// ForceSendFields is a list of field names (e.g. "CompressionFormat") to
  6178  	// unconditionally include in API requests. By default, fields with empty or
  6179  	// default values are omitted from API requests. See
  6180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6181  	// details.
  6182  	ForceSendFields []string `json:"-"`
  6183  	// NullFields is a list of field names (e.g. "CompressionFormat") to include in
  6184  	// API requests with the JSON null value. By default, fields with empty values
  6185  	// are omitted from API requests. See
  6186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6187  	NullFields []string `json:"-"`
  6188  }
  6189  
  6190  func (s *GoogleCloudDataplexV1StorageFormat) MarshalJSON() ([]byte, error) {
  6191  	type NoMethod GoogleCloudDataplexV1StorageFormat
  6192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6193  }
  6194  
  6195  // GoogleCloudDataplexV1StorageFormatCsvOptions: Describes CSV and similar
  6196  // semi-structured data formats.
  6197  type GoogleCloudDataplexV1StorageFormatCsvOptions struct {
  6198  	// Delimiter: Optional. The delimiter used to separate values. Defaults to ','.
  6199  	Delimiter string `json:"delimiter,omitempty"`
  6200  	// Encoding: Optional. The character encoding of the data. Accepts "US-ASCII",
  6201  	// "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
  6202  	Encoding string `json:"encoding,omitempty"`
  6203  	// HeaderRows: Optional. The number of rows to interpret as header rows that
  6204  	// should be skipped when reading data rows. Defaults to 0.
  6205  	HeaderRows int64 `json:"headerRows,omitempty"`
  6206  	// Quote: Optional. The character used to quote column values. Accepts '"'
  6207  	// (double quotation mark) or ''' (single quotation mark). Defaults to '"'
  6208  	// (double quotation mark) if unspecified.
  6209  	Quote string `json:"quote,omitempty"`
  6210  	// ForceSendFields is a list of field names (e.g. "Delimiter") to
  6211  	// unconditionally include in API requests. By default, fields with empty or
  6212  	// default values are omitted from API requests. See
  6213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6214  	// details.
  6215  	ForceSendFields []string `json:"-"`
  6216  	// NullFields is a list of field names (e.g. "Delimiter") to include in API
  6217  	// requests with the JSON null value. By default, fields with empty values are
  6218  	// omitted from API requests. See
  6219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6220  	NullFields []string `json:"-"`
  6221  }
  6222  
  6223  func (s *GoogleCloudDataplexV1StorageFormatCsvOptions) MarshalJSON() ([]byte, error) {
  6224  	type NoMethod GoogleCloudDataplexV1StorageFormatCsvOptions
  6225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6226  }
  6227  
  6228  // GoogleCloudDataplexV1StorageFormatIcebergOptions: Describes Iceberg data
  6229  // format.
  6230  type GoogleCloudDataplexV1StorageFormatIcebergOptions struct {
  6231  	// MetadataLocation: Optional. The location of where the iceberg metadata is
  6232  	// present, must be within the table path
  6233  	MetadataLocation string `json:"metadataLocation,omitempty"`
  6234  	// ForceSendFields is a list of field names (e.g. "MetadataLocation") to
  6235  	// unconditionally include in API requests. By default, fields with empty or
  6236  	// default values are omitted from API requests. See
  6237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6238  	// details.
  6239  	ForceSendFields []string `json:"-"`
  6240  	// NullFields is a list of field names (e.g. "MetadataLocation") to include in
  6241  	// API requests with the JSON null value. By default, fields with empty values
  6242  	// are omitted from API requests. See
  6243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6244  	NullFields []string `json:"-"`
  6245  }
  6246  
  6247  func (s *GoogleCloudDataplexV1StorageFormatIcebergOptions) MarshalJSON() ([]byte, error) {
  6248  	type NoMethod GoogleCloudDataplexV1StorageFormatIcebergOptions
  6249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6250  }
  6251  
  6252  // GoogleCloudDataplexV1StorageFormatJsonOptions: Describes JSON data format.
  6253  type GoogleCloudDataplexV1StorageFormatJsonOptions struct {
  6254  	// Encoding: Optional. The character encoding of the data. Accepts "US-ASCII",
  6255  	// "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified.
  6256  	Encoding string `json:"encoding,omitempty"`
  6257  	// ForceSendFields is a list of field names (e.g. "Encoding") to
  6258  	// unconditionally include in API requests. By default, fields with empty or
  6259  	// default values are omitted from API requests. See
  6260  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6261  	// details.
  6262  	ForceSendFields []string `json:"-"`
  6263  	// NullFields is a list of field names (e.g. "Encoding") to include in API
  6264  	// requests with the JSON null value. By default, fields with empty values are
  6265  	// omitted from API requests. See
  6266  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6267  	NullFields []string `json:"-"`
  6268  }
  6269  
  6270  func (s *GoogleCloudDataplexV1StorageFormatJsonOptions) MarshalJSON() ([]byte, error) {
  6271  	type NoMethod GoogleCloudDataplexV1StorageFormatJsonOptions
  6272  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6273  }
  6274  
  6275  // GoogleCloudDataplexV1Task: A task represents a user-visible job.
  6276  type GoogleCloudDataplexV1Task struct {
  6277  	// CreateTime: Output only. The time when the task was created.
  6278  	CreateTime string `json:"createTime,omitempty"`
  6279  	// Description: Optional. Description of the task.
  6280  	Description string `json:"description,omitempty"`
  6281  	// DisplayName: Optional. User friendly display name.
  6282  	DisplayName string `json:"displayName,omitempty"`
  6283  	// ExecutionSpec: Required. Spec related to how a task is executed.
  6284  	ExecutionSpec *GoogleCloudDataplexV1TaskExecutionSpec `json:"executionSpec,omitempty"`
  6285  	// ExecutionStatus: Output only. Status of the latest task executions.
  6286  	ExecutionStatus *GoogleCloudDataplexV1TaskExecutionStatus `json:"executionStatus,omitempty"`
  6287  	// Labels: Optional. User-defined labels for the task.
  6288  	Labels map[string]string `json:"labels,omitempty"`
  6289  	// Name: Output only. The relative resource name of the task, of the form:
  6290  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
  6291  	// tasks/{task_id}.
  6292  	Name string `json:"name,omitempty"`
  6293  	// Notebook: Config related to running scheduled Notebooks.
  6294  	Notebook *GoogleCloudDataplexV1TaskNotebookTaskConfig `json:"notebook,omitempty"`
  6295  	// Spark: Config related to running custom Spark tasks.
  6296  	Spark *GoogleCloudDataplexV1TaskSparkTaskConfig `json:"spark,omitempty"`
  6297  	// State: Output only. Current state of the task.
  6298  	//
  6299  	// Possible values:
  6300  	//   "STATE_UNSPECIFIED" - State is not specified.
  6301  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  6302  	//   "CREATING" - Resource is under creation.
  6303  	//   "DELETING" - Resource is under deletion.
  6304  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  6305  	State string `json:"state,omitempty"`
  6306  	// TriggerSpec: Required. Spec related to how often and when a task should be
  6307  	// triggered.
  6308  	TriggerSpec *GoogleCloudDataplexV1TaskTriggerSpec `json:"triggerSpec,omitempty"`
  6309  	// Uid: Output only. System generated globally unique ID for the task. This ID
  6310  	// will be different if the task is deleted and re-created with the same name.
  6311  	Uid string `json:"uid,omitempty"`
  6312  	// UpdateTime: Output only. The time when the task was last updated.
  6313  	UpdateTime string `json:"updateTime,omitempty"`
  6314  
  6315  	// ServerResponse contains the HTTP response code and headers from the server.
  6316  	googleapi.ServerResponse `json:"-"`
  6317  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6318  	// unconditionally include in API requests. By default, fields with empty or
  6319  	// default values are omitted from API requests. See
  6320  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6321  	// details.
  6322  	ForceSendFields []string `json:"-"`
  6323  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6324  	// requests with the JSON null value. By default, fields with empty values are
  6325  	// omitted from API requests. See
  6326  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6327  	NullFields []string `json:"-"`
  6328  }
  6329  
  6330  func (s *GoogleCloudDataplexV1Task) MarshalJSON() ([]byte, error) {
  6331  	type NoMethod GoogleCloudDataplexV1Task
  6332  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6333  }
  6334  
  6335  // GoogleCloudDataplexV1TaskExecutionSpec: Execution related settings, like
  6336  // retry and service_account.
  6337  type GoogleCloudDataplexV1TaskExecutionSpec struct {
  6338  	// Args: Optional. The arguments to pass to the task. The args can use
  6339  	// placeholders of the format ${placeholder} as part of key/value string. These
  6340  	// will be interpolated before passing the args to the driver. Currently
  6341  	// supported placeholders: - ${task_id} - ${job_time} To pass positional args,
  6342  	// set the key as TASK_ARGS. The value should be a comma-separated string of
  6343  	// all the positional arguments. To use a delimiter other than comma, refer to
  6344  	// https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
  6345  	// other keys being present in the args, then TASK_ARGS will be passed as the
  6346  	// last argument.
  6347  	Args map[string]string `json:"args,omitempty"`
  6348  	// KmsKey: Optional. The Cloud KMS key to use for encryption, of the form:
  6349  	// projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cr
  6350  	// yptoKeys/{key-name}.
  6351  	KmsKey string `json:"kmsKey,omitempty"`
  6352  	// MaxJobExecutionLifetime: Optional. The maximum duration after which the job
  6353  	// execution is expired.
  6354  	MaxJobExecutionLifetime string `json:"maxJobExecutionLifetime,omitempty"`
  6355  	// Project: Optional. The project in which jobs are run. By default, the
  6356  	// project containing the Lake is used. If a project is provided, the
  6357  	// ExecutionSpec.service_account must belong to this project.
  6358  	Project string `json:"project,omitempty"`
  6359  	// ServiceAccount: Required. Service account to use to execute a task. If not
  6360  	// provided, the default Compute service account for the project is used.
  6361  	ServiceAccount string `json:"serviceAccount,omitempty"`
  6362  	// ForceSendFields is a list of field names (e.g. "Args") to unconditionally
  6363  	// include in API requests. By default, fields with empty or default values are
  6364  	// omitted from API requests. See
  6365  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6366  	// details.
  6367  	ForceSendFields []string `json:"-"`
  6368  	// NullFields is a list of field names (e.g. "Args") to include in API requests
  6369  	// with the JSON null value. By default, fields with empty values are omitted
  6370  	// from API requests. See
  6371  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6372  	NullFields []string `json:"-"`
  6373  }
  6374  
  6375  func (s *GoogleCloudDataplexV1TaskExecutionSpec) MarshalJSON() ([]byte, error) {
  6376  	type NoMethod GoogleCloudDataplexV1TaskExecutionSpec
  6377  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6378  }
  6379  
  6380  // GoogleCloudDataplexV1TaskExecutionStatus: Status of the task execution (e.g.
  6381  // Jobs).
  6382  type GoogleCloudDataplexV1TaskExecutionStatus struct {
  6383  	// LatestJob: Output only. latest job execution
  6384  	LatestJob *GoogleCloudDataplexV1Job `json:"latestJob,omitempty"`
  6385  	// UpdateTime: Output only. Last update time of the status.
  6386  	UpdateTime string `json:"updateTime,omitempty"`
  6387  	// ForceSendFields is a list of field names (e.g. "LatestJob") to
  6388  	// unconditionally include in API requests. By default, fields with empty or
  6389  	// default values are omitted from API requests. See
  6390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6391  	// details.
  6392  	ForceSendFields []string `json:"-"`
  6393  	// NullFields is a list of field names (e.g. "LatestJob") to include in API
  6394  	// requests with the JSON null value. By default, fields with empty values are
  6395  	// omitted from API requests. See
  6396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6397  	NullFields []string `json:"-"`
  6398  }
  6399  
  6400  func (s *GoogleCloudDataplexV1TaskExecutionStatus) MarshalJSON() ([]byte, error) {
  6401  	type NoMethod GoogleCloudDataplexV1TaskExecutionStatus
  6402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6403  }
  6404  
  6405  // GoogleCloudDataplexV1TaskInfrastructureSpec: Configuration for the
  6406  // underlying infrastructure used to run workloads.
  6407  type GoogleCloudDataplexV1TaskInfrastructureSpec struct {
  6408  	// Batch: Compute resources needed for a Task when using Dataproc Serverless.
  6409  	Batch *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources `json:"batch,omitempty"`
  6410  	// ContainerImage: Container Image Runtime Configuration.
  6411  	ContainerImage *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime `json:"containerImage,omitempty"`
  6412  	// VpcNetwork: Vpc network.
  6413  	VpcNetwork *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork `json:"vpcNetwork,omitempty"`
  6414  	// ForceSendFields is a list of field names (e.g. "Batch") to unconditionally
  6415  	// include in API requests. By default, fields with empty or default values are
  6416  	// omitted from API requests. See
  6417  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6418  	// details.
  6419  	ForceSendFields []string `json:"-"`
  6420  	// NullFields is a list of field names (e.g. "Batch") to include in API
  6421  	// requests with the JSON null value. By default, fields with empty values are
  6422  	// omitted from API requests. See
  6423  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6424  	NullFields []string `json:"-"`
  6425  }
  6426  
  6427  func (s *GoogleCloudDataplexV1TaskInfrastructureSpec) MarshalJSON() ([]byte, error) {
  6428  	type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpec
  6429  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6430  }
  6431  
  6432  // GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources: Batch
  6433  // compute resources associated with the task.
  6434  type GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources struct {
  6435  	// ExecutorsCount: Optional. Total number of job executors. Executor Count
  6436  	// should be between 2 and 100. Default=2
  6437  	ExecutorsCount int64 `json:"executorsCount,omitempty"`
  6438  	// MaxExecutorsCount: Optional. Max configurable executors. If
  6439  	// max_executors_count > executors_count, then auto-scaling is enabled. Max
  6440  	// Executor Count should be between 2 and 1000. Default=1000
  6441  	MaxExecutorsCount int64 `json:"maxExecutorsCount,omitempty"`
  6442  	// ForceSendFields is a list of field names (e.g. "ExecutorsCount") to
  6443  	// unconditionally include in API requests. By default, fields with empty or
  6444  	// default values are omitted from API requests. See
  6445  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6446  	// details.
  6447  	ForceSendFields []string `json:"-"`
  6448  	// NullFields is a list of field names (e.g. "ExecutorsCount") to include in
  6449  	// API requests with the JSON null value. By default, fields with empty values
  6450  	// are omitted from API requests. See
  6451  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6452  	NullFields []string `json:"-"`
  6453  }
  6454  
  6455  func (s *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources) MarshalJSON() ([]byte, error) {
  6456  	type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources
  6457  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6458  }
  6459  
  6460  // GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime: Container
  6461  // Image Runtime Configuration used with Batch execution.
  6462  type GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime struct {
  6463  	// Image: Optional. Container image to use.
  6464  	Image string `json:"image,omitempty"`
  6465  	// JavaJars: Optional. A list of Java JARS to add to the classpath. Valid input
  6466  	// includes Cloud Storage URIs to Jar binaries. For example,
  6467  	// gs://bucket-name/my/path/to/file.jar
  6468  	JavaJars []string `json:"javaJars,omitempty"`
  6469  	// Properties: Optional. Override to common configuration of open source
  6470  	// components installed on the Dataproc cluster. The properties to set on
  6471  	// daemon config files. Property keys are specified in prefix:property format,
  6472  	// for example core:hadoop.tmp.dir. For more information, see Cluster
  6473  	// properties
  6474  	// (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
  6475  	Properties map[string]string `json:"properties,omitempty"`
  6476  	// PythonPackages: Optional. A list of python packages to be installed. Valid
  6477  	// formats include Cloud Storage URI to a PIP installable library. For example,
  6478  	// gs://bucket-name/my/path/to/lib.tar.gz
  6479  	PythonPackages []string `json:"pythonPackages,omitempty"`
  6480  	// ForceSendFields is a list of field names (e.g. "Image") to unconditionally
  6481  	// include in API requests. By default, fields with empty or default values are
  6482  	// omitted from API requests. See
  6483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6484  	// details.
  6485  	ForceSendFields []string `json:"-"`
  6486  	// NullFields is a list of field names (e.g. "Image") to include in API
  6487  	// requests with the JSON null value. By default, fields with empty values are
  6488  	// omitted from API requests. See
  6489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6490  	NullFields []string `json:"-"`
  6491  }
  6492  
  6493  func (s *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime) MarshalJSON() ([]byte, error) {
  6494  	type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime
  6495  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6496  }
  6497  
  6498  // GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork: Cloud VPC Network
  6499  // used to run the infrastructure.
  6500  type GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork struct {
  6501  	// Network: Optional. The Cloud VPC network in which the job is run. By
  6502  	// default, the Cloud VPC network named Default within the project is used.
  6503  	Network string `json:"network,omitempty"`
  6504  	// NetworkTags: Optional. List of network tags to apply to the job.
  6505  	NetworkTags []string `json:"networkTags,omitempty"`
  6506  	// SubNetwork: Optional. The Cloud VPC sub-network in which the job is run.
  6507  	SubNetwork string `json:"subNetwork,omitempty"`
  6508  	// ForceSendFields is a list of field names (e.g. "Network") to unconditionally
  6509  	// include in API requests. By default, fields with empty or default values are
  6510  	// omitted from API requests. See
  6511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6512  	// details.
  6513  	ForceSendFields []string `json:"-"`
  6514  	// NullFields is a list of field names (e.g. "Network") to include in API
  6515  	// requests with the JSON null value. By default, fields with empty values are
  6516  	// omitted from API requests. See
  6517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6518  	NullFields []string `json:"-"`
  6519  }
  6520  
  6521  func (s *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork) MarshalJSON() ([]byte, error) {
  6522  	type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork
  6523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6524  }
  6525  
  6526  // GoogleCloudDataplexV1TaskNotebookTaskConfig: Config for running scheduled
  6527  // notebooks.
  6528  type GoogleCloudDataplexV1TaskNotebookTaskConfig struct {
  6529  	// ArchiveUris: Optional. Cloud Storage URIs of archives to be extracted into
  6530  	// the working directory of each executor. Supported file types: .jar, .tar,
  6531  	// .tar.gz, .tgz, and .zip.
  6532  	ArchiveUris []string `json:"archiveUris,omitempty"`
  6533  	// FileUris: Optional. Cloud Storage URIs of files to be placed in the working
  6534  	// directory of each executor.
  6535  	FileUris []string `json:"fileUris,omitempty"`
  6536  	// InfrastructureSpec: Optional. Infrastructure specification for the
  6537  	// execution.
  6538  	InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"`
  6539  	// Notebook: Required. Path to input notebook. This can be the Cloud Storage
  6540  	// URI of the notebook file or the path to a Notebook Content. The execution
  6541  	// args are accessible as environment variables (TASK_key=value).
  6542  	Notebook string `json:"notebook,omitempty"`
  6543  	// ForceSendFields is a list of field names (e.g. "ArchiveUris") to
  6544  	// unconditionally include in API requests. By default, fields with empty or
  6545  	// default values are omitted from API requests. See
  6546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6547  	// details.
  6548  	ForceSendFields []string `json:"-"`
  6549  	// NullFields is a list of field names (e.g. "ArchiveUris") to include in API
  6550  	// requests with the JSON null value. By default, fields with empty values are
  6551  	// omitted from API requests. See
  6552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6553  	NullFields []string `json:"-"`
  6554  }
  6555  
  6556  func (s *GoogleCloudDataplexV1TaskNotebookTaskConfig) MarshalJSON() ([]byte, error) {
  6557  	type NoMethod GoogleCloudDataplexV1TaskNotebookTaskConfig
  6558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6559  }
  6560  
  6561  // GoogleCloudDataplexV1TaskSparkTaskConfig: User-specified config for running
  6562  // a Spark task.
  6563  type GoogleCloudDataplexV1TaskSparkTaskConfig struct {
  6564  	// ArchiveUris: Optional. Cloud Storage URIs of archives to be extracted into
  6565  	// the working directory of each executor. Supported file types: .jar, .tar,
  6566  	// .tar.gz, .tgz, and .zip.
  6567  	ArchiveUris []string `json:"archiveUris,omitempty"`
  6568  	// FileUris: Optional. Cloud Storage URIs of files to be placed in the working
  6569  	// directory of each executor.
  6570  	FileUris []string `json:"fileUris,omitempty"`
  6571  	// InfrastructureSpec: Optional. Infrastructure specification for the
  6572  	// execution.
  6573  	InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"`
  6574  	// MainClass: The name of the driver's main class. The jar file that contains
  6575  	// the class must be in the default CLASSPATH or specified in jar_file_uris.
  6576  	// The execution args are passed in as a sequence of named process arguments
  6577  	// (--key=value).
  6578  	MainClass string `json:"mainClass,omitempty"`
  6579  	// MainJarFileUri: The Cloud Storage URI of the jar file that contains the main
  6580  	// class. The execution args are passed in as a sequence of named process
  6581  	// arguments (--key=value).
  6582  	MainJarFileUri string `json:"mainJarFileUri,omitempty"`
  6583  	// PythonScriptFile: The Gcloud Storage URI of the main Python file to use as
  6584  	// the driver. Must be a .py file. The execution args are passed in as a
  6585  	// sequence of named process arguments (--key=value).
  6586  	PythonScriptFile string `json:"pythonScriptFile,omitempty"`
  6587  	// SqlScript: The query text. The execution args are used to declare a set of
  6588  	// script variables (set key="value";).
  6589  	SqlScript string `json:"sqlScript,omitempty"`
  6590  	// SqlScriptFile: A reference to a query file. This can be the Cloud Storage
  6591  	// URI of the query file or it can the path to a SqlScript Content. The
  6592  	// execution args are used to declare a set of script variables (set
  6593  	// key="value";).
  6594  	SqlScriptFile string `json:"sqlScriptFile,omitempty"`
  6595  	// ForceSendFields is a list of field names (e.g. "ArchiveUris") to
  6596  	// unconditionally include in API requests. By default, fields with empty or
  6597  	// default values are omitted from API requests. See
  6598  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6599  	// details.
  6600  	ForceSendFields []string `json:"-"`
  6601  	// NullFields is a list of field names (e.g. "ArchiveUris") to include in API
  6602  	// requests with the JSON null value. By default, fields with empty values are
  6603  	// omitted from API requests. See
  6604  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6605  	NullFields []string `json:"-"`
  6606  }
  6607  
  6608  func (s *GoogleCloudDataplexV1TaskSparkTaskConfig) MarshalJSON() ([]byte, error) {
  6609  	type NoMethod GoogleCloudDataplexV1TaskSparkTaskConfig
  6610  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6611  }
  6612  
  6613  // GoogleCloudDataplexV1TaskTriggerSpec: Task scheduling and trigger settings.
  6614  type GoogleCloudDataplexV1TaskTriggerSpec struct {
  6615  	// Disabled: Optional. Prevent the task from executing. This does not cancel
  6616  	// already running tasks. It is intended to temporarily disable RECURRING
  6617  	// tasks.
  6618  	Disabled bool `json:"disabled,omitempty"`
  6619  	// MaxRetries: Optional. Number of retry attempts before aborting. Set to zero
  6620  	// to never attempt to retry a failed task.
  6621  	MaxRetries int64 `json:"maxRetries,omitempty"`
  6622  	// Schedule: Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
  6623  	// running tasks periodically. To explicitly set a timezone to the cron tab,
  6624  	// apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
  6625  	// "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
  6626  	// from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * *
  6627  	// *, or TZ=America/New_York 1 * * * *. This field is required for RECURRING
  6628  	// tasks.
  6629  	Schedule string `json:"schedule,omitempty"`
  6630  	// StartTime: Optional. The first run of the task will be after this time. If
  6631  	// not specified, the task will run shortly after being submitted if ON_DEMAND
  6632  	// and based on the schedule if RECURRING.
  6633  	StartTime string `json:"startTime,omitempty"`
  6634  	// Type: Required. Immutable. Trigger type of the user-specified Task.
  6635  	//
  6636  	// Possible values:
  6637  	//   "TYPE_UNSPECIFIED" - Unspecified trigger type.
  6638  	//   "ON_DEMAND" - The task runs one-time shortly after Task Creation.
  6639  	//   "RECURRING" - The task is scheduled to run periodically.
  6640  	Type string `json:"type,omitempty"`
  6641  	// ForceSendFields is a list of field names (e.g. "Disabled") to
  6642  	// unconditionally include in API requests. By default, fields with empty or
  6643  	// default values are omitted from API requests. See
  6644  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6645  	// details.
  6646  	ForceSendFields []string `json:"-"`
  6647  	// NullFields is a list of field names (e.g. "Disabled") to include in API
  6648  	// requests with the JSON null value. By default, fields with empty values are
  6649  	// omitted from API requests. See
  6650  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6651  	NullFields []string `json:"-"`
  6652  }
  6653  
  6654  func (s *GoogleCloudDataplexV1TaskTriggerSpec) MarshalJSON() ([]byte, error) {
  6655  	type NoMethod GoogleCloudDataplexV1TaskTriggerSpec
  6656  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6657  }
  6658  
  6659  // GoogleCloudDataplexV1Trigger: DataScan scheduling and trigger settings.
  6660  type GoogleCloudDataplexV1Trigger struct {
  6661  	// OnDemand: The scan runs once via RunDataScan API.
  6662  	OnDemand *GoogleCloudDataplexV1TriggerOnDemand `json:"onDemand,omitempty"`
  6663  	// Schedule: The scan is scheduled to run periodically.
  6664  	Schedule *GoogleCloudDataplexV1TriggerSchedule `json:"schedule,omitempty"`
  6665  	// ForceSendFields is a list of field names (e.g. "OnDemand") to
  6666  	// unconditionally include in API requests. By default, fields with empty or
  6667  	// default values are omitted from API requests. See
  6668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6669  	// details.
  6670  	ForceSendFields []string `json:"-"`
  6671  	// NullFields is a list of field names (e.g. "OnDemand") to include in API
  6672  	// requests with the JSON null value. By default, fields with empty values are
  6673  	// omitted from API requests. See
  6674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6675  	NullFields []string `json:"-"`
  6676  }
  6677  
  6678  func (s *GoogleCloudDataplexV1Trigger) MarshalJSON() ([]byte, error) {
  6679  	type NoMethod GoogleCloudDataplexV1Trigger
  6680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6681  }
  6682  
  6683  // GoogleCloudDataplexV1TriggerOnDemand: The scan runs once via RunDataScan
  6684  // API.
  6685  type GoogleCloudDataplexV1TriggerOnDemand struct {
  6686  }
  6687  
  6688  // GoogleCloudDataplexV1TriggerSchedule: The scan is scheduled to run
  6689  // periodically.
  6690  type GoogleCloudDataplexV1TriggerSchedule struct {
  6691  	// Cron: Required. Cron (https://en.wikipedia.org/wiki/Cron) schedule for
  6692  	// running scans periodically.To explicitly set a timezone in the cron tab,
  6693  	// apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
  6694  	// "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
  6695  	// from IANA time zone database (wikipedia
  6696  	// (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). For
  6697  	// example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * *
  6698  	// *.This field is required for Schedule scans.
  6699  	Cron string `json:"cron,omitempty"`
  6700  	// ForceSendFields is a list of field names (e.g. "Cron") to unconditionally
  6701  	// include in API requests. By default, fields with empty or default values are
  6702  	// omitted from API requests. See
  6703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6704  	// details.
  6705  	ForceSendFields []string `json:"-"`
  6706  	// NullFields is a list of field names (e.g. "Cron") to include in API requests
  6707  	// with the JSON null value. By default, fields with empty values are omitted
  6708  	// from API requests. See
  6709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6710  	NullFields []string `json:"-"`
  6711  }
  6712  
  6713  func (s *GoogleCloudDataplexV1TriggerSchedule) MarshalJSON() ([]byte, error) {
  6714  	type NoMethod GoogleCloudDataplexV1TriggerSchedule
  6715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6716  }
  6717  
  6718  // GoogleCloudDataplexV1Zone: A zone represents a logical group of related
  6719  // assets within a lake. A zone can be used to map to organizational structure
  6720  // or represent stages of data readiness from raw to curated. It provides
  6721  // managing behavior that is shared or inherited by all contained assets.
  6722  type GoogleCloudDataplexV1Zone struct {
  6723  	// AssetStatus: Output only. Aggregated status of the underlying assets of the
  6724  	// zone.
  6725  	AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"`
  6726  	// CreateTime: Output only. The time when the zone was created.
  6727  	CreateTime string `json:"createTime,omitempty"`
  6728  	// Description: Optional. Description of the zone.
  6729  	Description string `json:"description,omitempty"`
  6730  	// DiscoverySpec: Optional. Specification of the discovery feature applied to
  6731  	// data in this zone.
  6732  	DiscoverySpec *GoogleCloudDataplexV1ZoneDiscoverySpec `json:"discoverySpec,omitempty"`
  6733  	// DisplayName: Optional. User friendly display name.
  6734  	DisplayName string `json:"displayName,omitempty"`
  6735  	// Labels: Optional. User defined labels for the zone.
  6736  	Labels map[string]string `json:"labels,omitempty"`
  6737  	// Name: Output only. The relative resource name of the zone, of the form:
  6738  	// projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone
  6739  	// _id}.
  6740  	Name string `json:"name,omitempty"`
  6741  	// ResourceSpec: Required. Specification of the resources that are referenced
  6742  	// by the assets within this zone.
  6743  	ResourceSpec *GoogleCloudDataplexV1ZoneResourceSpec `json:"resourceSpec,omitempty"`
  6744  	// State: Output only. Current state of the zone.
  6745  	//
  6746  	// Possible values:
  6747  	//   "STATE_UNSPECIFIED" - State is not specified.
  6748  	//   "ACTIVE" - Resource is active, i.e., ready to use.
  6749  	//   "CREATING" - Resource is under creation.
  6750  	//   "DELETING" - Resource is under deletion.
  6751  	//   "ACTION_REQUIRED" - Resource is active but has unresolved actions.
  6752  	State string `json:"state,omitempty"`
  6753  	// Type: Required. Immutable. The type of the zone.
  6754  	//
  6755  	// Possible values:
  6756  	//   "TYPE_UNSPECIFIED" - Zone type not specified.
  6757  	//   "RAW" - A zone that contains data that needs further processing before it
  6758  	// is considered generally ready for consumption and analytics workloads.
  6759  	//   "CURATED" - A zone that contains data that is considered to be ready for
  6760  	// broader consumption and analytics workloads. Curated structured data stored
  6761  	// in Cloud Storage must conform to certain file formats (parquet, avro and
  6762  	// orc) and organized in a hive-compatible directory layout.
  6763  	Type string `json:"type,omitempty"`
  6764  	// Uid: Output only. System generated globally unique ID for the zone. This ID
  6765  	// will be different if the zone is deleted and re-created with the same name.
  6766  	Uid string `json:"uid,omitempty"`
  6767  	// UpdateTime: Output only. The time when the zone was last updated.
  6768  	UpdateTime string `json:"updateTime,omitempty"`
  6769  
  6770  	// ServerResponse contains the HTTP response code and headers from the server.
  6771  	googleapi.ServerResponse `json:"-"`
  6772  	// ForceSendFields is a list of field names (e.g. "AssetStatus") to
  6773  	// unconditionally include in API requests. By default, fields with empty or
  6774  	// default values are omitted from API requests. See
  6775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6776  	// details.
  6777  	ForceSendFields []string `json:"-"`
  6778  	// NullFields is a list of field names (e.g. "AssetStatus") to include in API
  6779  	// requests with the JSON null value. By default, fields with empty values are
  6780  	// omitted from API requests. See
  6781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6782  	NullFields []string `json:"-"`
  6783  }
  6784  
  6785  func (s *GoogleCloudDataplexV1Zone) MarshalJSON() ([]byte, error) {
  6786  	type NoMethod GoogleCloudDataplexV1Zone
  6787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6788  }
  6789  
  6790  // GoogleCloudDataplexV1ZoneDiscoverySpec: Settings to manage the metadata
  6791  // discovery and publishing in a zone.
  6792  type GoogleCloudDataplexV1ZoneDiscoverySpec struct {
  6793  	// CsvOptions: Optional. Configuration for CSV data.
  6794  	CsvOptions *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions `json:"csvOptions,omitempty"`
  6795  	// Enabled: Required. Whether discovery is enabled.
  6796  	Enabled bool `json:"enabled,omitempty"`
  6797  	// ExcludePatterns: Optional. The list of patterns to apply for selecting data
  6798  	// to exclude during discovery. For Cloud Storage bucket assets, these are
  6799  	// interpreted as glob patterns used to match object names. For BigQuery
  6800  	// dataset assets, these are interpreted as patterns to match table names.
  6801  	ExcludePatterns []string `json:"excludePatterns,omitempty"`
  6802  	// IncludePatterns: Optional. The list of patterns to apply for selecting data
  6803  	// to include during discovery if only a subset of the data should considered.
  6804  	// For Cloud Storage bucket assets, these are interpreted as glob patterns used
  6805  	// to match object names. For BigQuery dataset assets, these are interpreted as
  6806  	// patterns to match table names.
  6807  	IncludePatterns []string `json:"includePatterns,omitempty"`
  6808  	// JsonOptions: Optional. Configuration for Json data.
  6809  	JsonOptions *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions `json:"jsonOptions,omitempty"`
  6810  	// Schedule: Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
  6811  	// running discovery periodically. Successive discovery runs must be scheduled
  6812  	// at least 60 minutes apart. The default value is to run discovery every 60
  6813  	// minutes. To explicitly set a timezone to the cron tab, apply a prefix in the
  6814  	// cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The
  6815  	// ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database.
  6816  	// For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 *
  6817  	// * * *.
  6818  	Schedule string `json:"schedule,omitempty"`
  6819  	// ForceSendFields is a list of field names (e.g. "CsvOptions") to
  6820  	// unconditionally include in API requests. By default, fields with empty or
  6821  	// default values are omitted from API requests. See
  6822  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6823  	// details.
  6824  	ForceSendFields []string `json:"-"`
  6825  	// NullFields is a list of field names (e.g. "CsvOptions") to include in API
  6826  	// requests with the JSON null value. By default, fields with empty values are
  6827  	// omitted from API requests. See
  6828  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6829  	NullFields []string `json:"-"`
  6830  }
  6831  
  6832  func (s *GoogleCloudDataplexV1ZoneDiscoverySpec) MarshalJSON() ([]byte, error) {
  6833  	type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpec
  6834  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6835  }
  6836  
  6837  // GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions: Describe CSV and similar
  6838  // semi-structured data formats.
  6839  type GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions struct {
  6840  	// Delimiter: Optional. The delimiter being used to separate values. This
  6841  	// defaults to ','.
  6842  	Delimiter string `json:"delimiter,omitempty"`
  6843  	// DisableTypeInference: Optional. Whether to disable the inference of data
  6844  	// type for CSV data. If true, all columns will be registered as strings.
  6845  	DisableTypeInference bool `json:"disableTypeInference,omitempty"`
  6846  	// Encoding: Optional. The character encoding of the data. The default is
  6847  	// UTF-8.
  6848  	Encoding string `json:"encoding,omitempty"`
  6849  	// HeaderRows: Optional. The number of rows to interpret as header rows that
  6850  	// should be skipped when reading data rows.
  6851  	HeaderRows int64 `json:"headerRows,omitempty"`
  6852  	// ForceSendFields is a list of field names (e.g. "Delimiter") to
  6853  	// unconditionally include in API requests. By default, fields with empty or
  6854  	// default values are omitted from API requests. See
  6855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6856  	// details.
  6857  	ForceSendFields []string `json:"-"`
  6858  	// NullFields is a list of field names (e.g. "Delimiter") to include in API
  6859  	// requests with the JSON null value. By default, fields with empty values are
  6860  	// omitted from API requests. See
  6861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6862  	NullFields []string `json:"-"`
  6863  }
  6864  
  6865  func (s *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions) MarshalJSON() ([]byte, error) {
  6866  	type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions
  6867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6868  }
  6869  
  6870  // GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions: Describe JSON data
  6871  // format.
  6872  type GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions struct {
  6873  	// DisableTypeInference: Optional. Whether to disable the inference of data
  6874  	// type for Json data. If true, all columns will be registered as their
  6875  	// primitive types (strings, number or boolean).
  6876  	DisableTypeInference bool `json:"disableTypeInference,omitempty"`
  6877  	// Encoding: Optional. The character encoding of the data. The default is
  6878  	// UTF-8.
  6879  	Encoding string `json:"encoding,omitempty"`
  6880  	// ForceSendFields is a list of field names (e.g. "DisableTypeInference") to
  6881  	// unconditionally include in API requests. By default, fields with empty or
  6882  	// default values are omitted from API requests. See
  6883  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6884  	// details.
  6885  	ForceSendFields []string `json:"-"`
  6886  	// NullFields is a list of field names (e.g. "DisableTypeInference") to include
  6887  	// in API requests with the JSON null value. By default, fields with empty
  6888  	// values are omitted from API requests. See
  6889  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6890  	NullFields []string `json:"-"`
  6891  }
  6892  
  6893  func (s *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions) MarshalJSON() ([]byte, error) {
  6894  	type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions
  6895  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6896  }
  6897  
  6898  // GoogleCloudDataplexV1ZoneResourceSpec: Settings for resources attached as
  6899  // assets within a zone.
  6900  type GoogleCloudDataplexV1ZoneResourceSpec struct {
  6901  	// LocationType: Required. Immutable. The location type of the resources that
  6902  	// are allowed to be attached to the assets within this zone.
  6903  	//
  6904  	// Possible values:
  6905  	//   "LOCATION_TYPE_UNSPECIFIED" - Unspecified location type.
  6906  	//   "SINGLE_REGION" - Resources that are associated with a single region.
  6907  	//   "MULTI_REGION" - Resources that are associated with a multi-region
  6908  	// location.
  6909  	LocationType string `json:"locationType,omitempty"`
  6910  	// ForceSendFields is a list of field names (e.g. "LocationType") to
  6911  	// unconditionally include in API requests. By default, fields with empty or
  6912  	// default values are omitted from API requests. See
  6913  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6914  	// details.
  6915  	ForceSendFields []string `json:"-"`
  6916  	// NullFields is a list of field names (e.g. "LocationType") to include in API
  6917  	// requests with the JSON null value. By default, fields with empty values are
  6918  	// omitted from API requests. See
  6919  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6920  	NullFields []string `json:"-"`
  6921  }
  6922  
  6923  func (s *GoogleCloudDataplexV1ZoneResourceSpec) MarshalJSON() ([]byte, error) {
  6924  	type NoMethod GoogleCloudDataplexV1ZoneResourceSpec
  6925  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6926  }
  6927  
  6928  // GoogleCloudLocationListLocationsResponse: The response message for
  6929  // Locations.ListLocations.
  6930  type GoogleCloudLocationListLocationsResponse struct {
  6931  	// Locations: A list of locations that matches the specified filter in the
  6932  	// request.
  6933  	Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
  6934  	// NextPageToken: The standard List next-page token.
  6935  	NextPageToken string `json:"nextPageToken,omitempty"`
  6936  
  6937  	// ServerResponse contains the HTTP response code and headers from the server.
  6938  	googleapi.ServerResponse `json:"-"`
  6939  	// ForceSendFields is a list of field names (e.g. "Locations") to
  6940  	// unconditionally include in API requests. By default, fields with empty or
  6941  	// default values are omitted from API requests. See
  6942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6943  	// details.
  6944  	ForceSendFields []string `json:"-"`
  6945  	// NullFields is a list of field names (e.g. "Locations") to include in API
  6946  	// requests with the JSON null value. By default, fields with empty values are
  6947  	// omitted from API requests. See
  6948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6949  	NullFields []string `json:"-"`
  6950  }
  6951  
  6952  func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
  6953  	type NoMethod GoogleCloudLocationListLocationsResponse
  6954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6955  }
  6956  
  6957  // GoogleCloudLocationLocation: A resource that represents a Google Cloud
  6958  // location.
  6959  type GoogleCloudLocationLocation struct {
  6960  	// DisplayName: The friendly name for this location, typically a nearby city
  6961  	// name. For example, "Tokyo".
  6962  	DisplayName string `json:"displayName,omitempty"`
  6963  	// Labels: Cross-service attributes for the location. For example
  6964  	// {"cloud.googleapis.com/region": "us-east1"}
  6965  	Labels map[string]string `json:"labels,omitempty"`
  6966  	// LocationId: The canonical id for this location. For example: "us-east1".
  6967  	LocationId string `json:"locationId,omitempty"`
  6968  	// Metadata: Service-specific metadata. For example the available capacity at
  6969  	// the given location.
  6970  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  6971  	// Name: Resource name for the location, which may vary between
  6972  	// implementations. For example: "projects/example-project/locations/us-east1"
  6973  	Name string `json:"name,omitempty"`
  6974  
  6975  	// ServerResponse contains the HTTP response code and headers from the server.
  6976  	googleapi.ServerResponse `json:"-"`
  6977  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  6978  	// unconditionally include in API requests. By default, fields with empty or
  6979  	// default values are omitted from API requests. See
  6980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6981  	// details.
  6982  	ForceSendFields []string `json:"-"`
  6983  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  6984  	// requests with the JSON null value. By default, fields with empty values are
  6985  	// omitted from API requests. See
  6986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6987  	NullFields []string `json:"-"`
  6988  }
  6989  
  6990  func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
  6991  	type NoMethod GoogleCloudLocationLocation
  6992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6993  }
  6994  
  6995  // GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The
  6996  // configuration determines which permission types are logged, and what
  6997  // identities, if any, are exempted from logging. An AuditConfig must have one
  6998  // or more AuditLogConfigs.If there are AuditConfigs for both allServices and a
  6999  // specific service, the union of the two AuditConfigs is used for that
  7000  // service: the log_types specified in each AuditConfig are enabled, and the
  7001  // exempted_members in each AuditLogConfig are exempted.Example Policy with
  7002  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
  7003  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
  7004  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
  7005  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
  7006  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
  7007  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
  7008  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
  7009  // logging. It also exempts jose@example.com from DATA_READ logging, and
  7010  // aliya@example.com from DATA_WRITE logging.
  7011  type GoogleIamV1AuditConfig struct {
  7012  	// AuditLogConfigs: The configuration for logging of each type of permission.
  7013  	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
  7014  	// Service: Specifies a service that will be enabled for audit logging. For
  7015  	// example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a
  7016  	// special value that covers all services.
  7017  	Service string `json:"service,omitempty"`
  7018  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
  7019  	// unconditionally include in API requests. By default, fields with empty or
  7020  	// default values are omitted from API requests. See
  7021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7022  	// details.
  7023  	ForceSendFields []string `json:"-"`
  7024  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
  7025  	// API requests with the JSON null value. By default, fields with empty values
  7026  	// are omitted from API requests. See
  7027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7028  	NullFields []string `json:"-"`
  7029  }
  7030  
  7031  func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
  7032  	type NoMethod GoogleIamV1AuditConfig
  7033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7034  }
  7035  
  7036  // GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of
  7037  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
  7038  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
  7039  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
  7040  // exempting jose@example.com from DATA_READ logging.
  7041  type GoogleIamV1AuditLogConfig struct {
  7042  	// ExemptedMembers: Specifies the identities that do not cause logging for this
  7043  	// type of permission. Follows the same format of Binding.members.
  7044  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
  7045  	// LogType: The log type that this config enables.
  7046  	//
  7047  	// Possible values:
  7048  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
  7049  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
  7050  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
  7051  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
  7052  	LogType string `json:"logType,omitempty"`
  7053  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
  7054  	// unconditionally include in API requests. By default, fields with empty or
  7055  	// default values are omitted from API requests. See
  7056  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7057  	// details.
  7058  	ForceSendFields []string `json:"-"`
  7059  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
  7060  	// API requests with the JSON null value. By default, fields with empty values
  7061  	// are omitted from API requests. See
  7062  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7063  	NullFields []string `json:"-"`
  7064  }
  7065  
  7066  func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
  7067  	type NoMethod GoogleIamV1AuditLogConfig
  7068  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7069  }
  7070  
  7071  // GoogleIamV1Binding: Associates members, or principals, with a role.
  7072  type GoogleIamV1Binding struct {
  7073  	// Condition: The condition that is associated with this binding.If the
  7074  	// condition evaluates to true, then this binding applies to the current
  7075  	// request.If the condition evaluates to false, then this binding does not
  7076  	// apply to the current request. However, a different role binding might grant
  7077  	// the same role to one or more of the principals in this binding.To learn
  7078  	// which resources support conditions in their IAM policies, see the IAM
  7079  	// documentation
  7080  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  7081  	Condition *GoogleTypeExpr `json:"condition,omitempty"`
  7082  	// Members: Specifies the principals requesting access for a Google Cloud
  7083  	// resource. members can have the following values: allUsers: A special
  7084  	// identifier that represents anyone who is on the internet; with or without a
  7085  	// Google account. allAuthenticatedUsers: A special identifier that represents
  7086  	// anyone who is authenticated with a Google account or a service account. Does
  7087  	// not include identities that come from external identity providers (IdPs)
  7088  	// through identity federation. user:{emailid}: An email address that
  7089  	// represents a specific Google account. For example, alice@example.com .
  7090  	// serviceAccount:{emailid}: An email address that represents a Google service
  7091  	// account. For example, my-other-app@appspot.gserviceaccount.com.
  7092  	// serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An
  7093  	// identifier for a Kubernetes service account
  7094  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
  7095  	// For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa].
  7096  	// group:{emailid}: An email address that represents a Google group. For
  7097  	// example, admins@example.com. domain:{domain}: The G Suite domain (primary)
  7098  	// that represents all the users of that domain. For example, google.com or
  7099  	// example.com.
  7100  	// principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subj
  7101  	// ect/{subject_attribute_value}: A single identity in a workforce identity
  7102  	// pool.
  7103  	// principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/g
  7104  	// roup/{group_id}: All workforce identities in a group.
  7105  	// principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/a
  7106  	// ttribute.{attribute_name}/{attribute_value}: All workforce identities with a
  7107  	// specific attribute value.
  7108  	// principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*
  7109  	// : All identities in a workforce identity pool.
  7110  	// principal://iam.googleapis.com/projects/{project_number}/locations/global/wor
  7111  	// kloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single
  7112  	// identity in a workload identity pool.
  7113  	// principalSet://iam.googleapis.com/projects/{project_number}/locations/global/
  7114  	// workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool
  7115  	// group.
  7116  	// principalSet://iam.googleapis.com/projects/{project_number}/locations/global/
  7117  	// workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}:
  7118  	//  All identities in a workload identity pool with a certain attribute.
  7119  	// principalSet://iam.googleapis.com/projects/{project_number}/locations/global/
  7120  	// workloadIdentityPools/{pool_id}/*: All identities in a workload identity
  7121  	// pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique
  7122  	// identifier) representing a user that has been recently deleted. For example,
  7123  	// alice@example.com?uid=123456789012345678901. If the user is recovered, this
  7124  	// value reverts to user:{emailid} and the recovered user retains the role in
  7125  	// the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email
  7126  	// address (plus unique identifier) representing a service account that has
  7127  	// been recently deleted. For example,
  7128  	// my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the
  7129  	// service account is undeleted, this value reverts to serviceAccount:{emailid}
  7130  	// and the undeleted service account retains the role in the binding.
  7131  	// deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique
  7132  	// identifier) representing a Google group that has been recently deleted. For
  7133  	// example, admins@example.com?uid=123456789012345678901. If the group is
  7134  	// recovered, this value reverts to group:{emailid} and the recovered group
  7135  	// retains the role in the binding.
  7136  	// deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_
  7137  	// id}/subject/{subject_attribute_value}: Deleted single identity in a
  7138  	// workforce identity pool. For example,
  7139  	// deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-poo
  7140  	// l-id/subject/my-subject-attribute-value.
  7141  	Members []string `json:"members,omitempty"`
  7142  	// Role: Role that is assigned to the list of members, or principals. For
  7143  	// example, roles/viewer, roles/editor, or roles/owner.For an overview of the
  7144  	// IAM roles and permissions, see the IAM documentation
  7145  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
  7146  	// available pre-defined roles, see here
  7147  	// (https://cloud.google.com/iam/docs/understanding-roles).
  7148  	Role string `json:"role,omitempty"`
  7149  	// ForceSendFields is a list of field names (e.g. "Condition") to
  7150  	// unconditionally include in API requests. By default, fields with empty or
  7151  	// default values are omitted from API requests. See
  7152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7153  	// details.
  7154  	ForceSendFields []string `json:"-"`
  7155  	// NullFields is a list of field names (e.g. "Condition") to include in API
  7156  	// requests with the JSON null value. By default, fields with empty values are
  7157  	// omitted from API requests. See
  7158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7159  	NullFields []string `json:"-"`
  7160  }
  7161  
  7162  func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
  7163  	type NoMethod GoogleIamV1Binding
  7164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7165  }
  7166  
  7167  // GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which
  7168  // specifies access controls for Google Cloud resources.A Policy is a
  7169  // collection of bindings. A binding binds one or more members, or principals,
  7170  // to a single role. Principals can be user accounts, service accounts, Google
  7171  // groups, and domains (such as G Suite). A role is a named list of
  7172  // permissions; each role can be an IAM predefined role or a user-created
  7173  // custom role.For some types of Google Cloud resources, a binding can also
  7174  // specify a condition, which is a logical expression that allows access to a
  7175  // resource only if the expression evaluates to true. A condition can add
  7176  // constraints based on attributes of the request, the resource, or both. To
  7177  // learn which resources support conditions in their IAM policies, see the IAM
  7178  // documentation
  7179  // (https://cloud.google.com/iam/help/conditions/resource-policies).JSON
  7180  // example: { "bindings": [ { "role":
  7181  // "roles/resourcemanager.organizationAdmin", "members": [
  7182  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  7183  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  7184  // "roles/resourcemanager.organizationViewer", "members": [
  7185  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  7186  // "description": "Does not grant access after Sep 2020", "expression":
  7187  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  7188  // "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: -
  7189  // user:mike@example.com - group:admins@example.com - domain:google.com -
  7190  // serviceAccount:my-project-id@appspot.gserviceaccount.com role:
  7191  // roles/resourcemanager.organizationAdmin - members: - user:eve@example.com
  7192  // role: roles/resourcemanager.organizationViewer condition: title: expirable
  7193  // access description: Does not grant access after Sep 2020 expression:
  7194  // request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA=
  7195  // version: 3 For a description of IAM and its features, see the IAM
  7196  // documentation (https://cloud.google.com/iam/docs/).
  7197  type GoogleIamV1Policy struct {
  7198  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  7199  	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
  7200  	// Bindings: Associates a list of members, or principals, with a role.
  7201  	// Optionally, may specify a condition that determines how and when the
  7202  	// bindings are applied. Each of the bindings must contain at least one
  7203  	// principal.The bindings in a Policy can refer to up to 1,500 principals; up
  7204  	// to 250 of these principals can be Google groups. Each occurrence of a
  7205  	// principal counts towards these limits. For example, if the bindings grant 50
  7206  	// different roles to user:alice@example.com, and not to any other principal,
  7207  	// then you can add another 1,450 principals to the bindings in the Policy.
  7208  	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
  7209  	// Etag: etag is used for optimistic concurrency control as a way to help
  7210  	// prevent simultaneous updates of a policy from overwriting each other. It is
  7211  	// strongly suggested that systems make use of the etag in the
  7212  	// read-modify-write cycle to perform policy updates in order to avoid race
  7213  	// conditions: An etag is returned in the response to getIamPolicy, and systems
  7214  	// are expected to put that etag in the request to setIamPolicy to ensure that
  7215  	// their change will be applied to the same version of the policy.Important: If
  7216  	// you use IAM Conditions, you must include the etag field whenever you call
  7217  	// setIamPolicy. If you omit this field, then IAM allows you to overwrite a
  7218  	// version 3 policy with a version 1 policy, and all of the conditions in the
  7219  	// version 3 policy are lost.
  7220  	Etag string `json:"etag,omitempty"`
  7221  	// Version: Specifies the format of the policy.Valid values are 0, 1, and 3.
  7222  	// Requests that specify an invalid value are rejected.Any operation that
  7223  	// affects conditional role bindings must specify version 3. This requirement
  7224  	// applies to the following operations: Getting a policy that includes a
  7225  	// conditional role binding Adding a conditional role binding to a policy
  7226  	// Changing a conditional role binding in a policy Removing any role binding,
  7227  	// with or without a condition, from a policy that includes
  7228  	// conditionsImportant: If you use IAM Conditions, you must include the etag
  7229  	// field whenever you call setIamPolicy. If you omit this field, then IAM
  7230  	// allows you to overwrite a version 3 policy with a version 1 policy, and all
  7231  	// of the conditions in the version 3 policy are lost.If a policy does not
  7232  	// include any conditions, operations on that policy may specify any valid
  7233  	// version or leave the field unset.To learn which resources support conditions
  7234  	// in their IAM policies, see the IAM documentation
  7235  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  7236  	Version int64 `json:"version,omitempty"`
  7237  
  7238  	// ServerResponse contains the HTTP response code and headers from the server.
  7239  	googleapi.ServerResponse `json:"-"`
  7240  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  7241  	// unconditionally include in API requests. By default, fields with empty or
  7242  	// default values are omitted from API requests. See
  7243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7244  	// details.
  7245  	ForceSendFields []string `json:"-"`
  7246  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  7247  	// requests with the JSON null value. By default, fields with empty values are
  7248  	// omitted from API requests. See
  7249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7250  	NullFields []string `json:"-"`
  7251  }
  7252  
  7253  func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
  7254  	type NoMethod GoogleIamV1Policy
  7255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7256  }
  7257  
  7258  // GoogleIamV1SetIamPolicyRequest: Request message for SetIamPolicy method.
  7259  type GoogleIamV1SetIamPolicyRequest struct {
  7260  	// Policy: REQUIRED: The complete policy to be applied to the resource. The
  7261  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  7262  	// policy but certain Google Cloud services (such as Projects) might reject
  7263  	// them.
  7264  	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
  7265  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  7266  	// modify. Only the fields in the mask will be modified. If no mask is
  7267  	// provided, the following default mask is used:paths: "bindings, etag"
  7268  	UpdateMask string `json:"updateMask,omitempty"`
  7269  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  7270  	// include in API requests. By default, fields with empty or default values are
  7271  	// omitted from API requests. See
  7272  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7273  	// details.
  7274  	ForceSendFields []string `json:"-"`
  7275  	// NullFields is a list of field names (e.g. "Policy") to include in API
  7276  	// requests with the JSON null value. By default, fields with empty values are
  7277  	// omitted from API requests. See
  7278  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7279  	NullFields []string `json:"-"`
  7280  }
  7281  
  7282  func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  7283  	type NoMethod GoogleIamV1SetIamPolicyRequest
  7284  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7285  }
  7286  
  7287  // GoogleIamV1TestIamPermissionsRequest: Request message for TestIamPermissions
  7288  // method.
  7289  type GoogleIamV1TestIamPermissionsRequest struct {
  7290  	// Permissions: The set of permissions to check for the resource. Permissions
  7291  	// with wildcards (such as * or storage.*) are not allowed. For more
  7292  	// information see IAM Overview
  7293  	// (https://cloud.google.com/iam/docs/overview#permissions).
  7294  	Permissions []string `json:"permissions,omitempty"`
  7295  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  7296  	// unconditionally include in API requests. By default, fields with empty or
  7297  	// default values are omitted from API requests. See
  7298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7299  	// details.
  7300  	ForceSendFields []string `json:"-"`
  7301  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  7302  	// requests with the JSON null value. By default, fields with empty values are
  7303  	// omitted from API requests. See
  7304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7305  	NullFields []string `json:"-"`
  7306  }
  7307  
  7308  func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  7309  	type NoMethod GoogleIamV1TestIamPermissionsRequest
  7310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7311  }
  7312  
  7313  // GoogleIamV1TestIamPermissionsResponse: Response message for
  7314  // TestIamPermissions method.
  7315  type GoogleIamV1TestIamPermissionsResponse struct {
  7316  	// Permissions: A subset of TestPermissionsRequest.permissions that the caller
  7317  	// is allowed.
  7318  	Permissions []string `json:"permissions,omitempty"`
  7319  
  7320  	// ServerResponse contains the HTTP response code and headers from the server.
  7321  	googleapi.ServerResponse `json:"-"`
  7322  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  7323  	// unconditionally include in API requests. By default, fields with empty or
  7324  	// default values are omitted from API requests. See
  7325  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7326  	// details.
  7327  	ForceSendFields []string `json:"-"`
  7328  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  7329  	// requests with the JSON null value. By default, fields with empty values are
  7330  	// omitted from API requests. See
  7331  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7332  	NullFields []string `json:"-"`
  7333  }
  7334  
  7335  func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  7336  	type NoMethod GoogleIamV1TestIamPermissionsResponse
  7337  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7338  }
  7339  
  7340  // GoogleLongrunningCancelOperationRequest: The request message for
  7341  // Operations.CancelOperation.
  7342  type GoogleLongrunningCancelOperationRequest struct {
  7343  }
  7344  
  7345  // GoogleLongrunningListOperationsResponse: The response message for
  7346  // Operations.ListOperations.
  7347  type GoogleLongrunningListOperationsResponse struct {
  7348  	// NextPageToken: The standard List next-page token.
  7349  	NextPageToken string `json:"nextPageToken,omitempty"`
  7350  	// Operations: A list of operations that matches the specified filter in the
  7351  	// request.
  7352  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
  7353  
  7354  	// ServerResponse contains the HTTP response code and headers from the server.
  7355  	googleapi.ServerResponse `json:"-"`
  7356  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  7357  	// unconditionally include in API requests. By default, fields with empty or
  7358  	// default values are omitted from API requests. See
  7359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7360  	// details.
  7361  	ForceSendFields []string `json:"-"`
  7362  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  7363  	// requests with the JSON null value. By default, fields with empty values are
  7364  	// omitted from API requests. See
  7365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7366  	NullFields []string `json:"-"`
  7367  }
  7368  
  7369  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
  7370  	type NoMethod GoogleLongrunningListOperationsResponse
  7371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7372  }
  7373  
  7374  // GoogleLongrunningOperation: This resource represents a long-running
  7375  // operation that is the result of a network API call.
  7376  type GoogleLongrunningOperation struct {
  7377  	// Done: If the value is false, it means the operation is still in progress. If
  7378  	// true, the operation is completed, and either error or response is available.
  7379  	Done bool `json:"done,omitempty"`
  7380  	// Error: The error result of the operation in case of failure or cancellation.
  7381  	Error *GoogleRpcStatus `json:"error,omitempty"`
  7382  	// Metadata: Service-specific metadata associated with the operation. It
  7383  	// typically contains progress information and common metadata such as create
  7384  	// time. Some services might not provide such metadata. Any method that returns
  7385  	// a long-running operation should document the metadata type, if any.
  7386  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  7387  	// Name: The server-assigned name, which is only unique within the same service
  7388  	// that originally returns it. If you use the default HTTP mapping, the name
  7389  	// should be a resource name ending with operations/{unique_id}.
  7390  	Name string `json:"name,omitempty"`
  7391  	// Response: The normal, successful response of the operation. If the original
  7392  	// method returns no data on success, such as Delete, the response is
  7393  	// google.protobuf.Empty. If the original method is standard Get/Create/Update,
  7394  	// the response should be the resource. For other methods, the response should
  7395  	// have the type XxxResponse, where Xxx is the original method name. For
  7396  	// example, if the original method name is TakeSnapshot(), the inferred
  7397  	// response type is TakeSnapshotResponse.
  7398  	Response googleapi.RawMessage `json:"response,omitempty"`
  7399  
  7400  	// ServerResponse contains the HTTP response code and headers from the server.
  7401  	googleapi.ServerResponse `json:"-"`
  7402  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  7403  	// include in API requests. By default, fields with empty or default values are
  7404  	// omitted from API requests. See
  7405  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7406  	// details.
  7407  	ForceSendFields []string `json:"-"`
  7408  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  7409  	// with the JSON null value. By default, fields with empty values are omitted
  7410  	// from API requests. See
  7411  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7412  	NullFields []string `json:"-"`
  7413  }
  7414  
  7415  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
  7416  	type NoMethod GoogleLongrunningOperation
  7417  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7418  }
  7419  
  7420  // GoogleRpcStatus: The Status type defines a logical error model that is
  7421  // suitable for different programming environments, including REST APIs and RPC
  7422  // APIs. It is used by gRPC (https://github.com/grpc). Each Status message
  7423  // contains three pieces of data: error code, error message, and error
  7424  // details.You can find out more about this error model and how to work with it
  7425  // in the API Design Guide (https://cloud.google.com/apis/design/errors).
  7426  type GoogleRpcStatus struct {
  7427  	// Code: The status code, which should be an enum value of google.rpc.Code.
  7428  	Code int64 `json:"code,omitempty"`
  7429  	// Details: A list of messages that carry the error details. There is a common
  7430  	// set of message types for APIs to use.
  7431  	Details []googleapi.RawMessage `json:"details,omitempty"`
  7432  	// Message: A developer-facing error message, which should be in English. Any
  7433  	// user-facing error message should be localized and sent in the
  7434  	// google.rpc.Status.details field, or localized by the client.
  7435  	Message string `json:"message,omitempty"`
  7436  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  7437  	// include in API requests. By default, fields with empty or default values are
  7438  	// omitted from API requests. See
  7439  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7440  	// details.
  7441  	ForceSendFields []string `json:"-"`
  7442  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  7443  	// with the JSON null value. By default, fields with empty values are omitted
  7444  	// from API requests. See
  7445  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7446  	NullFields []string `json:"-"`
  7447  }
  7448  
  7449  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
  7450  	type NoMethod GoogleRpcStatus
  7451  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7452  }
  7453  
  7454  // GoogleTypeExpr: Represents a textual expression in the Common Expression
  7455  // Language (CEL) syntax. CEL is a C-like expression language. The syntax and
  7456  // semantics of CEL are documented at
  7457  // https://github.com/google/cel-spec.Example (Comparison): title: "Summary
  7458  // size limit" description: "Determines if a summary is less than 100 chars"
  7459  // expression: "document.summary.size() < 100" Example (Equality): title:
  7460  // "Requestor is owner" description: "Determines if requestor is the document
  7461  // owner" expression: "document.owner == request.auth.claims.email" Example
  7462  // (Logic): title: "Public documents" description: "Determine whether the
  7463  // document should be publicly visible" expression: "document.type != 'private'
  7464  // && document.type != 'internal'" Example (Data Manipulation): title:
  7465  // "Notification string" description: "Create a notification string with a
  7466  // timestamp." expression: "'New message received at ' +
  7467  // string(document.create_time)" The exact variables and functions that may be
  7468  // referenced within an expression are determined by the service that evaluates
  7469  // it. See the service documentation for additional information.
  7470  type GoogleTypeExpr struct {
  7471  	// Description: Optional. Description of the expression. This is a longer text
  7472  	// which describes the expression, e.g. when hovered over it in a UI.
  7473  	Description string `json:"description,omitempty"`
  7474  	// Expression: Textual representation of an expression in Common Expression
  7475  	// Language syntax.
  7476  	Expression string `json:"expression,omitempty"`
  7477  	// Location: Optional. String indicating the location of the expression for
  7478  	// error reporting, e.g. a file name and a position in the file.
  7479  	Location string `json:"location,omitempty"`
  7480  	// Title: Optional. Title for the expression, i.e. a short string describing
  7481  	// its purpose. This can be used e.g. in UIs which allow to enter the
  7482  	// expression.
  7483  	Title string `json:"title,omitempty"`
  7484  	// ForceSendFields is a list of field names (e.g. "Description") to
  7485  	// unconditionally include in API requests. By default, fields with empty or
  7486  	// default values are omitted from API requests. See
  7487  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7488  	// details.
  7489  	ForceSendFields []string `json:"-"`
  7490  	// NullFields is a list of field names (e.g. "Description") to include in API
  7491  	// requests with the JSON null value. By default, fields with empty values are
  7492  	// omitted from API requests. See
  7493  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7494  	NullFields []string `json:"-"`
  7495  }
  7496  
  7497  func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
  7498  	type NoMethod GoogleTypeExpr
  7499  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7500  }
  7501  
  7502  type ProjectsLocationsGetCall struct {
  7503  	s            *Service
  7504  	name         string
  7505  	urlParams_   gensupport.URLParams
  7506  	ifNoneMatch_ string
  7507  	ctx_         context.Context
  7508  	header_      http.Header
  7509  }
  7510  
  7511  // Get: Gets information about a location.
  7512  //
  7513  // - name: Resource name for the location.
  7514  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  7515  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7516  	c.name = name
  7517  	return c
  7518  }
  7519  
  7520  // Fields allows partial responses to be retrieved. See
  7521  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7522  // details.
  7523  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  7524  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7525  	return c
  7526  }
  7527  
  7528  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7529  // object's ETag matches the given value. This is useful for getting updates
  7530  // only after the object has changed since the last request.
  7531  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  7532  	c.ifNoneMatch_ = entityTag
  7533  	return c
  7534  }
  7535  
  7536  // Context sets the context to be used in this call's Do method.
  7537  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  7538  	c.ctx_ = ctx
  7539  	return c
  7540  }
  7541  
  7542  // Header returns a http.Header that can be modified by the caller to add
  7543  // headers to the request.
  7544  func (c *ProjectsLocationsGetCall) Header() http.Header {
  7545  	if c.header_ == nil {
  7546  		c.header_ = make(http.Header)
  7547  	}
  7548  	return c.header_
  7549  }
  7550  
  7551  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  7552  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7553  	if c.ifNoneMatch_ != "" {
  7554  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7555  	}
  7556  	var body io.Reader = nil
  7557  	c.urlParams_.Set("alt", alt)
  7558  	c.urlParams_.Set("prettyPrint", "false")
  7559  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  7560  	urls += "?" + c.urlParams_.Encode()
  7561  	req, err := http.NewRequest("GET", urls, body)
  7562  	if err != nil {
  7563  		return nil, err
  7564  	}
  7565  	req.Header = reqHeaders
  7566  	googleapi.Expand(req.URL, map[string]string{
  7567  		"name": c.name,
  7568  	})
  7569  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7570  }
  7571  
  7572  // Do executes the "dataplex.projects.locations.get" call.
  7573  // Any non-2xx status code is an error. Response headers are in either
  7574  // *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was
  7575  // returned at all) in error.(*googleapi.Error).Header. Use
  7576  // googleapi.IsNotModified to check whether the returned error was because
  7577  // http.StatusNotModified was returned.
  7578  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
  7579  	gensupport.SetOptions(c.urlParams_, opts...)
  7580  	res, err := c.doRequest("json")
  7581  	if res != nil && res.StatusCode == http.StatusNotModified {
  7582  		if res.Body != nil {
  7583  			res.Body.Close()
  7584  		}
  7585  		return nil, gensupport.WrapError(&googleapi.Error{
  7586  			Code:   res.StatusCode,
  7587  			Header: res.Header,
  7588  		})
  7589  	}
  7590  	if err != nil {
  7591  		return nil, err
  7592  	}
  7593  	defer googleapi.CloseBody(res)
  7594  	if err := googleapi.CheckResponse(res); err != nil {
  7595  		return nil, gensupport.WrapError(err)
  7596  	}
  7597  	ret := &GoogleCloudLocationLocation{
  7598  		ServerResponse: googleapi.ServerResponse{
  7599  			Header:         res.Header,
  7600  			HTTPStatusCode: res.StatusCode,
  7601  		},
  7602  	}
  7603  	target := &ret
  7604  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7605  		return nil, err
  7606  	}
  7607  	return ret, nil
  7608  }
  7609  
  7610  type ProjectsLocationsListCall struct {
  7611  	s            *Service
  7612  	name         string
  7613  	urlParams_   gensupport.URLParams
  7614  	ifNoneMatch_ string
  7615  	ctx_         context.Context
  7616  	header_      http.Header
  7617  }
  7618  
  7619  // List: Lists information about the supported locations for this service.
  7620  //
  7621  // - name: The resource that owns the locations collection, if applicable.
  7622  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  7623  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7624  	c.name = name
  7625  	return c
  7626  }
  7627  
  7628  // Filter sets the optional parameter "filter": A filter to narrow down results
  7629  // to a preferred subset. The filtering language accepts strings like
  7630  // "displayName=tokyo", and is documented in more detail in AIP-160
  7631  // (https://google.aip.dev/160).
  7632  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  7633  	c.urlParams_.Set("filter", filter)
  7634  	return c
  7635  }
  7636  
  7637  // PageSize sets the optional parameter "pageSize": The maximum number of
  7638  // results to return. If not set, the service selects a default.
  7639  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  7640  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7641  	return c
  7642  }
  7643  
  7644  // PageToken sets the optional parameter "pageToken": A page token received
  7645  // from the next_page_token field in the response. Send that page token to
  7646  // receive the subsequent page.
  7647  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  7648  	c.urlParams_.Set("pageToken", pageToken)
  7649  	return c
  7650  }
  7651  
  7652  // Fields allows partial responses to be retrieved. See
  7653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7654  // details.
  7655  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  7656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7657  	return c
  7658  }
  7659  
  7660  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7661  // object's ETag matches the given value. This is useful for getting updates
  7662  // only after the object has changed since the last request.
  7663  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  7664  	c.ifNoneMatch_ = entityTag
  7665  	return c
  7666  }
  7667  
  7668  // Context sets the context to be used in this call's Do method.
  7669  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  7670  	c.ctx_ = ctx
  7671  	return c
  7672  }
  7673  
  7674  // Header returns a http.Header that can be modified by the caller to add
  7675  // headers to the request.
  7676  func (c *ProjectsLocationsListCall) Header() http.Header {
  7677  	if c.header_ == nil {
  7678  		c.header_ = make(http.Header)
  7679  	}
  7680  	return c.header_
  7681  }
  7682  
  7683  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  7684  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7685  	if c.ifNoneMatch_ != "" {
  7686  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7687  	}
  7688  	var body io.Reader = nil
  7689  	c.urlParams_.Set("alt", alt)
  7690  	c.urlParams_.Set("prettyPrint", "false")
  7691  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  7692  	urls += "?" + c.urlParams_.Encode()
  7693  	req, err := http.NewRequest("GET", urls, body)
  7694  	if err != nil {
  7695  		return nil, err
  7696  	}
  7697  	req.Header = reqHeaders
  7698  	googleapi.Expand(req.URL, map[string]string{
  7699  		"name": c.name,
  7700  	})
  7701  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7702  }
  7703  
  7704  // Do executes the "dataplex.projects.locations.list" call.
  7705  // Any non-2xx status code is an error. Response headers are in either
  7706  // *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if a
  7707  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7708  // googleapi.IsNotModified to check whether the returned error was because
  7709  // http.StatusNotModified was returned.
  7710  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
  7711  	gensupport.SetOptions(c.urlParams_, opts...)
  7712  	res, err := c.doRequest("json")
  7713  	if res != nil && res.StatusCode == http.StatusNotModified {
  7714  		if res.Body != nil {
  7715  			res.Body.Close()
  7716  		}
  7717  		return nil, gensupport.WrapError(&googleapi.Error{
  7718  			Code:   res.StatusCode,
  7719  			Header: res.Header,
  7720  		})
  7721  	}
  7722  	if err != nil {
  7723  		return nil, err
  7724  	}
  7725  	defer googleapi.CloseBody(res)
  7726  	if err := googleapi.CheckResponse(res); err != nil {
  7727  		return nil, gensupport.WrapError(err)
  7728  	}
  7729  	ret := &GoogleCloudLocationListLocationsResponse{
  7730  		ServerResponse: googleapi.ServerResponse{
  7731  			Header:         res.Header,
  7732  			HTTPStatusCode: res.StatusCode,
  7733  		},
  7734  	}
  7735  	target := &ret
  7736  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7737  		return nil, err
  7738  	}
  7739  	return ret, nil
  7740  }
  7741  
  7742  // Pages invokes f for each page of results.
  7743  // A non-nil error returned from f will halt the iteration.
  7744  // The provided context supersedes any context provided to the Context method.
  7745  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
  7746  	c.ctx_ = ctx
  7747  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7748  	for {
  7749  		x, err := c.Do()
  7750  		if err != nil {
  7751  			return err
  7752  		}
  7753  		if err := f(x); err != nil {
  7754  			return err
  7755  		}
  7756  		if x.NextPageToken == "" {
  7757  			return nil
  7758  		}
  7759  		c.PageToken(x.NextPageToken)
  7760  	}
  7761  }
  7762  
  7763  type ProjectsLocationsLookupEntryCall struct {
  7764  	s            *Service
  7765  	name         string
  7766  	urlParams_   gensupport.URLParams
  7767  	ifNoneMatch_ string
  7768  	ctx_         context.Context
  7769  	header_      http.Header
  7770  }
  7771  
  7772  // LookupEntry: Looks up a single entry.
  7773  //
  7774  //   - name: The project to which the request should be attributed in the
  7775  //     following form: projects/{project}/locations/{location}.
  7776  func (r *ProjectsLocationsService) LookupEntry(name string) *ProjectsLocationsLookupEntryCall {
  7777  	c := &ProjectsLocationsLookupEntryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7778  	c.name = name
  7779  	return c
  7780  }
  7781  
  7782  // AspectTypes sets the optional parameter "aspectTypes": Limits the aspects
  7783  // returned to the provided aspect types. Only works if the CUSTOM view is
  7784  // selected.
  7785  func (c *ProjectsLocationsLookupEntryCall) AspectTypes(aspectTypes ...string) *ProjectsLocationsLookupEntryCall {
  7786  	c.urlParams_.SetMulti("aspectTypes", append([]string{}, aspectTypes...))
  7787  	return c
  7788  }
  7789  
  7790  // Entry sets the optional parameter "entry": Required. The resource name of
  7791  // the Entry:
  7792  // projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{en
  7793  // try}.
  7794  func (c *ProjectsLocationsLookupEntryCall) Entry(entry string) *ProjectsLocationsLookupEntryCall {
  7795  	c.urlParams_.Set("entry", entry)
  7796  	return c
  7797  }
  7798  
  7799  // Paths sets the optional parameter "paths": Limits the aspects returned to
  7800  // those associated with the provided paths within the Entry. Only works if the
  7801  // CUSTOM view is selected.
  7802  func (c *ProjectsLocationsLookupEntryCall) Paths(paths ...string) *ProjectsLocationsLookupEntryCall {
  7803  	c.urlParams_.SetMulti("paths", append([]string{}, paths...))
  7804  	return c
  7805  }
  7806  
  7807  // View sets the optional parameter "view": View for controlling which parts of
  7808  // an entry are to be returned.
  7809  //
  7810  // Possible values:
  7811  //
  7812  //	"ENTRY_VIEW_UNSPECIFIED" - Unspecified EntryView. Defaults to FULL.
  7813  //	"BASIC" - Returns entry only, without aspects.
  7814  //	"FULL" - Returns all required aspects as well as the keys of all
  7815  //
  7816  // non-required aspects.
  7817  //
  7818  //	"CUSTOM" - Returns aspects matching custom fields in GetEntryRequest. If
  7819  //
  7820  // the number of aspects would exceed 100, the first 100 will be returned.
  7821  //
  7822  //	"ALL" - Returns all aspects. If the number of aspects would exceed 100,
  7823  //
  7824  // the first 100 will be returned.
  7825  func (c *ProjectsLocationsLookupEntryCall) View(view string) *ProjectsLocationsLookupEntryCall {
  7826  	c.urlParams_.Set("view", view)
  7827  	return c
  7828  }
  7829  
  7830  // Fields allows partial responses to be retrieved. See
  7831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7832  // details.
  7833  func (c *ProjectsLocationsLookupEntryCall) Fields(s ...googleapi.Field) *ProjectsLocationsLookupEntryCall {
  7834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7835  	return c
  7836  }
  7837  
  7838  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7839  // object's ETag matches the given value. This is useful for getting updates
  7840  // only after the object has changed since the last request.
  7841  func (c *ProjectsLocationsLookupEntryCall) IfNoneMatch(entityTag string) *ProjectsLocationsLookupEntryCall {
  7842  	c.ifNoneMatch_ = entityTag
  7843  	return c
  7844  }
  7845  
  7846  // Context sets the context to be used in this call's Do method.
  7847  func (c *ProjectsLocationsLookupEntryCall) Context(ctx context.Context) *ProjectsLocationsLookupEntryCall {
  7848  	c.ctx_ = ctx
  7849  	return c
  7850  }
  7851  
  7852  // Header returns a http.Header that can be modified by the caller to add
  7853  // headers to the request.
  7854  func (c *ProjectsLocationsLookupEntryCall) Header() http.Header {
  7855  	if c.header_ == nil {
  7856  		c.header_ = make(http.Header)
  7857  	}
  7858  	return c.header_
  7859  }
  7860  
  7861  func (c *ProjectsLocationsLookupEntryCall) doRequest(alt string) (*http.Response, error) {
  7862  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7863  	if c.ifNoneMatch_ != "" {
  7864  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7865  	}
  7866  	var body io.Reader = nil
  7867  	c.urlParams_.Set("alt", alt)
  7868  	c.urlParams_.Set("prettyPrint", "false")
  7869  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:lookupEntry")
  7870  	urls += "?" + c.urlParams_.Encode()
  7871  	req, err := http.NewRequest("GET", urls, body)
  7872  	if err != nil {
  7873  		return nil, err
  7874  	}
  7875  	req.Header = reqHeaders
  7876  	googleapi.Expand(req.URL, map[string]string{
  7877  		"name": c.name,
  7878  	})
  7879  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7880  }
  7881  
  7882  // Do executes the "dataplex.projects.locations.lookupEntry" call.
  7883  // Any non-2xx status code is an error. Response headers are in either
  7884  // *GoogleCloudDataplexV1Entry.ServerResponse.Header or (if a response was
  7885  // returned at all) in error.(*googleapi.Error).Header. Use
  7886  // googleapi.IsNotModified to check whether the returned error was because
  7887  // http.StatusNotModified was returned.
  7888  func (c *ProjectsLocationsLookupEntryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
  7889  	gensupport.SetOptions(c.urlParams_, opts...)
  7890  	res, err := c.doRequest("json")
  7891  	if res != nil && res.StatusCode == http.StatusNotModified {
  7892  		if res.Body != nil {
  7893  			res.Body.Close()
  7894  		}
  7895  		return nil, gensupport.WrapError(&googleapi.Error{
  7896  			Code:   res.StatusCode,
  7897  			Header: res.Header,
  7898  		})
  7899  	}
  7900  	if err != nil {
  7901  		return nil, err
  7902  	}
  7903  	defer googleapi.CloseBody(res)
  7904  	if err := googleapi.CheckResponse(res); err != nil {
  7905  		return nil, gensupport.WrapError(err)
  7906  	}
  7907  	ret := &GoogleCloudDataplexV1Entry{
  7908  		ServerResponse: googleapi.ServerResponse{
  7909  			Header:         res.Header,
  7910  			HTTPStatusCode: res.StatusCode,
  7911  		},
  7912  	}
  7913  	target := &ret
  7914  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7915  		return nil, err
  7916  	}
  7917  	return ret, nil
  7918  }
  7919  
  7920  type ProjectsLocationsSearchEntriesCall struct {
  7921  	s          *Service
  7922  	name       string
  7923  	urlParams_ gensupport.URLParams
  7924  	ctx_       context.Context
  7925  	header_    http.Header
  7926  }
  7927  
  7928  // SearchEntries: Searches for entries matching given query and scope.
  7929  //
  7930  //   - name: The project to which the request should be attributed in the
  7931  //     following form: projects/{project}/locations/{location}.
  7932  func (r *ProjectsLocationsService) SearchEntries(name string) *ProjectsLocationsSearchEntriesCall {
  7933  	c := &ProjectsLocationsSearchEntriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7934  	c.name = name
  7935  	return c
  7936  }
  7937  
  7938  // OrderBy sets the optional parameter "orderBy": Ordering of the results.
  7939  // Supported options to be added later.
  7940  func (c *ProjectsLocationsSearchEntriesCall) OrderBy(orderBy string) *ProjectsLocationsSearchEntriesCall {
  7941  	c.urlParams_.Set("orderBy", orderBy)
  7942  	return c
  7943  }
  7944  
  7945  // PageSize sets the optional parameter "pageSize": Pagination.
  7946  func (c *ProjectsLocationsSearchEntriesCall) PageSize(pageSize int64) *ProjectsLocationsSearchEntriesCall {
  7947  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7948  	return c
  7949  }
  7950  
  7951  // PageToken sets the optional parameter "pageToken":
  7952  func (c *ProjectsLocationsSearchEntriesCall) PageToken(pageToken string) *ProjectsLocationsSearchEntriesCall {
  7953  	c.urlParams_.Set("pageToken", pageToken)
  7954  	return c
  7955  }
  7956  
  7957  // Query sets the optional parameter "query": Required. The query against which
  7958  // entries in scope should be matched.
  7959  func (c *ProjectsLocationsSearchEntriesCall) Query(query string) *ProjectsLocationsSearchEntriesCall {
  7960  	c.urlParams_.Set("query", query)
  7961  	return c
  7962  }
  7963  
  7964  // Scope sets the optional parameter "scope": The scope under which the search
  7965  // should be operating. Should either be organizations/ or projects/. If left
  7966  // unspecified, it will default to the organization where the project provided
  7967  // in name is located.
  7968  func (c *ProjectsLocationsSearchEntriesCall) Scope(scope string) *ProjectsLocationsSearchEntriesCall {
  7969  	c.urlParams_.Set("scope", scope)
  7970  	return c
  7971  }
  7972  
  7973  // Fields allows partial responses to be retrieved. See
  7974  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7975  // details.
  7976  func (c *ProjectsLocationsSearchEntriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchEntriesCall {
  7977  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7978  	return c
  7979  }
  7980  
  7981  // Context sets the context to be used in this call's Do method.
  7982  func (c *ProjectsLocationsSearchEntriesCall) Context(ctx context.Context) *ProjectsLocationsSearchEntriesCall {
  7983  	c.ctx_ = ctx
  7984  	return c
  7985  }
  7986  
  7987  // Header returns a http.Header that can be modified by the caller to add
  7988  // headers to the request.
  7989  func (c *ProjectsLocationsSearchEntriesCall) Header() http.Header {
  7990  	if c.header_ == nil {
  7991  		c.header_ = make(http.Header)
  7992  	}
  7993  	return c.header_
  7994  }
  7995  
  7996  func (c *ProjectsLocationsSearchEntriesCall) doRequest(alt string) (*http.Response, error) {
  7997  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7998  	var body io.Reader = nil
  7999  	c.urlParams_.Set("alt", alt)
  8000  	c.urlParams_.Set("prettyPrint", "false")
  8001  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchEntries")
  8002  	urls += "?" + c.urlParams_.Encode()
  8003  	req, err := http.NewRequest("POST", urls, body)
  8004  	if err != nil {
  8005  		return nil, err
  8006  	}
  8007  	req.Header = reqHeaders
  8008  	googleapi.Expand(req.URL, map[string]string{
  8009  		"name": c.name,
  8010  	})
  8011  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8012  }
  8013  
  8014  // Do executes the "dataplex.projects.locations.searchEntries" call.
  8015  // Any non-2xx status code is an error. Response headers are in either
  8016  // *GoogleCloudDataplexV1SearchEntriesResponse.ServerResponse.Header or (if a
  8017  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8018  // googleapi.IsNotModified to check whether the returned error was because
  8019  // http.StatusNotModified was returned.
  8020  func (c *ProjectsLocationsSearchEntriesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1SearchEntriesResponse, error) {
  8021  	gensupport.SetOptions(c.urlParams_, opts...)
  8022  	res, err := c.doRequest("json")
  8023  	if res != nil && res.StatusCode == http.StatusNotModified {
  8024  		if res.Body != nil {
  8025  			res.Body.Close()
  8026  		}
  8027  		return nil, gensupport.WrapError(&googleapi.Error{
  8028  			Code:   res.StatusCode,
  8029  			Header: res.Header,
  8030  		})
  8031  	}
  8032  	if err != nil {
  8033  		return nil, err
  8034  	}
  8035  	defer googleapi.CloseBody(res)
  8036  	if err := googleapi.CheckResponse(res); err != nil {
  8037  		return nil, gensupport.WrapError(err)
  8038  	}
  8039  	ret := &GoogleCloudDataplexV1SearchEntriesResponse{
  8040  		ServerResponse: googleapi.ServerResponse{
  8041  			Header:         res.Header,
  8042  			HTTPStatusCode: res.StatusCode,
  8043  		},
  8044  	}
  8045  	target := &ret
  8046  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8047  		return nil, err
  8048  	}
  8049  	return ret, nil
  8050  }
  8051  
  8052  // Pages invokes f for each page of results.
  8053  // A non-nil error returned from f will halt the iteration.
  8054  // The provided context supersedes any context provided to the Context method.
  8055  func (c *ProjectsLocationsSearchEntriesCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1SearchEntriesResponse) error) error {
  8056  	c.ctx_ = ctx
  8057  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8058  	for {
  8059  		x, err := c.Do()
  8060  		if err != nil {
  8061  			return err
  8062  		}
  8063  		if err := f(x); err != nil {
  8064  			return err
  8065  		}
  8066  		if x.NextPageToken == "" {
  8067  			return nil
  8068  		}
  8069  		c.PageToken(x.NextPageToken)
  8070  	}
  8071  }
  8072  
  8073  type ProjectsLocationsAspectTypesCreateCall struct {
  8074  	s                               *Service
  8075  	parent                          string
  8076  	googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType
  8077  	urlParams_                      gensupport.URLParams
  8078  	ctx_                            context.Context
  8079  	header_                         http.Header
  8080  }
  8081  
  8082  // Create: Creates an AspectType
  8083  //
  8084  //   - parent: The resource name of the AspectType, of the form:
  8085  //     projects/{project_number}/locations/{location_id} where location_id refers
  8086  //     to a GCP region.
  8087  func (r *ProjectsLocationsAspectTypesService) Create(parent string, googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType) *ProjectsLocationsAspectTypesCreateCall {
  8088  	c := &ProjectsLocationsAspectTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8089  	c.parent = parent
  8090  	c.googleclouddataplexv1aspecttype = googleclouddataplexv1aspecttype
  8091  	return c
  8092  }
  8093  
  8094  // AspectTypeId sets the optional parameter "aspectTypeId": Required.
  8095  // AspectType identifier.
  8096  func (c *ProjectsLocationsAspectTypesCreateCall) AspectTypeId(aspectTypeId string) *ProjectsLocationsAspectTypesCreateCall {
  8097  	c.urlParams_.Set("aspectTypeId", aspectTypeId)
  8098  	return c
  8099  }
  8100  
  8101  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  8102  // request, but do not perform mutations. The default is false.
  8103  func (c *ProjectsLocationsAspectTypesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAspectTypesCreateCall {
  8104  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8105  	return c
  8106  }
  8107  
  8108  // Fields allows partial responses to be retrieved. See
  8109  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8110  // details.
  8111  func (c *ProjectsLocationsAspectTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesCreateCall {
  8112  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8113  	return c
  8114  }
  8115  
  8116  // Context sets the context to be used in this call's Do method.
  8117  func (c *ProjectsLocationsAspectTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesCreateCall {
  8118  	c.ctx_ = ctx
  8119  	return c
  8120  }
  8121  
  8122  // Header returns a http.Header that can be modified by the caller to add
  8123  // headers to the request.
  8124  func (c *ProjectsLocationsAspectTypesCreateCall) Header() http.Header {
  8125  	if c.header_ == nil {
  8126  		c.header_ = make(http.Header)
  8127  	}
  8128  	return c.header_
  8129  }
  8130  
  8131  func (c *ProjectsLocationsAspectTypesCreateCall) doRequest(alt string) (*http.Response, error) {
  8132  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8133  	var body io.Reader = nil
  8134  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1aspecttype)
  8135  	if err != nil {
  8136  		return nil, err
  8137  	}
  8138  	c.urlParams_.Set("alt", alt)
  8139  	c.urlParams_.Set("prettyPrint", "false")
  8140  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aspectTypes")
  8141  	urls += "?" + c.urlParams_.Encode()
  8142  	req, err := http.NewRequest("POST", urls, body)
  8143  	if err != nil {
  8144  		return nil, err
  8145  	}
  8146  	req.Header = reqHeaders
  8147  	googleapi.Expand(req.URL, map[string]string{
  8148  		"parent": c.parent,
  8149  	})
  8150  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8151  }
  8152  
  8153  // Do executes the "dataplex.projects.locations.aspectTypes.create" call.
  8154  // Any non-2xx status code is an error. Response headers are in either
  8155  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  8156  // returned at all) in error.(*googleapi.Error).Header. Use
  8157  // googleapi.IsNotModified to check whether the returned error was because
  8158  // http.StatusNotModified was returned.
  8159  func (c *ProjectsLocationsAspectTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  8160  	gensupport.SetOptions(c.urlParams_, opts...)
  8161  	res, err := c.doRequest("json")
  8162  	if res != nil && res.StatusCode == http.StatusNotModified {
  8163  		if res.Body != nil {
  8164  			res.Body.Close()
  8165  		}
  8166  		return nil, gensupport.WrapError(&googleapi.Error{
  8167  			Code:   res.StatusCode,
  8168  			Header: res.Header,
  8169  		})
  8170  	}
  8171  	if err != nil {
  8172  		return nil, err
  8173  	}
  8174  	defer googleapi.CloseBody(res)
  8175  	if err := googleapi.CheckResponse(res); err != nil {
  8176  		return nil, gensupport.WrapError(err)
  8177  	}
  8178  	ret := &GoogleLongrunningOperation{
  8179  		ServerResponse: googleapi.ServerResponse{
  8180  			Header:         res.Header,
  8181  			HTTPStatusCode: res.StatusCode,
  8182  		},
  8183  	}
  8184  	target := &ret
  8185  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8186  		return nil, err
  8187  	}
  8188  	return ret, nil
  8189  }
  8190  
  8191  type ProjectsLocationsAspectTypesDeleteCall struct {
  8192  	s          *Service
  8193  	name       string
  8194  	urlParams_ gensupport.URLParams
  8195  	ctx_       context.Context
  8196  	header_    http.Header
  8197  }
  8198  
  8199  // Delete: Deletes a AspectType resource.
  8200  //
  8201  //   - name: The resource name of the AspectType:
  8202  //     projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_
  8203  //     id}.
  8204  func (r *ProjectsLocationsAspectTypesService) Delete(name string) *ProjectsLocationsAspectTypesDeleteCall {
  8205  	c := &ProjectsLocationsAspectTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8206  	c.name = name
  8207  	return c
  8208  }
  8209  
  8210  // Etag sets the optional parameter "etag": If the client provided etag value
  8211  // does not match the current etag value, the DeleteAspectTypeRequest method
  8212  // returns an ABORTED error response
  8213  func (c *ProjectsLocationsAspectTypesDeleteCall) Etag(etag string) *ProjectsLocationsAspectTypesDeleteCall {
  8214  	c.urlParams_.Set("etag", etag)
  8215  	return c
  8216  }
  8217  
  8218  // Fields allows partial responses to be retrieved. See
  8219  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8220  // details.
  8221  func (c *ProjectsLocationsAspectTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesDeleteCall {
  8222  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8223  	return c
  8224  }
  8225  
  8226  // Context sets the context to be used in this call's Do method.
  8227  func (c *ProjectsLocationsAspectTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesDeleteCall {
  8228  	c.ctx_ = ctx
  8229  	return c
  8230  }
  8231  
  8232  // Header returns a http.Header that can be modified by the caller to add
  8233  // headers to the request.
  8234  func (c *ProjectsLocationsAspectTypesDeleteCall) Header() http.Header {
  8235  	if c.header_ == nil {
  8236  		c.header_ = make(http.Header)
  8237  	}
  8238  	return c.header_
  8239  }
  8240  
  8241  func (c *ProjectsLocationsAspectTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
  8242  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8243  	var body io.Reader = nil
  8244  	c.urlParams_.Set("alt", alt)
  8245  	c.urlParams_.Set("prettyPrint", "false")
  8246  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8247  	urls += "?" + c.urlParams_.Encode()
  8248  	req, err := http.NewRequest("DELETE", urls, body)
  8249  	if err != nil {
  8250  		return nil, err
  8251  	}
  8252  	req.Header = reqHeaders
  8253  	googleapi.Expand(req.URL, map[string]string{
  8254  		"name": c.name,
  8255  	})
  8256  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8257  }
  8258  
  8259  // Do executes the "dataplex.projects.locations.aspectTypes.delete" call.
  8260  // Any non-2xx status code is an error. Response headers are in either
  8261  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  8262  // returned at all) in error.(*googleapi.Error).Header. Use
  8263  // googleapi.IsNotModified to check whether the returned error was because
  8264  // http.StatusNotModified was returned.
  8265  func (c *ProjectsLocationsAspectTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  8266  	gensupport.SetOptions(c.urlParams_, opts...)
  8267  	res, err := c.doRequest("json")
  8268  	if res != nil && res.StatusCode == http.StatusNotModified {
  8269  		if res.Body != nil {
  8270  			res.Body.Close()
  8271  		}
  8272  		return nil, gensupport.WrapError(&googleapi.Error{
  8273  			Code:   res.StatusCode,
  8274  			Header: res.Header,
  8275  		})
  8276  	}
  8277  	if err != nil {
  8278  		return nil, err
  8279  	}
  8280  	defer googleapi.CloseBody(res)
  8281  	if err := googleapi.CheckResponse(res); err != nil {
  8282  		return nil, gensupport.WrapError(err)
  8283  	}
  8284  	ret := &GoogleLongrunningOperation{
  8285  		ServerResponse: googleapi.ServerResponse{
  8286  			Header:         res.Header,
  8287  			HTTPStatusCode: res.StatusCode,
  8288  		},
  8289  	}
  8290  	target := &ret
  8291  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8292  		return nil, err
  8293  	}
  8294  	return ret, nil
  8295  }
  8296  
  8297  type ProjectsLocationsAspectTypesGetCall struct {
  8298  	s            *Service
  8299  	name         string
  8300  	urlParams_   gensupport.URLParams
  8301  	ifNoneMatch_ string
  8302  	ctx_         context.Context
  8303  	header_      http.Header
  8304  }
  8305  
  8306  // Get: Retrieves a AspectType resource.
  8307  //
  8308  //   - name: The resource name of the AspectType:
  8309  //     projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_
  8310  //     id}.
  8311  func (r *ProjectsLocationsAspectTypesService) Get(name string) *ProjectsLocationsAspectTypesGetCall {
  8312  	c := &ProjectsLocationsAspectTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8313  	c.name = name
  8314  	return c
  8315  }
  8316  
  8317  // Fields allows partial responses to be retrieved. See
  8318  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8319  // details.
  8320  func (c *ProjectsLocationsAspectTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesGetCall {
  8321  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8322  	return c
  8323  }
  8324  
  8325  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8326  // object's ETag matches the given value. This is useful for getting updates
  8327  // only after the object has changed since the last request.
  8328  func (c *ProjectsLocationsAspectTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAspectTypesGetCall {
  8329  	c.ifNoneMatch_ = entityTag
  8330  	return c
  8331  }
  8332  
  8333  // Context sets the context to be used in this call's Do method.
  8334  func (c *ProjectsLocationsAspectTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesGetCall {
  8335  	c.ctx_ = ctx
  8336  	return c
  8337  }
  8338  
  8339  // Header returns a http.Header that can be modified by the caller to add
  8340  // headers to the request.
  8341  func (c *ProjectsLocationsAspectTypesGetCall) Header() http.Header {
  8342  	if c.header_ == nil {
  8343  		c.header_ = make(http.Header)
  8344  	}
  8345  	return c.header_
  8346  }
  8347  
  8348  func (c *ProjectsLocationsAspectTypesGetCall) doRequest(alt string) (*http.Response, error) {
  8349  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8350  	if c.ifNoneMatch_ != "" {
  8351  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8352  	}
  8353  	var body io.Reader = nil
  8354  	c.urlParams_.Set("alt", alt)
  8355  	c.urlParams_.Set("prettyPrint", "false")
  8356  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8357  	urls += "?" + c.urlParams_.Encode()
  8358  	req, err := http.NewRequest("GET", urls, body)
  8359  	if err != nil {
  8360  		return nil, err
  8361  	}
  8362  	req.Header = reqHeaders
  8363  	googleapi.Expand(req.URL, map[string]string{
  8364  		"name": c.name,
  8365  	})
  8366  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8367  }
  8368  
  8369  // Do executes the "dataplex.projects.locations.aspectTypes.get" call.
  8370  // Any non-2xx status code is an error. Response headers are in either
  8371  // *GoogleCloudDataplexV1AspectType.ServerResponse.Header or (if a response was
  8372  // returned at all) in error.(*googleapi.Error).Header. Use
  8373  // googleapi.IsNotModified to check whether the returned error was because
  8374  // http.StatusNotModified was returned.
  8375  func (c *ProjectsLocationsAspectTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1AspectType, error) {
  8376  	gensupport.SetOptions(c.urlParams_, opts...)
  8377  	res, err := c.doRequest("json")
  8378  	if res != nil && res.StatusCode == http.StatusNotModified {
  8379  		if res.Body != nil {
  8380  			res.Body.Close()
  8381  		}
  8382  		return nil, gensupport.WrapError(&googleapi.Error{
  8383  			Code:   res.StatusCode,
  8384  			Header: res.Header,
  8385  		})
  8386  	}
  8387  	if err != nil {
  8388  		return nil, err
  8389  	}
  8390  	defer googleapi.CloseBody(res)
  8391  	if err := googleapi.CheckResponse(res); err != nil {
  8392  		return nil, gensupport.WrapError(err)
  8393  	}
  8394  	ret := &GoogleCloudDataplexV1AspectType{
  8395  		ServerResponse: googleapi.ServerResponse{
  8396  			Header:         res.Header,
  8397  			HTTPStatusCode: res.StatusCode,
  8398  		},
  8399  	}
  8400  	target := &ret
  8401  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8402  		return nil, err
  8403  	}
  8404  	return ret, nil
  8405  }
  8406  
  8407  type ProjectsLocationsAspectTypesGetIamPolicyCall struct {
  8408  	s            *Service
  8409  	resource     string
  8410  	urlParams_   gensupport.URLParams
  8411  	ifNoneMatch_ string
  8412  	ctx_         context.Context
  8413  	header_      http.Header
  8414  }
  8415  
  8416  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  8417  // empty policy if the resource exists and does not have a policy set.
  8418  //
  8419  //   - resource: REQUIRED: The resource for which the policy is being requested.
  8420  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8421  //     for the appropriate value for this field.
  8422  func (r *ProjectsLocationsAspectTypesService) GetIamPolicy(resource string) *ProjectsLocationsAspectTypesGetIamPolicyCall {
  8423  	c := &ProjectsLocationsAspectTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8424  	c.resource = resource
  8425  	return c
  8426  }
  8427  
  8428  // OptionsRequestedPolicyVersion sets the optional parameter
  8429  // "options.requestedPolicyVersion": The maximum policy version that will be
  8430  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
  8431  // an invalid value will be rejected.Requests for policies with any conditional
  8432  // role bindings must specify version 3. Policies with no conditional role
  8433  // bindings may specify any valid value or leave the field unset.The policy in
  8434  // the response might use the policy version that you specified, or it might
  8435  // use a lower policy version. For example, if you specify version 3, but the
  8436  // policy has no conditional role bindings, the response uses version 1.To
  8437  // learn which resources support conditions in their IAM policies, see the IAM
  8438  // documentation
  8439  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  8440  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAspectTypesGetIamPolicyCall {
  8441  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  8442  	return c
  8443  }
  8444  
  8445  // Fields allows partial responses to be retrieved. See
  8446  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8447  // details.
  8448  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesGetIamPolicyCall {
  8449  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8450  	return c
  8451  }
  8452  
  8453  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8454  // object's ETag matches the given value. This is useful for getting updates
  8455  // only after the object has changed since the last request.
  8456  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAspectTypesGetIamPolicyCall {
  8457  	c.ifNoneMatch_ = entityTag
  8458  	return c
  8459  }
  8460  
  8461  // Context sets the context to be used in this call's Do method.
  8462  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesGetIamPolicyCall {
  8463  	c.ctx_ = ctx
  8464  	return c
  8465  }
  8466  
  8467  // Header returns a http.Header that can be modified by the caller to add
  8468  // headers to the request.
  8469  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Header() http.Header {
  8470  	if c.header_ == nil {
  8471  		c.header_ = make(http.Header)
  8472  	}
  8473  	return c.header_
  8474  }
  8475  
  8476  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8477  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8478  	if c.ifNoneMatch_ != "" {
  8479  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8480  	}
  8481  	var body io.Reader = nil
  8482  	c.urlParams_.Set("alt", alt)
  8483  	c.urlParams_.Set("prettyPrint", "false")
  8484  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  8485  	urls += "?" + c.urlParams_.Encode()
  8486  	req, err := http.NewRequest("GET", urls, body)
  8487  	if err != nil {
  8488  		return nil, err
  8489  	}
  8490  	req.Header = reqHeaders
  8491  	googleapi.Expand(req.URL, map[string]string{
  8492  		"resource": c.resource,
  8493  	})
  8494  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8495  }
  8496  
  8497  // Do executes the "dataplex.projects.locations.aspectTypes.getIamPolicy" call.
  8498  // Any non-2xx status code is an error. Response headers are in either
  8499  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  8500  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8501  // check whether the returned error was because http.StatusNotModified was
  8502  // returned.
  8503  func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  8504  	gensupport.SetOptions(c.urlParams_, opts...)
  8505  	res, err := c.doRequest("json")
  8506  	if res != nil && res.StatusCode == http.StatusNotModified {
  8507  		if res.Body != nil {
  8508  			res.Body.Close()
  8509  		}
  8510  		return nil, gensupport.WrapError(&googleapi.Error{
  8511  			Code:   res.StatusCode,
  8512  			Header: res.Header,
  8513  		})
  8514  	}
  8515  	if err != nil {
  8516  		return nil, err
  8517  	}
  8518  	defer googleapi.CloseBody(res)
  8519  	if err := googleapi.CheckResponse(res); err != nil {
  8520  		return nil, gensupport.WrapError(err)
  8521  	}
  8522  	ret := &GoogleIamV1Policy{
  8523  		ServerResponse: googleapi.ServerResponse{
  8524  			Header:         res.Header,
  8525  			HTTPStatusCode: res.StatusCode,
  8526  		},
  8527  	}
  8528  	target := &ret
  8529  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8530  		return nil, err
  8531  	}
  8532  	return ret, nil
  8533  }
  8534  
  8535  type ProjectsLocationsAspectTypesListCall struct {
  8536  	s            *Service
  8537  	parent       string
  8538  	urlParams_   gensupport.URLParams
  8539  	ifNoneMatch_ string
  8540  	ctx_         context.Context
  8541  	header_      http.Header
  8542  }
  8543  
  8544  // List: Lists AspectType resources in a project and location.
  8545  //
  8546  //   - parent: The resource name of the AspectType location, of the form:
  8547  //     projects/{project_number}/locations/{location_id} where location_id refers
  8548  //     to a GCP region.
  8549  func (r *ProjectsLocationsAspectTypesService) List(parent string) *ProjectsLocationsAspectTypesListCall {
  8550  	c := &ProjectsLocationsAspectTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8551  	c.parent = parent
  8552  	return c
  8553  }
  8554  
  8555  // Filter sets the optional parameter "filter": Filter request. Filters are
  8556  // case-sensitive. The following formats are supported:labels.key1 = "value1"
  8557  // labels:key1 name = "value" These restrictions can be coinjoined with AND, OR
  8558  // and NOT conjunctions.
  8559  func (c *ProjectsLocationsAspectTypesListCall) Filter(filter string) *ProjectsLocationsAspectTypesListCall {
  8560  	c.urlParams_.Set("filter", filter)
  8561  	return c
  8562  }
  8563  
  8564  // OrderBy sets the optional parameter "orderBy": Order by fields (name or
  8565  // create_time) for the result. If not specified, the ordering is undefined.
  8566  func (c *ProjectsLocationsAspectTypesListCall) OrderBy(orderBy string) *ProjectsLocationsAspectTypesListCall {
  8567  	c.urlParams_.Set("orderBy", orderBy)
  8568  	return c
  8569  }
  8570  
  8571  // PageSize sets the optional parameter "pageSize": Maximum number of
  8572  // AspectTypes to return. The service may return fewer than this value. If
  8573  // unspecified, at most 10 AspectTypes will be returned. The maximum value is
  8574  // 1000; values above 1000 will be coerced to 1000.
  8575  func (c *ProjectsLocationsAspectTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAspectTypesListCall {
  8576  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8577  	return c
  8578  }
  8579  
  8580  // PageToken sets the optional parameter "pageToken": Page token received from
  8581  // a previous ListAspectTypes call. Provide this to retrieve the subsequent
  8582  // page. When paginating, all other parameters provided to ListAspectTypes must
  8583  // match the call that provided the page token.
  8584  func (c *ProjectsLocationsAspectTypesListCall) PageToken(pageToken string) *ProjectsLocationsAspectTypesListCall {
  8585  	c.urlParams_.Set("pageToken", pageToken)
  8586  	return c
  8587  }
  8588  
  8589  // Fields allows partial responses to be retrieved. See
  8590  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8591  // details.
  8592  func (c *ProjectsLocationsAspectTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesListCall {
  8593  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8594  	return c
  8595  }
  8596  
  8597  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8598  // object's ETag matches the given value. This is useful for getting updates
  8599  // only after the object has changed since the last request.
  8600  func (c *ProjectsLocationsAspectTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAspectTypesListCall {
  8601  	c.ifNoneMatch_ = entityTag
  8602  	return c
  8603  }
  8604  
  8605  // Context sets the context to be used in this call's Do method.
  8606  func (c *ProjectsLocationsAspectTypesListCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesListCall {
  8607  	c.ctx_ = ctx
  8608  	return c
  8609  }
  8610  
  8611  // Header returns a http.Header that can be modified by the caller to add
  8612  // headers to the request.
  8613  func (c *ProjectsLocationsAspectTypesListCall) Header() http.Header {
  8614  	if c.header_ == nil {
  8615  		c.header_ = make(http.Header)
  8616  	}
  8617  	return c.header_
  8618  }
  8619  
  8620  func (c *ProjectsLocationsAspectTypesListCall) doRequest(alt string) (*http.Response, error) {
  8621  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8622  	if c.ifNoneMatch_ != "" {
  8623  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8624  	}
  8625  	var body io.Reader = nil
  8626  	c.urlParams_.Set("alt", alt)
  8627  	c.urlParams_.Set("prettyPrint", "false")
  8628  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aspectTypes")
  8629  	urls += "?" + c.urlParams_.Encode()
  8630  	req, err := http.NewRequest("GET", urls, body)
  8631  	if err != nil {
  8632  		return nil, err
  8633  	}
  8634  	req.Header = reqHeaders
  8635  	googleapi.Expand(req.URL, map[string]string{
  8636  		"parent": c.parent,
  8637  	})
  8638  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8639  }
  8640  
  8641  // Do executes the "dataplex.projects.locations.aspectTypes.list" call.
  8642  // Any non-2xx status code is an error. Response headers are in either
  8643  // *GoogleCloudDataplexV1ListAspectTypesResponse.ServerResponse.Header or (if a
  8644  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8645  // googleapi.IsNotModified to check whether the returned error was because
  8646  // http.StatusNotModified was returned.
  8647  func (c *ProjectsLocationsAspectTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListAspectTypesResponse, error) {
  8648  	gensupport.SetOptions(c.urlParams_, opts...)
  8649  	res, err := c.doRequest("json")
  8650  	if res != nil && res.StatusCode == http.StatusNotModified {
  8651  		if res.Body != nil {
  8652  			res.Body.Close()
  8653  		}
  8654  		return nil, gensupport.WrapError(&googleapi.Error{
  8655  			Code:   res.StatusCode,
  8656  			Header: res.Header,
  8657  		})
  8658  	}
  8659  	if err != nil {
  8660  		return nil, err
  8661  	}
  8662  	defer googleapi.CloseBody(res)
  8663  	if err := googleapi.CheckResponse(res); err != nil {
  8664  		return nil, gensupport.WrapError(err)
  8665  	}
  8666  	ret := &GoogleCloudDataplexV1ListAspectTypesResponse{
  8667  		ServerResponse: googleapi.ServerResponse{
  8668  			Header:         res.Header,
  8669  			HTTPStatusCode: res.StatusCode,
  8670  		},
  8671  	}
  8672  	target := &ret
  8673  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8674  		return nil, err
  8675  	}
  8676  	return ret, nil
  8677  }
  8678  
  8679  // Pages invokes f for each page of results.
  8680  // A non-nil error returned from f will halt the iteration.
  8681  // The provided context supersedes any context provided to the Context method.
  8682  func (c *ProjectsLocationsAspectTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListAspectTypesResponse) error) error {
  8683  	c.ctx_ = ctx
  8684  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8685  	for {
  8686  		x, err := c.Do()
  8687  		if err != nil {
  8688  			return err
  8689  		}
  8690  		if err := f(x); err != nil {
  8691  			return err
  8692  		}
  8693  		if x.NextPageToken == "" {
  8694  			return nil
  8695  		}
  8696  		c.PageToken(x.NextPageToken)
  8697  	}
  8698  }
  8699  
  8700  type ProjectsLocationsAspectTypesPatchCall struct {
  8701  	s                               *Service
  8702  	name                            string
  8703  	googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType
  8704  	urlParams_                      gensupport.URLParams
  8705  	ctx_                            context.Context
  8706  	header_                         http.Header
  8707  }
  8708  
  8709  // Patch: Updates a AspectType resource.
  8710  //
  8711  //   - name: Output only. The relative resource name of the AspectType, of the
  8712  //     form:
  8713  //     projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_
  8714  //     id}.
  8715  func (r *ProjectsLocationsAspectTypesService) Patch(name string, googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType) *ProjectsLocationsAspectTypesPatchCall {
  8716  	c := &ProjectsLocationsAspectTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8717  	c.name = name
  8718  	c.googleclouddataplexv1aspecttype = googleclouddataplexv1aspecttype
  8719  	return c
  8720  }
  8721  
  8722  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
  8723  // fields to update.
  8724  func (c *ProjectsLocationsAspectTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAspectTypesPatchCall {
  8725  	c.urlParams_.Set("updateMask", updateMask)
  8726  	return c
  8727  }
  8728  
  8729  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  8730  // request, but do not perform mutations. The default is false.
  8731  func (c *ProjectsLocationsAspectTypesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAspectTypesPatchCall {
  8732  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  8733  	return c
  8734  }
  8735  
  8736  // Fields allows partial responses to be retrieved. See
  8737  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8738  // details.
  8739  func (c *ProjectsLocationsAspectTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesPatchCall {
  8740  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8741  	return c
  8742  }
  8743  
  8744  // Context sets the context to be used in this call's Do method.
  8745  func (c *ProjectsLocationsAspectTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesPatchCall {
  8746  	c.ctx_ = ctx
  8747  	return c
  8748  }
  8749  
  8750  // Header returns a http.Header that can be modified by the caller to add
  8751  // headers to the request.
  8752  func (c *ProjectsLocationsAspectTypesPatchCall) Header() http.Header {
  8753  	if c.header_ == nil {
  8754  		c.header_ = make(http.Header)
  8755  	}
  8756  	return c.header_
  8757  }
  8758  
  8759  func (c *ProjectsLocationsAspectTypesPatchCall) doRequest(alt string) (*http.Response, error) {
  8760  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8761  	var body io.Reader = nil
  8762  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1aspecttype)
  8763  	if err != nil {
  8764  		return nil, err
  8765  	}
  8766  	c.urlParams_.Set("alt", alt)
  8767  	c.urlParams_.Set("prettyPrint", "false")
  8768  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  8769  	urls += "?" + c.urlParams_.Encode()
  8770  	req, err := http.NewRequest("PATCH", urls, body)
  8771  	if err != nil {
  8772  		return nil, err
  8773  	}
  8774  	req.Header = reqHeaders
  8775  	googleapi.Expand(req.URL, map[string]string{
  8776  		"name": c.name,
  8777  	})
  8778  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8779  }
  8780  
  8781  // Do executes the "dataplex.projects.locations.aspectTypes.patch" call.
  8782  // Any non-2xx status code is an error. Response headers are in either
  8783  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  8784  // returned at all) in error.(*googleapi.Error).Header. Use
  8785  // googleapi.IsNotModified to check whether the returned error was because
  8786  // http.StatusNotModified was returned.
  8787  func (c *ProjectsLocationsAspectTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  8788  	gensupport.SetOptions(c.urlParams_, opts...)
  8789  	res, err := c.doRequest("json")
  8790  	if res != nil && res.StatusCode == http.StatusNotModified {
  8791  		if res.Body != nil {
  8792  			res.Body.Close()
  8793  		}
  8794  		return nil, gensupport.WrapError(&googleapi.Error{
  8795  			Code:   res.StatusCode,
  8796  			Header: res.Header,
  8797  		})
  8798  	}
  8799  	if err != nil {
  8800  		return nil, err
  8801  	}
  8802  	defer googleapi.CloseBody(res)
  8803  	if err := googleapi.CheckResponse(res); err != nil {
  8804  		return nil, gensupport.WrapError(err)
  8805  	}
  8806  	ret := &GoogleLongrunningOperation{
  8807  		ServerResponse: googleapi.ServerResponse{
  8808  			Header:         res.Header,
  8809  			HTTPStatusCode: res.StatusCode,
  8810  		},
  8811  	}
  8812  	target := &ret
  8813  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8814  		return nil, err
  8815  	}
  8816  	return ret, nil
  8817  }
  8818  
  8819  type ProjectsLocationsAspectTypesSetIamPolicyCall struct {
  8820  	s                              *Service
  8821  	resource                       string
  8822  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
  8823  	urlParams_                     gensupport.URLParams
  8824  	ctx_                           context.Context
  8825  	header_                        http.Header
  8826  }
  8827  
  8828  // SetIamPolicy: Sets the access control policy on the specified resource.
  8829  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
  8830  // PERMISSION_DENIED errors.
  8831  //
  8832  //   - resource: REQUIRED: The resource for which the policy is being specified.
  8833  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8834  //     for the appropriate value for this field.
  8835  func (r *ProjectsLocationsAspectTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAspectTypesSetIamPolicyCall {
  8836  	c := &ProjectsLocationsAspectTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8837  	c.resource = resource
  8838  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
  8839  	return c
  8840  }
  8841  
  8842  // Fields allows partial responses to be retrieved. See
  8843  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8844  // details.
  8845  func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesSetIamPolicyCall {
  8846  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8847  	return c
  8848  }
  8849  
  8850  // Context sets the context to be used in this call's Do method.
  8851  func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesSetIamPolicyCall {
  8852  	c.ctx_ = ctx
  8853  	return c
  8854  }
  8855  
  8856  // Header returns a http.Header that can be modified by the caller to add
  8857  // headers to the request.
  8858  func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Header() http.Header {
  8859  	if c.header_ == nil {
  8860  		c.header_ = make(http.Header)
  8861  	}
  8862  	return c.header_
  8863  }
  8864  
  8865  func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8866  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8867  	var body io.Reader = nil
  8868  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
  8869  	if err != nil {
  8870  		return nil, err
  8871  	}
  8872  	c.urlParams_.Set("alt", alt)
  8873  	c.urlParams_.Set("prettyPrint", "false")
  8874  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  8875  	urls += "?" + c.urlParams_.Encode()
  8876  	req, err := http.NewRequest("POST", urls, body)
  8877  	if err != nil {
  8878  		return nil, err
  8879  	}
  8880  	req.Header = reqHeaders
  8881  	googleapi.Expand(req.URL, map[string]string{
  8882  		"resource": c.resource,
  8883  	})
  8884  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8885  }
  8886  
  8887  // Do executes the "dataplex.projects.locations.aspectTypes.setIamPolicy" call.
  8888  // Any non-2xx status code is an error. Response headers are in either
  8889  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  8890  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8891  // check whether the returned error was because http.StatusNotModified was
  8892  // returned.
  8893  func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  8894  	gensupport.SetOptions(c.urlParams_, opts...)
  8895  	res, err := c.doRequest("json")
  8896  	if res != nil && res.StatusCode == http.StatusNotModified {
  8897  		if res.Body != nil {
  8898  			res.Body.Close()
  8899  		}
  8900  		return nil, gensupport.WrapError(&googleapi.Error{
  8901  			Code:   res.StatusCode,
  8902  			Header: res.Header,
  8903  		})
  8904  	}
  8905  	if err != nil {
  8906  		return nil, err
  8907  	}
  8908  	defer googleapi.CloseBody(res)
  8909  	if err := googleapi.CheckResponse(res); err != nil {
  8910  		return nil, gensupport.WrapError(err)
  8911  	}
  8912  	ret := &GoogleIamV1Policy{
  8913  		ServerResponse: googleapi.ServerResponse{
  8914  			Header:         res.Header,
  8915  			HTTPStatusCode: res.StatusCode,
  8916  		},
  8917  	}
  8918  	target := &ret
  8919  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8920  		return nil, err
  8921  	}
  8922  	return ret, nil
  8923  }
  8924  
  8925  type ProjectsLocationsAspectTypesTestIamPermissionsCall struct {
  8926  	s                                    *Service
  8927  	resource                             string
  8928  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
  8929  	urlParams_                           gensupport.URLParams
  8930  	ctx_                                 context.Context
  8931  	header_                              http.Header
  8932  }
  8933  
  8934  // TestIamPermissions: Returns permissions that a caller has on the specified
  8935  // resource. If the resource does not exist, this will return an empty set of
  8936  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
  8937  // used for building permission-aware UIs and command-line tools, not for
  8938  // authorization checking. This operation may "fail open" without warning.
  8939  //
  8940  //   - resource: REQUIRED: The resource for which the policy detail is being
  8941  //     requested. See Resource names
  8942  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  8943  //     value for this field.
  8944  func (r *ProjectsLocationsAspectTypesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAspectTypesTestIamPermissionsCall {
  8945  	c := &ProjectsLocationsAspectTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8946  	c.resource = resource
  8947  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
  8948  	return c
  8949  }
  8950  
  8951  // Fields allows partial responses to be retrieved. See
  8952  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8953  // details.
  8954  func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesTestIamPermissionsCall {
  8955  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8956  	return c
  8957  }
  8958  
  8959  // Context sets the context to be used in this call's Do method.
  8960  func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesTestIamPermissionsCall {
  8961  	c.ctx_ = ctx
  8962  	return c
  8963  }
  8964  
  8965  // Header returns a http.Header that can be modified by the caller to add
  8966  // headers to the request.
  8967  func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Header() http.Header {
  8968  	if c.header_ == nil {
  8969  		c.header_ = make(http.Header)
  8970  	}
  8971  	return c.header_
  8972  }
  8973  
  8974  func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  8975  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8976  	var body io.Reader = nil
  8977  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
  8978  	if err != nil {
  8979  		return nil, err
  8980  	}
  8981  	c.urlParams_.Set("alt", alt)
  8982  	c.urlParams_.Set("prettyPrint", "false")
  8983  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  8984  	urls += "?" + c.urlParams_.Encode()
  8985  	req, err := http.NewRequest("POST", urls, body)
  8986  	if err != nil {
  8987  		return nil, err
  8988  	}
  8989  	req.Header = reqHeaders
  8990  	googleapi.Expand(req.URL, map[string]string{
  8991  		"resource": c.resource,
  8992  	})
  8993  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8994  }
  8995  
  8996  // Do executes the "dataplex.projects.locations.aspectTypes.testIamPermissions" call.
  8997  // Any non-2xx status code is an error. Response headers are in either
  8998  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
  8999  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9000  // googleapi.IsNotModified to check whether the returned error was because
  9001  // http.StatusNotModified was returned.
  9002  func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
  9003  	gensupport.SetOptions(c.urlParams_, opts...)
  9004  	res, err := c.doRequest("json")
  9005  	if res != nil && res.StatusCode == http.StatusNotModified {
  9006  		if res.Body != nil {
  9007  			res.Body.Close()
  9008  		}
  9009  		return nil, gensupport.WrapError(&googleapi.Error{
  9010  			Code:   res.StatusCode,
  9011  			Header: res.Header,
  9012  		})
  9013  	}
  9014  	if err != nil {
  9015  		return nil, err
  9016  	}
  9017  	defer googleapi.CloseBody(res)
  9018  	if err := googleapi.CheckResponse(res); err != nil {
  9019  		return nil, gensupport.WrapError(err)
  9020  	}
  9021  	ret := &GoogleIamV1TestIamPermissionsResponse{
  9022  		ServerResponse: googleapi.ServerResponse{
  9023  			Header:         res.Header,
  9024  			HTTPStatusCode: res.StatusCode,
  9025  		},
  9026  	}
  9027  	target := &ret
  9028  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9029  		return nil, err
  9030  	}
  9031  	return ret, nil
  9032  }
  9033  
  9034  type ProjectsLocationsDataAttributeBindingsCreateCall struct {
  9035  	s                                         *Service
  9036  	parent                                    string
  9037  	googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding
  9038  	urlParams_                                gensupport.URLParams
  9039  	ctx_                                      context.Context
  9040  	header_                                   http.Header
  9041  }
  9042  
  9043  // Create: Create a DataAttributeBinding resource.
  9044  //
  9045  //   - parent: The resource name of the parent data taxonomy
  9046  //     projects/{project_number}/locations/{location_id}.
  9047  func (r *ProjectsLocationsDataAttributeBindingsService) Create(parent string, googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding) *ProjectsLocationsDataAttributeBindingsCreateCall {
  9048  	c := &ProjectsLocationsDataAttributeBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9049  	c.parent = parent
  9050  	c.googleclouddataplexv1dataattributebinding = googleclouddataplexv1dataattributebinding
  9051  	return c
  9052  }
  9053  
  9054  // DataAttributeBindingId sets the optional parameter "dataAttributeBindingId":
  9055  // Required. DataAttributeBinding identifier. * Must contain only lowercase
  9056  // letters, numbers and hyphens. * Must start with a letter. * Must be between
  9057  // 1-63 characters. * Must end with a number or a letter. * Must be unique
  9058  // within the Location.
  9059  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) DataAttributeBindingId(dataAttributeBindingId string) *ProjectsLocationsDataAttributeBindingsCreateCall {
  9060  	c.urlParams_.Set("dataAttributeBindingId", dataAttributeBindingId)
  9061  	return c
  9062  }
  9063  
  9064  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  9065  // request, but do not perform mutations. The default is false.
  9066  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataAttributeBindingsCreateCall {
  9067  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  9068  	return c
  9069  }
  9070  
  9071  // Fields allows partial responses to be retrieved. See
  9072  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9073  // details.
  9074  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsCreateCall {
  9075  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9076  	return c
  9077  }
  9078  
  9079  // Context sets the context to be used in this call's Do method.
  9080  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsCreateCall {
  9081  	c.ctx_ = ctx
  9082  	return c
  9083  }
  9084  
  9085  // Header returns a http.Header that can be modified by the caller to add
  9086  // headers to the request.
  9087  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Header() http.Header {
  9088  	if c.header_ == nil {
  9089  		c.header_ = make(http.Header)
  9090  	}
  9091  	return c.header_
  9092  }
  9093  
  9094  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) doRequest(alt string) (*http.Response, error) {
  9095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9096  	var body io.Reader = nil
  9097  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattributebinding)
  9098  	if err != nil {
  9099  		return nil, err
  9100  	}
  9101  	c.urlParams_.Set("alt", alt)
  9102  	c.urlParams_.Set("prettyPrint", "false")
  9103  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataAttributeBindings")
  9104  	urls += "?" + c.urlParams_.Encode()
  9105  	req, err := http.NewRequest("POST", urls, body)
  9106  	if err != nil {
  9107  		return nil, err
  9108  	}
  9109  	req.Header = reqHeaders
  9110  	googleapi.Expand(req.URL, map[string]string{
  9111  		"parent": c.parent,
  9112  	})
  9113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9114  }
  9115  
  9116  // Do executes the "dataplex.projects.locations.dataAttributeBindings.create" call.
  9117  // Any non-2xx status code is an error. Response headers are in either
  9118  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  9119  // returned at all) in error.(*googleapi.Error).Header. Use
  9120  // googleapi.IsNotModified to check whether the returned error was because
  9121  // http.StatusNotModified was returned.
  9122  func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  9123  	gensupport.SetOptions(c.urlParams_, opts...)
  9124  	res, err := c.doRequest("json")
  9125  	if res != nil && res.StatusCode == http.StatusNotModified {
  9126  		if res.Body != nil {
  9127  			res.Body.Close()
  9128  		}
  9129  		return nil, gensupport.WrapError(&googleapi.Error{
  9130  			Code:   res.StatusCode,
  9131  			Header: res.Header,
  9132  		})
  9133  	}
  9134  	if err != nil {
  9135  		return nil, err
  9136  	}
  9137  	defer googleapi.CloseBody(res)
  9138  	if err := googleapi.CheckResponse(res); err != nil {
  9139  		return nil, gensupport.WrapError(err)
  9140  	}
  9141  	ret := &GoogleLongrunningOperation{
  9142  		ServerResponse: googleapi.ServerResponse{
  9143  			Header:         res.Header,
  9144  			HTTPStatusCode: res.StatusCode,
  9145  		},
  9146  	}
  9147  	target := &ret
  9148  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9149  		return nil, err
  9150  	}
  9151  	return ret, nil
  9152  }
  9153  
  9154  type ProjectsLocationsDataAttributeBindingsDeleteCall struct {
  9155  	s          *Service
  9156  	name       string
  9157  	urlParams_ gensupport.URLParams
  9158  	ctx_       context.Context
  9159  	header_    http.Header
  9160  }
  9161  
  9162  // Delete: Deletes a DataAttributeBinding resource. All attributes within the
  9163  // DataAttributeBinding must be deleted before the DataAttributeBinding can be
  9164  // deleted.
  9165  //
  9166  //   - name: The resource name of the DataAttributeBinding:
  9167  //     projects/{project_number}/locations/{location_id}/dataAttributeBindings/{da
  9168  //     ta_attribute_binding_id}.
  9169  func (r *ProjectsLocationsDataAttributeBindingsService) Delete(name string) *ProjectsLocationsDataAttributeBindingsDeleteCall {
  9170  	c := &ProjectsLocationsDataAttributeBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9171  	c.name = name
  9172  	return c
  9173  }
  9174  
  9175  // Etag sets the optional parameter "etag": Required. If the client provided
  9176  // etag value does not match the current etag value, the
  9177  // DeleteDataAttributeBindingRequest method returns an ABORTED error response.
  9178  // Etags must be used when calling the DeleteDataAttributeBinding.
  9179  func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Etag(etag string) *ProjectsLocationsDataAttributeBindingsDeleteCall {
  9180  	c.urlParams_.Set("etag", etag)
  9181  	return c
  9182  }
  9183  
  9184  // Fields allows partial responses to be retrieved. See
  9185  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9186  // details.
  9187  func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsDeleteCall {
  9188  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9189  	return c
  9190  }
  9191  
  9192  // Context sets the context to be used in this call's Do method.
  9193  func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsDeleteCall {
  9194  	c.ctx_ = ctx
  9195  	return c
  9196  }
  9197  
  9198  // Header returns a http.Header that can be modified by the caller to add
  9199  // headers to the request.
  9200  func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Header() http.Header {
  9201  	if c.header_ == nil {
  9202  		c.header_ = make(http.Header)
  9203  	}
  9204  	return c.header_
  9205  }
  9206  
  9207  func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9208  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9209  	var body io.Reader = nil
  9210  	c.urlParams_.Set("alt", alt)
  9211  	c.urlParams_.Set("prettyPrint", "false")
  9212  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9213  	urls += "?" + c.urlParams_.Encode()
  9214  	req, err := http.NewRequest("DELETE", urls, body)
  9215  	if err != nil {
  9216  		return nil, err
  9217  	}
  9218  	req.Header = reqHeaders
  9219  	googleapi.Expand(req.URL, map[string]string{
  9220  		"name": c.name,
  9221  	})
  9222  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9223  }
  9224  
  9225  // Do executes the "dataplex.projects.locations.dataAttributeBindings.delete" call.
  9226  // Any non-2xx status code is an error. Response headers are in either
  9227  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  9228  // returned at all) in error.(*googleapi.Error).Header. Use
  9229  // googleapi.IsNotModified to check whether the returned error was because
  9230  // http.StatusNotModified was returned.
  9231  func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  9232  	gensupport.SetOptions(c.urlParams_, opts...)
  9233  	res, err := c.doRequest("json")
  9234  	if res != nil && res.StatusCode == http.StatusNotModified {
  9235  		if res.Body != nil {
  9236  			res.Body.Close()
  9237  		}
  9238  		return nil, gensupport.WrapError(&googleapi.Error{
  9239  			Code:   res.StatusCode,
  9240  			Header: res.Header,
  9241  		})
  9242  	}
  9243  	if err != nil {
  9244  		return nil, err
  9245  	}
  9246  	defer googleapi.CloseBody(res)
  9247  	if err := googleapi.CheckResponse(res); err != nil {
  9248  		return nil, gensupport.WrapError(err)
  9249  	}
  9250  	ret := &GoogleLongrunningOperation{
  9251  		ServerResponse: googleapi.ServerResponse{
  9252  			Header:         res.Header,
  9253  			HTTPStatusCode: res.StatusCode,
  9254  		},
  9255  	}
  9256  	target := &ret
  9257  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9258  		return nil, err
  9259  	}
  9260  	return ret, nil
  9261  }
  9262  
  9263  type ProjectsLocationsDataAttributeBindingsGetCall struct {
  9264  	s            *Service
  9265  	name         string
  9266  	urlParams_   gensupport.URLParams
  9267  	ifNoneMatch_ string
  9268  	ctx_         context.Context
  9269  	header_      http.Header
  9270  }
  9271  
  9272  // Get: Retrieves a DataAttributeBinding resource.
  9273  //
  9274  //   - name: The resource name of the DataAttributeBinding:
  9275  //     projects/{project_number}/locations/{location_id}/dataAttributeBindings/{da
  9276  //     ta_attribute_binding_id}.
  9277  func (r *ProjectsLocationsDataAttributeBindingsService) Get(name string) *ProjectsLocationsDataAttributeBindingsGetCall {
  9278  	c := &ProjectsLocationsDataAttributeBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9279  	c.name = name
  9280  	return c
  9281  }
  9282  
  9283  // Fields allows partial responses to be retrieved. See
  9284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9285  // details.
  9286  func (c *ProjectsLocationsDataAttributeBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsGetCall {
  9287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9288  	return c
  9289  }
  9290  
  9291  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9292  // object's ETag matches the given value. This is useful for getting updates
  9293  // only after the object has changed since the last request.
  9294  func (c *ProjectsLocationsDataAttributeBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsGetCall {
  9295  	c.ifNoneMatch_ = entityTag
  9296  	return c
  9297  }
  9298  
  9299  // Context sets the context to be used in this call's Do method.
  9300  func (c *ProjectsLocationsDataAttributeBindingsGetCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsGetCall {
  9301  	c.ctx_ = ctx
  9302  	return c
  9303  }
  9304  
  9305  // Header returns a http.Header that can be modified by the caller to add
  9306  // headers to the request.
  9307  func (c *ProjectsLocationsDataAttributeBindingsGetCall) Header() http.Header {
  9308  	if c.header_ == nil {
  9309  		c.header_ = make(http.Header)
  9310  	}
  9311  	return c.header_
  9312  }
  9313  
  9314  func (c *ProjectsLocationsDataAttributeBindingsGetCall) doRequest(alt string) (*http.Response, error) {
  9315  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9316  	if c.ifNoneMatch_ != "" {
  9317  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9318  	}
  9319  	var body io.Reader = nil
  9320  	c.urlParams_.Set("alt", alt)
  9321  	c.urlParams_.Set("prettyPrint", "false")
  9322  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9323  	urls += "?" + c.urlParams_.Encode()
  9324  	req, err := http.NewRequest("GET", urls, body)
  9325  	if err != nil {
  9326  		return nil, err
  9327  	}
  9328  	req.Header = reqHeaders
  9329  	googleapi.Expand(req.URL, map[string]string{
  9330  		"name": c.name,
  9331  	})
  9332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9333  }
  9334  
  9335  // Do executes the "dataplex.projects.locations.dataAttributeBindings.get" call.
  9336  // Any non-2xx status code is an error. Response headers are in either
  9337  // *GoogleCloudDataplexV1DataAttributeBinding.ServerResponse.Header or (if a
  9338  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9339  // googleapi.IsNotModified to check whether the returned error was because
  9340  // http.StatusNotModified was returned.
  9341  func (c *ProjectsLocationsDataAttributeBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataAttributeBinding, error) {
  9342  	gensupport.SetOptions(c.urlParams_, opts...)
  9343  	res, err := c.doRequest("json")
  9344  	if res != nil && res.StatusCode == http.StatusNotModified {
  9345  		if res.Body != nil {
  9346  			res.Body.Close()
  9347  		}
  9348  		return nil, gensupport.WrapError(&googleapi.Error{
  9349  			Code:   res.StatusCode,
  9350  			Header: res.Header,
  9351  		})
  9352  	}
  9353  	if err != nil {
  9354  		return nil, err
  9355  	}
  9356  	defer googleapi.CloseBody(res)
  9357  	if err := googleapi.CheckResponse(res); err != nil {
  9358  		return nil, gensupport.WrapError(err)
  9359  	}
  9360  	ret := &GoogleCloudDataplexV1DataAttributeBinding{
  9361  		ServerResponse: googleapi.ServerResponse{
  9362  			Header:         res.Header,
  9363  			HTTPStatusCode: res.StatusCode,
  9364  		},
  9365  	}
  9366  	target := &ret
  9367  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9368  		return nil, err
  9369  	}
  9370  	return ret, nil
  9371  }
  9372  
  9373  type ProjectsLocationsDataAttributeBindingsGetIamPolicyCall struct {
  9374  	s            *Service
  9375  	resource     string
  9376  	urlParams_   gensupport.URLParams
  9377  	ifNoneMatch_ string
  9378  	ctx_         context.Context
  9379  	header_      http.Header
  9380  }
  9381  
  9382  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  9383  // empty policy if the resource exists and does not have a policy set.
  9384  //
  9385  //   - resource: REQUIRED: The resource for which the policy is being requested.
  9386  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  9387  //     for the appropriate value for this field.
  9388  func (r *ProjectsLocationsDataAttributeBindingsService) GetIamPolicy(resource string) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
  9389  	c := &ProjectsLocationsDataAttributeBindingsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9390  	c.resource = resource
  9391  	return c
  9392  }
  9393  
  9394  // OptionsRequestedPolicyVersion sets the optional parameter
  9395  // "options.requestedPolicyVersion": The maximum policy version that will be
  9396  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
  9397  // an invalid value will be rejected.Requests for policies with any conditional
  9398  // role bindings must specify version 3. Policies with no conditional role
  9399  // bindings may specify any valid value or leave the field unset.The policy in
  9400  // the response might use the policy version that you specified, or it might
  9401  // use a lower policy version. For example, if you specify version 3, but the
  9402  // policy has no conditional role bindings, the response uses version 1.To
  9403  // learn which resources support conditions in their IAM policies, see the IAM
  9404  // documentation
  9405  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  9406  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
  9407  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  9408  	return c
  9409  }
  9410  
  9411  // Fields allows partial responses to be retrieved. See
  9412  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9413  // details.
  9414  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
  9415  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9416  	return c
  9417  }
  9418  
  9419  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9420  // object's ETag matches the given value. This is useful for getting updates
  9421  // only after the object has changed since the last request.
  9422  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
  9423  	c.ifNoneMatch_ = entityTag
  9424  	return c
  9425  }
  9426  
  9427  // Context sets the context to be used in this call's Do method.
  9428  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
  9429  	c.ctx_ = ctx
  9430  	return c
  9431  }
  9432  
  9433  // Header returns a http.Header that can be modified by the caller to add
  9434  // headers to the request.
  9435  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Header() http.Header {
  9436  	if c.header_ == nil {
  9437  		c.header_ = make(http.Header)
  9438  	}
  9439  	return c.header_
  9440  }
  9441  
  9442  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  9443  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9444  	if c.ifNoneMatch_ != "" {
  9445  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9446  	}
  9447  	var body io.Reader = nil
  9448  	c.urlParams_.Set("alt", alt)
  9449  	c.urlParams_.Set("prettyPrint", "false")
  9450  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
  9451  	urls += "?" + c.urlParams_.Encode()
  9452  	req, err := http.NewRequest("GET", urls, body)
  9453  	if err != nil {
  9454  		return nil, err
  9455  	}
  9456  	req.Header = reqHeaders
  9457  	googleapi.Expand(req.URL, map[string]string{
  9458  		"resource": c.resource,
  9459  	})
  9460  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9461  }
  9462  
  9463  // Do executes the "dataplex.projects.locations.dataAttributeBindings.getIamPolicy" call.
  9464  // Any non-2xx status code is an error. Response headers are in either
  9465  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  9466  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9467  // check whether the returned error was because http.StatusNotModified was
  9468  // returned.
  9469  func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  9470  	gensupport.SetOptions(c.urlParams_, opts...)
  9471  	res, err := c.doRequest("json")
  9472  	if res != nil && res.StatusCode == http.StatusNotModified {
  9473  		if res.Body != nil {
  9474  			res.Body.Close()
  9475  		}
  9476  		return nil, gensupport.WrapError(&googleapi.Error{
  9477  			Code:   res.StatusCode,
  9478  			Header: res.Header,
  9479  		})
  9480  	}
  9481  	if err != nil {
  9482  		return nil, err
  9483  	}
  9484  	defer googleapi.CloseBody(res)
  9485  	if err := googleapi.CheckResponse(res); err != nil {
  9486  		return nil, gensupport.WrapError(err)
  9487  	}
  9488  	ret := &GoogleIamV1Policy{
  9489  		ServerResponse: googleapi.ServerResponse{
  9490  			Header:         res.Header,
  9491  			HTTPStatusCode: res.StatusCode,
  9492  		},
  9493  	}
  9494  	target := &ret
  9495  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9496  		return nil, err
  9497  	}
  9498  	return ret, nil
  9499  }
  9500  
  9501  type ProjectsLocationsDataAttributeBindingsListCall struct {
  9502  	s            *Service
  9503  	parent       string
  9504  	urlParams_   gensupport.URLParams
  9505  	ifNoneMatch_ string
  9506  	ctx_         context.Context
  9507  	header_      http.Header
  9508  }
  9509  
  9510  // List: Lists DataAttributeBinding resources in a project and location.
  9511  //
  9512  //   - parent: The resource name of the Location:
  9513  //     projects/{project_number}/locations/{location_id}.
  9514  func (r *ProjectsLocationsDataAttributeBindingsService) List(parent string) *ProjectsLocationsDataAttributeBindingsListCall {
  9515  	c := &ProjectsLocationsDataAttributeBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9516  	c.parent = parent
  9517  	return c
  9518  }
  9519  
  9520  // Filter sets the optional parameter "filter": Filter request. Filter using
  9521  // resource: filter=resource:"resource-name" Filter using attribute:
  9522  // filter=attributes:"attribute-name" Filter using attribute in paths list:
  9523  // filter=paths.attributes:"attribute-name"
  9524  func (c *ProjectsLocationsDataAttributeBindingsListCall) Filter(filter string) *ProjectsLocationsDataAttributeBindingsListCall {
  9525  	c.urlParams_.Set("filter", filter)
  9526  	return c
  9527  }
  9528  
  9529  // OrderBy sets the optional parameter "orderBy": Order by fields for the
  9530  // result.
  9531  func (c *ProjectsLocationsDataAttributeBindingsListCall) OrderBy(orderBy string) *ProjectsLocationsDataAttributeBindingsListCall {
  9532  	c.urlParams_.Set("orderBy", orderBy)
  9533  	return c
  9534  }
  9535  
  9536  // PageSize sets the optional parameter "pageSize": Maximum number of
  9537  // DataAttributeBindings to return. The service may return fewer than this
  9538  // value. If unspecified, at most 10 DataAttributeBindings will be returned.
  9539  // The maximum value is 1000; values above 1000 will be coerced to 1000.
  9540  func (c *ProjectsLocationsDataAttributeBindingsListCall) PageSize(pageSize int64) *ProjectsLocationsDataAttributeBindingsListCall {
  9541  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9542  	return c
  9543  }
  9544  
  9545  // PageToken sets the optional parameter "pageToken": Page token received from
  9546  // a previous ListDataAttributeBindings call. Provide this to retrieve the
  9547  // subsequent page. When paginating, all other parameters provided to
  9548  // ListDataAttributeBindings must match the call that provided the page token.
  9549  func (c *ProjectsLocationsDataAttributeBindingsListCall) PageToken(pageToken string) *ProjectsLocationsDataAttributeBindingsListCall {
  9550  	c.urlParams_.Set("pageToken", pageToken)
  9551  	return c
  9552  }
  9553  
  9554  // Fields allows partial responses to be retrieved. See
  9555  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9556  // details.
  9557  func (c *ProjectsLocationsDataAttributeBindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsListCall {
  9558  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9559  	return c
  9560  }
  9561  
  9562  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9563  // object's ETag matches the given value. This is useful for getting updates
  9564  // only after the object has changed since the last request.
  9565  func (c *ProjectsLocationsDataAttributeBindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsListCall {
  9566  	c.ifNoneMatch_ = entityTag
  9567  	return c
  9568  }
  9569  
  9570  // Context sets the context to be used in this call's Do method.
  9571  func (c *ProjectsLocationsDataAttributeBindingsListCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsListCall {
  9572  	c.ctx_ = ctx
  9573  	return c
  9574  }
  9575  
  9576  // Header returns a http.Header that can be modified by the caller to add
  9577  // headers to the request.
  9578  func (c *ProjectsLocationsDataAttributeBindingsListCall) Header() http.Header {
  9579  	if c.header_ == nil {
  9580  		c.header_ = make(http.Header)
  9581  	}
  9582  	return c.header_
  9583  }
  9584  
  9585  func (c *ProjectsLocationsDataAttributeBindingsListCall) doRequest(alt string) (*http.Response, error) {
  9586  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9587  	if c.ifNoneMatch_ != "" {
  9588  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9589  	}
  9590  	var body io.Reader = nil
  9591  	c.urlParams_.Set("alt", alt)
  9592  	c.urlParams_.Set("prettyPrint", "false")
  9593  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataAttributeBindings")
  9594  	urls += "?" + c.urlParams_.Encode()
  9595  	req, err := http.NewRequest("GET", urls, body)
  9596  	if err != nil {
  9597  		return nil, err
  9598  	}
  9599  	req.Header = reqHeaders
  9600  	googleapi.Expand(req.URL, map[string]string{
  9601  		"parent": c.parent,
  9602  	})
  9603  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9604  }
  9605  
  9606  // Do executes the "dataplex.projects.locations.dataAttributeBindings.list" call.
  9607  // Any non-2xx status code is an error. Response headers are in either
  9608  // *GoogleCloudDataplexV1ListDataAttributeBindingsResponse.ServerResponse.Header
  9609  //
  9610  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
  9611  //
  9612  // Use googleapi.IsNotModified to check whether the returned error was because
  9613  // http.StatusNotModified was returned.
  9614  func (c *ProjectsLocationsDataAttributeBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataAttributeBindingsResponse, error) {
  9615  	gensupport.SetOptions(c.urlParams_, opts...)
  9616  	res, err := c.doRequest("json")
  9617  	if res != nil && res.StatusCode == http.StatusNotModified {
  9618  		if res.Body != nil {
  9619  			res.Body.Close()
  9620  		}
  9621  		return nil, gensupport.WrapError(&googleapi.Error{
  9622  			Code:   res.StatusCode,
  9623  			Header: res.Header,
  9624  		})
  9625  	}
  9626  	if err != nil {
  9627  		return nil, err
  9628  	}
  9629  	defer googleapi.CloseBody(res)
  9630  	if err := googleapi.CheckResponse(res); err != nil {
  9631  		return nil, gensupport.WrapError(err)
  9632  	}
  9633  	ret := &GoogleCloudDataplexV1ListDataAttributeBindingsResponse{
  9634  		ServerResponse: googleapi.ServerResponse{
  9635  			Header:         res.Header,
  9636  			HTTPStatusCode: res.StatusCode,
  9637  		},
  9638  	}
  9639  	target := &ret
  9640  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9641  		return nil, err
  9642  	}
  9643  	return ret, nil
  9644  }
  9645  
  9646  // Pages invokes f for each page of results.
  9647  // A non-nil error returned from f will halt the iteration.
  9648  // The provided context supersedes any context provided to the Context method.
  9649  func (c *ProjectsLocationsDataAttributeBindingsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataAttributeBindingsResponse) error) error {
  9650  	c.ctx_ = ctx
  9651  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9652  	for {
  9653  		x, err := c.Do()
  9654  		if err != nil {
  9655  			return err
  9656  		}
  9657  		if err := f(x); err != nil {
  9658  			return err
  9659  		}
  9660  		if x.NextPageToken == "" {
  9661  			return nil
  9662  		}
  9663  		c.PageToken(x.NextPageToken)
  9664  	}
  9665  }
  9666  
  9667  type ProjectsLocationsDataAttributeBindingsPatchCall struct {
  9668  	s                                         *Service
  9669  	name                                      string
  9670  	googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding
  9671  	urlParams_                                gensupport.URLParams
  9672  	ctx_                                      context.Context
  9673  	header_                                   http.Header
  9674  }
  9675  
  9676  // Patch: Updates a DataAttributeBinding resource.
  9677  //
  9678  //   - name: Output only. The relative resource name of the Data Attribute
  9679  //     Binding, of the form:
  9680  //     projects/{project_number}/locations/{location}/dataAttributeBindings/{data_
  9681  //     attribute_binding_id}.
  9682  func (r *ProjectsLocationsDataAttributeBindingsService) Patch(name string, googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding) *ProjectsLocationsDataAttributeBindingsPatchCall {
  9683  	c := &ProjectsLocationsDataAttributeBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9684  	c.name = name
  9685  	c.googleclouddataplexv1dataattributebinding = googleclouddataplexv1dataattributebinding
  9686  	return c
  9687  }
  9688  
  9689  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
  9690  // fields to update.
  9691  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataAttributeBindingsPatchCall {
  9692  	c.urlParams_.Set("updateMask", updateMask)
  9693  	return c
  9694  }
  9695  
  9696  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  9697  // request, but do not perform mutations. The default is false.
  9698  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataAttributeBindingsPatchCall {
  9699  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  9700  	return c
  9701  }
  9702  
  9703  // Fields allows partial responses to be retrieved. See
  9704  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9705  // details.
  9706  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsPatchCall {
  9707  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9708  	return c
  9709  }
  9710  
  9711  // Context sets the context to be used in this call's Do method.
  9712  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsPatchCall {
  9713  	c.ctx_ = ctx
  9714  	return c
  9715  }
  9716  
  9717  // Header returns a http.Header that can be modified by the caller to add
  9718  // headers to the request.
  9719  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Header() http.Header {
  9720  	if c.header_ == nil {
  9721  		c.header_ = make(http.Header)
  9722  	}
  9723  	return c.header_
  9724  }
  9725  
  9726  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) doRequest(alt string) (*http.Response, error) {
  9727  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9728  	var body io.Reader = nil
  9729  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattributebinding)
  9730  	if err != nil {
  9731  		return nil, err
  9732  	}
  9733  	c.urlParams_.Set("alt", alt)
  9734  	c.urlParams_.Set("prettyPrint", "false")
  9735  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  9736  	urls += "?" + c.urlParams_.Encode()
  9737  	req, err := http.NewRequest("PATCH", urls, body)
  9738  	if err != nil {
  9739  		return nil, err
  9740  	}
  9741  	req.Header = reqHeaders
  9742  	googleapi.Expand(req.URL, map[string]string{
  9743  		"name": c.name,
  9744  	})
  9745  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9746  }
  9747  
  9748  // Do executes the "dataplex.projects.locations.dataAttributeBindings.patch" call.
  9749  // Any non-2xx status code is an error. Response headers are in either
  9750  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  9751  // returned at all) in error.(*googleapi.Error).Header. Use
  9752  // googleapi.IsNotModified to check whether the returned error was because
  9753  // http.StatusNotModified was returned.
  9754  func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  9755  	gensupport.SetOptions(c.urlParams_, opts...)
  9756  	res, err := c.doRequest("json")
  9757  	if res != nil && res.StatusCode == http.StatusNotModified {
  9758  		if res.Body != nil {
  9759  			res.Body.Close()
  9760  		}
  9761  		return nil, gensupport.WrapError(&googleapi.Error{
  9762  			Code:   res.StatusCode,
  9763  			Header: res.Header,
  9764  		})
  9765  	}
  9766  	if err != nil {
  9767  		return nil, err
  9768  	}
  9769  	defer googleapi.CloseBody(res)
  9770  	if err := googleapi.CheckResponse(res); err != nil {
  9771  		return nil, gensupport.WrapError(err)
  9772  	}
  9773  	ret := &GoogleLongrunningOperation{
  9774  		ServerResponse: googleapi.ServerResponse{
  9775  			Header:         res.Header,
  9776  			HTTPStatusCode: res.StatusCode,
  9777  		},
  9778  	}
  9779  	target := &ret
  9780  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9781  		return nil, err
  9782  	}
  9783  	return ret, nil
  9784  }
  9785  
  9786  type ProjectsLocationsDataAttributeBindingsSetIamPolicyCall struct {
  9787  	s                              *Service
  9788  	resource                       string
  9789  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
  9790  	urlParams_                     gensupport.URLParams
  9791  	ctx_                           context.Context
  9792  	header_                        http.Header
  9793  }
  9794  
  9795  // SetIamPolicy: Sets the access control policy on the specified resource.
  9796  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
  9797  // PERMISSION_DENIED errors.
  9798  //
  9799  //   - resource: REQUIRED: The resource for which the policy is being specified.
  9800  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  9801  //     for the appropriate value for this field.
  9802  func (r *ProjectsLocationsDataAttributeBindingsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall {
  9803  	c := &ProjectsLocationsDataAttributeBindingsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9804  	c.resource = resource
  9805  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
  9806  	return c
  9807  }
  9808  
  9809  // Fields allows partial responses to be retrieved. See
  9810  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9811  // details.
  9812  func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall {
  9813  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9814  	return c
  9815  }
  9816  
  9817  // Context sets the context to be used in this call's Do method.
  9818  func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall {
  9819  	c.ctx_ = ctx
  9820  	return c
  9821  }
  9822  
  9823  // Header returns a http.Header that can be modified by the caller to add
  9824  // headers to the request.
  9825  func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Header() http.Header {
  9826  	if c.header_ == nil {
  9827  		c.header_ = make(http.Header)
  9828  	}
  9829  	return c.header_
  9830  }
  9831  
  9832  func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  9833  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9834  	var body io.Reader = nil
  9835  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
  9836  	if err != nil {
  9837  		return nil, err
  9838  	}
  9839  	c.urlParams_.Set("alt", alt)
  9840  	c.urlParams_.Set("prettyPrint", "false")
  9841  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
  9842  	urls += "?" + c.urlParams_.Encode()
  9843  	req, err := http.NewRequest("POST", urls, body)
  9844  	if err != nil {
  9845  		return nil, err
  9846  	}
  9847  	req.Header = reqHeaders
  9848  	googleapi.Expand(req.URL, map[string]string{
  9849  		"resource": c.resource,
  9850  	})
  9851  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9852  }
  9853  
  9854  // Do executes the "dataplex.projects.locations.dataAttributeBindings.setIamPolicy" call.
  9855  // Any non-2xx status code is an error. Response headers are in either
  9856  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
  9857  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9858  // check whether the returned error was because http.StatusNotModified was
  9859  // returned.
  9860  func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
  9861  	gensupport.SetOptions(c.urlParams_, opts...)
  9862  	res, err := c.doRequest("json")
  9863  	if res != nil && res.StatusCode == http.StatusNotModified {
  9864  		if res.Body != nil {
  9865  			res.Body.Close()
  9866  		}
  9867  		return nil, gensupport.WrapError(&googleapi.Error{
  9868  			Code:   res.StatusCode,
  9869  			Header: res.Header,
  9870  		})
  9871  	}
  9872  	if err != nil {
  9873  		return nil, err
  9874  	}
  9875  	defer googleapi.CloseBody(res)
  9876  	if err := googleapi.CheckResponse(res); err != nil {
  9877  		return nil, gensupport.WrapError(err)
  9878  	}
  9879  	ret := &GoogleIamV1Policy{
  9880  		ServerResponse: googleapi.ServerResponse{
  9881  			Header:         res.Header,
  9882  			HTTPStatusCode: res.StatusCode,
  9883  		},
  9884  	}
  9885  	target := &ret
  9886  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9887  		return nil, err
  9888  	}
  9889  	return ret, nil
  9890  }
  9891  
  9892  type ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall struct {
  9893  	s                                    *Service
  9894  	resource                             string
  9895  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
  9896  	urlParams_                           gensupport.URLParams
  9897  	ctx_                                 context.Context
  9898  	header_                              http.Header
  9899  }
  9900  
  9901  // TestIamPermissions: Returns permissions that a caller has on the specified
  9902  // resource. If the resource does not exist, this will return an empty set of
  9903  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
  9904  // used for building permission-aware UIs and command-line tools, not for
  9905  // authorization checking. This operation may "fail open" without warning.
  9906  //
  9907  //   - resource: REQUIRED: The resource for which the policy detail is being
  9908  //     requested. See Resource names
  9909  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  9910  //     value for this field.
  9911  func (r *ProjectsLocationsDataAttributeBindingsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall {
  9912  	c := &ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9913  	c.resource = resource
  9914  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
  9915  	return c
  9916  }
  9917  
  9918  // Fields allows partial responses to be retrieved. See
  9919  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9920  // details.
  9921  func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall {
  9922  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9923  	return c
  9924  }
  9925  
  9926  // Context sets the context to be used in this call's Do method.
  9927  func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall {
  9928  	c.ctx_ = ctx
  9929  	return c
  9930  }
  9931  
  9932  // Header returns a http.Header that can be modified by the caller to add
  9933  // headers to the request.
  9934  func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Header() http.Header {
  9935  	if c.header_ == nil {
  9936  		c.header_ = make(http.Header)
  9937  	}
  9938  	return c.header_
  9939  }
  9940  
  9941  func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  9942  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9943  	var body io.Reader = nil
  9944  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
  9945  	if err != nil {
  9946  		return nil, err
  9947  	}
  9948  	c.urlParams_.Set("alt", alt)
  9949  	c.urlParams_.Set("prettyPrint", "false")
  9950  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
  9951  	urls += "?" + c.urlParams_.Encode()
  9952  	req, err := http.NewRequest("POST", urls, body)
  9953  	if err != nil {
  9954  		return nil, err
  9955  	}
  9956  	req.Header = reqHeaders
  9957  	googleapi.Expand(req.URL, map[string]string{
  9958  		"resource": c.resource,
  9959  	})
  9960  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9961  }
  9962  
  9963  // Do executes the "dataplex.projects.locations.dataAttributeBindings.testIamPermissions" call.
  9964  // Any non-2xx status code is an error. Response headers are in either
  9965  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
  9966  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9967  // googleapi.IsNotModified to check whether the returned error was because
  9968  // http.StatusNotModified was returned.
  9969  func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
  9970  	gensupport.SetOptions(c.urlParams_, opts...)
  9971  	res, err := c.doRequest("json")
  9972  	if res != nil && res.StatusCode == http.StatusNotModified {
  9973  		if res.Body != nil {
  9974  			res.Body.Close()
  9975  		}
  9976  		return nil, gensupport.WrapError(&googleapi.Error{
  9977  			Code:   res.StatusCode,
  9978  			Header: res.Header,
  9979  		})
  9980  	}
  9981  	if err != nil {
  9982  		return nil, err
  9983  	}
  9984  	defer googleapi.CloseBody(res)
  9985  	if err := googleapi.CheckResponse(res); err != nil {
  9986  		return nil, gensupport.WrapError(err)
  9987  	}
  9988  	ret := &GoogleIamV1TestIamPermissionsResponse{
  9989  		ServerResponse: googleapi.ServerResponse{
  9990  			Header:         res.Header,
  9991  			HTTPStatusCode: res.StatusCode,
  9992  		},
  9993  	}
  9994  	target := &ret
  9995  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9996  		return nil, err
  9997  	}
  9998  	return ret, nil
  9999  }
 10000  
 10001  type ProjectsLocationsDataScansCreateCall struct {
 10002  	s                             *Service
 10003  	parent                        string
 10004  	googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan
 10005  	urlParams_                    gensupport.URLParams
 10006  	ctx_                          context.Context
 10007  	header_                       http.Header
 10008  }
 10009  
 10010  // Create: Creates a DataScan resource.
 10011  //
 10012  //   - parent: The resource name of the parent location:
 10013  //     projects/{project}/locations/{location_id} where project refers to a
 10014  //     project_id or project_number and location_id refers to a GCP region.
 10015  func (r *ProjectsLocationsDataScansService) Create(parent string, googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan) *ProjectsLocationsDataScansCreateCall {
 10016  	c := &ProjectsLocationsDataScansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10017  	c.parent = parent
 10018  	c.googleclouddataplexv1datascan = googleclouddataplexv1datascan
 10019  	return c
 10020  }
 10021  
 10022  // DataScanId sets the optional parameter "dataScanId": Required. DataScan
 10023  // identifier. Must contain only lowercase letters, numbers and hyphens. Must
 10024  // start with a letter. Must end with a number or a letter. Must be between
 10025  // 1-63 characters. Must be unique within the customer project / location.
 10026  func (c *ProjectsLocationsDataScansCreateCall) DataScanId(dataScanId string) *ProjectsLocationsDataScansCreateCall {
 10027  	c.urlParams_.Set("dataScanId", dataScanId)
 10028  	return c
 10029  }
 10030  
 10031  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 10032  // request, but do not perform mutations. The default is false.
 10033  func (c *ProjectsLocationsDataScansCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataScansCreateCall {
 10034  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 10035  	return c
 10036  }
 10037  
 10038  // Fields allows partial responses to be retrieved. See
 10039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10040  // details.
 10041  func (c *ProjectsLocationsDataScansCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansCreateCall {
 10042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10043  	return c
 10044  }
 10045  
 10046  // Context sets the context to be used in this call's Do method.
 10047  func (c *ProjectsLocationsDataScansCreateCall) Context(ctx context.Context) *ProjectsLocationsDataScansCreateCall {
 10048  	c.ctx_ = ctx
 10049  	return c
 10050  }
 10051  
 10052  // Header returns a http.Header that can be modified by the caller to add
 10053  // headers to the request.
 10054  func (c *ProjectsLocationsDataScansCreateCall) Header() http.Header {
 10055  	if c.header_ == nil {
 10056  		c.header_ = make(http.Header)
 10057  	}
 10058  	return c.header_
 10059  }
 10060  
 10061  func (c *ProjectsLocationsDataScansCreateCall) doRequest(alt string) (*http.Response, error) {
 10062  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10063  	var body io.Reader = nil
 10064  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datascan)
 10065  	if err != nil {
 10066  		return nil, err
 10067  	}
 10068  	c.urlParams_.Set("alt", alt)
 10069  	c.urlParams_.Set("prettyPrint", "false")
 10070  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataScans")
 10071  	urls += "?" + c.urlParams_.Encode()
 10072  	req, err := http.NewRequest("POST", urls, body)
 10073  	if err != nil {
 10074  		return nil, err
 10075  	}
 10076  	req.Header = reqHeaders
 10077  	googleapi.Expand(req.URL, map[string]string{
 10078  		"parent": c.parent,
 10079  	})
 10080  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10081  }
 10082  
 10083  // Do executes the "dataplex.projects.locations.dataScans.create" call.
 10084  // Any non-2xx status code is an error. Response headers are in either
 10085  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10086  // returned at all) in error.(*googleapi.Error).Header. Use
 10087  // googleapi.IsNotModified to check whether the returned error was because
 10088  // http.StatusNotModified was returned.
 10089  func (c *ProjectsLocationsDataScansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10090  	gensupport.SetOptions(c.urlParams_, opts...)
 10091  	res, err := c.doRequest("json")
 10092  	if res != nil && res.StatusCode == http.StatusNotModified {
 10093  		if res.Body != nil {
 10094  			res.Body.Close()
 10095  		}
 10096  		return nil, gensupport.WrapError(&googleapi.Error{
 10097  			Code:   res.StatusCode,
 10098  			Header: res.Header,
 10099  		})
 10100  	}
 10101  	if err != nil {
 10102  		return nil, err
 10103  	}
 10104  	defer googleapi.CloseBody(res)
 10105  	if err := googleapi.CheckResponse(res); err != nil {
 10106  		return nil, gensupport.WrapError(err)
 10107  	}
 10108  	ret := &GoogleLongrunningOperation{
 10109  		ServerResponse: googleapi.ServerResponse{
 10110  			Header:         res.Header,
 10111  			HTTPStatusCode: res.StatusCode,
 10112  		},
 10113  	}
 10114  	target := &ret
 10115  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10116  		return nil, err
 10117  	}
 10118  	return ret, nil
 10119  }
 10120  
 10121  type ProjectsLocationsDataScansDeleteCall struct {
 10122  	s          *Service
 10123  	name       string
 10124  	urlParams_ gensupport.URLParams
 10125  	ctx_       context.Context
 10126  	header_    http.Header
 10127  }
 10128  
 10129  // Delete: Deletes a DataScan resource.
 10130  //
 10131  //   - name: The resource name of the dataScan:
 10132  //     projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where
 10133  //     project refers to a project_id or project_number and location_id refers to
 10134  //     a GCP region.
 10135  func (r *ProjectsLocationsDataScansService) Delete(name string) *ProjectsLocationsDataScansDeleteCall {
 10136  	c := &ProjectsLocationsDataScansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10137  	c.name = name
 10138  	return c
 10139  }
 10140  
 10141  // Fields allows partial responses to be retrieved. See
 10142  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10143  // details.
 10144  func (c *ProjectsLocationsDataScansDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansDeleteCall {
 10145  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10146  	return c
 10147  }
 10148  
 10149  // Context sets the context to be used in this call's Do method.
 10150  func (c *ProjectsLocationsDataScansDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataScansDeleteCall {
 10151  	c.ctx_ = ctx
 10152  	return c
 10153  }
 10154  
 10155  // Header returns a http.Header that can be modified by the caller to add
 10156  // headers to the request.
 10157  func (c *ProjectsLocationsDataScansDeleteCall) Header() http.Header {
 10158  	if c.header_ == nil {
 10159  		c.header_ = make(http.Header)
 10160  	}
 10161  	return c.header_
 10162  }
 10163  
 10164  func (c *ProjectsLocationsDataScansDeleteCall) doRequest(alt string) (*http.Response, error) {
 10165  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10166  	var body io.Reader = nil
 10167  	c.urlParams_.Set("alt", alt)
 10168  	c.urlParams_.Set("prettyPrint", "false")
 10169  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10170  	urls += "?" + c.urlParams_.Encode()
 10171  	req, err := http.NewRequest("DELETE", urls, body)
 10172  	if err != nil {
 10173  		return nil, err
 10174  	}
 10175  	req.Header = reqHeaders
 10176  	googleapi.Expand(req.URL, map[string]string{
 10177  		"name": c.name,
 10178  	})
 10179  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10180  }
 10181  
 10182  // Do executes the "dataplex.projects.locations.dataScans.delete" call.
 10183  // Any non-2xx status code is an error. Response headers are in either
 10184  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10185  // returned at all) in error.(*googleapi.Error).Header. Use
 10186  // googleapi.IsNotModified to check whether the returned error was because
 10187  // http.StatusNotModified was returned.
 10188  func (c *ProjectsLocationsDataScansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10189  	gensupport.SetOptions(c.urlParams_, opts...)
 10190  	res, err := c.doRequest("json")
 10191  	if res != nil && res.StatusCode == http.StatusNotModified {
 10192  		if res.Body != nil {
 10193  			res.Body.Close()
 10194  		}
 10195  		return nil, gensupport.WrapError(&googleapi.Error{
 10196  			Code:   res.StatusCode,
 10197  			Header: res.Header,
 10198  		})
 10199  	}
 10200  	if err != nil {
 10201  		return nil, err
 10202  	}
 10203  	defer googleapi.CloseBody(res)
 10204  	if err := googleapi.CheckResponse(res); err != nil {
 10205  		return nil, gensupport.WrapError(err)
 10206  	}
 10207  	ret := &GoogleLongrunningOperation{
 10208  		ServerResponse: googleapi.ServerResponse{
 10209  			Header:         res.Header,
 10210  			HTTPStatusCode: res.StatusCode,
 10211  		},
 10212  	}
 10213  	target := &ret
 10214  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10215  		return nil, err
 10216  	}
 10217  	return ret, nil
 10218  }
 10219  
 10220  type ProjectsLocationsDataScansGenerateDataQualityRulesCall struct {
 10221  	s                                                    *Service
 10222  	name                                                 string
 10223  	googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest
 10224  	urlParams_                                           gensupport.URLParams
 10225  	ctx_                                                 context.Context
 10226  	header_                                              http.Header
 10227  }
 10228  
 10229  // GenerateDataQualityRules: Generates recommended DataQualityRule from a data
 10230  // profiling DataScan.
 10231  //
 10232  //   - name: The name should be either * the name of a datascan with at least one
 10233  //     successful completed data profiling job, or * the name of a successful
 10234  //     completed data profiling datascan job.
 10235  func (r *ProjectsLocationsDataScansService) GenerateDataQualityRules(name string, googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest) *ProjectsLocationsDataScansGenerateDataQualityRulesCall {
 10236  	c := &ProjectsLocationsDataScansGenerateDataQualityRulesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10237  	c.name = name
 10238  	c.googleclouddataplexv1generatedataqualityrulesrequest = googleclouddataplexv1generatedataqualityrulesrequest
 10239  	return c
 10240  }
 10241  
 10242  // Fields allows partial responses to be retrieved. See
 10243  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10244  // details.
 10245  func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGenerateDataQualityRulesCall {
 10246  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10247  	return c
 10248  }
 10249  
 10250  // Context sets the context to be used in this call's Do method.
 10251  func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Context(ctx context.Context) *ProjectsLocationsDataScansGenerateDataQualityRulesCall {
 10252  	c.ctx_ = ctx
 10253  	return c
 10254  }
 10255  
 10256  // Header returns a http.Header that can be modified by the caller to add
 10257  // headers to the request.
 10258  func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Header() http.Header {
 10259  	if c.header_ == nil {
 10260  		c.header_ = make(http.Header)
 10261  	}
 10262  	return c.header_
 10263  }
 10264  
 10265  func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) doRequest(alt string) (*http.Response, error) {
 10266  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10267  	var body io.Reader = nil
 10268  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1generatedataqualityrulesrequest)
 10269  	if err != nil {
 10270  		return nil, err
 10271  	}
 10272  	c.urlParams_.Set("alt", alt)
 10273  	c.urlParams_.Set("prettyPrint", "false")
 10274  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDataQualityRules")
 10275  	urls += "?" + c.urlParams_.Encode()
 10276  	req, err := http.NewRequest("POST", urls, body)
 10277  	if err != nil {
 10278  		return nil, err
 10279  	}
 10280  	req.Header = reqHeaders
 10281  	googleapi.Expand(req.URL, map[string]string{
 10282  		"name": c.name,
 10283  	})
 10284  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10285  }
 10286  
 10287  // Do executes the "dataplex.projects.locations.dataScans.generateDataQualityRules" call.
 10288  // Any non-2xx status code is an error. Response headers are in either
 10289  // *GoogleCloudDataplexV1GenerateDataQualityRulesResponse.ServerResponse.Header
 10290  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 10291  // Use googleapi.IsNotModified to check whether the returned error was because
 10292  // http.StatusNotModified was returned.
 10293  func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1GenerateDataQualityRulesResponse, error) {
 10294  	gensupport.SetOptions(c.urlParams_, opts...)
 10295  	res, err := c.doRequest("json")
 10296  	if res != nil && res.StatusCode == http.StatusNotModified {
 10297  		if res.Body != nil {
 10298  			res.Body.Close()
 10299  		}
 10300  		return nil, gensupport.WrapError(&googleapi.Error{
 10301  			Code:   res.StatusCode,
 10302  			Header: res.Header,
 10303  		})
 10304  	}
 10305  	if err != nil {
 10306  		return nil, err
 10307  	}
 10308  	defer googleapi.CloseBody(res)
 10309  	if err := googleapi.CheckResponse(res); err != nil {
 10310  		return nil, gensupport.WrapError(err)
 10311  	}
 10312  	ret := &GoogleCloudDataplexV1GenerateDataQualityRulesResponse{
 10313  		ServerResponse: googleapi.ServerResponse{
 10314  			Header:         res.Header,
 10315  			HTTPStatusCode: res.StatusCode,
 10316  		},
 10317  	}
 10318  	target := &ret
 10319  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10320  		return nil, err
 10321  	}
 10322  	return ret, nil
 10323  }
 10324  
 10325  type ProjectsLocationsDataScansGetCall struct {
 10326  	s            *Service
 10327  	name         string
 10328  	urlParams_   gensupport.URLParams
 10329  	ifNoneMatch_ string
 10330  	ctx_         context.Context
 10331  	header_      http.Header
 10332  }
 10333  
 10334  // Get: Gets a DataScan resource.
 10335  //
 10336  //   - name: The resource name of the dataScan:
 10337  //     projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where
 10338  //     project refers to a project_id or project_number and location_id refers to
 10339  //     a GCP region.
 10340  func (r *ProjectsLocationsDataScansService) Get(name string) *ProjectsLocationsDataScansGetCall {
 10341  	c := &ProjectsLocationsDataScansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10342  	c.name = name
 10343  	return c
 10344  }
 10345  
 10346  // View sets the optional parameter "view": Select the DataScan view to return.
 10347  // Defaults to BASIC.
 10348  //
 10349  // Possible values:
 10350  //
 10351  //	"DATA_SCAN_VIEW_UNSPECIFIED" - The API will default to the BASIC view.
 10352  //	"BASIC" - Basic view that does not include spec and result.
 10353  //	"FULL" - Include everything.
 10354  func (c *ProjectsLocationsDataScansGetCall) View(view string) *ProjectsLocationsDataScansGetCall {
 10355  	c.urlParams_.Set("view", view)
 10356  	return c
 10357  }
 10358  
 10359  // Fields allows partial responses to be retrieved. See
 10360  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10361  // details.
 10362  func (c *ProjectsLocationsDataScansGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGetCall {
 10363  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10364  	return c
 10365  }
 10366  
 10367  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10368  // object's ETag matches the given value. This is useful for getting updates
 10369  // only after the object has changed since the last request.
 10370  func (c *ProjectsLocationsDataScansGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansGetCall {
 10371  	c.ifNoneMatch_ = entityTag
 10372  	return c
 10373  }
 10374  
 10375  // Context sets the context to be used in this call's Do method.
 10376  func (c *ProjectsLocationsDataScansGetCall) Context(ctx context.Context) *ProjectsLocationsDataScansGetCall {
 10377  	c.ctx_ = ctx
 10378  	return c
 10379  }
 10380  
 10381  // Header returns a http.Header that can be modified by the caller to add
 10382  // headers to the request.
 10383  func (c *ProjectsLocationsDataScansGetCall) Header() http.Header {
 10384  	if c.header_ == nil {
 10385  		c.header_ = make(http.Header)
 10386  	}
 10387  	return c.header_
 10388  }
 10389  
 10390  func (c *ProjectsLocationsDataScansGetCall) doRequest(alt string) (*http.Response, error) {
 10391  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10392  	if c.ifNoneMatch_ != "" {
 10393  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10394  	}
 10395  	var body io.Reader = nil
 10396  	c.urlParams_.Set("alt", alt)
 10397  	c.urlParams_.Set("prettyPrint", "false")
 10398  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10399  	urls += "?" + c.urlParams_.Encode()
 10400  	req, err := http.NewRequest("GET", urls, body)
 10401  	if err != nil {
 10402  		return nil, err
 10403  	}
 10404  	req.Header = reqHeaders
 10405  	googleapi.Expand(req.URL, map[string]string{
 10406  		"name": c.name,
 10407  	})
 10408  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10409  }
 10410  
 10411  // Do executes the "dataplex.projects.locations.dataScans.get" call.
 10412  // Any non-2xx status code is an error. Response headers are in either
 10413  // *GoogleCloudDataplexV1DataScan.ServerResponse.Header or (if a response was
 10414  // returned at all) in error.(*googleapi.Error).Header. Use
 10415  // googleapi.IsNotModified to check whether the returned error was because
 10416  // http.StatusNotModified was returned.
 10417  func (c *ProjectsLocationsDataScansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataScan, error) {
 10418  	gensupport.SetOptions(c.urlParams_, opts...)
 10419  	res, err := c.doRequest("json")
 10420  	if res != nil && res.StatusCode == http.StatusNotModified {
 10421  		if res.Body != nil {
 10422  			res.Body.Close()
 10423  		}
 10424  		return nil, gensupport.WrapError(&googleapi.Error{
 10425  			Code:   res.StatusCode,
 10426  			Header: res.Header,
 10427  		})
 10428  	}
 10429  	if err != nil {
 10430  		return nil, err
 10431  	}
 10432  	defer googleapi.CloseBody(res)
 10433  	if err := googleapi.CheckResponse(res); err != nil {
 10434  		return nil, gensupport.WrapError(err)
 10435  	}
 10436  	ret := &GoogleCloudDataplexV1DataScan{
 10437  		ServerResponse: googleapi.ServerResponse{
 10438  			Header:         res.Header,
 10439  			HTTPStatusCode: res.StatusCode,
 10440  		},
 10441  	}
 10442  	target := &ret
 10443  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10444  		return nil, err
 10445  	}
 10446  	return ret, nil
 10447  }
 10448  
 10449  type ProjectsLocationsDataScansGetIamPolicyCall struct {
 10450  	s            *Service
 10451  	resource     string
 10452  	urlParams_   gensupport.URLParams
 10453  	ifNoneMatch_ string
 10454  	ctx_         context.Context
 10455  	header_      http.Header
 10456  }
 10457  
 10458  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 10459  // empty policy if the resource exists and does not have a policy set.
 10460  //
 10461  //   - resource: REQUIRED: The resource for which the policy is being requested.
 10462  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10463  //     for the appropriate value for this field.
 10464  func (r *ProjectsLocationsDataScansService) GetIamPolicy(resource string) *ProjectsLocationsDataScansGetIamPolicyCall {
 10465  	c := &ProjectsLocationsDataScansGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10466  	c.resource = resource
 10467  	return c
 10468  }
 10469  
 10470  // OptionsRequestedPolicyVersion sets the optional parameter
 10471  // "options.requestedPolicyVersion": The maximum policy version that will be
 10472  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 10473  // an invalid value will be rejected.Requests for policies with any conditional
 10474  // role bindings must specify version 3. Policies with no conditional role
 10475  // bindings may specify any valid value or leave the field unset.The policy in
 10476  // the response might use the policy version that you specified, or it might
 10477  // use a lower policy version. For example, if you specify version 3, but the
 10478  // policy has no conditional role bindings, the response uses version 1.To
 10479  // learn which resources support conditions in their IAM policies, see the IAM
 10480  // documentation
 10481  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 10482  func (c *ProjectsLocationsDataScansGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataScansGetIamPolicyCall {
 10483  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 10484  	return c
 10485  }
 10486  
 10487  // Fields allows partial responses to be retrieved. See
 10488  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10489  // details.
 10490  func (c *ProjectsLocationsDataScansGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGetIamPolicyCall {
 10491  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10492  	return c
 10493  }
 10494  
 10495  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10496  // object's ETag matches the given value. This is useful for getting updates
 10497  // only after the object has changed since the last request.
 10498  func (c *ProjectsLocationsDataScansGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansGetIamPolicyCall {
 10499  	c.ifNoneMatch_ = entityTag
 10500  	return c
 10501  }
 10502  
 10503  // Context sets the context to be used in this call's Do method.
 10504  func (c *ProjectsLocationsDataScansGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataScansGetIamPolicyCall {
 10505  	c.ctx_ = ctx
 10506  	return c
 10507  }
 10508  
 10509  // Header returns a http.Header that can be modified by the caller to add
 10510  // headers to the request.
 10511  func (c *ProjectsLocationsDataScansGetIamPolicyCall) Header() http.Header {
 10512  	if c.header_ == nil {
 10513  		c.header_ = make(http.Header)
 10514  	}
 10515  	return c.header_
 10516  }
 10517  
 10518  func (c *ProjectsLocationsDataScansGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 10519  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10520  	if c.ifNoneMatch_ != "" {
 10521  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10522  	}
 10523  	var body io.Reader = nil
 10524  	c.urlParams_.Set("alt", alt)
 10525  	c.urlParams_.Set("prettyPrint", "false")
 10526  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 10527  	urls += "?" + c.urlParams_.Encode()
 10528  	req, err := http.NewRequest("GET", urls, body)
 10529  	if err != nil {
 10530  		return nil, err
 10531  	}
 10532  	req.Header = reqHeaders
 10533  	googleapi.Expand(req.URL, map[string]string{
 10534  		"resource": c.resource,
 10535  	})
 10536  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10537  }
 10538  
 10539  // Do executes the "dataplex.projects.locations.dataScans.getIamPolicy" call.
 10540  // Any non-2xx status code is an error. Response headers are in either
 10541  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 10542  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10543  // check whether the returned error was because http.StatusNotModified was
 10544  // returned.
 10545  func (c *ProjectsLocationsDataScansGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 10546  	gensupport.SetOptions(c.urlParams_, opts...)
 10547  	res, err := c.doRequest("json")
 10548  	if res != nil && res.StatusCode == http.StatusNotModified {
 10549  		if res.Body != nil {
 10550  			res.Body.Close()
 10551  		}
 10552  		return nil, gensupport.WrapError(&googleapi.Error{
 10553  			Code:   res.StatusCode,
 10554  			Header: res.Header,
 10555  		})
 10556  	}
 10557  	if err != nil {
 10558  		return nil, err
 10559  	}
 10560  	defer googleapi.CloseBody(res)
 10561  	if err := googleapi.CheckResponse(res); err != nil {
 10562  		return nil, gensupport.WrapError(err)
 10563  	}
 10564  	ret := &GoogleIamV1Policy{
 10565  		ServerResponse: googleapi.ServerResponse{
 10566  			Header:         res.Header,
 10567  			HTTPStatusCode: res.StatusCode,
 10568  		},
 10569  	}
 10570  	target := &ret
 10571  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10572  		return nil, err
 10573  	}
 10574  	return ret, nil
 10575  }
 10576  
 10577  type ProjectsLocationsDataScansListCall struct {
 10578  	s            *Service
 10579  	parent       string
 10580  	urlParams_   gensupport.URLParams
 10581  	ifNoneMatch_ string
 10582  	ctx_         context.Context
 10583  	header_      http.Header
 10584  }
 10585  
 10586  // List: Lists DataScans.
 10587  //
 10588  //   - parent: The resource name of the parent location:
 10589  //     projects/{project}/locations/{location_id} where project refers to a
 10590  //     project_id or project_number and location_id refers to a GCP region.
 10591  func (r *ProjectsLocationsDataScansService) List(parent string) *ProjectsLocationsDataScansListCall {
 10592  	c := &ProjectsLocationsDataScansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10593  	c.parent = parent
 10594  	return c
 10595  }
 10596  
 10597  // Filter sets the optional parameter "filter": Filter request.
 10598  func (c *ProjectsLocationsDataScansListCall) Filter(filter string) *ProjectsLocationsDataScansListCall {
 10599  	c.urlParams_.Set("filter", filter)
 10600  	return c
 10601  }
 10602  
 10603  // OrderBy sets the optional parameter "orderBy": Order by fields (name or
 10604  // create_time) for the result. If not specified, the ordering is undefined.
 10605  func (c *ProjectsLocationsDataScansListCall) OrderBy(orderBy string) *ProjectsLocationsDataScansListCall {
 10606  	c.urlParams_.Set("orderBy", orderBy)
 10607  	return c
 10608  }
 10609  
 10610  // PageSize sets the optional parameter "pageSize": Maximum number of dataScans
 10611  // to return. The service may return fewer than this value. If unspecified, at
 10612  // most 500 scans will be returned. The maximum value is 1000; values above
 10613  // 1000 will be coerced to 1000.
 10614  func (c *ProjectsLocationsDataScansListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansListCall {
 10615  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10616  	return c
 10617  }
 10618  
 10619  // PageToken sets the optional parameter "pageToken": Page token received from
 10620  // a previous ListDataScans call. Provide this to retrieve the subsequent page.
 10621  // When paginating, all other parameters provided to ListDataScans must match
 10622  // the call that provided the page token.
 10623  func (c *ProjectsLocationsDataScansListCall) PageToken(pageToken string) *ProjectsLocationsDataScansListCall {
 10624  	c.urlParams_.Set("pageToken", pageToken)
 10625  	return c
 10626  }
 10627  
 10628  // Fields allows partial responses to be retrieved. See
 10629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10630  // details.
 10631  func (c *ProjectsLocationsDataScansListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansListCall {
 10632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10633  	return c
 10634  }
 10635  
 10636  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10637  // object's ETag matches the given value. This is useful for getting updates
 10638  // only after the object has changed since the last request.
 10639  func (c *ProjectsLocationsDataScansListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansListCall {
 10640  	c.ifNoneMatch_ = entityTag
 10641  	return c
 10642  }
 10643  
 10644  // Context sets the context to be used in this call's Do method.
 10645  func (c *ProjectsLocationsDataScansListCall) Context(ctx context.Context) *ProjectsLocationsDataScansListCall {
 10646  	c.ctx_ = ctx
 10647  	return c
 10648  }
 10649  
 10650  // Header returns a http.Header that can be modified by the caller to add
 10651  // headers to the request.
 10652  func (c *ProjectsLocationsDataScansListCall) Header() http.Header {
 10653  	if c.header_ == nil {
 10654  		c.header_ = make(http.Header)
 10655  	}
 10656  	return c.header_
 10657  }
 10658  
 10659  func (c *ProjectsLocationsDataScansListCall) doRequest(alt string) (*http.Response, error) {
 10660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10661  	if c.ifNoneMatch_ != "" {
 10662  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10663  	}
 10664  	var body io.Reader = nil
 10665  	c.urlParams_.Set("alt", alt)
 10666  	c.urlParams_.Set("prettyPrint", "false")
 10667  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataScans")
 10668  	urls += "?" + c.urlParams_.Encode()
 10669  	req, err := http.NewRequest("GET", urls, body)
 10670  	if err != nil {
 10671  		return nil, err
 10672  	}
 10673  	req.Header = reqHeaders
 10674  	googleapi.Expand(req.URL, map[string]string{
 10675  		"parent": c.parent,
 10676  	})
 10677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10678  }
 10679  
 10680  // Do executes the "dataplex.projects.locations.dataScans.list" call.
 10681  // Any non-2xx status code is an error. Response headers are in either
 10682  // *GoogleCloudDataplexV1ListDataScansResponse.ServerResponse.Header or (if a
 10683  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10684  // googleapi.IsNotModified to check whether the returned error was because
 10685  // http.StatusNotModified was returned.
 10686  func (c *ProjectsLocationsDataScansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataScansResponse, error) {
 10687  	gensupport.SetOptions(c.urlParams_, opts...)
 10688  	res, err := c.doRequest("json")
 10689  	if res != nil && res.StatusCode == http.StatusNotModified {
 10690  		if res.Body != nil {
 10691  			res.Body.Close()
 10692  		}
 10693  		return nil, gensupport.WrapError(&googleapi.Error{
 10694  			Code:   res.StatusCode,
 10695  			Header: res.Header,
 10696  		})
 10697  	}
 10698  	if err != nil {
 10699  		return nil, err
 10700  	}
 10701  	defer googleapi.CloseBody(res)
 10702  	if err := googleapi.CheckResponse(res); err != nil {
 10703  		return nil, gensupport.WrapError(err)
 10704  	}
 10705  	ret := &GoogleCloudDataplexV1ListDataScansResponse{
 10706  		ServerResponse: googleapi.ServerResponse{
 10707  			Header:         res.Header,
 10708  			HTTPStatusCode: res.StatusCode,
 10709  		},
 10710  	}
 10711  	target := &ret
 10712  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10713  		return nil, err
 10714  	}
 10715  	return ret, nil
 10716  }
 10717  
 10718  // Pages invokes f for each page of results.
 10719  // A non-nil error returned from f will halt the iteration.
 10720  // The provided context supersedes any context provided to the Context method.
 10721  func (c *ProjectsLocationsDataScansListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataScansResponse) error) error {
 10722  	c.ctx_ = ctx
 10723  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10724  	for {
 10725  		x, err := c.Do()
 10726  		if err != nil {
 10727  			return err
 10728  		}
 10729  		if err := f(x); err != nil {
 10730  			return err
 10731  		}
 10732  		if x.NextPageToken == "" {
 10733  			return nil
 10734  		}
 10735  		c.PageToken(x.NextPageToken)
 10736  	}
 10737  }
 10738  
 10739  type ProjectsLocationsDataScansPatchCall struct {
 10740  	s                             *Service
 10741  	name                          string
 10742  	googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan
 10743  	urlParams_                    gensupport.URLParams
 10744  	ctx_                          context.Context
 10745  	header_                       http.Header
 10746  }
 10747  
 10748  // Patch: Updates a DataScan resource.
 10749  //
 10750  //   - name: Output only. The relative resource name of the scan, of the form:
 10751  //     projects/{project}/locations/{location_id}/dataScans/{datascan_id}, where
 10752  //     project refers to a project_id or project_number and location_id refers to
 10753  //     a GCP region.
 10754  func (r *ProjectsLocationsDataScansService) Patch(name string, googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan) *ProjectsLocationsDataScansPatchCall {
 10755  	c := &ProjectsLocationsDataScansPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10756  	c.name = name
 10757  	c.googleclouddataplexv1datascan = googleclouddataplexv1datascan
 10758  	return c
 10759  }
 10760  
 10761  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 10762  // fields to update.
 10763  func (c *ProjectsLocationsDataScansPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataScansPatchCall {
 10764  	c.urlParams_.Set("updateMask", updateMask)
 10765  	return c
 10766  }
 10767  
 10768  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 10769  // request, but do not perform mutations. The default is false.
 10770  func (c *ProjectsLocationsDataScansPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataScansPatchCall {
 10771  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 10772  	return c
 10773  }
 10774  
 10775  // Fields allows partial responses to be retrieved. See
 10776  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10777  // details.
 10778  func (c *ProjectsLocationsDataScansPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansPatchCall {
 10779  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10780  	return c
 10781  }
 10782  
 10783  // Context sets the context to be used in this call's Do method.
 10784  func (c *ProjectsLocationsDataScansPatchCall) Context(ctx context.Context) *ProjectsLocationsDataScansPatchCall {
 10785  	c.ctx_ = ctx
 10786  	return c
 10787  }
 10788  
 10789  // Header returns a http.Header that can be modified by the caller to add
 10790  // headers to the request.
 10791  func (c *ProjectsLocationsDataScansPatchCall) Header() http.Header {
 10792  	if c.header_ == nil {
 10793  		c.header_ = make(http.Header)
 10794  	}
 10795  	return c.header_
 10796  }
 10797  
 10798  func (c *ProjectsLocationsDataScansPatchCall) doRequest(alt string) (*http.Response, error) {
 10799  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10800  	var body io.Reader = nil
 10801  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datascan)
 10802  	if err != nil {
 10803  		return nil, err
 10804  	}
 10805  	c.urlParams_.Set("alt", alt)
 10806  	c.urlParams_.Set("prettyPrint", "false")
 10807  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10808  	urls += "?" + c.urlParams_.Encode()
 10809  	req, err := http.NewRequest("PATCH", urls, body)
 10810  	if err != nil {
 10811  		return nil, err
 10812  	}
 10813  	req.Header = reqHeaders
 10814  	googleapi.Expand(req.URL, map[string]string{
 10815  		"name": c.name,
 10816  	})
 10817  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10818  }
 10819  
 10820  // Do executes the "dataplex.projects.locations.dataScans.patch" call.
 10821  // Any non-2xx status code is an error. Response headers are in either
 10822  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10823  // returned at all) in error.(*googleapi.Error).Header. Use
 10824  // googleapi.IsNotModified to check whether the returned error was because
 10825  // http.StatusNotModified was returned.
 10826  func (c *ProjectsLocationsDataScansPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10827  	gensupport.SetOptions(c.urlParams_, opts...)
 10828  	res, err := c.doRequest("json")
 10829  	if res != nil && res.StatusCode == http.StatusNotModified {
 10830  		if res.Body != nil {
 10831  			res.Body.Close()
 10832  		}
 10833  		return nil, gensupport.WrapError(&googleapi.Error{
 10834  			Code:   res.StatusCode,
 10835  			Header: res.Header,
 10836  		})
 10837  	}
 10838  	if err != nil {
 10839  		return nil, err
 10840  	}
 10841  	defer googleapi.CloseBody(res)
 10842  	if err := googleapi.CheckResponse(res); err != nil {
 10843  		return nil, gensupport.WrapError(err)
 10844  	}
 10845  	ret := &GoogleLongrunningOperation{
 10846  		ServerResponse: googleapi.ServerResponse{
 10847  			Header:         res.Header,
 10848  			HTTPStatusCode: res.StatusCode,
 10849  		},
 10850  	}
 10851  	target := &ret
 10852  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10853  		return nil, err
 10854  	}
 10855  	return ret, nil
 10856  }
 10857  
 10858  type ProjectsLocationsDataScansRunCall struct {
 10859  	s                                       *Service
 10860  	name                                    string
 10861  	googleclouddataplexv1rundatascanrequest *GoogleCloudDataplexV1RunDataScanRequest
 10862  	urlParams_                              gensupport.URLParams
 10863  	ctx_                                    context.Context
 10864  	header_                                 http.Header
 10865  }
 10866  
 10867  // Run: Runs an on-demand execution of a DataScan
 10868  //
 10869  //   - name: The resource name of the DataScan:
 10870  //     projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where
 10871  //     project refers to a project_id or project_number and location_id refers to
 10872  //     a GCP region.Only OnDemand data scans are allowed.
 10873  func (r *ProjectsLocationsDataScansService) Run(name string, googleclouddataplexv1rundatascanrequest *GoogleCloudDataplexV1RunDataScanRequest) *ProjectsLocationsDataScansRunCall {
 10874  	c := &ProjectsLocationsDataScansRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10875  	c.name = name
 10876  	c.googleclouddataplexv1rundatascanrequest = googleclouddataplexv1rundatascanrequest
 10877  	return c
 10878  }
 10879  
 10880  // Fields allows partial responses to be retrieved. See
 10881  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10882  // details.
 10883  func (c *ProjectsLocationsDataScansRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansRunCall {
 10884  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10885  	return c
 10886  }
 10887  
 10888  // Context sets the context to be used in this call's Do method.
 10889  func (c *ProjectsLocationsDataScansRunCall) Context(ctx context.Context) *ProjectsLocationsDataScansRunCall {
 10890  	c.ctx_ = ctx
 10891  	return c
 10892  }
 10893  
 10894  // Header returns a http.Header that can be modified by the caller to add
 10895  // headers to the request.
 10896  func (c *ProjectsLocationsDataScansRunCall) Header() http.Header {
 10897  	if c.header_ == nil {
 10898  		c.header_ = make(http.Header)
 10899  	}
 10900  	return c.header_
 10901  }
 10902  
 10903  func (c *ProjectsLocationsDataScansRunCall) doRequest(alt string) (*http.Response, error) {
 10904  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10905  	var body io.Reader = nil
 10906  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1rundatascanrequest)
 10907  	if err != nil {
 10908  		return nil, err
 10909  	}
 10910  	c.urlParams_.Set("alt", alt)
 10911  	c.urlParams_.Set("prettyPrint", "false")
 10912  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
 10913  	urls += "?" + c.urlParams_.Encode()
 10914  	req, err := http.NewRequest("POST", urls, body)
 10915  	if err != nil {
 10916  		return nil, err
 10917  	}
 10918  	req.Header = reqHeaders
 10919  	googleapi.Expand(req.URL, map[string]string{
 10920  		"name": c.name,
 10921  	})
 10922  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10923  }
 10924  
 10925  // Do executes the "dataplex.projects.locations.dataScans.run" call.
 10926  // Any non-2xx status code is an error. Response headers are in either
 10927  // *GoogleCloudDataplexV1RunDataScanResponse.ServerResponse.Header or (if a
 10928  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10929  // googleapi.IsNotModified to check whether the returned error was because
 10930  // http.StatusNotModified was returned.
 10931  func (c *ProjectsLocationsDataScansRunCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1RunDataScanResponse, error) {
 10932  	gensupport.SetOptions(c.urlParams_, opts...)
 10933  	res, err := c.doRequest("json")
 10934  	if res != nil && res.StatusCode == http.StatusNotModified {
 10935  		if res.Body != nil {
 10936  			res.Body.Close()
 10937  		}
 10938  		return nil, gensupport.WrapError(&googleapi.Error{
 10939  			Code:   res.StatusCode,
 10940  			Header: res.Header,
 10941  		})
 10942  	}
 10943  	if err != nil {
 10944  		return nil, err
 10945  	}
 10946  	defer googleapi.CloseBody(res)
 10947  	if err := googleapi.CheckResponse(res); err != nil {
 10948  		return nil, gensupport.WrapError(err)
 10949  	}
 10950  	ret := &GoogleCloudDataplexV1RunDataScanResponse{
 10951  		ServerResponse: googleapi.ServerResponse{
 10952  			Header:         res.Header,
 10953  			HTTPStatusCode: res.StatusCode,
 10954  		},
 10955  	}
 10956  	target := &ret
 10957  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10958  		return nil, err
 10959  	}
 10960  	return ret, nil
 10961  }
 10962  
 10963  type ProjectsLocationsDataScansSetIamPolicyCall struct {
 10964  	s                              *Service
 10965  	resource                       string
 10966  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 10967  	urlParams_                     gensupport.URLParams
 10968  	ctx_                           context.Context
 10969  	header_                        http.Header
 10970  }
 10971  
 10972  // SetIamPolicy: Sets the access control policy on the specified resource.
 10973  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 10974  // PERMISSION_DENIED errors.
 10975  //
 10976  //   - resource: REQUIRED: The resource for which the policy is being specified.
 10977  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10978  //     for the appropriate value for this field.
 10979  func (r *ProjectsLocationsDataScansService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataScansSetIamPolicyCall {
 10980  	c := &ProjectsLocationsDataScansSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10981  	c.resource = resource
 10982  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 10983  	return c
 10984  }
 10985  
 10986  // Fields allows partial responses to be retrieved. See
 10987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10988  // details.
 10989  func (c *ProjectsLocationsDataScansSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansSetIamPolicyCall {
 10990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10991  	return c
 10992  }
 10993  
 10994  // Context sets the context to be used in this call's Do method.
 10995  func (c *ProjectsLocationsDataScansSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataScansSetIamPolicyCall {
 10996  	c.ctx_ = ctx
 10997  	return c
 10998  }
 10999  
 11000  // Header returns a http.Header that can be modified by the caller to add
 11001  // headers to the request.
 11002  func (c *ProjectsLocationsDataScansSetIamPolicyCall) Header() http.Header {
 11003  	if c.header_ == nil {
 11004  		c.header_ = make(http.Header)
 11005  	}
 11006  	return c.header_
 11007  }
 11008  
 11009  func (c *ProjectsLocationsDataScansSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11010  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11011  	var body io.Reader = nil
 11012  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 11013  	if err != nil {
 11014  		return nil, err
 11015  	}
 11016  	c.urlParams_.Set("alt", alt)
 11017  	c.urlParams_.Set("prettyPrint", "false")
 11018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 11019  	urls += "?" + c.urlParams_.Encode()
 11020  	req, err := http.NewRequest("POST", urls, body)
 11021  	if err != nil {
 11022  		return nil, err
 11023  	}
 11024  	req.Header = reqHeaders
 11025  	googleapi.Expand(req.URL, map[string]string{
 11026  		"resource": c.resource,
 11027  	})
 11028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11029  }
 11030  
 11031  // Do executes the "dataplex.projects.locations.dataScans.setIamPolicy" call.
 11032  // Any non-2xx status code is an error. Response headers are in either
 11033  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 11034  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11035  // check whether the returned error was because http.StatusNotModified was
 11036  // returned.
 11037  func (c *ProjectsLocationsDataScansSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 11038  	gensupport.SetOptions(c.urlParams_, opts...)
 11039  	res, err := c.doRequest("json")
 11040  	if res != nil && res.StatusCode == http.StatusNotModified {
 11041  		if res.Body != nil {
 11042  			res.Body.Close()
 11043  		}
 11044  		return nil, gensupport.WrapError(&googleapi.Error{
 11045  			Code:   res.StatusCode,
 11046  			Header: res.Header,
 11047  		})
 11048  	}
 11049  	if err != nil {
 11050  		return nil, err
 11051  	}
 11052  	defer googleapi.CloseBody(res)
 11053  	if err := googleapi.CheckResponse(res); err != nil {
 11054  		return nil, gensupport.WrapError(err)
 11055  	}
 11056  	ret := &GoogleIamV1Policy{
 11057  		ServerResponse: googleapi.ServerResponse{
 11058  			Header:         res.Header,
 11059  			HTTPStatusCode: res.StatusCode,
 11060  		},
 11061  	}
 11062  	target := &ret
 11063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11064  		return nil, err
 11065  	}
 11066  	return ret, nil
 11067  }
 11068  
 11069  type ProjectsLocationsDataScansTestIamPermissionsCall struct {
 11070  	s                                    *Service
 11071  	resource                             string
 11072  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 11073  	urlParams_                           gensupport.URLParams
 11074  	ctx_                                 context.Context
 11075  	header_                              http.Header
 11076  }
 11077  
 11078  // TestIamPermissions: Returns permissions that a caller has on the specified
 11079  // resource. If the resource does not exist, this will return an empty set of
 11080  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 11081  // used for building permission-aware UIs and command-line tools, not for
 11082  // authorization checking. This operation may "fail open" without warning.
 11083  //
 11084  //   - resource: REQUIRED: The resource for which the policy detail is being
 11085  //     requested. See Resource names
 11086  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 11087  //     value for this field.
 11088  func (r *ProjectsLocationsDataScansService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataScansTestIamPermissionsCall {
 11089  	c := &ProjectsLocationsDataScansTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11090  	c.resource = resource
 11091  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 11092  	return c
 11093  }
 11094  
 11095  // Fields allows partial responses to be retrieved. See
 11096  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11097  // details.
 11098  func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansTestIamPermissionsCall {
 11099  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11100  	return c
 11101  }
 11102  
 11103  // Context sets the context to be used in this call's Do method.
 11104  func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataScansTestIamPermissionsCall {
 11105  	c.ctx_ = ctx
 11106  	return c
 11107  }
 11108  
 11109  // Header returns a http.Header that can be modified by the caller to add
 11110  // headers to the request.
 11111  func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Header() http.Header {
 11112  	if c.header_ == nil {
 11113  		c.header_ = make(http.Header)
 11114  	}
 11115  	return c.header_
 11116  }
 11117  
 11118  func (c *ProjectsLocationsDataScansTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 11119  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11120  	var body io.Reader = nil
 11121  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 11122  	if err != nil {
 11123  		return nil, err
 11124  	}
 11125  	c.urlParams_.Set("alt", alt)
 11126  	c.urlParams_.Set("prettyPrint", "false")
 11127  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 11128  	urls += "?" + c.urlParams_.Encode()
 11129  	req, err := http.NewRequest("POST", urls, body)
 11130  	if err != nil {
 11131  		return nil, err
 11132  	}
 11133  	req.Header = reqHeaders
 11134  	googleapi.Expand(req.URL, map[string]string{
 11135  		"resource": c.resource,
 11136  	})
 11137  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11138  }
 11139  
 11140  // Do executes the "dataplex.projects.locations.dataScans.testIamPermissions" call.
 11141  // Any non-2xx status code is an error. Response headers are in either
 11142  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 11143  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11144  // googleapi.IsNotModified to check whether the returned error was because
 11145  // http.StatusNotModified was returned.
 11146  func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 11147  	gensupport.SetOptions(c.urlParams_, opts...)
 11148  	res, err := c.doRequest("json")
 11149  	if res != nil && res.StatusCode == http.StatusNotModified {
 11150  		if res.Body != nil {
 11151  			res.Body.Close()
 11152  		}
 11153  		return nil, gensupport.WrapError(&googleapi.Error{
 11154  			Code:   res.StatusCode,
 11155  			Header: res.Header,
 11156  		})
 11157  	}
 11158  	if err != nil {
 11159  		return nil, err
 11160  	}
 11161  	defer googleapi.CloseBody(res)
 11162  	if err := googleapi.CheckResponse(res); err != nil {
 11163  		return nil, gensupport.WrapError(err)
 11164  	}
 11165  	ret := &GoogleIamV1TestIamPermissionsResponse{
 11166  		ServerResponse: googleapi.ServerResponse{
 11167  			Header:         res.Header,
 11168  			HTTPStatusCode: res.StatusCode,
 11169  		},
 11170  	}
 11171  	target := &ret
 11172  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11173  		return nil, err
 11174  	}
 11175  	return ret, nil
 11176  }
 11177  
 11178  type ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall struct {
 11179  	s                                                    *Service
 11180  	name                                                 string
 11181  	googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest
 11182  	urlParams_                                           gensupport.URLParams
 11183  	ctx_                                                 context.Context
 11184  	header_                                              http.Header
 11185  }
 11186  
 11187  // GenerateDataQualityRules: Generates recommended DataQualityRule from a data
 11188  // profiling DataScan.
 11189  //
 11190  //   - name: The name should be either * the name of a datascan with at least one
 11191  //     successful completed data profiling job, or * the name of a successful
 11192  //     completed data profiling datascan job.
 11193  func (r *ProjectsLocationsDataScansJobsService) GenerateDataQualityRules(name string, googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest) *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall {
 11194  	c := &ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11195  	c.name = name
 11196  	c.googleclouddataplexv1generatedataqualityrulesrequest = googleclouddataplexv1generatedataqualityrulesrequest
 11197  	return c
 11198  }
 11199  
 11200  // Fields allows partial responses to be retrieved. See
 11201  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11202  // details.
 11203  func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall {
 11204  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11205  	return c
 11206  }
 11207  
 11208  // Context sets the context to be used in this call's Do method.
 11209  func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall {
 11210  	c.ctx_ = ctx
 11211  	return c
 11212  }
 11213  
 11214  // Header returns a http.Header that can be modified by the caller to add
 11215  // headers to the request.
 11216  func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Header() http.Header {
 11217  	if c.header_ == nil {
 11218  		c.header_ = make(http.Header)
 11219  	}
 11220  	return c.header_
 11221  }
 11222  
 11223  func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) doRequest(alt string) (*http.Response, error) {
 11224  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11225  	var body io.Reader = nil
 11226  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1generatedataqualityrulesrequest)
 11227  	if err != nil {
 11228  		return nil, err
 11229  	}
 11230  	c.urlParams_.Set("alt", alt)
 11231  	c.urlParams_.Set("prettyPrint", "false")
 11232  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDataQualityRules")
 11233  	urls += "?" + c.urlParams_.Encode()
 11234  	req, err := http.NewRequest("POST", urls, body)
 11235  	if err != nil {
 11236  		return nil, err
 11237  	}
 11238  	req.Header = reqHeaders
 11239  	googleapi.Expand(req.URL, map[string]string{
 11240  		"name": c.name,
 11241  	})
 11242  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11243  }
 11244  
 11245  // Do executes the "dataplex.projects.locations.dataScans.jobs.generateDataQualityRules" call.
 11246  // Any non-2xx status code is an error. Response headers are in either
 11247  // *GoogleCloudDataplexV1GenerateDataQualityRulesResponse.ServerResponse.Header
 11248  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 11249  // Use googleapi.IsNotModified to check whether the returned error was because
 11250  // http.StatusNotModified was returned.
 11251  func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1GenerateDataQualityRulesResponse, error) {
 11252  	gensupport.SetOptions(c.urlParams_, opts...)
 11253  	res, err := c.doRequest("json")
 11254  	if res != nil && res.StatusCode == http.StatusNotModified {
 11255  		if res.Body != nil {
 11256  			res.Body.Close()
 11257  		}
 11258  		return nil, gensupport.WrapError(&googleapi.Error{
 11259  			Code:   res.StatusCode,
 11260  			Header: res.Header,
 11261  		})
 11262  	}
 11263  	if err != nil {
 11264  		return nil, err
 11265  	}
 11266  	defer googleapi.CloseBody(res)
 11267  	if err := googleapi.CheckResponse(res); err != nil {
 11268  		return nil, gensupport.WrapError(err)
 11269  	}
 11270  	ret := &GoogleCloudDataplexV1GenerateDataQualityRulesResponse{
 11271  		ServerResponse: googleapi.ServerResponse{
 11272  			Header:         res.Header,
 11273  			HTTPStatusCode: res.StatusCode,
 11274  		},
 11275  	}
 11276  	target := &ret
 11277  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11278  		return nil, err
 11279  	}
 11280  	return ret, nil
 11281  }
 11282  
 11283  type ProjectsLocationsDataScansJobsGetCall struct {
 11284  	s            *Service
 11285  	name         string
 11286  	urlParams_   gensupport.URLParams
 11287  	ifNoneMatch_ string
 11288  	ctx_         context.Context
 11289  	header_      http.Header
 11290  }
 11291  
 11292  // Get: Gets a DataScanJob resource.
 11293  //
 11294  //   - name: The resource name of the DataScanJob:
 11295  //     projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{d
 11296  //     ata_scan_job_id} where project refers to a project_id or project_number
 11297  //     and location_id refers to a GCP region.
 11298  func (r *ProjectsLocationsDataScansJobsService) Get(name string) *ProjectsLocationsDataScansJobsGetCall {
 11299  	c := &ProjectsLocationsDataScansJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11300  	c.name = name
 11301  	return c
 11302  }
 11303  
 11304  // View sets the optional parameter "view": Select the DataScanJob view to
 11305  // return. Defaults to BASIC.
 11306  //
 11307  // Possible values:
 11308  //
 11309  //	"DATA_SCAN_JOB_VIEW_UNSPECIFIED" - The API will default to the BASIC view.
 11310  //	"BASIC" - Basic view that does not include spec and result.
 11311  //	"FULL" - Include everything.
 11312  func (c *ProjectsLocationsDataScansJobsGetCall) View(view string) *ProjectsLocationsDataScansJobsGetCall {
 11313  	c.urlParams_.Set("view", view)
 11314  	return c
 11315  }
 11316  
 11317  // Fields allows partial responses to be retrieved. See
 11318  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11319  // details.
 11320  func (c *ProjectsLocationsDataScansJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsGetCall {
 11321  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11322  	return c
 11323  }
 11324  
 11325  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11326  // object's ETag matches the given value. This is useful for getting updates
 11327  // only after the object has changed since the last request.
 11328  func (c *ProjectsLocationsDataScansJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansJobsGetCall {
 11329  	c.ifNoneMatch_ = entityTag
 11330  	return c
 11331  }
 11332  
 11333  // Context sets the context to be used in this call's Do method.
 11334  func (c *ProjectsLocationsDataScansJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsGetCall {
 11335  	c.ctx_ = ctx
 11336  	return c
 11337  }
 11338  
 11339  // Header returns a http.Header that can be modified by the caller to add
 11340  // headers to the request.
 11341  func (c *ProjectsLocationsDataScansJobsGetCall) Header() http.Header {
 11342  	if c.header_ == nil {
 11343  		c.header_ = make(http.Header)
 11344  	}
 11345  	return c.header_
 11346  }
 11347  
 11348  func (c *ProjectsLocationsDataScansJobsGetCall) doRequest(alt string) (*http.Response, error) {
 11349  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11350  	if c.ifNoneMatch_ != "" {
 11351  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11352  	}
 11353  	var body io.Reader = nil
 11354  	c.urlParams_.Set("alt", alt)
 11355  	c.urlParams_.Set("prettyPrint", "false")
 11356  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11357  	urls += "?" + c.urlParams_.Encode()
 11358  	req, err := http.NewRequest("GET", urls, body)
 11359  	if err != nil {
 11360  		return nil, err
 11361  	}
 11362  	req.Header = reqHeaders
 11363  	googleapi.Expand(req.URL, map[string]string{
 11364  		"name": c.name,
 11365  	})
 11366  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11367  }
 11368  
 11369  // Do executes the "dataplex.projects.locations.dataScans.jobs.get" call.
 11370  // Any non-2xx status code is an error. Response headers are in either
 11371  // *GoogleCloudDataplexV1DataScanJob.ServerResponse.Header or (if a response
 11372  // was returned at all) in error.(*googleapi.Error).Header. Use
 11373  // googleapi.IsNotModified to check whether the returned error was because
 11374  // http.StatusNotModified was returned.
 11375  func (c *ProjectsLocationsDataScansJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataScanJob, error) {
 11376  	gensupport.SetOptions(c.urlParams_, opts...)
 11377  	res, err := c.doRequest("json")
 11378  	if res != nil && res.StatusCode == http.StatusNotModified {
 11379  		if res.Body != nil {
 11380  			res.Body.Close()
 11381  		}
 11382  		return nil, gensupport.WrapError(&googleapi.Error{
 11383  			Code:   res.StatusCode,
 11384  			Header: res.Header,
 11385  		})
 11386  	}
 11387  	if err != nil {
 11388  		return nil, err
 11389  	}
 11390  	defer googleapi.CloseBody(res)
 11391  	if err := googleapi.CheckResponse(res); err != nil {
 11392  		return nil, gensupport.WrapError(err)
 11393  	}
 11394  	ret := &GoogleCloudDataplexV1DataScanJob{
 11395  		ServerResponse: googleapi.ServerResponse{
 11396  			Header:         res.Header,
 11397  			HTTPStatusCode: res.StatusCode,
 11398  		},
 11399  	}
 11400  	target := &ret
 11401  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11402  		return nil, err
 11403  	}
 11404  	return ret, nil
 11405  }
 11406  
 11407  type ProjectsLocationsDataScansJobsListCall struct {
 11408  	s            *Service
 11409  	parent       string
 11410  	urlParams_   gensupport.URLParams
 11411  	ifNoneMatch_ string
 11412  	ctx_         context.Context
 11413  	header_      http.Header
 11414  }
 11415  
 11416  // List: Lists DataScanJobs under the given DataScan.
 11417  //
 11418  //   - parent: The resource name of the parent environment:
 11419  //     projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where
 11420  //     project refers to a project_id or project_number and location_id refers to
 11421  //     a GCP region.
 11422  func (r *ProjectsLocationsDataScansJobsService) List(parent string) *ProjectsLocationsDataScansJobsListCall {
 11423  	c := &ProjectsLocationsDataScansJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11424  	c.parent = parent
 11425  	return c
 11426  }
 11427  
 11428  // Filter sets the optional parameter "filter": An expression for filtering the
 11429  // results of the ListDataScanJobs request.If unspecified, all datascan jobs
 11430  // will be returned. Multiple filters can be applied (with AND, OR logical
 11431  // operators). Filters are case-sensitive.Allowed fields are: start_time
 11432  // end_timestart_time and end_time expect RFC-3339 formatted strings (e.g.
 11433  // 2018-10-08T18:30:00-07:00).For instance, 'start_time >
 11434  // 2018-10-08T00:00:00.123456789Z AND end_time <
 11435  // 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between
 11436  // specified start and end times.
 11437  func (c *ProjectsLocationsDataScansJobsListCall) Filter(filter string) *ProjectsLocationsDataScansJobsListCall {
 11438  	c.urlParams_.Set("filter", filter)
 11439  	return c
 11440  }
 11441  
 11442  // PageSize sets the optional parameter "pageSize": Maximum number of
 11443  // DataScanJobs to return. The service may return fewer than this value. If
 11444  // unspecified, at most 10 DataScanJobs will be returned. The maximum value is
 11445  // 1000; values above 1000 will be coerced to 1000.
 11446  func (c *ProjectsLocationsDataScansJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansJobsListCall {
 11447  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11448  	return c
 11449  }
 11450  
 11451  // PageToken sets the optional parameter "pageToken": Page token received from
 11452  // a previous ListDataScanJobs call. Provide this to retrieve the subsequent
 11453  // page. When paginating, all other parameters provided to ListDataScanJobs
 11454  // must match the call that provided the page token.
 11455  func (c *ProjectsLocationsDataScansJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataScansJobsListCall {
 11456  	c.urlParams_.Set("pageToken", pageToken)
 11457  	return c
 11458  }
 11459  
 11460  // Fields allows partial responses to be retrieved. See
 11461  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11462  // details.
 11463  func (c *ProjectsLocationsDataScansJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsListCall {
 11464  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11465  	return c
 11466  }
 11467  
 11468  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11469  // object's ETag matches the given value. This is useful for getting updates
 11470  // only after the object has changed since the last request.
 11471  func (c *ProjectsLocationsDataScansJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansJobsListCall {
 11472  	c.ifNoneMatch_ = entityTag
 11473  	return c
 11474  }
 11475  
 11476  // Context sets the context to be used in this call's Do method.
 11477  func (c *ProjectsLocationsDataScansJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsListCall {
 11478  	c.ctx_ = ctx
 11479  	return c
 11480  }
 11481  
 11482  // Header returns a http.Header that can be modified by the caller to add
 11483  // headers to the request.
 11484  func (c *ProjectsLocationsDataScansJobsListCall) Header() http.Header {
 11485  	if c.header_ == nil {
 11486  		c.header_ = make(http.Header)
 11487  	}
 11488  	return c.header_
 11489  }
 11490  
 11491  func (c *ProjectsLocationsDataScansJobsListCall) doRequest(alt string) (*http.Response, error) {
 11492  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11493  	if c.ifNoneMatch_ != "" {
 11494  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11495  	}
 11496  	var body io.Reader = nil
 11497  	c.urlParams_.Set("alt", alt)
 11498  	c.urlParams_.Set("prettyPrint", "false")
 11499  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/jobs")
 11500  	urls += "?" + c.urlParams_.Encode()
 11501  	req, err := http.NewRequest("GET", urls, body)
 11502  	if err != nil {
 11503  		return nil, err
 11504  	}
 11505  	req.Header = reqHeaders
 11506  	googleapi.Expand(req.URL, map[string]string{
 11507  		"parent": c.parent,
 11508  	})
 11509  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11510  }
 11511  
 11512  // Do executes the "dataplex.projects.locations.dataScans.jobs.list" call.
 11513  // Any non-2xx status code is an error. Response headers are in either
 11514  // *GoogleCloudDataplexV1ListDataScanJobsResponse.ServerResponse.Header or (if
 11515  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 11516  // googleapi.IsNotModified to check whether the returned error was because
 11517  // http.StatusNotModified was returned.
 11518  func (c *ProjectsLocationsDataScansJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataScanJobsResponse, error) {
 11519  	gensupport.SetOptions(c.urlParams_, opts...)
 11520  	res, err := c.doRequest("json")
 11521  	if res != nil && res.StatusCode == http.StatusNotModified {
 11522  		if res.Body != nil {
 11523  			res.Body.Close()
 11524  		}
 11525  		return nil, gensupport.WrapError(&googleapi.Error{
 11526  			Code:   res.StatusCode,
 11527  			Header: res.Header,
 11528  		})
 11529  	}
 11530  	if err != nil {
 11531  		return nil, err
 11532  	}
 11533  	defer googleapi.CloseBody(res)
 11534  	if err := googleapi.CheckResponse(res); err != nil {
 11535  		return nil, gensupport.WrapError(err)
 11536  	}
 11537  	ret := &GoogleCloudDataplexV1ListDataScanJobsResponse{
 11538  		ServerResponse: googleapi.ServerResponse{
 11539  			Header:         res.Header,
 11540  			HTTPStatusCode: res.StatusCode,
 11541  		},
 11542  	}
 11543  	target := &ret
 11544  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11545  		return nil, err
 11546  	}
 11547  	return ret, nil
 11548  }
 11549  
 11550  // Pages invokes f for each page of results.
 11551  // A non-nil error returned from f will halt the iteration.
 11552  // The provided context supersedes any context provided to the Context method.
 11553  func (c *ProjectsLocationsDataScansJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataScanJobsResponse) error) error {
 11554  	c.ctx_ = ctx
 11555  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11556  	for {
 11557  		x, err := c.Do()
 11558  		if err != nil {
 11559  			return err
 11560  		}
 11561  		if err := f(x); err != nil {
 11562  			return err
 11563  		}
 11564  		if x.NextPageToken == "" {
 11565  			return nil
 11566  		}
 11567  		c.PageToken(x.NextPageToken)
 11568  	}
 11569  }
 11570  
 11571  type ProjectsLocationsDataTaxonomiesCreateCall struct {
 11572  	s                                 *Service
 11573  	parent                            string
 11574  	googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy
 11575  	urlParams_                        gensupport.URLParams
 11576  	ctx_                              context.Context
 11577  	header_                           http.Header
 11578  }
 11579  
 11580  // Create: Create a DataTaxonomy resource.
 11581  //
 11582  //   - parent: The resource name of the data taxonomy location, of the form:
 11583  //     projects/{project_number}/locations/{location_id} where location_id refers
 11584  //     to a GCP region.
 11585  func (r *ProjectsLocationsDataTaxonomiesService) Create(parent string, googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy) *ProjectsLocationsDataTaxonomiesCreateCall {
 11586  	c := &ProjectsLocationsDataTaxonomiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11587  	c.parent = parent
 11588  	c.googleclouddataplexv1datataxonomy = googleclouddataplexv1datataxonomy
 11589  	return c
 11590  }
 11591  
 11592  // DataTaxonomyId sets the optional parameter "dataTaxonomyId": Required.
 11593  // DataTaxonomy identifier. * Must contain only lowercase letters, numbers and
 11594  // hyphens. * Must start with a letter. * Must be between 1-63 characters. *
 11595  // Must end with a number or a letter. * Must be unique within the Project.
 11596  func (c *ProjectsLocationsDataTaxonomiesCreateCall) DataTaxonomyId(dataTaxonomyId string) *ProjectsLocationsDataTaxonomiesCreateCall {
 11597  	c.urlParams_.Set("dataTaxonomyId", dataTaxonomyId)
 11598  	return c
 11599  }
 11600  
 11601  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 11602  // request, but do not perform mutations. The default is false.
 11603  func (c *ProjectsLocationsDataTaxonomiesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesCreateCall {
 11604  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 11605  	return c
 11606  }
 11607  
 11608  // Fields allows partial responses to be retrieved. See
 11609  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11610  // details.
 11611  func (c *ProjectsLocationsDataTaxonomiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesCreateCall {
 11612  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11613  	return c
 11614  }
 11615  
 11616  // Context sets the context to be used in this call's Do method.
 11617  func (c *ProjectsLocationsDataTaxonomiesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesCreateCall {
 11618  	c.ctx_ = ctx
 11619  	return c
 11620  }
 11621  
 11622  // Header returns a http.Header that can be modified by the caller to add
 11623  // headers to the request.
 11624  func (c *ProjectsLocationsDataTaxonomiesCreateCall) Header() http.Header {
 11625  	if c.header_ == nil {
 11626  		c.header_ = make(http.Header)
 11627  	}
 11628  	return c.header_
 11629  }
 11630  
 11631  func (c *ProjectsLocationsDataTaxonomiesCreateCall) doRequest(alt string) (*http.Response, error) {
 11632  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11633  	var body io.Reader = nil
 11634  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datataxonomy)
 11635  	if err != nil {
 11636  		return nil, err
 11637  	}
 11638  	c.urlParams_.Set("alt", alt)
 11639  	c.urlParams_.Set("prettyPrint", "false")
 11640  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataTaxonomies")
 11641  	urls += "?" + c.urlParams_.Encode()
 11642  	req, err := http.NewRequest("POST", urls, body)
 11643  	if err != nil {
 11644  		return nil, err
 11645  	}
 11646  	req.Header = reqHeaders
 11647  	googleapi.Expand(req.URL, map[string]string{
 11648  		"parent": c.parent,
 11649  	})
 11650  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11651  }
 11652  
 11653  // Do executes the "dataplex.projects.locations.dataTaxonomies.create" call.
 11654  // Any non-2xx status code is an error. Response headers are in either
 11655  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11656  // returned at all) in error.(*googleapi.Error).Header. Use
 11657  // googleapi.IsNotModified to check whether the returned error was because
 11658  // http.StatusNotModified was returned.
 11659  func (c *ProjectsLocationsDataTaxonomiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11660  	gensupport.SetOptions(c.urlParams_, opts...)
 11661  	res, err := c.doRequest("json")
 11662  	if res != nil && res.StatusCode == http.StatusNotModified {
 11663  		if res.Body != nil {
 11664  			res.Body.Close()
 11665  		}
 11666  		return nil, gensupport.WrapError(&googleapi.Error{
 11667  			Code:   res.StatusCode,
 11668  			Header: res.Header,
 11669  		})
 11670  	}
 11671  	if err != nil {
 11672  		return nil, err
 11673  	}
 11674  	defer googleapi.CloseBody(res)
 11675  	if err := googleapi.CheckResponse(res); err != nil {
 11676  		return nil, gensupport.WrapError(err)
 11677  	}
 11678  	ret := &GoogleLongrunningOperation{
 11679  		ServerResponse: googleapi.ServerResponse{
 11680  			Header:         res.Header,
 11681  			HTTPStatusCode: res.StatusCode,
 11682  		},
 11683  	}
 11684  	target := &ret
 11685  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11686  		return nil, err
 11687  	}
 11688  	return ret, nil
 11689  }
 11690  
 11691  type ProjectsLocationsDataTaxonomiesDeleteCall struct {
 11692  	s          *Service
 11693  	name       string
 11694  	urlParams_ gensupport.URLParams
 11695  	ctx_       context.Context
 11696  	header_    http.Header
 11697  }
 11698  
 11699  // Delete: Deletes a DataTaxonomy resource. All attributes within the
 11700  // DataTaxonomy must be deleted before the DataTaxonomy can be deleted.
 11701  //
 11702  //   - name: The resource name of the DataTaxonomy:
 11703  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxo
 11704  //     nomy_id}.
 11705  func (r *ProjectsLocationsDataTaxonomiesService) Delete(name string) *ProjectsLocationsDataTaxonomiesDeleteCall {
 11706  	c := &ProjectsLocationsDataTaxonomiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11707  	c.name = name
 11708  	return c
 11709  }
 11710  
 11711  // Etag sets the optional parameter "etag": If the client provided etag value
 11712  // does not match the current etag value,the DeleteDataTaxonomy method returns
 11713  // an ABORTED error.
 11714  func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Etag(etag string) *ProjectsLocationsDataTaxonomiesDeleteCall {
 11715  	c.urlParams_.Set("etag", etag)
 11716  	return c
 11717  }
 11718  
 11719  // Fields allows partial responses to be retrieved. See
 11720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11721  // details.
 11722  func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesDeleteCall {
 11723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11724  	return c
 11725  }
 11726  
 11727  // Context sets the context to be used in this call's Do method.
 11728  func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesDeleteCall {
 11729  	c.ctx_ = ctx
 11730  	return c
 11731  }
 11732  
 11733  // Header returns a http.Header that can be modified by the caller to add
 11734  // headers to the request.
 11735  func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Header() http.Header {
 11736  	if c.header_ == nil {
 11737  		c.header_ = make(http.Header)
 11738  	}
 11739  	return c.header_
 11740  }
 11741  
 11742  func (c *ProjectsLocationsDataTaxonomiesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11744  	var body io.Reader = nil
 11745  	c.urlParams_.Set("alt", alt)
 11746  	c.urlParams_.Set("prettyPrint", "false")
 11747  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11748  	urls += "?" + c.urlParams_.Encode()
 11749  	req, err := http.NewRequest("DELETE", urls, body)
 11750  	if err != nil {
 11751  		return nil, err
 11752  	}
 11753  	req.Header = reqHeaders
 11754  	googleapi.Expand(req.URL, map[string]string{
 11755  		"name": c.name,
 11756  	})
 11757  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11758  }
 11759  
 11760  // Do executes the "dataplex.projects.locations.dataTaxonomies.delete" call.
 11761  // Any non-2xx status code is an error. Response headers are in either
 11762  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11763  // returned at all) in error.(*googleapi.Error).Header. Use
 11764  // googleapi.IsNotModified to check whether the returned error was because
 11765  // http.StatusNotModified was returned.
 11766  func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11767  	gensupport.SetOptions(c.urlParams_, opts...)
 11768  	res, err := c.doRequest("json")
 11769  	if res != nil && res.StatusCode == http.StatusNotModified {
 11770  		if res.Body != nil {
 11771  			res.Body.Close()
 11772  		}
 11773  		return nil, gensupport.WrapError(&googleapi.Error{
 11774  			Code:   res.StatusCode,
 11775  			Header: res.Header,
 11776  		})
 11777  	}
 11778  	if err != nil {
 11779  		return nil, err
 11780  	}
 11781  	defer googleapi.CloseBody(res)
 11782  	if err := googleapi.CheckResponse(res); err != nil {
 11783  		return nil, gensupport.WrapError(err)
 11784  	}
 11785  	ret := &GoogleLongrunningOperation{
 11786  		ServerResponse: googleapi.ServerResponse{
 11787  			Header:         res.Header,
 11788  			HTTPStatusCode: res.StatusCode,
 11789  		},
 11790  	}
 11791  	target := &ret
 11792  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11793  		return nil, err
 11794  	}
 11795  	return ret, nil
 11796  }
 11797  
 11798  type ProjectsLocationsDataTaxonomiesGetCall struct {
 11799  	s            *Service
 11800  	name         string
 11801  	urlParams_   gensupport.URLParams
 11802  	ifNoneMatch_ string
 11803  	ctx_         context.Context
 11804  	header_      http.Header
 11805  }
 11806  
 11807  // Get: Retrieves a DataTaxonomy resource.
 11808  //
 11809  //   - name: The resource name of the DataTaxonomy:
 11810  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxo
 11811  //     nomy_id}.
 11812  func (r *ProjectsLocationsDataTaxonomiesService) Get(name string) *ProjectsLocationsDataTaxonomiesGetCall {
 11813  	c := &ProjectsLocationsDataTaxonomiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11814  	c.name = name
 11815  	return c
 11816  }
 11817  
 11818  // Fields allows partial responses to be retrieved. See
 11819  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11820  // details.
 11821  func (c *ProjectsLocationsDataTaxonomiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesGetCall {
 11822  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11823  	return c
 11824  }
 11825  
 11826  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11827  // object's ETag matches the given value. This is useful for getting updates
 11828  // only after the object has changed since the last request.
 11829  func (c *ProjectsLocationsDataTaxonomiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesGetCall {
 11830  	c.ifNoneMatch_ = entityTag
 11831  	return c
 11832  }
 11833  
 11834  // Context sets the context to be used in this call's Do method.
 11835  func (c *ProjectsLocationsDataTaxonomiesGetCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesGetCall {
 11836  	c.ctx_ = ctx
 11837  	return c
 11838  }
 11839  
 11840  // Header returns a http.Header that can be modified by the caller to add
 11841  // headers to the request.
 11842  func (c *ProjectsLocationsDataTaxonomiesGetCall) Header() http.Header {
 11843  	if c.header_ == nil {
 11844  		c.header_ = make(http.Header)
 11845  	}
 11846  	return c.header_
 11847  }
 11848  
 11849  func (c *ProjectsLocationsDataTaxonomiesGetCall) doRequest(alt string) (*http.Response, error) {
 11850  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11851  	if c.ifNoneMatch_ != "" {
 11852  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11853  	}
 11854  	var body io.Reader = nil
 11855  	c.urlParams_.Set("alt", alt)
 11856  	c.urlParams_.Set("prettyPrint", "false")
 11857  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 11858  	urls += "?" + c.urlParams_.Encode()
 11859  	req, err := http.NewRequest("GET", urls, body)
 11860  	if err != nil {
 11861  		return nil, err
 11862  	}
 11863  	req.Header = reqHeaders
 11864  	googleapi.Expand(req.URL, map[string]string{
 11865  		"name": c.name,
 11866  	})
 11867  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11868  }
 11869  
 11870  // Do executes the "dataplex.projects.locations.dataTaxonomies.get" call.
 11871  // Any non-2xx status code is an error. Response headers are in either
 11872  // *GoogleCloudDataplexV1DataTaxonomy.ServerResponse.Header or (if a response
 11873  // was returned at all) in error.(*googleapi.Error).Header. Use
 11874  // googleapi.IsNotModified to check whether the returned error was because
 11875  // http.StatusNotModified was returned.
 11876  func (c *ProjectsLocationsDataTaxonomiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataTaxonomy, error) {
 11877  	gensupport.SetOptions(c.urlParams_, opts...)
 11878  	res, err := c.doRequest("json")
 11879  	if res != nil && res.StatusCode == http.StatusNotModified {
 11880  		if res.Body != nil {
 11881  			res.Body.Close()
 11882  		}
 11883  		return nil, gensupport.WrapError(&googleapi.Error{
 11884  			Code:   res.StatusCode,
 11885  			Header: res.Header,
 11886  		})
 11887  	}
 11888  	if err != nil {
 11889  		return nil, err
 11890  	}
 11891  	defer googleapi.CloseBody(res)
 11892  	if err := googleapi.CheckResponse(res); err != nil {
 11893  		return nil, gensupport.WrapError(err)
 11894  	}
 11895  	ret := &GoogleCloudDataplexV1DataTaxonomy{
 11896  		ServerResponse: googleapi.ServerResponse{
 11897  			Header:         res.Header,
 11898  			HTTPStatusCode: res.StatusCode,
 11899  		},
 11900  	}
 11901  	target := &ret
 11902  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11903  		return nil, err
 11904  	}
 11905  	return ret, nil
 11906  }
 11907  
 11908  type ProjectsLocationsDataTaxonomiesGetIamPolicyCall struct {
 11909  	s            *Service
 11910  	resource     string
 11911  	urlParams_   gensupport.URLParams
 11912  	ifNoneMatch_ string
 11913  	ctx_         context.Context
 11914  	header_      http.Header
 11915  }
 11916  
 11917  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 11918  // empty policy if the resource exists and does not have a policy set.
 11919  //
 11920  //   - resource: REQUIRED: The resource for which the policy is being requested.
 11921  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 11922  //     for the appropriate value for this field.
 11923  func (r *ProjectsLocationsDataTaxonomiesService) GetIamPolicy(resource string) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
 11924  	c := &ProjectsLocationsDataTaxonomiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11925  	c.resource = resource
 11926  	return c
 11927  }
 11928  
 11929  // OptionsRequestedPolicyVersion sets the optional parameter
 11930  // "options.requestedPolicyVersion": The maximum policy version that will be
 11931  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 11932  // an invalid value will be rejected.Requests for policies with any conditional
 11933  // role bindings must specify version 3. Policies with no conditional role
 11934  // bindings may specify any valid value or leave the field unset.The policy in
 11935  // the response might use the policy version that you specified, or it might
 11936  // use a lower policy version. For example, if you specify version 3, but the
 11937  // policy has no conditional role bindings, the response uses version 1.To
 11938  // learn which resources support conditions in their IAM policies, see the IAM
 11939  // documentation
 11940  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 11941  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
 11942  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 11943  	return c
 11944  }
 11945  
 11946  // Fields allows partial responses to be retrieved. See
 11947  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11948  // details.
 11949  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
 11950  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11951  	return c
 11952  }
 11953  
 11954  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11955  // object's ETag matches the given value. This is useful for getting updates
 11956  // only after the object has changed since the last request.
 11957  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
 11958  	c.ifNoneMatch_ = entityTag
 11959  	return c
 11960  }
 11961  
 11962  // Context sets the context to be used in this call's Do method.
 11963  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
 11964  	c.ctx_ = ctx
 11965  	return c
 11966  }
 11967  
 11968  // Header returns a http.Header that can be modified by the caller to add
 11969  // headers to the request.
 11970  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Header() http.Header {
 11971  	if c.header_ == nil {
 11972  		c.header_ = make(http.Header)
 11973  	}
 11974  	return c.header_
 11975  }
 11976  
 11977  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11978  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11979  	if c.ifNoneMatch_ != "" {
 11980  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11981  	}
 11982  	var body io.Reader = nil
 11983  	c.urlParams_.Set("alt", alt)
 11984  	c.urlParams_.Set("prettyPrint", "false")
 11985  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 11986  	urls += "?" + c.urlParams_.Encode()
 11987  	req, err := http.NewRequest("GET", urls, body)
 11988  	if err != nil {
 11989  		return nil, err
 11990  	}
 11991  	req.Header = reqHeaders
 11992  	googleapi.Expand(req.URL, map[string]string{
 11993  		"resource": c.resource,
 11994  	})
 11995  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11996  }
 11997  
 11998  // Do executes the "dataplex.projects.locations.dataTaxonomies.getIamPolicy" call.
 11999  // Any non-2xx status code is an error. Response headers are in either
 12000  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 12001  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12002  // check whether the returned error was because http.StatusNotModified was
 12003  // returned.
 12004  func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 12005  	gensupport.SetOptions(c.urlParams_, opts...)
 12006  	res, err := c.doRequest("json")
 12007  	if res != nil && res.StatusCode == http.StatusNotModified {
 12008  		if res.Body != nil {
 12009  			res.Body.Close()
 12010  		}
 12011  		return nil, gensupport.WrapError(&googleapi.Error{
 12012  			Code:   res.StatusCode,
 12013  			Header: res.Header,
 12014  		})
 12015  	}
 12016  	if err != nil {
 12017  		return nil, err
 12018  	}
 12019  	defer googleapi.CloseBody(res)
 12020  	if err := googleapi.CheckResponse(res); err != nil {
 12021  		return nil, gensupport.WrapError(err)
 12022  	}
 12023  	ret := &GoogleIamV1Policy{
 12024  		ServerResponse: googleapi.ServerResponse{
 12025  			Header:         res.Header,
 12026  			HTTPStatusCode: res.StatusCode,
 12027  		},
 12028  	}
 12029  	target := &ret
 12030  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12031  		return nil, err
 12032  	}
 12033  	return ret, nil
 12034  }
 12035  
 12036  type ProjectsLocationsDataTaxonomiesListCall struct {
 12037  	s            *Service
 12038  	parent       string
 12039  	urlParams_   gensupport.URLParams
 12040  	ifNoneMatch_ string
 12041  	ctx_         context.Context
 12042  	header_      http.Header
 12043  }
 12044  
 12045  // List: Lists DataTaxonomy resources in a project and location.
 12046  //
 12047  //   - parent: The resource name of the DataTaxonomy location, of the form:
 12048  //     projects/{project_number}/locations/{location_id} where location_id refers
 12049  //     to a GCP region.
 12050  func (r *ProjectsLocationsDataTaxonomiesService) List(parent string) *ProjectsLocationsDataTaxonomiesListCall {
 12051  	c := &ProjectsLocationsDataTaxonomiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12052  	c.parent = parent
 12053  	return c
 12054  }
 12055  
 12056  // Filter sets the optional parameter "filter": Filter request.
 12057  func (c *ProjectsLocationsDataTaxonomiesListCall) Filter(filter string) *ProjectsLocationsDataTaxonomiesListCall {
 12058  	c.urlParams_.Set("filter", filter)
 12059  	return c
 12060  }
 12061  
 12062  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 12063  // result.
 12064  func (c *ProjectsLocationsDataTaxonomiesListCall) OrderBy(orderBy string) *ProjectsLocationsDataTaxonomiesListCall {
 12065  	c.urlParams_.Set("orderBy", orderBy)
 12066  	return c
 12067  }
 12068  
 12069  // PageSize sets the optional parameter "pageSize": Maximum number of
 12070  // DataTaxonomies to return. The service may return fewer than this value. If
 12071  // unspecified, at most 10 DataTaxonomies will be returned. The maximum value
 12072  // is 1000; values above 1000 will be coerced to 1000.
 12073  func (c *ProjectsLocationsDataTaxonomiesListCall) PageSize(pageSize int64) *ProjectsLocationsDataTaxonomiesListCall {
 12074  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12075  	return c
 12076  }
 12077  
 12078  // PageToken sets the optional parameter "pageToken": Page token received from
 12079  // a previous ListDataTaxonomies call. Provide this to retrieve the subsequent
 12080  // page. When paginating, all other parameters provided to ListDataTaxonomies
 12081  // must match the call that provided the page token.
 12082  func (c *ProjectsLocationsDataTaxonomiesListCall) PageToken(pageToken string) *ProjectsLocationsDataTaxonomiesListCall {
 12083  	c.urlParams_.Set("pageToken", pageToken)
 12084  	return c
 12085  }
 12086  
 12087  // Fields allows partial responses to be retrieved. See
 12088  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12089  // details.
 12090  func (c *ProjectsLocationsDataTaxonomiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesListCall {
 12091  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12092  	return c
 12093  }
 12094  
 12095  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12096  // object's ETag matches the given value. This is useful for getting updates
 12097  // only after the object has changed since the last request.
 12098  func (c *ProjectsLocationsDataTaxonomiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesListCall {
 12099  	c.ifNoneMatch_ = entityTag
 12100  	return c
 12101  }
 12102  
 12103  // Context sets the context to be used in this call's Do method.
 12104  func (c *ProjectsLocationsDataTaxonomiesListCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesListCall {
 12105  	c.ctx_ = ctx
 12106  	return c
 12107  }
 12108  
 12109  // Header returns a http.Header that can be modified by the caller to add
 12110  // headers to the request.
 12111  func (c *ProjectsLocationsDataTaxonomiesListCall) Header() http.Header {
 12112  	if c.header_ == nil {
 12113  		c.header_ = make(http.Header)
 12114  	}
 12115  	return c.header_
 12116  }
 12117  
 12118  func (c *ProjectsLocationsDataTaxonomiesListCall) doRequest(alt string) (*http.Response, error) {
 12119  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12120  	if c.ifNoneMatch_ != "" {
 12121  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12122  	}
 12123  	var body io.Reader = nil
 12124  	c.urlParams_.Set("alt", alt)
 12125  	c.urlParams_.Set("prettyPrint", "false")
 12126  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataTaxonomies")
 12127  	urls += "?" + c.urlParams_.Encode()
 12128  	req, err := http.NewRequest("GET", urls, body)
 12129  	if err != nil {
 12130  		return nil, err
 12131  	}
 12132  	req.Header = reqHeaders
 12133  	googleapi.Expand(req.URL, map[string]string{
 12134  		"parent": c.parent,
 12135  	})
 12136  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12137  }
 12138  
 12139  // Do executes the "dataplex.projects.locations.dataTaxonomies.list" call.
 12140  // Any non-2xx status code is an error. Response headers are in either
 12141  // *GoogleCloudDataplexV1ListDataTaxonomiesResponse.ServerResponse.Header or
 12142  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 12143  // googleapi.IsNotModified to check whether the returned error was because
 12144  // http.StatusNotModified was returned.
 12145  func (c *ProjectsLocationsDataTaxonomiesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataTaxonomiesResponse, error) {
 12146  	gensupport.SetOptions(c.urlParams_, opts...)
 12147  	res, err := c.doRequest("json")
 12148  	if res != nil && res.StatusCode == http.StatusNotModified {
 12149  		if res.Body != nil {
 12150  			res.Body.Close()
 12151  		}
 12152  		return nil, gensupport.WrapError(&googleapi.Error{
 12153  			Code:   res.StatusCode,
 12154  			Header: res.Header,
 12155  		})
 12156  	}
 12157  	if err != nil {
 12158  		return nil, err
 12159  	}
 12160  	defer googleapi.CloseBody(res)
 12161  	if err := googleapi.CheckResponse(res); err != nil {
 12162  		return nil, gensupport.WrapError(err)
 12163  	}
 12164  	ret := &GoogleCloudDataplexV1ListDataTaxonomiesResponse{
 12165  		ServerResponse: googleapi.ServerResponse{
 12166  			Header:         res.Header,
 12167  			HTTPStatusCode: res.StatusCode,
 12168  		},
 12169  	}
 12170  	target := &ret
 12171  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12172  		return nil, err
 12173  	}
 12174  	return ret, nil
 12175  }
 12176  
 12177  // Pages invokes f for each page of results.
 12178  // A non-nil error returned from f will halt the iteration.
 12179  // The provided context supersedes any context provided to the Context method.
 12180  func (c *ProjectsLocationsDataTaxonomiesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataTaxonomiesResponse) error) error {
 12181  	c.ctx_ = ctx
 12182  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12183  	for {
 12184  		x, err := c.Do()
 12185  		if err != nil {
 12186  			return err
 12187  		}
 12188  		if err := f(x); err != nil {
 12189  			return err
 12190  		}
 12191  		if x.NextPageToken == "" {
 12192  			return nil
 12193  		}
 12194  		c.PageToken(x.NextPageToken)
 12195  	}
 12196  }
 12197  
 12198  type ProjectsLocationsDataTaxonomiesPatchCall struct {
 12199  	s                                 *Service
 12200  	name                              string
 12201  	googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy
 12202  	urlParams_                        gensupport.URLParams
 12203  	ctx_                              context.Context
 12204  	header_                           http.Header
 12205  }
 12206  
 12207  // Patch: Updates a DataTaxonomy resource.
 12208  //
 12209  //   - name: Output only. The relative resource name of the DataTaxonomy, of the
 12210  //     form:
 12211  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxo
 12212  //     nomy_id}.
 12213  func (r *ProjectsLocationsDataTaxonomiesService) Patch(name string, googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy) *ProjectsLocationsDataTaxonomiesPatchCall {
 12214  	c := &ProjectsLocationsDataTaxonomiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12215  	c.name = name
 12216  	c.googleclouddataplexv1datataxonomy = googleclouddataplexv1datataxonomy
 12217  	return c
 12218  }
 12219  
 12220  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 12221  // fields to update.
 12222  func (c *ProjectsLocationsDataTaxonomiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataTaxonomiesPatchCall {
 12223  	c.urlParams_.Set("updateMask", updateMask)
 12224  	return c
 12225  }
 12226  
 12227  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 12228  // request, but do not perform mutations. The default is false.
 12229  func (c *ProjectsLocationsDataTaxonomiesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesPatchCall {
 12230  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 12231  	return c
 12232  }
 12233  
 12234  // Fields allows partial responses to be retrieved. See
 12235  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12236  // details.
 12237  func (c *ProjectsLocationsDataTaxonomiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesPatchCall {
 12238  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12239  	return c
 12240  }
 12241  
 12242  // Context sets the context to be used in this call's Do method.
 12243  func (c *ProjectsLocationsDataTaxonomiesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesPatchCall {
 12244  	c.ctx_ = ctx
 12245  	return c
 12246  }
 12247  
 12248  // Header returns a http.Header that can be modified by the caller to add
 12249  // headers to the request.
 12250  func (c *ProjectsLocationsDataTaxonomiesPatchCall) Header() http.Header {
 12251  	if c.header_ == nil {
 12252  		c.header_ = make(http.Header)
 12253  	}
 12254  	return c.header_
 12255  }
 12256  
 12257  func (c *ProjectsLocationsDataTaxonomiesPatchCall) doRequest(alt string) (*http.Response, error) {
 12258  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12259  	var body io.Reader = nil
 12260  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datataxonomy)
 12261  	if err != nil {
 12262  		return nil, err
 12263  	}
 12264  	c.urlParams_.Set("alt", alt)
 12265  	c.urlParams_.Set("prettyPrint", "false")
 12266  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12267  	urls += "?" + c.urlParams_.Encode()
 12268  	req, err := http.NewRequest("PATCH", urls, body)
 12269  	if err != nil {
 12270  		return nil, err
 12271  	}
 12272  	req.Header = reqHeaders
 12273  	googleapi.Expand(req.URL, map[string]string{
 12274  		"name": c.name,
 12275  	})
 12276  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12277  }
 12278  
 12279  // Do executes the "dataplex.projects.locations.dataTaxonomies.patch" call.
 12280  // Any non-2xx status code is an error. Response headers are in either
 12281  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12282  // returned at all) in error.(*googleapi.Error).Header. Use
 12283  // googleapi.IsNotModified to check whether the returned error was because
 12284  // http.StatusNotModified was returned.
 12285  func (c *ProjectsLocationsDataTaxonomiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12286  	gensupport.SetOptions(c.urlParams_, opts...)
 12287  	res, err := c.doRequest("json")
 12288  	if res != nil && res.StatusCode == http.StatusNotModified {
 12289  		if res.Body != nil {
 12290  			res.Body.Close()
 12291  		}
 12292  		return nil, gensupport.WrapError(&googleapi.Error{
 12293  			Code:   res.StatusCode,
 12294  			Header: res.Header,
 12295  		})
 12296  	}
 12297  	if err != nil {
 12298  		return nil, err
 12299  	}
 12300  	defer googleapi.CloseBody(res)
 12301  	if err := googleapi.CheckResponse(res); err != nil {
 12302  		return nil, gensupport.WrapError(err)
 12303  	}
 12304  	ret := &GoogleLongrunningOperation{
 12305  		ServerResponse: googleapi.ServerResponse{
 12306  			Header:         res.Header,
 12307  			HTTPStatusCode: res.StatusCode,
 12308  		},
 12309  	}
 12310  	target := &ret
 12311  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12312  		return nil, err
 12313  	}
 12314  	return ret, nil
 12315  }
 12316  
 12317  type ProjectsLocationsDataTaxonomiesSetIamPolicyCall struct {
 12318  	s                              *Service
 12319  	resource                       string
 12320  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 12321  	urlParams_                     gensupport.URLParams
 12322  	ctx_                           context.Context
 12323  	header_                        http.Header
 12324  }
 12325  
 12326  // SetIamPolicy: Sets the access control policy on the specified resource.
 12327  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 12328  // PERMISSION_DENIED errors.
 12329  //
 12330  //   - resource: REQUIRED: The resource for which the policy is being specified.
 12331  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 12332  //     for the appropriate value for this field.
 12333  func (r *ProjectsLocationsDataTaxonomiesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall {
 12334  	c := &ProjectsLocationsDataTaxonomiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12335  	c.resource = resource
 12336  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 12337  	return c
 12338  }
 12339  
 12340  // Fields allows partial responses to be retrieved. See
 12341  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12342  // details.
 12343  func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall {
 12344  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12345  	return c
 12346  }
 12347  
 12348  // Context sets the context to be used in this call's Do method.
 12349  func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall {
 12350  	c.ctx_ = ctx
 12351  	return c
 12352  }
 12353  
 12354  // Header returns a http.Header that can be modified by the caller to add
 12355  // headers to the request.
 12356  func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Header() http.Header {
 12357  	if c.header_ == nil {
 12358  		c.header_ = make(http.Header)
 12359  	}
 12360  	return c.header_
 12361  }
 12362  
 12363  func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 12364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12365  	var body io.Reader = nil
 12366  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 12367  	if err != nil {
 12368  		return nil, err
 12369  	}
 12370  	c.urlParams_.Set("alt", alt)
 12371  	c.urlParams_.Set("prettyPrint", "false")
 12372  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 12373  	urls += "?" + c.urlParams_.Encode()
 12374  	req, err := http.NewRequest("POST", urls, body)
 12375  	if err != nil {
 12376  		return nil, err
 12377  	}
 12378  	req.Header = reqHeaders
 12379  	googleapi.Expand(req.URL, map[string]string{
 12380  		"resource": c.resource,
 12381  	})
 12382  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12383  }
 12384  
 12385  // Do executes the "dataplex.projects.locations.dataTaxonomies.setIamPolicy" call.
 12386  // Any non-2xx status code is an error. Response headers are in either
 12387  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 12388  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12389  // check whether the returned error was because http.StatusNotModified was
 12390  // returned.
 12391  func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 12392  	gensupport.SetOptions(c.urlParams_, opts...)
 12393  	res, err := c.doRequest("json")
 12394  	if res != nil && res.StatusCode == http.StatusNotModified {
 12395  		if res.Body != nil {
 12396  			res.Body.Close()
 12397  		}
 12398  		return nil, gensupport.WrapError(&googleapi.Error{
 12399  			Code:   res.StatusCode,
 12400  			Header: res.Header,
 12401  		})
 12402  	}
 12403  	if err != nil {
 12404  		return nil, err
 12405  	}
 12406  	defer googleapi.CloseBody(res)
 12407  	if err := googleapi.CheckResponse(res); err != nil {
 12408  		return nil, gensupport.WrapError(err)
 12409  	}
 12410  	ret := &GoogleIamV1Policy{
 12411  		ServerResponse: googleapi.ServerResponse{
 12412  			Header:         res.Header,
 12413  			HTTPStatusCode: res.StatusCode,
 12414  		},
 12415  	}
 12416  	target := &ret
 12417  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12418  		return nil, err
 12419  	}
 12420  	return ret, nil
 12421  }
 12422  
 12423  type ProjectsLocationsDataTaxonomiesTestIamPermissionsCall struct {
 12424  	s                                    *Service
 12425  	resource                             string
 12426  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 12427  	urlParams_                           gensupport.URLParams
 12428  	ctx_                                 context.Context
 12429  	header_                              http.Header
 12430  }
 12431  
 12432  // TestIamPermissions: Returns permissions that a caller has on the specified
 12433  // resource. If the resource does not exist, this will return an empty set of
 12434  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 12435  // used for building permission-aware UIs and command-line tools, not for
 12436  // authorization checking. This operation may "fail open" without warning.
 12437  //
 12438  //   - resource: REQUIRED: The resource for which the policy detail is being
 12439  //     requested. See Resource names
 12440  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 12441  //     value for this field.
 12442  func (r *ProjectsLocationsDataTaxonomiesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall {
 12443  	c := &ProjectsLocationsDataTaxonomiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12444  	c.resource = resource
 12445  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 12446  	return c
 12447  }
 12448  
 12449  // Fields allows partial responses to be retrieved. See
 12450  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12451  // details.
 12452  func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall {
 12453  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12454  	return c
 12455  }
 12456  
 12457  // Context sets the context to be used in this call's Do method.
 12458  func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall {
 12459  	c.ctx_ = ctx
 12460  	return c
 12461  }
 12462  
 12463  // Header returns a http.Header that can be modified by the caller to add
 12464  // headers to the request.
 12465  func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Header() http.Header {
 12466  	if c.header_ == nil {
 12467  		c.header_ = make(http.Header)
 12468  	}
 12469  	return c.header_
 12470  }
 12471  
 12472  func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 12473  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12474  	var body io.Reader = nil
 12475  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 12476  	if err != nil {
 12477  		return nil, err
 12478  	}
 12479  	c.urlParams_.Set("alt", alt)
 12480  	c.urlParams_.Set("prettyPrint", "false")
 12481  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 12482  	urls += "?" + c.urlParams_.Encode()
 12483  	req, err := http.NewRequest("POST", urls, body)
 12484  	if err != nil {
 12485  		return nil, err
 12486  	}
 12487  	req.Header = reqHeaders
 12488  	googleapi.Expand(req.URL, map[string]string{
 12489  		"resource": c.resource,
 12490  	})
 12491  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12492  }
 12493  
 12494  // Do executes the "dataplex.projects.locations.dataTaxonomies.testIamPermissions" call.
 12495  // Any non-2xx status code is an error. Response headers are in either
 12496  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 12497  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12498  // googleapi.IsNotModified to check whether the returned error was because
 12499  // http.StatusNotModified was returned.
 12500  func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 12501  	gensupport.SetOptions(c.urlParams_, opts...)
 12502  	res, err := c.doRequest("json")
 12503  	if res != nil && res.StatusCode == http.StatusNotModified {
 12504  		if res.Body != nil {
 12505  			res.Body.Close()
 12506  		}
 12507  		return nil, gensupport.WrapError(&googleapi.Error{
 12508  			Code:   res.StatusCode,
 12509  			Header: res.Header,
 12510  		})
 12511  	}
 12512  	if err != nil {
 12513  		return nil, err
 12514  	}
 12515  	defer googleapi.CloseBody(res)
 12516  	if err := googleapi.CheckResponse(res); err != nil {
 12517  		return nil, gensupport.WrapError(err)
 12518  	}
 12519  	ret := &GoogleIamV1TestIamPermissionsResponse{
 12520  		ServerResponse: googleapi.ServerResponse{
 12521  			Header:         res.Header,
 12522  			HTTPStatusCode: res.StatusCode,
 12523  		},
 12524  	}
 12525  	target := &ret
 12526  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12527  		return nil, err
 12528  	}
 12529  	return ret, nil
 12530  }
 12531  
 12532  type ProjectsLocationsDataTaxonomiesAttributesCreateCall struct {
 12533  	s                                  *Service
 12534  	parent                             string
 12535  	googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute
 12536  	urlParams_                         gensupport.URLParams
 12537  	ctx_                               context.Context
 12538  	header_                            http.Header
 12539  }
 12540  
 12541  // Create: Create a DataAttribute resource.
 12542  //
 12543  //   - parent: The resource name of the parent data taxonomy
 12544  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxo
 12545  //     nomy_id}.
 12546  func (r *ProjectsLocationsDataTaxonomiesAttributesService) Create(parent string, googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
 12547  	c := &ProjectsLocationsDataTaxonomiesAttributesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12548  	c.parent = parent
 12549  	c.googleclouddataplexv1dataattribute = googleclouddataplexv1dataattribute
 12550  	return c
 12551  }
 12552  
 12553  // DataAttributeId sets the optional parameter "dataAttributeId": Required.
 12554  // DataAttribute identifier. * Must contain only lowercase letters, numbers and
 12555  // hyphens. * Must start with a letter. * Must be between 1-63 characters. *
 12556  // Must end with a number or a letter. * Must be unique within the
 12557  // DataTaxonomy.
 12558  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) DataAttributeId(dataAttributeId string) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
 12559  	c.urlParams_.Set("dataAttributeId", dataAttributeId)
 12560  	return c
 12561  }
 12562  
 12563  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 12564  // request, but do not perform mutations. The default is false.
 12565  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
 12566  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 12567  	return c
 12568  }
 12569  
 12570  // Fields allows partial responses to be retrieved. See
 12571  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12572  // details.
 12573  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
 12574  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12575  	return c
 12576  }
 12577  
 12578  // Context sets the context to be used in this call's Do method.
 12579  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
 12580  	c.ctx_ = ctx
 12581  	return c
 12582  }
 12583  
 12584  // Header returns a http.Header that can be modified by the caller to add
 12585  // headers to the request.
 12586  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Header() http.Header {
 12587  	if c.header_ == nil {
 12588  		c.header_ = make(http.Header)
 12589  	}
 12590  	return c.header_
 12591  }
 12592  
 12593  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) doRequest(alt string) (*http.Response, error) {
 12594  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12595  	var body io.Reader = nil
 12596  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattribute)
 12597  	if err != nil {
 12598  		return nil, err
 12599  	}
 12600  	c.urlParams_.Set("alt", alt)
 12601  	c.urlParams_.Set("prettyPrint", "false")
 12602  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
 12603  	urls += "?" + c.urlParams_.Encode()
 12604  	req, err := http.NewRequest("POST", urls, body)
 12605  	if err != nil {
 12606  		return nil, err
 12607  	}
 12608  	req.Header = reqHeaders
 12609  	googleapi.Expand(req.URL, map[string]string{
 12610  		"parent": c.parent,
 12611  	})
 12612  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12613  }
 12614  
 12615  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.create" call.
 12616  // Any non-2xx status code is an error. Response headers are in either
 12617  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12618  // returned at all) in error.(*googleapi.Error).Header. Use
 12619  // googleapi.IsNotModified to check whether the returned error was because
 12620  // http.StatusNotModified was returned.
 12621  func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12622  	gensupport.SetOptions(c.urlParams_, opts...)
 12623  	res, err := c.doRequest("json")
 12624  	if res != nil && res.StatusCode == http.StatusNotModified {
 12625  		if res.Body != nil {
 12626  			res.Body.Close()
 12627  		}
 12628  		return nil, gensupport.WrapError(&googleapi.Error{
 12629  			Code:   res.StatusCode,
 12630  			Header: res.Header,
 12631  		})
 12632  	}
 12633  	if err != nil {
 12634  		return nil, err
 12635  	}
 12636  	defer googleapi.CloseBody(res)
 12637  	if err := googleapi.CheckResponse(res); err != nil {
 12638  		return nil, gensupport.WrapError(err)
 12639  	}
 12640  	ret := &GoogleLongrunningOperation{
 12641  		ServerResponse: googleapi.ServerResponse{
 12642  			Header:         res.Header,
 12643  			HTTPStatusCode: res.StatusCode,
 12644  		},
 12645  	}
 12646  	target := &ret
 12647  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12648  		return nil, err
 12649  	}
 12650  	return ret, nil
 12651  }
 12652  
 12653  type ProjectsLocationsDataTaxonomiesAttributesDeleteCall struct {
 12654  	s          *Service
 12655  	name       string
 12656  	urlParams_ gensupport.URLParams
 12657  	ctx_       context.Context
 12658  	header_    http.Header
 12659  }
 12660  
 12661  // Delete: Deletes a Data Attribute resource.
 12662  //
 12663  //   - name: The resource name of the DataAttribute:
 12664  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxon
 12665  //     omy}/attributes/{data_attribute_id}.
 12666  func (r *ProjectsLocationsDataTaxonomiesAttributesService) Delete(name string) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
 12667  	c := &ProjectsLocationsDataTaxonomiesAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12668  	c.name = name
 12669  	return c
 12670  }
 12671  
 12672  // Etag sets the optional parameter "etag": If the client provided etag value
 12673  // does not match the current etag value, the DeleteDataAttribute method
 12674  // returns an ABORTED error response.
 12675  func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Etag(etag string) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
 12676  	c.urlParams_.Set("etag", etag)
 12677  	return c
 12678  }
 12679  
 12680  // Fields allows partial responses to be retrieved. See
 12681  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12682  // details.
 12683  func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
 12684  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12685  	return c
 12686  }
 12687  
 12688  // Context sets the context to be used in this call's Do method.
 12689  func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
 12690  	c.ctx_ = ctx
 12691  	return c
 12692  }
 12693  
 12694  // Header returns a http.Header that can be modified by the caller to add
 12695  // headers to the request.
 12696  func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Header() http.Header {
 12697  	if c.header_ == nil {
 12698  		c.header_ = make(http.Header)
 12699  	}
 12700  	return c.header_
 12701  }
 12702  
 12703  func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
 12704  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12705  	var body io.Reader = nil
 12706  	c.urlParams_.Set("alt", alt)
 12707  	c.urlParams_.Set("prettyPrint", "false")
 12708  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12709  	urls += "?" + c.urlParams_.Encode()
 12710  	req, err := http.NewRequest("DELETE", urls, body)
 12711  	if err != nil {
 12712  		return nil, err
 12713  	}
 12714  	req.Header = reqHeaders
 12715  	googleapi.Expand(req.URL, map[string]string{
 12716  		"name": c.name,
 12717  	})
 12718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12719  }
 12720  
 12721  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.delete" call.
 12722  // Any non-2xx status code is an error. Response headers are in either
 12723  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12724  // returned at all) in error.(*googleapi.Error).Header. Use
 12725  // googleapi.IsNotModified to check whether the returned error was because
 12726  // http.StatusNotModified was returned.
 12727  func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12728  	gensupport.SetOptions(c.urlParams_, opts...)
 12729  	res, err := c.doRequest("json")
 12730  	if res != nil && res.StatusCode == http.StatusNotModified {
 12731  		if res.Body != nil {
 12732  			res.Body.Close()
 12733  		}
 12734  		return nil, gensupport.WrapError(&googleapi.Error{
 12735  			Code:   res.StatusCode,
 12736  			Header: res.Header,
 12737  		})
 12738  	}
 12739  	if err != nil {
 12740  		return nil, err
 12741  	}
 12742  	defer googleapi.CloseBody(res)
 12743  	if err := googleapi.CheckResponse(res); err != nil {
 12744  		return nil, gensupport.WrapError(err)
 12745  	}
 12746  	ret := &GoogleLongrunningOperation{
 12747  		ServerResponse: googleapi.ServerResponse{
 12748  			Header:         res.Header,
 12749  			HTTPStatusCode: res.StatusCode,
 12750  		},
 12751  	}
 12752  	target := &ret
 12753  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12754  		return nil, err
 12755  	}
 12756  	return ret, nil
 12757  }
 12758  
 12759  type ProjectsLocationsDataTaxonomiesAttributesGetCall struct {
 12760  	s            *Service
 12761  	name         string
 12762  	urlParams_   gensupport.URLParams
 12763  	ifNoneMatch_ string
 12764  	ctx_         context.Context
 12765  	header_      http.Header
 12766  }
 12767  
 12768  // Get: Retrieves a Data Attribute resource.
 12769  //
 12770  //   - name: The resource name of the dataAttribute:
 12771  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxon
 12772  //     omy}/attributes/{data_attribute_id}.
 12773  func (r *ProjectsLocationsDataTaxonomiesAttributesService) Get(name string) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
 12774  	c := &ProjectsLocationsDataTaxonomiesAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12775  	c.name = name
 12776  	return c
 12777  }
 12778  
 12779  // Fields allows partial responses to be retrieved. See
 12780  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12781  // details.
 12782  func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
 12783  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12784  	return c
 12785  }
 12786  
 12787  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12788  // object's ETag matches the given value. This is useful for getting updates
 12789  // only after the object has changed since the last request.
 12790  func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
 12791  	c.ifNoneMatch_ = entityTag
 12792  	return c
 12793  }
 12794  
 12795  // Context sets the context to be used in this call's Do method.
 12796  func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
 12797  	c.ctx_ = ctx
 12798  	return c
 12799  }
 12800  
 12801  // Header returns a http.Header that can be modified by the caller to add
 12802  // headers to the request.
 12803  func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Header() http.Header {
 12804  	if c.header_ == nil {
 12805  		c.header_ = make(http.Header)
 12806  	}
 12807  	return c.header_
 12808  }
 12809  
 12810  func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) doRequest(alt string) (*http.Response, error) {
 12811  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12812  	if c.ifNoneMatch_ != "" {
 12813  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12814  	}
 12815  	var body io.Reader = nil
 12816  	c.urlParams_.Set("alt", alt)
 12817  	c.urlParams_.Set("prettyPrint", "false")
 12818  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 12819  	urls += "?" + c.urlParams_.Encode()
 12820  	req, err := http.NewRequest("GET", urls, body)
 12821  	if err != nil {
 12822  		return nil, err
 12823  	}
 12824  	req.Header = reqHeaders
 12825  	googleapi.Expand(req.URL, map[string]string{
 12826  		"name": c.name,
 12827  	})
 12828  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12829  }
 12830  
 12831  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.get" call.
 12832  // Any non-2xx status code is an error. Response headers are in either
 12833  // *GoogleCloudDataplexV1DataAttribute.ServerResponse.Header or (if a response
 12834  // was returned at all) in error.(*googleapi.Error).Header. Use
 12835  // googleapi.IsNotModified to check whether the returned error was because
 12836  // http.StatusNotModified was returned.
 12837  func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataAttribute, error) {
 12838  	gensupport.SetOptions(c.urlParams_, opts...)
 12839  	res, err := c.doRequest("json")
 12840  	if res != nil && res.StatusCode == http.StatusNotModified {
 12841  		if res.Body != nil {
 12842  			res.Body.Close()
 12843  		}
 12844  		return nil, gensupport.WrapError(&googleapi.Error{
 12845  			Code:   res.StatusCode,
 12846  			Header: res.Header,
 12847  		})
 12848  	}
 12849  	if err != nil {
 12850  		return nil, err
 12851  	}
 12852  	defer googleapi.CloseBody(res)
 12853  	if err := googleapi.CheckResponse(res); err != nil {
 12854  		return nil, gensupport.WrapError(err)
 12855  	}
 12856  	ret := &GoogleCloudDataplexV1DataAttribute{
 12857  		ServerResponse: googleapi.ServerResponse{
 12858  			Header:         res.Header,
 12859  			HTTPStatusCode: res.StatusCode,
 12860  		},
 12861  	}
 12862  	target := &ret
 12863  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12864  		return nil, err
 12865  	}
 12866  	return ret, nil
 12867  }
 12868  
 12869  type ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall struct {
 12870  	s            *Service
 12871  	resource     string
 12872  	urlParams_   gensupport.URLParams
 12873  	ifNoneMatch_ string
 12874  	ctx_         context.Context
 12875  	header_      http.Header
 12876  }
 12877  
 12878  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 12879  // empty policy if the resource exists and does not have a policy set.
 12880  //
 12881  //   - resource: REQUIRED: The resource for which the policy is being requested.
 12882  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 12883  //     for the appropriate value for this field.
 12884  func (r *ProjectsLocationsDataTaxonomiesAttributesService) GetIamPolicy(resource string) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
 12885  	c := &ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12886  	c.resource = resource
 12887  	return c
 12888  }
 12889  
 12890  // OptionsRequestedPolicyVersion sets the optional parameter
 12891  // "options.requestedPolicyVersion": The maximum policy version that will be
 12892  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 12893  // an invalid value will be rejected.Requests for policies with any conditional
 12894  // role bindings must specify version 3. Policies with no conditional role
 12895  // bindings may specify any valid value or leave the field unset.The policy in
 12896  // the response might use the policy version that you specified, or it might
 12897  // use a lower policy version. For example, if you specify version 3, but the
 12898  // policy has no conditional role bindings, the response uses version 1.To
 12899  // learn which resources support conditions in their IAM policies, see the IAM
 12900  // documentation
 12901  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 12902  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
 12903  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 12904  	return c
 12905  }
 12906  
 12907  // Fields allows partial responses to be retrieved. See
 12908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12909  // details.
 12910  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
 12911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12912  	return c
 12913  }
 12914  
 12915  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12916  // object's ETag matches the given value. This is useful for getting updates
 12917  // only after the object has changed since the last request.
 12918  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
 12919  	c.ifNoneMatch_ = entityTag
 12920  	return c
 12921  }
 12922  
 12923  // Context sets the context to be used in this call's Do method.
 12924  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
 12925  	c.ctx_ = ctx
 12926  	return c
 12927  }
 12928  
 12929  // Header returns a http.Header that can be modified by the caller to add
 12930  // headers to the request.
 12931  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Header() http.Header {
 12932  	if c.header_ == nil {
 12933  		c.header_ = make(http.Header)
 12934  	}
 12935  	return c.header_
 12936  }
 12937  
 12938  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 12939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12940  	if c.ifNoneMatch_ != "" {
 12941  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12942  	}
 12943  	var body io.Reader = nil
 12944  	c.urlParams_.Set("alt", alt)
 12945  	c.urlParams_.Set("prettyPrint", "false")
 12946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 12947  	urls += "?" + c.urlParams_.Encode()
 12948  	req, err := http.NewRequest("GET", urls, body)
 12949  	if err != nil {
 12950  		return nil, err
 12951  	}
 12952  	req.Header = reqHeaders
 12953  	googleapi.Expand(req.URL, map[string]string{
 12954  		"resource": c.resource,
 12955  	})
 12956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12957  }
 12958  
 12959  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.getIamPolicy" call.
 12960  // Any non-2xx status code is an error. Response headers are in either
 12961  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 12962  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12963  // check whether the returned error was because http.StatusNotModified was
 12964  // returned.
 12965  func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 12966  	gensupport.SetOptions(c.urlParams_, opts...)
 12967  	res, err := c.doRequest("json")
 12968  	if res != nil && res.StatusCode == http.StatusNotModified {
 12969  		if res.Body != nil {
 12970  			res.Body.Close()
 12971  		}
 12972  		return nil, gensupport.WrapError(&googleapi.Error{
 12973  			Code:   res.StatusCode,
 12974  			Header: res.Header,
 12975  		})
 12976  	}
 12977  	if err != nil {
 12978  		return nil, err
 12979  	}
 12980  	defer googleapi.CloseBody(res)
 12981  	if err := googleapi.CheckResponse(res); err != nil {
 12982  		return nil, gensupport.WrapError(err)
 12983  	}
 12984  	ret := &GoogleIamV1Policy{
 12985  		ServerResponse: googleapi.ServerResponse{
 12986  			Header:         res.Header,
 12987  			HTTPStatusCode: res.StatusCode,
 12988  		},
 12989  	}
 12990  	target := &ret
 12991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12992  		return nil, err
 12993  	}
 12994  	return ret, nil
 12995  }
 12996  
 12997  type ProjectsLocationsDataTaxonomiesAttributesListCall struct {
 12998  	s            *Service
 12999  	parent       string
 13000  	urlParams_   gensupport.URLParams
 13001  	ifNoneMatch_ string
 13002  	ctx_         context.Context
 13003  	header_      http.Header
 13004  }
 13005  
 13006  // List: Lists Data Attribute resources in a DataTaxonomy.
 13007  //
 13008  //   - parent: The resource name of the DataTaxonomy:
 13009  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxo
 13010  //     nomy_id}.
 13011  func (r *ProjectsLocationsDataTaxonomiesAttributesService) List(parent string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13012  	c := &ProjectsLocationsDataTaxonomiesAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13013  	c.parent = parent
 13014  	return c
 13015  }
 13016  
 13017  // Filter sets the optional parameter "filter": Filter request.
 13018  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Filter(filter string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13019  	c.urlParams_.Set("filter", filter)
 13020  	return c
 13021  }
 13022  
 13023  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 13024  // result.
 13025  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) OrderBy(orderBy string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13026  	c.urlParams_.Set("orderBy", orderBy)
 13027  	return c
 13028  }
 13029  
 13030  // PageSize sets the optional parameter "pageSize": Maximum number of
 13031  // DataAttributes to return. The service may return fewer than this value. If
 13032  // unspecified, at most 10 dataAttributes will be returned. The maximum value
 13033  // is 1000; values above 1000 will be coerced to 1000.
 13034  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) PageSize(pageSize int64) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13035  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13036  	return c
 13037  }
 13038  
 13039  // PageToken sets the optional parameter "pageToken": Page token received from
 13040  // a previous ListDataAttributes call. Provide this to retrieve the subsequent
 13041  // page. When paginating, all other parameters provided to ListDataAttributes
 13042  // must match the call that provided the page token.
 13043  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) PageToken(pageToken string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13044  	c.urlParams_.Set("pageToken", pageToken)
 13045  	return c
 13046  }
 13047  
 13048  // Fields allows partial responses to be retrieved. See
 13049  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13050  // details.
 13051  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13052  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13053  	return c
 13054  }
 13055  
 13056  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13057  // object's ETag matches the given value. This is useful for getting updates
 13058  // only after the object has changed since the last request.
 13059  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13060  	c.ifNoneMatch_ = entityTag
 13061  	return c
 13062  }
 13063  
 13064  // Context sets the context to be used in this call's Do method.
 13065  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesListCall {
 13066  	c.ctx_ = ctx
 13067  	return c
 13068  }
 13069  
 13070  // Header returns a http.Header that can be modified by the caller to add
 13071  // headers to the request.
 13072  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Header() http.Header {
 13073  	if c.header_ == nil {
 13074  		c.header_ = make(http.Header)
 13075  	}
 13076  	return c.header_
 13077  }
 13078  
 13079  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) doRequest(alt string) (*http.Response, error) {
 13080  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13081  	if c.ifNoneMatch_ != "" {
 13082  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13083  	}
 13084  	var body io.Reader = nil
 13085  	c.urlParams_.Set("alt", alt)
 13086  	c.urlParams_.Set("prettyPrint", "false")
 13087  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
 13088  	urls += "?" + c.urlParams_.Encode()
 13089  	req, err := http.NewRequest("GET", urls, body)
 13090  	if err != nil {
 13091  		return nil, err
 13092  	}
 13093  	req.Header = reqHeaders
 13094  	googleapi.Expand(req.URL, map[string]string{
 13095  		"parent": c.parent,
 13096  	})
 13097  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13098  }
 13099  
 13100  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.list" call.
 13101  // Any non-2xx status code is an error. Response headers are in either
 13102  // *GoogleCloudDataplexV1ListDataAttributesResponse.ServerResponse.Header or
 13103  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 13104  // googleapi.IsNotModified to check whether the returned error was because
 13105  // http.StatusNotModified was returned.
 13106  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataAttributesResponse, error) {
 13107  	gensupport.SetOptions(c.urlParams_, opts...)
 13108  	res, err := c.doRequest("json")
 13109  	if res != nil && res.StatusCode == http.StatusNotModified {
 13110  		if res.Body != nil {
 13111  			res.Body.Close()
 13112  		}
 13113  		return nil, gensupport.WrapError(&googleapi.Error{
 13114  			Code:   res.StatusCode,
 13115  			Header: res.Header,
 13116  		})
 13117  	}
 13118  	if err != nil {
 13119  		return nil, err
 13120  	}
 13121  	defer googleapi.CloseBody(res)
 13122  	if err := googleapi.CheckResponse(res); err != nil {
 13123  		return nil, gensupport.WrapError(err)
 13124  	}
 13125  	ret := &GoogleCloudDataplexV1ListDataAttributesResponse{
 13126  		ServerResponse: googleapi.ServerResponse{
 13127  			Header:         res.Header,
 13128  			HTTPStatusCode: res.StatusCode,
 13129  		},
 13130  	}
 13131  	target := &ret
 13132  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13133  		return nil, err
 13134  	}
 13135  	return ret, nil
 13136  }
 13137  
 13138  // Pages invokes f for each page of results.
 13139  // A non-nil error returned from f will halt the iteration.
 13140  // The provided context supersedes any context provided to the Context method.
 13141  func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataAttributesResponse) error) error {
 13142  	c.ctx_ = ctx
 13143  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13144  	for {
 13145  		x, err := c.Do()
 13146  		if err != nil {
 13147  			return err
 13148  		}
 13149  		if err := f(x); err != nil {
 13150  			return err
 13151  		}
 13152  		if x.NextPageToken == "" {
 13153  			return nil
 13154  		}
 13155  		c.PageToken(x.NextPageToken)
 13156  	}
 13157  }
 13158  
 13159  type ProjectsLocationsDataTaxonomiesAttributesPatchCall struct {
 13160  	s                                  *Service
 13161  	name                               string
 13162  	googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute
 13163  	urlParams_                         gensupport.URLParams
 13164  	ctx_                               context.Context
 13165  	header_                            http.Header
 13166  }
 13167  
 13168  // Patch: Updates a DataAttribute resource.
 13169  //
 13170  //   - name: Output only. The relative resource name of the dataAttribute, of the
 13171  //     form:
 13172  //     projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxon
 13173  //     omy}/attributes/{data_attribute_id}.
 13174  func (r *ProjectsLocationsDataTaxonomiesAttributesService) Patch(name string, googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
 13175  	c := &ProjectsLocationsDataTaxonomiesAttributesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13176  	c.name = name
 13177  	c.googleclouddataplexv1dataattribute = googleclouddataplexv1dataattribute
 13178  	return c
 13179  }
 13180  
 13181  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 13182  // fields to update.
 13183  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
 13184  	c.urlParams_.Set("updateMask", updateMask)
 13185  	return c
 13186  }
 13187  
 13188  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 13189  // request, but do not perform mutations. The default is false.
 13190  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
 13191  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 13192  	return c
 13193  }
 13194  
 13195  // Fields allows partial responses to be retrieved. See
 13196  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13197  // details.
 13198  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
 13199  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13200  	return c
 13201  }
 13202  
 13203  // Context sets the context to be used in this call's Do method.
 13204  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
 13205  	c.ctx_ = ctx
 13206  	return c
 13207  }
 13208  
 13209  // Header returns a http.Header that can be modified by the caller to add
 13210  // headers to the request.
 13211  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Header() http.Header {
 13212  	if c.header_ == nil {
 13213  		c.header_ = make(http.Header)
 13214  	}
 13215  	return c.header_
 13216  }
 13217  
 13218  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) doRequest(alt string) (*http.Response, error) {
 13219  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13220  	var body io.Reader = nil
 13221  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattribute)
 13222  	if err != nil {
 13223  		return nil, err
 13224  	}
 13225  	c.urlParams_.Set("alt", alt)
 13226  	c.urlParams_.Set("prettyPrint", "false")
 13227  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13228  	urls += "?" + c.urlParams_.Encode()
 13229  	req, err := http.NewRequest("PATCH", urls, body)
 13230  	if err != nil {
 13231  		return nil, err
 13232  	}
 13233  	req.Header = reqHeaders
 13234  	googleapi.Expand(req.URL, map[string]string{
 13235  		"name": c.name,
 13236  	})
 13237  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13238  }
 13239  
 13240  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.patch" call.
 13241  // Any non-2xx status code is an error. Response headers are in either
 13242  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13243  // returned at all) in error.(*googleapi.Error).Header. Use
 13244  // googleapi.IsNotModified to check whether the returned error was because
 13245  // http.StatusNotModified was returned.
 13246  func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13247  	gensupport.SetOptions(c.urlParams_, opts...)
 13248  	res, err := c.doRequest("json")
 13249  	if res != nil && res.StatusCode == http.StatusNotModified {
 13250  		if res.Body != nil {
 13251  			res.Body.Close()
 13252  		}
 13253  		return nil, gensupport.WrapError(&googleapi.Error{
 13254  			Code:   res.StatusCode,
 13255  			Header: res.Header,
 13256  		})
 13257  	}
 13258  	if err != nil {
 13259  		return nil, err
 13260  	}
 13261  	defer googleapi.CloseBody(res)
 13262  	if err := googleapi.CheckResponse(res); err != nil {
 13263  		return nil, gensupport.WrapError(err)
 13264  	}
 13265  	ret := &GoogleLongrunningOperation{
 13266  		ServerResponse: googleapi.ServerResponse{
 13267  			Header:         res.Header,
 13268  			HTTPStatusCode: res.StatusCode,
 13269  		},
 13270  	}
 13271  	target := &ret
 13272  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13273  		return nil, err
 13274  	}
 13275  	return ret, nil
 13276  }
 13277  
 13278  type ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall struct {
 13279  	s                              *Service
 13280  	resource                       string
 13281  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 13282  	urlParams_                     gensupport.URLParams
 13283  	ctx_                           context.Context
 13284  	header_                        http.Header
 13285  }
 13286  
 13287  // SetIamPolicy: Sets the access control policy on the specified resource.
 13288  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 13289  // PERMISSION_DENIED errors.
 13290  //
 13291  //   - resource: REQUIRED: The resource for which the policy is being specified.
 13292  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 13293  //     for the appropriate value for this field.
 13294  func (r *ProjectsLocationsDataTaxonomiesAttributesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall {
 13295  	c := &ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13296  	c.resource = resource
 13297  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 13298  	return c
 13299  }
 13300  
 13301  // Fields allows partial responses to be retrieved. See
 13302  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13303  // details.
 13304  func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall {
 13305  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13306  	return c
 13307  }
 13308  
 13309  // Context sets the context to be used in this call's Do method.
 13310  func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall {
 13311  	c.ctx_ = ctx
 13312  	return c
 13313  }
 13314  
 13315  // Header returns a http.Header that can be modified by the caller to add
 13316  // headers to the request.
 13317  func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Header() http.Header {
 13318  	if c.header_ == nil {
 13319  		c.header_ = make(http.Header)
 13320  	}
 13321  	return c.header_
 13322  }
 13323  
 13324  func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 13325  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13326  	var body io.Reader = nil
 13327  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 13328  	if err != nil {
 13329  		return nil, err
 13330  	}
 13331  	c.urlParams_.Set("alt", alt)
 13332  	c.urlParams_.Set("prettyPrint", "false")
 13333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 13334  	urls += "?" + c.urlParams_.Encode()
 13335  	req, err := http.NewRequest("POST", urls, body)
 13336  	if err != nil {
 13337  		return nil, err
 13338  	}
 13339  	req.Header = reqHeaders
 13340  	googleapi.Expand(req.URL, map[string]string{
 13341  		"resource": c.resource,
 13342  	})
 13343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13344  }
 13345  
 13346  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.setIamPolicy" call.
 13347  // Any non-2xx status code is an error. Response headers are in either
 13348  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 13349  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13350  // check whether the returned error was because http.StatusNotModified was
 13351  // returned.
 13352  func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 13353  	gensupport.SetOptions(c.urlParams_, opts...)
 13354  	res, err := c.doRequest("json")
 13355  	if res != nil && res.StatusCode == http.StatusNotModified {
 13356  		if res.Body != nil {
 13357  			res.Body.Close()
 13358  		}
 13359  		return nil, gensupport.WrapError(&googleapi.Error{
 13360  			Code:   res.StatusCode,
 13361  			Header: res.Header,
 13362  		})
 13363  	}
 13364  	if err != nil {
 13365  		return nil, err
 13366  	}
 13367  	defer googleapi.CloseBody(res)
 13368  	if err := googleapi.CheckResponse(res); err != nil {
 13369  		return nil, gensupport.WrapError(err)
 13370  	}
 13371  	ret := &GoogleIamV1Policy{
 13372  		ServerResponse: googleapi.ServerResponse{
 13373  			Header:         res.Header,
 13374  			HTTPStatusCode: res.StatusCode,
 13375  		},
 13376  	}
 13377  	target := &ret
 13378  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13379  		return nil, err
 13380  	}
 13381  	return ret, nil
 13382  }
 13383  
 13384  type ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall struct {
 13385  	s                                    *Service
 13386  	resource                             string
 13387  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 13388  	urlParams_                           gensupport.URLParams
 13389  	ctx_                                 context.Context
 13390  	header_                              http.Header
 13391  }
 13392  
 13393  // TestIamPermissions: Returns permissions that a caller has on the specified
 13394  // resource. If the resource does not exist, this will return an empty set of
 13395  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 13396  // used for building permission-aware UIs and command-line tools, not for
 13397  // authorization checking. This operation may "fail open" without warning.
 13398  //
 13399  //   - resource: REQUIRED: The resource for which the policy detail is being
 13400  //     requested. See Resource names
 13401  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 13402  //     value for this field.
 13403  func (r *ProjectsLocationsDataTaxonomiesAttributesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall {
 13404  	c := &ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13405  	c.resource = resource
 13406  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 13407  	return c
 13408  }
 13409  
 13410  // Fields allows partial responses to be retrieved. See
 13411  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13412  // details.
 13413  func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall {
 13414  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13415  	return c
 13416  }
 13417  
 13418  // Context sets the context to be used in this call's Do method.
 13419  func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall {
 13420  	c.ctx_ = ctx
 13421  	return c
 13422  }
 13423  
 13424  // Header returns a http.Header that can be modified by the caller to add
 13425  // headers to the request.
 13426  func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Header() http.Header {
 13427  	if c.header_ == nil {
 13428  		c.header_ = make(http.Header)
 13429  	}
 13430  	return c.header_
 13431  }
 13432  
 13433  func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 13434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13435  	var body io.Reader = nil
 13436  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 13437  	if err != nil {
 13438  		return nil, err
 13439  	}
 13440  	c.urlParams_.Set("alt", alt)
 13441  	c.urlParams_.Set("prettyPrint", "false")
 13442  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 13443  	urls += "?" + c.urlParams_.Encode()
 13444  	req, err := http.NewRequest("POST", urls, body)
 13445  	if err != nil {
 13446  		return nil, err
 13447  	}
 13448  	req.Header = reqHeaders
 13449  	googleapi.Expand(req.URL, map[string]string{
 13450  		"resource": c.resource,
 13451  	})
 13452  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13453  }
 13454  
 13455  // Do executes the "dataplex.projects.locations.dataTaxonomies.attributes.testIamPermissions" call.
 13456  // Any non-2xx status code is an error. Response headers are in either
 13457  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 13458  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13459  // googleapi.IsNotModified to check whether the returned error was because
 13460  // http.StatusNotModified was returned.
 13461  func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 13462  	gensupport.SetOptions(c.urlParams_, opts...)
 13463  	res, err := c.doRequest("json")
 13464  	if res != nil && res.StatusCode == http.StatusNotModified {
 13465  		if res.Body != nil {
 13466  			res.Body.Close()
 13467  		}
 13468  		return nil, gensupport.WrapError(&googleapi.Error{
 13469  			Code:   res.StatusCode,
 13470  			Header: res.Header,
 13471  		})
 13472  	}
 13473  	if err != nil {
 13474  		return nil, err
 13475  	}
 13476  	defer googleapi.CloseBody(res)
 13477  	if err := googleapi.CheckResponse(res); err != nil {
 13478  		return nil, gensupport.WrapError(err)
 13479  	}
 13480  	ret := &GoogleIamV1TestIamPermissionsResponse{
 13481  		ServerResponse: googleapi.ServerResponse{
 13482  			Header:         res.Header,
 13483  			HTTPStatusCode: res.StatusCode,
 13484  		},
 13485  	}
 13486  	target := &ret
 13487  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13488  		return nil, err
 13489  	}
 13490  	return ret, nil
 13491  }
 13492  
 13493  type ProjectsLocationsEntryGroupsCreateCall struct {
 13494  	s                               *Service
 13495  	parent                          string
 13496  	googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup
 13497  	urlParams_                      gensupport.URLParams
 13498  	ctx_                            context.Context
 13499  	header_                         http.Header
 13500  }
 13501  
 13502  // Create: Creates an EntryGroup
 13503  //
 13504  //   - parent: The resource name of the entryGroup, of the form:
 13505  //     projects/{project_number}/locations/{location_id} where location_id refers
 13506  //     to a GCP region.
 13507  func (r *ProjectsLocationsEntryGroupsService) Create(parent string, googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup) *ProjectsLocationsEntryGroupsCreateCall {
 13508  	c := &ProjectsLocationsEntryGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13509  	c.parent = parent
 13510  	c.googleclouddataplexv1entrygroup = googleclouddataplexv1entrygroup
 13511  	return c
 13512  }
 13513  
 13514  // EntryGroupId sets the optional parameter "entryGroupId": Required.
 13515  // EntryGroup identifier.
 13516  func (c *ProjectsLocationsEntryGroupsCreateCall) EntryGroupId(entryGroupId string) *ProjectsLocationsEntryGroupsCreateCall {
 13517  	c.urlParams_.Set("entryGroupId", entryGroupId)
 13518  	return c
 13519  }
 13520  
 13521  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 13522  // request, but do not perform mutations. The default is false.
 13523  func (c *ProjectsLocationsEntryGroupsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryGroupsCreateCall {
 13524  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 13525  	return c
 13526  }
 13527  
 13528  // Fields allows partial responses to be retrieved. See
 13529  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13530  // details.
 13531  func (c *ProjectsLocationsEntryGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsCreateCall {
 13532  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13533  	return c
 13534  }
 13535  
 13536  // Context sets the context to be used in this call's Do method.
 13537  func (c *ProjectsLocationsEntryGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsCreateCall {
 13538  	c.ctx_ = ctx
 13539  	return c
 13540  }
 13541  
 13542  // Header returns a http.Header that can be modified by the caller to add
 13543  // headers to the request.
 13544  func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header {
 13545  	if c.header_ == nil {
 13546  		c.header_ = make(http.Header)
 13547  	}
 13548  	return c.header_
 13549  }
 13550  
 13551  func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
 13552  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13553  	var body io.Reader = nil
 13554  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrygroup)
 13555  	if err != nil {
 13556  		return nil, err
 13557  	}
 13558  	c.urlParams_.Set("alt", alt)
 13559  	c.urlParams_.Set("prettyPrint", "false")
 13560  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
 13561  	urls += "?" + c.urlParams_.Encode()
 13562  	req, err := http.NewRequest("POST", urls, body)
 13563  	if err != nil {
 13564  		return nil, err
 13565  	}
 13566  	req.Header = reqHeaders
 13567  	googleapi.Expand(req.URL, map[string]string{
 13568  		"parent": c.parent,
 13569  	})
 13570  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13571  }
 13572  
 13573  // Do executes the "dataplex.projects.locations.entryGroups.create" call.
 13574  // Any non-2xx status code is an error. Response headers are in either
 13575  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13576  // returned at all) in error.(*googleapi.Error).Header. Use
 13577  // googleapi.IsNotModified to check whether the returned error was because
 13578  // http.StatusNotModified was returned.
 13579  func (c *ProjectsLocationsEntryGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13580  	gensupport.SetOptions(c.urlParams_, opts...)
 13581  	res, err := c.doRequest("json")
 13582  	if res != nil && res.StatusCode == http.StatusNotModified {
 13583  		if res.Body != nil {
 13584  			res.Body.Close()
 13585  		}
 13586  		return nil, gensupport.WrapError(&googleapi.Error{
 13587  			Code:   res.StatusCode,
 13588  			Header: res.Header,
 13589  		})
 13590  	}
 13591  	if err != nil {
 13592  		return nil, err
 13593  	}
 13594  	defer googleapi.CloseBody(res)
 13595  	if err := googleapi.CheckResponse(res); err != nil {
 13596  		return nil, gensupport.WrapError(err)
 13597  	}
 13598  	ret := &GoogleLongrunningOperation{
 13599  		ServerResponse: googleapi.ServerResponse{
 13600  			Header:         res.Header,
 13601  			HTTPStatusCode: res.StatusCode,
 13602  		},
 13603  	}
 13604  	target := &ret
 13605  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13606  		return nil, err
 13607  	}
 13608  	return ret, nil
 13609  }
 13610  
 13611  type ProjectsLocationsEntryGroupsDeleteCall struct {
 13612  	s          *Service
 13613  	name       string
 13614  	urlParams_ gensupport.URLParams
 13615  	ctx_       context.Context
 13616  	header_    http.Header
 13617  }
 13618  
 13619  // Delete: Deletes a EntryGroup resource.
 13620  //
 13621  //   - name: The resource name of the EntryGroup:
 13622  //     projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_
 13623  //     id}.
 13624  func (r *ProjectsLocationsEntryGroupsService) Delete(name string) *ProjectsLocationsEntryGroupsDeleteCall {
 13625  	c := &ProjectsLocationsEntryGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13626  	c.name = name
 13627  	return c
 13628  }
 13629  
 13630  // Etag sets the optional parameter "etag": If the client provided etag value
 13631  // does not match the current etag value, the DeleteEntryGroupRequest method
 13632  // returns an ABORTED error response
 13633  func (c *ProjectsLocationsEntryGroupsDeleteCall) Etag(etag string) *ProjectsLocationsEntryGroupsDeleteCall {
 13634  	c.urlParams_.Set("etag", etag)
 13635  	return c
 13636  }
 13637  
 13638  // Fields allows partial responses to be retrieved. See
 13639  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13640  // details.
 13641  func (c *ProjectsLocationsEntryGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsDeleteCall {
 13642  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13643  	return c
 13644  }
 13645  
 13646  // Context sets the context to be used in this call's Do method.
 13647  func (c *ProjectsLocationsEntryGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsDeleteCall {
 13648  	c.ctx_ = ctx
 13649  	return c
 13650  }
 13651  
 13652  // Header returns a http.Header that can be modified by the caller to add
 13653  // headers to the request.
 13654  func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header {
 13655  	if c.header_ == nil {
 13656  		c.header_ = make(http.Header)
 13657  	}
 13658  	return c.header_
 13659  }
 13660  
 13661  func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
 13662  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13663  	var body io.Reader = nil
 13664  	c.urlParams_.Set("alt", alt)
 13665  	c.urlParams_.Set("prettyPrint", "false")
 13666  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13667  	urls += "?" + c.urlParams_.Encode()
 13668  	req, err := http.NewRequest("DELETE", urls, body)
 13669  	if err != nil {
 13670  		return nil, err
 13671  	}
 13672  	req.Header = reqHeaders
 13673  	googleapi.Expand(req.URL, map[string]string{
 13674  		"name": c.name,
 13675  	})
 13676  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13677  }
 13678  
 13679  // Do executes the "dataplex.projects.locations.entryGroups.delete" call.
 13680  // Any non-2xx status code is an error. Response headers are in either
 13681  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13682  // returned at all) in error.(*googleapi.Error).Header. Use
 13683  // googleapi.IsNotModified to check whether the returned error was because
 13684  // http.StatusNotModified was returned.
 13685  func (c *ProjectsLocationsEntryGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13686  	gensupport.SetOptions(c.urlParams_, opts...)
 13687  	res, err := c.doRequest("json")
 13688  	if res != nil && res.StatusCode == http.StatusNotModified {
 13689  		if res.Body != nil {
 13690  			res.Body.Close()
 13691  		}
 13692  		return nil, gensupport.WrapError(&googleapi.Error{
 13693  			Code:   res.StatusCode,
 13694  			Header: res.Header,
 13695  		})
 13696  	}
 13697  	if err != nil {
 13698  		return nil, err
 13699  	}
 13700  	defer googleapi.CloseBody(res)
 13701  	if err := googleapi.CheckResponse(res); err != nil {
 13702  		return nil, gensupport.WrapError(err)
 13703  	}
 13704  	ret := &GoogleLongrunningOperation{
 13705  		ServerResponse: googleapi.ServerResponse{
 13706  			Header:         res.Header,
 13707  			HTTPStatusCode: res.StatusCode,
 13708  		},
 13709  	}
 13710  	target := &ret
 13711  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13712  		return nil, err
 13713  	}
 13714  	return ret, nil
 13715  }
 13716  
 13717  type ProjectsLocationsEntryGroupsGetCall struct {
 13718  	s            *Service
 13719  	name         string
 13720  	urlParams_   gensupport.URLParams
 13721  	ifNoneMatch_ string
 13722  	ctx_         context.Context
 13723  	header_      http.Header
 13724  }
 13725  
 13726  // Get: Retrieves a EntryGroup resource.
 13727  //
 13728  //   - name: The resource name of the EntryGroup:
 13729  //     projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_
 13730  //     id}.
 13731  func (r *ProjectsLocationsEntryGroupsService) Get(name string) *ProjectsLocationsEntryGroupsGetCall {
 13732  	c := &ProjectsLocationsEntryGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13733  	c.name = name
 13734  	return c
 13735  }
 13736  
 13737  // Fields allows partial responses to be retrieved. See
 13738  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13739  // details.
 13740  func (c *ProjectsLocationsEntryGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetCall {
 13741  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13742  	return c
 13743  }
 13744  
 13745  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13746  // object's ETag matches the given value. This is useful for getting updates
 13747  // only after the object has changed since the last request.
 13748  func (c *ProjectsLocationsEntryGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetCall {
 13749  	c.ifNoneMatch_ = entityTag
 13750  	return c
 13751  }
 13752  
 13753  // Context sets the context to be used in this call's Do method.
 13754  func (c *ProjectsLocationsEntryGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetCall {
 13755  	c.ctx_ = ctx
 13756  	return c
 13757  }
 13758  
 13759  // Header returns a http.Header that can be modified by the caller to add
 13760  // headers to the request.
 13761  func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header {
 13762  	if c.header_ == nil {
 13763  		c.header_ = make(http.Header)
 13764  	}
 13765  	return c.header_
 13766  }
 13767  
 13768  func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Response, error) {
 13769  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13770  	if c.ifNoneMatch_ != "" {
 13771  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13772  	}
 13773  	var body io.Reader = nil
 13774  	c.urlParams_.Set("alt", alt)
 13775  	c.urlParams_.Set("prettyPrint", "false")
 13776  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 13777  	urls += "?" + c.urlParams_.Encode()
 13778  	req, err := http.NewRequest("GET", urls, body)
 13779  	if err != nil {
 13780  		return nil, err
 13781  	}
 13782  	req.Header = reqHeaders
 13783  	googleapi.Expand(req.URL, map[string]string{
 13784  		"name": c.name,
 13785  	})
 13786  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13787  }
 13788  
 13789  // Do executes the "dataplex.projects.locations.entryGroups.get" call.
 13790  // Any non-2xx status code is an error. Response headers are in either
 13791  // *GoogleCloudDataplexV1EntryGroup.ServerResponse.Header or (if a response was
 13792  // returned at all) in error.(*googleapi.Error).Header. Use
 13793  // googleapi.IsNotModified to check whether the returned error was because
 13794  // http.StatusNotModified was returned.
 13795  func (c *ProjectsLocationsEntryGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1EntryGroup, error) {
 13796  	gensupport.SetOptions(c.urlParams_, opts...)
 13797  	res, err := c.doRequest("json")
 13798  	if res != nil && res.StatusCode == http.StatusNotModified {
 13799  		if res.Body != nil {
 13800  			res.Body.Close()
 13801  		}
 13802  		return nil, gensupport.WrapError(&googleapi.Error{
 13803  			Code:   res.StatusCode,
 13804  			Header: res.Header,
 13805  		})
 13806  	}
 13807  	if err != nil {
 13808  		return nil, err
 13809  	}
 13810  	defer googleapi.CloseBody(res)
 13811  	if err := googleapi.CheckResponse(res); err != nil {
 13812  		return nil, gensupport.WrapError(err)
 13813  	}
 13814  	ret := &GoogleCloudDataplexV1EntryGroup{
 13815  		ServerResponse: googleapi.ServerResponse{
 13816  			Header:         res.Header,
 13817  			HTTPStatusCode: res.StatusCode,
 13818  		},
 13819  	}
 13820  	target := &ret
 13821  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13822  		return nil, err
 13823  	}
 13824  	return ret, nil
 13825  }
 13826  
 13827  type ProjectsLocationsEntryGroupsGetIamPolicyCall struct {
 13828  	s            *Service
 13829  	resource     string
 13830  	urlParams_   gensupport.URLParams
 13831  	ifNoneMatch_ string
 13832  	ctx_         context.Context
 13833  	header_      http.Header
 13834  }
 13835  
 13836  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 13837  // empty policy if the resource exists and does not have a policy set.
 13838  //
 13839  //   - resource: REQUIRED: The resource for which the policy is being requested.
 13840  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 13841  //     for the appropriate value for this field.
 13842  func (r *ProjectsLocationsEntryGroupsService) GetIamPolicy(resource string) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
 13843  	c := &ProjectsLocationsEntryGroupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13844  	c.resource = resource
 13845  	return c
 13846  }
 13847  
 13848  // OptionsRequestedPolicyVersion sets the optional parameter
 13849  // "options.requestedPolicyVersion": The maximum policy version that will be
 13850  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 13851  // an invalid value will be rejected.Requests for policies with any conditional
 13852  // role bindings must specify version 3. Policies with no conditional role
 13853  // bindings may specify any valid value or leave the field unset.The policy in
 13854  // the response might use the policy version that you specified, or it might
 13855  // use a lower policy version. For example, if you specify version 3, but the
 13856  // policy has no conditional role bindings, the response uses version 1.To
 13857  // learn which resources support conditions in their IAM policies, see the IAM
 13858  // documentation
 13859  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 13860  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
 13861  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 13862  	return c
 13863  }
 13864  
 13865  // Fields allows partial responses to be retrieved. See
 13866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13867  // details.
 13868  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
 13869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13870  	return c
 13871  }
 13872  
 13873  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13874  // object's ETag matches the given value. This is useful for getting updates
 13875  // only after the object has changed since the last request.
 13876  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
 13877  	c.ifNoneMatch_ = entityTag
 13878  	return c
 13879  }
 13880  
 13881  // Context sets the context to be used in this call's Do method.
 13882  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
 13883  	c.ctx_ = ctx
 13884  	return c
 13885  }
 13886  
 13887  // Header returns a http.Header that can be modified by the caller to add
 13888  // headers to the request.
 13889  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header {
 13890  	if c.header_ == nil {
 13891  		c.header_ = make(http.Header)
 13892  	}
 13893  	return c.header_
 13894  }
 13895  
 13896  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 13897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13898  	if c.ifNoneMatch_ != "" {
 13899  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13900  	}
 13901  	var body io.Reader = nil
 13902  	c.urlParams_.Set("alt", alt)
 13903  	c.urlParams_.Set("prettyPrint", "false")
 13904  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 13905  	urls += "?" + c.urlParams_.Encode()
 13906  	req, err := http.NewRequest("GET", urls, body)
 13907  	if err != nil {
 13908  		return nil, err
 13909  	}
 13910  	req.Header = reqHeaders
 13911  	googleapi.Expand(req.URL, map[string]string{
 13912  		"resource": c.resource,
 13913  	})
 13914  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13915  }
 13916  
 13917  // Do executes the "dataplex.projects.locations.entryGroups.getIamPolicy" call.
 13918  // Any non-2xx status code is an error. Response headers are in either
 13919  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 13920  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13921  // check whether the returned error was because http.StatusNotModified was
 13922  // returned.
 13923  func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 13924  	gensupport.SetOptions(c.urlParams_, opts...)
 13925  	res, err := c.doRequest("json")
 13926  	if res != nil && res.StatusCode == http.StatusNotModified {
 13927  		if res.Body != nil {
 13928  			res.Body.Close()
 13929  		}
 13930  		return nil, gensupport.WrapError(&googleapi.Error{
 13931  			Code:   res.StatusCode,
 13932  			Header: res.Header,
 13933  		})
 13934  	}
 13935  	if err != nil {
 13936  		return nil, err
 13937  	}
 13938  	defer googleapi.CloseBody(res)
 13939  	if err := googleapi.CheckResponse(res); err != nil {
 13940  		return nil, gensupport.WrapError(err)
 13941  	}
 13942  	ret := &GoogleIamV1Policy{
 13943  		ServerResponse: googleapi.ServerResponse{
 13944  			Header:         res.Header,
 13945  			HTTPStatusCode: res.StatusCode,
 13946  		},
 13947  	}
 13948  	target := &ret
 13949  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13950  		return nil, err
 13951  	}
 13952  	return ret, nil
 13953  }
 13954  
 13955  type ProjectsLocationsEntryGroupsListCall struct {
 13956  	s            *Service
 13957  	parent       string
 13958  	urlParams_   gensupport.URLParams
 13959  	ifNoneMatch_ string
 13960  	ctx_         context.Context
 13961  	header_      http.Header
 13962  }
 13963  
 13964  // List: Lists EntryGroup resources in a project and location.
 13965  //
 13966  //   - parent: The resource name of the entryGroup location, of the form:
 13967  //     projects/{project_number}/locations/{location_id} where location_id refers
 13968  //     to a GCP region.
 13969  func (r *ProjectsLocationsEntryGroupsService) List(parent string) *ProjectsLocationsEntryGroupsListCall {
 13970  	c := &ProjectsLocationsEntryGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13971  	c.parent = parent
 13972  	return c
 13973  }
 13974  
 13975  // Filter sets the optional parameter "filter": Filter request.
 13976  func (c *ProjectsLocationsEntryGroupsListCall) Filter(filter string) *ProjectsLocationsEntryGroupsListCall {
 13977  	c.urlParams_.Set("filter", filter)
 13978  	return c
 13979  }
 13980  
 13981  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 13982  // result.
 13983  func (c *ProjectsLocationsEntryGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsEntryGroupsListCall {
 13984  	c.urlParams_.Set("orderBy", orderBy)
 13985  	return c
 13986  }
 13987  
 13988  // PageSize sets the optional parameter "pageSize": Maximum number of
 13989  // EntryGroups to return. The service may return fewer than this value. If
 13990  // unspecified, at most 10 EntryGroups will be returned. The maximum value is
 13991  // 1000; values above 1000 will be coerced to 1000.
 13992  func (c *ProjectsLocationsEntryGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsListCall {
 13993  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13994  	return c
 13995  }
 13996  
 13997  // PageToken sets the optional parameter "pageToken": Page token received from
 13998  // a previous ListEntryGroups call. Provide this to retrieve the subsequent
 13999  // page. When paginating, all other parameters provided to ListEntryGroups must
 14000  // match the call that provided the page token.
 14001  func (c *ProjectsLocationsEntryGroupsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsListCall {
 14002  	c.urlParams_.Set("pageToken", pageToken)
 14003  	return c
 14004  }
 14005  
 14006  // Fields allows partial responses to be retrieved. See
 14007  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14008  // details.
 14009  func (c *ProjectsLocationsEntryGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsListCall {
 14010  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14011  	return c
 14012  }
 14013  
 14014  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14015  // object's ETag matches the given value. This is useful for getting updates
 14016  // only after the object has changed since the last request.
 14017  func (c *ProjectsLocationsEntryGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsListCall {
 14018  	c.ifNoneMatch_ = entityTag
 14019  	return c
 14020  }
 14021  
 14022  // Context sets the context to be used in this call's Do method.
 14023  func (c *ProjectsLocationsEntryGroupsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsListCall {
 14024  	c.ctx_ = ctx
 14025  	return c
 14026  }
 14027  
 14028  // Header returns a http.Header that can be modified by the caller to add
 14029  // headers to the request.
 14030  func (c *ProjectsLocationsEntryGroupsListCall) Header() http.Header {
 14031  	if c.header_ == nil {
 14032  		c.header_ = make(http.Header)
 14033  	}
 14034  	return c.header_
 14035  }
 14036  
 14037  func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Response, error) {
 14038  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14039  	if c.ifNoneMatch_ != "" {
 14040  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14041  	}
 14042  	var body io.Reader = nil
 14043  	c.urlParams_.Set("alt", alt)
 14044  	c.urlParams_.Set("prettyPrint", "false")
 14045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
 14046  	urls += "?" + c.urlParams_.Encode()
 14047  	req, err := http.NewRequest("GET", urls, body)
 14048  	if err != nil {
 14049  		return nil, err
 14050  	}
 14051  	req.Header = reqHeaders
 14052  	googleapi.Expand(req.URL, map[string]string{
 14053  		"parent": c.parent,
 14054  	})
 14055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14056  }
 14057  
 14058  // Do executes the "dataplex.projects.locations.entryGroups.list" call.
 14059  // Any non-2xx status code is an error. Response headers are in either
 14060  // *GoogleCloudDataplexV1ListEntryGroupsResponse.ServerResponse.Header or (if a
 14061  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14062  // googleapi.IsNotModified to check whether the returned error was because
 14063  // http.StatusNotModified was returned.
 14064  func (c *ProjectsLocationsEntryGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntryGroupsResponse, error) {
 14065  	gensupport.SetOptions(c.urlParams_, opts...)
 14066  	res, err := c.doRequest("json")
 14067  	if res != nil && res.StatusCode == http.StatusNotModified {
 14068  		if res.Body != nil {
 14069  			res.Body.Close()
 14070  		}
 14071  		return nil, gensupport.WrapError(&googleapi.Error{
 14072  			Code:   res.StatusCode,
 14073  			Header: res.Header,
 14074  		})
 14075  	}
 14076  	if err != nil {
 14077  		return nil, err
 14078  	}
 14079  	defer googleapi.CloseBody(res)
 14080  	if err := googleapi.CheckResponse(res); err != nil {
 14081  		return nil, gensupport.WrapError(err)
 14082  	}
 14083  	ret := &GoogleCloudDataplexV1ListEntryGroupsResponse{
 14084  		ServerResponse: googleapi.ServerResponse{
 14085  			Header:         res.Header,
 14086  			HTTPStatusCode: res.StatusCode,
 14087  		},
 14088  	}
 14089  	target := &ret
 14090  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14091  		return nil, err
 14092  	}
 14093  	return ret, nil
 14094  }
 14095  
 14096  // Pages invokes f for each page of results.
 14097  // A non-nil error returned from f will halt the iteration.
 14098  // The provided context supersedes any context provided to the Context method.
 14099  func (c *ProjectsLocationsEntryGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntryGroupsResponse) error) error {
 14100  	c.ctx_ = ctx
 14101  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14102  	for {
 14103  		x, err := c.Do()
 14104  		if err != nil {
 14105  			return err
 14106  		}
 14107  		if err := f(x); err != nil {
 14108  			return err
 14109  		}
 14110  		if x.NextPageToken == "" {
 14111  			return nil
 14112  		}
 14113  		c.PageToken(x.NextPageToken)
 14114  	}
 14115  }
 14116  
 14117  type ProjectsLocationsEntryGroupsPatchCall struct {
 14118  	s                               *Service
 14119  	name                            string
 14120  	googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup
 14121  	urlParams_                      gensupport.URLParams
 14122  	ctx_                            context.Context
 14123  	header_                         http.Header
 14124  }
 14125  
 14126  // Patch: Updates a EntryGroup resource.
 14127  //
 14128  //   - name: Output only. The relative resource name of the EntryGroup, of the
 14129  //     form:
 14130  //     projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_
 14131  //     id}.
 14132  func (r *ProjectsLocationsEntryGroupsService) Patch(name string, googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup) *ProjectsLocationsEntryGroupsPatchCall {
 14133  	c := &ProjectsLocationsEntryGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14134  	c.name = name
 14135  	c.googleclouddataplexv1entrygroup = googleclouddataplexv1entrygroup
 14136  	return c
 14137  }
 14138  
 14139  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 14140  // fields to update.
 14141  func (c *ProjectsLocationsEntryGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsPatchCall {
 14142  	c.urlParams_.Set("updateMask", updateMask)
 14143  	return c
 14144  }
 14145  
 14146  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 14147  // request, but do not perform mutations. The default is false.
 14148  func (c *ProjectsLocationsEntryGroupsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryGroupsPatchCall {
 14149  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 14150  	return c
 14151  }
 14152  
 14153  // Fields allows partial responses to be retrieved. See
 14154  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14155  // details.
 14156  func (c *ProjectsLocationsEntryGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsPatchCall {
 14157  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14158  	return c
 14159  }
 14160  
 14161  // Context sets the context to be used in this call's Do method.
 14162  func (c *ProjectsLocationsEntryGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsPatchCall {
 14163  	c.ctx_ = ctx
 14164  	return c
 14165  }
 14166  
 14167  // Header returns a http.Header that can be modified by the caller to add
 14168  // headers to the request.
 14169  func (c *ProjectsLocationsEntryGroupsPatchCall) Header() http.Header {
 14170  	if c.header_ == nil {
 14171  		c.header_ = make(http.Header)
 14172  	}
 14173  	return c.header_
 14174  }
 14175  
 14176  func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
 14177  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14178  	var body io.Reader = nil
 14179  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrygroup)
 14180  	if err != nil {
 14181  		return nil, err
 14182  	}
 14183  	c.urlParams_.Set("alt", alt)
 14184  	c.urlParams_.Set("prettyPrint", "false")
 14185  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14186  	urls += "?" + c.urlParams_.Encode()
 14187  	req, err := http.NewRequest("PATCH", urls, body)
 14188  	if err != nil {
 14189  		return nil, err
 14190  	}
 14191  	req.Header = reqHeaders
 14192  	googleapi.Expand(req.URL, map[string]string{
 14193  		"name": c.name,
 14194  	})
 14195  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14196  }
 14197  
 14198  // Do executes the "dataplex.projects.locations.entryGroups.patch" call.
 14199  // Any non-2xx status code is an error. Response headers are in either
 14200  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14201  // returned at all) in error.(*googleapi.Error).Header. Use
 14202  // googleapi.IsNotModified to check whether the returned error was because
 14203  // http.StatusNotModified was returned.
 14204  func (c *ProjectsLocationsEntryGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14205  	gensupport.SetOptions(c.urlParams_, opts...)
 14206  	res, err := c.doRequest("json")
 14207  	if res != nil && res.StatusCode == http.StatusNotModified {
 14208  		if res.Body != nil {
 14209  			res.Body.Close()
 14210  		}
 14211  		return nil, gensupport.WrapError(&googleapi.Error{
 14212  			Code:   res.StatusCode,
 14213  			Header: res.Header,
 14214  		})
 14215  	}
 14216  	if err != nil {
 14217  		return nil, err
 14218  	}
 14219  	defer googleapi.CloseBody(res)
 14220  	if err := googleapi.CheckResponse(res); err != nil {
 14221  		return nil, gensupport.WrapError(err)
 14222  	}
 14223  	ret := &GoogleLongrunningOperation{
 14224  		ServerResponse: googleapi.ServerResponse{
 14225  			Header:         res.Header,
 14226  			HTTPStatusCode: res.StatusCode,
 14227  		},
 14228  	}
 14229  	target := &ret
 14230  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14231  		return nil, err
 14232  	}
 14233  	return ret, nil
 14234  }
 14235  
 14236  type ProjectsLocationsEntryGroupsSetIamPolicyCall struct {
 14237  	s                              *Service
 14238  	resource                       string
 14239  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 14240  	urlParams_                     gensupport.URLParams
 14241  	ctx_                           context.Context
 14242  	header_                        http.Header
 14243  }
 14244  
 14245  // SetIamPolicy: Sets the access control policy on the specified resource.
 14246  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 14247  // PERMISSION_DENIED errors.
 14248  //
 14249  //   - resource: REQUIRED: The resource for which the policy is being specified.
 14250  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 14251  //     for the appropriate value for this field.
 14252  func (r *ProjectsLocationsEntryGroupsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
 14253  	c := &ProjectsLocationsEntryGroupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14254  	c.resource = resource
 14255  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 14256  	return c
 14257  }
 14258  
 14259  // Fields allows partial responses to be retrieved. See
 14260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14261  // details.
 14262  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
 14263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14264  	return c
 14265  }
 14266  
 14267  // Context sets the context to be used in this call's Do method.
 14268  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
 14269  	c.ctx_ = ctx
 14270  	return c
 14271  }
 14272  
 14273  // Header returns a http.Header that can be modified by the caller to add
 14274  // headers to the request.
 14275  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header {
 14276  	if c.header_ == nil {
 14277  		c.header_ = make(http.Header)
 14278  	}
 14279  	return c.header_
 14280  }
 14281  
 14282  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 14283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14284  	var body io.Reader = nil
 14285  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 14286  	if err != nil {
 14287  		return nil, err
 14288  	}
 14289  	c.urlParams_.Set("alt", alt)
 14290  	c.urlParams_.Set("prettyPrint", "false")
 14291  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 14292  	urls += "?" + c.urlParams_.Encode()
 14293  	req, err := http.NewRequest("POST", urls, body)
 14294  	if err != nil {
 14295  		return nil, err
 14296  	}
 14297  	req.Header = reqHeaders
 14298  	googleapi.Expand(req.URL, map[string]string{
 14299  		"resource": c.resource,
 14300  	})
 14301  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14302  }
 14303  
 14304  // Do executes the "dataplex.projects.locations.entryGroups.setIamPolicy" call.
 14305  // Any non-2xx status code is an error. Response headers are in either
 14306  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 14307  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14308  // check whether the returned error was because http.StatusNotModified was
 14309  // returned.
 14310  func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 14311  	gensupport.SetOptions(c.urlParams_, opts...)
 14312  	res, err := c.doRequest("json")
 14313  	if res != nil && res.StatusCode == http.StatusNotModified {
 14314  		if res.Body != nil {
 14315  			res.Body.Close()
 14316  		}
 14317  		return nil, gensupport.WrapError(&googleapi.Error{
 14318  			Code:   res.StatusCode,
 14319  			Header: res.Header,
 14320  		})
 14321  	}
 14322  	if err != nil {
 14323  		return nil, err
 14324  	}
 14325  	defer googleapi.CloseBody(res)
 14326  	if err := googleapi.CheckResponse(res); err != nil {
 14327  		return nil, gensupport.WrapError(err)
 14328  	}
 14329  	ret := &GoogleIamV1Policy{
 14330  		ServerResponse: googleapi.ServerResponse{
 14331  			Header:         res.Header,
 14332  			HTTPStatusCode: res.StatusCode,
 14333  		},
 14334  	}
 14335  	target := &ret
 14336  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14337  		return nil, err
 14338  	}
 14339  	return ret, nil
 14340  }
 14341  
 14342  type ProjectsLocationsEntryGroupsTestIamPermissionsCall struct {
 14343  	s                                    *Service
 14344  	resource                             string
 14345  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 14346  	urlParams_                           gensupport.URLParams
 14347  	ctx_                                 context.Context
 14348  	header_                              http.Header
 14349  }
 14350  
 14351  // TestIamPermissions: Returns permissions that a caller has on the specified
 14352  // resource. If the resource does not exist, this will return an empty set of
 14353  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 14354  // used for building permission-aware UIs and command-line tools, not for
 14355  // authorization checking. This operation may "fail open" without warning.
 14356  //
 14357  //   - resource: REQUIRED: The resource for which the policy detail is being
 14358  //     requested. See Resource names
 14359  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 14360  //     value for this field.
 14361  func (r *ProjectsLocationsEntryGroupsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
 14362  	c := &ProjectsLocationsEntryGroupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14363  	c.resource = resource
 14364  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 14365  	return c
 14366  }
 14367  
 14368  // Fields allows partial responses to be retrieved. See
 14369  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14370  // details.
 14371  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
 14372  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14373  	return c
 14374  }
 14375  
 14376  // Context sets the context to be used in this call's Do method.
 14377  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
 14378  	c.ctx_ = ctx
 14379  	return c
 14380  }
 14381  
 14382  // Header returns a http.Header that can be modified by the caller to add
 14383  // headers to the request.
 14384  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Header {
 14385  	if c.header_ == nil {
 14386  		c.header_ = make(http.Header)
 14387  	}
 14388  	return c.header_
 14389  }
 14390  
 14391  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 14392  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14393  	var body io.Reader = nil
 14394  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 14395  	if err != nil {
 14396  		return nil, err
 14397  	}
 14398  	c.urlParams_.Set("alt", alt)
 14399  	c.urlParams_.Set("prettyPrint", "false")
 14400  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 14401  	urls += "?" + c.urlParams_.Encode()
 14402  	req, err := http.NewRequest("POST", urls, body)
 14403  	if err != nil {
 14404  		return nil, err
 14405  	}
 14406  	req.Header = reqHeaders
 14407  	googleapi.Expand(req.URL, map[string]string{
 14408  		"resource": c.resource,
 14409  	})
 14410  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14411  }
 14412  
 14413  // Do executes the "dataplex.projects.locations.entryGroups.testIamPermissions" call.
 14414  // Any non-2xx status code is an error. Response headers are in either
 14415  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 14416  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14417  // googleapi.IsNotModified to check whether the returned error was because
 14418  // http.StatusNotModified was returned.
 14419  func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 14420  	gensupport.SetOptions(c.urlParams_, opts...)
 14421  	res, err := c.doRequest("json")
 14422  	if res != nil && res.StatusCode == http.StatusNotModified {
 14423  		if res.Body != nil {
 14424  			res.Body.Close()
 14425  		}
 14426  		return nil, gensupport.WrapError(&googleapi.Error{
 14427  			Code:   res.StatusCode,
 14428  			Header: res.Header,
 14429  		})
 14430  	}
 14431  	if err != nil {
 14432  		return nil, err
 14433  	}
 14434  	defer googleapi.CloseBody(res)
 14435  	if err := googleapi.CheckResponse(res); err != nil {
 14436  		return nil, gensupport.WrapError(err)
 14437  	}
 14438  	ret := &GoogleIamV1TestIamPermissionsResponse{
 14439  		ServerResponse: googleapi.ServerResponse{
 14440  			Header:         res.Header,
 14441  			HTTPStatusCode: res.StatusCode,
 14442  		},
 14443  	}
 14444  	target := &ret
 14445  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14446  		return nil, err
 14447  	}
 14448  	return ret, nil
 14449  }
 14450  
 14451  type ProjectsLocationsEntryGroupsEntriesCreateCall struct {
 14452  	s                          *Service
 14453  	parent                     string
 14454  	googleclouddataplexv1entry *GoogleCloudDataplexV1Entry
 14455  	urlParams_                 gensupport.URLParams
 14456  	ctx_                       context.Context
 14457  	header_                    http.Header
 14458  }
 14459  
 14460  // Create: Creates an Entry.
 14461  //
 14462  //   - parent: The resource name of the parent Entry Group:
 14463  //     projects/{project}/locations/{location}/entryGroups/{entry_group}.
 14464  func (r *ProjectsLocationsEntryGroupsEntriesService) Create(parent string, googleclouddataplexv1entry *GoogleCloudDataplexV1Entry) *ProjectsLocationsEntryGroupsEntriesCreateCall {
 14465  	c := &ProjectsLocationsEntryGroupsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14466  	c.parent = parent
 14467  	c.googleclouddataplexv1entry = googleclouddataplexv1entry
 14468  	return c
 14469  }
 14470  
 14471  // EntryId sets the optional parameter "entryId": Required. Entry identifier.
 14472  // It has to be unique within an Entry Group.Entries corresponding to Google
 14473  // Cloud resources use Entry ID format based on Full Resource Names
 14474  // (https://cloud.google.com/apis/design/resource_names#full_resource_name).
 14475  // The format is a Full Resource Name of the resource without the prefix double
 14476  // slashes in the API Service Name part of Full Resource Name. This allows
 14477  // retrieval of entries using their associated resource name.For example if the
 14478  // Full Resource Name of a resource is
 14479  // //library.googleapis.com/shelves/shelf1/books/book2, then the suggested
 14480  // entry_id is library.googleapis.com/shelves/shelf1/books/book2.It is also
 14481  // suggested to follow the same convention for entries corresponding to
 14482  // resources from other providers or systems than Google Cloud.The maximum size
 14483  // of the field is 4000 characters.
 14484  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId(entryId string) *ProjectsLocationsEntryGroupsEntriesCreateCall {
 14485  	c.urlParams_.Set("entryId", entryId)
 14486  	return c
 14487  }
 14488  
 14489  // Fields allows partial responses to be retrieved. See
 14490  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14491  // details.
 14492  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesCreateCall {
 14493  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14494  	return c
 14495  }
 14496  
 14497  // Context sets the context to be used in this call's Do method.
 14498  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesCreateCall {
 14499  	c.ctx_ = ctx
 14500  	return c
 14501  }
 14502  
 14503  // Header returns a http.Header that can be modified by the caller to add
 14504  // headers to the request.
 14505  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header {
 14506  	if c.header_ == nil {
 14507  		c.header_ = make(http.Header)
 14508  	}
 14509  	return c.header_
 14510  }
 14511  
 14512  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
 14513  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14514  	var body io.Reader = nil
 14515  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entry)
 14516  	if err != nil {
 14517  		return nil, err
 14518  	}
 14519  	c.urlParams_.Set("alt", alt)
 14520  	c.urlParams_.Set("prettyPrint", "false")
 14521  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 14522  	urls += "?" + c.urlParams_.Encode()
 14523  	req, err := http.NewRequest("POST", urls, body)
 14524  	if err != nil {
 14525  		return nil, err
 14526  	}
 14527  	req.Header = reqHeaders
 14528  	googleapi.Expand(req.URL, map[string]string{
 14529  		"parent": c.parent,
 14530  	})
 14531  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14532  }
 14533  
 14534  // Do executes the "dataplex.projects.locations.entryGroups.entries.create" call.
 14535  // Any non-2xx status code is an error. Response headers are in either
 14536  // *GoogleCloudDataplexV1Entry.ServerResponse.Header or (if a response was
 14537  // returned at all) in error.(*googleapi.Error).Header. Use
 14538  // googleapi.IsNotModified to check whether the returned error was because
 14539  // http.StatusNotModified was returned.
 14540  func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
 14541  	gensupport.SetOptions(c.urlParams_, opts...)
 14542  	res, err := c.doRequest("json")
 14543  	if res != nil && res.StatusCode == http.StatusNotModified {
 14544  		if res.Body != nil {
 14545  			res.Body.Close()
 14546  		}
 14547  		return nil, gensupport.WrapError(&googleapi.Error{
 14548  			Code:   res.StatusCode,
 14549  			Header: res.Header,
 14550  		})
 14551  	}
 14552  	if err != nil {
 14553  		return nil, err
 14554  	}
 14555  	defer googleapi.CloseBody(res)
 14556  	if err := googleapi.CheckResponse(res); err != nil {
 14557  		return nil, gensupport.WrapError(err)
 14558  	}
 14559  	ret := &GoogleCloudDataplexV1Entry{
 14560  		ServerResponse: googleapi.ServerResponse{
 14561  			Header:         res.Header,
 14562  			HTTPStatusCode: res.StatusCode,
 14563  		},
 14564  	}
 14565  	target := &ret
 14566  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14567  		return nil, err
 14568  	}
 14569  	return ret, nil
 14570  }
 14571  
 14572  type ProjectsLocationsEntryGroupsEntriesDeleteCall struct {
 14573  	s          *Service
 14574  	name       string
 14575  	urlParams_ gensupport.URLParams
 14576  	ctx_       context.Context
 14577  	header_    http.Header
 14578  }
 14579  
 14580  // Delete: Deletes an Entry.
 14581  //
 14582  //   - name: The resource name of the Entry:
 14583  //     projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{
 14584  //     entry}.
 14585  func (r *ProjectsLocationsEntryGroupsEntriesService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
 14586  	c := &ProjectsLocationsEntryGroupsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14587  	c.name = name
 14588  	return c
 14589  }
 14590  
 14591  // Fields allows partial responses to be retrieved. See
 14592  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14593  // details.
 14594  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
 14595  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14596  	return c
 14597  }
 14598  
 14599  // Context sets the context to be used in this call's Do method.
 14600  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
 14601  	c.ctx_ = ctx
 14602  	return c
 14603  }
 14604  
 14605  // Header returns a http.Header that can be modified by the caller to add
 14606  // headers to the request.
 14607  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header {
 14608  	if c.header_ == nil {
 14609  		c.header_ = make(http.Header)
 14610  	}
 14611  	return c.header_
 14612  }
 14613  
 14614  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 14615  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14616  	var body io.Reader = nil
 14617  	c.urlParams_.Set("alt", alt)
 14618  	c.urlParams_.Set("prettyPrint", "false")
 14619  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14620  	urls += "?" + c.urlParams_.Encode()
 14621  	req, err := http.NewRequest("DELETE", urls, body)
 14622  	if err != nil {
 14623  		return nil, err
 14624  	}
 14625  	req.Header = reqHeaders
 14626  	googleapi.Expand(req.URL, map[string]string{
 14627  		"name": c.name,
 14628  	})
 14629  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14630  }
 14631  
 14632  // Do executes the "dataplex.projects.locations.entryGroups.entries.delete" call.
 14633  // Any non-2xx status code is an error. Response headers are in either
 14634  // *GoogleCloudDataplexV1Entry.ServerResponse.Header or (if a response was
 14635  // returned at all) in error.(*googleapi.Error).Header. Use
 14636  // googleapi.IsNotModified to check whether the returned error was because
 14637  // http.StatusNotModified was returned.
 14638  func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
 14639  	gensupport.SetOptions(c.urlParams_, opts...)
 14640  	res, err := c.doRequest("json")
 14641  	if res != nil && res.StatusCode == http.StatusNotModified {
 14642  		if res.Body != nil {
 14643  			res.Body.Close()
 14644  		}
 14645  		return nil, gensupport.WrapError(&googleapi.Error{
 14646  			Code:   res.StatusCode,
 14647  			Header: res.Header,
 14648  		})
 14649  	}
 14650  	if err != nil {
 14651  		return nil, err
 14652  	}
 14653  	defer googleapi.CloseBody(res)
 14654  	if err := googleapi.CheckResponse(res); err != nil {
 14655  		return nil, gensupport.WrapError(err)
 14656  	}
 14657  	ret := &GoogleCloudDataplexV1Entry{
 14658  		ServerResponse: googleapi.ServerResponse{
 14659  			Header:         res.Header,
 14660  			HTTPStatusCode: res.StatusCode,
 14661  		},
 14662  	}
 14663  	target := &ret
 14664  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14665  		return nil, err
 14666  	}
 14667  	return ret, nil
 14668  }
 14669  
 14670  type ProjectsLocationsEntryGroupsEntriesGetCall struct {
 14671  	s            *Service
 14672  	name         string
 14673  	urlParams_   gensupport.URLParams
 14674  	ifNoneMatch_ string
 14675  	ctx_         context.Context
 14676  	header_      http.Header
 14677  }
 14678  
 14679  // Get: Gets a single entry.
 14680  //
 14681  //   - name: The resource name of the Entry:
 14682  //     projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{
 14683  //     entry}.
 14684  func (r *ProjectsLocationsEntryGroupsEntriesService) Get(name string) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14685  	c := &ProjectsLocationsEntryGroupsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14686  	c.name = name
 14687  	return c
 14688  }
 14689  
 14690  // AspectTypes sets the optional parameter "aspectTypes": Limits the aspects
 14691  // returned to the provided aspect types. Only works if the CUSTOM view is
 14692  // selected.
 14693  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) AspectTypes(aspectTypes ...string) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14694  	c.urlParams_.SetMulti("aspectTypes", append([]string{}, aspectTypes...))
 14695  	return c
 14696  }
 14697  
 14698  // Paths sets the optional parameter "paths": Limits the aspects returned to
 14699  // those associated with the provided paths within the Entry. Only works if the
 14700  // CUSTOM view is selected.
 14701  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Paths(paths ...string) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14702  	c.urlParams_.SetMulti("paths", append([]string{}, paths...))
 14703  	return c
 14704  }
 14705  
 14706  // View sets the optional parameter "view": View for controlling which parts of
 14707  // an entry are to be returned.
 14708  //
 14709  // Possible values:
 14710  //
 14711  //	"ENTRY_VIEW_UNSPECIFIED" - Unspecified EntryView. Defaults to FULL.
 14712  //	"BASIC" - Returns entry only, without aspects.
 14713  //	"FULL" - Returns all required aspects as well as the keys of all
 14714  //
 14715  // non-required aspects.
 14716  //
 14717  //	"CUSTOM" - Returns aspects matching custom fields in GetEntryRequest. If
 14718  //
 14719  // the number of aspects would exceed 100, the first 100 will be returned.
 14720  //
 14721  //	"ALL" - Returns all aspects. If the number of aspects would exceed 100,
 14722  //
 14723  // the first 100 will be returned.
 14724  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) View(view string) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14725  	c.urlParams_.Set("view", view)
 14726  	return c
 14727  }
 14728  
 14729  // Fields allows partial responses to be retrieved. See
 14730  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14731  // details.
 14732  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14733  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14734  	return c
 14735  }
 14736  
 14737  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14738  // object's ETag matches the given value. This is useful for getting updates
 14739  // only after the object has changed since the last request.
 14740  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14741  	c.ifNoneMatch_ = entityTag
 14742  	return c
 14743  }
 14744  
 14745  // Context sets the context to be used in this call's Do method.
 14746  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetCall {
 14747  	c.ctx_ = ctx
 14748  	return c
 14749  }
 14750  
 14751  // Header returns a http.Header that can be modified by the caller to add
 14752  // headers to the request.
 14753  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header {
 14754  	if c.header_ == nil {
 14755  		c.header_ = make(http.Header)
 14756  	}
 14757  	return c.header_
 14758  }
 14759  
 14760  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
 14761  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14762  	if c.ifNoneMatch_ != "" {
 14763  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14764  	}
 14765  	var body io.Reader = nil
 14766  	c.urlParams_.Set("alt", alt)
 14767  	c.urlParams_.Set("prettyPrint", "false")
 14768  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 14769  	urls += "?" + c.urlParams_.Encode()
 14770  	req, err := http.NewRequest("GET", urls, body)
 14771  	if err != nil {
 14772  		return nil, err
 14773  	}
 14774  	req.Header = reqHeaders
 14775  	googleapi.Expand(req.URL, map[string]string{
 14776  		"name": c.name,
 14777  	})
 14778  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14779  }
 14780  
 14781  // Do executes the "dataplex.projects.locations.entryGroups.entries.get" call.
 14782  // Any non-2xx status code is an error. Response headers are in either
 14783  // *GoogleCloudDataplexV1Entry.ServerResponse.Header or (if a response was
 14784  // returned at all) in error.(*googleapi.Error).Header. Use
 14785  // googleapi.IsNotModified to check whether the returned error was because
 14786  // http.StatusNotModified was returned.
 14787  func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
 14788  	gensupport.SetOptions(c.urlParams_, opts...)
 14789  	res, err := c.doRequest("json")
 14790  	if res != nil && res.StatusCode == http.StatusNotModified {
 14791  		if res.Body != nil {
 14792  			res.Body.Close()
 14793  		}
 14794  		return nil, gensupport.WrapError(&googleapi.Error{
 14795  			Code:   res.StatusCode,
 14796  			Header: res.Header,
 14797  		})
 14798  	}
 14799  	if err != nil {
 14800  		return nil, err
 14801  	}
 14802  	defer googleapi.CloseBody(res)
 14803  	if err := googleapi.CheckResponse(res); err != nil {
 14804  		return nil, gensupport.WrapError(err)
 14805  	}
 14806  	ret := &GoogleCloudDataplexV1Entry{
 14807  		ServerResponse: googleapi.ServerResponse{
 14808  			Header:         res.Header,
 14809  			HTTPStatusCode: res.StatusCode,
 14810  		},
 14811  	}
 14812  	target := &ret
 14813  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14814  		return nil, err
 14815  	}
 14816  	return ret, nil
 14817  }
 14818  
 14819  type ProjectsLocationsEntryGroupsEntriesListCall struct {
 14820  	s            *Service
 14821  	parent       string
 14822  	urlParams_   gensupport.URLParams
 14823  	ifNoneMatch_ string
 14824  	ctx_         context.Context
 14825  	header_      http.Header
 14826  }
 14827  
 14828  // List: Lists entries within an entry group.
 14829  //
 14830  //   - parent: The resource name of the parent Entry Group:
 14831  //     projects/{project}/locations/{location}/entryGroups/{entry_group}.
 14832  func (r *ProjectsLocationsEntryGroupsEntriesService) List(parent string) *ProjectsLocationsEntryGroupsEntriesListCall {
 14833  	c := &ProjectsLocationsEntryGroupsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14834  	c.parent = parent
 14835  	return c
 14836  }
 14837  
 14838  // Filter sets the optional parameter "filter": A filter on the entries to
 14839  // return. Filters are case-sensitive. The request can be filtered by the
 14840  // following fields: entry_type, entry_source.display_name. The comparison
 14841  // operators are =, !=, <, >, <=, >= (strings are compared according to lexical
 14842  // order) The logical operators AND, OR, NOT can be used in the filter.
 14843  // Wildcard "*" can be used, but for entry_type the full project id or number
 14844  // needs to be provided. Example filter expressions:
 14845  // "entry_source.display_name=AnExampleDisplayName"
 14846  // "entry_type=projects/example-project/locations/global/entryTypes/example-entr
 14847  // y_type" "entry_type=projects/example-project/locations/us/entryTypes/a* OR
 14848  // entry_type=projects/another-project/locations/*" "NOT
 14849  // entry_source.display_name=AnotherExampleDisplayName"
 14850  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Filter(filter string) *ProjectsLocationsEntryGroupsEntriesListCall {
 14851  	c.urlParams_.Set("filter", filter)
 14852  	return c
 14853  }
 14854  
 14855  // PageSize sets the optional parameter "pageSize":
 14856  func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesListCall {
 14857  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14858  	return c
 14859  }
 14860  
 14861  // PageToken sets the optional parameter "pageToken": The pagination token
 14862  // returned by a previous request.
 14863  func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesListCall {
 14864  	c.urlParams_.Set("pageToken", pageToken)
 14865  	return c
 14866  }
 14867  
 14868  // Fields allows partial responses to be retrieved. See
 14869  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14870  // details.
 14871  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesListCall {
 14872  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14873  	return c
 14874  }
 14875  
 14876  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14877  // object's ETag matches the given value. This is useful for getting updates
 14878  // only after the object has changed since the last request.
 14879  func (c *ProjectsLocationsEntryGroupsEntriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesListCall {
 14880  	c.ifNoneMatch_ = entityTag
 14881  	return c
 14882  }
 14883  
 14884  // Context sets the context to be used in this call's Do method.
 14885  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesListCall {
 14886  	c.ctx_ = ctx
 14887  	return c
 14888  }
 14889  
 14890  // Header returns a http.Header that can be modified by the caller to add
 14891  // headers to the request.
 14892  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Header() http.Header {
 14893  	if c.header_ == nil {
 14894  		c.header_ = make(http.Header)
 14895  	}
 14896  	return c.header_
 14897  }
 14898  
 14899  func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*http.Response, error) {
 14900  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14901  	if c.ifNoneMatch_ != "" {
 14902  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14903  	}
 14904  	var body io.Reader = nil
 14905  	c.urlParams_.Set("alt", alt)
 14906  	c.urlParams_.Set("prettyPrint", "false")
 14907  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
 14908  	urls += "?" + c.urlParams_.Encode()
 14909  	req, err := http.NewRequest("GET", urls, body)
 14910  	if err != nil {
 14911  		return nil, err
 14912  	}
 14913  	req.Header = reqHeaders
 14914  	googleapi.Expand(req.URL, map[string]string{
 14915  		"parent": c.parent,
 14916  	})
 14917  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14918  }
 14919  
 14920  // Do executes the "dataplex.projects.locations.entryGroups.entries.list" call.
 14921  // Any non-2xx status code is an error. Response headers are in either
 14922  // *GoogleCloudDataplexV1ListEntriesResponse.ServerResponse.Header or (if a
 14923  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14924  // googleapi.IsNotModified to check whether the returned error was because
 14925  // http.StatusNotModified was returned.
 14926  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntriesResponse, error) {
 14927  	gensupport.SetOptions(c.urlParams_, opts...)
 14928  	res, err := c.doRequest("json")
 14929  	if res != nil && res.StatusCode == http.StatusNotModified {
 14930  		if res.Body != nil {
 14931  			res.Body.Close()
 14932  		}
 14933  		return nil, gensupport.WrapError(&googleapi.Error{
 14934  			Code:   res.StatusCode,
 14935  			Header: res.Header,
 14936  		})
 14937  	}
 14938  	if err != nil {
 14939  		return nil, err
 14940  	}
 14941  	defer googleapi.CloseBody(res)
 14942  	if err := googleapi.CheckResponse(res); err != nil {
 14943  		return nil, gensupport.WrapError(err)
 14944  	}
 14945  	ret := &GoogleCloudDataplexV1ListEntriesResponse{
 14946  		ServerResponse: googleapi.ServerResponse{
 14947  			Header:         res.Header,
 14948  			HTTPStatusCode: res.StatusCode,
 14949  		},
 14950  	}
 14951  	target := &ret
 14952  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14953  		return nil, err
 14954  	}
 14955  	return ret, nil
 14956  }
 14957  
 14958  // Pages invokes f for each page of results.
 14959  // A non-nil error returned from f will halt the iteration.
 14960  // The provided context supersedes any context provided to the Context method.
 14961  func (c *ProjectsLocationsEntryGroupsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntriesResponse) error) error {
 14962  	c.ctx_ = ctx
 14963  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14964  	for {
 14965  		x, err := c.Do()
 14966  		if err != nil {
 14967  			return err
 14968  		}
 14969  		if err := f(x); err != nil {
 14970  			return err
 14971  		}
 14972  		if x.NextPageToken == "" {
 14973  			return nil
 14974  		}
 14975  		c.PageToken(x.NextPageToken)
 14976  	}
 14977  }
 14978  
 14979  type ProjectsLocationsEntryGroupsEntriesPatchCall struct {
 14980  	s                          *Service
 14981  	name                       string
 14982  	googleclouddataplexv1entry *GoogleCloudDataplexV1Entry
 14983  	urlParams_                 gensupport.URLParams
 14984  	ctx_                       context.Context
 14985  	header_                    http.Header
 14986  }
 14987  
 14988  // Patch: Updates an Entry.
 14989  //
 14990  //   - name: Identifier. The relative resource name of the Entry, of the form:
 14991  //     projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{
 14992  //     entry}.
 14993  func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, googleclouddataplexv1entry *GoogleCloudDataplexV1Entry) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 14994  	c := &ProjectsLocationsEntryGroupsEntriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14995  	c.name = name
 14996  	c.googleclouddataplexv1entry = googleclouddataplexv1entry
 14997  	return c
 14998  }
 14999  
 15000  // AllowMissing sets the optional parameter "allowMissing": If set to true and
 15001  // the entry does not exist, it will be created.
 15002  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 15003  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 15004  	return c
 15005  }
 15006  
 15007  // AspectKeys sets the optional parameter "aspectKeys": The map keys of the
 15008  // Aspects which should be modified. Supports the following syntaxes: * -
 15009  // matches aspect on given type and empty path * @path - matches aspect on
 15010  // given type and specified path * * - matches aspects on given type for all
 15011  // paths * *@path - matches aspects of all types on the given pathExisting
 15012  // aspects matching the syntax will not be removed unless
 15013  // delete_missing_aspects is set to true.If this field is left empty, it will
 15014  // be treated as specifying exactly those Aspects present in the request.
 15015  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) AspectKeys(aspectKeys ...string) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 15016  	c.urlParams_.SetMulti("aspectKeys", append([]string{}, aspectKeys...))
 15017  	return c
 15018  }
 15019  
 15020  // DeleteMissingAspects sets the optional parameter "deleteMissingAspects": If
 15021  // set to true and the aspect_keys specify aspect ranges, any existing aspects
 15022  // from that range not provided in the request will be deleted.
 15023  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) DeleteMissingAspects(deleteMissingAspects bool) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 15024  	c.urlParams_.Set("deleteMissingAspects", fmt.Sprint(deleteMissingAspects))
 15025  	return c
 15026  }
 15027  
 15028  // UpdateMask sets the optional parameter "updateMask": Mask of fields to
 15029  // update. To update Aspects, the update_mask must contain the value
 15030  // "aspects".If the update_mask is empty, all modifiable fields present in the
 15031  // request will be updated.
 15032  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 15033  	c.urlParams_.Set("updateMask", updateMask)
 15034  	return c
 15035  }
 15036  
 15037  // Fields allows partial responses to be retrieved. See
 15038  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15039  // details.
 15040  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 15041  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15042  	return c
 15043  }
 15044  
 15045  // Context sets the context to be used in this call's Do method.
 15046  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesPatchCall {
 15047  	c.ctx_ = ctx
 15048  	return c
 15049  }
 15050  
 15051  // Header returns a http.Header that can be modified by the caller to add
 15052  // headers to the request.
 15053  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header {
 15054  	if c.header_ == nil {
 15055  		c.header_ = make(http.Header)
 15056  	}
 15057  	return c.header_
 15058  }
 15059  
 15060  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*http.Response, error) {
 15061  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15062  	var body io.Reader = nil
 15063  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entry)
 15064  	if err != nil {
 15065  		return nil, err
 15066  	}
 15067  	c.urlParams_.Set("alt", alt)
 15068  	c.urlParams_.Set("prettyPrint", "false")
 15069  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15070  	urls += "?" + c.urlParams_.Encode()
 15071  	req, err := http.NewRequest("PATCH", urls, body)
 15072  	if err != nil {
 15073  		return nil, err
 15074  	}
 15075  	req.Header = reqHeaders
 15076  	googleapi.Expand(req.URL, map[string]string{
 15077  		"name": c.name,
 15078  	})
 15079  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15080  }
 15081  
 15082  // Do executes the "dataplex.projects.locations.entryGroups.entries.patch" call.
 15083  // Any non-2xx status code is an error. Response headers are in either
 15084  // *GoogleCloudDataplexV1Entry.ServerResponse.Header or (if a response was
 15085  // returned at all) in error.(*googleapi.Error).Header. Use
 15086  // googleapi.IsNotModified to check whether the returned error was because
 15087  // http.StatusNotModified was returned.
 15088  func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
 15089  	gensupport.SetOptions(c.urlParams_, opts...)
 15090  	res, err := c.doRequest("json")
 15091  	if res != nil && res.StatusCode == http.StatusNotModified {
 15092  		if res.Body != nil {
 15093  			res.Body.Close()
 15094  		}
 15095  		return nil, gensupport.WrapError(&googleapi.Error{
 15096  			Code:   res.StatusCode,
 15097  			Header: res.Header,
 15098  		})
 15099  	}
 15100  	if err != nil {
 15101  		return nil, err
 15102  	}
 15103  	defer googleapi.CloseBody(res)
 15104  	if err := googleapi.CheckResponse(res); err != nil {
 15105  		return nil, gensupport.WrapError(err)
 15106  	}
 15107  	ret := &GoogleCloudDataplexV1Entry{
 15108  		ServerResponse: googleapi.ServerResponse{
 15109  			Header:         res.Header,
 15110  			HTTPStatusCode: res.StatusCode,
 15111  		},
 15112  	}
 15113  	target := &ret
 15114  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15115  		return nil, err
 15116  	}
 15117  	return ret, nil
 15118  }
 15119  
 15120  type ProjectsLocationsEntryTypesCreateCall struct {
 15121  	s                              *Service
 15122  	parent                         string
 15123  	googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType
 15124  	urlParams_                     gensupport.URLParams
 15125  	ctx_                           context.Context
 15126  	header_                        http.Header
 15127  }
 15128  
 15129  // Create: Creates an EntryType
 15130  //
 15131  //   - parent: The resource name of the EntryType, of the form:
 15132  //     projects/{project_number}/locations/{location_id} where location_id refers
 15133  //     to a GCP region.
 15134  func (r *ProjectsLocationsEntryTypesService) Create(parent string, googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType) *ProjectsLocationsEntryTypesCreateCall {
 15135  	c := &ProjectsLocationsEntryTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15136  	c.parent = parent
 15137  	c.googleclouddataplexv1entrytype = googleclouddataplexv1entrytype
 15138  	return c
 15139  }
 15140  
 15141  // EntryTypeId sets the optional parameter "entryTypeId": Required. EntryType
 15142  // identifier.
 15143  func (c *ProjectsLocationsEntryTypesCreateCall) EntryTypeId(entryTypeId string) *ProjectsLocationsEntryTypesCreateCall {
 15144  	c.urlParams_.Set("entryTypeId", entryTypeId)
 15145  	return c
 15146  }
 15147  
 15148  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 15149  // request, but do not perform mutations. The default is false.
 15150  func (c *ProjectsLocationsEntryTypesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryTypesCreateCall {
 15151  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 15152  	return c
 15153  }
 15154  
 15155  // Fields allows partial responses to be retrieved. See
 15156  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15157  // details.
 15158  func (c *ProjectsLocationsEntryTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesCreateCall {
 15159  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15160  	return c
 15161  }
 15162  
 15163  // Context sets the context to be used in this call's Do method.
 15164  func (c *ProjectsLocationsEntryTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesCreateCall {
 15165  	c.ctx_ = ctx
 15166  	return c
 15167  }
 15168  
 15169  // Header returns a http.Header that can be modified by the caller to add
 15170  // headers to the request.
 15171  func (c *ProjectsLocationsEntryTypesCreateCall) Header() http.Header {
 15172  	if c.header_ == nil {
 15173  		c.header_ = make(http.Header)
 15174  	}
 15175  	return c.header_
 15176  }
 15177  
 15178  func (c *ProjectsLocationsEntryTypesCreateCall) doRequest(alt string) (*http.Response, error) {
 15179  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15180  	var body io.Reader = nil
 15181  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrytype)
 15182  	if err != nil {
 15183  		return nil, err
 15184  	}
 15185  	c.urlParams_.Set("alt", alt)
 15186  	c.urlParams_.Set("prettyPrint", "false")
 15187  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryTypes")
 15188  	urls += "?" + c.urlParams_.Encode()
 15189  	req, err := http.NewRequest("POST", urls, body)
 15190  	if err != nil {
 15191  		return nil, err
 15192  	}
 15193  	req.Header = reqHeaders
 15194  	googleapi.Expand(req.URL, map[string]string{
 15195  		"parent": c.parent,
 15196  	})
 15197  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15198  }
 15199  
 15200  // Do executes the "dataplex.projects.locations.entryTypes.create" call.
 15201  // Any non-2xx status code is an error. Response headers are in either
 15202  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15203  // returned at all) in error.(*googleapi.Error).Header. Use
 15204  // googleapi.IsNotModified to check whether the returned error was because
 15205  // http.StatusNotModified was returned.
 15206  func (c *ProjectsLocationsEntryTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15207  	gensupport.SetOptions(c.urlParams_, opts...)
 15208  	res, err := c.doRequest("json")
 15209  	if res != nil && res.StatusCode == http.StatusNotModified {
 15210  		if res.Body != nil {
 15211  			res.Body.Close()
 15212  		}
 15213  		return nil, gensupport.WrapError(&googleapi.Error{
 15214  			Code:   res.StatusCode,
 15215  			Header: res.Header,
 15216  		})
 15217  	}
 15218  	if err != nil {
 15219  		return nil, err
 15220  	}
 15221  	defer googleapi.CloseBody(res)
 15222  	if err := googleapi.CheckResponse(res); err != nil {
 15223  		return nil, gensupport.WrapError(err)
 15224  	}
 15225  	ret := &GoogleLongrunningOperation{
 15226  		ServerResponse: googleapi.ServerResponse{
 15227  			Header:         res.Header,
 15228  			HTTPStatusCode: res.StatusCode,
 15229  		},
 15230  	}
 15231  	target := &ret
 15232  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15233  		return nil, err
 15234  	}
 15235  	return ret, nil
 15236  }
 15237  
 15238  type ProjectsLocationsEntryTypesDeleteCall struct {
 15239  	s          *Service
 15240  	name       string
 15241  	urlParams_ gensupport.URLParams
 15242  	ctx_       context.Context
 15243  	header_    http.Header
 15244  }
 15245  
 15246  // Delete: Deletes a EntryType resource.
 15247  //
 15248  //   - name: The resource name of the EntryType:
 15249  //     projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id
 15250  //     }.
 15251  func (r *ProjectsLocationsEntryTypesService) Delete(name string) *ProjectsLocationsEntryTypesDeleteCall {
 15252  	c := &ProjectsLocationsEntryTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15253  	c.name = name
 15254  	return c
 15255  }
 15256  
 15257  // Etag sets the optional parameter "etag": If the client provided etag value
 15258  // does not match the current etag value, the DeleteEntryTypeRequest method
 15259  // returns an ABORTED error response
 15260  func (c *ProjectsLocationsEntryTypesDeleteCall) Etag(etag string) *ProjectsLocationsEntryTypesDeleteCall {
 15261  	c.urlParams_.Set("etag", etag)
 15262  	return c
 15263  }
 15264  
 15265  // Fields allows partial responses to be retrieved. See
 15266  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15267  // details.
 15268  func (c *ProjectsLocationsEntryTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesDeleteCall {
 15269  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15270  	return c
 15271  }
 15272  
 15273  // Context sets the context to be used in this call's Do method.
 15274  func (c *ProjectsLocationsEntryTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesDeleteCall {
 15275  	c.ctx_ = ctx
 15276  	return c
 15277  }
 15278  
 15279  // Header returns a http.Header that can be modified by the caller to add
 15280  // headers to the request.
 15281  func (c *ProjectsLocationsEntryTypesDeleteCall) Header() http.Header {
 15282  	if c.header_ == nil {
 15283  		c.header_ = make(http.Header)
 15284  	}
 15285  	return c.header_
 15286  }
 15287  
 15288  func (c *ProjectsLocationsEntryTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
 15289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15290  	var body io.Reader = nil
 15291  	c.urlParams_.Set("alt", alt)
 15292  	c.urlParams_.Set("prettyPrint", "false")
 15293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15294  	urls += "?" + c.urlParams_.Encode()
 15295  	req, err := http.NewRequest("DELETE", urls, body)
 15296  	if err != nil {
 15297  		return nil, err
 15298  	}
 15299  	req.Header = reqHeaders
 15300  	googleapi.Expand(req.URL, map[string]string{
 15301  		"name": c.name,
 15302  	})
 15303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15304  }
 15305  
 15306  // Do executes the "dataplex.projects.locations.entryTypes.delete" call.
 15307  // Any non-2xx status code is an error. Response headers are in either
 15308  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15309  // returned at all) in error.(*googleapi.Error).Header. Use
 15310  // googleapi.IsNotModified to check whether the returned error was because
 15311  // http.StatusNotModified was returned.
 15312  func (c *ProjectsLocationsEntryTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15313  	gensupport.SetOptions(c.urlParams_, opts...)
 15314  	res, err := c.doRequest("json")
 15315  	if res != nil && res.StatusCode == http.StatusNotModified {
 15316  		if res.Body != nil {
 15317  			res.Body.Close()
 15318  		}
 15319  		return nil, gensupport.WrapError(&googleapi.Error{
 15320  			Code:   res.StatusCode,
 15321  			Header: res.Header,
 15322  		})
 15323  	}
 15324  	if err != nil {
 15325  		return nil, err
 15326  	}
 15327  	defer googleapi.CloseBody(res)
 15328  	if err := googleapi.CheckResponse(res); err != nil {
 15329  		return nil, gensupport.WrapError(err)
 15330  	}
 15331  	ret := &GoogleLongrunningOperation{
 15332  		ServerResponse: googleapi.ServerResponse{
 15333  			Header:         res.Header,
 15334  			HTTPStatusCode: res.StatusCode,
 15335  		},
 15336  	}
 15337  	target := &ret
 15338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15339  		return nil, err
 15340  	}
 15341  	return ret, nil
 15342  }
 15343  
 15344  type ProjectsLocationsEntryTypesGetCall struct {
 15345  	s            *Service
 15346  	name         string
 15347  	urlParams_   gensupport.URLParams
 15348  	ifNoneMatch_ string
 15349  	ctx_         context.Context
 15350  	header_      http.Header
 15351  }
 15352  
 15353  // Get: Retrieves a EntryType resource.
 15354  //
 15355  //   - name: The resource name of the EntryType:
 15356  //     projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id
 15357  //     }.
 15358  func (r *ProjectsLocationsEntryTypesService) Get(name string) *ProjectsLocationsEntryTypesGetCall {
 15359  	c := &ProjectsLocationsEntryTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15360  	c.name = name
 15361  	return c
 15362  }
 15363  
 15364  // Fields allows partial responses to be retrieved. See
 15365  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15366  // details.
 15367  func (c *ProjectsLocationsEntryTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesGetCall {
 15368  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15369  	return c
 15370  }
 15371  
 15372  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15373  // object's ETag matches the given value. This is useful for getting updates
 15374  // only after the object has changed since the last request.
 15375  func (c *ProjectsLocationsEntryTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryTypesGetCall {
 15376  	c.ifNoneMatch_ = entityTag
 15377  	return c
 15378  }
 15379  
 15380  // Context sets the context to be used in this call's Do method.
 15381  func (c *ProjectsLocationsEntryTypesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesGetCall {
 15382  	c.ctx_ = ctx
 15383  	return c
 15384  }
 15385  
 15386  // Header returns a http.Header that can be modified by the caller to add
 15387  // headers to the request.
 15388  func (c *ProjectsLocationsEntryTypesGetCall) Header() http.Header {
 15389  	if c.header_ == nil {
 15390  		c.header_ = make(http.Header)
 15391  	}
 15392  	return c.header_
 15393  }
 15394  
 15395  func (c *ProjectsLocationsEntryTypesGetCall) doRequest(alt string) (*http.Response, error) {
 15396  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15397  	if c.ifNoneMatch_ != "" {
 15398  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15399  	}
 15400  	var body io.Reader = nil
 15401  	c.urlParams_.Set("alt", alt)
 15402  	c.urlParams_.Set("prettyPrint", "false")
 15403  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15404  	urls += "?" + c.urlParams_.Encode()
 15405  	req, err := http.NewRequest("GET", urls, body)
 15406  	if err != nil {
 15407  		return nil, err
 15408  	}
 15409  	req.Header = reqHeaders
 15410  	googleapi.Expand(req.URL, map[string]string{
 15411  		"name": c.name,
 15412  	})
 15413  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15414  }
 15415  
 15416  // Do executes the "dataplex.projects.locations.entryTypes.get" call.
 15417  // Any non-2xx status code is an error. Response headers are in either
 15418  // *GoogleCloudDataplexV1EntryType.ServerResponse.Header or (if a response was
 15419  // returned at all) in error.(*googleapi.Error).Header. Use
 15420  // googleapi.IsNotModified to check whether the returned error was because
 15421  // http.StatusNotModified was returned.
 15422  func (c *ProjectsLocationsEntryTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1EntryType, error) {
 15423  	gensupport.SetOptions(c.urlParams_, opts...)
 15424  	res, err := c.doRequest("json")
 15425  	if res != nil && res.StatusCode == http.StatusNotModified {
 15426  		if res.Body != nil {
 15427  			res.Body.Close()
 15428  		}
 15429  		return nil, gensupport.WrapError(&googleapi.Error{
 15430  			Code:   res.StatusCode,
 15431  			Header: res.Header,
 15432  		})
 15433  	}
 15434  	if err != nil {
 15435  		return nil, err
 15436  	}
 15437  	defer googleapi.CloseBody(res)
 15438  	if err := googleapi.CheckResponse(res); err != nil {
 15439  		return nil, gensupport.WrapError(err)
 15440  	}
 15441  	ret := &GoogleCloudDataplexV1EntryType{
 15442  		ServerResponse: googleapi.ServerResponse{
 15443  			Header:         res.Header,
 15444  			HTTPStatusCode: res.StatusCode,
 15445  		},
 15446  	}
 15447  	target := &ret
 15448  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15449  		return nil, err
 15450  	}
 15451  	return ret, nil
 15452  }
 15453  
 15454  type ProjectsLocationsEntryTypesGetIamPolicyCall struct {
 15455  	s            *Service
 15456  	resource     string
 15457  	urlParams_   gensupport.URLParams
 15458  	ifNoneMatch_ string
 15459  	ctx_         context.Context
 15460  	header_      http.Header
 15461  }
 15462  
 15463  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 15464  // empty policy if the resource exists and does not have a policy set.
 15465  //
 15466  //   - resource: REQUIRED: The resource for which the policy is being requested.
 15467  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 15468  //     for the appropriate value for this field.
 15469  func (r *ProjectsLocationsEntryTypesService) GetIamPolicy(resource string) *ProjectsLocationsEntryTypesGetIamPolicyCall {
 15470  	c := &ProjectsLocationsEntryTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15471  	c.resource = resource
 15472  	return c
 15473  }
 15474  
 15475  // OptionsRequestedPolicyVersion sets the optional parameter
 15476  // "options.requestedPolicyVersion": The maximum policy version that will be
 15477  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 15478  // an invalid value will be rejected.Requests for policies with any conditional
 15479  // role bindings must specify version 3. Policies with no conditional role
 15480  // bindings may specify any valid value or leave the field unset.The policy in
 15481  // the response might use the policy version that you specified, or it might
 15482  // use a lower policy version. For example, if you specify version 3, but the
 15483  // policy has no conditional role bindings, the response uses version 1.To
 15484  // learn which resources support conditions in their IAM policies, see the IAM
 15485  // documentation
 15486  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 15487  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEntryTypesGetIamPolicyCall {
 15488  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 15489  	return c
 15490  }
 15491  
 15492  // Fields allows partial responses to be retrieved. See
 15493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15494  // details.
 15495  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesGetIamPolicyCall {
 15496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15497  	return c
 15498  }
 15499  
 15500  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15501  // object's ETag matches the given value. This is useful for getting updates
 15502  // only after the object has changed since the last request.
 15503  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryTypesGetIamPolicyCall {
 15504  	c.ifNoneMatch_ = entityTag
 15505  	return c
 15506  }
 15507  
 15508  // Context sets the context to be used in this call's Do method.
 15509  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesGetIamPolicyCall {
 15510  	c.ctx_ = ctx
 15511  	return c
 15512  }
 15513  
 15514  // Header returns a http.Header that can be modified by the caller to add
 15515  // headers to the request.
 15516  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Header() http.Header {
 15517  	if c.header_ == nil {
 15518  		c.header_ = make(http.Header)
 15519  	}
 15520  	return c.header_
 15521  }
 15522  
 15523  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 15524  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15525  	if c.ifNoneMatch_ != "" {
 15526  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15527  	}
 15528  	var body io.Reader = nil
 15529  	c.urlParams_.Set("alt", alt)
 15530  	c.urlParams_.Set("prettyPrint", "false")
 15531  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 15532  	urls += "?" + c.urlParams_.Encode()
 15533  	req, err := http.NewRequest("GET", urls, body)
 15534  	if err != nil {
 15535  		return nil, err
 15536  	}
 15537  	req.Header = reqHeaders
 15538  	googleapi.Expand(req.URL, map[string]string{
 15539  		"resource": c.resource,
 15540  	})
 15541  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15542  }
 15543  
 15544  // Do executes the "dataplex.projects.locations.entryTypes.getIamPolicy" call.
 15545  // Any non-2xx status code is an error. Response headers are in either
 15546  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 15547  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15548  // check whether the returned error was because http.StatusNotModified was
 15549  // returned.
 15550  func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 15551  	gensupport.SetOptions(c.urlParams_, opts...)
 15552  	res, err := c.doRequest("json")
 15553  	if res != nil && res.StatusCode == http.StatusNotModified {
 15554  		if res.Body != nil {
 15555  			res.Body.Close()
 15556  		}
 15557  		return nil, gensupport.WrapError(&googleapi.Error{
 15558  			Code:   res.StatusCode,
 15559  			Header: res.Header,
 15560  		})
 15561  	}
 15562  	if err != nil {
 15563  		return nil, err
 15564  	}
 15565  	defer googleapi.CloseBody(res)
 15566  	if err := googleapi.CheckResponse(res); err != nil {
 15567  		return nil, gensupport.WrapError(err)
 15568  	}
 15569  	ret := &GoogleIamV1Policy{
 15570  		ServerResponse: googleapi.ServerResponse{
 15571  			Header:         res.Header,
 15572  			HTTPStatusCode: res.StatusCode,
 15573  		},
 15574  	}
 15575  	target := &ret
 15576  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15577  		return nil, err
 15578  	}
 15579  	return ret, nil
 15580  }
 15581  
 15582  type ProjectsLocationsEntryTypesListCall struct {
 15583  	s            *Service
 15584  	parent       string
 15585  	urlParams_   gensupport.URLParams
 15586  	ifNoneMatch_ string
 15587  	ctx_         context.Context
 15588  	header_      http.Header
 15589  }
 15590  
 15591  // List: Lists EntryType resources in a project and location.
 15592  //
 15593  //   - parent: The resource name of the EntryType location, of the form:
 15594  //     projects/{project_number}/locations/{location_id} where location_id refers
 15595  //     to a GCP region.
 15596  func (r *ProjectsLocationsEntryTypesService) List(parent string) *ProjectsLocationsEntryTypesListCall {
 15597  	c := &ProjectsLocationsEntryTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15598  	c.parent = parent
 15599  	return c
 15600  }
 15601  
 15602  // Filter sets the optional parameter "filter": Filter request. Filters are
 15603  // case-sensitive. The following formats are supported:labels.key1 = "value1"
 15604  // labels:key1 name = "value" These restrictions can be coinjoined with AND, OR
 15605  // and NOT conjunctions.
 15606  func (c *ProjectsLocationsEntryTypesListCall) Filter(filter string) *ProjectsLocationsEntryTypesListCall {
 15607  	c.urlParams_.Set("filter", filter)
 15608  	return c
 15609  }
 15610  
 15611  // OrderBy sets the optional parameter "orderBy": Order by fields (name or
 15612  // create_time) for the result. If not specified, the ordering is undefined.
 15613  func (c *ProjectsLocationsEntryTypesListCall) OrderBy(orderBy string) *ProjectsLocationsEntryTypesListCall {
 15614  	c.urlParams_.Set("orderBy", orderBy)
 15615  	return c
 15616  }
 15617  
 15618  // PageSize sets the optional parameter "pageSize": Maximum number of
 15619  // EntryTypes to return. The service may return fewer than this value. If
 15620  // unspecified, at most 10 EntryTypes will be returned. The maximum value is
 15621  // 1000; values above 1000 will be coerced to 1000.
 15622  func (c *ProjectsLocationsEntryTypesListCall) PageSize(pageSize int64) *ProjectsLocationsEntryTypesListCall {
 15623  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15624  	return c
 15625  }
 15626  
 15627  // PageToken sets the optional parameter "pageToken": Page token received from
 15628  // a previous ListEntryTypes call. Provide this to retrieve the subsequent
 15629  // page. When paginating, all other parameters provided to ListEntryTypes must
 15630  // match the call that provided the page token.
 15631  func (c *ProjectsLocationsEntryTypesListCall) PageToken(pageToken string) *ProjectsLocationsEntryTypesListCall {
 15632  	c.urlParams_.Set("pageToken", pageToken)
 15633  	return c
 15634  }
 15635  
 15636  // Fields allows partial responses to be retrieved. See
 15637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15638  // details.
 15639  func (c *ProjectsLocationsEntryTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesListCall {
 15640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15641  	return c
 15642  }
 15643  
 15644  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15645  // object's ETag matches the given value. This is useful for getting updates
 15646  // only after the object has changed since the last request.
 15647  func (c *ProjectsLocationsEntryTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryTypesListCall {
 15648  	c.ifNoneMatch_ = entityTag
 15649  	return c
 15650  }
 15651  
 15652  // Context sets the context to be used in this call's Do method.
 15653  func (c *ProjectsLocationsEntryTypesListCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesListCall {
 15654  	c.ctx_ = ctx
 15655  	return c
 15656  }
 15657  
 15658  // Header returns a http.Header that can be modified by the caller to add
 15659  // headers to the request.
 15660  func (c *ProjectsLocationsEntryTypesListCall) Header() http.Header {
 15661  	if c.header_ == nil {
 15662  		c.header_ = make(http.Header)
 15663  	}
 15664  	return c.header_
 15665  }
 15666  
 15667  func (c *ProjectsLocationsEntryTypesListCall) doRequest(alt string) (*http.Response, error) {
 15668  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15669  	if c.ifNoneMatch_ != "" {
 15670  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15671  	}
 15672  	var body io.Reader = nil
 15673  	c.urlParams_.Set("alt", alt)
 15674  	c.urlParams_.Set("prettyPrint", "false")
 15675  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryTypes")
 15676  	urls += "?" + c.urlParams_.Encode()
 15677  	req, err := http.NewRequest("GET", urls, body)
 15678  	if err != nil {
 15679  		return nil, err
 15680  	}
 15681  	req.Header = reqHeaders
 15682  	googleapi.Expand(req.URL, map[string]string{
 15683  		"parent": c.parent,
 15684  	})
 15685  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15686  }
 15687  
 15688  // Do executes the "dataplex.projects.locations.entryTypes.list" call.
 15689  // Any non-2xx status code is an error. Response headers are in either
 15690  // *GoogleCloudDataplexV1ListEntryTypesResponse.ServerResponse.Header or (if a
 15691  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15692  // googleapi.IsNotModified to check whether the returned error was because
 15693  // http.StatusNotModified was returned.
 15694  func (c *ProjectsLocationsEntryTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntryTypesResponse, error) {
 15695  	gensupport.SetOptions(c.urlParams_, opts...)
 15696  	res, err := c.doRequest("json")
 15697  	if res != nil && res.StatusCode == http.StatusNotModified {
 15698  		if res.Body != nil {
 15699  			res.Body.Close()
 15700  		}
 15701  		return nil, gensupport.WrapError(&googleapi.Error{
 15702  			Code:   res.StatusCode,
 15703  			Header: res.Header,
 15704  		})
 15705  	}
 15706  	if err != nil {
 15707  		return nil, err
 15708  	}
 15709  	defer googleapi.CloseBody(res)
 15710  	if err := googleapi.CheckResponse(res); err != nil {
 15711  		return nil, gensupport.WrapError(err)
 15712  	}
 15713  	ret := &GoogleCloudDataplexV1ListEntryTypesResponse{
 15714  		ServerResponse: googleapi.ServerResponse{
 15715  			Header:         res.Header,
 15716  			HTTPStatusCode: res.StatusCode,
 15717  		},
 15718  	}
 15719  	target := &ret
 15720  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15721  		return nil, err
 15722  	}
 15723  	return ret, nil
 15724  }
 15725  
 15726  // Pages invokes f for each page of results.
 15727  // A non-nil error returned from f will halt the iteration.
 15728  // The provided context supersedes any context provided to the Context method.
 15729  func (c *ProjectsLocationsEntryTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntryTypesResponse) error) error {
 15730  	c.ctx_ = ctx
 15731  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15732  	for {
 15733  		x, err := c.Do()
 15734  		if err != nil {
 15735  			return err
 15736  		}
 15737  		if err := f(x); err != nil {
 15738  			return err
 15739  		}
 15740  		if x.NextPageToken == "" {
 15741  			return nil
 15742  		}
 15743  		c.PageToken(x.NextPageToken)
 15744  	}
 15745  }
 15746  
 15747  type ProjectsLocationsEntryTypesPatchCall struct {
 15748  	s                              *Service
 15749  	name                           string
 15750  	googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType
 15751  	urlParams_                     gensupport.URLParams
 15752  	ctx_                           context.Context
 15753  	header_                        http.Header
 15754  }
 15755  
 15756  // Patch: Updates a EntryType resource.
 15757  //
 15758  //   - name: Output only. The relative resource name of the EntryType, of the
 15759  //     form:
 15760  //     projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id
 15761  //     }.
 15762  func (r *ProjectsLocationsEntryTypesService) Patch(name string, googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType) *ProjectsLocationsEntryTypesPatchCall {
 15763  	c := &ProjectsLocationsEntryTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15764  	c.name = name
 15765  	c.googleclouddataplexv1entrytype = googleclouddataplexv1entrytype
 15766  	return c
 15767  }
 15768  
 15769  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 15770  // fields to update.
 15771  func (c *ProjectsLocationsEntryTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryTypesPatchCall {
 15772  	c.urlParams_.Set("updateMask", updateMask)
 15773  	return c
 15774  }
 15775  
 15776  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 15777  // request, but do not perform mutations. The default is false.
 15778  func (c *ProjectsLocationsEntryTypesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryTypesPatchCall {
 15779  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 15780  	return c
 15781  }
 15782  
 15783  // Fields allows partial responses to be retrieved. See
 15784  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15785  // details.
 15786  func (c *ProjectsLocationsEntryTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesPatchCall {
 15787  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15788  	return c
 15789  }
 15790  
 15791  // Context sets the context to be used in this call's Do method.
 15792  func (c *ProjectsLocationsEntryTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesPatchCall {
 15793  	c.ctx_ = ctx
 15794  	return c
 15795  }
 15796  
 15797  // Header returns a http.Header that can be modified by the caller to add
 15798  // headers to the request.
 15799  func (c *ProjectsLocationsEntryTypesPatchCall) Header() http.Header {
 15800  	if c.header_ == nil {
 15801  		c.header_ = make(http.Header)
 15802  	}
 15803  	return c.header_
 15804  }
 15805  
 15806  func (c *ProjectsLocationsEntryTypesPatchCall) doRequest(alt string) (*http.Response, error) {
 15807  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15808  	var body io.Reader = nil
 15809  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrytype)
 15810  	if err != nil {
 15811  		return nil, err
 15812  	}
 15813  	c.urlParams_.Set("alt", alt)
 15814  	c.urlParams_.Set("prettyPrint", "false")
 15815  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 15816  	urls += "?" + c.urlParams_.Encode()
 15817  	req, err := http.NewRequest("PATCH", urls, body)
 15818  	if err != nil {
 15819  		return nil, err
 15820  	}
 15821  	req.Header = reqHeaders
 15822  	googleapi.Expand(req.URL, map[string]string{
 15823  		"name": c.name,
 15824  	})
 15825  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15826  }
 15827  
 15828  // Do executes the "dataplex.projects.locations.entryTypes.patch" call.
 15829  // Any non-2xx status code is an error. Response headers are in either
 15830  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15831  // returned at all) in error.(*googleapi.Error).Header. Use
 15832  // googleapi.IsNotModified to check whether the returned error was because
 15833  // http.StatusNotModified was returned.
 15834  func (c *ProjectsLocationsEntryTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15835  	gensupport.SetOptions(c.urlParams_, opts...)
 15836  	res, err := c.doRequest("json")
 15837  	if res != nil && res.StatusCode == http.StatusNotModified {
 15838  		if res.Body != nil {
 15839  			res.Body.Close()
 15840  		}
 15841  		return nil, gensupport.WrapError(&googleapi.Error{
 15842  			Code:   res.StatusCode,
 15843  			Header: res.Header,
 15844  		})
 15845  	}
 15846  	if err != nil {
 15847  		return nil, err
 15848  	}
 15849  	defer googleapi.CloseBody(res)
 15850  	if err := googleapi.CheckResponse(res); err != nil {
 15851  		return nil, gensupport.WrapError(err)
 15852  	}
 15853  	ret := &GoogleLongrunningOperation{
 15854  		ServerResponse: googleapi.ServerResponse{
 15855  			Header:         res.Header,
 15856  			HTTPStatusCode: res.StatusCode,
 15857  		},
 15858  	}
 15859  	target := &ret
 15860  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15861  		return nil, err
 15862  	}
 15863  	return ret, nil
 15864  }
 15865  
 15866  type ProjectsLocationsEntryTypesSetIamPolicyCall struct {
 15867  	s                              *Service
 15868  	resource                       string
 15869  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 15870  	urlParams_                     gensupport.URLParams
 15871  	ctx_                           context.Context
 15872  	header_                        http.Header
 15873  }
 15874  
 15875  // SetIamPolicy: Sets the access control policy on the specified resource.
 15876  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 15877  // PERMISSION_DENIED errors.
 15878  //
 15879  //   - resource: REQUIRED: The resource for which the policy is being specified.
 15880  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 15881  //     for the appropriate value for this field.
 15882  func (r *ProjectsLocationsEntryTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsEntryTypesSetIamPolicyCall {
 15883  	c := &ProjectsLocationsEntryTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15884  	c.resource = resource
 15885  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 15886  	return c
 15887  }
 15888  
 15889  // Fields allows partial responses to be retrieved. See
 15890  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15891  // details.
 15892  func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesSetIamPolicyCall {
 15893  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15894  	return c
 15895  }
 15896  
 15897  // Context sets the context to be used in this call's Do method.
 15898  func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesSetIamPolicyCall {
 15899  	c.ctx_ = ctx
 15900  	return c
 15901  }
 15902  
 15903  // Header returns a http.Header that can be modified by the caller to add
 15904  // headers to the request.
 15905  func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Header() http.Header {
 15906  	if c.header_ == nil {
 15907  		c.header_ = make(http.Header)
 15908  	}
 15909  	return c.header_
 15910  }
 15911  
 15912  func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 15913  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15914  	var body io.Reader = nil
 15915  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 15916  	if err != nil {
 15917  		return nil, err
 15918  	}
 15919  	c.urlParams_.Set("alt", alt)
 15920  	c.urlParams_.Set("prettyPrint", "false")
 15921  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 15922  	urls += "?" + c.urlParams_.Encode()
 15923  	req, err := http.NewRequest("POST", urls, body)
 15924  	if err != nil {
 15925  		return nil, err
 15926  	}
 15927  	req.Header = reqHeaders
 15928  	googleapi.Expand(req.URL, map[string]string{
 15929  		"resource": c.resource,
 15930  	})
 15931  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15932  }
 15933  
 15934  // Do executes the "dataplex.projects.locations.entryTypes.setIamPolicy" call.
 15935  // Any non-2xx status code is an error. Response headers are in either
 15936  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 15937  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15938  // check whether the returned error was because http.StatusNotModified was
 15939  // returned.
 15940  func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 15941  	gensupport.SetOptions(c.urlParams_, opts...)
 15942  	res, err := c.doRequest("json")
 15943  	if res != nil && res.StatusCode == http.StatusNotModified {
 15944  		if res.Body != nil {
 15945  			res.Body.Close()
 15946  		}
 15947  		return nil, gensupport.WrapError(&googleapi.Error{
 15948  			Code:   res.StatusCode,
 15949  			Header: res.Header,
 15950  		})
 15951  	}
 15952  	if err != nil {
 15953  		return nil, err
 15954  	}
 15955  	defer googleapi.CloseBody(res)
 15956  	if err := googleapi.CheckResponse(res); err != nil {
 15957  		return nil, gensupport.WrapError(err)
 15958  	}
 15959  	ret := &GoogleIamV1Policy{
 15960  		ServerResponse: googleapi.ServerResponse{
 15961  			Header:         res.Header,
 15962  			HTTPStatusCode: res.StatusCode,
 15963  		},
 15964  	}
 15965  	target := &ret
 15966  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15967  		return nil, err
 15968  	}
 15969  	return ret, nil
 15970  }
 15971  
 15972  type ProjectsLocationsEntryTypesTestIamPermissionsCall struct {
 15973  	s                                    *Service
 15974  	resource                             string
 15975  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 15976  	urlParams_                           gensupport.URLParams
 15977  	ctx_                                 context.Context
 15978  	header_                              http.Header
 15979  }
 15980  
 15981  // TestIamPermissions: Returns permissions that a caller has on the specified
 15982  // resource. If the resource does not exist, this will return an empty set of
 15983  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 15984  // used for building permission-aware UIs and command-line tools, not for
 15985  // authorization checking. This operation may "fail open" without warning.
 15986  //
 15987  //   - resource: REQUIRED: The resource for which the policy detail is being
 15988  //     requested. See Resource names
 15989  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 15990  //     value for this field.
 15991  func (r *ProjectsLocationsEntryTypesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsEntryTypesTestIamPermissionsCall {
 15992  	c := &ProjectsLocationsEntryTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15993  	c.resource = resource
 15994  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 15995  	return c
 15996  }
 15997  
 15998  // Fields allows partial responses to be retrieved. See
 15999  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16000  // details.
 16001  func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesTestIamPermissionsCall {
 16002  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16003  	return c
 16004  }
 16005  
 16006  // Context sets the context to be used in this call's Do method.
 16007  func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesTestIamPermissionsCall {
 16008  	c.ctx_ = ctx
 16009  	return c
 16010  }
 16011  
 16012  // Header returns a http.Header that can be modified by the caller to add
 16013  // headers to the request.
 16014  func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Header() http.Header {
 16015  	if c.header_ == nil {
 16016  		c.header_ = make(http.Header)
 16017  	}
 16018  	return c.header_
 16019  }
 16020  
 16021  func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 16022  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16023  	var body io.Reader = nil
 16024  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 16025  	if err != nil {
 16026  		return nil, err
 16027  	}
 16028  	c.urlParams_.Set("alt", alt)
 16029  	c.urlParams_.Set("prettyPrint", "false")
 16030  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 16031  	urls += "?" + c.urlParams_.Encode()
 16032  	req, err := http.NewRequest("POST", urls, body)
 16033  	if err != nil {
 16034  		return nil, err
 16035  	}
 16036  	req.Header = reqHeaders
 16037  	googleapi.Expand(req.URL, map[string]string{
 16038  		"resource": c.resource,
 16039  	})
 16040  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16041  }
 16042  
 16043  // Do executes the "dataplex.projects.locations.entryTypes.testIamPermissions" call.
 16044  // Any non-2xx status code is an error. Response headers are in either
 16045  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 16046  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16047  // googleapi.IsNotModified to check whether the returned error was because
 16048  // http.StatusNotModified was returned.
 16049  func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 16050  	gensupport.SetOptions(c.urlParams_, opts...)
 16051  	res, err := c.doRequest("json")
 16052  	if res != nil && res.StatusCode == http.StatusNotModified {
 16053  		if res.Body != nil {
 16054  			res.Body.Close()
 16055  		}
 16056  		return nil, gensupport.WrapError(&googleapi.Error{
 16057  			Code:   res.StatusCode,
 16058  			Header: res.Header,
 16059  		})
 16060  	}
 16061  	if err != nil {
 16062  		return nil, err
 16063  	}
 16064  	defer googleapi.CloseBody(res)
 16065  	if err := googleapi.CheckResponse(res); err != nil {
 16066  		return nil, gensupport.WrapError(err)
 16067  	}
 16068  	ret := &GoogleIamV1TestIamPermissionsResponse{
 16069  		ServerResponse: googleapi.ServerResponse{
 16070  			Header:         res.Header,
 16071  			HTTPStatusCode: res.StatusCode,
 16072  		},
 16073  	}
 16074  	target := &ret
 16075  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16076  		return nil, err
 16077  	}
 16078  	return ret, nil
 16079  }
 16080  
 16081  type ProjectsLocationsGovernanceRulesGetIamPolicyCall struct {
 16082  	s            *Service
 16083  	resource     string
 16084  	urlParams_   gensupport.URLParams
 16085  	ifNoneMatch_ string
 16086  	ctx_         context.Context
 16087  	header_      http.Header
 16088  }
 16089  
 16090  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 16091  // empty policy if the resource exists and does not have a policy set.
 16092  //
 16093  //   - resource: REQUIRED: The resource for which the policy is being requested.
 16094  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 16095  //     for the appropriate value for this field.
 16096  func (r *ProjectsLocationsGovernanceRulesService) GetIamPolicy(resource string) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
 16097  	c := &ProjectsLocationsGovernanceRulesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16098  	c.resource = resource
 16099  	return c
 16100  }
 16101  
 16102  // OptionsRequestedPolicyVersion sets the optional parameter
 16103  // "options.requestedPolicyVersion": The maximum policy version that will be
 16104  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 16105  // an invalid value will be rejected.Requests for policies with any conditional
 16106  // role bindings must specify version 3. Policies with no conditional role
 16107  // bindings may specify any valid value or leave the field unset.The policy in
 16108  // the response might use the policy version that you specified, or it might
 16109  // use a lower policy version. For example, if you specify version 3, but the
 16110  // policy has no conditional role bindings, the response uses version 1.To
 16111  // learn which resources support conditions in their IAM policies, see the IAM
 16112  // documentation
 16113  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 16114  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
 16115  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 16116  	return c
 16117  }
 16118  
 16119  // Fields allows partial responses to be retrieved. See
 16120  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16121  // details.
 16122  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
 16123  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16124  	return c
 16125  }
 16126  
 16127  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16128  // object's ETag matches the given value. This is useful for getting updates
 16129  // only after the object has changed since the last request.
 16130  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
 16131  	c.ifNoneMatch_ = entityTag
 16132  	return c
 16133  }
 16134  
 16135  // Context sets the context to be used in this call's Do method.
 16136  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
 16137  	c.ctx_ = ctx
 16138  	return c
 16139  }
 16140  
 16141  // Header returns a http.Header that can be modified by the caller to add
 16142  // headers to the request.
 16143  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Header() http.Header {
 16144  	if c.header_ == nil {
 16145  		c.header_ = make(http.Header)
 16146  	}
 16147  	return c.header_
 16148  }
 16149  
 16150  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 16151  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16152  	if c.ifNoneMatch_ != "" {
 16153  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16154  	}
 16155  	var body io.Reader = nil
 16156  	c.urlParams_.Set("alt", alt)
 16157  	c.urlParams_.Set("prettyPrint", "false")
 16158  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 16159  	urls += "?" + c.urlParams_.Encode()
 16160  	req, err := http.NewRequest("GET", urls, body)
 16161  	if err != nil {
 16162  		return nil, err
 16163  	}
 16164  	req.Header = reqHeaders
 16165  	googleapi.Expand(req.URL, map[string]string{
 16166  		"resource": c.resource,
 16167  	})
 16168  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16169  }
 16170  
 16171  // Do executes the "dataplex.projects.locations.governanceRules.getIamPolicy" call.
 16172  // Any non-2xx status code is an error. Response headers are in either
 16173  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 16174  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16175  // check whether the returned error was because http.StatusNotModified was
 16176  // returned.
 16177  func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 16178  	gensupport.SetOptions(c.urlParams_, opts...)
 16179  	res, err := c.doRequest("json")
 16180  	if res != nil && res.StatusCode == http.StatusNotModified {
 16181  		if res.Body != nil {
 16182  			res.Body.Close()
 16183  		}
 16184  		return nil, gensupport.WrapError(&googleapi.Error{
 16185  			Code:   res.StatusCode,
 16186  			Header: res.Header,
 16187  		})
 16188  	}
 16189  	if err != nil {
 16190  		return nil, err
 16191  	}
 16192  	defer googleapi.CloseBody(res)
 16193  	if err := googleapi.CheckResponse(res); err != nil {
 16194  		return nil, gensupport.WrapError(err)
 16195  	}
 16196  	ret := &GoogleIamV1Policy{
 16197  		ServerResponse: googleapi.ServerResponse{
 16198  			Header:         res.Header,
 16199  			HTTPStatusCode: res.StatusCode,
 16200  		},
 16201  	}
 16202  	target := &ret
 16203  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16204  		return nil, err
 16205  	}
 16206  	return ret, nil
 16207  }
 16208  
 16209  type ProjectsLocationsGovernanceRulesSetIamPolicyCall struct {
 16210  	s                              *Service
 16211  	resource                       string
 16212  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 16213  	urlParams_                     gensupport.URLParams
 16214  	ctx_                           context.Context
 16215  	header_                        http.Header
 16216  }
 16217  
 16218  // SetIamPolicy: Sets the access control policy on the specified resource.
 16219  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 16220  // PERMISSION_DENIED errors.
 16221  //
 16222  //   - resource: REQUIRED: The resource for which the policy is being specified.
 16223  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 16224  //     for the appropriate value for this field.
 16225  func (r *ProjectsLocationsGovernanceRulesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsGovernanceRulesSetIamPolicyCall {
 16226  	c := &ProjectsLocationsGovernanceRulesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16227  	c.resource = resource
 16228  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 16229  	return c
 16230  }
 16231  
 16232  // Fields allows partial responses to be retrieved. See
 16233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16234  // details.
 16235  func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGovernanceRulesSetIamPolicyCall {
 16236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16237  	return c
 16238  }
 16239  
 16240  // Context sets the context to be used in this call's Do method.
 16241  func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGovernanceRulesSetIamPolicyCall {
 16242  	c.ctx_ = ctx
 16243  	return c
 16244  }
 16245  
 16246  // Header returns a http.Header that can be modified by the caller to add
 16247  // headers to the request.
 16248  func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Header() http.Header {
 16249  	if c.header_ == nil {
 16250  		c.header_ = make(http.Header)
 16251  	}
 16252  	return c.header_
 16253  }
 16254  
 16255  func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 16256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16257  	var body io.Reader = nil
 16258  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 16259  	if err != nil {
 16260  		return nil, err
 16261  	}
 16262  	c.urlParams_.Set("alt", alt)
 16263  	c.urlParams_.Set("prettyPrint", "false")
 16264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 16265  	urls += "?" + c.urlParams_.Encode()
 16266  	req, err := http.NewRequest("POST", urls, body)
 16267  	if err != nil {
 16268  		return nil, err
 16269  	}
 16270  	req.Header = reqHeaders
 16271  	googleapi.Expand(req.URL, map[string]string{
 16272  		"resource": c.resource,
 16273  	})
 16274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16275  }
 16276  
 16277  // Do executes the "dataplex.projects.locations.governanceRules.setIamPolicy" call.
 16278  // Any non-2xx status code is an error. Response headers are in either
 16279  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 16280  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16281  // check whether the returned error was because http.StatusNotModified was
 16282  // returned.
 16283  func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 16284  	gensupport.SetOptions(c.urlParams_, opts...)
 16285  	res, err := c.doRequest("json")
 16286  	if res != nil && res.StatusCode == http.StatusNotModified {
 16287  		if res.Body != nil {
 16288  			res.Body.Close()
 16289  		}
 16290  		return nil, gensupport.WrapError(&googleapi.Error{
 16291  			Code:   res.StatusCode,
 16292  			Header: res.Header,
 16293  		})
 16294  	}
 16295  	if err != nil {
 16296  		return nil, err
 16297  	}
 16298  	defer googleapi.CloseBody(res)
 16299  	if err := googleapi.CheckResponse(res); err != nil {
 16300  		return nil, gensupport.WrapError(err)
 16301  	}
 16302  	ret := &GoogleIamV1Policy{
 16303  		ServerResponse: googleapi.ServerResponse{
 16304  			Header:         res.Header,
 16305  			HTTPStatusCode: res.StatusCode,
 16306  		},
 16307  	}
 16308  	target := &ret
 16309  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16310  		return nil, err
 16311  	}
 16312  	return ret, nil
 16313  }
 16314  
 16315  type ProjectsLocationsGovernanceRulesTestIamPermissionsCall struct {
 16316  	s                                    *Service
 16317  	resource                             string
 16318  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 16319  	urlParams_                           gensupport.URLParams
 16320  	ctx_                                 context.Context
 16321  	header_                              http.Header
 16322  }
 16323  
 16324  // TestIamPermissions: Returns permissions that a caller has on the specified
 16325  // resource. If the resource does not exist, this will return an empty set of
 16326  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 16327  // used for building permission-aware UIs and command-line tools, not for
 16328  // authorization checking. This operation may "fail open" without warning.
 16329  //
 16330  //   - resource: REQUIRED: The resource for which the policy detail is being
 16331  //     requested. See Resource names
 16332  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 16333  //     value for this field.
 16334  func (r *ProjectsLocationsGovernanceRulesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsGovernanceRulesTestIamPermissionsCall {
 16335  	c := &ProjectsLocationsGovernanceRulesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16336  	c.resource = resource
 16337  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 16338  	return c
 16339  }
 16340  
 16341  // Fields allows partial responses to be retrieved. See
 16342  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16343  // details.
 16344  func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGovernanceRulesTestIamPermissionsCall {
 16345  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16346  	return c
 16347  }
 16348  
 16349  // Context sets the context to be used in this call's Do method.
 16350  func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGovernanceRulesTestIamPermissionsCall {
 16351  	c.ctx_ = ctx
 16352  	return c
 16353  }
 16354  
 16355  // Header returns a http.Header that can be modified by the caller to add
 16356  // headers to the request.
 16357  func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Header() http.Header {
 16358  	if c.header_ == nil {
 16359  		c.header_ = make(http.Header)
 16360  	}
 16361  	return c.header_
 16362  }
 16363  
 16364  func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 16365  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16366  	var body io.Reader = nil
 16367  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 16368  	if err != nil {
 16369  		return nil, err
 16370  	}
 16371  	c.urlParams_.Set("alt", alt)
 16372  	c.urlParams_.Set("prettyPrint", "false")
 16373  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 16374  	urls += "?" + c.urlParams_.Encode()
 16375  	req, err := http.NewRequest("POST", urls, body)
 16376  	if err != nil {
 16377  		return nil, err
 16378  	}
 16379  	req.Header = reqHeaders
 16380  	googleapi.Expand(req.URL, map[string]string{
 16381  		"resource": c.resource,
 16382  	})
 16383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16384  }
 16385  
 16386  // Do executes the "dataplex.projects.locations.governanceRules.testIamPermissions" call.
 16387  // Any non-2xx status code is an error. Response headers are in either
 16388  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 16389  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16390  // googleapi.IsNotModified to check whether the returned error was because
 16391  // http.StatusNotModified was returned.
 16392  func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 16393  	gensupport.SetOptions(c.urlParams_, opts...)
 16394  	res, err := c.doRequest("json")
 16395  	if res != nil && res.StatusCode == http.StatusNotModified {
 16396  		if res.Body != nil {
 16397  			res.Body.Close()
 16398  		}
 16399  		return nil, gensupport.WrapError(&googleapi.Error{
 16400  			Code:   res.StatusCode,
 16401  			Header: res.Header,
 16402  		})
 16403  	}
 16404  	if err != nil {
 16405  		return nil, err
 16406  	}
 16407  	defer googleapi.CloseBody(res)
 16408  	if err := googleapi.CheckResponse(res); err != nil {
 16409  		return nil, gensupport.WrapError(err)
 16410  	}
 16411  	ret := &GoogleIamV1TestIamPermissionsResponse{
 16412  		ServerResponse: googleapi.ServerResponse{
 16413  			Header:         res.Header,
 16414  			HTTPStatusCode: res.StatusCode,
 16415  		},
 16416  	}
 16417  	target := &ret
 16418  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16419  		return nil, err
 16420  	}
 16421  	return ret, nil
 16422  }
 16423  
 16424  type ProjectsLocationsLakesCreateCall struct {
 16425  	s                         *Service
 16426  	parent                    string
 16427  	googleclouddataplexv1lake *GoogleCloudDataplexV1Lake
 16428  	urlParams_                gensupport.URLParams
 16429  	ctx_                      context.Context
 16430  	header_                   http.Header
 16431  }
 16432  
 16433  // Create: Creates a lake resource.
 16434  //
 16435  //   - parent: The resource name of the lake location, of the form:
 16436  //     projects/{project_number}/locations/{location_id} where location_id refers
 16437  //     to a GCP region.
 16438  func (r *ProjectsLocationsLakesService) Create(parent string, googleclouddataplexv1lake *GoogleCloudDataplexV1Lake) *ProjectsLocationsLakesCreateCall {
 16439  	c := &ProjectsLocationsLakesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16440  	c.parent = parent
 16441  	c.googleclouddataplexv1lake = googleclouddataplexv1lake
 16442  	return c
 16443  }
 16444  
 16445  // LakeId sets the optional parameter "lakeId": Required. Lake identifier. This
 16446  // ID will be used to generate names such as database and dataset names when
 16447  // publishing metadata to Hive Metastore and BigQuery. * Must contain only
 16448  // lowercase letters, numbers and hyphens. * Must start with a letter. * Must
 16449  // end with a number or a letter. * Must be between 1-63 characters. * Must be
 16450  // unique within the customer project / location.
 16451  func (c *ProjectsLocationsLakesCreateCall) LakeId(lakeId string) *ProjectsLocationsLakesCreateCall {
 16452  	c.urlParams_.Set("lakeId", lakeId)
 16453  	return c
 16454  }
 16455  
 16456  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 16457  // request, but do not perform mutations. The default is false.
 16458  func (c *ProjectsLocationsLakesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesCreateCall {
 16459  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 16460  	return c
 16461  }
 16462  
 16463  // Fields allows partial responses to be retrieved. See
 16464  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16465  // details.
 16466  func (c *ProjectsLocationsLakesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesCreateCall {
 16467  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16468  	return c
 16469  }
 16470  
 16471  // Context sets the context to be used in this call's Do method.
 16472  func (c *ProjectsLocationsLakesCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesCreateCall {
 16473  	c.ctx_ = ctx
 16474  	return c
 16475  }
 16476  
 16477  // Header returns a http.Header that can be modified by the caller to add
 16478  // headers to the request.
 16479  func (c *ProjectsLocationsLakesCreateCall) Header() http.Header {
 16480  	if c.header_ == nil {
 16481  		c.header_ = make(http.Header)
 16482  	}
 16483  	return c.header_
 16484  }
 16485  
 16486  func (c *ProjectsLocationsLakesCreateCall) doRequest(alt string) (*http.Response, error) {
 16487  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16488  	var body io.Reader = nil
 16489  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1lake)
 16490  	if err != nil {
 16491  		return nil, err
 16492  	}
 16493  	c.urlParams_.Set("alt", alt)
 16494  	c.urlParams_.Set("prettyPrint", "false")
 16495  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lakes")
 16496  	urls += "?" + c.urlParams_.Encode()
 16497  	req, err := http.NewRequest("POST", urls, body)
 16498  	if err != nil {
 16499  		return nil, err
 16500  	}
 16501  	req.Header = reqHeaders
 16502  	googleapi.Expand(req.URL, map[string]string{
 16503  		"parent": c.parent,
 16504  	})
 16505  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16506  }
 16507  
 16508  // Do executes the "dataplex.projects.locations.lakes.create" call.
 16509  // Any non-2xx status code is an error. Response headers are in either
 16510  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16511  // returned at all) in error.(*googleapi.Error).Header. Use
 16512  // googleapi.IsNotModified to check whether the returned error was because
 16513  // http.StatusNotModified was returned.
 16514  func (c *ProjectsLocationsLakesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16515  	gensupport.SetOptions(c.urlParams_, opts...)
 16516  	res, err := c.doRequest("json")
 16517  	if res != nil && res.StatusCode == http.StatusNotModified {
 16518  		if res.Body != nil {
 16519  			res.Body.Close()
 16520  		}
 16521  		return nil, gensupport.WrapError(&googleapi.Error{
 16522  			Code:   res.StatusCode,
 16523  			Header: res.Header,
 16524  		})
 16525  	}
 16526  	if err != nil {
 16527  		return nil, err
 16528  	}
 16529  	defer googleapi.CloseBody(res)
 16530  	if err := googleapi.CheckResponse(res); err != nil {
 16531  		return nil, gensupport.WrapError(err)
 16532  	}
 16533  	ret := &GoogleLongrunningOperation{
 16534  		ServerResponse: googleapi.ServerResponse{
 16535  			Header:         res.Header,
 16536  			HTTPStatusCode: res.StatusCode,
 16537  		},
 16538  	}
 16539  	target := &ret
 16540  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16541  		return nil, err
 16542  	}
 16543  	return ret, nil
 16544  }
 16545  
 16546  type ProjectsLocationsLakesDeleteCall struct {
 16547  	s          *Service
 16548  	name       string
 16549  	urlParams_ gensupport.URLParams
 16550  	ctx_       context.Context
 16551  	header_    http.Header
 16552  }
 16553  
 16554  // Delete: Deletes a lake resource. All zones within the lake must be deleted
 16555  // before the lake can be deleted.
 16556  //
 16557  //   - name: The resource name of the lake:
 16558  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 16559  func (r *ProjectsLocationsLakesService) Delete(name string) *ProjectsLocationsLakesDeleteCall {
 16560  	c := &ProjectsLocationsLakesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16561  	c.name = name
 16562  	return c
 16563  }
 16564  
 16565  // Fields allows partial responses to be retrieved. See
 16566  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16567  // details.
 16568  func (c *ProjectsLocationsLakesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesDeleteCall {
 16569  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16570  	return c
 16571  }
 16572  
 16573  // Context sets the context to be used in this call's Do method.
 16574  func (c *ProjectsLocationsLakesDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesDeleteCall {
 16575  	c.ctx_ = ctx
 16576  	return c
 16577  }
 16578  
 16579  // Header returns a http.Header that can be modified by the caller to add
 16580  // headers to the request.
 16581  func (c *ProjectsLocationsLakesDeleteCall) Header() http.Header {
 16582  	if c.header_ == nil {
 16583  		c.header_ = make(http.Header)
 16584  	}
 16585  	return c.header_
 16586  }
 16587  
 16588  func (c *ProjectsLocationsLakesDeleteCall) doRequest(alt string) (*http.Response, error) {
 16589  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16590  	var body io.Reader = nil
 16591  	c.urlParams_.Set("alt", alt)
 16592  	c.urlParams_.Set("prettyPrint", "false")
 16593  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16594  	urls += "?" + c.urlParams_.Encode()
 16595  	req, err := http.NewRequest("DELETE", urls, body)
 16596  	if err != nil {
 16597  		return nil, err
 16598  	}
 16599  	req.Header = reqHeaders
 16600  	googleapi.Expand(req.URL, map[string]string{
 16601  		"name": c.name,
 16602  	})
 16603  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16604  }
 16605  
 16606  // Do executes the "dataplex.projects.locations.lakes.delete" call.
 16607  // Any non-2xx status code is an error. Response headers are in either
 16608  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16609  // returned at all) in error.(*googleapi.Error).Header. Use
 16610  // googleapi.IsNotModified to check whether the returned error was because
 16611  // http.StatusNotModified was returned.
 16612  func (c *ProjectsLocationsLakesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16613  	gensupport.SetOptions(c.urlParams_, opts...)
 16614  	res, err := c.doRequest("json")
 16615  	if res != nil && res.StatusCode == http.StatusNotModified {
 16616  		if res.Body != nil {
 16617  			res.Body.Close()
 16618  		}
 16619  		return nil, gensupport.WrapError(&googleapi.Error{
 16620  			Code:   res.StatusCode,
 16621  			Header: res.Header,
 16622  		})
 16623  	}
 16624  	if err != nil {
 16625  		return nil, err
 16626  	}
 16627  	defer googleapi.CloseBody(res)
 16628  	if err := googleapi.CheckResponse(res); err != nil {
 16629  		return nil, gensupport.WrapError(err)
 16630  	}
 16631  	ret := &GoogleLongrunningOperation{
 16632  		ServerResponse: googleapi.ServerResponse{
 16633  			Header:         res.Header,
 16634  			HTTPStatusCode: res.StatusCode,
 16635  		},
 16636  	}
 16637  	target := &ret
 16638  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16639  		return nil, err
 16640  	}
 16641  	return ret, nil
 16642  }
 16643  
 16644  type ProjectsLocationsLakesGetCall struct {
 16645  	s            *Service
 16646  	name         string
 16647  	urlParams_   gensupport.URLParams
 16648  	ifNoneMatch_ string
 16649  	ctx_         context.Context
 16650  	header_      http.Header
 16651  }
 16652  
 16653  // Get: Retrieves a lake resource.
 16654  //
 16655  //   - name: The resource name of the lake:
 16656  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 16657  func (r *ProjectsLocationsLakesService) Get(name string) *ProjectsLocationsLakesGetCall {
 16658  	c := &ProjectsLocationsLakesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16659  	c.name = name
 16660  	return c
 16661  }
 16662  
 16663  // Fields allows partial responses to be retrieved. See
 16664  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16665  // details.
 16666  func (c *ProjectsLocationsLakesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesGetCall {
 16667  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16668  	return c
 16669  }
 16670  
 16671  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16672  // object's ETag matches the given value. This is useful for getting updates
 16673  // only after the object has changed since the last request.
 16674  func (c *ProjectsLocationsLakesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesGetCall {
 16675  	c.ifNoneMatch_ = entityTag
 16676  	return c
 16677  }
 16678  
 16679  // Context sets the context to be used in this call's Do method.
 16680  func (c *ProjectsLocationsLakesGetCall) Context(ctx context.Context) *ProjectsLocationsLakesGetCall {
 16681  	c.ctx_ = ctx
 16682  	return c
 16683  }
 16684  
 16685  // Header returns a http.Header that can be modified by the caller to add
 16686  // headers to the request.
 16687  func (c *ProjectsLocationsLakesGetCall) Header() http.Header {
 16688  	if c.header_ == nil {
 16689  		c.header_ = make(http.Header)
 16690  	}
 16691  	return c.header_
 16692  }
 16693  
 16694  func (c *ProjectsLocationsLakesGetCall) doRequest(alt string) (*http.Response, error) {
 16695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16696  	if c.ifNoneMatch_ != "" {
 16697  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16698  	}
 16699  	var body io.Reader = nil
 16700  	c.urlParams_.Set("alt", alt)
 16701  	c.urlParams_.Set("prettyPrint", "false")
 16702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 16703  	urls += "?" + c.urlParams_.Encode()
 16704  	req, err := http.NewRequest("GET", urls, body)
 16705  	if err != nil {
 16706  		return nil, err
 16707  	}
 16708  	req.Header = reqHeaders
 16709  	googleapi.Expand(req.URL, map[string]string{
 16710  		"name": c.name,
 16711  	})
 16712  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16713  }
 16714  
 16715  // Do executes the "dataplex.projects.locations.lakes.get" call.
 16716  // Any non-2xx status code is an error. Response headers are in either
 16717  // *GoogleCloudDataplexV1Lake.ServerResponse.Header or (if a response was
 16718  // returned at all) in error.(*googleapi.Error).Header. Use
 16719  // googleapi.IsNotModified to check whether the returned error was because
 16720  // http.StatusNotModified was returned.
 16721  func (c *ProjectsLocationsLakesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Lake, error) {
 16722  	gensupport.SetOptions(c.urlParams_, opts...)
 16723  	res, err := c.doRequest("json")
 16724  	if res != nil && res.StatusCode == http.StatusNotModified {
 16725  		if res.Body != nil {
 16726  			res.Body.Close()
 16727  		}
 16728  		return nil, gensupport.WrapError(&googleapi.Error{
 16729  			Code:   res.StatusCode,
 16730  			Header: res.Header,
 16731  		})
 16732  	}
 16733  	if err != nil {
 16734  		return nil, err
 16735  	}
 16736  	defer googleapi.CloseBody(res)
 16737  	if err := googleapi.CheckResponse(res); err != nil {
 16738  		return nil, gensupport.WrapError(err)
 16739  	}
 16740  	ret := &GoogleCloudDataplexV1Lake{
 16741  		ServerResponse: googleapi.ServerResponse{
 16742  			Header:         res.Header,
 16743  			HTTPStatusCode: res.StatusCode,
 16744  		},
 16745  	}
 16746  	target := &ret
 16747  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16748  		return nil, err
 16749  	}
 16750  	return ret, nil
 16751  }
 16752  
 16753  type ProjectsLocationsLakesGetIamPolicyCall struct {
 16754  	s            *Service
 16755  	resource     string
 16756  	urlParams_   gensupport.URLParams
 16757  	ifNoneMatch_ string
 16758  	ctx_         context.Context
 16759  	header_      http.Header
 16760  }
 16761  
 16762  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 16763  // empty policy if the resource exists and does not have a policy set.
 16764  //
 16765  //   - resource: REQUIRED: The resource for which the policy is being requested.
 16766  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 16767  //     for the appropriate value for this field.
 16768  func (r *ProjectsLocationsLakesService) GetIamPolicy(resource string) *ProjectsLocationsLakesGetIamPolicyCall {
 16769  	c := &ProjectsLocationsLakesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16770  	c.resource = resource
 16771  	return c
 16772  }
 16773  
 16774  // OptionsRequestedPolicyVersion sets the optional parameter
 16775  // "options.requestedPolicyVersion": The maximum policy version that will be
 16776  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 16777  // an invalid value will be rejected.Requests for policies with any conditional
 16778  // role bindings must specify version 3. Policies with no conditional role
 16779  // bindings may specify any valid value or leave the field unset.The policy in
 16780  // the response might use the policy version that you specified, or it might
 16781  // use a lower policy version. For example, if you specify version 3, but the
 16782  // policy has no conditional role bindings, the response uses version 1.To
 16783  // learn which resources support conditions in their IAM policies, see the IAM
 16784  // documentation
 16785  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 16786  func (c *ProjectsLocationsLakesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesGetIamPolicyCall {
 16787  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 16788  	return c
 16789  }
 16790  
 16791  // Fields allows partial responses to be retrieved. See
 16792  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16793  // details.
 16794  func (c *ProjectsLocationsLakesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesGetIamPolicyCall {
 16795  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16796  	return c
 16797  }
 16798  
 16799  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16800  // object's ETag matches the given value. This is useful for getting updates
 16801  // only after the object has changed since the last request.
 16802  func (c *ProjectsLocationsLakesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesGetIamPolicyCall {
 16803  	c.ifNoneMatch_ = entityTag
 16804  	return c
 16805  }
 16806  
 16807  // Context sets the context to be used in this call's Do method.
 16808  func (c *ProjectsLocationsLakesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesGetIamPolicyCall {
 16809  	c.ctx_ = ctx
 16810  	return c
 16811  }
 16812  
 16813  // Header returns a http.Header that can be modified by the caller to add
 16814  // headers to the request.
 16815  func (c *ProjectsLocationsLakesGetIamPolicyCall) Header() http.Header {
 16816  	if c.header_ == nil {
 16817  		c.header_ = make(http.Header)
 16818  	}
 16819  	return c.header_
 16820  }
 16821  
 16822  func (c *ProjectsLocationsLakesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 16823  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16824  	if c.ifNoneMatch_ != "" {
 16825  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16826  	}
 16827  	var body io.Reader = nil
 16828  	c.urlParams_.Set("alt", alt)
 16829  	c.urlParams_.Set("prettyPrint", "false")
 16830  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 16831  	urls += "?" + c.urlParams_.Encode()
 16832  	req, err := http.NewRequest("GET", urls, body)
 16833  	if err != nil {
 16834  		return nil, err
 16835  	}
 16836  	req.Header = reqHeaders
 16837  	googleapi.Expand(req.URL, map[string]string{
 16838  		"resource": c.resource,
 16839  	})
 16840  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16841  }
 16842  
 16843  // Do executes the "dataplex.projects.locations.lakes.getIamPolicy" call.
 16844  // Any non-2xx status code is an error. Response headers are in either
 16845  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 16846  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16847  // check whether the returned error was because http.StatusNotModified was
 16848  // returned.
 16849  func (c *ProjectsLocationsLakesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 16850  	gensupport.SetOptions(c.urlParams_, opts...)
 16851  	res, err := c.doRequest("json")
 16852  	if res != nil && res.StatusCode == http.StatusNotModified {
 16853  		if res.Body != nil {
 16854  			res.Body.Close()
 16855  		}
 16856  		return nil, gensupport.WrapError(&googleapi.Error{
 16857  			Code:   res.StatusCode,
 16858  			Header: res.Header,
 16859  		})
 16860  	}
 16861  	if err != nil {
 16862  		return nil, err
 16863  	}
 16864  	defer googleapi.CloseBody(res)
 16865  	if err := googleapi.CheckResponse(res); err != nil {
 16866  		return nil, gensupport.WrapError(err)
 16867  	}
 16868  	ret := &GoogleIamV1Policy{
 16869  		ServerResponse: googleapi.ServerResponse{
 16870  			Header:         res.Header,
 16871  			HTTPStatusCode: res.StatusCode,
 16872  		},
 16873  	}
 16874  	target := &ret
 16875  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16876  		return nil, err
 16877  	}
 16878  	return ret, nil
 16879  }
 16880  
 16881  type ProjectsLocationsLakesListCall struct {
 16882  	s            *Service
 16883  	parent       string
 16884  	urlParams_   gensupport.URLParams
 16885  	ifNoneMatch_ string
 16886  	ctx_         context.Context
 16887  	header_      http.Header
 16888  }
 16889  
 16890  // List: Lists lake resources in a project and location.
 16891  //
 16892  //   - parent: The resource name of the lake location, of the form:
 16893  //     projects/{project_number}/locations/{location_id} where location_id refers
 16894  //     to a GCP region.
 16895  func (r *ProjectsLocationsLakesService) List(parent string) *ProjectsLocationsLakesListCall {
 16896  	c := &ProjectsLocationsLakesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16897  	c.parent = parent
 16898  	return c
 16899  }
 16900  
 16901  // Filter sets the optional parameter "filter": Filter request.
 16902  func (c *ProjectsLocationsLakesListCall) Filter(filter string) *ProjectsLocationsLakesListCall {
 16903  	c.urlParams_.Set("filter", filter)
 16904  	return c
 16905  }
 16906  
 16907  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 16908  // result.
 16909  func (c *ProjectsLocationsLakesListCall) OrderBy(orderBy string) *ProjectsLocationsLakesListCall {
 16910  	c.urlParams_.Set("orderBy", orderBy)
 16911  	return c
 16912  }
 16913  
 16914  // PageSize sets the optional parameter "pageSize": Maximum number of Lakes to
 16915  // return. The service may return fewer than this value. If unspecified, at
 16916  // most 10 lakes will be returned. The maximum value is 1000; values above 1000
 16917  // will be coerced to 1000.
 16918  func (c *ProjectsLocationsLakesListCall) PageSize(pageSize int64) *ProjectsLocationsLakesListCall {
 16919  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16920  	return c
 16921  }
 16922  
 16923  // PageToken sets the optional parameter "pageToken": Page token received from
 16924  // a previous ListLakes call. Provide this to retrieve the subsequent page.
 16925  // When paginating, all other parameters provided to ListLakes must match the
 16926  // call that provided the page token.
 16927  func (c *ProjectsLocationsLakesListCall) PageToken(pageToken string) *ProjectsLocationsLakesListCall {
 16928  	c.urlParams_.Set("pageToken", pageToken)
 16929  	return c
 16930  }
 16931  
 16932  // Fields allows partial responses to be retrieved. See
 16933  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16934  // details.
 16935  func (c *ProjectsLocationsLakesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesListCall {
 16936  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16937  	return c
 16938  }
 16939  
 16940  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16941  // object's ETag matches the given value. This is useful for getting updates
 16942  // only after the object has changed since the last request.
 16943  func (c *ProjectsLocationsLakesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesListCall {
 16944  	c.ifNoneMatch_ = entityTag
 16945  	return c
 16946  }
 16947  
 16948  // Context sets the context to be used in this call's Do method.
 16949  func (c *ProjectsLocationsLakesListCall) Context(ctx context.Context) *ProjectsLocationsLakesListCall {
 16950  	c.ctx_ = ctx
 16951  	return c
 16952  }
 16953  
 16954  // Header returns a http.Header that can be modified by the caller to add
 16955  // headers to the request.
 16956  func (c *ProjectsLocationsLakesListCall) Header() http.Header {
 16957  	if c.header_ == nil {
 16958  		c.header_ = make(http.Header)
 16959  	}
 16960  	return c.header_
 16961  }
 16962  
 16963  func (c *ProjectsLocationsLakesListCall) doRequest(alt string) (*http.Response, error) {
 16964  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16965  	if c.ifNoneMatch_ != "" {
 16966  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16967  	}
 16968  	var body io.Reader = nil
 16969  	c.urlParams_.Set("alt", alt)
 16970  	c.urlParams_.Set("prettyPrint", "false")
 16971  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lakes")
 16972  	urls += "?" + c.urlParams_.Encode()
 16973  	req, err := http.NewRequest("GET", urls, body)
 16974  	if err != nil {
 16975  		return nil, err
 16976  	}
 16977  	req.Header = reqHeaders
 16978  	googleapi.Expand(req.URL, map[string]string{
 16979  		"parent": c.parent,
 16980  	})
 16981  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16982  }
 16983  
 16984  // Do executes the "dataplex.projects.locations.lakes.list" call.
 16985  // Any non-2xx status code is an error. Response headers are in either
 16986  // *GoogleCloudDataplexV1ListLakesResponse.ServerResponse.Header or (if a
 16987  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16988  // googleapi.IsNotModified to check whether the returned error was because
 16989  // http.StatusNotModified was returned.
 16990  func (c *ProjectsLocationsLakesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListLakesResponse, error) {
 16991  	gensupport.SetOptions(c.urlParams_, opts...)
 16992  	res, err := c.doRequest("json")
 16993  	if res != nil && res.StatusCode == http.StatusNotModified {
 16994  		if res.Body != nil {
 16995  			res.Body.Close()
 16996  		}
 16997  		return nil, gensupport.WrapError(&googleapi.Error{
 16998  			Code:   res.StatusCode,
 16999  			Header: res.Header,
 17000  		})
 17001  	}
 17002  	if err != nil {
 17003  		return nil, err
 17004  	}
 17005  	defer googleapi.CloseBody(res)
 17006  	if err := googleapi.CheckResponse(res); err != nil {
 17007  		return nil, gensupport.WrapError(err)
 17008  	}
 17009  	ret := &GoogleCloudDataplexV1ListLakesResponse{
 17010  		ServerResponse: googleapi.ServerResponse{
 17011  			Header:         res.Header,
 17012  			HTTPStatusCode: res.StatusCode,
 17013  		},
 17014  	}
 17015  	target := &ret
 17016  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17017  		return nil, err
 17018  	}
 17019  	return ret, nil
 17020  }
 17021  
 17022  // Pages invokes f for each page of results.
 17023  // A non-nil error returned from f will halt the iteration.
 17024  // The provided context supersedes any context provided to the Context method.
 17025  func (c *ProjectsLocationsLakesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListLakesResponse) error) error {
 17026  	c.ctx_ = ctx
 17027  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17028  	for {
 17029  		x, err := c.Do()
 17030  		if err != nil {
 17031  			return err
 17032  		}
 17033  		if err := f(x); err != nil {
 17034  			return err
 17035  		}
 17036  		if x.NextPageToken == "" {
 17037  			return nil
 17038  		}
 17039  		c.PageToken(x.NextPageToken)
 17040  	}
 17041  }
 17042  
 17043  type ProjectsLocationsLakesPatchCall struct {
 17044  	s                         *Service
 17045  	name                      string
 17046  	googleclouddataplexv1lake *GoogleCloudDataplexV1Lake
 17047  	urlParams_                gensupport.URLParams
 17048  	ctx_                      context.Context
 17049  	header_                   http.Header
 17050  }
 17051  
 17052  // Patch: Updates a lake resource.
 17053  //
 17054  //   - name: Output only. The relative resource name of the lake, of the form:
 17055  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 17056  func (r *ProjectsLocationsLakesService) Patch(name string, googleclouddataplexv1lake *GoogleCloudDataplexV1Lake) *ProjectsLocationsLakesPatchCall {
 17057  	c := &ProjectsLocationsLakesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17058  	c.name = name
 17059  	c.googleclouddataplexv1lake = googleclouddataplexv1lake
 17060  	return c
 17061  }
 17062  
 17063  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 17064  // fields to update.
 17065  func (c *ProjectsLocationsLakesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesPatchCall {
 17066  	c.urlParams_.Set("updateMask", updateMask)
 17067  	return c
 17068  }
 17069  
 17070  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 17071  // request, but do not perform mutations. The default is false.
 17072  func (c *ProjectsLocationsLakesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesPatchCall {
 17073  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 17074  	return c
 17075  }
 17076  
 17077  // Fields allows partial responses to be retrieved. See
 17078  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17079  // details.
 17080  func (c *ProjectsLocationsLakesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesPatchCall {
 17081  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17082  	return c
 17083  }
 17084  
 17085  // Context sets the context to be used in this call's Do method.
 17086  func (c *ProjectsLocationsLakesPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesPatchCall {
 17087  	c.ctx_ = ctx
 17088  	return c
 17089  }
 17090  
 17091  // Header returns a http.Header that can be modified by the caller to add
 17092  // headers to the request.
 17093  func (c *ProjectsLocationsLakesPatchCall) Header() http.Header {
 17094  	if c.header_ == nil {
 17095  		c.header_ = make(http.Header)
 17096  	}
 17097  	return c.header_
 17098  }
 17099  
 17100  func (c *ProjectsLocationsLakesPatchCall) doRequest(alt string) (*http.Response, error) {
 17101  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17102  	var body io.Reader = nil
 17103  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1lake)
 17104  	if err != nil {
 17105  		return nil, err
 17106  	}
 17107  	c.urlParams_.Set("alt", alt)
 17108  	c.urlParams_.Set("prettyPrint", "false")
 17109  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17110  	urls += "?" + c.urlParams_.Encode()
 17111  	req, err := http.NewRequest("PATCH", urls, body)
 17112  	if err != nil {
 17113  		return nil, err
 17114  	}
 17115  	req.Header = reqHeaders
 17116  	googleapi.Expand(req.URL, map[string]string{
 17117  		"name": c.name,
 17118  	})
 17119  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17120  }
 17121  
 17122  // Do executes the "dataplex.projects.locations.lakes.patch" call.
 17123  // Any non-2xx status code is an error. Response headers are in either
 17124  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17125  // returned at all) in error.(*googleapi.Error).Header. Use
 17126  // googleapi.IsNotModified to check whether the returned error was because
 17127  // http.StatusNotModified was returned.
 17128  func (c *ProjectsLocationsLakesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17129  	gensupport.SetOptions(c.urlParams_, opts...)
 17130  	res, err := c.doRequest("json")
 17131  	if res != nil && res.StatusCode == http.StatusNotModified {
 17132  		if res.Body != nil {
 17133  			res.Body.Close()
 17134  		}
 17135  		return nil, gensupport.WrapError(&googleapi.Error{
 17136  			Code:   res.StatusCode,
 17137  			Header: res.Header,
 17138  		})
 17139  	}
 17140  	if err != nil {
 17141  		return nil, err
 17142  	}
 17143  	defer googleapi.CloseBody(res)
 17144  	if err := googleapi.CheckResponse(res); err != nil {
 17145  		return nil, gensupport.WrapError(err)
 17146  	}
 17147  	ret := &GoogleLongrunningOperation{
 17148  		ServerResponse: googleapi.ServerResponse{
 17149  			Header:         res.Header,
 17150  			HTTPStatusCode: res.StatusCode,
 17151  		},
 17152  	}
 17153  	target := &ret
 17154  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17155  		return nil, err
 17156  	}
 17157  	return ret, nil
 17158  }
 17159  
 17160  type ProjectsLocationsLakesSetIamPolicyCall struct {
 17161  	s                              *Service
 17162  	resource                       string
 17163  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 17164  	urlParams_                     gensupport.URLParams
 17165  	ctx_                           context.Context
 17166  	header_                        http.Header
 17167  }
 17168  
 17169  // SetIamPolicy: Sets the access control policy on the specified resource.
 17170  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 17171  // PERMISSION_DENIED errors.
 17172  //
 17173  //   - resource: REQUIRED: The resource for which the policy is being specified.
 17174  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 17175  //     for the appropriate value for this field.
 17176  func (r *ProjectsLocationsLakesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesSetIamPolicyCall {
 17177  	c := &ProjectsLocationsLakesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17178  	c.resource = resource
 17179  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 17180  	return c
 17181  }
 17182  
 17183  // Fields allows partial responses to be retrieved. See
 17184  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17185  // details.
 17186  func (c *ProjectsLocationsLakesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesSetIamPolicyCall {
 17187  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17188  	return c
 17189  }
 17190  
 17191  // Context sets the context to be used in this call's Do method.
 17192  func (c *ProjectsLocationsLakesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesSetIamPolicyCall {
 17193  	c.ctx_ = ctx
 17194  	return c
 17195  }
 17196  
 17197  // Header returns a http.Header that can be modified by the caller to add
 17198  // headers to the request.
 17199  func (c *ProjectsLocationsLakesSetIamPolicyCall) Header() http.Header {
 17200  	if c.header_ == nil {
 17201  		c.header_ = make(http.Header)
 17202  	}
 17203  	return c.header_
 17204  }
 17205  
 17206  func (c *ProjectsLocationsLakesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 17207  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17208  	var body io.Reader = nil
 17209  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 17210  	if err != nil {
 17211  		return nil, err
 17212  	}
 17213  	c.urlParams_.Set("alt", alt)
 17214  	c.urlParams_.Set("prettyPrint", "false")
 17215  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 17216  	urls += "?" + c.urlParams_.Encode()
 17217  	req, err := http.NewRequest("POST", urls, body)
 17218  	if err != nil {
 17219  		return nil, err
 17220  	}
 17221  	req.Header = reqHeaders
 17222  	googleapi.Expand(req.URL, map[string]string{
 17223  		"resource": c.resource,
 17224  	})
 17225  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17226  }
 17227  
 17228  // Do executes the "dataplex.projects.locations.lakes.setIamPolicy" call.
 17229  // Any non-2xx status code is an error. Response headers are in either
 17230  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 17231  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17232  // check whether the returned error was because http.StatusNotModified was
 17233  // returned.
 17234  func (c *ProjectsLocationsLakesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 17235  	gensupport.SetOptions(c.urlParams_, opts...)
 17236  	res, err := c.doRequest("json")
 17237  	if res != nil && res.StatusCode == http.StatusNotModified {
 17238  		if res.Body != nil {
 17239  			res.Body.Close()
 17240  		}
 17241  		return nil, gensupport.WrapError(&googleapi.Error{
 17242  			Code:   res.StatusCode,
 17243  			Header: res.Header,
 17244  		})
 17245  	}
 17246  	if err != nil {
 17247  		return nil, err
 17248  	}
 17249  	defer googleapi.CloseBody(res)
 17250  	if err := googleapi.CheckResponse(res); err != nil {
 17251  		return nil, gensupport.WrapError(err)
 17252  	}
 17253  	ret := &GoogleIamV1Policy{
 17254  		ServerResponse: googleapi.ServerResponse{
 17255  			Header:         res.Header,
 17256  			HTTPStatusCode: res.StatusCode,
 17257  		},
 17258  	}
 17259  	target := &ret
 17260  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17261  		return nil, err
 17262  	}
 17263  	return ret, nil
 17264  }
 17265  
 17266  type ProjectsLocationsLakesTestIamPermissionsCall struct {
 17267  	s                                    *Service
 17268  	resource                             string
 17269  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 17270  	urlParams_                           gensupport.URLParams
 17271  	ctx_                                 context.Context
 17272  	header_                              http.Header
 17273  }
 17274  
 17275  // TestIamPermissions: Returns permissions that a caller has on the specified
 17276  // resource. If the resource does not exist, this will return an empty set of
 17277  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 17278  // used for building permission-aware UIs and command-line tools, not for
 17279  // authorization checking. This operation may "fail open" without warning.
 17280  //
 17281  //   - resource: REQUIRED: The resource for which the policy detail is being
 17282  //     requested. See Resource names
 17283  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 17284  //     value for this field.
 17285  func (r *ProjectsLocationsLakesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesTestIamPermissionsCall {
 17286  	c := &ProjectsLocationsLakesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17287  	c.resource = resource
 17288  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 17289  	return c
 17290  }
 17291  
 17292  // Fields allows partial responses to be retrieved. See
 17293  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17294  // details.
 17295  func (c *ProjectsLocationsLakesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTestIamPermissionsCall {
 17296  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17297  	return c
 17298  }
 17299  
 17300  // Context sets the context to be used in this call's Do method.
 17301  func (c *ProjectsLocationsLakesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesTestIamPermissionsCall {
 17302  	c.ctx_ = ctx
 17303  	return c
 17304  }
 17305  
 17306  // Header returns a http.Header that can be modified by the caller to add
 17307  // headers to the request.
 17308  func (c *ProjectsLocationsLakesTestIamPermissionsCall) Header() http.Header {
 17309  	if c.header_ == nil {
 17310  		c.header_ = make(http.Header)
 17311  	}
 17312  	return c.header_
 17313  }
 17314  
 17315  func (c *ProjectsLocationsLakesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 17316  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17317  	var body io.Reader = nil
 17318  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 17319  	if err != nil {
 17320  		return nil, err
 17321  	}
 17322  	c.urlParams_.Set("alt", alt)
 17323  	c.urlParams_.Set("prettyPrint", "false")
 17324  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 17325  	urls += "?" + c.urlParams_.Encode()
 17326  	req, err := http.NewRequest("POST", urls, body)
 17327  	if err != nil {
 17328  		return nil, err
 17329  	}
 17330  	req.Header = reqHeaders
 17331  	googleapi.Expand(req.URL, map[string]string{
 17332  		"resource": c.resource,
 17333  	})
 17334  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17335  }
 17336  
 17337  // Do executes the "dataplex.projects.locations.lakes.testIamPermissions" call.
 17338  // Any non-2xx status code is an error. Response headers are in either
 17339  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 17340  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17341  // googleapi.IsNotModified to check whether the returned error was because
 17342  // http.StatusNotModified was returned.
 17343  func (c *ProjectsLocationsLakesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 17344  	gensupport.SetOptions(c.urlParams_, opts...)
 17345  	res, err := c.doRequest("json")
 17346  	if res != nil && res.StatusCode == http.StatusNotModified {
 17347  		if res.Body != nil {
 17348  			res.Body.Close()
 17349  		}
 17350  		return nil, gensupport.WrapError(&googleapi.Error{
 17351  			Code:   res.StatusCode,
 17352  			Header: res.Header,
 17353  		})
 17354  	}
 17355  	if err != nil {
 17356  		return nil, err
 17357  	}
 17358  	defer googleapi.CloseBody(res)
 17359  	if err := googleapi.CheckResponse(res); err != nil {
 17360  		return nil, gensupport.WrapError(err)
 17361  	}
 17362  	ret := &GoogleIamV1TestIamPermissionsResponse{
 17363  		ServerResponse: googleapi.ServerResponse{
 17364  			Header:         res.Header,
 17365  			HTTPStatusCode: res.StatusCode,
 17366  		},
 17367  	}
 17368  	target := &ret
 17369  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17370  		return nil, err
 17371  	}
 17372  	return ret, nil
 17373  }
 17374  
 17375  type ProjectsLocationsLakesActionsListCall struct {
 17376  	s            *Service
 17377  	parent       string
 17378  	urlParams_   gensupport.URLParams
 17379  	ifNoneMatch_ string
 17380  	ctx_         context.Context
 17381  	header_      http.Header
 17382  }
 17383  
 17384  // List: Lists action resources in a lake.
 17385  //
 17386  //   - parent: The resource name of the parent lake:
 17387  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 17388  func (r *ProjectsLocationsLakesActionsService) List(parent string) *ProjectsLocationsLakesActionsListCall {
 17389  	c := &ProjectsLocationsLakesActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17390  	c.parent = parent
 17391  	return c
 17392  }
 17393  
 17394  // PageSize sets the optional parameter "pageSize": Maximum number of actions
 17395  // to return. The service may return fewer than this value. If unspecified, at
 17396  // most 10 actions will be returned. The maximum value is 1000; values above
 17397  // 1000 will be coerced to 1000.
 17398  func (c *ProjectsLocationsLakesActionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesActionsListCall {
 17399  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17400  	return c
 17401  }
 17402  
 17403  // PageToken sets the optional parameter "pageToken": Page token received from
 17404  // a previous ListLakeActions call. Provide this to retrieve the subsequent
 17405  // page. When paginating, all other parameters provided to ListLakeActions must
 17406  // match the call that provided the page token.
 17407  func (c *ProjectsLocationsLakesActionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesActionsListCall {
 17408  	c.urlParams_.Set("pageToken", pageToken)
 17409  	return c
 17410  }
 17411  
 17412  // Fields allows partial responses to be retrieved. See
 17413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17414  // details.
 17415  func (c *ProjectsLocationsLakesActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesActionsListCall {
 17416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17417  	return c
 17418  }
 17419  
 17420  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17421  // object's ETag matches the given value. This is useful for getting updates
 17422  // only after the object has changed since the last request.
 17423  func (c *ProjectsLocationsLakesActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesActionsListCall {
 17424  	c.ifNoneMatch_ = entityTag
 17425  	return c
 17426  }
 17427  
 17428  // Context sets the context to be used in this call's Do method.
 17429  func (c *ProjectsLocationsLakesActionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesActionsListCall {
 17430  	c.ctx_ = ctx
 17431  	return c
 17432  }
 17433  
 17434  // Header returns a http.Header that can be modified by the caller to add
 17435  // headers to the request.
 17436  func (c *ProjectsLocationsLakesActionsListCall) Header() http.Header {
 17437  	if c.header_ == nil {
 17438  		c.header_ = make(http.Header)
 17439  	}
 17440  	return c.header_
 17441  }
 17442  
 17443  func (c *ProjectsLocationsLakesActionsListCall) doRequest(alt string) (*http.Response, error) {
 17444  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17445  	if c.ifNoneMatch_ != "" {
 17446  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17447  	}
 17448  	var body io.Reader = nil
 17449  	c.urlParams_.Set("alt", alt)
 17450  	c.urlParams_.Set("prettyPrint", "false")
 17451  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/actions")
 17452  	urls += "?" + c.urlParams_.Encode()
 17453  	req, err := http.NewRequest("GET", urls, body)
 17454  	if err != nil {
 17455  		return nil, err
 17456  	}
 17457  	req.Header = reqHeaders
 17458  	googleapi.Expand(req.URL, map[string]string{
 17459  		"parent": c.parent,
 17460  	})
 17461  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17462  }
 17463  
 17464  // Do executes the "dataplex.projects.locations.lakes.actions.list" call.
 17465  // Any non-2xx status code is an error. Response headers are in either
 17466  // *GoogleCloudDataplexV1ListActionsResponse.ServerResponse.Header or (if a
 17467  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17468  // googleapi.IsNotModified to check whether the returned error was because
 17469  // http.StatusNotModified was returned.
 17470  func (c *ProjectsLocationsLakesActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListActionsResponse, error) {
 17471  	gensupport.SetOptions(c.urlParams_, opts...)
 17472  	res, err := c.doRequest("json")
 17473  	if res != nil && res.StatusCode == http.StatusNotModified {
 17474  		if res.Body != nil {
 17475  			res.Body.Close()
 17476  		}
 17477  		return nil, gensupport.WrapError(&googleapi.Error{
 17478  			Code:   res.StatusCode,
 17479  			Header: res.Header,
 17480  		})
 17481  	}
 17482  	if err != nil {
 17483  		return nil, err
 17484  	}
 17485  	defer googleapi.CloseBody(res)
 17486  	if err := googleapi.CheckResponse(res); err != nil {
 17487  		return nil, gensupport.WrapError(err)
 17488  	}
 17489  	ret := &GoogleCloudDataplexV1ListActionsResponse{
 17490  		ServerResponse: googleapi.ServerResponse{
 17491  			Header:         res.Header,
 17492  			HTTPStatusCode: res.StatusCode,
 17493  		},
 17494  	}
 17495  	target := &ret
 17496  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17497  		return nil, err
 17498  	}
 17499  	return ret, nil
 17500  }
 17501  
 17502  // Pages invokes f for each page of results.
 17503  // A non-nil error returned from f will halt the iteration.
 17504  // The provided context supersedes any context provided to the Context method.
 17505  func (c *ProjectsLocationsLakesActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListActionsResponse) error) error {
 17506  	c.ctx_ = ctx
 17507  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17508  	for {
 17509  		x, err := c.Do()
 17510  		if err != nil {
 17511  			return err
 17512  		}
 17513  		if err := f(x); err != nil {
 17514  			return err
 17515  		}
 17516  		if x.NextPageToken == "" {
 17517  			return nil
 17518  		}
 17519  		c.PageToken(x.NextPageToken)
 17520  	}
 17521  }
 17522  
 17523  type ProjectsLocationsLakesContentCreateCall struct {
 17524  	s                            *Service
 17525  	parent                       string
 17526  	googleclouddataplexv1content *GoogleCloudDataplexV1Content
 17527  	urlParams_                   gensupport.URLParams
 17528  	ctx_                         context.Context
 17529  	header_                      http.Header
 17530  }
 17531  
 17532  // Create: Create a content.
 17533  //
 17534  //   - parent: The resource name of the parent lake:
 17535  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}.
 17536  func (r *ProjectsLocationsLakesContentService) Create(parent string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentCreateCall {
 17537  	c := &ProjectsLocationsLakesContentCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17538  	c.parent = parent
 17539  	c.googleclouddataplexv1content = googleclouddataplexv1content
 17540  	return c
 17541  }
 17542  
 17543  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 17544  // request, but do not perform mutations. The default is false.
 17545  func (c *ProjectsLocationsLakesContentCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentCreateCall {
 17546  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 17547  	return c
 17548  }
 17549  
 17550  // Fields allows partial responses to be retrieved. See
 17551  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17552  // details.
 17553  func (c *ProjectsLocationsLakesContentCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentCreateCall {
 17554  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17555  	return c
 17556  }
 17557  
 17558  // Context sets the context to be used in this call's Do method.
 17559  func (c *ProjectsLocationsLakesContentCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesContentCreateCall {
 17560  	c.ctx_ = ctx
 17561  	return c
 17562  }
 17563  
 17564  // Header returns a http.Header that can be modified by the caller to add
 17565  // headers to the request.
 17566  func (c *ProjectsLocationsLakesContentCreateCall) Header() http.Header {
 17567  	if c.header_ == nil {
 17568  		c.header_ = make(http.Header)
 17569  	}
 17570  	return c.header_
 17571  }
 17572  
 17573  func (c *ProjectsLocationsLakesContentCreateCall) doRequest(alt string) (*http.Response, error) {
 17574  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17575  	var body io.Reader = nil
 17576  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
 17577  	if err != nil {
 17578  		return nil, err
 17579  	}
 17580  	c.urlParams_.Set("alt", alt)
 17581  	c.urlParams_.Set("prettyPrint", "false")
 17582  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/content")
 17583  	urls += "?" + c.urlParams_.Encode()
 17584  	req, err := http.NewRequest("POST", urls, body)
 17585  	if err != nil {
 17586  		return nil, err
 17587  	}
 17588  	req.Header = reqHeaders
 17589  	googleapi.Expand(req.URL, map[string]string{
 17590  		"parent": c.parent,
 17591  	})
 17592  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17593  }
 17594  
 17595  // Do executes the "dataplex.projects.locations.lakes.content.create" call.
 17596  // Any non-2xx status code is an error. Response headers are in either
 17597  // *GoogleCloudDataplexV1Content.ServerResponse.Header or (if a response was
 17598  // returned at all) in error.(*googleapi.Error).Header. Use
 17599  // googleapi.IsNotModified to check whether the returned error was because
 17600  // http.StatusNotModified was returned.
 17601  func (c *ProjectsLocationsLakesContentCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
 17602  	gensupport.SetOptions(c.urlParams_, opts...)
 17603  	res, err := c.doRequest("json")
 17604  	if res != nil && res.StatusCode == http.StatusNotModified {
 17605  		if res.Body != nil {
 17606  			res.Body.Close()
 17607  		}
 17608  		return nil, gensupport.WrapError(&googleapi.Error{
 17609  			Code:   res.StatusCode,
 17610  			Header: res.Header,
 17611  		})
 17612  	}
 17613  	if err != nil {
 17614  		return nil, err
 17615  	}
 17616  	defer googleapi.CloseBody(res)
 17617  	if err := googleapi.CheckResponse(res); err != nil {
 17618  		return nil, gensupport.WrapError(err)
 17619  	}
 17620  	ret := &GoogleCloudDataplexV1Content{
 17621  		ServerResponse: googleapi.ServerResponse{
 17622  			Header:         res.Header,
 17623  			HTTPStatusCode: res.StatusCode,
 17624  		},
 17625  	}
 17626  	target := &ret
 17627  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17628  		return nil, err
 17629  	}
 17630  	return ret, nil
 17631  }
 17632  
 17633  type ProjectsLocationsLakesContentDeleteCall struct {
 17634  	s          *Service
 17635  	name       string
 17636  	urlParams_ gensupport.URLParams
 17637  	ctx_       context.Context
 17638  	header_    http.Header
 17639  }
 17640  
 17641  // Delete: Delete a content.
 17642  //
 17643  //   - name: The resource name of the content:
 17644  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{cont
 17645  //     ent_id}.
 17646  func (r *ProjectsLocationsLakesContentService) Delete(name string) *ProjectsLocationsLakesContentDeleteCall {
 17647  	c := &ProjectsLocationsLakesContentDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17648  	c.name = name
 17649  	return c
 17650  }
 17651  
 17652  // Fields allows partial responses to be retrieved. See
 17653  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17654  // details.
 17655  func (c *ProjectsLocationsLakesContentDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentDeleteCall {
 17656  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17657  	return c
 17658  }
 17659  
 17660  // Context sets the context to be used in this call's Do method.
 17661  func (c *ProjectsLocationsLakesContentDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesContentDeleteCall {
 17662  	c.ctx_ = ctx
 17663  	return c
 17664  }
 17665  
 17666  // Header returns a http.Header that can be modified by the caller to add
 17667  // headers to the request.
 17668  func (c *ProjectsLocationsLakesContentDeleteCall) Header() http.Header {
 17669  	if c.header_ == nil {
 17670  		c.header_ = make(http.Header)
 17671  	}
 17672  	return c.header_
 17673  }
 17674  
 17675  func (c *ProjectsLocationsLakesContentDeleteCall) doRequest(alt string) (*http.Response, error) {
 17676  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17677  	var body io.Reader = nil
 17678  	c.urlParams_.Set("alt", alt)
 17679  	c.urlParams_.Set("prettyPrint", "false")
 17680  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17681  	urls += "?" + c.urlParams_.Encode()
 17682  	req, err := http.NewRequest("DELETE", urls, body)
 17683  	if err != nil {
 17684  		return nil, err
 17685  	}
 17686  	req.Header = reqHeaders
 17687  	googleapi.Expand(req.URL, map[string]string{
 17688  		"name": c.name,
 17689  	})
 17690  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17691  }
 17692  
 17693  // Do executes the "dataplex.projects.locations.lakes.content.delete" call.
 17694  // Any non-2xx status code is an error. Response headers are in either
 17695  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 17696  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17697  // whether the returned error was because http.StatusNotModified was returned.
 17698  func (c *ProjectsLocationsLakesContentDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 17699  	gensupport.SetOptions(c.urlParams_, opts...)
 17700  	res, err := c.doRequest("json")
 17701  	if res != nil && res.StatusCode == http.StatusNotModified {
 17702  		if res.Body != nil {
 17703  			res.Body.Close()
 17704  		}
 17705  		return nil, gensupport.WrapError(&googleapi.Error{
 17706  			Code:   res.StatusCode,
 17707  			Header: res.Header,
 17708  		})
 17709  	}
 17710  	if err != nil {
 17711  		return nil, err
 17712  	}
 17713  	defer googleapi.CloseBody(res)
 17714  	if err := googleapi.CheckResponse(res); err != nil {
 17715  		return nil, gensupport.WrapError(err)
 17716  	}
 17717  	ret := &Empty{
 17718  		ServerResponse: googleapi.ServerResponse{
 17719  			Header:         res.Header,
 17720  			HTTPStatusCode: res.StatusCode,
 17721  		},
 17722  	}
 17723  	target := &ret
 17724  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17725  		return nil, err
 17726  	}
 17727  	return ret, nil
 17728  }
 17729  
 17730  type ProjectsLocationsLakesContentGetCall struct {
 17731  	s            *Service
 17732  	name         string
 17733  	urlParams_   gensupport.URLParams
 17734  	ifNoneMatch_ string
 17735  	ctx_         context.Context
 17736  	header_      http.Header
 17737  }
 17738  
 17739  // Get: Get a content resource.
 17740  //
 17741  //   - name: The resource name of the content:
 17742  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{cont
 17743  //     ent_id}.
 17744  func (r *ProjectsLocationsLakesContentService) Get(name string) *ProjectsLocationsLakesContentGetCall {
 17745  	c := &ProjectsLocationsLakesContentGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17746  	c.name = name
 17747  	return c
 17748  }
 17749  
 17750  // View sets the optional parameter "view": Specify content view to make a
 17751  // partial request.
 17752  //
 17753  // Possible values:
 17754  //
 17755  //	"CONTENT_VIEW_UNSPECIFIED" - Content view not specified. Defaults to
 17756  //
 17757  // BASIC. The API will default to the BASIC view.
 17758  //
 17759  //	"BASIC" - Will not return the data_text field.
 17760  //	"FULL" - Returns the complete proto.
 17761  func (c *ProjectsLocationsLakesContentGetCall) View(view string) *ProjectsLocationsLakesContentGetCall {
 17762  	c.urlParams_.Set("view", view)
 17763  	return c
 17764  }
 17765  
 17766  // Fields allows partial responses to be retrieved. See
 17767  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17768  // details.
 17769  func (c *ProjectsLocationsLakesContentGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentGetCall {
 17770  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17771  	return c
 17772  }
 17773  
 17774  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17775  // object's ETag matches the given value. This is useful for getting updates
 17776  // only after the object has changed since the last request.
 17777  func (c *ProjectsLocationsLakesContentGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentGetCall {
 17778  	c.ifNoneMatch_ = entityTag
 17779  	return c
 17780  }
 17781  
 17782  // Context sets the context to be used in this call's Do method.
 17783  func (c *ProjectsLocationsLakesContentGetCall) Context(ctx context.Context) *ProjectsLocationsLakesContentGetCall {
 17784  	c.ctx_ = ctx
 17785  	return c
 17786  }
 17787  
 17788  // Header returns a http.Header that can be modified by the caller to add
 17789  // headers to the request.
 17790  func (c *ProjectsLocationsLakesContentGetCall) Header() http.Header {
 17791  	if c.header_ == nil {
 17792  		c.header_ = make(http.Header)
 17793  	}
 17794  	return c.header_
 17795  }
 17796  
 17797  func (c *ProjectsLocationsLakesContentGetCall) doRequest(alt string) (*http.Response, error) {
 17798  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17799  	if c.ifNoneMatch_ != "" {
 17800  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17801  	}
 17802  	var body io.Reader = nil
 17803  	c.urlParams_.Set("alt", alt)
 17804  	c.urlParams_.Set("prettyPrint", "false")
 17805  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 17806  	urls += "?" + c.urlParams_.Encode()
 17807  	req, err := http.NewRequest("GET", urls, body)
 17808  	if err != nil {
 17809  		return nil, err
 17810  	}
 17811  	req.Header = reqHeaders
 17812  	googleapi.Expand(req.URL, map[string]string{
 17813  		"name": c.name,
 17814  	})
 17815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17816  }
 17817  
 17818  // Do executes the "dataplex.projects.locations.lakes.content.get" call.
 17819  // Any non-2xx status code is an error. Response headers are in either
 17820  // *GoogleCloudDataplexV1Content.ServerResponse.Header or (if a response was
 17821  // returned at all) in error.(*googleapi.Error).Header. Use
 17822  // googleapi.IsNotModified to check whether the returned error was because
 17823  // http.StatusNotModified was returned.
 17824  func (c *ProjectsLocationsLakesContentGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
 17825  	gensupport.SetOptions(c.urlParams_, opts...)
 17826  	res, err := c.doRequest("json")
 17827  	if res != nil && res.StatusCode == http.StatusNotModified {
 17828  		if res.Body != nil {
 17829  			res.Body.Close()
 17830  		}
 17831  		return nil, gensupport.WrapError(&googleapi.Error{
 17832  			Code:   res.StatusCode,
 17833  			Header: res.Header,
 17834  		})
 17835  	}
 17836  	if err != nil {
 17837  		return nil, err
 17838  	}
 17839  	defer googleapi.CloseBody(res)
 17840  	if err := googleapi.CheckResponse(res); err != nil {
 17841  		return nil, gensupport.WrapError(err)
 17842  	}
 17843  	ret := &GoogleCloudDataplexV1Content{
 17844  		ServerResponse: googleapi.ServerResponse{
 17845  			Header:         res.Header,
 17846  			HTTPStatusCode: res.StatusCode,
 17847  		},
 17848  	}
 17849  	target := &ret
 17850  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17851  		return nil, err
 17852  	}
 17853  	return ret, nil
 17854  }
 17855  
 17856  type ProjectsLocationsLakesContentGetIamPolicyCall struct {
 17857  	s            *Service
 17858  	resource     string
 17859  	urlParams_   gensupport.URLParams
 17860  	ifNoneMatch_ string
 17861  	ctx_         context.Context
 17862  	header_      http.Header
 17863  }
 17864  
 17865  // GetIamPolicy: Gets the access control policy for a contentitem resource. A
 17866  // NOT_FOUND error is returned if the resource does not exist. An empty policy
 17867  // is returned if the resource exists but does not have a policy set on
 17868  // it.Caller must have Google IAM dataplex.content.getIamPolicy permission on
 17869  // the resource.
 17870  //
 17871  //   - resource: REQUIRED: The resource for which the policy is being requested.
 17872  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 17873  //     for the appropriate value for this field.
 17874  func (r *ProjectsLocationsLakesContentService) GetIamPolicy(resource string) *ProjectsLocationsLakesContentGetIamPolicyCall {
 17875  	c := &ProjectsLocationsLakesContentGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17876  	c.resource = resource
 17877  	return c
 17878  }
 17879  
 17880  // OptionsRequestedPolicyVersion sets the optional parameter
 17881  // "options.requestedPolicyVersion": The maximum policy version that will be
 17882  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 17883  // an invalid value will be rejected.Requests for policies with any conditional
 17884  // role bindings must specify version 3. Policies with no conditional role
 17885  // bindings may specify any valid value or leave the field unset.The policy in
 17886  // the response might use the policy version that you specified, or it might
 17887  // use a lower policy version. For example, if you specify version 3, but the
 17888  // policy has no conditional role bindings, the response uses version 1.To
 17889  // learn which resources support conditions in their IAM policies, see the IAM
 17890  // documentation
 17891  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 17892  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesContentGetIamPolicyCall {
 17893  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 17894  	return c
 17895  }
 17896  
 17897  // Fields allows partial responses to be retrieved. See
 17898  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17899  // details.
 17900  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentGetIamPolicyCall {
 17901  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17902  	return c
 17903  }
 17904  
 17905  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17906  // object's ETag matches the given value. This is useful for getting updates
 17907  // only after the object has changed since the last request.
 17908  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentGetIamPolicyCall {
 17909  	c.ifNoneMatch_ = entityTag
 17910  	return c
 17911  }
 17912  
 17913  // Context sets the context to be used in this call's Do method.
 17914  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentGetIamPolicyCall {
 17915  	c.ctx_ = ctx
 17916  	return c
 17917  }
 17918  
 17919  // Header returns a http.Header that can be modified by the caller to add
 17920  // headers to the request.
 17921  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Header() http.Header {
 17922  	if c.header_ == nil {
 17923  		c.header_ = make(http.Header)
 17924  	}
 17925  	return c.header_
 17926  }
 17927  
 17928  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 17929  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17930  	if c.ifNoneMatch_ != "" {
 17931  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17932  	}
 17933  	var body io.Reader = nil
 17934  	c.urlParams_.Set("alt", alt)
 17935  	c.urlParams_.Set("prettyPrint", "false")
 17936  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 17937  	urls += "?" + c.urlParams_.Encode()
 17938  	req, err := http.NewRequest("GET", urls, body)
 17939  	if err != nil {
 17940  		return nil, err
 17941  	}
 17942  	req.Header = reqHeaders
 17943  	googleapi.Expand(req.URL, map[string]string{
 17944  		"resource": c.resource,
 17945  	})
 17946  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17947  }
 17948  
 17949  // Do executes the "dataplex.projects.locations.lakes.content.getIamPolicy" call.
 17950  // Any non-2xx status code is an error. Response headers are in either
 17951  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 17952  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17953  // check whether the returned error was because http.StatusNotModified was
 17954  // returned.
 17955  func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 17956  	gensupport.SetOptions(c.urlParams_, opts...)
 17957  	res, err := c.doRequest("json")
 17958  	if res != nil && res.StatusCode == http.StatusNotModified {
 17959  		if res.Body != nil {
 17960  			res.Body.Close()
 17961  		}
 17962  		return nil, gensupport.WrapError(&googleapi.Error{
 17963  			Code:   res.StatusCode,
 17964  			Header: res.Header,
 17965  		})
 17966  	}
 17967  	if err != nil {
 17968  		return nil, err
 17969  	}
 17970  	defer googleapi.CloseBody(res)
 17971  	if err := googleapi.CheckResponse(res); err != nil {
 17972  		return nil, gensupport.WrapError(err)
 17973  	}
 17974  	ret := &GoogleIamV1Policy{
 17975  		ServerResponse: googleapi.ServerResponse{
 17976  			Header:         res.Header,
 17977  			HTTPStatusCode: res.StatusCode,
 17978  		},
 17979  	}
 17980  	target := &ret
 17981  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17982  		return nil, err
 17983  	}
 17984  	return ret, nil
 17985  }
 17986  
 17987  type ProjectsLocationsLakesContentListCall struct {
 17988  	s            *Service
 17989  	parent       string
 17990  	urlParams_   gensupport.URLParams
 17991  	ifNoneMatch_ string
 17992  	ctx_         context.Context
 17993  	header_      http.Header
 17994  }
 17995  
 17996  // List: List content.
 17997  //
 17998  //   - parent: The resource name of the parent lake:
 17999  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}.
 18000  func (r *ProjectsLocationsLakesContentService) List(parent string) *ProjectsLocationsLakesContentListCall {
 18001  	c := &ProjectsLocationsLakesContentListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18002  	c.parent = parent
 18003  	return c
 18004  }
 18005  
 18006  // Filter sets the optional parameter "filter": Filter request. Filters are
 18007  // case-sensitive. The following formats are supported:labels.key1 = "value1"
 18008  // labels:key1 type = "NOTEBOOK" type = "SQL_SCRIPT"These restrictions can be
 18009  // coinjoined with AND, OR and NOT conjunctions.
 18010  func (c *ProjectsLocationsLakesContentListCall) Filter(filter string) *ProjectsLocationsLakesContentListCall {
 18011  	c.urlParams_.Set("filter", filter)
 18012  	return c
 18013  }
 18014  
 18015  // PageSize sets the optional parameter "pageSize": Maximum number of content
 18016  // to return. The service may return fewer than this value. If unspecified, at
 18017  // most 10 content will be returned. The maximum value is 1000; values above
 18018  // 1000 will be coerced to 1000.
 18019  func (c *ProjectsLocationsLakesContentListCall) PageSize(pageSize int64) *ProjectsLocationsLakesContentListCall {
 18020  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18021  	return c
 18022  }
 18023  
 18024  // PageToken sets the optional parameter "pageToken": Page token received from
 18025  // a previous ListContent call. Provide this to retrieve the subsequent page.
 18026  // When paginating, all other parameters provided to ListContent must match the
 18027  // call that provided the page token.
 18028  func (c *ProjectsLocationsLakesContentListCall) PageToken(pageToken string) *ProjectsLocationsLakesContentListCall {
 18029  	c.urlParams_.Set("pageToken", pageToken)
 18030  	return c
 18031  }
 18032  
 18033  // Fields allows partial responses to be retrieved. See
 18034  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18035  // details.
 18036  func (c *ProjectsLocationsLakesContentListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentListCall {
 18037  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18038  	return c
 18039  }
 18040  
 18041  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18042  // object's ETag matches the given value. This is useful for getting updates
 18043  // only after the object has changed since the last request.
 18044  func (c *ProjectsLocationsLakesContentListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentListCall {
 18045  	c.ifNoneMatch_ = entityTag
 18046  	return c
 18047  }
 18048  
 18049  // Context sets the context to be used in this call's Do method.
 18050  func (c *ProjectsLocationsLakesContentListCall) Context(ctx context.Context) *ProjectsLocationsLakesContentListCall {
 18051  	c.ctx_ = ctx
 18052  	return c
 18053  }
 18054  
 18055  // Header returns a http.Header that can be modified by the caller to add
 18056  // headers to the request.
 18057  func (c *ProjectsLocationsLakesContentListCall) Header() http.Header {
 18058  	if c.header_ == nil {
 18059  		c.header_ = make(http.Header)
 18060  	}
 18061  	return c.header_
 18062  }
 18063  
 18064  func (c *ProjectsLocationsLakesContentListCall) doRequest(alt string) (*http.Response, error) {
 18065  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18066  	if c.ifNoneMatch_ != "" {
 18067  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18068  	}
 18069  	var body io.Reader = nil
 18070  	c.urlParams_.Set("alt", alt)
 18071  	c.urlParams_.Set("prettyPrint", "false")
 18072  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/content")
 18073  	urls += "?" + c.urlParams_.Encode()
 18074  	req, err := http.NewRequest("GET", urls, body)
 18075  	if err != nil {
 18076  		return nil, err
 18077  	}
 18078  	req.Header = reqHeaders
 18079  	googleapi.Expand(req.URL, map[string]string{
 18080  		"parent": c.parent,
 18081  	})
 18082  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18083  }
 18084  
 18085  // Do executes the "dataplex.projects.locations.lakes.content.list" call.
 18086  // Any non-2xx status code is an error. Response headers are in either
 18087  // *GoogleCloudDataplexV1ListContentResponse.ServerResponse.Header or (if a
 18088  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18089  // googleapi.IsNotModified to check whether the returned error was because
 18090  // http.StatusNotModified was returned.
 18091  func (c *ProjectsLocationsLakesContentListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListContentResponse, error) {
 18092  	gensupport.SetOptions(c.urlParams_, opts...)
 18093  	res, err := c.doRequest("json")
 18094  	if res != nil && res.StatusCode == http.StatusNotModified {
 18095  		if res.Body != nil {
 18096  			res.Body.Close()
 18097  		}
 18098  		return nil, gensupport.WrapError(&googleapi.Error{
 18099  			Code:   res.StatusCode,
 18100  			Header: res.Header,
 18101  		})
 18102  	}
 18103  	if err != nil {
 18104  		return nil, err
 18105  	}
 18106  	defer googleapi.CloseBody(res)
 18107  	if err := googleapi.CheckResponse(res); err != nil {
 18108  		return nil, gensupport.WrapError(err)
 18109  	}
 18110  	ret := &GoogleCloudDataplexV1ListContentResponse{
 18111  		ServerResponse: googleapi.ServerResponse{
 18112  			Header:         res.Header,
 18113  			HTTPStatusCode: res.StatusCode,
 18114  		},
 18115  	}
 18116  	target := &ret
 18117  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18118  		return nil, err
 18119  	}
 18120  	return ret, nil
 18121  }
 18122  
 18123  // Pages invokes f for each page of results.
 18124  // A non-nil error returned from f will halt the iteration.
 18125  // The provided context supersedes any context provided to the Context method.
 18126  func (c *ProjectsLocationsLakesContentListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListContentResponse) error) error {
 18127  	c.ctx_ = ctx
 18128  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18129  	for {
 18130  		x, err := c.Do()
 18131  		if err != nil {
 18132  			return err
 18133  		}
 18134  		if err := f(x); err != nil {
 18135  			return err
 18136  		}
 18137  		if x.NextPageToken == "" {
 18138  			return nil
 18139  		}
 18140  		c.PageToken(x.NextPageToken)
 18141  	}
 18142  }
 18143  
 18144  type ProjectsLocationsLakesContentPatchCall struct {
 18145  	s                            *Service
 18146  	name                         string
 18147  	googleclouddataplexv1content *GoogleCloudDataplexV1Content
 18148  	urlParams_                   gensupport.URLParams
 18149  	ctx_                         context.Context
 18150  	header_                      http.Header
 18151  }
 18152  
 18153  // Patch: Update a content. Only supports full resource update.
 18154  //
 18155  //   - name: Output only. The relative resource name of the content, of the form:
 18156  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{cont
 18157  //     ent_id}.
 18158  func (r *ProjectsLocationsLakesContentService) Patch(name string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentPatchCall {
 18159  	c := &ProjectsLocationsLakesContentPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18160  	c.name = name
 18161  	c.googleclouddataplexv1content = googleclouddataplexv1content
 18162  	return c
 18163  }
 18164  
 18165  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 18166  // fields to update.
 18167  func (c *ProjectsLocationsLakesContentPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesContentPatchCall {
 18168  	c.urlParams_.Set("updateMask", updateMask)
 18169  	return c
 18170  }
 18171  
 18172  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 18173  // request, but do not perform mutations. The default is false.
 18174  func (c *ProjectsLocationsLakesContentPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentPatchCall {
 18175  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 18176  	return c
 18177  }
 18178  
 18179  // Fields allows partial responses to be retrieved. See
 18180  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18181  // details.
 18182  func (c *ProjectsLocationsLakesContentPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentPatchCall {
 18183  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18184  	return c
 18185  }
 18186  
 18187  // Context sets the context to be used in this call's Do method.
 18188  func (c *ProjectsLocationsLakesContentPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesContentPatchCall {
 18189  	c.ctx_ = ctx
 18190  	return c
 18191  }
 18192  
 18193  // Header returns a http.Header that can be modified by the caller to add
 18194  // headers to the request.
 18195  func (c *ProjectsLocationsLakesContentPatchCall) Header() http.Header {
 18196  	if c.header_ == nil {
 18197  		c.header_ = make(http.Header)
 18198  	}
 18199  	return c.header_
 18200  }
 18201  
 18202  func (c *ProjectsLocationsLakesContentPatchCall) doRequest(alt string) (*http.Response, error) {
 18203  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18204  	var body io.Reader = nil
 18205  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
 18206  	if err != nil {
 18207  		return nil, err
 18208  	}
 18209  	c.urlParams_.Set("alt", alt)
 18210  	c.urlParams_.Set("prettyPrint", "false")
 18211  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18212  	urls += "?" + c.urlParams_.Encode()
 18213  	req, err := http.NewRequest("PATCH", urls, body)
 18214  	if err != nil {
 18215  		return nil, err
 18216  	}
 18217  	req.Header = reqHeaders
 18218  	googleapi.Expand(req.URL, map[string]string{
 18219  		"name": c.name,
 18220  	})
 18221  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18222  }
 18223  
 18224  // Do executes the "dataplex.projects.locations.lakes.content.patch" call.
 18225  // Any non-2xx status code is an error. Response headers are in either
 18226  // *GoogleCloudDataplexV1Content.ServerResponse.Header or (if a response was
 18227  // returned at all) in error.(*googleapi.Error).Header. Use
 18228  // googleapi.IsNotModified to check whether the returned error was because
 18229  // http.StatusNotModified was returned.
 18230  func (c *ProjectsLocationsLakesContentPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
 18231  	gensupport.SetOptions(c.urlParams_, opts...)
 18232  	res, err := c.doRequest("json")
 18233  	if res != nil && res.StatusCode == http.StatusNotModified {
 18234  		if res.Body != nil {
 18235  			res.Body.Close()
 18236  		}
 18237  		return nil, gensupport.WrapError(&googleapi.Error{
 18238  			Code:   res.StatusCode,
 18239  			Header: res.Header,
 18240  		})
 18241  	}
 18242  	if err != nil {
 18243  		return nil, err
 18244  	}
 18245  	defer googleapi.CloseBody(res)
 18246  	if err := googleapi.CheckResponse(res); err != nil {
 18247  		return nil, gensupport.WrapError(err)
 18248  	}
 18249  	ret := &GoogleCloudDataplexV1Content{
 18250  		ServerResponse: googleapi.ServerResponse{
 18251  			Header:         res.Header,
 18252  			HTTPStatusCode: res.StatusCode,
 18253  		},
 18254  	}
 18255  	target := &ret
 18256  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18257  		return nil, err
 18258  	}
 18259  	return ret, nil
 18260  }
 18261  
 18262  type ProjectsLocationsLakesContentSetIamPolicyCall struct {
 18263  	s                              *Service
 18264  	resource                       string
 18265  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 18266  	urlParams_                     gensupport.URLParams
 18267  	ctx_                           context.Context
 18268  	header_                        http.Header
 18269  }
 18270  
 18271  // SetIamPolicy: Sets the access control policy on the specified contentitem
 18272  // resource. Replaces any existing policy.Caller must have Google IAM
 18273  // dataplex.content.setIamPolicy permission on the resource.
 18274  //
 18275  //   - resource: REQUIRED: The resource for which the policy is being specified.
 18276  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 18277  //     for the appropriate value for this field.
 18278  func (r *ProjectsLocationsLakesContentService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesContentSetIamPolicyCall {
 18279  	c := &ProjectsLocationsLakesContentSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18280  	c.resource = resource
 18281  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 18282  	return c
 18283  }
 18284  
 18285  // Fields allows partial responses to be retrieved. See
 18286  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18287  // details.
 18288  func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentSetIamPolicyCall {
 18289  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18290  	return c
 18291  }
 18292  
 18293  // Context sets the context to be used in this call's Do method.
 18294  func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentSetIamPolicyCall {
 18295  	c.ctx_ = ctx
 18296  	return c
 18297  }
 18298  
 18299  // Header returns a http.Header that can be modified by the caller to add
 18300  // headers to the request.
 18301  func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Header() http.Header {
 18302  	if c.header_ == nil {
 18303  		c.header_ = make(http.Header)
 18304  	}
 18305  	return c.header_
 18306  }
 18307  
 18308  func (c *ProjectsLocationsLakesContentSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 18309  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18310  	var body io.Reader = nil
 18311  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 18312  	if err != nil {
 18313  		return nil, err
 18314  	}
 18315  	c.urlParams_.Set("alt", alt)
 18316  	c.urlParams_.Set("prettyPrint", "false")
 18317  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 18318  	urls += "?" + c.urlParams_.Encode()
 18319  	req, err := http.NewRequest("POST", urls, body)
 18320  	if err != nil {
 18321  		return nil, err
 18322  	}
 18323  	req.Header = reqHeaders
 18324  	googleapi.Expand(req.URL, map[string]string{
 18325  		"resource": c.resource,
 18326  	})
 18327  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18328  }
 18329  
 18330  // Do executes the "dataplex.projects.locations.lakes.content.setIamPolicy" call.
 18331  // Any non-2xx status code is an error. Response headers are in either
 18332  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 18333  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18334  // check whether the returned error was because http.StatusNotModified was
 18335  // returned.
 18336  func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 18337  	gensupport.SetOptions(c.urlParams_, opts...)
 18338  	res, err := c.doRequest("json")
 18339  	if res != nil && res.StatusCode == http.StatusNotModified {
 18340  		if res.Body != nil {
 18341  			res.Body.Close()
 18342  		}
 18343  		return nil, gensupport.WrapError(&googleapi.Error{
 18344  			Code:   res.StatusCode,
 18345  			Header: res.Header,
 18346  		})
 18347  	}
 18348  	if err != nil {
 18349  		return nil, err
 18350  	}
 18351  	defer googleapi.CloseBody(res)
 18352  	if err := googleapi.CheckResponse(res); err != nil {
 18353  		return nil, gensupport.WrapError(err)
 18354  	}
 18355  	ret := &GoogleIamV1Policy{
 18356  		ServerResponse: googleapi.ServerResponse{
 18357  			Header:         res.Header,
 18358  			HTTPStatusCode: res.StatusCode,
 18359  		},
 18360  	}
 18361  	target := &ret
 18362  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18363  		return nil, err
 18364  	}
 18365  	return ret, nil
 18366  }
 18367  
 18368  type ProjectsLocationsLakesContentTestIamPermissionsCall struct {
 18369  	s                                    *Service
 18370  	resource                             string
 18371  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 18372  	urlParams_                           gensupport.URLParams
 18373  	ctx_                                 context.Context
 18374  	header_                              http.Header
 18375  }
 18376  
 18377  // TestIamPermissions: Returns the caller's permissions on a resource. If the
 18378  // resource does not exist, an empty set of permissions is returned (a
 18379  // NOT_FOUND error is not returned).A caller is not required to have Google IAM
 18380  // permission to make this request.Note: This operation is designed to be used
 18381  // for building permission-aware UIs and command-line tools, not for
 18382  // authorization checking. This operation may "fail open" without warning.
 18383  //
 18384  //   - resource: REQUIRED: The resource for which the policy detail is being
 18385  //     requested. See Resource names
 18386  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 18387  //     value for this field.
 18388  func (r *ProjectsLocationsLakesContentService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesContentTestIamPermissionsCall {
 18389  	c := &ProjectsLocationsLakesContentTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18390  	c.resource = resource
 18391  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 18392  	return c
 18393  }
 18394  
 18395  // Fields allows partial responses to be retrieved. See
 18396  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18397  // details.
 18398  func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentTestIamPermissionsCall {
 18399  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18400  	return c
 18401  }
 18402  
 18403  // Context sets the context to be used in this call's Do method.
 18404  func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesContentTestIamPermissionsCall {
 18405  	c.ctx_ = ctx
 18406  	return c
 18407  }
 18408  
 18409  // Header returns a http.Header that can be modified by the caller to add
 18410  // headers to the request.
 18411  func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Header() http.Header {
 18412  	if c.header_ == nil {
 18413  		c.header_ = make(http.Header)
 18414  	}
 18415  	return c.header_
 18416  }
 18417  
 18418  func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 18419  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18420  	var body io.Reader = nil
 18421  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 18422  	if err != nil {
 18423  		return nil, err
 18424  	}
 18425  	c.urlParams_.Set("alt", alt)
 18426  	c.urlParams_.Set("prettyPrint", "false")
 18427  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 18428  	urls += "?" + c.urlParams_.Encode()
 18429  	req, err := http.NewRequest("POST", urls, body)
 18430  	if err != nil {
 18431  		return nil, err
 18432  	}
 18433  	req.Header = reqHeaders
 18434  	googleapi.Expand(req.URL, map[string]string{
 18435  		"resource": c.resource,
 18436  	})
 18437  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18438  }
 18439  
 18440  // Do executes the "dataplex.projects.locations.lakes.content.testIamPermissions" call.
 18441  // Any non-2xx status code is an error. Response headers are in either
 18442  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 18443  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18444  // googleapi.IsNotModified to check whether the returned error was because
 18445  // http.StatusNotModified was returned.
 18446  func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 18447  	gensupport.SetOptions(c.urlParams_, opts...)
 18448  	res, err := c.doRequest("json")
 18449  	if res != nil && res.StatusCode == http.StatusNotModified {
 18450  		if res.Body != nil {
 18451  			res.Body.Close()
 18452  		}
 18453  		return nil, gensupport.WrapError(&googleapi.Error{
 18454  			Code:   res.StatusCode,
 18455  			Header: res.Header,
 18456  		})
 18457  	}
 18458  	if err != nil {
 18459  		return nil, err
 18460  	}
 18461  	defer googleapi.CloseBody(res)
 18462  	if err := googleapi.CheckResponse(res); err != nil {
 18463  		return nil, gensupport.WrapError(err)
 18464  	}
 18465  	ret := &GoogleIamV1TestIamPermissionsResponse{
 18466  		ServerResponse: googleapi.ServerResponse{
 18467  			Header:         res.Header,
 18468  			HTTPStatusCode: res.StatusCode,
 18469  		},
 18470  	}
 18471  	target := &ret
 18472  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18473  		return nil, err
 18474  	}
 18475  	return ret, nil
 18476  }
 18477  
 18478  type ProjectsLocationsLakesContentitemsCreateCall struct {
 18479  	s                            *Service
 18480  	parent                       string
 18481  	googleclouddataplexv1content *GoogleCloudDataplexV1Content
 18482  	urlParams_                   gensupport.URLParams
 18483  	ctx_                         context.Context
 18484  	header_                      http.Header
 18485  }
 18486  
 18487  // Create: Create a content.
 18488  //
 18489  //   - parent: The resource name of the parent lake:
 18490  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}.
 18491  func (r *ProjectsLocationsLakesContentitemsService) Create(parent string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentitemsCreateCall {
 18492  	c := &ProjectsLocationsLakesContentitemsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18493  	c.parent = parent
 18494  	c.googleclouddataplexv1content = googleclouddataplexv1content
 18495  	return c
 18496  }
 18497  
 18498  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 18499  // request, but do not perform mutations. The default is false.
 18500  func (c *ProjectsLocationsLakesContentitemsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentitemsCreateCall {
 18501  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 18502  	return c
 18503  }
 18504  
 18505  // Fields allows partial responses to be retrieved. See
 18506  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18507  // details.
 18508  func (c *ProjectsLocationsLakesContentitemsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsCreateCall {
 18509  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18510  	return c
 18511  }
 18512  
 18513  // Context sets the context to be used in this call's Do method.
 18514  func (c *ProjectsLocationsLakesContentitemsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsCreateCall {
 18515  	c.ctx_ = ctx
 18516  	return c
 18517  }
 18518  
 18519  // Header returns a http.Header that can be modified by the caller to add
 18520  // headers to the request.
 18521  func (c *ProjectsLocationsLakesContentitemsCreateCall) Header() http.Header {
 18522  	if c.header_ == nil {
 18523  		c.header_ = make(http.Header)
 18524  	}
 18525  	return c.header_
 18526  }
 18527  
 18528  func (c *ProjectsLocationsLakesContentitemsCreateCall) doRequest(alt string) (*http.Response, error) {
 18529  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18530  	var body io.Reader = nil
 18531  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
 18532  	if err != nil {
 18533  		return nil, err
 18534  	}
 18535  	c.urlParams_.Set("alt", alt)
 18536  	c.urlParams_.Set("prettyPrint", "false")
 18537  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contentitems")
 18538  	urls += "?" + c.urlParams_.Encode()
 18539  	req, err := http.NewRequest("POST", urls, body)
 18540  	if err != nil {
 18541  		return nil, err
 18542  	}
 18543  	req.Header = reqHeaders
 18544  	googleapi.Expand(req.URL, map[string]string{
 18545  		"parent": c.parent,
 18546  	})
 18547  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18548  }
 18549  
 18550  // Do executes the "dataplex.projects.locations.lakes.contentitems.create" call.
 18551  // Any non-2xx status code is an error. Response headers are in either
 18552  // *GoogleCloudDataplexV1Content.ServerResponse.Header or (if a response was
 18553  // returned at all) in error.(*googleapi.Error).Header. Use
 18554  // googleapi.IsNotModified to check whether the returned error was because
 18555  // http.StatusNotModified was returned.
 18556  func (c *ProjectsLocationsLakesContentitemsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
 18557  	gensupport.SetOptions(c.urlParams_, opts...)
 18558  	res, err := c.doRequest("json")
 18559  	if res != nil && res.StatusCode == http.StatusNotModified {
 18560  		if res.Body != nil {
 18561  			res.Body.Close()
 18562  		}
 18563  		return nil, gensupport.WrapError(&googleapi.Error{
 18564  			Code:   res.StatusCode,
 18565  			Header: res.Header,
 18566  		})
 18567  	}
 18568  	if err != nil {
 18569  		return nil, err
 18570  	}
 18571  	defer googleapi.CloseBody(res)
 18572  	if err := googleapi.CheckResponse(res); err != nil {
 18573  		return nil, gensupport.WrapError(err)
 18574  	}
 18575  	ret := &GoogleCloudDataplexV1Content{
 18576  		ServerResponse: googleapi.ServerResponse{
 18577  			Header:         res.Header,
 18578  			HTTPStatusCode: res.StatusCode,
 18579  		},
 18580  	}
 18581  	target := &ret
 18582  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18583  		return nil, err
 18584  	}
 18585  	return ret, nil
 18586  }
 18587  
 18588  type ProjectsLocationsLakesContentitemsDeleteCall struct {
 18589  	s          *Service
 18590  	name       string
 18591  	urlParams_ gensupport.URLParams
 18592  	ctx_       context.Context
 18593  	header_    http.Header
 18594  }
 18595  
 18596  // Delete: Delete a content.
 18597  //
 18598  //   - name: The resource name of the content:
 18599  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{cont
 18600  //     ent_id}.
 18601  func (r *ProjectsLocationsLakesContentitemsService) Delete(name string) *ProjectsLocationsLakesContentitemsDeleteCall {
 18602  	c := &ProjectsLocationsLakesContentitemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18603  	c.name = name
 18604  	return c
 18605  }
 18606  
 18607  // Fields allows partial responses to be retrieved. See
 18608  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18609  // details.
 18610  func (c *ProjectsLocationsLakesContentitemsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsDeleteCall {
 18611  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18612  	return c
 18613  }
 18614  
 18615  // Context sets the context to be used in this call's Do method.
 18616  func (c *ProjectsLocationsLakesContentitemsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsDeleteCall {
 18617  	c.ctx_ = ctx
 18618  	return c
 18619  }
 18620  
 18621  // Header returns a http.Header that can be modified by the caller to add
 18622  // headers to the request.
 18623  func (c *ProjectsLocationsLakesContentitemsDeleteCall) Header() http.Header {
 18624  	if c.header_ == nil {
 18625  		c.header_ = make(http.Header)
 18626  	}
 18627  	return c.header_
 18628  }
 18629  
 18630  func (c *ProjectsLocationsLakesContentitemsDeleteCall) doRequest(alt string) (*http.Response, error) {
 18631  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18632  	var body io.Reader = nil
 18633  	c.urlParams_.Set("alt", alt)
 18634  	c.urlParams_.Set("prettyPrint", "false")
 18635  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18636  	urls += "?" + c.urlParams_.Encode()
 18637  	req, err := http.NewRequest("DELETE", urls, body)
 18638  	if err != nil {
 18639  		return nil, err
 18640  	}
 18641  	req.Header = reqHeaders
 18642  	googleapi.Expand(req.URL, map[string]string{
 18643  		"name": c.name,
 18644  	})
 18645  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18646  }
 18647  
 18648  // Do executes the "dataplex.projects.locations.lakes.contentitems.delete" call.
 18649  // Any non-2xx status code is an error. Response headers are in either
 18650  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 18651  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18652  // whether the returned error was because http.StatusNotModified was returned.
 18653  func (c *ProjectsLocationsLakesContentitemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 18654  	gensupport.SetOptions(c.urlParams_, opts...)
 18655  	res, err := c.doRequest("json")
 18656  	if res != nil && res.StatusCode == http.StatusNotModified {
 18657  		if res.Body != nil {
 18658  			res.Body.Close()
 18659  		}
 18660  		return nil, gensupport.WrapError(&googleapi.Error{
 18661  			Code:   res.StatusCode,
 18662  			Header: res.Header,
 18663  		})
 18664  	}
 18665  	if err != nil {
 18666  		return nil, err
 18667  	}
 18668  	defer googleapi.CloseBody(res)
 18669  	if err := googleapi.CheckResponse(res); err != nil {
 18670  		return nil, gensupport.WrapError(err)
 18671  	}
 18672  	ret := &Empty{
 18673  		ServerResponse: googleapi.ServerResponse{
 18674  			Header:         res.Header,
 18675  			HTTPStatusCode: res.StatusCode,
 18676  		},
 18677  	}
 18678  	target := &ret
 18679  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18680  		return nil, err
 18681  	}
 18682  	return ret, nil
 18683  }
 18684  
 18685  type ProjectsLocationsLakesContentitemsGetCall struct {
 18686  	s            *Service
 18687  	name         string
 18688  	urlParams_   gensupport.URLParams
 18689  	ifNoneMatch_ string
 18690  	ctx_         context.Context
 18691  	header_      http.Header
 18692  }
 18693  
 18694  // Get: Get a content resource.
 18695  //
 18696  //   - name: The resource name of the content:
 18697  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{cont
 18698  //     ent_id}.
 18699  func (r *ProjectsLocationsLakesContentitemsService) Get(name string) *ProjectsLocationsLakesContentitemsGetCall {
 18700  	c := &ProjectsLocationsLakesContentitemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18701  	c.name = name
 18702  	return c
 18703  }
 18704  
 18705  // View sets the optional parameter "view": Specify content view to make a
 18706  // partial request.
 18707  //
 18708  // Possible values:
 18709  //
 18710  //	"CONTENT_VIEW_UNSPECIFIED" - Content view not specified. Defaults to
 18711  //
 18712  // BASIC. The API will default to the BASIC view.
 18713  //
 18714  //	"BASIC" - Will not return the data_text field.
 18715  //	"FULL" - Returns the complete proto.
 18716  func (c *ProjectsLocationsLakesContentitemsGetCall) View(view string) *ProjectsLocationsLakesContentitemsGetCall {
 18717  	c.urlParams_.Set("view", view)
 18718  	return c
 18719  }
 18720  
 18721  // Fields allows partial responses to be retrieved. See
 18722  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18723  // details.
 18724  func (c *ProjectsLocationsLakesContentitemsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsGetCall {
 18725  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18726  	return c
 18727  }
 18728  
 18729  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18730  // object's ETag matches the given value. This is useful for getting updates
 18731  // only after the object has changed since the last request.
 18732  func (c *ProjectsLocationsLakesContentitemsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentitemsGetCall {
 18733  	c.ifNoneMatch_ = entityTag
 18734  	return c
 18735  }
 18736  
 18737  // Context sets the context to be used in this call's Do method.
 18738  func (c *ProjectsLocationsLakesContentitemsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsGetCall {
 18739  	c.ctx_ = ctx
 18740  	return c
 18741  }
 18742  
 18743  // Header returns a http.Header that can be modified by the caller to add
 18744  // headers to the request.
 18745  func (c *ProjectsLocationsLakesContentitemsGetCall) Header() http.Header {
 18746  	if c.header_ == nil {
 18747  		c.header_ = make(http.Header)
 18748  	}
 18749  	return c.header_
 18750  }
 18751  
 18752  func (c *ProjectsLocationsLakesContentitemsGetCall) doRequest(alt string) (*http.Response, error) {
 18753  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18754  	if c.ifNoneMatch_ != "" {
 18755  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18756  	}
 18757  	var body io.Reader = nil
 18758  	c.urlParams_.Set("alt", alt)
 18759  	c.urlParams_.Set("prettyPrint", "false")
 18760  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 18761  	urls += "?" + c.urlParams_.Encode()
 18762  	req, err := http.NewRequest("GET", urls, body)
 18763  	if err != nil {
 18764  		return nil, err
 18765  	}
 18766  	req.Header = reqHeaders
 18767  	googleapi.Expand(req.URL, map[string]string{
 18768  		"name": c.name,
 18769  	})
 18770  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18771  }
 18772  
 18773  // Do executes the "dataplex.projects.locations.lakes.contentitems.get" call.
 18774  // Any non-2xx status code is an error. Response headers are in either
 18775  // *GoogleCloudDataplexV1Content.ServerResponse.Header or (if a response was
 18776  // returned at all) in error.(*googleapi.Error).Header. Use
 18777  // googleapi.IsNotModified to check whether the returned error was because
 18778  // http.StatusNotModified was returned.
 18779  func (c *ProjectsLocationsLakesContentitemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
 18780  	gensupport.SetOptions(c.urlParams_, opts...)
 18781  	res, err := c.doRequest("json")
 18782  	if res != nil && res.StatusCode == http.StatusNotModified {
 18783  		if res.Body != nil {
 18784  			res.Body.Close()
 18785  		}
 18786  		return nil, gensupport.WrapError(&googleapi.Error{
 18787  			Code:   res.StatusCode,
 18788  			Header: res.Header,
 18789  		})
 18790  	}
 18791  	if err != nil {
 18792  		return nil, err
 18793  	}
 18794  	defer googleapi.CloseBody(res)
 18795  	if err := googleapi.CheckResponse(res); err != nil {
 18796  		return nil, gensupport.WrapError(err)
 18797  	}
 18798  	ret := &GoogleCloudDataplexV1Content{
 18799  		ServerResponse: googleapi.ServerResponse{
 18800  			Header:         res.Header,
 18801  			HTTPStatusCode: res.StatusCode,
 18802  		},
 18803  	}
 18804  	target := &ret
 18805  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18806  		return nil, err
 18807  	}
 18808  	return ret, nil
 18809  }
 18810  
 18811  type ProjectsLocationsLakesContentitemsGetIamPolicyCall struct {
 18812  	s            *Service
 18813  	resource     string
 18814  	urlParams_   gensupport.URLParams
 18815  	ifNoneMatch_ string
 18816  	ctx_         context.Context
 18817  	header_      http.Header
 18818  }
 18819  
 18820  // GetIamPolicy: Gets the access control policy for a contentitem resource. A
 18821  // NOT_FOUND error is returned if the resource does not exist. An empty policy
 18822  // is returned if the resource exists but does not have a policy set on
 18823  // it.Caller must have Google IAM dataplex.content.getIamPolicy permission on
 18824  // the resource.
 18825  //
 18826  //   - resource: REQUIRED: The resource for which the policy is being requested.
 18827  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 18828  //     for the appropriate value for this field.
 18829  func (r *ProjectsLocationsLakesContentitemsService) GetIamPolicy(resource string) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
 18830  	c := &ProjectsLocationsLakesContentitemsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18831  	c.resource = resource
 18832  	return c
 18833  }
 18834  
 18835  // OptionsRequestedPolicyVersion sets the optional parameter
 18836  // "options.requestedPolicyVersion": The maximum policy version that will be
 18837  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 18838  // an invalid value will be rejected.Requests for policies with any conditional
 18839  // role bindings must specify version 3. Policies with no conditional role
 18840  // bindings may specify any valid value or leave the field unset.The policy in
 18841  // the response might use the policy version that you specified, or it might
 18842  // use a lower policy version. For example, if you specify version 3, but the
 18843  // policy has no conditional role bindings, the response uses version 1.To
 18844  // learn which resources support conditions in their IAM policies, see the IAM
 18845  // documentation
 18846  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 18847  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
 18848  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 18849  	return c
 18850  }
 18851  
 18852  // Fields allows partial responses to be retrieved. See
 18853  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18854  // details.
 18855  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
 18856  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18857  	return c
 18858  }
 18859  
 18860  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18861  // object's ETag matches the given value. This is useful for getting updates
 18862  // only after the object has changed since the last request.
 18863  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
 18864  	c.ifNoneMatch_ = entityTag
 18865  	return c
 18866  }
 18867  
 18868  // Context sets the context to be used in this call's Do method.
 18869  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
 18870  	c.ctx_ = ctx
 18871  	return c
 18872  }
 18873  
 18874  // Header returns a http.Header that can be modified by the caller to add
 18875  // headers to the request.
 18876  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Header() http.Header {
 18877  	if c.header_ == nil {
 18878  		c.header_ = make(http.Header)
 18879  	}
 18880  	return c.header_
 18881  }
 18882  
 18883  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 18884  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18885  	if c.ifNoneMatch_ != "" {
 18886  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18887  	}
 18888  	var body io.Reader = nil
 18889  	c.urlParams_.Set("alt", alt)
 18890  	c.urlParams_.Set("prettyPrint", "false")
 18891  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 18892  	urls += "?" + c.urlParams_.Encode()
 18893  	req, err := http.NewRequest("GET", urls, body)
 18894  	if err != nil {
 18895  		return nil, err
 18896  	}
 18897  	req.Header = reqHeaders
 18898  	googleapi.Expand(req.URL, map[string]string{
 18899  		"resource": c.resource,
 18900  	})
 18901  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18902  }
 18903  
 18904  // Do executes the "dataplex.projects.locations.lakes.contentitems.getIamPolicy" call.
 18905  // Any non-2xx status code is an error. Response headers are in either
 18906  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 18907  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18908  // check whether the returned error was because http.StatusNotModified was
 18909  // returned.
 18910  func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 18911  	gensupport.SetOptions(c.urlParams_, opts...)
 18912  	res, err := c.doRequest("json")
 18913  	if res != nil && res.StatusCode == http.StatusNotModified {
 18914  		if res.Body != nil {
 18915  			res.Body.Close()
 18916  		}
 18917  		return nil, gensupport.WrapError(&googleapi.Error{
 18918  			Code:   res.StatusCode,
 18919  			Header: res.Header,
 18920  		})
 18921  	}
 18922  	if err != nil {
 18923  		return nil, err
 18924  	}
 18925  	defer googleapi.CloseBody(res)
 18926  	if err := googleapi.CheckResponse(res); err != nil {
 18927  		return nil, gensupport.WrapError(err)
 18928  	}
 18929  	ret := &GoogleIamV1Policy{
 18930  		ServerResponse: googleapi.ServerResponse{
 18931  			Header:         res.Header,
 18932  			HTTPStatusCode: res.StatusCode,
 18933  		},
 18934  	}
 18935  	target := &ret
 18936  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18937  		return nil, err
 18938  	}
 18939  	return ret, nil
 18940  }
 18941  
 18942  type ProjectsLocationsLakesContentitemsListCall struct {
 18943  	s            *Service
 18944  	parent       string
 18945  	urlParams_   gensupport.URLParams
 18946  	ifNoneMatch_ string
 18947  	ctx_         context.Context
 18948  	header_      http.Header
 18949  }
 18950  
 18951  // List: List content.
 18952  //
 18953  //   - parent: The resource name of the parent lake:
 18954  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}.
 18955  func (r *ProjectsLocationsLakesContentitemsService) List(parent string) *ProjectsLocationsLakesContentitemsListCall {
 18956  	c := &ProjectsLocationsLakesContentitemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18957  	c.parent = parent
 18958  	return c
 18959  }
 18960  
 18961  // Filter sets the optional parameter "filter": Filter request. Filters are
 18962  // case-sensitive. The following formats are supported:labels.key1 = "value1"
 18963  // labels:key1 type = "NOTEBOOK" type = "SQL_SCRIPT"These restrictions can be
 18964  // coinjoined with AND, OR and NOT conjunctions.
 18965  func (c *ProjectsLocationsLakesContentitemsListCall) Filter(filter string) *ProjectsLocationsLakesContentitemsListCall {
 18966  	c.urlParams_.Set("filter", filter)
 18967  	return c
 18968  }
 18969  
 18970  // PageSize sets the optional parameter "pageSize": Maximum number of content
 18971  // to return. The service may return fewer than this value. If unspecified, at
 18972  // most 10 content will be returned. The maximum value is 1000; values above
 18973  // 1000 will be coerced to 1000.
 18974  func (c *ProjectsLocationsLakesContentitemsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesContentitemsListCall {
 18975  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18976  	return c
 18977  }
 18978  
 18979  // PageToken sets the optional parameter "pageToken": Page token received from
 18980  // a previous ListContent call. Provide this to retrieve the subsequent page.
 18981  // When paginating, all other parameters provided to ListContent must match the
 18982  // call that provided the page token.
 18983  func (c *ProjectsLocationsLakesContentitemsListCall) PageToken(pageToken string) *ProjectsLocationsLakesContentitemsListCall {
 18984  	c.urlParams_.Set("pageToken", pageToken)
 18985  	return c
 18986  }
 18987  
 18988  // Fields allows partial responses to be retrieved. See
 18989  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18990  // details.
 18991  func (c *ProjectsLocationsLakesContentitemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsListCall {
 18992  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18993  	return c
 18994  }
 18995  
 18996  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18997  // object's ETag matches the given value. This is useful for getting updates
 18998  // only after the object has changed since the last request.
 18999  func (c *ProjectsLocationsLakesContentitemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentitemsListCall {
 19000  	c.ifNoneMatch_ = entityTag
 19001  	return c
 19002  }
 19003  
 19004  // Context sets the context to be used in this call's Do method.
 19005  func (c *ProjectsLocationsLakesContentitemsListCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsListCall {
 19006  	c.ctx_ = ctx
 19007  	return c
 19008  }
 19009  
 19010  // Header returns a http.Header that can be modified by the caller to add
 19011  // headers to the request.
 19012  func (c *ProjectsLocationsLakesContentitemsListCall) Header() http.Header {
 19013  	if c.header_ == nil {
 19014  		c.header_ = make(http.Header)
 19015  	}
 19016  	return c.header_
 19017  }
 19018  
 19019  func (c *ProjectsLocationsLakesContentitemsListCall) doRequest(alt string) (*http.Response, error) {
 19020  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19021  	if c.ifNoneMatch_ != "" {
 19022  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19023  	}
 19024  	var body io.Reader = nil
 19025  	c.urlParams_.Set("alt", alt)
 19026  	c.urlParams_.Set("prettyPrint", "false")
 19027  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contentitems")
 19028  	urls += "?" + c.urlParams_.Encode()
 19029  	req, err := http.NewRequest("GET", urls, body)
 19030  	if err != nil {
 19031  		return nil, err
 19032  	}
 19033  	req.Header = reqHeaders
 19034  	googleapi.Expand(req.URL, map[string]string{
 19035  		"parent": c.parent,
 19036  	})
 19037  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19038  }
 19039  
 19040  // Do executes the "dataplex.projects.locations.lakes.contentitems.list" call.
 19041  // Any non-2xx status code is an error. Response headers are in either
 19042  // *GoogleCloudDataplexV1ListContentResponse.ServerResponse.Header or (if a
 19043  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19044  // googleapi.IsNotModified to check whether the returned error was because
 19045  // http.StatusNotModified was returned.
 19046  func (c *ProjectsLocationsLakesContentitemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListContentResponse, error) {
 19047  	gensupport.SetOptions(c.urlParams_, opts...)
 19048  	res, err := c.doRequest("json")
 19049  	if res != nil && res.StatusCode == http.StatusNotModified {
 19050  		if res.Body != nil {
 19051  			res.Body.Close()
 19052  		}
 19053  		return nil, gensupport.WrapError(&googleapi.Error{
 19054  			Code:   res.StatusCode,
 19055  			Header: res.Header,
 19056  		})
 19057  	}
 19058  	if err != nil {
 19059  		return nil, err
 19060  	}
 19061  	defer googleapi.CloseBody(res)
 19062  	if err := googleapi.CheckResponse(res); err != nil {
 19063  		return nil, gensupport.WrapError(err)
 19064  	}
 19065  	ret := &GoogleCloudDataplexV1ListContentResponse{
 19066  		ServerResponse: googleapi.ServerResponse{
 19067  			Header:         res.Header,
 19068  			HTTPStatusCode: res.StatusCode,
 19069  		},
 19070  	}
 19071  	target := &ret
 19072  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19073  		return nil, err
 19074  	}
 19075  	return ret, nil
 19076  }
 19077  
 19078  // Pages invokes f for each page of results.
 19079  // A non-nil error returned from f will halt the iteration.
 19080  // The provided context supersedes any context provided to the Context method.
 19081  func (c *ProjectsLocationsLakesContentitemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListContentResponse) error) error {
 19082  	c.ctx_ = ctx
 19083  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19084  	for {
 19085  		x, err := c.Do()
 19086  		if err != nil {
 19087  			return err
 19088  		}
 19089  		if err := f(x); err != nil {
 19090  			return err
 19091  		}
 19092  		if x.NextPageToken == "" {
 19093  			return nil
 19094  		}
 19095  		c.PageToken(x.NextPageToken)
 19096  	}
 19097  }
 19098  
 19099  type ProjectsLocationsLakesContentitemsPatchCall struct {
 19100  	s                            *Service
 19101  	name                         string
 19102  	googleclouddataplexv1content *GoogleCloudDataplexV1Content
 19103  	urlParams_                   gensupport.URLParams
 19104  	ctx_                         context.Context
 19105  	header_                      http.Header
 19106  }
 19107  
 19108  // Patch: Update a content. Only supports full resource update.
 19109  //
 19110  //   - name: Output only. The relative resource name of the content, of the form:
 19111  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{cont
 19112  //     ent_id}.
 19113  func (r *ProjectsLocationsLakesContentitemsService) Patch(name string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentitemsPatchCall {
 19114  	c := &ProjectsLocationsLakesContentitemsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19115  	c.name = name
 19116  	c.googleclouddataplexv1content = googleclouddataplexv1content
 19117  	return c
 19118  }
 19119  
 19120  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 19121  // fields to update.
 19122  func (c *ProjectsLocationsLakesContentitemsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesContentitemsPatchCall {
 19123  	c.urlParams_.Set("updateMask", updateMask)
 19124  	return c
 19125  }
 19126  
 19127  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 19128  // request, but do not perform mutations. The default is false.
 19129  func (c *ProjectsLocationsLakesContentitemsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentitemsPatchCall {
 19130  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 19131  	return c
 19132  }
 19133  
 19134  // Fields allows partial responses to be retrieved. See
 19135  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19136  // details.
 19137  func (c *ProjectsLocationsLakesContentitemsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsPatchCall {
 19138  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19139  	return c
 19140  }
 19141  
 19142  // Context sets the context to be used in this call's Do method.
 19143  func (c *ProjectsLocationsLakesContentitemsPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsPatchCall {
 19144  	c.ctx_ = ctx
 19145  	return c
 19146  }
 19147  
 19148  // Header returns a http.Header that can be modified by the caller to add
 19149  // headers to the request.
 19150  func (c *ProjectsLocationsLakesContentitemsPatchCall) Header() http.Header {
 19151  	if c.header_ == nil {
 19152  		c.header_ = make(http.Header)
 19153  	}
 19154  	return c.header_
 19155  }
 19156  
 19157  func (c *ProjectsLocationsLakesContentitemsPatchCall) doRequest(alt string) (*http.Response, error) {
 19158  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19159  	var body io.Reader = nil
 19160  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
 19161  	if err != nil {
 19162  		return nil, err
 19163  	}
 19164  	c.urlParams_.Set("alt", alt)
 19165  	c.urlParams_.Set("prettyPrint", "false")
 19166  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19167  	urls += "?" + c.urlParams_.Encode()
 19168  	req, err := http.NewRequest("PATCH", urls, body)
 19169  	if err != nil {
 19170  		return nil, err
 19171  	}
 19172  	req.Header = reqHeaders
 19173  	googleapi.Expand(req.URL, map[string]string{
 19174  		"name": c.name,
 19175  	})
 19176  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19177  }
 19178  
 19179  // Do executes the "dataplex.projects.locations.lakes.contentitems.patch" call.
 19180  // Any non-2xx status code is an error. Response headers are in either
 19181  // *GoogleCloudDataplexV1Content.ServerResponse.Header or (if a response was
 19182  // returned at all) in error.(*googleapi.Error).Header. Use
 19183  // googleapi.IsNotModified to check whether the returned error was because
 19184  // http.StatusNotModified was returned.
 19185  func (c *ProjectsLocationsLakesContentitemsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
 19186  	gensupport.SetOptions(c.urlParams_, opts...)
 19187  	res, err := c.doRequest("json")
 19188  	if res != nil && res.StatusCode == http.StatusNotModified {
 19189  		if res.Body != nil {
 19190  			res.Body.Close()
 19191  		}
 19192  		return nil, gensupport.WrapError(&googleapi.Error{
 19193  			Code:   res.StatusCode,
 19194  			Header: res.Header,
 19195  		})
 19196  	}
 19197  	if err != nil {
 19198  		return nil, err
 19199  	}
 19200  	defer googleapi.CloseBody(res)
 19201  	if err := googleapi.CheckResponse(res); err != nil {
 19202  		return nil, gensupport.WrapError(err)
 19203  	}
 19204  	ret := &GoogleCloudDataplexV1Content{
 19205  		ServerResponse: googleapi.ServerResponse{
 19206  			Header:         res.Header,
 19207  			HTTPStatusCode: res.StatusCode,
 19208  		},
 19209  	}
 19210  	target := &ret
 19211  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19212  		return nil, err
 19213  	}
 19214  	return ret, nil
 19215  }
 19216  
 19217  type ProjectsLocationsLakesContentitemsSetIamPolicyCall struct {
 19218  	s                              *Service
 19219  	resource                       string
 19220  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 19221  	urlParams_                     gensupport.URLParams
 19222  	ctx_                           context.Context
 19223  	header_                        http.Header
 19224  }
 19225  
 19226  // SetIamPolicy: Sets the access control policy on the specified contentitem
 19227  // resource. Replaces any existing policy.Caller must have Google IAM
 19228  // dataplex.content.setIamPolicy permission on the resource.
 19229  //
 19230  //   - resource: REQUIRED: The resource for which the policy is being specified.
 19231  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 19232  //     for the appropriate value for this field.
 19233  func (r *ProjectsLocationsLakesContentitemsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesContentitemsSetIamPolicyCall {
 19234  	c := &ProjectsLocationsLakesContentitemsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19235  	c.resource = resource
 19236  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 19237  	return c
 19238  }
 19239  
 19240  // Fields allows partial responses to be retrieved. See
 19241  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19242  // details.
 19243  func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsSetIamPolicyCall {
 19244  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19245  	return c
 19246  }
 19247  
 19248  // Context sets the context to be used in this call's Do method.
 19249  func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsSetIamPolicyCall {
 19250  	c.ctx_ = ctx
 19251  	return c
 19252  }
 19253  
 19254  // Header returns a http.Header that can be modified by the caller to add
 19255  // headers to the request.
 19256  func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Header() http.Header {
 19257  	if c.header_ == nil {
 19258  		c.header_ = make(http.Header)
 19259  	}
 19260  	return c.header_
 19261  }
 19262  
 19263  func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 19264  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19265  	var body io.Reader = nil
 19266  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 19267  	if err != nil {
 19268  		return nil, err
 19269  	}
 19270  	c.urlParams_.Set("alt", alt)
 19271  	c.urlParams_.Set("prettyPrint", "false")
 19272  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 19273  	urls += "?" + c.urlParams_.Encode()
 19274  	req, err := http.NewRequest("POST", urls, body)
 19275  	if err != nil {
 19276  		return nil, err
 19277  	}
 19278  	req.Header = reqHeaders
 19279  	googleapi.Expand(req.URL, map[string]string{
 19280  		"resource": c.resource,
 19281  	})
 19282  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19283  }
 19284  
 19285  // Do executes the "dataplex.projects.locations.lakes.contentitems.setIamPolicy" call.
 19286  // Any non-2xx status code is an error. Response headers are in either
 19287  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 19288  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19289  // check whether the returned error was because http.StatusNotModified was
 19290  // returned.
 19291  func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 19292  	gensupport.SetOptions(c.urlParams_, opts...)
 19293  	res, err := c.doRequest("json")
 19294  	if res != nil && res.StatusCode == http.StatusNotModified {
 19295  		if res.Body != nil {
 19296  			res.Body.Close()
 19297  		}
 19298  		return nil, gensupport.WrapError(&googleapi.Error{
 19299  			Code:   res.StatusCode,
 19300  			Header: res.Header,
 19301  		})
 19302  	}
 19303  	if err != nil {
 19304  		return nil, err
 19305  	}
 19306  	defer googleapi.CloseBody(res)
 19307  	if err := googleapi.CheckResponse(res); err != nil {
 19308  		return nil, gensupport.WrapError(err)
 19309  	}
 19310  	ret := &GoogleIamV1Policy{
 19311  		ServerResponse: googleapi.ServerResponse{
 19312  			Header:         res.Header,
 19313  			HTTPStatusCode: res.StatusCode,
 19314  		},
 19315  	}
 19316  	target := &ret
 19317  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19318  		return nil, err
 19319  	}
 19320  	return ret, nil
 19321  }
 19322  
 19323  type ProjectsLocationsLakesContentitemsTestIamPermissionsCall struct {
 19324  	s                                    *Service
 19325  	resource                             string
 19326  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 19327  	urlParams_                           gensupport.URLParams
 19328  	ctx_                                 context.Context
 19329  	header_                              http.Header
 19330  }
 19331  
 19332  // TestIamPermissions: Returns the caller's permissions on a resource. If the
 19333  // resource does not exist, an empty set of permissions is returned (a
 19334  // NOT_FOUND error is not returned).A caller is not required to have Google IAM
 19335  // permission to make this request.Note: This operation is designed to be used
 19336  // for building permission-aware UIs and command-line tools, not for
 19337  // authorization checking. This operation may "fail open" without warning.
 19338  //
 19339  //   - resource: REQUIRED: The resource for which the policy detail is being
 19340  //     requested. See Resource names
 19341  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 19342  //     value for this field.
 19343  func (r *ProjectsLocationsLakesContentitemsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesContentitemsTestIamPermissionsCall {
 19344  	c := &ProjectsLocationsLakesContentitemsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19345  	c.resource = resource
 19346  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 19347  	return c
 19348  }
 19349  
 19350  // Fields allows partial responses to be retrieved. See
 19351  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19352  // details.
 19353  func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsTestIamPermissionsCall {
 19354  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19355  	return c
 19356  }
 19357  
 19358  // Context sets the context to be used in this call's Do method.
 19359  func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsTestIamPermissionsCall {
 19360  	c.ctx_ = ctx
 19361  	return c
 19362  }
 19363  
 19364  // Header returns a http.Header that can be modified by the caller to add
 19365  // headers to the request.
 19366  func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Header() http.Header {
 19367  	if c.header_ == nil {
 19368  		c.header_ = make(http.Header)
 19369  	}
 19370  	return c.header_
 19371  }
 19372  
 19373  func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 19374  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19375  	var body io.Reader = nil
 19376  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 19377  	if err != nil {
 19378  		return nil, err
 19379  	}
 19380  	c.urlParams_.Set("alt", alt)
 19381  	c.urlParams_.Set("prettyPrint", "false")
 19382  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 19383  	urls += "?" + c.urlParams_.Encode()
 19384  	req, err := http.NewRequest("POST", urls, body)
 19385  	if err != nil {
 19386  		return nil, err
 19387  	}
 19388  	req.Header = reqHeaders
 19389  	googleapi.Expand(req.URL, map[string]string{
 19390  		"resource": c.resource,
 19391  	})
 19392  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19393  }
 19394  
 19395  // Do executes the "dataplex.projects.locations.lakes.contentitems.testIamPermissions" call.
 19396  // Any non-2xx status code is an error. Response headers are in either
 19397  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 19398  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19399  // googleapi.IsNotModified to check whether the returned error was because
 19400  // http.StatusNotModified was returned.
 19401  func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 19402  	gensupport.SetOptions(c.urlParams_, opts...)
 19403  	res, err := c.doRequest("json")
 19404  	if res != nil && res.StatusCode == http.StatusNotModified {
 19405  		if res.Body != nil {
 19406  			res.Body.Close()
 19407  		}
 19408  		return nil, gensupport.WrapError(&googleapi.Error{
 19409  			Code:   res.StatusCode,
 19410  			Header: res.Header,
 19411  		})
 19412  	}
 19413  	if err != nil {
 19414  		return nil, err
 19415  	}
 19416  	defer googleapi.CloseBody(res)
 19417  	if err := googleapi.CheckResponse(res); err != nil {
 19418  		return nil, gensupport.WrapError(err)
 19419  	}
 19420  	ret := &GoogleIamV1TestIamPermissionsResponse{
 19421  		ServerResponse: googleapi.ServerResponse{
 19422  			Header:         res.Header,
 19423  			HTTPStatusCode: res.StatusCode,
 19424  		},
 19425  	}
 19426  	target := &ret
 19427  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19428  		return nil, err
 19429  	}
 19430  	return ret, nil
 19431  }
 19432  
 19433  type ProjectsLocationsLakesEnvironmentsCreateCall struct {
 19434  	s                                *Service
 19435  	parent                           string
 19436  	googleclouddataplexv1environment *GoogleCloudDataplexV1Environment
 19437  	urlParams_                       gensupport.URLParams
 19438  	ctx_                             context.Context
 19439  	header_                          http.Header
 19440  }
 19441  
 19442  // Create: Create an environment resource.
 19443  //
 19444  //   - parent: The resource name of the parent lake:
 19445  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}.
 19446  func (r *ProjectsLocationsLakesEnvironmentsService) Create(parent string, googleclouddataplexv1environment *GoogleCloudDataplexV1Environment) *ProjectsLocationsLakesEnvironmentsCreateCall {
 19447  	c := &ProjectsLocationsLakesEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19448  	c.parent = parent
 19449  	c.googleclouddataplexv1environment = googleclouddataplexv1environment
 19450  	return c
 19451  }
 19452  
 19453  // EnvironmentId sets the optional parameter "environmentId": Required.
 19454  // Environment identifier. * Must contain only lowercase letters, numbers and
 19455  // hyphens. * Must start with a letter. * Must be between 1-63 characters. *
 19456  // Must end with a number or a letter. * Must be unique within the lake.
 19457  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsLakesEnvironmentsCreateCall {
 19458  	c.urlParams_.Set("environmentId", environmentId)
 19459  	return c
 19460  }
 19461  
 19462  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 19463  // request, but do not perform mutations. The default is false.
 19464  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesEnvironmentsCreateCall {
 19465  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 19466  	return c
 19467  }
 19468  
 19469  // Fields allows partial responses to be retrieved. See
 19470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19471  // details.
 19472  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsCreateCall {
 19473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19474  	return c
 19475  }
 19476  
 19477  // Context sets the context to be used in this call's Do method.
 19478  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsCreateCall {
 19479  	c.ctx_ = ctx
 19480  	return c
 19481  }
 19482  
 19483  // Header returns a http.Header that can be modified by the caller to add
 19484  // headers to the request.
 19485  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Header() http.Header {
 19486  	if c.header_ == nil {
 19487  		c.header_ = make(http.Header)
 19488  	}
 19489  	return c.header_
 19490  }
 19491  
 19492  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
 19493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19494  	var body io.Reader = nil
 19495  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1environment)
 19496  	if err != nil {
 19497  		return nil, err
 19498  	}
 19499  	c.urlParams_.Set("alt", alt)
 19500  	c.urlParams_.Set("prettyPrint", "false")
 19501  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
 19502  	urls += "?" + c.urlParams_.Encode()
 19503  	req, err := http.NewRequest("POST", urls, body)
 19504  	if err != nil {
 19505  		return nil, err
 19506  	}
 19507  	req.Header = reqHeaders
 19508  	googleapi.Expand(req.URL, map[string]string{
 19509  		"parent": c.parent,
 19510  	})
 19511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19512  }
 19513  
 19514  // Do executes the "dataplex.projects.locations.lakes.environments.create" call.
 19515  // Any non-2xx status code is an error. Response headers are in either
 19516  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19517  // returned at all) in error.(*googleapi.Error).Header. Use
 19518  // googleapi.IsNotModified to check whether the returned error was because
 19519  // http.StatusNotModified was returned.
 19520  func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19521  	gensupport.SetOptions(c.urlParams_, opts...)
 19522  	res, err := c.doRequest("json")
 19523  	if res != nil && res.StatusCode == http.StatusNotModified {
 19524  		if res.Body != nil {
 19525  			res.Body.Close()
 19526  		}
 19527  		return nil, gensupport.WrapError(&googleapi.Error{
 19528  			Code:   res.StatusCode,
 19529  			Header: res.Header,
 19530  		})
 19531  	}
 19532  	if err != nil {
 19533  		return nil, err
 19534  	}
 19535  	defer googleapi.CloseBody(res)
 19536  	if err := googleapi.CheckResponse(res); err != nil {
 19537  		return nil, gensupport.WrapError(err)
 19538  	}
 19539  	ret := &GoogleLongrunningOperation{
 19540  		ServerResponse: googleapi.ServerResponse{
 19541  			Header:         res.Header,
 19542  			HTTPStatusCode: res.StatusCode,
 19543  		},
 19544  	}
 19545  	target := &ret
 19546  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19547  		return nil, err
 19548  	}
 19549  	return ret, nil
 19550  }
 19551  
 19552  type ProjectsLocationsLakesEnvironmentsDeleteCall struct {
 19553  	s          *Service
 19554  	name       string
 19555  	urlParams_ gensupport.URLParams
 19556  	ctx_       context.Context
 19557  	header_    http.Header
 19558  }
 19559  
 19560  // Delete: Delete the environment resource. All the child resources must have
 19561  // been deleted before environment deletion can be initiated.
 19562  //
 19563  //   - name: The resource name of the environment:
 19564  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/
 19565  //     {environment_id}.
 19566  func (r *ProjectsLocationsLakesEnvironmentsService) Delete(name string) *ProjectsLocationsLakesEnvironmentsDeleteCall {
 19567  	c := &ProjectsLocationsLakesEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19568  	c.name = name
 19569  	return c
 19570  }
 19571  
 19572  // Fields allows partial responses to be retrieved. See
 19573  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19574  // details.
 19575  func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsDeleteCall {
 19576  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19577  	return c
 19578  }
 19579  
 19580  // Context sets the context to be used in this call's Do method.
 19581  func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsDeleteCall {
 19582  	c.ctx_ = ctx
 19583  	return c
 19584  }
 19585  
 19586  // Header returns a http.Header that can be modified by the caller to add
 19587  // headers to the request.
 19588  func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Header() http.Header {
 19589  	if c.header_ == nil {
 19590  		c.header_ = make(http.Header)
 19591  	}
 19592  	return c.header_
 19593  }
 19594  
 19595  func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19596  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19597  	var body io.Reader = nil
 19598  	c.urlParams_.Set("alt", alt)
 19599  	c.urlParams_.Set("prettyPrint", "false")
 19600  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19601  	urls += "?" + c.urlParams_.Encode()
 19602  	req, err := http.NewRequest("DELETE", urls, body)
 19603  	if err != nil {
 19604  		return nil, err
 19605  	}
 19606  	req.Header = reqHeaders
 19607  	googleapi.Expand(req.URL, map[string]string{
 19608  		"name": c.name,
 19609  	})
 19610  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19611  }
 19612  
 19613  // Do executes the "dataplex.projects.locations.lakes.environments.delete" call.
 19614  // Any non-2xx status code is an error. Response headers are in either
 19615  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19616  // returned at all) in error.(*googleapi.Error).Header. Use
 19617  // googleapi.IsNotModified to check whether the returned error was because
 19618  // http.StatusNotModified was returned.
 19619  func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19620  	gensupport.SetOptions(c.urlParams_, opts...)
 19621  	res, err := c.doRequest("json")
 19622  	if res != nil && res.StatusCode == http.StatusNotModified {
 19623  		if res.Body != nil {
 19624  			res.Body.Close()
 19625  		}
 19626  		return nil, gensupport.WrapError(&googleapi.Error{
 19627  			Code:   res.StatusCode,
 19628  			Header: res.Header,
 19629  		})
 19630  	}
 19631  	if err != nil {
 19632  		return nil, err
 19633  	}
 19634  	defer googleapi.CloseBody(res)
 19635  	if err := googleapi.CheckResponse(res); err != nil {
 19636  		return nil, gensupport.WrapError(err)
 19637  	}
 19638  	ret := &GoogleLongrunningOperation{
 19639  		ServerResponse: googleapi.ServerResponse{
 19640  			Header:         res.Header,
 19641  			HTTPStatusCode: res.StatusCode,
 19642  		},
 19643  	}
 19644  	target := &ret
 19645  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19646  		return nil, err
 19647  	}
 19648  	return ret, nil
 19649  }
 19650  
 19651  type ProjectsLocationsLakesEnvironmentsGetCall struct {
 19652  	s            *Service
 19653  	name         string
 19654  	urlParams_   gensupport.URLParams
 19655  	ifNoneMatch_ string
 19656  	ctx_         context.Context
 19657  	header_      http.Header
 19658  }
 19659  
 19660  // Get: Get environment resource.
 19661  //
 19662  //   - name: The resource name of the environment:
 19663  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environments/
 19664  //     {environment_id}.
 19665  func (r *ProjectsLocationsLakesEnvironmentsService) Get(name string) *ProjectsLocationsLakesEnvironmentsGetCall {
 19666  	c := &ProjectsLocationsLakesEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19667  	c.name = name
 19668  	return c
 19669  }
 19670  
 19671  // Fields allows partial responses to be retrieved. See
 19672  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19673  // details.
 19674  func (c *ProjectsLocationsLakesEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsGetCall {
 19675  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19676  	return c
 19677  }
 19678  
 19679  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19680  // object's ETag matches the given value. This is useful for getting updates
 19681  // only after the object has changed since the last request.
 19682  func (c *ProjectsLocationsLakesEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsGetCall {
 19683  	c.ifNoneMatch_ = entityTag
 19684  	return c
 19685  }
 19686  
 19687  // Context sets the context to be used in this call's Do method.
 19688  func (c *ProjectsLocationsLakesEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsGetCall {
 19689  	c.ctx_ = ctx
 19690  	return c
 19691  }
 19692  
 19693  // Header returns a http.Header that can be modified by the caller to add
 19694  // headers to the request.
 19695  func (c *ProjectsLocationsLakesEnvironmentsGetCall) Header() http.Header {
 19696  	if c.header_ == nil {
 19697  		c.header_ = make(http.Header)
 19698  	}
 19699  	return c.header_
 19700  }
 19701  
 19702  func (c *ProjectsLocationsLakesEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
 19703  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19704  	if c.ifNoneMatch_ != "" {
 19705  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19706  	}
 19707  	var body io.Reader = nil
 19708  	c.urlParams_.Set("alt", alt)
 19709  	c.urlParams_.Set("prettyPrint", "false")
 19710  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 19711  	urls += "?" + c.urlParams_.Encode()
 19712  	req, err := http.NewRequest("GET", urls, body)
 19713  	if err != nil {
 19714  		return nil, err
 19715  	}
 19716  	req.Header = reqHeaders
 19717  	googleapi.Expand(req.URL, map[string]string{
 19718  		"name": c.name,
 19719  	})
 19720  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19721  }
 19722  
 19723  // Do executes the "dataplex.projects.locations.lakes.environments.get" call.
 19724  // Any non-2xx status code is an error. Response headers are in either
 19725  // *GoogleCloudDataplexV1Environment.ServerResponse.Header or (if a response
 19726  // was returned at all) in error.(*googleapi.Error).Header. Use
 19727  // googleapi.IsNotModified to check whether the returned error was because
 19728  // http.StatusNotModified was returned.
 19729  func (c *ProjectsLocationsLakesEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Environment, error) {
 19730  	gensupport.SetOptions(c.urlParams_, opts...)
 19731  	res, err := c.doRequest("json")
 19732  	if res != nil && res.StatusCode == http.StatusNotModified {
 19733  		if res.Body != nil {
 19734  			res.Body.Close()
 19735  		}
 19736  		return nil, gensupport.WrapError(&googleapi.Error{
 19737  			Code:   res.StatusCode,
 19738  			Header: res.Header,
 19739  		})
 19740  	}
 19741  	if err != nil {
 19742  		return nil, err
 19743  	}
 19744  	defer googleapi.CloseBody(res)
 19745  	if err := googleapi.CheckResponse(res); err != nil {
 19746  		return nil, gensupport.WrapError(err)
 19747  	}
 19748  	ret := &GoogleCloudDataplexV1Environment{
 19749  		ServerResponse: googleapi.ServerResponse{
 19750  			Header:         res.Header,
 19751  			HTTPStatusCode: res.StatusCode,
 19752  		},
 19753  	}
 19754  	target := &ret
 19755  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19756  		return nil, err
 19757  	}
 19758  	return ret, nil
 19759  }
 19760  
 19761  type ProjectsLocationsLakesEnvironmentsGetIamPolicyCall struct {
 19762  	s            *Service
 19763  	resource     string
 19764  	urlParams_   gensupport.URLParams
 19765  	ifNoneMatch_ string
 19766  	ctx_         context.Context
 19767  	header_      http.Header
 19768  }
 19769  
 19770  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 19771  // empty policy if the resource exists and does not have a policy set.
 19772  //
 19773  //   - resource: REQUIRED: The resource for which the policy is being requested.
 19774  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 19775  //     for the appropriate value for this field.
 19776  func (r *ProjectsLocationsLakesEnvironmentsService) GetIamPolicy(resource string) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
 19777  	c := &ProjectsLocationsLakesEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19778  	c.resource = resource
 19779  	return c
 19780  }
 19781  
 19782  // OptionsRequestedPolicyVersion sets the optional parameter
 19783  // "options.requestedPolicyVersion": The maximum policy version that will be
 19784  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 19785  // an invalid value will be rejected.Requests for policies with any conditional
 19786  // role bindings must specify version 3. Policies with no conditional role
 19787  // bindings may specify any valid value or leave the field unset.The policy in
 19788  // the response might use the policy version that you specified, or it might
 19789  // use a lower policy version. For example, if you specify version 3, but the
 19790  // policy has no conditional role bindings, the response uses version 1.To
 19791  // learn which resources support conditions in their IAM policies, see the IAM
 19792  // documentation
 19793  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 19794  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
 19795  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 19796  	return c
 19797  }
 19798  
 19799  // Fields allows partial responses to be retrieved. See
 19800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19801  // details.
 19802  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
 19803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19804  	return c
 19805  }
 19806  
 19807  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19808  // object's ETag matches the given value. This is useful for getting updates
 19809  // only after the object has changed since the last request.
 19810  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
 19811  	c.ifNoneMatch_ = entityTag
 19812  	return c
 19813  }
 19814  
 19815  // Context sets the context to be used in this call's Do method.
 19816  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
 19817  	c.ctx_ = ctx
 19818  	return c
 19819  }
 19820  
 19821  // Header returns a http.Header that can be modified by the caller to add
 19822  // headers to the request.
 19823  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Header() http.Header {
 19824  	if c.header_ == nil {
 19825  		c.header_ = make(http.Header)
 19826  	}
 19827  	return c.header_
 19828  }
 19829  
 19830  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 19831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19832  	if c.ifNoneMatch_ != "" {
 19833  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19834  	}
 19835  	var body io.Reader = nil
 19836  	c.urlParams_.Set("alt", alt)
 19837  	c.urlParams_.Set("prettyPrint", "false")
 19838  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 19839  	urls += "?" + c.urlParams_.Encode()
 19840  	req, err := http.NewRequest("GET", urls, body)
 19841  	if err != nil {
 19842  		return nil, err
 19843  	}
 19844  	req.Header = reqHeaders
 19845  	googleapi.Expand(req.URL, map[string]string{
 19846  		"resource": c.resource,
 19847  	})
 19848  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19849  }
 19850  
 19851  // Do executes the "dataplex.projects.locations.lakes.environments.getIamPolicy" call.
 19852  // Any non-2xx status code is an error. Response headers are in either
 19853  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 19854  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19855  // check whether the returned error was because http.StatusNotModified was
 19856  // returned.
 19857  func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 19858  	gensupport.SetOptions(c.urlParams_, opts...)
 19859  	res, err := c.doRequest("json")
 19860  	if res != nil && res.StatusCode == http.StatusNotModified {
 19861  		if res.Body != nil {
 19862  			res.Body.Close()
 19863  		}
 19864  		return nil, gensupport.WrapError(&googleapi.Error{
 19865  			Code:   res.StatusCode,
 19866  			Header: res.Header,
 19867  		})
 19868  	}
 19869  	if err != nil {
 19870  		return nil, err
 19871  	}
 19872  	defer googleapi.CloseBody(res)
 19873  	if err := googleapi.CheckResponse(res); err != nil {
 19874  		return nil, gensupport.WrapError(err)
 19875  	}
 19876  	ret := &GoogleIamV1Policy{
 19877  		ServerResponse: googleapi.ServerResponse{
 19878  			Header:         res.Header,
 19879  			HTTPStatusCode: res.StatusCode,
 19880  		},
 19881  	}
 19882  	target := &ret
 19883  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19884  		return nil, err
 19885  	}
 19886  	return ret, nil
 19887  }
 19888  
 19889  type ProjectsLocationsLakesEnvironmentsListCall struct {
 19890  	s            *Service
 19891  	parent       string
 19892  	urlParams_   gensupport.URLParams
 19893  	ifNoneMatch_ string
 19894  	ctx_         context.Context
 19895  	header_      http.Header
 19896  }
 19897  
 19898  // List: Lists environments under the given lake.
 19899  //
 19900  //   - parent: The resource name of the parent lake:
 19901  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}.
 19902  func (r *ProjectsLocationsLakesEnvironmentsService) List(parent string) *ProjectsLocationsLakesEnvironmentsListCall {
 19903  	c := &ProjectsLocationsLakesEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19904  	c.parent = parent
 19905  	return c
 19906  }
 19907  
 19908  // Filter sets the optional parameter "filter": Filter request.
 19909  func (c *ProjectsLocationsLakesEnvironmentsListCall) Filter(filter string) *ProjectsLocationsLakesEnvironmentsListCall {
 19910  	c.urlParams_.Set("filter", filter)
 19911  	return c
 19912  }
 19913  
 19914  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 19915  // result.
 19916  func (c *ProjectsLocationsLakesEnvironmentsListCall) OrderBy(orderBy string) *ProjectsLocationsLakesEnvironmentsListCall {
 19917  	c.urlParams_.Set("orderBy", orderBy)
 19918  	return c
 19919  }
 19920  
 19921  // PageSize sets the optional parameter "pageSize": Maximum number of
 19922  // environments to return. The service may return fewer than this value. If
 19923  // unspecified, at most 10 environments will be returned. The maximum value is
 19924  // 1000; values above 1000 will be coerced to 1000.
 19925  func (c *ProjectsLocationsLakesEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesEnvironmentsListCall {
 19926  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19927  	return c
 19928  }
 19929  
 19930  // PageToken sets the optional parameter "pageToken": Page token received from
 19931  // a previous ListEnvironments call. Provide this to retrieve the subsequent
 19932  // page. When paginating, all other parameters provided to ListEnvironments
 19933  // must match the call that provided the page token.
 19934  func (c *ProjectsLocationsLakesEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsLakesEnvironmentsListCall {
 19935  	c.urlParams_.Set("pageToken", pageToken)
 19936  	return c
 19937  }
 19938  
 19939  // Fields allows partial responses to be retrieved. See
 19940  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19941  // details.
 19942  func (c *ProjectsLocationsLakesEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsListCall {
 19943  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19944  	return c
 19945  }
 19946  
 19947  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19948  // object's ETag matches the given value. This is useful for getting updates
 19949  // only after the object has changed since the last request.
 19950  func (c *ProjectsLocationsLakesEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsListCall {
 19951  	c.ifNoneMatch_ = entityTag
 19952  	return c
 19953  }
 19954  
 19955  // Context sets the context to be used in this call's Do method.
 19956  func (c *ProjectsLocationsLakesEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsListCall {
 19957  	c.ctx_ = ctx
 19958  	return c
 19959  }
 19960  
 19961  // Header returns a http.Header that can be modified by the caller to add
 19962  // headers to the request.
 19963  func (c *ProjectsLocationsLakesEnvironmentsListCall) Header() http.Header {
 19964  	if c.header_ == nil {
 19965  		c.header_ = make(http.Header)
 19966  	}
 19967  	return c.header_
 19968  }
 19969  
 19970  func (c *ProjectsLocationsLakesEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
 19971  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19972  	if c.ifNoneMatch_ != "" {
 19973  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19974  	}
 19975  	var body io.Reader = nil
 19976  	c.urlParams_.Set("alt", alt)
 19977  	c.urlParams_.Set("prettyPrint", "false")
 19978  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
 19979  	urls += "?" + c.urlParams_.Encode()
 19980  	req, err := http.NewRequest("GET", urls, body)
 19981  	if err != nil {
 19982  		return nil, err
 19983  	}
 19984  	req.Header = reqHeaders
 19985  	googleapi.Expand(req.URL, map[string]string{
 19986  		"parent": c.parent,
 19987  	})
 19988  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19989  }
 19990  
 19991  // Do executes the "dataplex.projects.locations.lakes.environments.list" call.
 19992  // Any non-2xx status code is an error. Response headers are in either
 19993  // *GoogleCloudDataplexV1ListEnvironmentsResponse.ServerResponse.Header or (if
 19994  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 19995  // googleapi.IsNotModified to check whether the returned error was because
 19996  // http.StatusNotModified was returned.
 19997  func (c *ProjectsLocationsLakesEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEnvironmentsResponse, error) {
 19998  	gensupport.SetOptions(c.urlParams_, opts...)
 19999  	res, err := c.doRequest("json")
 20000  	if res != nil && res.StatusCode == http.StatusNotModified {
 20001  		if res.Body != nil {
 20002  			res.Body.Close()
 20003  		}
 20004  		return nil, gensupport.WrapError(&googleapi.Error{
 20005  			Code:   res.StatusCode,
 20006  			Header: res.Header,
 20007  		})
 20008  	}
 20009  	if err != nil {
 20010  		return nil, err
 20011  	}
 20012  	defer googleapi.CloseBody(res)
 20013  	if err := googleapi.CheckResponse(res); err != nil {
 20014  		return nil, gensupport.WrapError(err)
 20015  	}
 20016  	ret := &GoogleCloudDataplexV1ListEnvironmentsResponse{
 20017  		ServerResponse: googleapi.ServerResponse{
 20018  			Header:         res.Header,
 20019  			HTTPStatusCode: res.StatusCode,
 20020  		},
 20021  	}
 20022  	target := &ret
 20023  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20024  		return nil, err
 20025  	}
 20026  	return ret, nil
 20027  }
 20028  
 20029  // Pages invokes f for each page of results.
 20030  // A non-nil error returned from f will halt the iteration.
 20031  // The provided context supersedes any context provided to the Context method.
 20032  func (c *ProjectsLocationsLakesEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEnvironmentsResponse) error) error {
 20033  	c.ctx_ = ctx
 20034  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20035  	for {
 20036  		x, err := c.Do()
 20037  		if err != nil {
 20038  			return err
 20039  		}
 20040  		if err := f(x); err != nil {
 20041  			return err
 20042  		}
 20043  		if x.NextPageToken == "" {
 20044  			return nil
 20045  		}
 20046  		c.PageToken(x.NextPageToken)
 20047  	}
 20048  }
 20049  
 20050  type ProjectsLocationsLakesEnvironmentsPatchCall struct {
 20051  	s                                *Service
 20052  	name                             string
 20053  	googleclouddataplexv1environment *GoogleCloudDataplexV1Environment
 20054  	urlParams_                       gensupport.URLParams
 20055  	ctx_                             context.Context
 20056  	header_                          http.Header
 20057  }
 20058  
 20059  // Patch: Update the environment resource.
 20060  //
 20061  //   - name: Output only. The relative resource name of the environment, of the
 20062  //     form:
 20063  //     projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{
 20064  //     environment_id}.
 20065  func (r *ProjectsLocationsLakesEnvironmentsService) Patch(name string, googleclouddataplexv1environment *GoogleCloudDataplexV1Environment) *ProjectsLocationsLakesEnvironmentsPatchCall {
 20066  	c := &ProjectsLocationsLakesEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20067  	c.name = name
 20068  	c.googleclouddataplexv1environment = googleclouddataplexv1environment
 20069  	return c
 20070  }
 20071  
 20072  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 20073  // fields to update.
 20074  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesEnvironmentsPatchCall {
 20075  	c.urlParams_.Set("updateMask", updateMask)
 20076  	return c
 20077  }
 20078  
 20079  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 20080  // request, but do not perform mutations. The default is false.
 20081  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesEnvironmentsPatchCall {
 20082  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 20083  	return c
 20084  }
 20085  
 20086  // Fields allows partial responses to be retrieved. See
 20087  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20088  // details.
 20089  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsPatchCall {
 20090  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20091  	return c
 20092  }
 20093  
 20094  // Context sets the context to be used in this call's Do method.
 20095  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsPatchCall {
 20096  	c.ctx_ = ctx
 20097  	return c
 20098  }
 20099  
 20100  // Header returns a http.Header that can be modified by the caller to add
 20101  // headers to the request.
 20102  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Header() http.Header {
 20103  	if c.header_ == nil {
 20104  		c.header_ = make(http.Header)
 20105  	}
 20106  	return c.header_
 20107  }
 20108  
 20109  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
 20110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20111  	var body io.Reader = nil
 20112  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1environment)
 20113  	if err != nil {
 20114  		return nil, err
 20115  	}
 20116  	c.urlParams_.Set("alt", alt)
 20117  	c.urlParams_.Set("prettyPrint", "false")
 20118  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20119  	urls += "?" + c.urlParams_.Encode()
 20120  	req, err := http.NewRequest("PATCH", urls, body)
 20121  	if err != nil {
 20122  		return nil, err
 20123  	}
 20124  	req.Header = reqHeaders
 20125  	googleapi.Expand(req.URL, map[string]string{
 20126  		"name": c.name,
 20127  	})
 20128  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20129  }
 20130  
 20131  // Do executes the "dataplex.projects.locations.lakes.environments.patch" call.
 20132  // Any non-2xx status code is an error. Response headers are in either
 20133  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20134  // returned at all) in error.(*googleapi.Error).Header. Use
 20135  // googleapi.IsNotModified to check whether the returned error was because
 20136  // http.StatusNotModified was returned.
 20137  func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20138  	gensupport.SetOptions(c.urlParams_, opts...)
 20139  	res, err := c.doRequest("json")
 20140  	if res != nil && res.StatusCode == http.StatusNotModified {
 20141  		if res.Body != nil {
 20142  			res.Body.Close()
 20143  		}
 20144  		return nil, gensupport.WrapError(&googleapi.Error{
 20145  			Code:   res.StatusCode,
 20146  			Header: res.Header,
 20147  		})
 20148  	}
 20149  	if err != nil {
 20150  		return nil, err
 20151  	}
 20152  	defer googleapi.CloseBody(res)
 20153  	if err := googleapi.CheckResponse(res); err != nil {
 20154  		return nil, gensupport.WrapError(err)
 20155  	}
 20156  	ret := &GoogleLongrunningOperation{
 20157  		ServerResponse: googleapi.ServerResponse{
 20158  			Header:         res.Header,
 20159  			HTTPStatusCode: res.StatusCode,
 20160  		},
 20161  	}
 20162  	target := &ret
 20163  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20164  		return nil, err
 20165  	}
 20166  	return ret, nil
 20167  }
 20168  
 20169  type ProjectsLocationsLakesEnvironmentsSetIamPolicyCall struct {
 20170  	s                              *Service
 20171  	resource                       string
 20172  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 20173  	urlParams_                     gensupport.URLParams
 20174  	ctx_                           context.Context
 20175  	header_                        http.Header
 20176  }
 20177  
 20178  // SetIamPolicy: Sets the access control policy on the specified resource.
 20179  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 20180  // PERMISSION_DENIED errors.
 20181  //
 20182  //   - resource: REQUIRED: The resource for which the policy is being specified.
 20183  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 20184  //     for the appropriate value for this field.
 20185  func (r *ProjectsLocationsLakesEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall {
 20186  	c := &ProjectsLocationsLakesEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20187  	c.resource = resource
 20188  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 20189  	return c
 20190  }
 20191  
 20192  // Fields allows partial responses to be retrieved. See
 20193  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20194  // details.
 20195  func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall {
 20196  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20197  	return c
 20198  }
 20199  
 20200  // Context sets the context to be used in this call's Do method.
 20201  func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall {
 20202  	c.ctx_ = ctx
 20203  	return c
 20204  }
 20205  
 20206  // Header returns a http.Header that can be modified by the caller to add
 20207  // headers to the request.
 20208  func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Header() http.Header {
 20209  	if c.header_ == nil {
 20210  		c.header_ = make(http.Header)
 20211  	}
 20212  	return c.header_
 20213  }
 20214  
 20215  func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 20216  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20217  	var body io.Reader = nil
 20218  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 20219  	if err != nil {
 20220  		return nil, err
 20221  	}
 20222  	c.urlParams_.Set("alt", alt)
 20223  	c.urlParams_.Set("prettyPrint", "false")
 20224  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 20225  	urls += "?" + c.urlParams_.Encode()
 20226  	req, err := http.NewRequest("POST", urls, body)
 20227  	if err != nil {
 20228  		return nil, err
 20229  	}
 20230  	req.Header = reqHeaders
 20231  	googleapi.Expand(req.URL, map[string]string{
 20232  		"resource": c.resource,
 20233  	})
 20234  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20235  }
 20236  
 20237  // Do executes the "dataplex.projects.locations.lakes.environments.setIamPolicy" call.
 20238  // Any non-2xx status code is an error. Response headers are in either
 20239  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 20240  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20241  // check whether the returned error was because http.StatusNotModified was
 20242  // returned.
 20243  func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 20244  	gensupport.SetOptions(c.urlParams_, opts...)
 20245  	res, err := c.doRequest("json")
 20246  	if res != nil && res.StatusCode == http.StatusNotModified {
 20247  		if res.Body != nil {
 20248  			res.Body.Close()
 20249  		}
 20250  		return nil, gensupport.WrapError(&googleapi.Error{
 20251  			Code:   res.StatusCode,
 20252  			Header: res.Header,
 20253  		})
 20254  	}
 20255  	if err != nil {
 20256  		return nil, err
 20257  	}
 20258  	defer googleapi.CloseBody(res)
 20259  	if err := googleapi.CheckResponse(res); err != nil {
 20260  		return nil, gensupport.WrapError(err)
 20261  	}
 20262  	ret := &GoogleIamV1Policy{
 20263  		ServerResponse: googleapi.ServerResponse{
 20264  			Header:         res.Header,
 20265  			HTTPStatusCode: res.StatusCode,
 20266  		},
 20267  	}
 20268  	target := &ret
 20269  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20270  		return nil, err
 20271  	}
 20272  	return ret, nil
 20273  }
 20274  
 20275  type ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall struct {
 20276  	s                                    *Service
 20277  	resource                             string
 20278  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 20279  	urlParams_                           gensupport.URLParams
 20280  	ctx_                                 context.Context
 20281  	header_                              http.Header
 20282  }
 20283  
 20284  // TestIamPermissions: Returns permissions that a caller has on the specified
 20285  // resource. If the resource does not exist, this will return an empty set of
 20286  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 20287  // used for building permission-aware UIs and command-line tools, not for
 20288  // authorization checking. This operation may "fail open" without warning.
 20289  //
 20290  //   - resource: REQUIRED: The resource for which the policy detail is being
 20291  //     requested. See Resource names
 20292  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 20293  //     value for this field.
 20294  func (r *ProjectsLocationsLakesEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall {
 20295  	c := &ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20296  	c.resource = resource
 20297  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 20298  	return c
 20299  }
 20300  
 20301  // Fields allows partial responses to be retrieved. See
 20302  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20303  // details.
 20304  func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall {
 20305  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20306  	return c
 20307  }
 20308  
 20309  // Context sets the context to be used in this call's Do method.
 20310  func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall {
 20311  	c.ctx_ = ctx
 20312  	return c
 20313  }
 20314  
 20315  // Header returns a http.Header that can be modified by the caller to add
 20316  // headers to the request.
 20317  func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Header() http.Header {
 20318  	if c.header_ == nil {
 20319  		c.header_ = make(http.Header)
 20320  	}
 20321  	return c.header_
 20322  }
 20323  
 20324  func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 20325  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20326  	var body io.Reader = nil
 20327  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 20328  	if err != nil {
 20329  		return nil, err
 20330  	}
 20331  	c.urlParams_.Set("alt", alt)
 20332  	c.urlParams_.Set("prettyPrint", "false")
 20333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 20334  	urls += "?" + c.urlParams_.Encode()
 20335  	req, err := http.NewRequest("POST", urls, body)
 20336  	if err != nil {
 20337  		return nil, err
 20338  	}
 20339  	req.Header = reqHeaders
 20340  	googleapi.Expand(req.URL, map[string]string{
 20341  		"resource": c.resource,
 20342  	})
 20343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20344  }
 20345  
 20346  // Do executes the "dataplex.projects.locations.lakes.environments.testIamPermissions" call.
 20347  // Any non-2xx status code is an error. Response headers are in either
 20348  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 20349  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20350  // googleapi.IsNotModified to check whether the returned error was because
 20351  // http.StatusNotModified was returned.
 20352  func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 20353  	gensupport.SetOptions(c.urlParams_, opts...)
 20354  	res, err := c.doRequest("json")
 20355  	if res != nil && res.StatusCode == http.StatusNotModified {
 20356  		if res.Body != nil {
 20357  			res.Body.Close()
 20358  		}
 20359  		return nil, gensupport.WrapError(&googleapi.Error{
 20360  			Code:   res.StatusCode,
 20361  			Header: res.Header,
 20362  		})
 20363  	}
 20364  	if err != nil {
 20365  		return nil, err
 20366  	}
 20367  	defer googleapi.CloseBody(res)
 20368  	if err := googleapi.CheckResponse(res); err != nil {
 20369  		return nil, gensupport.WrapError(err)
 20370  	}
 20371  	ret := &GoogleIamV1TestIamPermissionsResponse{
 20372  		ServerResponse: googleapi.ServerResponse{
 20373  			Header:         res.Header,
 20374  			HTTPStatusCode: res.StatusCode,
 20375  		},
 20376  	}
 20377  	target := &ret
 20378  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20379  		return nil, err
 20380  	}
 20381  	return ret, nil
 20382  }
 20383  
 20384  type ProjectsLocationsLakesEnvironmentsSessionsListCall struct {
 20385  	s            *Service
 20386  	parent       string
 20387  	urlParams_   gensupport.URLParams
 20388  	ifNoneMatch_ string
 20389  	ctx_         context.Context
 20390  	header_      http.Header
 20391  }
 20392  
 20393  // List: Lists session resources in an environment.
 20394  //
 20395  //   - parent: The resource name of the parent environment:
 20396  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/environme
 20397  //     nt/{environment_id}.
 20398  func (r *ProjectsLocationsLakesEnvironmentsSessionsService) List(parent string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20399  	c := &ProjectsLocationsLakesEnvironmentsSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20400  	c.parent = parent
 20401  	return c
 20402  }
 20403  
 20404  // Filter sets the optional parameter "filter": Filter request. The following
 20405  // mode filter is supported to return only the sessions belonging to the
 20406  // requester when the mode is USER and return sessions of all the users when
 20407  // the mode is ADMIN. When no filter is sent default to USER mode. NOTE: When
 20408  // the mode is ADMIN, the requester should have
 20409  // dataplex.environments.listAllSessions permission to list all sessions, in
 20410  // absence of the permission, the request fails.mode = ADMIN | USER
 20411  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Filter(filter string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20412  	c.urlParams_.Set("filter", filter)
 20413  	return c
 20414  }
 20415  
 20416  // PageSize sets the optional parameter "pageSize": Maximum number of sessions
 20417  // to return. The service may return fewer than this value. If unspecified, at
 20418  // most 10 sessions will be returned. The maximum value is 1000; values above
 20419  // 1000 will be coerced to 1000.
 20420  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20421  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20422  	return c
 20423  }
 20424  
 20425  // PageToken sets the optional parameter "pageToken": Page token received from
 20426  // a previous ListSessions call. Provide this to retrieve the subsequent page.
 20427  // When paginating, all other parameters provided to ListSessions must match
 20428  // the call that provided the page token.
 20429  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20430  	c.urlParams_.Set("pageToken", pageToken)
 20431  	return c
 20432  }
 20433  
 20434  // Fields allows partial responses to be retrieved. See
 20435  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20436  // details.
 20437  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20438  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20439  	return c
 20440  }
 20441  
 20442  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20443  // object's ETag matches the given value. This is useful for getting updates
 20444  // only after the object has changed since the last request.
 20445  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20446  	c.ifNoneMatch_ = entityTag
 20447  	return c
 20448  }
 20449  
 20450  // Context sets the context to be used in this call's Do method.
 20451  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
 20452  	c.ctx_ = ctx
 20453  	return c
 20454  }
 20455  
 20456  // Header returns a http.Header that can be modified by the caller to add
 20457  // headers to the request.
 20458  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Header() http.Header {
 20459  	if c.header_ == nil {
 20460  		c.header_ = make(http.Header)
 20461  	}
 20462  	return c.header_
 20463  }
 20464  
 20465  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) doRequest(alt string) (*http.Response, error) {
 20466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20467  	if c.ifNoneMatch_ != "" {
 20468  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20469  	}
 20470  	var body io.Reader = nil
 20471  	c.urlParams_.Set("alt", alt)
 20472  	c.urlParams_.Set("prettyPrint", "false")
 20473  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessions")
 20474  	urls += "?" + c.urlParams_.Encode()
 20475  	req, err := http.NewRequest("GET", urls, body)
 20476  	if err != nil {
 20477  		return nil, err
 20478  	}
 20479  	req.Header = reqHeaders
 20480  	googleapi.Expand(req.URL, map[string]string{
 20481  		"parent": c.parent,
 20482  	})
 20483  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20484  }
 20485  
 20486  // Do executes the "dataplex.projects.locations.lakes.environments.sessions.list" call.
 20487  // Any non-2xx status code is an error. Response headers are in either
 20488  // *GoogleCloudDataplexV1ListSessionsResponse.ServerResponse.Header or (if a
 20489  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20490  // googleapi.IsNotModified to check whether the returned error was because
 20491  // http.StatusNotModified was returned.
 20492  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListSessionsResponse, error) {
 20493  	gensupport.SetOptions(c.urlParams_, opts...)
 20494  	res, err := c.doRequest("json")
 20495  	if res != nil && res.StatusCode == http.StatusNotModified {
 20496  		if res.Body != nil {
 20497  			res.Body.Close()
 20498  		}
 20499  		return nil, gensupport.WrapError(&googleapi.Error{
 20500  			Code:   res.StatusCode,
 20501  			Header: res.Header,
 20502  		})
 20503  	}
 20504  	if err != nil {
 20505  		return nil, err
 20506  	}
 20507  	defer googleapi.CloseBody(res)
 20508  	if err := googleapi.CheckResponse(res); err != nil {
 20509  		return nil, gensupport.WrapError(err)
 20510  	}
 20511  	ret := &GoogleCloudDataplexV1ListSessionsResponse{
 20512  		ServerResponse: googleapi.ServerResponse{
 20513  			Header:         res.Header,
 20514  			HTTPStatusCode: res.StatusCode,
 20515  		},
 20516  	}
 20517  	target := &ret
 20518  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20519  		return nil, err
 20520  	}
 20521  	return ret, nil
 20522  }
 20523  
 20524  // Pages invokes f for each page of results.
 20525  // A non-nil error returned from f will halt the iteration.
 20526  // The provided context supersedes any context provided to the Context method.
 20527  func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListSessionsResponse) error) error {
 20528  	c.ctx_ = ctx
 20529  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20530  	for {
 20531  		x, err := c.Do()
 20532  		if err != nil {
 20533  			return err
 20534  		}
 20535  		if err := f(x); err != nil {
 20536  			return err
 20537  		}
 20538  		if x.NextPageToken == "" {
 20539  			return nil
 20540  		}
 20541  		c.PageToken(x.NextPageToken)
 20542  	}
 20543  }
 20544  
 20545  type ProjectsLocationsLakesTasksCreateCall struct {
 20546  	s                         *Service
 20547  	parent                    string
 20548  	googleclouddataplexv1task *GoogleCloudDataplexV1Task
 20549  	urlParams_                gensupport.URLParams
 20550  	ctx_                      context.Context
 20551  	header_                   http.Header
 20552  }
 20553  
 20554  // Create: Creates a task resource within a lake.
 20555  //
 20556  //   - parent: The resource name of the parent lake:
 20557  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 20558  func (r *ProjectsLocationsLakesTasksService) Create(parent string, googleclouddataplexv1task *GoogleCloudDataplexV1Task) *ProjectsLocationsLakesTasksCreateCall {
 20559  	c := &ProjectsLocationsLakesTasksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20560  	c.parent = parent
 20561  	c.googleclouddataplexv1task = googleclouddataplexv1task
 20562  	return c
 20563  }
 20564  
 20565  // TaskId sets the optional parameter "taskId": Required. Task identifier.
 20566  func (c *ProjectsLocationsLakesTasksCreateCall) TaskId(taskId string) *ProjectsLocationsLakesTasksCreateCall {
 20567  	c.urlParams_.Set("taskId", taskId)
 20568  	return c
 20569  }
 20570  
 20571  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 20572  // request, but do not perform mutations. The default is false.
 20573  func (c *ProjectsLocationsLakesTasksCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesTasksCreateCall {
 20574  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 20575  	return c
 20576  }
 20577  
 20578  // Fields allows partial responses to be retrieved. See
 20579  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20580  // details.
 20581  func (c *ProjectsLocationsLakesTasksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksCreateCall {
 20582  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20583  	return c
 20584  }
 20585  
 20586  // Context sets the context to be used in this call's Do method.
 20587  func (c *ProjectsLocationsLakesTasksCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksCreateCall {
 20588  	c.ctx_ = ctx
 20589  	return c
 20590  }
 20591  
 20592  // Header returns a http.Header that can be modified by the caller to add
 20593  // headers to the request.
 20594  func (c *ProjectsLocationsLakesTasksCreateCall) Header() http.Header {
 20595  	if c.header_ == nil {
 20596  		c.header_ = make(http.Header)
 20597  	}
 20598  	return c.header_
 20599  }
 20600  
 20601  func (c *ProjectsLocationsLakesTasksCreateCall) doRequest(alt string) (*http.Response, error) {
 20602  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20603  	var body io.Reader = nil
 20604  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1task)
 20605  	if err != nil {
 20606  		return nil, err
 20607  	}
 20608  	c.urlParams_.Set("alt", alt)
 20609  	c.urlParams_.Set("prettyPrint", "false")
 20610  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tasks")
 20611  	urls += "?" + c.urlParams_.Encode()
 20612  	req, err := http.NewRequest("POST", urls, body)
 20613  	if err != nil {
 20614  		return nil, err
 20615  	}
 20616  	req.Header = reqHeaders
 20617  	googleapi.Expand(req.URL, map[string]string{
 20618  		"parent": c.parent,
 20619  	})
 20620  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20621  }
 20622  
 20623  // Do executes the "dataplex.projects.locations.lakes.tasks.create" call.
 20624  // Any non-2xx status code is an error. Response headers are in either
 20625  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20626  // returned at all) in error.(*googleapi.Error).Header. Use
 20627  // googleapi.IsNotModified to check whether the returned error was because
 20628  // http.StatusNotModified was returned.
 20629  func (c *ProjectsLocationsLakesTasksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20630  	gensupport.SetOptions(c.urlParams_, opts...)
 20631  	res, err := c.doRequest("json")
 20632  	if res != nil && res.StatusCode == http.StatusNotModified {
 20633  		if res.Body != nil {
 20634  			res.Body.Close()
 20635  		}
 20636  		return nil, gensupport.WrapError(&googleapi.Error{
 20637  			Code:   res.StatusCode,
 20638  			Header: res.Header,
 20639  		})
 20640  	}
 20641  	if err != nil {
 20642  		return nil, err
 20643  	}
 20644  	defer googleapi.CloseBody(res)
 20645  	if err := googleapi.CheckResponse(res); err != nil {
 20646  		return nil, gensupport.WrapError(err)
 20647  	}
 20648  	ret := &GoogleLongrunningOperation{
 20649  		ServerResponse: googleapi.ServerResponse{
 20650  			Header:         res.Header,
 20651  			HTTPStatusCode: res.StatusCode,
 20652  		},
 20653  	}
 20654  	target := &ret
 20655  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20656  		return nil, err
 20657  	}
 20658  	return ret, nil
 20659  }
 20660  
 20661  type ProjectsLocationsLakesTasksDeleteCall struct {
 20662  	s          *Service
 20663  	name       string
 20664  	urlParams_ gensupport.URLParams
 20665  	ctx_       context.Context
 20666  	header_    http.Header
 20667  }
 20668  
 20669  // Delete: Delete the task resource.
 20670  //
 20671  //   - name: The resource name of the task:
 20672  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{tas
 20673  //     k_id}.
 20674  func (r *ProjectsLocationsLakesTasksService) Delete(name string) *ProjectsLocationsLakesTasksDeleteCall {
 20675  	c := &ProjectsLocationsLakesTasksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20676  	c.name = name
 20677  	return c
 20678  }
 20679  
 20680  // Fields allows partial responses to be retrieved. See
 20681  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20682  // details.
 20683  func (c *ProjectsLocationsLakesTasksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksDeleteCall {
 20684  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20685  	return c
 20686  }
 20687  
 20688  // Context sets the context to be used in this call's Do method.
 20689  func (c *ProjectsLocationsLakesTasksDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksDeleteCall {
 20690  	c.ctx_ = ctx
 20691  	return c
 20692  }
 20693  
 20694  // Header returns a http.Header that can be modified by the caller to add
 20695  // headers to the request.
 20696  func (c *ProjectsLocationsLakesTasksDeleteCall) Header() http.Header {
 20697  	if c.header_ == nil {
 20698  		c.header_ = make(http.Header)
 20699  	}
 20700  	return c.header_
 20701  }
 20702  
 20703  func (c *ProjectsLocationsLakesTasksDeleteCall) doRequest(alt string) (*http.Response, error) {
 20704  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20705  	var body io.Reader = nil
 20706  	c.urlParams_.Set("alt", alt)
 20707  	c.urlParams_.Set("prettyPrint", "false")
 20708  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20709  	urls += "?" + c.urlParams_.Encode()
 20710  	req, err := http.NewRequest("DELETE", urls, body)
 20711  	if err != nil {
 20712  		return nil, err
 20713  	}
 20714  	req.Header = reqHeaders
 20715  	googleapi.Expand(req.URL, map[string]string{
 20716  		"name": c.name,
 20717  	})
 20718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20719  }
 20720  
 20721  // Do executes the "dataplex.projects.locations.lakes.tasks.delete" call.
 20722  // Any non-2xx status code is an error. Response headers are in either
 20723  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20724  // returned at all) in error.(*googleapi.Error).Header. Use
 20725  // googleapi.IsNotModified to check whether the returned error was because
 20726  // http.StatusNotModified was returned.
 20727  func (c *ProjectsLocationsLakesTasksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20728  	gensupport.SetOptions(c.urlParams_, opts...)
 20729  	res, err := c.doRequest("json")
 20730  	if res != nil && res.StatusCode == http.StatusNotModified {
 20731  		if res.Body != nil {
 20732  			res.Body.Close()
 20733  		}
 20734  		return nil, gensupport.WrapError(&googleapi.Error{
 20735  			Code:   res.StatusCode,
 20736  			Header: res.Header,
 20737  		})
 20738  	}
 20739  	if err != nil {
 20740  		return nil, err
 20741  	}
 20742  	defer googleapi.CloseBody(res)
 20743  	if err := googleapi.CheckResponse(res); err != nil {
 20744  		return nil, gensupport.WrapError(err)
 20745  	}
 20746  	ret := &GoogleLongrunningOperation{
 20747  		ServerResponse: googleapi.ServerResponse{
 20748  			Header:         res.Header,
 20749  			HTTPStatusCode: res.StatusCode,
 20750  		},
 20751  	}
 20752  	target := &ret
 20753  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20754  		return nil, err
 20755  	}
 20756  	return ret, nil
 20757  }
 20758  
 20759  type ProjectsLocationsLakesTasksGetCall struct {
 20760  	s            *Service
 20761  	name         string
 20762  	urlParams_   gensupport.URLParams
 20763  	ifNoneMatch_ string
 20764  	ctx_         context.Context
 20765  	header_      http.Header
 20766  }
 20767  
 20768  // Get: Get task resource.
 20769  //
 20770  //   - name: The resource name of the task:
 20771  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{ta
 20772  //     sks_id}.
 20773  func (r *ProjectsLocationsLakesTasksService) Get(name string) *ProjectsLocationsLakesTasksGetCall {
 20774  	c := &ProjectsLocationsLakesTasksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20775  	c.name = name
 20776  	return c
 20777  }
 20778  
 20779  // Fields allows partial responses to be retrieved. See
 20780  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20781  // details.
 20782  func (c *ProjectsLocationsLakesTasksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksGetCall {
 20783  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20784  	return c
 20785  }
 20786  
 20787  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20788  // object's ETag matches the given value. This is useful for getting updates
 20789  // only after the object has changed since the last request.
 20790  func (c *ProjectsLocationsLakesTasksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksGetCall {
 20791  	c.ifNoneMatch_ = entityTag
 20792  	return c
 20793  }
 20794  
 20795  // Context sets the context to be used in this call's Do method.
 20796  func (c *ProjectsLocationsLakesTasksGetCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksGetCall {
 20797  	c.ctx_ = ctx
 20798  	return c
 20799  }
 20800  
 20801  // Header returns a http.Header that can be modified by the caller to add
 20802  // headers to the request.
 20803  func (c *ProjectsLocationsLakesTasksGetCall) Header() http.Header {
 20804  	if c.header_ == nil {
 20805  		c.header_ = make(http.Header)
 20806  	}
 20807  	return c.header_
 20808  }
 20809  
 20810  func (c *ProjectsLocationsLakesTasksGetCall) doRequest(alt string) (*http.Response, error) {
 20811  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20812  	if c.ifNoneMatch_ != "" {
 20813  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20814  	}
 20815  	var body io.Reader = nil
 20816  	c.urlParams_.Set("alt", alt)
 20817  	c.urlParams_.Set("prettyPrint", "false")
 20818  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 20819  	urls += "?" + c.urlParams_.Encode()
 20820  	req, err := http.NewRequest("GET", urls, body)
 20821  	if err != nil {
 20822  		return nil, err
 20823  	}
 20824  	req.Header = reqHeaders
 20825  	googleapi.Expand(req.URL, map[string]string{
 20826  		"name": c.name,
 20827  	})
 20828  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20829  }
 20830  
 20831  // Do executes the "dataplex.projects.locations.lakes.tasks.get" call.
 20832  // Any non-2xx status code is an error. Response headers are in either
 20833  // *GoogleCloudDataplexV1Task.ServerResponse.Header or (if a response was
 20834  // returned at all) in error.(*googleapi.Error).Header. Use
 20835  // googleapi.IsNotModified to check whether the returned error was because
 20836  // http.StatusNotModified was returned.
 20837  func (c *ProjectsLocationsLakesTasksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Task, error) {
 20838  	gensupport.SetOptions(c.urlParams_, opts...)
 20839  	res, err := c.doRequest("json")
 20840  	if res != nil && res.StatusCode == http.StatusNotModified {
 20841  		if res.Body != nil {
 20842  			res.Body.Close()
 20843  		}
 20844  		return nil, gensupport.WrapError(&googleapi.Error{
 20845  			Code:   res.StatusCode,
 20846  			Header: res.Header,
 20847  		})
 20848  	}
 20849  	if err != nil {
 20850  		return nil, err
 20851  	}
 20852  	defer googleapi.CloseBody(res)
 20853  	if err := googleapi.CheckResponse(res); err != nil {
 20854  		return nil, gensupport.WrapError(err)
 20855  	}
 20856  	ret := &GoogleCloudDataplexV1Task{
 20857  		ServerResponse: googleapi.ServerResponse{
 20858  			Header:         res.Header,
 20859  			HTTPStatusCode: res.StatusCode,
 20860  		},
 20861  	}
 20862  	target := &ret
 20863  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20864  		return nil, err
 20865  	}
 20866  	return ret, nil
 20867  }
 20868  
 20869  type ProjectsLocationsLakesTasksGetIamPolicyCall struct {
 20870  	s            *Service
 20871  	resource     string
 20872  	urlParams_   gensupport.URLParams
 20873  	ifNoneMatch_ string
 20874  	ctx_         context.Context
 20875  	header_      http.Header
 20876  }
 20877  
 20878  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 20879  // empty policy if the resource exists and does not have a policy set.
 20880  //
 20881  //   - resource: REQUIRED: The resource for which the policy is being requested.
 20882  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 20883  //     for the appropriate value for this field.
 20884  func (r *ProjectsLocationsLakesTasksService) GetIamPolicy(resource string) *ProjectsLocationsLakesTasksGetIamPolicyCall {
 20885  	c := &ProjectsLocationsLakesTasksGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20886  	c.resource = resource
 20887  	return c
 20888  }
 20889  
 20890  // OptionsRequestedPolicyVersion sets the optional parameter
 20891  // "options.requestedPolicyVersion": The maximum policy version that will be
 20892  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 20893  // an invalid value will be rejected.Requests for policies with any conditional
 20894  // role bindings must specify version 3. Policies with no conditional role
 20895  // bindings may specify any valid value or leave the field unset.The policy in
 20896  // the response might use the policy version that you specified, or it might
 20897  // use a lower policy version. For example, if you specify version 3, but the
 20898  // policy has no conditional role bindings, the response uses version 1.To
 20899  // learn which resources support conditions in their IAM policies, see the IAM
 20900  // documentation
 20901  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 20902  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesTasksGetIamPolicyCall {
 20903  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 20904  	return c
 20905  }
 20906  
 20907  // Fields allows partial responses to be retrieved. See
 20908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20909  // details.
 20910  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksGetIamPolicyCall {
 20911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20912  	return c
 20913  }
 20914  
 20915  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20916  // object's ETag matches the given value. This is useful for getting updates
 20917  // only after the object has changed since the last request.
 20918  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksGetIamPolicyCall {
 20919  	c.ifNoneMatch_ = entityTag
 20920  	return c
 20921  }
 20922  
 20923  // Context sets the context to be used in this call's Do method.
 20924  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksGetIamPolicyCall {
 20925  	c.ctx_ = ctx
 20926  	return c
 20927  }
 20928  
 20929  // Header returns a http.Header that can be modified by the caller to add
 20930  // headers to the request.
 20931  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Header() http.Header {
 20932  	if c.header_ == nil {
 20933  		c.header_ = make(http.Header)
 20934  	}
 20935  	return c.header_
 20936  }
 20937  
 20938  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 20939  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20940  	if c.ifNoneMatch_ != "" {
 20941  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20942  	}
 20943  	var body io.Reader = nil
 20944  	c.urlParams_.Set("alt", alt)
 20945  	c.urlParams_.Set("prettyPrint", "false")
 20946  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 20947  	urls += "?" + c.urlParams_.Encode()
 20948  	req, err := http.NewRequest("GET", urls, body)
 20949  	if err != nil {
 20950  		return nil, err
 20951  	}
 20952  	req.Header = reqHeaders
 20953  	googleapi.Expand(req.URL, map[string]string{
 20954  		"resource": c.resource,
 20955  	})
 20956  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20957  }
 20958  
 20959  // Do executes the "dataplex.projects.locations.lakes.tasks.getIamPolicy" call.
 20960  // Any non-2xx status code is an error. Response headers are in either
 20961  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 20962  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20963  // check whether the returned error was because http.StatusNotModified was
 20964  // returned.
 20965  func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 20966  	gensupport.SetOptions(c.urlParams_, opts...)
 20967  	res, err := c.doRequest("json")
 20968  	if res != nil && res.StatusCode == http.StatusNotModified {
 20969  		if res.Body != nil {
 20970  			res.Body.Close()
 20971  		}
 20972  		return nil, gensupport.WrapError(&googleapi.Error{
 20973  			Code:   res.StatusCode,
 20974  			Header: res.Header,
 20975  		})
 20976  	}
 20977  	if err != nil {
 20978  		return nil, err
 20979  	}
 20980  	defer googleapi.CloseBody(res)
 20981  	if err := googleapi.CheckResponse(res); err != nil {
 20982  		return nil, gensupport.WrapError(err)
 20983  	}
 20984  	ret := &GoogleIamV1Policy{
 20985  		ServerResponse: googleapi.ServerResponse{
 20986  			Header:         res.Header,
 20987  			HTTPStatusCode: res.StatusCode,
 20988  		},
 20989  	}
 20990  	target := &ret
 20991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20992  		return nil, err
 20993  	}
 20994  	return ret, nil
 20995  }
 20996  
 20997  type ProjectsLocationsLakesTasksListCall struct {
 20998  	s            *Service
 20999  	parent       string
 21000  	urlParams_   gensupport.URLParams
 21001  	ifNoneMatch_ string
 21002  	ctx_         context.Context
 21003  	header_      http.Header
 21004  }
 21005  
 21006  // List: Lists tasks under the given lake.
 21007  //
 21008  //   - parent: The resource name of the parent lake:
 21009  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 21010  func (r *ProjectsLocationsLakesTasksService) List(parent string) *ProjectsLocationsLakesTasksListCall {
 21011  	c := &ProjectsLocationsLakesTasksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21012  	c.parent = parent
 21013  	return c
 21014  }
 21015  
 21016  // Filter sets the optional parameter "filter": Filter request.
 21017  func (c *ProjectsLocationsLakesTasksListCall) Filter(filter string) *ProjectsLocationsLakesTasksListCall {
 21018  	c.urlParams_.Set("filter", filter)
 21019  	return c
 21020  }
 21021  
 21022  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 21023  // result.
 21024  func (c *ProjectsLocationsLakesTasksListCall) OrderBy(orderBy string) *ProjectsLocationsLakesTasksListCall {
 21025  	c.urlParams_.Set("orderBy", orderBy)
 21026  	return c
 21027  }
 21028  
 21029  // PageSize sets the optional parameter "pageSize": Maximum number of tasks to
 21030  // return. The service may return fewer than this value. If unspecified, at
 21031  // most 10 tasks will be returned. The maximum value is 1000; values above 1000
 21032  // will be coerced to 1000.
 21033  func (c *ProjectsLocationsLakesTasksListCall) PageSize(pageSize int64) *ProjectsLocationsLakesTasksListCall {
 21034  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21035  	return c
 21036  }
 21037  
 21038  // PageToken sets the optional parameter "pageToken": Page token received from
 21039  // a previous ListZones call. Provide this to retrieve the subsequent page.
 21040  // When paginating, all other parameters provided to ListZones must match the
 21041  // call that provided the page token.
 21042  func (c *ProjectsLocationsLakesTasksListCall) PageToken(pageToken string) *ProjectsLocationsLakesTasksListCall {
 21043  	c.urlParams_.Set("pageToken", pageToken)
 21044  	return c
 21045  }
 21046  
 21047  // Fields allows partial responses to be retrieved. See
 21048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21049  // details.
 21050  func (c *ProjectsLocationsLakesTasksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksListCall {
 21051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21052  	return c
 21053  }
 21054  
 21055  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21056  // object's ETag matches the given value. This is useful for getting updates
 21057  // only after the object has changed since the last request.
 21058  func (c *ProjectsLocationsLakesTasksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksListCall {
 21059  	c.ifNoneMatch_ = entityTag
 21060  	return c
 21061  }
 21062  
 21063  // Context sets the context to be used in this call's Do method.
 21064  func (c *ProjectsLocationsLakesTasksListCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksListCall {
 21065  	c.ctx_ = ctx
 21066  	return c
 21067  }
 21068  
 21069  // Header returns a http.Header that can be modified by the caller to add
 21070  // headers to the request.
 21071  func (c *ProjectsLocationsLakesTasksListCall) Header() http.Header {
 21072  	if c.header_ == nil {
 21073  		c.header_ = make(http.Header)
 21074  	}
 21075  	return c.header_
 21076  }
 21077  
 21078  func (c *ProjectsLocationsLakesTasksListCall) doRequest(alt string) (*http.Response, error) {
 21079  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21080  	if c.ifNoneMatch_ != "" {
 21081  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21082  	}
 21083  	var body io.Reader = nil
 21084  	c.urlParams_.Set("alt", alt)
 21085  	c.urlParams_.Set("prettyPrint", "false")
 21086  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tasks")
 21087  	urls += "?" + c.urlParams_.Encode()
 21088  	req, err := http.NewRequest("GET", urls, body)
 21089  	if err != nil {
 21090  		return nil, err
 21091  	}
 21092  	req.Header = reqHeaders
 21093  	googleapi.Expand(req.URL, map[string]string{
 21094  		"parent": c.parent,
 21095  	})
 21096  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21097  }
 21098  
 21099  // Do executes the "dataplex.projects.locations.lakes.tasks.list" call.
 21100  // Any non-2xx status code is an error. Response headers are in either
 21101  // *GoogleCloudDataplexV1ListTasksResponse.ServerResponse.Header or (if a
 21102  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21103  // googleapi.IsNotModified to check whether the returned error was because
 21104  // http.StatusNotModified was returned.
 21105  func (c *ProjectsLocationsLakesTasksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListTasksResponse, error) {
 21106  	gensupport.SetOptions(c.urlParams_, opts...)
 21107  	res, err := c.doRequest("json")
 21108  	if res != nil && res.StatusCode == http.StatusNotModified {
 21109  		if res.Body != nil {
 21110  			res.Body.Close()
 21111  		}
 21112  		return nil, gensupport.WrapError(&googleapi.Error{
 21113  			Code:   res.StatusCode,
 21114  			Header: res.Header,
 21115  		})
 21116  	}
 21117  	if err != nil {
 21118  		return nil, err
 21119  	}
 21120  	defer googleapi.CloseBody(res)
 21121  	if err := googleapi.CheckResponse(res); err != nil {
 21122  		return nil, gensupport.WrapError(err)
 21123  	}
 21124  	ret := &GoogleCloudDataplexV1ListTasksResponse{
 21125  		ServerResponse: googleapi.ServerResponse{
 21126  			Header:         res.Header,
 21127  			HTTPStatusCode: res.StatusCode,
 21128  		},
 21129  	}
 21130  	target := &ret
 21131  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21132  		return nil, err
 21133  	}
 21134  	return ret, nil
 21135  }
 21136  
 21137  // Pages invokes f for each page of results.
 21138  // A non-nil error returned from f will halt the iteration.
 21139  // The provided context supersedes any context provided to the Context method.
 21140  func (c *ProjectsLocationsLakesTasksListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListTasksResponse) error) error {
 21141  	c.ctx_ = ctx
 21142  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21143  	for {
 21144  		x, err := c.Do()
 21145  		if err != nil {
 21146  			return err
 21147  		}
 21148  		if err := f(x); err != nil {
 21149  			return err
 21150  		}
 21151  		if x.NextPageToken == "" {
 21152  			return nil
 21153  		}
 21154  		c.PageToken(x.NextPageToken)
 21155  	}
 21156  }
 21157  
 21158  type ProjectsLocationsLakesTasksPatchCall struct {
 21159  	s                         *Service
 21160  	name                      string
 21161  	googleclouddataplexv1task *GoogleCloudDataplexV1Task
 21162  	urlParams_                gensupport.URLParams
 21163  	ctx_                      context.Context
 21164  	header_                   http.Header
 21165  }
 21166  
 21167  // Patch: Update the task resource.
 21168  //
 21169  //   - name: Output only. The relative resource name of the task, of the form:
 21170  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
 21171  //     tasks/{task_id}.
 21172  func (r *ProjectsLocationsLakesTasksService) Patch(name string, googleclouddataplexv1task *GoogleCloudDataplexV1Task) *ProjectsLocationsLakesTasksPatchCall {
 21173  	c := &ProjectsLocationsLakesTasksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21174  	c.name = name
 21175  	c.googleclouddataplexv1task = googleclouddataplexv1task
 21176  	return c
 21177  }
 21178  
 21179  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 21180  // fields to update.
 21181  func (c *ProjectsLocationsLakesTasksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesTasksPatchCall {
 21182  	c.urlParams_.Set("updateMask", updateMask)
 21183  	return c
 21184  }
 21185  
 21186  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 21187  // request, but do not perform mutations. The default is false.
 21188  func (c *ProjectsLocationsLakesTasksPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesTasksPatchCall {
 21189  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 21190  	return c
 21191  }
 21192  
 21193  // Fields allows partial responses to be retrieved. See
 21194  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21195  // details.
 21196  func (c *ProjectsLocationsLakesTasksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksPatchCall {
 21197  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21198  	return c
 21199  }
 21200  
 21201  // Context sets the context to be used in this call's Do method.
 21202  func (c *ProjectsLocationsLakesTasksPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksPatchCall {
 21203  	c.ctx_ = ctx
 21204  	return c
 21205  }
 21206  
 21207  // Header returns a http.Header that can be modified by the caller to add
 21208  // headers to the request.
 21209  func (c *ProjectsLocationsLakesTasksPatchCall) Header() http.Header {
 21210  	if c.header_ == nil {
 21211  		c.header_ = make(http.Header)
 21212  	}
 21213  	return c.header_
 21214  }
 21215  
 21216  func (c *ProjectsLocationsLakesTasksPatchCall) doRequest(alt string) (*http.Response, error) {
 21217  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21218  	var body io.Reader = nil
 21219  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1task)
 21220  	if err != nil {
 21221  		return nil, err
 21222  	}
 21223  	c.urlParams_.Set("alt", alt)
 21224  	c.urlParams_.Set("prettyPrint", "false")
 21225  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21226  	urls += "?" + c.urlParams_.Encode()
 21227  	req, err := http.NewRequest("PATCH", urls, body)
 21228  	if err != nil {
 21229  		return nil, err
 21230  	}
 21231  	req.Header = reqHeaders
 21232  	googleapi.Expand(req.URL, map[string]string{
 21233  		"name": c.name,
 21234  	})
 21235  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21236  }
 21237  
 21238  // Do executes the "dataplex.projects.locations.lakes.tasks.patch" call.
 21239  // Any non-2xx status code is an error. Response headers are in either
 21240  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21241  // returned at all) in error.(*googleapi.Error).Header. Use
 21242  // googleapi.IsNotModified to check whether the returned error was because
 21243  // http.StatusNotModified was returned.
 21244  func (c *ProjectsLocationsLakesTasksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21245  	gensupport.SetOptions(c.urlParams_, opts...)
 21246  	res, err := c.doRequest("json")
 21247  	if res != nil && res.StatusCode == http.StatusNotModified {
 21248  		if res.Body != nil {
 21249  			res.Body.Close()
 21250  		}
 21251  		return nil, gensupport.WrapError(&googleapi.Error{
 21252  			Code:   res.StatusCode,
 21253  			Header: res.Header,
 21254  		})
 21255  	}
 21256  	if err != nil {
 21257  		return nil, err
 21258  	}
 21259  	defer googleapi.CloseBody(res)
 21260  	if err := googleapi.CheckResponse(res); err != nil {
 21261  		return nil, gensupport.WrapError(err)
 21262  	}
 21263  	ret := &GoogleLongrunningOperation{
 21264  		ServerResponse: googleapi.ServerResponse{
 21265  			Header:         res.Header,
 21266  			HTTPStatusCode: res.StatusCode,
 21267  		},
 21268  	}
 21269  	target := &ret
 21270  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21271  		return nil, err
 21272  	}
 21273  	return ret, nil
 21274  }
 21275  
 21276  type ProjectsLocationsLakesTasksRunCall struct {
 21277  	s                                   *Service
 21278  	name                                string
 21279  	googleclouddataplexv1runtaskrequest *GoogleCloudDataplexV1RunTaskRequest
 21280  	urlParams_                          gensupport.URLParams
 21281  	ctx_                                context.Context
 21282  	header_                             http.Header
 21283  }
 21284  
 21285  // Run: Run an on demand execution of a Task.
 21286  //
 21287  //   - name: The resource name of the task:
 21288  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{ta
 21289  //     sk_id}.
 21290  func (r *ProjectsLocationsLakesTasksService) Run(name string, googleclouddataplexv1runtaskrequest *GoogleCloudDataplexV1RunTaskRequest) *ProjectsLocationsLakesTasksRunCall {
 21291  	c := &ProjectsLocationsLakesTasksRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21292  	c.name = name
 21293  	c.googleclouddataplexv1runtaskrequest = googleclouddataplexv1runtaskrequest
 21294  	return c
 21295  }
 21296  
 21297  // Fields allows partial responses to be retrieved. See
 21298  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21299  // details.
 21300  func (c *ProjectsLocationsLakesTasksRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksRunCall {
 21301  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21302  	return c
 21303  }
 21304  
 21305  // Context sets the context to be used in this call's Do method.
 21306  func (c *ProjectsLocationsLakesTasksRunCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksRunCall {
 21307  	c.ctx_ = ctx
 21308  	return c
 21309  }
 21310  
 21311  // Header returns a http.Header that can be modified by the caller to add
 21312  // headers to the request.
 21313  func (c *ProjectsLocationsLakesTasksRunCall) Header() http.Header {
 21314  	if c.header_ == nil {
 21315  		c.header_ = make(http.Header)
 21316  	}
 21317  	return c.header_
 21318  }
 21319  
 21320  func (c *ProjectsLocationsLakesTasksRunCall) doRequest(alt string) (*http.Response, error) {
 21321  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21322  	var body io.Reader = nil
 21323  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1runtaskrequest)
 21324  	if err != nil {
 21325  		return nil, err
 21326  	}
 21327  	c.urlParams_.Set("alt", alt)
 21328  	c.urlParams_.Set("prettyPrint", "false")
 21329  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
 21330  	urls += "?" + c.urlParams_.Encode()
 21331  	req, err := http.NewRequest("POST", urls, body)
 21332  	if err != nil {
 21333  		return nil, err
 21334  	}
 21335  	req.Header = reqHeaders
 21336  	googleapi.Expand(req.URL, map[string]string{
 21337  		"name": c.name,
 21338  	})
 21339  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21340  }
 21341  
 21342  // Do executes the "dataplex.projects.locations.lakes.tasks.run" call.
 21343  // Any non-2xx status code is an error. Response headers are in either
 21344  // *GoogleCloudDataplexV1RunTaskResponse.ServerResponse.Header or (if a
 21345  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21346  // googleapi.IsNotModified to check whether the returned error was because
 21347  // http.StatusNotModified was returned.
 21348  func (c *ProjectsLocationsLakesTasksRunCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1RunTaskResponse, error) {
 21349  	gensupport.SetOptions(c.urlParams_, opts...)
 21350  	res, err := c.doRequest("json")
 21351  	if res != nil && res.StatusCode == http.StatusNotModified {
 21352  		if res.Body != nil {
 21353  			res.Body.Close()
 21354  		}
 21355  		return nil, gensupport.WrapError(&googleapi.Error{
 21356  			Code:   res.StatusCode,
 21357  			Header: res.Header,
 21358  		})
 21359  	}
 21360  	if err != nil {
 21361  		return nil, err
 21362  	}
 21363  	defer googleapi.CloseBody(res)
 21364  	if err := googleapi.CheckResponse(res); err != nil {
 21365  		return nil, gensupport.WrapError(err)
 21366  	}
 21367  	ret := &GoogleCloudDataplexV1RunTaskResponse{
 21368  		ServerResponse: googleapi.ServerResponse{
 21369  			Header:         res.Header,
 21370  			HTTPStatusCode: res.StatusCode,
 21371  		},
 21372  	}
 21373  	target := &ret
 21374  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21375  		return nil, err
 21376  	}
 21377  	return ret, nil
 21378  }
 21379  
 21380  type ProjectsLocationsLakesTasksSetIamPolicyCall struct {
 21381  	s                              *Service
 21382  	resource                       string
 21383  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 21384  	urlParams_                     gensupport.URLParams
 21385  	ctx_                           context.Context
 21386  	header_                        http.Header
 21387  }
 21388  
 21389  // SetIamPolicy: Sets the access control policy on the specified resource.
 21390  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 21391  // PERMISSION_DENIED errors.
 21392  //
 21393  //   - resource: REQUIRED: The resource for which the policy is being specified.
 21394  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 21395  //     for the appropriate value for this field.
 21396  func (r *ProjectsLocationsLakesTasksService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesTasksSetIamPolicyCall {
 21397  	c := &ProjectsLocationsLakesTasksSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21398  	c.resource = resource
 21399  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 21400  	return c
 21401  }
 21402  
 21403  // Fields allows partial responses to be retrieved. See
 21404  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21405  // details.
 21406  func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksSetIamPolicyCall {
 21407  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21408  	return c
 21409  }
 21410  
 21411  // Context sets the context to be used in this call's Do method.
 21412  func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksSetIamPolicyCall {
 21413  	c.ctx_ = ctx
 21414  	return c
 21415  }
 21416  
 21417  // Header returns a http.Header that can be modified by the caller to add
 21418  // headers to the request.
 21419  func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Header() http.Header {
 21420  	if c.header_ == nil {
 21421  		c.header_ = make(http.Header)
 21422  	}
 21423  	return c.header_
 21424  }
 21425  
 21426  func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 21427  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21428  	var body io.Reader = nil
 21429  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 21430  	if err != nil {
 21431  		return nil, err
 21432  	}
 21433  	c.urlParams_.Set("alt", alt)
 21434  	c.urlParams_.Set("prettyPrint", "false")
 21435  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 21436  	urls += "?" + c.urlParams_.Encode()
 21437  	req, err := http.NewRequest("POST", urls, body)
 21438  	if err != nil {
 21439  		return nil, err
 21440  	}
 21441  	req.Header = reqHeaders
 21442  	googleapi.Expand(req.URL, map[string]string{
 21443  		"resource": c.resource,
 21444  	})
 21445  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21446  }
 21447  
 21448  // Do executes the "dataplex.projects.locations.lakes.tasks.setIamPolicy" call.
 21449  // Any non-2xx status code is an error. Response headers are in either
 21450  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 21451  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21452  // check whether the returned error was because http.StatusNotModified was
 21453  // returned.
 21454  func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 21455  	gensupport.SetOptions(c.urlParams_, opts...)
 21456  	res, err := c.doRequest("json")
 21457  	if res != nil && res.StatusCode == http.StatusNotModified {
 21458  		if res.Body != nil {
 21459  			res.Body.Close()
 21460  		}
 21461  		return nil, gensupport.WrapError(&googleapi.Error{
 21462  			Code:   res.StatusCode,
 21463  			Header: res.Header,
 21464  		})
 21465  	}
 21466  	if err != nil {
 21467  		return nil, err
 21468  	}
 21469  	defer googleapi.CloseBody(res)
 21470  	if err := googleapi.CheckResponse(res); err != nil {
 21471  		return nil, gensupport.WrapError(err)
 21472  	}
 21473  	ret := &GoogleIamV1Policy{
 21474  		ServerResponse: googleapi.ServerResponse{
 21475  			Header:         res.Header,
 21476  			HTTPStatusCode: res.StatusCode,
 21477  		},
 21478  	}
 21479  	target := &ret
 21480  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21481  		return nil, err
 21482  	}
 21483  	return ret, nil
 21484  }
 21485  
 21486  type ProjectsLocationsLakesTasksTestIamPermissionsCall struct {
 21487  	s                                    *Service
 21488  	resource                             string
 21489  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 21490  	urlParams_                           gensupport.URLParams
 21491  	ctx_                                 context.Context
 21492  	header_                              http.Header
 21493  }
 21494  
 21495  // TestIamPermissions: Returns permissions that a caller has on the specified
 21496  // resource. If the resource does not exist, this will return an empty set of
 21497  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 21498  // used for building permission-aware UIs and command-line tools, not for
 21499  // authorization checking. This operation may "fail open" without warning.
 21500  //
 21501  //   - resource: REQUIRED: The resource for which the policy detail is being
 21502  //     requested. See Resource names
 21503  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 21504  //     value for this field.
 21505  func (r *ProjectsLocationsLakesTasksService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesTasksTestIamPermissionsCall {
 21506  	c := &ProjectsLocationsLakesTasksTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21507  	c.resource = resource
 21508  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 21509  	return c
 21510  }
 21511  
 21512  // Fields allows partial responses to be retrieved. See
 21513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21514  // details.
 21515  func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksTestIamPermissionsCall {
 21516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21517  	return c
 21518  }
 21519  
 21520  // Context sets the context to be used in this call's Do method.
 21521  func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksTestIamPermissionsCall {
 21522  	c.ctx_ = ctx
 21523  	return c
 21524  }
 21525  
 21526  // Header returns a http.Header that can be modified by the caller to add
 21527  // headers to the request.
 21528  func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Header() http.Header {
 21529  	if c.header_ == nil {
 21530  		c.header_ = make(http.Header)
 21531  	}
 21532  	return c.header_
 21533  }
 21534  
 21535  func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 21536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21537  	var body io.Reader = nil
 21538  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 21539  	if err != nil {
 21540  		return nil, err
 21541  	}
 21542  	c.urlParams_.Set("alt", alt)
 21543  	c.urlParams_.Set("prettyPrint", "false")
 21544  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 21545  	urls += "?" + c.urlParams_.Encode()
 21546  	req, err := http.NewRequest("POST", urls, body)
 21547  	if err != nil {
 21548  		return nil, err
 21549  	}
 21550  	req.Header = reqHeaders
 21551  	googleapi.Expand(req.URL, map[string]string{
 21552  		"resource": c.resource,
 21553  	})
 21554  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21555  }
 21556  
 21557  // Do executes the "dataplex.projects.locations.lakes.tasks.testIamPermissions" call.
 21558  // Any non-2xx status code is an error. Response headers are in either
 21559  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 21560  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21561  // googleapi.IsNotModified to check whether the returned error was because
 21562  // http.StatusNotModified was returned.
 21563  func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 21564  	gensupport.SetOptions(c.urlParams_, opts...)
 21565  	res, err := c.doRequest("json")
 21566  	if res != nil && res.StatusCode == http.StatusNotModified {
 21567  		if res.Body != nil {
 21568  			res.Body.Close()
 21569  		}
 21570  		return nil, gensupport.WrapError(&googleapi.Error{
 21571  			Code:   res.StatusCode,
 21572  			Header: res.Header,
 21573  		})
 21574  	}
 21575  	if err != nil {
 21576  		return nil, err
 21577  	}
 21578  	defer googleapi.CloseBody(res)
 21579  	if err := googleapi.CheckResponse(res); err != nil {
 21580  		return nil, gensupport.WrapError(err)
 21581  	}
 21582  	ret := &GoogleIamV1TestIamPermissionsResponse{
 21583  		ServerResponse: googleapi.ServerResponse{
 21584  			Header:         res.Header,
 21585  			HTTPStatusCode: res.StatusCode,
 21586  		},
 21587  	}
 21588  	target := &ret
 21589  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21590  		return nil, err
 21591  	}
 21592  	return ret, nil
 21593  }
 21594  
 21595  type ProjectsLocationsLakesTasksJobsCancelCall struct {
 21596  	s                                     *Service
 21597  	name                                  string
 21598  	googleclouddataplexv1canceljobrequest *GoogleCloudDataplexV1CancelJobRequest
 21599  	urlParams_                            gensupport.URLParams
 21600  	ctx_                                  context.Context
 21601  	header_                               http.Header
 21602  }
 21603  
 21604  // Cancel: Cancel jobs running for the task resource.
 21605  //
 21606  //   - name: The resource name of the job:
 21607  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{tas
 21608  //     k_id}/job/{job_id}.
 21609  func (r *ProjectsLocationsLakesTasksJobsService) Cancel(name string, googleclouddataplexv1canceljobrequest *GoogleCloudDataplexV1CancelJobRequest) *ProjectsLocationsLakesTasksJobsCancelCall {
 21610  	c := &ProjectsLocationsLakesTasksJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21611  	c.name = name
 21612  	c.googleclouddataplexv1canceljobrequest = googleclouddataplexv1canceljobrequest
 21613  	return c
 21614  }
 21615  
 21616  // Fields allows partial responses to be retrieved. See
 21617  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21618  // details.
 21619  func (c *ProjectsLocationsLakesTasksJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksJobsCancelCall {
 21620  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21621  	return c
 21622  }
 21623  
 21624  // Context sets the context to be used in this call's Do method.
 21625  func (c *ProjectsLocationsLakesTasksJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksJobsCancelCall {
 21626  	c.ctx_ = ctx
 21627  	return c
 21628  }
 21629  
 21630  // Header returns a http.Header that can be modified by the caller to add
 21631  // headers to the request.
 21632  func (c *ProjectsLocationsLakesTasksJobsCancelCall) Header() http.Header {
 21633  	if c.header_ == nil {
 21634  		c.header_ = make(http.Header)
 21635  	}
 21636  	return c.header_
 21637  }
 21638  
 21639  func (c *ProjectsLocationsLakesTasksJobsCancelCall) doRequest(alt string) (*http.Response, error) {
 21640  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21641  	var body io.Reader = nil
 21642  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1canceljobrequest)
 21643  	if err != nil {
 21644  		return nil, err
 21645  	}
 21646  	c.urlParams_.Set("alt", alt)
 21647  	c.urlParams_.Set("prettyPrint", "false")
 21648  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 21649  	urls += "?" + c.urlParams_.Encode()
 21650  	req, err := http.NewRequest("POST", urls, body)
 21651  	if err != nil {
 21652  		return nil, err
 21653  	}
 21654  	req.Header = reqHeaders
 21655  	googleapi.Expand(req.URL, map[string]string{
 21656  		"name": c.name,
 21657  	})
 21658  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21659  }
 21660  
 21661  // Do executes the "dataplex.projects.locations.lakes.tasks.jobs.cancel" call.
 21662  // Any non-2xx status code is an error. Response headers are in either
 21663  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 21664  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21665  // whether the returned error was because http.StatusNotModified was returned.
 21666  func (c *ProjectsLocationsLakesTasksJobsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 21667  	gensupport.SetOptions(c.urlParams_, opts...)
 21668  	res, err := c.doRequest("json")
 21669  	if res != nil && res.StatusCode == http.StatusNotModified {
 21670  		if res.Body != nil {
 21671  			res.Body.Close()
 21672  		}
 21673  		return nil, gensupport.WrapError(&googleapi.Error{
 21674  			Code:   res.StatusCode,
 21675  			Header: res.Header,
 21676  		})
 21677  	}
 21678  	if err != nil {
 21679  		return nil, err
 21680  	}
 21681  	defer googleapi.CloseBody(res)
 21682  	if err := googleapi.CheckResponse(res); err != nil {
 21683  		return nil, gensupport.WrapError(err)
 21684  	}
 21685  	ret := &Empty{
 21686  		ServerResponse: googleapi.ServerResponse{
 21687  			Header:         res.Header,
 21688  			HTTPStatusCode: res.StatusCode,
 21689  		},
 21690  	}
 21691  	target := &ret
 21692  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21693  		return nil, err
 21694  	}
 21695  	return ret, nil
 21696  }
 21697  
 21698  type ProjectsLocationsLakesTasksJobsGetCall struct {
 21699  	s            *Service
 21700  	name         string
 21701  	urlParams_   gensupport.URLParams
 21702  	ifNoneMatch_ string
 21703  	ctx_         context.Context
 21704  	header_      http.Header
 21705  }
 21706  
 21707  // Get: Get job resource.
 21708  //
 21709  //   - name: The resource name of the job:
 21710  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{ta
 21711  //     sk_id}/jobs/{job_id}.
 21712  func (r *ProjectsLocationsLakesTasksJobsService) Get(name string) *ProjectsLocationsLakesTasksJobsGetCall {
 21713  	c := &ProjectsLocationsLakesTasksJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21714  	c.name = name
 21715  	return c
 21716  }
 21717  
 21718  // Fields allows partial responses to be retrieved. See
 21719  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21720  // details.
 21721  func (c *ProjectsLocationsLakesTasksJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksJobsGetCall {
 21722  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21723  	return c
 21724  }
 21725  
 21726  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21727  // object's ETag matches the given value. This is useful for getting updates
 21728  // only after the object has changed since the last request.
 21729  func (c *ProjectsLocationsLakesTasksJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksJobsGetCall {
 21730  	c.ifNoneMatch_ = entityTag
 21731  	return c
 21732  }
 21733  
 21734  // Context sets the context to be used in this call's Do method.
 21735  func (c *ProjectsLocationsLakesTasksJobsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksJobsGetCall {
 21736  	c.ctx_ = ctx
 21737  	return c
 21738  }
 21739  
 21740  // Header returns a http.Header that can be modified by the caller to add
 21741  // headers to the request.
 21742  func (c *ProjectsLocationsLakesTasksJobsGetCall) Header() http.Header {
 21743  	if c.header_ == nil {
 21744  		c.header_ = make(http.Header)
 21745  	}
 21746  	return c.header_
 21747  }
 21748  
 21749  func (c *ProjectsLocationsLakesTasksJobsGetCall) doRequest(alt string) (*http.Response, error) {
 21750  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21751  	if c.ifNoneMatch_ != "" {
 21752  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21753  	}
 21754  	var body io.Reader = nil
 21755  	c.urlParams_.Set("alt", alt)
 21756  	c.urlParams_.Set("prettyPrint", "false")
 21757  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 21758  	urls += "?" + c.urlParams_.Encode()
 21759  	req, err := http.NewRequest("GET", urls, body)
 21760  	if err != nil {
 21761  		return nil, err
 21762  	}
 21763  	req.Header = reqHeaders
 21764  	googleapi.Expand(req.URL, map[string]string{
 21765  		"name": c.name,
 21766  	})
 21767  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21768  }
 21769  
 21770  // Do executes the "dataplex.projects.locations.lakes.tasks.jobs.get" call.
 21771  // Any non-2xx status code is an error. Response headers are in either
 21772  // *GoogleCloudDataplexV1Job.ServerResponse.Header or (if a response was
 21773  // returned at all) in error.(*googleapi.Error).Header. Use
 21774  // googleapi.IsNotModified to check whether the returned error was because
 21775  // http.StatusNotModified was returned.
 21776  func (c *ProjectsLocationsLakesTasksJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Job, error) {
 21777  	gensupport.SetOptions(c.urlParams_, opts...)
 21778  	res, err := c.doRequest("json")
 21779  	if res != nil && res.StatusCode == http.StatusNotModified {
 21780  		if res.Body != nil {
 21781  			res.Body.Close()
 21782  		}
 21783  		return nil, gensupport.WrapError(&googleapi.Error{
 21784  			Code:   res.StatusCode,
 21785  			Header: res.Header,
 21786  		})
 21787  	}
 21788  	if err != nil {
 21789  		return nil, err
 21790  	}
 21791  	defer googleapi.CloseBody(res)
 21792  	if err := googleapi.CheckResponse(res); err != nil {
 21793  		return nil, gensupport.WrapError(err)
 21794  	}
 21795  	ret := &GoogleCloudDataplexV1Job{
 21796  		ServerResponse: googleapi.ServerResponse{
 21797  			Header:         res.Header,
 21798  			HTTPStatusCode: res.StatusCode,
 21799  		},
 21800  	}
 21801  	target := &ret
 21802  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21803  		return nil, err
 21804  	}
 21805  	return ret, nil
 21806  }
 21807  
 21808  type ProjectsLocationsLakesTasksJobsListCall struct {
 21809  	s            *Service
 21810  	parent       string
 21811  	urlParams_   gensupport.URLParams
 21812  	ifNoneMatch_ string
 21813  	ctx_         context.Context
 21814  	header_      http.Header
 21815  }
 21816  
 21817  // List: Lists Jobs under the given task.
 21818  //
 21819  //   - parent: The resource name of the parent environment:
 21820  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{ta
 21821  //     sk_id}.
 21822  func (r *ProjectsLocationsLakesTasksJobsService) List(parent string) *ProjectsLocationsLakesTasksJobsListCall {
 21823  	c := &ProjectsLocationsLakesTasksJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21824  	c.parent = parent
 21825  	return c
 21826  }
 21827  
 21828  // PageSize sets the optional parameter "pageSize": Maximum number of jobs to
 21829  // return. The service may return fewer than this value. If unspecified, at
 21830  // most 10 jobs will be returned. The maximum value is 1000; values above 1000
 21831  // will be coerced to 1000.
 21832  func (c *ProjectsLocationsLakesTasksJobsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesTasksJobsListCall {
 21833  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21834  	return c
 21835  }
 21836  
 21837  // PageToken sets the optional parameter "pageToken": Page token received from
 21838  // a previous ListJobs call. Provide this to retrieve the subsequent page. When
 21839  // paginating, all other parameters provided to ListJobs must match the call
 21840  // that provided the page token.
 21841  func (c *ProjectsLocationsLakesTasksJobsListCall) PageToken(pageToken string) *ProjectsLocationsLakesTasksJobsListCall {
 21842  	c.urlParams_.Set("pageToken", pageToken)
 21843  	return c
 21844  }
 21845  
 21846  // Fields allows partial responses to be retrieved. See
 21847  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21848  // details.
 21849  func (c *ProjectsLocationsLakesTasksJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksJobsListCall {
 21850  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21851  	return c
 21852  }
 21853  
 21854  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21855  // object's ETag matches the given value. This is useful for getting updates
 21856  // only after the object has changed since the last request.
 21857  func (c *ProjectsLocationsLakesTasksJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksJobsListCall {
 21858  	c.ifNoneMatch_ = entityTag
 21859  	return c
 21860  }
 21861  
 21862  // Context sets the context to be used in this call's Do method.
 21863  func (c *ProjectsLocationsLakesTasksJobsListCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksJobsListCall {
 21864  	c.ctx_ = ctx
 21865  	return c
 21866  }
 21867  
 21868  // Header returns a http.Header that can be modified by the caller to add
 21869  // headers to the request.
 21870  func (c *ProjectsLocationsLakesTasksJobsListCall) Header() http.Header {
 21871  	if c.header_ == nil {
 21872  		c.header_ = make(http.Header)
 21873  	}
 21874  	return c.header_
 21875  }
 21876  
 21877  func (c *ProjectsLocationsLakesTasksJobsListCall) doRequest(alt string) (*http.Response, error) {
 21878  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21879  	if c.ifNoneMatch_ != "" {
 21880  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21881  	}
 21882  	var body io.Reader = nil
 21883  	c.urlParams_.Set("alt", alt)
 21884  	c.urlParams_.Set("prettyPrint", "false")
 21885  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/jobs")
 21886  	urls += "?" + c.urlParams_.Encode()
 21887  	req, err := http.NewRequest("GET", urls, body)
 21888  	if err != nil {
 21889  		return nil, err
 21890  	}
 21891  	req.Header = reqHeaders
 21892  	googleapi.Expand(req.URL, map[string]string{
 21893  		"parent": c.parent,
 21894  	})
 21895  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21896  }
 21897  
 21898  // Do executes the "dataplex.projects.locations.lakes.tasks.jobs.list" call.
 21899  // Any non-2xx status code is an error. Response headers are in either
 21900  // *GoogleCloudDataplexV1ListJobsResponse.ServerResponse.Header or (if a
 21901  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21902  // googleapi.IsNotModified to check whether the returned error was because
 21903  // http.StatusNotModified was returned.
 21904  func (c *ProjectsLocationsLakesTasksJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListJobsResponse, error) {
 21905  	gensupport.SetOptions(c.urlParams_, opts...)
 21906  	res, err := c.doRequest("json")
 21907  	if res != nil && res.StatusCode == http.StatusNotModified {
 21908  		if res.Body != nil {
 21909  			res.Body.Close()
 21910  		}
 21911  		return nil, gensupport.WrapError(&googleapi.Error{
 21912  			Code:   res.StatusCode,
 21913  			Header: res.Header,
 21914  		})
 21915  	}
 21916  	if err != nil {
 21917  		return nil, err
 21918  	}
 21919  	defer googleapi.CloseBody(res)
 21920  	if err := googleapi.CheckResponse(res); err != nil {
 21921  		return nil, gensupport.WrapError(err)
 21922  	}
 21923  	ret := &GoogleCloudDataplexV1ListJobsResponse{
 21924  		ServerResponse: googleapi.ServerResponse{
 21925  			Header:         res.Header,
 21926  			HTTPStatusCode: res.StatusCode,
 21927  		},
 21928  	}
 21929  	target := &ret
 21930  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21931  		return nil, err
 21932  	}
 21933  	return ret, nil
 21934  }
 21935  
 21936  // Pages invokes f for each page of results.
 21937  // A non-nil error returned from f will halt the iteration.
 21938  // The provided context supersedes any context provided to the Context method.
 21939  func (c *ProjectsLocationsLakesTasksJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListJobsResponse) error) error {
 21940  	c.ctx_ = ctx
 21941  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21942  	for {
 21943  		x, err := c.Do()
 21944  		if err != nil {
 21945  			return err
 21946  		}
 21947  		if err := f(x); err != nil {
 21948  			return err
 21949  		}
 21950  		if x.NextPageToken == "" {
 21951  			return nil
 21952  		}
 21953  		c.PageToken(x.NextPageToken)
 21954  	}
 21955  }
 21956  
 21957  type ProjectsLocationsLakesZonesCreateCall struct {
 21958  	s                         *Service
 21959  	parent                    string
 21960  	googleclouddataplexv1zone *GoogleCloudDataplexV1Zone
 21961  	urlParams_                gensupport.URLParams
 21962  	ctx_                      context.Context
 21963  	header_                   http.Header
 21964  }
 21965  
 21966  // Create: Creates a zone resource within a lake.
 21967  //
 21968  //   - parent: The resource name of the parent lake:
 21969  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 21970  func (r *ProjectsLocationsLakesZonesService) Create(parent string, googleclouddataplexv1zone *GoogleCloudDataplexV1Zone) *ProjectsLocationsLakesZonesCreateCall {
 21971  	c := &ProjectsLocationsLakesZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21972  	c.parent = parent
 21973  	c.googleclouddataplexv1zone = googleclouddataplexv1zone
 21974  	return c
 21975  }
 21976  
 21977  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 21978  // request, but do not perform mutations. The default is false.
 21979  func (c *ProjectsLocationsLakesZonesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesCreateCall {
 21980  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 21981  	return c
 21982  }
 21983  
 21984  // ZoneId sets the optional parameter "zoneId": Required. Zone identifier. This
 21985  // ID will be used to generate names such as database and dataset names when
 21986  // publishing metadata to Hive Metastore and BigQuery. * Must contain only
 21987  // lowercase letters, numbers and hyphens. * Must start with a letter. * Must
 21988  // end with a number or a letter. * Must be between 1-63 characters. * Must be
 21989  // unique across all lakes from all locations in a project. * Must not be one
 21990  // of the reserved IDs (i.e. "default", "global-temp")
 21991  func (c *ProjectsLocationsLakesZonesCreateCall) ZoneId(zoneId string) *ProjectsLocationsLakesZonesCreateCall {
 21992  	c.urlParams_.Set("zoneId", zoneId)
 21993  	return c
 21994  }
 21995  
 21996  // Fields allows partial responses to be retrieved. See
 21997  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21998  // details.
 21999  func (c *ProjectsLocationsLakesZonesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesCreateCall {
 22000  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22001  	return c
 22002  }
 22003  
 22004  // Context sets the context to be used in this call's Do method.
 22005  func (c *ProjectsLocationsLakesZonesCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesCreateCall {
 22006  	c.ctx_ = ctx
 22007  	return c
 22008  }
 22009  
 22010  // Header returns a http.Header that can be modified by the caller to add
 22011  // headers to the request.
 22012  func (c *ProjectsLocationsLakesZonesCreateCall) Header() http.Header {
 22013  	if c.header_ == nil {
 22014  		c.header_ = make(http.Header)
 22015  	}
 22016  	return c.header_
 22017  }
 22018  
 22019  func (c *ProjectsLocationsLakesZonesCreateCall) doRequest(alt string) (*http.Response, error) {
 22020  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22021  	var body io.Reader = nil
 22022  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1zone)
 22023  	if err != nil {
 22024  		return nil, err
 22025  	}
 22026  	c.urlParams_.Set("alt", alt)
 22027  	c.urlParams_.Set("prettyPrint", "false")
 22028  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/zones")
 22029  	urls += "?" + c.urlParams_.Encode()
 22030  	req, err := http.NewRequest("POST", urls, body)
 22031  	if err != nil {
 22032  		return nil, err
 22033  	}
 22034  	req.Header = reqHeaders
 22035  	googleapi.Expand(req.URL, map[string]string{
 22036  		"parent": c.parent,
 22037  	})
 22038  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22039  }
 22040  
 22041  // Do executes the "dataplex.projects.locations.lakes.zones.create" call.
 22042  // Any non-2xx status code is an error. Response headers are in either
 22043  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22044  // returned at all) in error.(*googleapi.Error).Header. Use
 22045  // googleapi.IsNotModified to check whether the returned error was because
 22046  // http.StatusNotModified was returned.
 22047  func (c *ProjectsLocationsLakesZonesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22048  	gensupport.SetOptions(c.urlParams_, opts...)
 22049  	res, err := c.doRequest("json")
 22050  	if res != nil && res.StatusCode == http.StatusNotModified {
 22051  		if res.Body != nil {
 22052  			res.Body.Close()
 22053  		}
 22054  		return nil, gensupport.WrapError(&googleapi.Error{
 22055  			Code:   res.StatusCode,
 22056  			Header: res.Header,
 22057  		})
 22058  	}
 22059  	if err != nil {
 22060  		return nil, err
 22061  	}
 22062  	defer googleapi.CloseBody(res)
 22063  	if err := googleapi.CheckResponse(res); err != nil {
 22064  		return nil, gensupport.WrapError(err)
 22065  	}
 22066  	ret := &GoogleLongrunningOperation{
 22067  		ServerResponse: googleapi.ServerResponse{
 22068  			Header:         res.Header,
 22069  			HTTPStatusCode: res.StatusCode,
 22070  		},
 22071  	}
 22072  	target := &ret
 22073  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22074  		return nil, err
 22075  	}
 22076  	return ret, nil
 22077  }
 22078  
 22079  type ProjectsLocationsLakesZonesDeleteCall struct {
 22080  	s          *Service
 22081  	name       string
 22082  	urlParams_ gensupport.URLParams
 22083  	ctx_       context.Context
 22084  	header_    http.Header
 22085  }
 22086  
 22087  // Delete: Deletes a zone resource. All assets within a zone must be deleted
 22088  // before the zone can be deleted.
 22089  //
 22090  //   - name: The resource name of the zone:
 22091  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 22092  //     ne_id}.
 22093  func (r *ProjectsLocationsLakesZonesService) Delete(name string) *ProjectsLocationsLakesZonesDeleteCall {
 22094  	c := &ProjectsLocationsLakesZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22095  	c.name = name
 22096  	return c
 22097  }
 22098  
 22099  // Fields allows partial responses to be retrieved. See
 22100  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22101  // details.
 22102  func (c *ProjectsLocationsLakesZonesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesDeleteCall {
 22103  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22104  	return c
 22105  }
 22106  
 22107  // Context sets the context to be used in this call's Do method.
 22108  func (c *ProjectsLocationsLakesZonesDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesDeleteCall {
 22109  	c.ctx_ = ctx
 22110  	return c
 22111  }
 22112  
 22113  // Header returns a http.Header that can be modified by the caller to add
 22114  // headers to the request.
 22115  func (c *ProjectsLocationsLakesZonesDeleteCall) Header() http.Header {
 22116  	if c.header_ == nil {
 22117  		c.header_ = make(http.Header)
 22118  	}
 22119  	return c.header_
 22120  }
 22121  
 22122  func (c *ProjectsLocationsLakesZonesDeleteCall) doRequest(alt string) (*http.Response, error) {
 22123  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22124  	var body io.Reader = nil
 22125  	c.urlParams_.Set("alt", alt)
 22126  	c.urlParams_.Set("prettyPrint", "false")
 22127  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22128  	urls += "?" + c.urlParams_.Encode()
 22129  	req, err := http.NewRequest("DELETE", urls, body)
 22130  	if err != nil {
 22131  		return nil, err
 22132  	}
 22133  	req.Header = reqHeaders
 22134  	googleapi.Expand(req.URL, map[string]string{
 22135  		"name": c.name,
 22136  	})
 22137  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22138  }
 22139  
 22140  // Do executes the "dataplex.projects.locations.lakes.zones.delete" call.
 22141  // Any non-2xx status code is an error. Response headers are in either
 22142  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22143  // returned at all) in error.(*googleapi.Error).Header. Use
 22144  // googleapi.IsNotModified to check whether the returned error was because
 22145  // http.StatusNotModified was returned.
 22146  func (c *ProjectsLocationsLakesZonesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22147  	gensupport.SetOptions(c.urlParams_, opts...)
 22148  	res, err := c.doRequest("json")
 22149  	if res != nil && res.StatusCode == http.StatusNotModified {
 22150  		if res.Body != nil {
 22151  			res.Body.Close()
 22152  		}
 22153  		return nil, gensupport.WrapError(&googleapi.Error{
 22154  			Code:   res.StatusCode,
 22155  			Header: res.Header,
 22156  		})
 22157  	}
 22158  	if err != nil {
 22159  		return nil, err
 22160  	}
 22161  	defer googleapi.CloseBody(res)
 22162  	if err := googleapi.CheckResponse(res); err != nil {
 22163  		return nil, gensupport.WrapError(err)
 22164  	}
 22165  	ret := &GoogleLongrunningOperation{
 22166  		ServerResponse: googleapi.ServerResponse{
 22167  			Header:         res.Header,
 22168  			HTTPStatusCode: res.StatusCode,
 22169  		},
 22170  	}
 22171  	target := &ret
 22172  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22173  		return nil, err
 22174  	}
 22175  	return ret, nil
 22176  }
 22177  
 22178  type ProjectsLocationsLakesZonesGetCall struct {
 22179  	s            *Service
 22180  	name         string
 22181  	urlParams_   gensupport.URLParams
 22182  	ifNoneMatch_ string
 22183  	ctx_         context.Context
 22184  	header_      http.Header
 22185  }
 22186  
 22187  // Get: Retrieves a zone resource.
 22188  //
 22189  //   - name: The resource name of the zone:
 22190  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 22191  //     ne_id}.
 22192  func (r *ProjectsLocationsLakesZonesService) Get(name string) *ProjectsLocationsLakesZonesGetCall {
 22193  	c := &ProjectsLocationsLakesZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22194  	c.name = name
 22195  	return c
 22196  }
 22197  
 22198  // Fields allows partial responses to be retrieved. See
 22199  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22200  // details.
 22201  func (c *ProjectsLocationsLakesZonesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesGetCall {
 22202  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22203  	return c
 22204  }
 22205  
 22206  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22207  // object's ETag matches the given value. This is useful for getting updates
 22208  // only after the object has changed since the last request.
 22209  func (c *ProjectsLocationsLakesZonesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesGetCall {
 22210  	c.ifNoneMatch_ = entityTag
 22211  	return c
 22212  }
 22213  
 22214  // Context sets the context to be used in this call's Do method.
 22215  func (c *ProjectsLocationsLakesZonesGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesGetCall {
 22216  	c.ctx_ = ctx
 22217  	return c
 22218  }
 22219  
 22220  // Header returns a http.Header that can be modified by the caller to add
 22221  // headers to the request.
 22222  func (c *ProjectsLocationsLakesZonesGetCall) Header() http.Header {
 22223  	if c.header_ == nil {
 22224  		c.header_ = make(http.Header)
 22225  	}
 22226  	return c.header_
 22227  }
 22228  
 22229  func (c *ProjectsLocationsLakesZonesGetCall) doRequest(alt string) (*http.Response, error) {
 22230  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22231  	if c.ifNoneMatch_ != "" {
 22232  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22233  	}
 22234  	var body io.Reader = nil
 22235  	c.urlParams_.Set("alt", alt)
 22236  	c.urlParams_.Set("prettyPrint", "false")
 22237  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22238  	urls += "?" + c.urlParams_.Encode()
 22239  	req, err := http.NewRequest("GET", urls, body)
 22240  	if err != nil {
 22241  		return nil, err
 22242  	}
 22243  	req.Header = reqHeaders
 22244  	googleapi.Expand(req.URL, map[string]string{
 22245  		"name": c.name,
 22246  	})
 22247  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22248  }
 22249  
 22250  // Do executes the "dataplex.projects.locations.lakes.zones.get" call.
 22251  // Any non-2xx status code is an error. Response headers are in either
 22252  // *GoogleCloudDataplexV1Zone.ServerResponse.Header or (if a response was
 22253  // returned at all) in error.(*googleapi.Error).Header. Use
 22254  // googleapi.IsNotModified to check whether the returned error was because
 22255  // http.StatusNotModified was returned.
 22256  func (c *ProjectsLocationsLakesZonesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Zone, error) {
 22257  	gensupport.SetOptions(c.urlParams_, opts...)
 22258  	res, err := c.doRequest("json")
 22259  	if res != nil && res.StatusCode == http.StatusNotModified {
 22260  		if res.Body != nil {
 22261  			res.Body.Close()
 22262  		}
 22263  		return nil, gensupport.WrapError(&googleapi.Error{
 22264  			Code:   res.StatusCode,
 22265  			Header: res.Header,
 22266  		})
 22267  	}
 22268  	if err != nil {
 22269  		return nil, err
 22270  	}
 22271  	defer googleapi.CloseBody(res)
 22272  	if err := googleapi.CheckResponse(res); err != nil {
 22273  		return nil, gensupport.WrapError(err)
 22274  	}
 22275  	ret := &GoogleCloudDataplexV1Zone{
 22276  		ServerResponse: googleapi.ServerResponse{
 22277  			Header:         res.Header,
 22278  			HTTPStatusCode: res.StatusCode,
 22279  		},
 22280  	}
 22281  	target := &ret
 22282  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22283  		return nil, err
 22284  	}
 22285  	return ret, nil
 22286  }
 22287  
 22288  type ProjectsLocationsLakesZonesGetIamPolicyCall struct {
 22289  	s            *Service
 22290  	resource     string
 22291  	urlParams_   gensupport.URLParams
 22292  	ifNoneMatch_ string
 22293  	ctx_         context.Context
 22294  	header_      http.Header
 22295  }
 22296  
 22297  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 22298  // empty policy if the resource exists and does not have a policy set.
 22299  //
 22300  //   - resource: REQUIRED: The resource for which the policy is being requested.
 22301  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 22302  //     for the appropriate value for this field.
 22303  func (r *ProjectsLocationsLakesZonesService) GetIamPolicy(resource string) *ProjectsLocationsLakesZonesGetIamPolicyCall {
 22304  	c := &ProjectsLocationsLakesZonesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22305  	c.resource = resource
 22306  	return c
 22307  }
 22308  
 22309  // OptionsRequestedPolicyVersion sets the optional parameter
 22310  // "options.requestedPolicyVersion": The maximum policy version that will be
 22311  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 22312  // an invalid value will be rejected.Requests for policies with any conditional
 22313  // role bindings must specify version 3. Policies with no conditional role
 22314  // bindings may specify any valid value or leave the field unset.The policy in
 22315  // the response might use the policy version that you specified, or it might
 22316  // use a lower policy version. For example, if you specify version 3, but the
 22317  // policy has no conditional role bindings, the response uses version 1.To
 22318  // learn which resources support conditions in their IAM policies, see the IAM
 22319  // documentation
 22320  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 22321  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesZonesGetIamPolicyCall {
 22322  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 22323  	return c
 22324  }
 22325  
 22326  // Fields allows partial responses to be retrieved. See
 22327  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22328  // details.
 22329  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesGetIamPolicyCall {
 22330  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22331  	return c
 22332  }
 22333  
 22334  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22335  // object's ETag matches the given value. This is useful for getting updates
 22336  // only after the object has changed since the last request.
 22337  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesGetIamPolicyCall {
 22338  	c.ifNoneMatch_ = entityTag
 22339  	return c
 22340  }
 22341  
 22342  // Context sets the context to be used in this call's Do method.
 22343  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesGetIamPolicyCall {
 22344  	c.ctx_ = ctx
 22345  	return c
 22346  }
 22347  
 22348  // Header returns a http.Header that can be modified by the caller to add
 22349  // headers to the request.
 22350  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Header() http.Header {
 22351  	if c.header_ == nil {
 22352  		c.header_ = make(http.Header)
 22353  	}
 22354  	return c.header_
 22355  }
 22356  
 22357  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 22358  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22359  	if c.ifNoneMatch_ != "" {
 22360  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22361  	}
 22362  	var body io.Reader = nil
 22363  	c.urlParams_.Set("alt", alt)
 22364  	c.urlParams_.Set("prettyPrint", "false")
 22365  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 22366  	urls += "?" + c.urlParams_.Encode()
 22367  	req, err := http.NewRequest("GET", urls, body)
 22368  	if err != nil {
 22369  		return nil, err
 22370  	}
 22371  	req.Header = reqHeaders
 22372  	googleapi.Expand(req.URL, map[string]string{
 22373  		"resource": c.resource,
 22374  	})
 22375  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22376  }
 22377  
 22378  // Do executes the "dataplex.projects.locations.lakes.zones.getIamPolicy" call.
 22379  // Any non-2xx status code is an error. Response headers are in either
 22380  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 22381  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22382  // check whether the returned error was because http.StatusNotModified was
 22383  // returned.
 22384  func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 22385  	gensupport.SetOptions(c.urlParams_, opts...)
 22386  	res, err := c.doRequest("json")
 22387  	if res != nil && res.StatusCode == http.StatusNotModified {
 22388  		if res.Body != nil {
 22389  			res.Body.Close()
 22390  		}
 22391  		return nil, gensupport.WrapError(&googleapi.Error{
 22392  			Code:   res.StatusCode,
 22393  			Header: res.Header,
 22394  		})
 22395  	}
 22396  	if err != nil {
 22397  		return nil, err
 22398  	}
 22399  	defer googleapi.CloseBody(res)
 22400  	if err := googleapi.CheckResponse(res); err != nil {
 22401  		return nil, gensupport.WrapError(err)
 22402  	}
 22403  	ret := &GoogleIamV1Policy{
 22404  		ServerResponse: googleapi.ServerResponse{
 22405  			Header:         res.Header,
 22406  			HTTPStatusCode: res.StatusCode,
 22407  		},
 22408  	}
 22409  	target := &ret
 22410  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22411  		return nil, err
 22412  	}
 22413  	return ret, nil
 22414  }
 22415  
 22416  type ProjectsLocationsLakesZonesListCall struct {
 22417  	s            *Service
 22418  	parent       string
 22419  	urlParams_   gensupport.URLParams
 22420  	ifNoneMatch_ string
 22421  	ctx_         context.Context
 22422  	header_      http.Header
 22423  }
 22424  
 22425  // List: Lists zone resources in a lake.
 22426  //
 22427  //   - parent: The resource name of the parent lake:
 22428  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
 22429  func (r *ProjectsLocationsLakesZonesService) List(parent string) *ProjectsLocationsLakesZonesListCall {
 22430  	c := &ProjectsLocationsLakesZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22431  	c.parent = parent
 22432  	return c
 22433  }
 22434  
 22435  // Filter sets the optional parameter "filter": Filter request.
 22436  func (c *ProjectsLocationsLakesZonesListCall) Filter(filter string) *ProjectsLocationsLakesZonesListCall {
 22437  	c.urlParams_.Set("filter", filter)
 22438  	return c
 22439  }
 22440  
 22441  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 22442  // result.
 22443  func (c *ProjectsLocationsLakesZonesListCall) OrderBy(orderBy string) *ProjectsLocationsLakesZonesListCall {
 22444  	c.urlParams_.Set("orderBy", orderBy)
 22445  	return c
 22446  }
 22447  
 22448  // PageSize sets the optional parameter "pageSize": Maximum number of zones to
 22449  // return. The service may return fewer than this value. If unspecified, at
 22450  // most 10 zones will be returned. The maximum value is 1000; values above 1000
 22451  // will be coerced to 1000.
 22452  func (c *ProjectsLocationsLakesZonesListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesListCall {
 22453  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22454  	return c
 22455  }
 22456  
 22457  // PageToken sets the optional parameter "pageToken": Page token received from
 22458  // a previous ListZones call. Provide this to retrieve the subsequent page.
 22459  // When paginating, all other parameters provided to ListZones must match the
 22460  // call that provided the page token.
 22461  func (c *ProjectsLocationsLakesZonesListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesListCall {
 22462  	c.urlParams_.Set("pageToken", pageToken)
 22463  	return c
 22464  }
 22465  
 22466  // Fields allows partial responses to be retrieved. See
 22467  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22468  // details.
 22469  func (c *ProjectsLocationsLakesZonesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesListCall {
 22470  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22471  	return c
 22472  }
 22473  
 22474  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22475  // object's ETag matches the given value. This is useful for getting updates
 22476  // only after the object has changed since the last request.
 22477  func (c *ProjectsLocationsLakesZonesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesListCall {
 22478  	c.ifNoneMatch_ = entityTag
 22479  	return c
 22480  }
 22481  
 22482  // Context sets the context to be used in this call's Do method.
 22483  func (c *ProjectsLocationsLakesZonesListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesListCall {
 22484  	c.ctx_ = ctx
 22485  	return c
 22486  }
 22487  
 22488  // Header returns a http.Header that can be modified by the caller to add
 22489  // headers to the request.
 22490  func (c *ProjectsLocationsLakesZonesListCall) Header() http.Header {
 22491  	if c.header_ == nil {
 22492  		c.header_ = make(http.Header)
 22493  	}
 22494  	return c.header_
 22495  }
 22496  
 22497  func (c *ProjectsLocationsLakesZonesListCall) doRequest(alt string) (*http.Response, error) {
 22498  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22499  	if c.ifNoneMatch_ != "" {
 22500  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22501  	}
 22502  	var body io.Reader = nil
 22503  	c.urlParams_.Set("alt", alt)
 22504  	c.urlParams_.Set("prettyPrint", "false")
 22505  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/zones")
 22506  	urls += "?" + c.urlParams_.Encode()
 22507  	req, err := http.NewRequest("GET", urls, body)
 22508  	if err != nil {
 22509  		return nil, err
 22510  	}
 22511  	req.Header = reqHeaders
 22512  	googleapi.Expand(req.URL, map[string]string{
 22513  		"parent": c.parent,
 22514  	})
 22515  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22516  }
 22517  
 22518  // Do executes the "dataplex.projects.locations.lakes.zones.list" call.
 22519  // Any non-2xx status code is an error. Response headers are in either
 22520  // *GoogleCloudDataplexV1ListZonesResponse.ServerResponse.Header or (if a
 22521  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22522  // googleapi.IsNotModified to check whether the returned error was because
 22523  // http.StatusNotModified was returned.
 22524  func (c *ProjectsLocationsLakesZonesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListZonesResponse, error) {
 22525  	gensupport.SetOptions(c.urlParams_, opts...)
 22526  	res, err := c.doRequest("json")
 22527  	if res != nil && res.StatusCode == http.StatusNotModified {
 22528  		if res.Body != nil {
 22529  			res.Body.Close()
 22530  		}
 22531  		return nil, gensupport.WrapError(&googleapi.Error{
 22532  			Code:   res.StatusCode,
 22533  			Header: res.Header,
 22534  		})
 22535  	}
 22536  	if err != nil {
 22537  		return nil, err
 22538  	}
 22539  	defer googleapi.CloseBody(res)
 22540  	if err := googleapi.CheckResponse(res); err != nil {
 22541  		return nil, gensupport.WrapError(err)
 22542  	}
 22543  	ret := &GoogleCloudDataplexV1ListZonesResponse{
 22544  		ServerResponse: googleapi.ServerResponse{
 22545  			Header:         res.Header,
 22546  			HTTPStatusCode: res.StatusCode,
 22547  		},
 22548  	}
 22549  	target := &ret
 22550  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22551  		return nil, err
 22552  	}
 22553  	return ret, nil
 22554  }
 22555  
 22556  // Pages invokes f for each page of results.
 22557  // A non-nil error returned from f will halt the iteration.
 22558  // The provided context supersedes any context provided to the Context method.
 22559  func (c *ProjectsLocationsLakesZonesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListZonesResponse) error) error {
 22560  	c.ctx_ = ctx
 22561  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22562  	for {
 22563  		x, err := c.Do()
 22564  		if err != nil {
 22565  			return err
 22566  		}
 22567  		if err := f(x); err != nil {
 22568  			return err
 22569  		}
 22570  		if x.NextPageToken == "" {
 22571  			return nil
 22572  		}
 22573  		c.PageToken(x.NextPageToken)
 22574  	}
 22575  }
 22576  
 22577  type ProjectsLocationsLakesZonesPatchCall struct {
 22578  	s                         *Service
 22579  	name                      string
 22580  	googleclouddataplexv1zone *GoogleCloudDataplexV1Zone
 22581  	urlParams_                gensupport.URLParams
 22582  	ctx_                      context.Context
 22583  	header_                   http.Header
 22584  }
 22585  
 22586  // Patch: Updates a zone resource.
 22587  //
 22588  //   - name: Output only. The relative resource name of the zone, of the form:
 22589  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 22590  //     ne_id}.
 22591  func (r *ProjectsLocationsLakesZonesService) Patch(name string, googleclouddataplexv1zone *GoogleCloudDataplexV1Zone) *ProjectsLocationsLakesZonesPatchCall {
 22592  	c := &ProjectsLocationsLakesZonesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22593  	c.name = name
 22594  	c.googleclouddataplexv1zone = googleclouddataplexv1zone
 22595  	return c
 22596  }
 22597  
 22598  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 22599  // fields to update.
 22600  func (c *ProjectsLocationsLakesZonesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesZonesPatchCall {
 22601  	c.urlParams_.Set("updateMask", updateMask)
 22602  	return c
 22603  }
 22604  
 22605  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 22606  // request, but do not perform mutations. The default is false.
 22607  func (c *ProjectsLocationsLakesZonesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesPatchCall {
 22608  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 22609  	return c
 22610  }
 22611  
 22612  // Fields allows partial responses to be retrieved. See
 22613  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22614  // details.
 22615  func (c *ProjectsLocationsLakesZonesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesPatchCall {
 22616  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22617  	return c
 22618  }
 22619  
 22620  // Context sets the context to be used in this call's Do method.
 22621  func (c *ProjectsLocationsLakesZonesPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesPatchCall {
 22622  	c.ctx_ = ctx
 22623  	return c
 22624  }
 22625  
 22626  // Header returns a http.Header that can be modified by the caller to add
 22627  // headers to the request.
 22628  func (c *ProjectsLocationsLakesZonesPatchCall) Header() http.Header {
 22629  	if c.header_ == nil {
 22630  		c.header_ = make(http.Header)
 22631  	}
 22632  	return c.header_
 22633  }
 22634  
 22635  func (c *ProjectsLocationsLakesZonesPatchCall) doRequest(alt string) (*http.Response, error) {
 22636  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22637  	var body io.Reader = nil
 22638  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1zone)
 22639  	if err != nil {
 22640  		return nil, err
 22641  	}
 22642  	c.urlParams_.Set("alt", alt)
 22643  	c.urlParams_.Set("prettyPrint", "false")
 22644  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 22645  	urls += "?" + c.urlParams_.Encode()
 22646  	req, err := http.NewRequest("PATCH", urls, body)
 22647  	if err != nil {
 22648  		return nil, err
 22649  	}
 22650  	req.Header = reqHeaders
 22651  	googleapi.Expand(req.URL, map[string]string{
 22652  		"name": c.name,
 22653  	})
 22654  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22655  }
 22656  
 22657  // Do executes the "dataplex.projects.locations.lakes.zones.patch" call.
 22658  // Any non-2xx status code is an error. Response headers are in either
 22659  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22660  // returned at all) in error.(*googleapi.Error).Header. Use
 22661  // googleapi.IsNotModified to check whether the returned error was because
 22662  // http.StatusNotModified was returned.
 22663  func (c *ProjectsLocationsLakesZonesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22664  	gensupport.SetOptions(c.urlParams_, opts...)
 22665  	res, err := c.doRequest("json")
 22666  	if res != nil && res.StatusCode == http.StatusNotModified {
 22667  		if res.Body != nil {
 22668  			res.Body.Close()
 22669  		}
 22670  		return nil, gensupport.WrapError(&googleapi.Error{
 22671  			Code:   res.StatusCode,
 22672  			Header: res.Header,
 22673  		})
 22674  	}
 22675  	if err != nil {
 22676  		return nil, err
 22677  	}
 22678  	defer googleapi.CloseBody(res)
 22679  	if err := googleapi.CheckResponse(res); err != nil {
 22680  		return nil, gensupport.WrapError(err)
 22681  	}
 22682  	ret := &GoogleLongrunningOperation{
 22683  		ServerResponse: googleapi.ServerResponse{
 22684  			Header:         res.Header,
 22685  			HTTPStatusCode: res.StatusCode,
 22686  		},
 22687  	}
 22688  	target := &ret
 22689  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22690  		return nil, err
 22691  	}
 22692  	return ret, nil
 22693  }
 22694  
 22695  type ProjectsLocationsLakesZonesSetIamPolicyCall struct {
 22696  	s                              *Service
 22697  	resource                       string
 22698  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 22699  	urlParams_                     gensupport.URLParams
 22700  	ctx_                           context.Context
 22701  	header_                        http.Header
 22702  }
 22703  
 22704  // SetIamPolicy: Sets the access control policy on the specified resource.
 22705  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 22706  // PERMISSION_DENIED errors.
 22707  //
 22708  //   - resource: REQUIRED: The resource for which the policy is being specified.
 22709  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 22710  //     for the appropriate value for this field.
 22711  func (r *ProjectsLocationsLakesZonesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesZonesSetIamPolicyCall {
 22712  	c := &ProjectsLocationsLakesZonesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22713  	c.resource = resource
 22714  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 22715  	return c
 22716  }
 22717  
 22718  // Fields allows partial responses to be retrieved. See
 22719  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22720  // details.
 22721  func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesSetIamPolicyCall {
 22722  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22723  	return c
 22724  }
 22725  
 22726  // Context sets the context to be used in this call's Do method.
 22727  func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesSetIamPolicyCall {
 22728  	c.ctx_ = ctx
 22729  	return c
 22730  }
 22731  
 22732  // Header returns a http.Header that can be modified by the caller to add
 22733  // headers to the request.
 22734  func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Header() http.Header {
 22735  	if c.header_ == nil {
 22736  		c.header_ = make(http.Header)
 22737  	}
 22738  	return c.header_
 22739  }
 22740  
 22741  func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 22742  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22743  	var body io.Reader = nil
 22744  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 22745  	if err != nil {
 22746  		return nil, err
 22747  	}
 22748  	c.urlParams_.Set("alt", alt)
 22749  	c.urlParams_.Set("prettyPrint", "false")
 22750  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 22751  	urls += "?" + c.urlParams_.Encode()
 22752  	req, err := http.NewRequest("POST", urls, body)
 22753  	if err != nil {
 22754  		return nil, err
 22755  	}
 22756  	req.Header = reqHeaders
 22757  	googleapi.Expand(req.URL, map[string]string{
 22758  		"resource": c.resource,
 22759  	})
 22760  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22761  }
 22762  
 22763  // Do executes the "dataplex.projects.locations.lakes.zones.setIamPolicy" call.
 22764  // Any non-2xx status code is an error. Response headers are in either
 22765  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 22766  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22767  // check whether the returned error was because http.StatusNotModified was
 22768  // returned.
 22769  func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 22770  	gensupport.SetOptions(c.urlParams_, opts...)
 22771  	res, err := c.doRequest("json")
 22772  	if res != nil && res.StatusCode == http.StatusNotModified {
 22773  		if res.Body != nil {
 22774  			res.Body.Close()
 22775  		}
 22776  		return nil, gensupport.WrapError(&googleapi.Error{
 22777  			Code:   res.StatusCode,
 22778  			Header: res.Header,
 22779  		})
 22780  	}
 22781  	if err != nil {
 22782  		return nil, err
 22783  	}
 22784  	defer googleapi.CloseBody(res)
 22785  	if err := googleapi.CheckResponse(res); err != nil {
 22786  		return nil, gensupport.WrapError(err)
 22787  	}
 22788  	ret := &GoogleIamV1Policy{
 22789  		ServerResponse: googleapi.ServerResponse{
 22790  			Header:         res.Header,
 22791  			HTTPStatusCode: res.StatusCode,
 22792  		},
 22793  	}
 22794  	target := &ret
 22795  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22796  		return nil, err
 22797  	}
 22798  	return ret, nil
 22799  }
 22800  
 22801  type ProjectsLocationsLakesZonesTestIamPermissionsCall struct {
 22802  	s                                    *Service
 22803  	resource                             string
 22804  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 22805  	urlParams_                           gensupport.URLParams
 22806  	ctx_                                 context.Context
 22807  	header_                              http.Header
 22808  }
 22809  
 22810  // TestIamPermissions: Returns permissions that a caller has on the specified
 22811  // resource. If the resource does not exist, this will return an empty set of
 22812  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 22813  // used for building permission-aware UIs and command-line tools, not for
 22814  // authorization checking. This operation may "fail open" without warning.
 22815  //
 22816  //   - resource: REQUIRED: The resource for which the policy detail is being
 22817  //     requested. See Resource names
 22818  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 22819  //     value for this field.
 22820  func (r *ProjectsLocationsLakesZonesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesZonesTestIamPermissionsCall {
 22821  	c := &ProjectsLocationsLakesZonesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22822  	c.resource = resource
 22823  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 22824  	return c
 22825  }
 22826  
 22827  // Fields allows partial responses to be retrieved. See
 22828  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22829  // details.
 22830  func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesTestIamPermissionsCall {
 22831  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22832  	return c
 22833  }
 22834  
 22835  // Context sets the context to be used in this call's Do method.
 22836  func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesTestIamPermissionsCall {
 22837  	c.ctx_ = ctx
 22838  	return c
 22839  }
 22840  
 22841  // Header returns a http.Header that can be modified by the caller to add
 22842  // headers to the request.
 22843  func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Header() http.Header {
 22844  	if c.header_ == nil {
 22845  		c.header_ = make(http.Header)
 22846  	}
 22847  	return c.header_
 22848  }
 22849  
 22850  func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 22851  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22852  	var body io.Reader = nil
 22853  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 22854  	if err != nil {
 22855  		return nil, err
 22856  	}
 22857  	c.urlParams_.Set("alt", alt)
 22858  	c.urlParams_.Set("prettyPrint", "false")
 22859  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 22860  	urls += "?" + c.urlParams_.Encode()
 22861  	req, err := http.NewRequest("POST", urls, body)
 22862  	if err != nil {
 22863  		return nil, err
 22864  	}
 22865  	req.Header = reqHeaders
 22866  	googleapi.Expand(req.URL, map[string]string{
 22867  		"resource": c.resource,
 22868  	})
 22869  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22870  }
 22871  
 22872  // Do executes the "dataplex.projects.locations.lakes.zones.testIamPermissions" call.
 22873  // Any non-2xx status code is an error. Response headers are in either
 22874  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 22875  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22876  // googleapi.IsNotModified to check whether the returned error was because
 22877  // http.StatusNotModified was returned.
 22878  func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 22879  	gensupport.SetOptions(c.urlParams_, opts...)
 22880  	res, err := c.doRequest("json")
 22881  	if res != nil && res.StatusCode == http.StatusNotModified {
 22882  		if res.Body != nil {
 22883  			res.Body.Close()
 22884  		}
 22885  		return nil, gensupport.WrapError(&googleapi.Error{
 22886  			Code:   res.StatusCode,
 22887  			Header: res.Header,
 22888  		})
 22889  	}
 22890  	if err != nil {
 22891  		return nil, err
 22892  	}
 22893  	defer googleapi.CloseBody(res)
 22894  	if err := googleapi.CheckResponse(res); err != nil {
 22895  		return nil, gensupport.WrapError(err)
 22896  	}
 22897  	ret := &GoogleIamV1TestIamPermissionsResponse{
 22898  		ServerResponse: googleapi.ServerResponse{
 22899  			Header:         res.Header,
 22900  			HTTPStatusCode: res.StatusCode,
 22901  		},
 22902  	}
 22903  	target := &ret
 22904  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22905  		return nil, err
 22906  	}
 22907  	return ret, nil
 22908  }
 22909  
 22910  type ProjectsLocationsLakesZonesActionsListCall struct {
 22911  	s            *Service
 22912  	parent       string
 22913  	urlParams_   gensupport.URLParams
 22914  	ifNoneMatch_ string
 22915  	ctx_         context.Context
 22916  	header_      http.Header
 22917  }
 22918  
 22919  // List: Lists action resources in a zone.
 22920  //
 22921  //   - parent: The resource name of the parent zone:
 22922  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 22923  //     ne_id}.
 22924  func (r *ProjectsLocationsLakesZonesActionsService) List(parent string) *ProjectsLocationsLakesZonesActionsListCall {
 22925  	c := &ProjectsLocationsLakesZonesActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22926  	c.parent = parent
 22927  	return c
 22928  }
 22929  
 22930  // PageSize sets the optional parameter "pageSize": Maximum number of actions
 22931  // to return. The service may return fewer than this value. If unspecified, at
 22932  // most 10 actions will be returned. The maximum value is 1000; values above
 22933  // 1000 will be coerced to 1000.
 22934  func (c *ProjectsLocationsLakesZonesActionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesActionsListCall {
 22935  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22936  	return c
 22937  }
 22938  
 22939  // PageToken sets the optional parameter "pageToken": Page token received from
 22940  // a previous ListZoneActions call. Provide this to retrieve the subsequent
 22941  // page. When paginating, all other parameters provided to ListZoneActions must
 22942  // match the call that provided the page token.
 22943  func (c *ProjectsLocationsLakesZonesActionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesActionsListCall {
 22944  	c.urlParams_.Set("pageToken", pageToken)
 22945  	return c
 22946  }
 22947  
 22948  // Fields allows partial responses to be retrieved. See
 22949  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22950  // details.
 22951  func (c *ProjectsLocationsLakesZonesActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesActionsListCall {
 22952  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22953  	return c
 22954  }
 22955  
 22956  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22957  // object's ETag matches the given value. This is useful for getting updates
 22958  // only after the object has changed since the last request.
 22959  func (c *ProjectsLocationsLakesZonesActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesActionsListCall {
 22960  	c.ifNoneMatch_ = entityTag
 22961  	return c
 22962  }
 22963  
 22964  // Context sets the context to be used in this call's Do method.
 22965  func (c *ProjectsLocationsLakesZonesActionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesActionsListCall {
 22966  	c.ctx_ = ctx
 22967  	return c
 22968  }
 22969  
 22970  // Header returns a http.Header that can be modified by the caller to add
 22971  // headers to the request.
 22972  func (c *ProjectsLocationsLakesZonesActionsListCall) Header() http.Header {
 22973  	if c.header_ == nil {
 22974  		c.header_ = make(http.Header)
 22975  	}
 22976  	return c.header_
 22977  }
 22978  
 22979  func (c *ProjectsLocationsLakesZonesActionsListCall) doRequest(alt string) (*http.Response, error) {
 22980  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22981  	if c.ifNoneMatch_ != "" {
 22982  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22983  	}
 22984  	var body io.Reader = nil
 22985  	c.urlParams_.Set("alt", alt)
 22986  	c.urlParams_.Set("prettyPrint", "false")
 22987  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/actions")
 22988  	urls += "?" + c.urlParams_.Encode()
 22989  	req, err := http.NewRequest("GET", urls, body)
 22990  	if err != nil {
 22991  		return nil, err
 22992  	}
 22993  	req.Header = reqHeaders
 22994  	googleapi.Expand(req.URL, map[string]string{
 22995  		"parent": c.parent,
 22996  	})
 22997  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22998  }
 22999  
 23000  // Do executes the "dataplex.projects.locations.lakes.zones.actions.list" call.
 23001  // Any non-2xx status code is an error. Response headers are in either
 23002  // *GoogleCloudDataplexV1ListActionsResponse.ServerResponse.Header or (if a
 23003  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23004  // googleapi.IsNotModified to check whether the returned error was because
 23005  // http.StatusNotModified was returned.
 23006  func (c *ProjectsLocationsLakesZonesActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListActionsResponse, error) {
 23007  	gensupport.SetOptions(c.urlParams_, opts...)
 23008  	res, err := c.doRequest("json")
 23009  	if res != nil && res.StatusCode == http.StatusNotModified {
 23010  		if res.Body != nil {
 23011  			res.Body.Close()
 23012  		}
 23013  		return nil, gensupport.WrapError(&googleapi.Error{
 23014  			Code:   res.StatusCode,
 23015  			Header: res.Header,
 23016  		})
 23017  	}
 23018  	if err != nil {
 23019  		return nil, err
 23020  	}
 23021  	defer googleapi.CloseBody(res)
 23022  	if err := googleapi.CheckResponse(res); err != nil {
 23023  		return nil, gensupport.WrapError(err)
 23024  	}
 23025  	ret := &GoogleCloudDataplexV1ListActionsResponse{
 23026  		ServerResponse: googleapi.ServerResponse{
 23027  			Header:         res.Header,
 23028  			HTTPStatusCode: res.StatusCode,
 23029  		},
 23030  	}
 23031  	target := &ret
 23032  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23033  		return nil, err
 23034  	}
 23035  	return ret, nil
 23036  }
 23037  
 23038  // Pages invokes f for each page of results.
 23039  // A non-nil error returned from f will halt the iteration.
 23040  // The provided context supersedes any context provided to the Context method.
 23041  func (c *ProjectsLocationsLakesZonesActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListActionsResponse) error) error {
 23042  	c.ctx_ = ctx
 23043  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23044  	for {
 23045  		x, err := c.Do()
 23046  		if err != nil {
 23047  			return err
 23048  		}
 23049  		if err := f(x); err != nil {
 23050  			return err
 23051  		}
 23052  		if x.NextPageToken == "" {
 23053  			return nil
 23054  		}
 23055  		c.PageToken(x.NextPageToken)
 23056  	}
 23057  }
 23058  
 23059  type ProjectsLocationsLakesZonesAssetsCreateCall struct {
 23060  	s                          *Service
 23061  	parent                     string
 23062  	googleclouddataplexv1asset *GoogleCloudDataplexV1Asset
 23063  	urlParams_                 gensupport.URLParams
 23064  	ctx_                       context.Context
 23065  	header_                    http.Header
 23066  }
 23067  
 23068  // Create: Creates an asset resource.
 23069  //
 23070  //   - parent: The resource name of the parent zone:
 23071  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 23072  //     ne_id}.
 23073  func (r *ProjectsLocationsLakesZonesAssetsService) Create(parent string, googleclouddataplexv1asset *GoogleCloudDataplexV1Asset) *ProjectsLocationsLakesZonesAssetsCreateCall {
 23074  	c := &ProjectsLocationsLakesZonesAssetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23075  	c.parent = parent
 23076  	c.googleclouddataplexv1asset = googleclouddataplexv1asset
 23077  	return c
 23078  }
 23079  
 23080  // AssetId sets the optional parameter "assetId": Required. Asset identifier.
 23081  // This ID will be used to generate names such as table names when publishing
 23082  // metadata to Hive Metastore and BigQuery. * Must contain only lowercase
 23083  // letters, numbers and hyphens. * Must start with a letter. * Must end with a
 23084  // number or a letter. * Must be between 1-63 characters. * Must be unique
 23085  // within the zone.
 23086  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) AssetId(assetId string) *ProjectsLocationsLakesZonesAssetsCreateCall {
 23087  	c.urlParams_.Set("assetId", assetId)
 23088  	return c
 23089  }
 23090  
 23091  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 23092  // request, but do not perform mutations. The default is false.
 23093  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesAssetsCreateCall {
 23094  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 23095  	return c
 23096  }
 23097  
 23098  // Fields allows partial responses to be retrieved. See
 23099  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23100  // details.
 23101  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsCreateCall {
 23102  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23103  	return c
 23104  }
 23105  
 23106  // Context sets the context to be used in this call's Do method.
 23107  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsCreateCall {
 23108  	c.ctx_ = ctx
 23109  	return c
 23110  }
 23111  
 23112  // Header returns a http.Header that can be modified by the caller to add
 23113  // headers to the request.
 23114  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Header() http.Header {
 23115  	if c.header_ == nil {
 23116  		c.header_ = make(http.Header)
 23117  	}
 23118  	return c.header_
 23119  }
 23120  
 23121  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) doRequest(alt string) (*http.Response, error) {
 23122  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23123  	var body io.Reader = nil
 23124  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1asset)
 23125  	if err != nil {
 23126  		return nil, err
 23127  	}
 23128  	c.urlParams_.Set("alt", alt)
 23129  	c.urlParams_.Set("prettyPrint", "false")
 23130  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets")
 23131  	urls += "?" + c.urlParams_.Encode()
 23132  	req, err := http.NewRequest("POST", urls, body)
 23133  	if err != nil {
 23134  		return nil, err
 23135  	}
 23136  	req.Header = reqHeaders
 23137  	googleapi.Expand(req.URL, map[string]string{
 23138  		"parent": c.parent,
 23139  	})
 23140  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23141  }
 23142  
 23143  // Do executes the "dataplex.projects.locations.lakes.zones.assets.create" call.
 23144  // Any non-2xx status code is an error. Response headers are in either
 23145  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23146  // returned at all) in error.(*googleapi.Error).Header. Use
 23147  // googleapi.IsNotModified to check whether the returned error was because
 23148  // http.StatusNotModified was returned.
 23149  func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23150  	gensupport.SetOptions(c.urlParams_, opts...)
 23151  	res, err := c.doRequest("json")
 23152  	if res != nil && res.StatusCode == http.StatusNotModified {
 23153  		if res.Body != nil {
 23154  			res.Body.Close()
 23155  		}
 23156  		return nil, gensupport.WrapError(&googleapi.Error{
 23157  			Code:   res.StatusCode,
 23158  			Header: res.Header,
 23159  		})
 23160  	}
 23161  	if err != nil {
 23162  		return nil, err
 23163  	}
 23164  	defer googleapi.CloseBody(res)
 23165  	if err := googleapi.CheckResponse(res); err != nil {
 23166  		return nil, gensupport.WrapError(err)
 23167  	}
 23168  	ret := &GoogleLongrunningOperation{
 23169  		ServerResponse: googleapi.ServerResponse{
 23170  			Header:         res.Header,
 23171  			HTTPStatusCode: res.StatusCode,
 23172  		},
 23173  	}
 23174  	target := &ret
 23175  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23176  		return nil, err
 23177  	}
 23178  	return ret, nil
 23179  }
 23180  
 23181  type ProjectsLocationsLakesZonesAssetsDeleteCall struct {
 23182  	s          *Service
 23183  	name       string
 23184  	urlParams_ gensupport.URLParams
 23185  	ctx_       context.Context
 23186  	header_    http.Header
 23187  }
 23188  
 23189  // Delete: Deletes an asset resource. The referenced storage resource is
 23190  // detached (default) or deleted based on the associated Lifecycle policy.
 23191  //
 23192  //   - name: The resource name of the asset:
 23193  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 23194  //     ne_id}/assets/{asset_id}.
 23195  func (r *ProjectsLocationsLakesZonesAssetsService) Delete(name string) *ProjectsLocationsLakesZonesAssetsDeleteCall {
 23196  	c := &ProjectsLocationsLakesZonesAssetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23197  	c.name = name
 23198  	return c
 23199  }
 23200  
 23201  // Fields allows partial responses to be retrieved. See
 23202  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23203  // details.
 23204  func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsDeleteCall {
 23205  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23206  	return c
 23207  }
 23208  
 23209  // Context sets the context to be used in this call's Do method.
 23210  func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsDeleteCall {
 23211  	c.ctx_ = ctx
 23212  	return c
 23213  }
 23214  
 23215  // Header returns a http.Header that can be modified by the caller to add
 23216  // headers to the request.
 23217  func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Header() http.Header {
 23218  	if c.header_ == nil {
 23219  		c.header_ = make(http.Header)
 23220  	}
 23221  	return c.header_
 23222  }
 23223  
 23224  func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) doRequest(alt string) (*http.Response, error) {
 23225  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23226  	var body io.Reader = nil
 23227  	c.urlParams_.Set("alt", alt)
 23228  	c.urlParams_.Set("prettyPrint", "false")
 23229  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23230  	urls += "?" + c.urlParams_.Encode()
 23231  	req, err := http.NewRequest("DELETE", urls, body)
 23232  	if err != nil {
 23233  		return nil, err
 23234  	}
 23235  	req.Header = reqHeaders
 23236  	googleapi.Expand(req.URL, map[string]string{
 23237  		"name": c.name,
 23238  	})
 23239  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23240  }
 23241  
 23242  // Do executes the "dataplex.projects.locations.lakes.zones.assets.delete" call.
 23243  // Any non-2xx status code is an error. Response headers are in either
 23244  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23245  // returned at all) in error.(*googleapi.Error).Header. Use
 23246  // googleapi.IsNotModified to check whether the returned error was because
 23247  // http.StatusNotModified was returned.
 23248  func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23249  	gensupport.SetOptions(c.urlParams_, opts...)
 23250  	res, err := c.doRequest("json")
 23251  	if res != nil && res.StatusCode == http.StatusNotModified {
 23252  		if res.Body != nil {
 23253  			res.Body.Close()
 23254  		}
 23255  		return nil, gensupport.WrapError(&googleapi.Error{
 23256  			Code:   res.StatusCode,
 23257  			Header: res.Header,
 23258  		})
 23259  	}
 23260  	if err != nil {
 23261  		return nil, err
 23262  	}
 23263  	defer googleapi.CloseBody(res)
 23264  	if err := googleapi.CheckResponse(res); err != nil {
 23265  		return nil, gensupport.WrapError(err)
 23266  	}
 23267  	ret := &GoogleLongrunningOperation{
 23268  		ServerResponse: googleapi.ServerResponse{
 23269  			Header:         res.Header,
 23270  			HTTPStatusCode: res.StatusCode,
 23271  		},
 23272  	}
 23273  	target := &ret
 23274  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23275  		return nil, err
 23276  	}
 23277  	return ret, nil
 23278  }
 23279  
 23280  type ProjectsLocationsLakesZonesAssetsGetCall struct {
 23281  	s            *Service
 23282  	name         string
 23283  	urlParams_   gensupport.URLParams
 23284  	ifNoneMatch_ string
 23285  	ctx_         context.Context
 23286  	header_      http.Header
 23287  }
 23288  
 23289  // Get: Retrieves an asset resource.
 23290  //
 23291  //   - name: The resource name of the asset:
 23292  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 23293  //     ne_id}/assets/{asset_id}.
 23294  func (r *ProjectsLocationsLakesZonesAssetsService) Get(name string) *ProjectsLocationsLakesZonesAssetsGetCall {
 23295  	c := &ProjectsLocationsLakesZonesAssetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23296  	c.name = name
 23297  	return c
 23298  }
 23299  
 23300  // Fields allows partial responses to be retrieved. See
 23301  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23302  // details.
 23303  func (c *ProjectsLocationsLakesZonesAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsGetCall {
 23304  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23305  	return c
 23306  }
 23307  
 23308  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23309  // object's ETag matches the given value. This is useful for getting updates
 23310  // only after the object has changed since the last request.
 23311  func (c *ProjectsLocationsLakesZonesAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsGetCall {
 23312  	c.ifNoneMatch_ = entityTag
 23313  	return c
 23314  }
 23315  
 23316  // Context sets the context to be used in this call's Do method.
 23317  func (c *ProjectsLocationsLakesZonesAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsGetCall {
 23318  	c.ctx_ = ctx
 23319  	return c
 23320  }
 23321  
 23322  // Header returns a http.Header that can be modified by the caller to add
 23323  // headers to the request.
 23324  func (c *ProjectsLocationsLakesZonesAssetsGetCall) Header() http.Header {
 23325  	if c.header_ == nil {
 23326  		c.header_ = make(http.Header)
 23327  	}
 23328  	return c.header_
 23329  }
 23330  
 23331  func (c *ProjectsLocationsLakesZonesAssetsGetCall) doRequest(alt string) (*http.Response, error) {
 23332  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23333  	if c.ifNoneMatch_ != "" {
 23334  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23335  	}
 23336  	var body io.Reader = nil
 23337  	c.urlParams_.Set("alt", alt)
 23338  	c.urlParams_.Set("prettyPrint", "false")
 23339  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23340  	urls += "?" + c.urlParams_.Encode()
 23341  	req, err := http.NewRequest("GET", urls, body)
 23342  	if err != nil {
 23343  		return nil, err
 23344  	}
 23345  	req.Header = reqHeaders
 23346  	googleapi.Expand(req.URL, map[string]string{
 23347  		"name": c.name,
 23348  	})
 23349  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23350  }
 23351  
 23352  // Do executes the "dataplex.projects.locations.lakes.zones.assets.get" call.
 23353  // Any non-2xx status code is an error. Response headers are in either
 23354  // *GoogleCloudDataplexV1Asset.ServerResponse.Header or (if a response was
 23355  // returned at all) in error.(*googleapi.Error).Header. Use
 23356  // googleapi.IsNotModified to check whether the returned error was because
 23357  // http.StatusNotModified was returned.
 23358  func (c *ProjectsLocationsLakesZonesAssetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Asset, error) {
 23359  	gensupport.SetOptions(c.urlParams_, opts...)
 23360  	res, err := c.doRequest("json")
 23361  	if res != nil && res.StatusCode == http.StatusNotModified {
 23362  		if res.Body != nil {
 23363  			res.Body.Close()
 23364  		}
 23365  		return nil, gensupport.WrapError(&googleapi.Error{
 23366  			Code:   res.StatusCode,
 23367  			Header: res.Header,
 23368  		})
 23369  	}
 23370  	if err != nil {
 23371  		return nil, err
 23372  	}
 23373  	defer googleapi.CloseBody(res)
 23374  	if err := googleapi.CheckResponse(res); err != nil {
 23375  		return nil, gensupport.WrapError(err)
 23376  	}
 23377  	ret := &GoogleCloudDataplexV1Asset{
 23378  		ServerResponse: googleapi.ServerResponse{
 23379  			Header:         res.Header,
 23380  			HTTPStatusCode: res.StatusCode,
 23381  		},
 23382  	}
 23383  	target := &ret
 23384  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23385  		return nil, err
 23386  	}
 23387  	return ret, nil
 23388  }
 23389  
 23390  type ProjectsLocationsLakesZonesAssetsGetIamPolicyCall struct {
 23391  	s            *Service
 23392  	resource     string
 23393  	urlParams_   gensupport.URLParams
 23394  	ifNoneMatch_ string
 23395  	ctx_         context.Context
 23396  	header_      http.Header
 23397  }
 23398  
 23399  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 23400  // empty policy if the resource exists and does not have a policy set.
 23401  //
 23402  //   - resource: REQUIRED: The resource for which the policy is being requested.
 23403  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 23404  //     for the appropriate value for this field.
 23405  func (r *ProjectsLocationsLakesZonesAssetsService) GetIamPolicy(resource string) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
 23406  	c := &ProjectsLocationsLakesZonesAssetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23407  	c.resource = resource
 23408  	return c
 23409  }
 23410  
 23411  // OptionsRequestedPolicyVersion sets the optional parameter
 23412  // "options.requestedPolicyVersion": The maximum policy version that will be
 23413  // used to format the policy.Valid values are 0, 1, and 3. Requests specifying
 23414  // an invalid value will be rejected.Requests for policies with any conditional
 23415  // role bindings must specify version 3. Policies with no conditional role
 23416  // bindings may specify any valid value or leave the field unset.The policy in
 23417  // the response might use the policy version that you specified, or it might
 23418  // use a lower policy version. For example, if you specify version 3, but the
 23419  // policy has no conditional role bindings, the response uses version 1.To
 23420  // learn which resources support conditions in their IAM policies, see the IAM
 23421  // documentation
 23422  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 23423  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
 23424  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 23425  	return c
 23426  }
 23427  
 23428  // Fields allows partial responses to be retrieved. See
 23429  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23430  // details.
 23431  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
 23432  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23433  	return c
 23434  }
 23435  
 23436  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23437  // object's ETag matches the given value. This is useful for getting updates
 23438  // only after the object has changed since the last request.
 23439  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
 23440  	c.ifNoneMatch_ = entityTag
 23441  	return c
 23442  }
 23443  
 23444  // Context sets the context to be used in this call's Do method.
 23445  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
 23446  	c.ctx_ = ctx
 23447  	return c
 23448  }
 23449  
 23450  // Header returns a http.Header that can be modified by the caller to add
 23451  // headers to the request.
 23452  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Header() http.Header {
 23453  	if c.header_ == nil {
 23454  		c.header_ = make(http.Header)
 23455  	}
 23456  	return c.header_
 23457  }
 23458  
 23459  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 23460  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23461  	if c.ifNoneMatch_ != "" {
 23462  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23463  	}
 23464  	var body io.Reader = nil
 23465  	c.urlParams_.Set("alt", alt)
 23466  	c.urlParams_.Set("prettyPrint", "false")
 23467  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
 23468  	urls += "?" + c.urlParams_.Encode()
 23469  	req, err := http.NewRequest("GET", urls, body)
 23470  	if err != nil {
 23471  		return nil, err
 23472  	}
 23473  	req.Header = reqHeaders
 23474  	googleapi.Expand(req.URL, map[string]string{
 23475  		"resource": c.resource,
 23476  	})
 23477  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23478  }
 23479  
 23480  // Do executes the "dataplex.projects.locations.lakes.zones.assets.getIamPolicy" call.
 23481  // Any non-2xx status code is an error. Response headers are in either
 23482  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 23483  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23484  // check whether the returned error was because http.StatusNotModified was
 23485  // returned.
 23486  func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 23487  	gensupport.SetOptions(c.urlParams_, opts...)
 23488  	res, err := c.doRequest("json")
 23489  	if res != nil && res.StatusCode == http.StatusNotModified {
 23490  		if res.Body != nil {
 23491  			res.Body.Close()
 23492  		}
 23493  		return nil, gensupport.WrapError(&googleapi.Error{
 23494  			Code:   res.StatusCode,
 23495  			Header: res.Header,
 23496  		})
 23497  	}
 23498  	if err != nil {
 23499  		return nil, err
 23500  	}
 23501  	defer googleapi.CloseBody(res)
 23502  	if err := googleapi.CheckResponse(res); err != nil {
 23503  		return nil, gensupport.WrapError(err)
 23504  	}
 23505  	ret := &GoogleIamV1Policy{
 23506  		ServerResponse: googleapi.ServerResponse{
 23507  			Header:         res.Header,
 23508  			HTTPStatusCode: res.StatusCode,
 23509  		},
 23510  	}
 23511  	target := &ret
 23512  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23513  		return nil, err
 23514  	}
 23515  	return ret, nil
 23516  }
 23517  
 23518  type ProjectsLocationsLakesZonesAssetsListCall struct {
 23519  	s            *Service
 23520  	parent       string
 23521  	urlParams_   gensupport.URLParams
 23522  	ifNoneMatch_ string
 23523  	ctx_         context.Context
 23524  	header_      http.Header
 23525  }
 23526  
 23527  // List: Lists asset resources in a zone.
 23528  //
 23529  //   - parent: The resource name of the parent zone:
 23530  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 23531  //     ne_id}.
 23532  func (r *ProjectsLocationsLakesZonesAssetsService) List(parent string) *ProjectsLocationsLakesZonesAssetsListCall {
 23533  	c := &ProjectsLocationsLakesZonesAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23534  	c.parent = parent
 23535  	return c
 23536  }
 23537  
 23538  // Filter sets the optional parameter "filter": Filter request.
 23539  func (c *ProjectsLocationsLakesZonesAssetsListCall) Filter(filter string) *ProjectsLocationsLakesZonesAssetsListCall {
 23540  	c.urlParams_.Set("filter", filter)
 23541  	return c
 23542  }
 23543  
 23544  // OrderBy sets the optional parameter "orderBy": Order by fields for the
 23545  // result.
 23546  func (c *ProjectsLocationsLakesZonesAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsLakesZonesAssetsListCall {
 23547  	c.urlParams_.Set("orderBy", orderBy)
 23548  	return c
 23549  }
 23550  
 23551  // PageSize sets the optional parameter "pageSize": Maximum number of asset to
 23552  // return. The service may return fewer than this value. If unspecified, at
 23553  // most 10 assets will be returned. The maximum value is 1000; values above
 23554  // 1000 will be coerced to 1000.
 23555  func (c *ProjectsLocationsLakesZonesAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesAssetsListCall {
 23556  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23557  	return c
 23558  }
 23559  
 23560  // PageToken sets the optional parameter "pageToken": Page token received from
 23561  // a previous ListAssets call. Provide this to retrieve the subsequent page.
 23562  // When paginating, all other parameters provided to ListAssets must match the
 23563  // call that provided the page token.
 23564  func (c *ProjectsLocationsLakesZonesAssetsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesAssetsListCall {
 23565  	c.urlParams_.Set("pageToken", pageToken)
 23566  	return c
 23567  }
 23568  
 23569  // Fields allows partial responses to be retrieved. See
 23570  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23571  // details.
 23572  func (c *ProjectsLocationsLakesZonesAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsListCall {
 23573  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23574  	return c
 23575  }
 23576  
 23577  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23578  // object's ETag matches the given value. This is useful for getting updates
 23579  // only after the object has changed since the last request.
 23580  func (c *ProjectsLocationsLakesZonesAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsListCall {
 23581  	c.ifNoneMatch_ = entityTag
 23582  	return c
 23583  }
 23584  
 23585  // Context sets the context to be used in this call's Do method.
 23586  func (c *ProjectsLocationsLakesZonesAssetsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsListCall {
 23587  	c.ctx_ = ctx
 23588  	return c
 23589  }
 23590  
 23591  // Header returns a http.Header that can be modified by the caller to add
 23592  // headers to the request.
 23593  func (c *ProjectsLocationsLakesZonesAssetsListCall) Header() http.Header {
 23594  	if c.header_ == nil {
 23595  		c.header_ = make(http.Header)
 23596  	}
 23597  	return c.header_
 23598  }
 23599  
 23600  func (c *ProjectsLocationsLakesZonesAssetsListCall) doRequest(alt string) (*http.Response, error) {
 23601  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23602  	if c.ifNoneMatch_ != "" {
 23603  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23604  	}
 23605  	var body io.Reader = nil
 23606  	c.urlParams_.Set("alt", alt)
 23607  	c.urlParams_.Set("prettyPrint", "false")
 23608  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets")
 23609  	urls += "?" + c.urlParams_.Encode()
 23610  	req, err := http.NewRequest("GET", urls, body)
 23611  	if err != nil {
 23612  		return nil, err
 23613  	}
 23614  	req.Header = reqHeaders
 23615  	googleapi.Expand(req.URL, map[string]string{
 23616  		"parent": c.parent,
 23617  	})
 23618  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23619  }
 23620  
 23621  // Do executes the "dataplex.projects.locations.lakes.zones.assets.list" call.
 23622  // Any non-2xx status code is an error. Response headers are in either
 23623  // *GoogleCloudDataplexV1ListAssetsResponse.ServerResponse.Header or (if a
 23624  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23625  // googleapi.IsNotModified to check whether the returned error was because
 23626  // http.StatusNotModified was returned.
 23627  func (c *ProjectsLocationsLakesZonesAssetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListAssetsResponse, error) {
 23628  	gensupport.SetOptions(c.urlParams_, opts...)
 23629  	res, err := c.doRequest("json")
 23630  	if res != nil && res.StatusCode == http.StatusNotModified {
 23631  		if res.Body != nil {
 23632  			res.Body.Close()
 23633  		}
 23634  		return nil, gensupport.WrapError(&googleapi.Error{
 23635  			Code:   res.StatusCode,
 23636  			Header: res.Header,
 23637  		})
 23638  	}
 23639  	if err != nil {
 23640  		return nil, err
 23641  	}
 23642  	defer googleapi.CloseBody(res)
 23643  	if err := googleapi.CheckResponse(res); err != nil {
 23644  		return nil, gensupport.WrapError(err)
 23645  	}
 23646  	ret := &GoogleCloudDataplexV1ListAssetsResponse{
 23647  		ServerResponse: googleapi.ServerResponse{
 23648  			Header:         res.Header,
 23649  			HTTPStatusCode: res.StatusCode,
 23650  		},
 23651  	}
 23652  	target := &ret
 23653  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23654  		return nil, err
 23655  	}
 23656  	return ret, nil
 23657  }
 23658  
 23659  // Pages invokes f for each page of results.
 23660  // A non-nil error returned from f will halt the iteration.
 23661  // The provided context supersedes any context provided to the Context method.
 23662  func (c *ProjectsLocationsLakesZonesAssetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListAssetsResponse) error) error {
 23663  	c.ctx_ = ctx
 23664  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23665  	for {
 23666  		x, err := c.Do()
 23667  		if err != nil {
 23668  			return err
 23669  		}
 23670  		if err := f(x); err != nil {
 23671  			return err
 23672  		}
 23673  		if x.NextPageToken == "" {
 23674  			return nil
 23675  		}
 23676  		c.PageToken(x.NextPageToken)
 23677  	}
 23678  }
 23679  
 23680  type ProjectsLocationsLakesZonesAssetsPatchCall struct {
 23681  	s                          *Service
 23682  	name                       string
 23683  	googleclouddataplexv1asset *GoogleCloudDataplexV1Asset
 23684  	urlParams_                 gensupport.URLParams
 23685  	ctx_                       context.Context
 23686  	header_                    http.Header
 23687  }
 23688  
 23689  // Patch: Updates an asset resource.
 23690  //
 23691  //   - name: Output only. The relative resource name of the asset, of the form:
 23692  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 23693  //     ne_id}/assets/{asset_id}.
 23694  func (r *ProjectsLocationsLakesZonesAssetsService) Patch(name string, googleclouddataplexv1asset *GoogleCloudDataplexV1Asset) *ProjectsLocationsLakesZonesAssetsPatchCall {
 23695  	c := &ProjectsLocationsLakesZonesAssetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23696  	c.name = name
 23697  	c.googleclouddataplexv1asset = googleclouddataplexv1asset
 23698  	return c
 23699  }
 23700  
 23701  // UpdateMask sets the optional parameter "updateMask": Required. Mask of
 23702  // fields to update.
 23703  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesZonesAssetsPatchCall {
 23704  	c.urlParams_.Set("updateMask", updateMask)
 23705  	return c
 23706  }
 23707  
 23708  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 23709  // request, but do not perform mutations. The default is false.
 23710  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesAssetsPatchCall {
 23711  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 23712  	return c
 23713  }
 23714  
 23715  // Fields allows partial responses to be retrieved. See
 23716  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23717  // details.
 23718  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsPatchCall {
 23719  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23720  	return c
 23721  }
 23722  
 23723  // Context sets the context to be used in this call's Do method.
 23724  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsPatchCall {
 23725  	c.ctx_ = ctx
 23726  	return c
 23727  }
 23728  
 23729  // Header returns a http.Header that can be modified by the caller to add
 23730  // headers to the request.
 23731  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Header() http.Header {
 23732  	if c.header_ == nil {
 23733  		c.header_ = make(http.Header)
 23734  	}
 23735  	return c.header_
 23736  }
 23737  
 23738  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) doRequest(alt string) (*http.Response, error) {
 23739  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23740  	var body io.Reader = nil
 23741  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1asset)
 23742  	if err != nil {
 23743  		return nil, err
 23744  	}
 23745  	c.urlParams_.Set("alt", alt)
 23746  	c.urlParams_.Set("prettyPrint", "false")
 23747  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 23748  	urls += "?" + c.urlParams_.Encode()
 23749  	req, err := http.NewRequest("PATCH", urls, body)
 23750  	if err != nil {
 23751  		return nil, err
 23752  	}
 23753  	req.Header = reqHeaders
 23754  	googleapi.Expand(req.URL, map[string]string{
 23755  		"name": c.name,
 23756  	})
 23757  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23758  }
 23759  
 23760  // Do executes the "dataplex.projects.locations.lakes.zones.assets.patch" call.
 23761  // Any non-2xx status code is an error. Response headers are in either
 23762  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23763  // returned at all) in error.(*googleapi.Error).Header. Use
 23764  // googleapi.IsNotModified to check whether the returned error was because
 23765  // http.StatusNotModified was returned.
 23766  func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23767  	gensupport.SetOptions(c.urlParams_, opts...)
 23768  	res, err := c.doRequest("json")
 23769  	if res != nil && res.StatusCode == http.StatusNotModified {
 23770  		if res.Body != nil {
 23771  			res.Body.Close()
 23772  		}
 23773  		return nil, gensupport.WrapError(&googleapi.Error{
 23774  			Code:   res.StatusCode,
 23775  			Header: res.Header,
 23776  		})
 23777  	}
 23778  	if err != nil {
 23779  		return nil, err
 23780  	}
 23781  	defer googleapi.CloseBody(res)
 23782  	if err := googleapi.CheckResponse(res); err != nil {
 23783  		return nil, gensupport.WrapError(err)
 23784  	}
 23785  	ret := &GoogleLongrunningOperation{
 23786  		ServerResponse: googleapi.ServerResponse{
 23787  			Header:         res.Header,
 23788  			HTTPStatusCode: res.StatusCode,
 23789  		},
 23790  	}
 23791  	target := &ret
 23792  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23793  		return nil, err
 23794  	}
 23795  	return ret, nil
 23796  }
 23797  
 23798  type ProjectsLocationsLakesZonesAssetsSetIamPolicyCall struct {
 23799  	s                              *Service
 23800  	resource                       string
 23801  	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
 23802  	urlParams_                     gensupport.URLParams
 23803  	ctx_                           context.Context
 23804  	header_                        http.Header
 23805  }
 23806  
 23807  // SetIamPolicy: Sets the access control policy on the specified resource.
 23808  // Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and
 23809  // PERMISSION_DENIED errors.
 23810  //
 23811  //   - resource: REQUIRED: The resource for which the policy is being specified.
 23812  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 23813  //     for the appropriate value for this field.
 23814  func (r *ProjectsLocationsLakesZonesAssetsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall {
 23815  	c := &ProjectsLocationsLakesZonesAssetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23816  	c.resource = resource
 23817  	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
 23818  	return c
 23819  }
 23820  
 23821  // Fields allows partial responses to be retrieved. See
 23822  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23823  // details.
 23824  func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall {
 23825  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23826  	return c
 23827  }
 23828  
 23829  // Context sets the context to be used in this call's Do method.
 23830  func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall {
 23831  	c.ctx_ = ctx
 23832  	return c
 23833  }
 23834  
 23835  // Header returns a http.Header that can be modified by the caller to add
 23836  // headers to the request.
 23837  func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Header() http.Header {
 23838  	if c.header_ == nil {
 23839  		c.header_ = make(http.Header)
 23840  	}
 23841  	return c.header_
 23842  }
 23843  
 23844  func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 23845  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23846  	var body io.Reader = nil
 23847  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
 23848  	if err != nil {
 23849  		return nil, err
 23850  	}
 23851  	c.urlParams_.Set("alt", alt)
 23852  	c.urlParams_.Set("prettyPrint", "false")
 23853  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
 23854  	urls += "?" + c.urlParams_.Encode()
 23855  	req, err := http.NewRequest("POST", urls, body)
 23856  	if err != nil {
 23857  		return nil, err
 23858  	}
 23859  	req.Header = reqHeaders
 23860  	googleapi.Expand(req.URL, map[string]string{
 23861  		"resource": c.resource,
 23862  	})
 23863  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23864  }
 23865  
 23866  // Do executes the "dataplex.projects.locations.lakes.zones.assets.setIamPolicy" call.
 23867  // Any non-2xx status code is an error. Response headers are in either
 23868  // *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at
 23869  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23870  // check whether the returned error was because http.StatusNotModified was
 23871  // returned.
 23872  func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
 23873  	gensupport.SetOptions(c.urlParams_, opts...)
 23874  	res, err := c.doRequest("json")
 23875  	if res != nil && res.StatusCode == http.StatusNotModified {
 23876  		if res.Body != nil {
 23877  			res.Body.Close()
 23878  		}
 23879  		return nil, gensupport.WrapError(&googleapi.Error{
 23880  			Code:   res.StatusCode,
 23881  			Header: res.Header,
 23882  		})
 23883  	}
 23884  	if err != nil {
 23885  		return nil, err
 23886  	}
 23887  	defer googleapi.CloseBody(res)
 23888  	if err := googleapi.CheckResponse(res); err != nil {
 23889  		return nil, gensupport.WrapError(err)
 23890  	}
 23891  	ret := &GoogleIamV1Policy{
 23892  		ServerResponse: googleapi.ServerResponse{
 23893  			Header:         res.Header,
 23894  			HTTPStatusCode: res.StatusCode,
 23895  		},
 23896  	}
 23897  	target := &ret
 23898  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23899  		return nil, err
 23900  	}
 23901  	return ret, nil
 23902  }
 23903  
 23904  type ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall struct {
 23905  	s                                    *Service
 23906  	resource                             string
 23907  	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
 23908  	urlParams_                           gensupport.URLParams
 23909  	ctx_                                 context.Context
 23910  	header_                              http.Header
 23911  }
 23912  
 23913  // TestIamPermissions: Returns permissions that a caller has on the specified
 23914  // resource. If the resource does not exist, this will return an empty set of
 23915  // permissions, not a NOT_FOUND error.Note: This operation is designed to be
 23916  // used for building permission-aware UIs and command-line tools, not for
 23917  // authorization checking. This operation may "fail open" without warning.
 23918  //
 23919  //   - resource: REQUIRED: The resource for which the policy detail is being
 23920  //     requested. See Resource names
 23921  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 23922  //     value for this field.
 23923  func (r *ProjectsLocationsLakesZonesAssetsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall {
 23924  	c := &ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23925  	c.resource = resource
 23926  	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
 23927  	return c
 23928  }
 23929  
 23930  // Fields allows partial responses to be retrieved. See
 23931  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23932  // details.
 23933  func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall {
 23934  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23935  	return c
 23936  }
 23937  
 23938  // Context sets the context to be used in this call's Do method.
 23939  func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall {
 23940  	c.ctx_ = ctx
 23941  	return c
 23942  }
 23943  
 23944  // Header returns a http.Header that can be modified by the caller to add
 23945  // headers to the request.
 23946  func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Header() http.Header {
 23947  	if c.header_ == nil {
 23948  		c.header_ = make(http.Header)
 23949  	}
 23950  	return c.header_
 23951  }
 23952  
 23953  func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 23954  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23955  	var body io.Reader = nil
 23956  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
 23957  	if err != nil {
 23958  		return nil, err
 23959  	}
 23960  	c.urlParams_.Set("alt", alt)
 23961  	c.urlParams_.Set("prettyPrint", "false")
 23962  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
 23963  	urls += "?" + c.urlParams_.Encode()
 23964  	req, err := http.NewRequest("POST", urls, body)
 23965  	if err != nil {
 23966  		return nil, err
 23967  	}
 23968  	req.Header = reqHeaders
 23969  	googleapi.Expand(req.URL, map[string]string{
 23970  		"resource": c.resource,
 23971  	})
 23972  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23973  }
 23974  
 23975  // Do executes the "dataplex.projects.locations.lakes.zones.assets.testIamPermissions" call.
 23976  // Any non-2xx status code is an error. Response headers are in either
 23977  // *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
 23978  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23979  // googleapi.IsNotModified to check whether the returned error was because
 23980  // http.StatusNotModified was returned.
 23981  func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
 23982  	gensupport.SetOptions(c.urlParams_, opts...)
 23983  	res, err := c.doRequest("json")
 23984  	if res != nil && res.StatusCode == http.StatusNotModified {
 23985  		if res.Body != nil {
 23986  			res.Body.Close()
 23987  		}
 23988  		return nil, gensupport.WrapError(&googleapi.Error{
 23989  			Code:   res.StatusCode,
 23990  			Header: res.Header,
 23991  		})
 23992  	}
 23993  	if err != nil {
 23994  		return nil, err
 23995  	}
 23996  	defer googleapi.CloseBody(res)
 23997  	if err := googleapi.CheckResponse(res); err != nil {
 23998  		return nil, gensupport.WrapError(err)
 23999  	}
 24000  	ret := &GoogleIamV1TestIamPermissionsResponse{
 24001  		ServerResponse: googleapi.ServerResponse{
 24002  			Header:         res.Header,
 24003  			HTTPStatusCode: res.StatusCode,
 24004  		},
 24005  	}
 24006  	target := &ret
 24007  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24008  		return nil, err
 24009  	}
 24010  	return ret, nil
 24011  }
 24012  
 24013  type ProjectsLocationsLakesZonesAssetsActionsListCall struct {
 24014  	s            *Service
 24015  	parent       string
 24016  	urlParams_   gensupport.URLParams
 24017  	ifNoneMatch_ string
 24018  	ctx_         context.Context
 24019  	header_      http.Header
 24020  }
 24021  
 24022  // List: Lists action resources in an asset.
 24023  //
 24024  //   - parent: The resource name of the parent asset:
 24025  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24026  //     ne_id}/assets/{asset_id}.
 24027  func (r *ProjectsLocationsLakesZonesAssetsActionsService) List(parent string) *ProjectsLocationsLakesZonesAssetsActionsListCall {
 24028  	c := &ProjectsLocationsLakesZonesAssetsActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24029  	c.parent = parent
 24030  	return c
 24031  }
 24032  
 24033  // PageSize sets the optional parameter "pageSize": Maximum number of actions
 24034  // to return. The service may return fewer than this value. If unspecified, at
 24035  // most 10 actions will be returned. The maximum value is 1000; values above
 24036  // 1000 will be coerced to 1000.
 24037  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesAssetsActionsListCall {
 24038  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24039  	return c
 24040  }
 24041  
 24042  // PageToken sets the optional parameter "pageToken": Page token received from
 24043  // a previous ListAssetActions call. Provide this to retrieve the subsequent
 24044  // page. When paginating, all other parameters provided to ListAssetActions
 24045  // must match the call that provided the page token.
 24046  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesAssetsActionsListCall {
 24047  	c.urlParams_.Set("pageToken", pageToken)
 24048  	return c
 24049  }
 24050  
 24051  // Fields allows partial responses to be retrieved. See
 24052  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24053  // details.
 24054  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsActionsListCall {
 24055  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24056  	return c
 24057  }
 24058  
 24059  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24060  // object's ETag matches the given value. This is useful for getting updates
 24061  // only after the object has changed since the last request.
 24062  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsActionsListCall {
 24063  	c.ifNoneMatch_ = entityTag
 24064  	return c
 24065  }
 24066  
 24067  // Context sets the context to be used in this call's Do method.
 24068  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsActionsListCall {
 24069  	c.ctx_ = ctx
 24070  	return c
 24071  }
 24072  
 24073  // Header returns a http.Header that can be modified by the caller to add
 24074  // headers to the request.
 24075  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Header() http.Header {
 24076  	if c.header_ == nil {
 24077  		c.header_ = make(http.Header)
 24078  	}
 24079  	return c.header_
 24080  }
 24081  
 24082  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) doRequest(alt string) (*http.Response, error) {
 24083  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24084  	if c.ifNoneMatch_ != "" {
 24085  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24086  	}
 24087  	var body io.Reader = nil
 24088  	c.urlParams_.Set("alt", alt)
 24089  	c.urlParams_.Set("prettyPrint", "false")
 24090  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/actions")
 24091  	urls += "?" + c.urlParams_.Encode()
 24092  	req, err := http.NewRequest("GET", urls, body)
 24093  	if err != nil {
 24094  		return nil, err
 24095  	}
 24096  	req.Header = reqHeaders
 24097  	googleapi.Expand(req.URL, map[string]string{
 24098  		"parent": c.parent,
 24099  	})
 24100  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24101  }
 24102  
 24103  // Do executes the "dataplex.projects.locations.lakes.zones.assets.actions.list" call.
 24104  // Any non-2xx status code is an error. Response headers are in either
 24105  // *GoogleCloudDataplexV1ListActionsResponse.ServerResponse.Header or (if a
 24106  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24107  // googleapi.IsNotModified to check whether the returned error was because
 24108  // http.StatusNotModified was returned.
 24109  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListActionsResponse, error) {
 24110  	gensupport.SetOptions(c.urlParams_, opts...)
 24111  	res, err := c.doRequest("json")
 24112  	if res != nil && res.StatusCode == http.StatusNotModified {
 24113  		if res.Body != nil {
 24114  			res.Body.Close()
 24115  		}
 24116  		return nil, gensupport.WrapError(&googleapi.Error{
 24117  			Code:   res.StatusCode,
 24118  			Header: res.Header,
 24119  		})
 24120  	}
 24121  	if err != nil {
 24122  		return nil, err
 24123  	}
 24124  	defer googleapi.CloseBody(res)
 24125  	if err := googleapi.CheckResponse(res); err != nil {
 24126  		return nil, gensupport.WrapError(err)
 24127  	}
 24128  	ret := &GoogleCloudDataplexV1ListActionsResponse{
 24129  		ServerResponse: googleapi.ServerResponse{
 24130  			Header:         res.Header,
 24131  			HTTPStatusCode: res.StatusCode,
 24132  		},
 24133  	}
 24134  	target := &ret
 24135  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24136  		return nil, err
 24137  	}
 24138  	return ret, nil
 24139  }
 24140  
 24141  // Pages invokes f for each page of results.
 24142  // A non-nil error returned from f will halt the iteration.
 24143  // The provided context supersedes any context provided to the Context method.
 24144  func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListActionsResponse) error) error {
 24145  	c.ctx_ = ctx
 24146  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24147  	for {
 24148  		x, err := c.Do()
 24149  		if err != nil {
 24150  			return err
 24151  		}
 24152  		if err := f(x); err != nil {
 24153  			return err
 24154  		}
 24155  		if x.NextPageToken == "" {
 24156  			return nil
 24157  		}
 24158  		c.PageToken(x.NextPageToken)
 24159  	}
 24160  }
 24161  
 24162  type ProjectsLocationsLakesZonesEntitiesCreateCall struct {
 24163  	s                           *Service
 24164  	parent                      string
 24165  	googleclouddataplexv1entity *GoogleCloudDataplexV1Entity
 24166  	urlParams_                  gensupport.URLParams
 24167  	ctx_                        context.Context
 24168  	header_                     http.Header
 24169  }
 24170  
 24171  // Create: Create a metadata entity.
 24172  //
 24173  //   - parent: The resource name of the parent zone:
 24174  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24175  //     ne_id}.
 24176  func (r *ProjectsLocationsLakesZonesEntitiesService) Create(parent string, googleclouddataplexv1entity *GoogleCloudDataplexV1Entity) *ProjectsLocationsLakesZonesEntitiesCreateCall {
 24177  	c := &ProjectsLocationsLakesZonesEntitiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24178  	c.parent = parent
 24179  	c.googleclouddataplexv1entity = googleclouddataplexv1entity
 24180  	return c
 24181  }
 24182  
 24183  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 24184  // request, but do not perform mutations. The default is false.
 24185  func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesEntitiesCreateCall {
 24186  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 24187  	return c
 24188  }
 24189  
 24190  // Fields allows partial responses to be retrieved. See
 24191  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24192  // details.
 24193  func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesCreateCall {
 24194  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24195  	return c
 24196  }
 24197  
 24198  // Context sets the context to be used in this call's Do method.
 24199  func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesCreateCall {
 24200  	c.ctx_ = ctx
 24201  	return c
 24202  }
 24203  
 24204  // Header returns a http.Header that can be modified by the caller to add
 24205  // headers to the request.
 24206  func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Header() http.Header {
 24207  	if c.header_ == nil {
 24208  		c.header_ = make(http.Header)
 24209  	}
 24210  	return c.header_
 24211  }
 24212  
 24213  func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) doRequest(alt string) (*http.Response, error) {
 24214  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24215  	var body io.Reader = nil
 24216  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entity)
 24217  	if err != nil {
 24218  		return nil, err
 24219  	}
 24220  	c.urlParams_.Set("alt", alt)
 24221  	c.urlParams_.Set("prettyPrint", "false")
 24222  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entities")
 24223  	urls += "?" + c.urlParams_.Encode()
 24224  	req, err := http.NewRequest("POST", urls, body)
 24225  	if err != nil {
 24226  		return nil, err
 24227  	}
 24228  	req.Header = reqHeaders
 24229  	googleapi.Expand(req.URL, map[string]string{
 24230  		"parent": c.parent,
 24231  	})
 24232  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24233  }
 24234  
 24235  // Do executes the "dataplex.projects.locations.lakes.zones.entities.create" call.
 24236  // Any non-2xx status code is an error. Response headers are in either
 24237  // *GoogleCloudDataplexV1Entity.ServerResponse.Header or (if a response was
 24238  // returned at all) in error.(*googleapi.Error).Header. Use
 24239  // googleapi.IsNotModified to check whether the returned error was because
 24240  // http.StatusNotModified was returned.
 24241  func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entity, error) {
 24242  	gensupport.SetOptions(c.urlParams_, opts...)
 24243  	res, err := c.doRequest("json")
 24244  	if res != nil && res.StatusCode == http.StatusNotModified {
 24245  		if res.Body != nil {
 24246  			res.Body.Close()
 24247  		}
 24248  		return nil, gensupport.WrapError(&googleapi.Error{
 24249  			Code:   res.StatusCode,
 24250  			Header: res.Header,
 24251  		})
 24252  	}
 24253  	if err != nil {
 24254  		return nil, err
 24255  	}
 24256  	defer googleapi.CloseBody(res)
 24257  	if err := googleapi.CheckResponse(res); err != nil {
 24258  		return nil, gensupport.WrapError(err)
 24259  	}
 24260  	ret := &GoogleCloudDataplexV1Entity{
 24261  		ServerResponse: googleapi.ServerResponse{
 24262  			Header:         res.Header,
 24263  			HTTPStatusCode: res.StatusCode,
 24264  		},
 24265  	}
 24266  	target := &ret
 24267  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24268  		return nil, err
 24269  	}
 24270  	return ret, nil
 24271  }
 24272  
 24273  type ProjectsLocationsLakesZonesEntitiesDeleteCall struct {
 24274  	s          *Service
 24275  	name       string
 24276  	urlParams_ gensupport.URLParams
 24277  	ctx_       context.Context
 24278  	header_    http.Header
 24279  }
 24280  
 24281  // Delete: Delete a metadata entity.
 24282  //
 24283  //   - name: The resource name of the entity:
 24284  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24285  //     ne_id}/entities/{entity_id}.
 24286  func (r *ProjectsLocationsLakesZonesEntitiesService) Delete(name string) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
 24287  	c := &ProjectsLocationsLakesZonesEntitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24288  	c.name = name
 24289  	return c
 24290  }
 24291  
 24292  // Etag sets the optional parameter "etag": Required. The etag associated with
 24293  // the entity, which can be retrieved with a GetEntity request.
 24294  func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Etag(etag string) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
 24295  	c.urlParams_.Set("etag", etag)
 24296  	return c
 24297  }
 24298  
 24299  // Fields allows partial responses to be retrieved. See
 24300  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24301  // details.
 24302  func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
 24303  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24304  	return c
 24305  }
 24306  
 24307  // Context sets the context to be used in this call's Do method.
 24308  func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
 24309  	c.ctx_ = ctx
 24310  	return c
 24311  }
 24312  
 24313  // Header returns a http.Header that can be modified by the caller to add
 24314  // headers to the request.
 24315  func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Header() http.Header {
 24316  	if c.header_ == nil {
 24317  		c.header_ = make(http.Header)
 24318  	}
 24319  	return c.header_
 24320  }
 24321  
 24322  func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) doRequest(alt string) (*http.Response, error) {
 24323  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24324  	var body io.Reader = nil
 24325  	c.urlParams_.Set("alt", alt)
 24326  	c.urlParams_.Set("prettyPrint", "false")
 24327  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24328  	urls += "?" + c.urlParams_.Encode()
 24329  	req, err := http.NewRequest("DELETE", urls, body)
 24330  	if err != nil {
 24331  		return nil, err
 24332  	}
 24333  	req.Header = reqHeaders
 24334  	googleapi.Expand(req.URL, map[string]string{
 24335  		"name": c.name,
 24336  	})
 24337  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24338  }
 24339  
 24340  // Do executes the "dataplex.projects.locations.lakes.zones.entities.delete" call.
 24341  // Any non-2xx status code is an error. Response headers are in either
 24342  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 24343  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24344  // whether the returned error was because http.StatusNotModified was returned.
 24345  func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 24346  	gensupport.SetOptions(c.urlParams_, opts...)
 24347  	res, err := c.doRequest("json")
 24348  	if res != nil && res.StatusCode == http.StatusNotModified {
 24349  		if res.Body != nil {
 24350  			res.Body.Close()
 24351  		}
 24352  		return nil, gensupport.WrapError(&googleapi.Error{
 24353  			Code:   res.StatusCode,
 24354  			Header: res.Header,
 24355  		})
 24356  	}
 24357  	if err != nil {
 24358  		return nil, err
 24359  	}
 24360  	defer googleapi.CloseBody(res)
 24361  	if err := googleapi.CheckResponse(res); err != nil {
 24362  		return nil, gensupport.WrapError(err)
 24363  	}
 24364  	ret := &Empty{
 24365  		ServerResponse: googleapi.ServerResponse{
 24366  			Header:         res.Header,
 24367  			HTTPStatusCode: res.StatusCode,
 24368  		},
 24369  	}
 24370  	target := &ret
 24371  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24372  		return nil, err
 24373  	}
 24374  	return ret, nil
 24375  }
 24376  
 24377  type ProjectsLocationsLakesZonesEntitiesGetCall struct {
 24378  	s            *Service
 24379  	name         string
 24380  	urlParams_   gensupport.URLParams
 24381  	ifNoneMatch_ string
 24382  	ctx_         context.Context
 24383  	header_      http.Header
 24384  }
 24385  
 24386  // Get: Get a metadata entity.
 24387  //
 24388  //   - name: The resource name of the entity:
 24389  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24390  //     ne_id}/entities/{entity_id}.
 24391  func (r *ProjectsLocationsLakesZonesEntitiesService) Get(name string) *ProjectsLocationsLakesZonesEntitiesGetCall {
 24392  	c := &ProjectsLocationsLakesZonesEntitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24393  	c.name = name
 24394  	return c
 24395  }
 24396  
 24397  // View sets the optional parameter "view": Used to select the subset of entity
 24398  // information to return. Defaults to BASIC.
 24399  //
 24400  // Possible values:
 24401  //
 24402  //	"ENTITY_VIEW_UNSPECIFIED" - The API will default to the BASIC view.
 24403  //	"BASIC" - Minimal view that does not include the schema.
 24404  //	"SCHEMA" - Include basic information and schema.
 24405  //	"FULL" - Include everything. Currently, this is the same as the SCHEMA
 24406  //
 24407  // view.
 24408  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) View(view string) *ProjectsLocationsLakesZonesEntitiesGetCall {
 24409  	c.urlParams_.Set("view", view)
 24410  	return c
 24411  }
 24412  
 24413  // Fields allows partial responses to be retrieved. See
 24414  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24415  // details.
 24416  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesGetCall {
 24417  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24418  	return c
 24419  }
 24420  
 24421  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24422  // object's ETag matches the given value. This is useful for getting updates
 24423  // only after the object has changed since the last request.
 24424  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesGetCall {
 24425  	c.ifNoneMatch_ = entityTag
 24426  	return c
 24427  }
 24428  
 24429  // Context sets the context to be used in this call's Do method.
 24430  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesGetCall {
 24431  	c.ctx_ = ctx
 24432  	return c
 24433  }
 24434  
 24435  // Header returns a http.Header that can be modified by the caller to add
 24436  // headers to the request.
 24437  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Header() http.Header {
 24438  	if c.header_ == nil {
 24439  		c.header_ = make(http.Header)
 24440  	}
 24441  	return c.header_
 24442  }
 24443  
 24444  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) doRequest(alt string) (*http.Response, error) {
 24445  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24446  	if c.ifNoneMatch_ != "" {
 24447  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24448  	}
 24449  	var body io.Reader = nil
 24450  	c.urlParams_.Set("alt", alt)
 24451  	c.urlParams_.Set("prettyPrint", "false")
 24452  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24453  	urls += "?" + c.urlParams_.Encode()
 24454  	req, err := http.NewRequest("GET", urls, body)
 24455  	if err != nil {
 24456  		return nil, err
 24457  	}
 24458  	req.Header = reqHeaders
 24459  	googleapi.Expand(req.URL, map[string]string{
 24460  		"name": c.name,
 24461  	})
 24462  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24463  }
 24464  
 24465  // Do executes the "dataplex.projects.locations.lakes.zones.entities.get" call.
 24466  // Any non-2xx status code is an error. Response headers are in either
 24467  // *GoogleCloudDataplexV1Entity.ServerResponse.Header or (if a response was
 24468  // returned at all) in error.(*googleapi.Error).Header. Use
 24469  // googleapi.IsNotModified to check whether the returned error was because
 24470  // http.StatusNotModified was returned.
 24471  func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entity, error) {
 24472  	gensupport.SetOptions(c.urlParams_, opts...)
 24473  	res, err := c.doRequest("json")
 24474  	if res != nil && res.StatusCode == http.StatusNotModified {
 24475  		if res.Body != nil {
 24476  			res.Body.Close()
 24477  		}
 24478  		return nil, gensupport.WrapError(&googleapi.Error{
 24479  			Code:   res.StatusCode,
 24480  			Header: res.Header,
 24481  		})
 24482  	}
 24483  	if err != nil {
 24484  		return nil, err
 24485  	}
 24486  	defer googleapi.CloseBody(res)
 24487  	if err := googleapi.CheckResponse(res); err != nil {
 24488  		return nil, gensupport.WrapError(err)
 24489  	}
 24490  	ret := &GoogleCloudDataplexV1Entity{
 24491  		ServerResponse: googleapi.ServerResponse{
 24492  			Header:         res.Header,
 24493  			HTTPStatusCode: res.StatusCode,
 24494  		},
 24495  	}
 24496  	target := &ret
 24497  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24498  		return nil, err
 24499  	}
 24500  	return ret, nil
 24501  }
 24502  
 24503  type ProjectsLocationsLakesZonesEntitiesListCall struct {
 24504  	s            *Service
 24505  	parent       string
 24506  	urlParams_   gensupport.URLParams
 24507  	ifNoneMatch_ string
 24508  	ctx_         context.Context
 24509  	header_      http.Header
 24510  }
 24511  
 24512  // List: List metadata entities in a zone.
 24513  //
 24514  //   - parent: The resource name of the parent zone:
 24515  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24516  //     ne_id}.
 24517  func (r *ProjectsLocationsLakesZonesEntitiesService) List(parent string) *ProjectsLocationsLakesZonesEntitiesListCall {
 24518  	c := &ProjectsLocationsLakesZonesEntitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24519  	c.parent = parent
 24520  	return c
 24521  }
 24522  
 24523  // Filter sets the optional parameter "filter": The following filter parameters
 24524  // can be added to the URL to limit the entities returned by the API: Entity
 24525  // ID: ?filter="id=entityID" Asset ID: ?filter="asset=assetID" Data path
 24526  // ?filter="data_path=gs://my-bucket" Is HIVE compatible:
 24527  // ?filter="hive_compatible=true" Is BigQuery compatible:
 24528  // ?filter="bigquery_compatible=true"
 24529  func (c *ProjectsLocationsLakesZonesEntitiesListCall) Filter(filter string) *ProjectsLocationsLakesZonesEntitiesListCall {
 24530  	c.urlParams_.Set("filter", filter)
 24531  	return c
 24532  }
 24533  
 24534  // PageSize sets the optional parameter "pageSize": Maximum number of entities
 24535  // to return. The service may return fewer than this value. If unspecified, 100
 24536  // entities will be returned by default. The maximum value is 500; larger
 24537  // values will will be truncated to 500.
 24538  func (c *ProjectsLocationsLakesZonesEntitiesListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesEntitiesListCall {
 24539  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24540  	return c
 24541  }
 24542  
 24543  // PageToken sets the optional parameter "pageToken": Page token received from
 24544  // a previous ListEntities call. Provide this to retrieve the subsequent page.
 24545  // When paginating, all other parameters provided to ListEntities must match
 24546  // the call that provided the page token.
 24547  func (c *ProjectsLocationsLakesZonesEntitiesListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesEntitiesListCall {
 24548  	c.urlParams_.Set("pageToken", pageToken)
 24549  	return c
 24550  }
 24551  
 24552  // View sets the optional parameter "view": Required. Specify the entity view
 24553  // to make a partial list request.
 24554  //
 24555  // Possible values:
 24556  //
 24557  //	"ENTITY_VIEW_UNSPECIFIED" - The default unset value. Return both table and
 24558  //
 24559  // fileset entities if unspecified.
 24560  //
 24561  //	"TABLES" - Only list table entities.
 24562  //	"FILESETS" - Only list fileset entities.
 24563  func (c *ProjectsLocationsLakesZonesEntitiesListCall) View(view string) *ProjectsLocationsLakesZonesEntitiesListCall {
 24564  	c.urlParams_.Set("view", view)
 24565  	return c
 24566  }
 24567  
 24568  // Fields allows partial responses to be retrieved. See
 24569  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24570  // details.
 24571  func (c *ProjectsLocationsLakesZonesEntitiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesListCall {
 24572  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24573  	return c
 24574  }
 24575  
 24576  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24577  // object's ETag matches the given value. This is useful for getting updates
 24578  // only after the object has changed since the last request.
 24579  func (c *ProjectsLocationsLakesZonesEntitiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesListCall {
 24580  	c.ifNoneMatch_ = entityTag
 24581  	return c
 24582  }
 24583  
 24584  // Context sets the context to be used in this call's Do method.
 24585  func (c *ProjectsLocationsLakesZonesEntitiesListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesListCall {
 24586  	c.ctx_ = ctx
 24587  	return c
 24588  }
 24589  
 24590  // Header returns a http.Header that can be modified by the caller to add
 24591  // headers to the request.
 24592  func (c *ProjectsLocationsLakesZonesEntitiesListCall) Header() http.Header {
 24593  	if c.header_ == nil {
 24594  		c.header_ = make(http.Header)
 24595  	}
 24596  	return c.header_
 24597  }
 24598  
 24599  func (c *ProjectsLocationsLakesZonesEntitiesListCall) doRequest(alt string) (*http.Response, error) {
 24600  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24601  	if c.ifNoneMatch_ != "" {
 24602  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24603  	}
 24604  	var body io.Reader = nil
 24605  	c.urlParams_.Set("alt", alt)
 24606  	c.urlParams_.Set("prettyPrint", "false")
 24607  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entities")
 24608  	urls += "?" + c.urlParams_.Encode()
 24609  	req, err := http.NewRequest("GET", urls, body)
 24610  	if err != nil {
 24611  		return nil, err
 24612  	}
 24613  	req.Header = reqHeaders
 24614  	googleapi.Expand(req.URL, map[string]string{
 24615  		"parent": c.parent,
 24616  	})
 24617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24618  }
 24619  
 24620  // Do executes the "dataplex.projects.locations.lakes.zones.entities.list" call.
 24621  // Any non-2xx status code is an error. Response headers are in either
 24622  // *GoogleCloudDataplexV1ListEntitiesResponse.ServerResponse.Header or (if a
 24623  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24624  // googleapi.IsNotModified to check whether the returned error was because
 24625  // http.StatusNotModified was returned.
 24626  func (c *ProjectsLocationsLakesZonesEntitiesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntitiesResponse, error) {
 24627  	gensupport.SetOptions(c.urlParams_, opts...)
 24628  	res, err := c.doRequest("json")
 24629  	if res != nil && res.StatusCode == http.StatusNotModified {
 24630  		if res.Body != nil {
 24631  			res.Body.Close()
 24632  		}
 24633  		return nil, gensupport.WrapError(&googleapi.Error{
 24634  			Code:   res.StatusCode,
 24635  			Header: res.Header,
 24636  		})
 24637  	}
 24638  	if err != nil {
 24639  		return nil, err
 24640  	}
 24641  	defer googleapi.CloseBody(res)
 24642  	if err := googleapi.CheckResponse(res); err != nil {
 24643  		return nil, gensupport.WrapError(err)
 24644  	}
 24645  	ret := &GoogleCloudDataplexV1ListEntitiesResponse{
 24646  		ServerResponse: googleapi.ServerResponse{
 24647  			Header:         res.Header,
 24648  			HTTPStatusCode: res.StatusCode,
 24649  		},
 24650  	}
 24651  	target := &ret
 24652  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24653  		return nil, err
 24654  	}
 24655  	return ret, nil
 24656  }
 24657  
 24658  // Pages invokes f for each page of results.
 24659  // A non-nil error returned from f will halt the iteration.
 24660  // The provided context supersedes any context provided to the Context method.
 24661  func (c *ProjectsLocationsLakesZonesEntitiesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntitiesResponse) error) error {
 24662  	c.ctx_ = ctx
 24663  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24664  	for {
 24665  		x, err := c.Do()
 24666  		if err != nil {
 24667  			return err
 24668  		}
 24669  		if err := f(x); err != nil {
 24670  			return err
 24671  		}
 24672  		if x.NextPageToken == "" {
 24673  			return nil
 24674  		}
 24675  		c.PageToken(x.NextPageToken)
 24676  	}
 24677  }
 24678  
 24679  type ProjectsLocationsLakesZonesEntitiesUpdateCall struct {
 24680  	s                           *Service
 24681  	name                        string
 24682  	googleclouddataplexv1entity *GoogleCloudDataplexV1Entity
 24683  	urlParams_                  gensupport.URLParams
 24684  	ctx_                        context.Context
 24685  	header_                     http.Header
 24686  }
 24687  
 24688  // Update: Update a metadata entity. Only supports full resource update.
 24689  //
 24690  //   - name: Output only. The resource name of the entity, of the form:
 24691  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24692  //     ne_id}/entities/{id}.
 24693  func (r *ProjectsLocationsLakesZonesEntitiesService) Update(name string, googleclouddataplexv1entity *GoogleCloudDataplexV1Entity) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
 24694  	c := &ProjectsLocationsLakesZonesEntitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24695  	c.name = name
 24696  	c.googleclouddataplexv1entity = googleclouddataplexv1entity
 24697  	return c
 24698  }
 24699  
 24700  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 24701  // request, but do not perform mutations. The default is false.
 24702  func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
 24703  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 24704  	return c
 24705  }
 24706  
 24707  // Fields allows partial responses to be retrieved. See
 24708  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24709  // details.
 24710  func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
 24711  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24712  	return c
 24713  }
 24714  
 24715  // Context sets the context to be used in this call's Do method.
 24716  func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
 24717  	c.ctx_ = ctx
 24718  	return c
 24719  }
 24720  
 24721  // Header returns a http.Header that can be modified by the caller to add
 24722  // headers to the request.
 24723  func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Header() http.Header {
 24724  	if c.header_ == nil {
 24725  		c.header_ = make(http.Header)
 24726  	}
 24727  	return c.header_
 24728  }
 24729  
 24730  func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) doRequest(alt string) (*http.Response, error) {
 24731  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24732  	var body io.Reader = nil
 24733  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entity)
 24734  	if err != nil {
 24735  		return nil, err
 24736  	}
 24737  	c.urlParams_.Set("alt", alt)
 24738  	c.urlParams_.Set("prettyPrint", "false")
 24739  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24740  	urls += "?" + c.urlParams_.Encode()
 24741  	req, err := http.NewRequest("PUT", urls, body)
 24742  	if err != nil {
 24743  		return nil, err
 24744  	}
 24745  	req.Header = reqHeaders
 24746  	googleapi.Expand(req.URL, map[string]string{
 24747  		"name": c.name,
 24748  	})
 24749  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24750  }
 24751  
 24752  // Do executes the "dataplex.projects.locations.lakes.zones.entities.update" call.
 24753  // Any non-2xx status code is an error. Response headers are in either
 24754  // *GoogleCloudDataplexV1Entity.ServerResponse.Header or (if a response was
 24755  // returned at all) in error.(*googleapi.Error).Header. Use
 24756  // googleapi.IsNotModified to check whether the returned error was because
 24757  // http.StatusNotModified was returned.
 24758  func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entity, error) {
 24759  	gensupport.SetOptions(c.urlParams_, opts...)
 24760  	res, err := c.doRequest("json")
 24761  	if res != nil && res.StatusCode == http.StatusNotModified {
 24762  		if res.Body != nil {
 24763  			res.Body.Close()
 24764  		}
 24765  		return nil, gensupport.WrapError(&googleapi.Error{
 24766  			Code:   res.StatusCode,
 24767  			Header: res.Header,
 24768  		})
 24769  	}
 24770  	if err != nil {
 24771  		return nil, err
 24772  	}
 24773  	defer googleapi.CloseBody(res)
 24774  	if err := googleapi.CheckResponse(res); err != nil {
 24775  		return nil, gensupport.WrapError(err)
 24776  	}
 24777  	ret := &GoogleCloudDataplexV1Entity{
 24778  		ServerResponse: googleapi.ServerResponse{
 24779  			Header:         res.Header,
 24780  			HTTPStatusCode: res.StatusCode,
 24781  		},
 24782  	}
 24783  	target := &ret
 24784  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24785  		return nil, err
 24786  	}
 24787  	return ret, nil
 24788  }
 24789  
 24790  type ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall struct {
 24791  	s                              *Service
 24792  	parent                         string
 24793  	googleclouddataplexv1partition *GoogleCloudDataplexV1Partition
 24794  	urlParams_                     gensupport.URLParams
 24795  	ctx_                           context.Context
 24796  	header_                        http.Header
 24797  }
 24798  
 24799  // Create: Create a metadata partition.
 24800  //
 24801  //   - parent: The resource name of the parent zone:
 24802  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24803  //     ne_id}/entities/{entity_id}.
 24804  func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Create(parent string, googleclouddataplexv1partition *GoogleCloudDataplexV1Partition) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
 24805  	c := &ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24806  	c.parent = parent
 24807  	c.googleclouddataplexv1partition = googleclouddataplexv1partition
 24808  	return c
 24809  }
 24810  
 24811  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
 24812  // request, but do not perform mutations. The default is false.
 24813  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
 24814  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
 24815  	return c
 24816  }
 24817  
 24818  // Fields allows partial responses to be retrieved. See
 24819  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24820  // details.
 24821  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
 24822  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24823  	return c
 24824  }
 24825  
 24826  // Context sets the context to be used in this call's Do method.
 24827  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
 24828  	c.ctx_ = ctx
 24829  	return c
 24830  }
 24831  
 24832  // Header returns a http.Header that can be modified by the caller to add
 24833  // headers to the request.
 24834  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Header() http.Header {
 24835  	if c.header_ == nil {
 24836  		c.header_ = make(http.Header)
 24837  	}
 24838  	return c.header_
 24839  }
 24840  
 24841  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) doRequest(alt string) (*http.Response, error) {
 24842  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24843  	var body io.Reader = nil
 24844  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1partition)
 24845  	if err != nil {
 24846  		return nil, err
 24847  	}
 24848  	c.urlParams_.Set("alt", alt)
 24849  	c.urlParams_.Set("prettyPrint", "false")
 24850  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/partitions")
 24851  	urls += "?" + c.urlParams_.Encode()
 24852  	req, err := http.NewRequest("POST", urls, body)
 24853  	if err != nil {
 24854  		return nil, err
 24855  	}
 24856  	req.Header = reqHeaders
 24857  	googleapi.Expand(req.URL, map[string]string{
 24858  		"parent": c.parent,
 24859  	})
 24860  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24861  }
 24862  
 24863  // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.create" call.
 24864  // Any non-2xx status code is an error. Response headers are in either
 24865  // *GoogleCloudDataplexV1Partition.ServerResponse.Header or (if a response was
 24866  // returned at all) in error.(*googleapi.Error).Header. Use
 24867  // googleapi.IsNotModified to check whether the returned error was because
 24868  // http.StatusNotModified was returned.
 24869  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Partition, error) {
 24870  	gensupport.SetOptions(c.urlParams_, opts...)
 24871  	res, err := c.doRequest("json")
 24872  	if res != nil && res.StatusCode == http.StatusNotModified {
 24873  		if res.Body != nil {
 24874  			res.Body.Close()
 24875  		}
 24876  		return nil, gensupport.WrapError(&googleapi.Error{
 24877  			Code:   res.StatusCode,
 24878  			Header: res.Header,
 24879  		})
 24880  	}
 24881  	if err != nil {
 24882  		return nil, err
 24883  	}
 24884  	defer googleapi.CloseBody(res)
 24885  	if err := googleapi.CheckResponse(res); err != nil {
 24886  		return nil, gensupport.WrapError(err)
 24887  	}
 24888  	ret := &GoogleCloudDataplexV1Partition{
 24889  		ServerResponse: googleapi.ServerResponse{
 24890  			Header:         res.Header,
 24891  			HTTPStatusCode: res.StatusCode,
 24892  		},
 24893  	}
 24894  	target := &ret
 24895  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24896  		return nil, err
 24897  	}
 24898  	return ret, nil
 24899  }
 24900  
 24901  type ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall struct {
 24902  	s          *Service
 24903  	name       string
 24904  	urlParams_ gensupport.URLParams
 24905  	ctx_       context.Context
 24906  	header_    http.Header
 24907  }
 24908  
 24909  // Delete: Delete a metadata partition.
 24910  //
 24911  //   - name: The resource name of the partition. format:
 24912  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 24913  //     ne_id}/entities/{entity_id}/partitions/{partition_value_path}. The
 24914  //     {partition_value_path} segment consists of an ordered sequence of
 24915  //     partition values separated by "/". All values must be provided.
 24916  func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Delete(name string) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
 24917  	c := &ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24918  	c.name = name
 24919  	return c
 24920  }
 24921  
 24922  // Etag sets the optional parameter "etag": The etag associated with the
 24923  // partition.
 24924  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Etag(etag string) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
 24925  	c.urlParams_.Set("etag", etag)
 24926  	return c
 24927  }
 24928  
 24929  // Fields allows partial responses to be retrieved. See
 24930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24931  // details.
 24932  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
 24933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24934  	return c
 24935  }
 24936  
 24937  // Context sets the context to be used in this call's Do method.
 24938  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
 24939  	c.ctx_ = ctx
 24940  	return c
 24941  }
 24942  
 24943  // Header returns a http.Header that can be modified by the caller to add
 24944  // headers to the request.
 24945  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Header() http.Header {
 24946  	if c.header_ == nil {
 24947  		c.header_ = make(http.Header)
 24948  	}
 24949  	return c.header_
 24950  }
 24951  
 24952  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 24953  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24954  	var body io.Reader = nil
 24955  	c.urlParams_.Set("alt", alt)
 24956  	c.urlParams_.Set("prettyPrint", "false")
 24957  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 24958  	urls += "?" + c.urlParams_.Encode()
 24959  	req, err := http.NewRequest("DELETE", urls, body)
 24960  	if err != nil {
 24961  		return nil, err
 24962  	}
 24963  	req.Header = reqHeaders
 24964  	googleapi.Expand(req.URL, map[string]string{
 24965  		"name": c.name,
 24966  	})
 24967  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24968  }
 24969  
 24970  // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.delete" call.
 24971  // Any non-2xx status code is an error. Response headers are in either
 24972  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 24973  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24974  // whether the returned error was because http.StatusNotModified was returned.
 24975  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 24976  	gensupport.SetOptions(c.urlParams_, opts...)
 24977  	res, err := c.doRequest("json")
 24978  	if res != nil && res.StatusCode == http.StatusNotModified {
 24979  		if res.Body != nil {
 24980  			res.Body.Close()
 24981  		}
 24982  		return nil, gensupport.WrapError(&googleapi.Error{
 24983  			Code:   res.StatusCode,
 24984  			Header: res.Header,
 24985  		})
 24986  	}
 24987  	if err != nil {
 24988  		return nil, err
 24989  	}
 24990  	defer googleapi.CloseBody(res)
 24991  	if err := googleapi.CheckResponse(res); err != nil {
 24992  		return nil, gensupport.WrapError(err)
 24993  	}
 24994  	ret := &Empty{
 24995  		ServerResponse: googleapi.ServerResponse{
 24996  			Header:         res.Header,
 24997  			HTTPStatusCode: res.StatusCode,
 24998  		},
 24999  	}
 25000  	target := &ret
 25001  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25002  		return nil, err
 25003  	}
 25004  	return ret, nil
 25005  }
 25006  
 25007  type ProjectsLocationsLakesZonesEntitiesPartitionsGetCall struct {
 25008  	s            *Service
 25009  	name         string
 25010  	urlParams_   gensupport.URLParams
 25011  	ifNoneMatch_ string
 25012  	ctx_         context.Context
 25013  	header_      http.Header
 25014  }
 25015  
 25016  // Get: Get a metadata partition of an entity.
 25017  //
 25018  //   - name: The resource name of the partition:
 25019  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 25020  //     ne_id}/entities/{entity_id}/partitions/{partition_value_path}. The
 25021  //     {partition_value_path} segment consists of an ordered sequence of
 25022  //     partition values separated by "/". All values must be provided.
 25023  func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Get(name string) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
 25024  	c := &ProjectsLocationsLakesZonesEntitiesPartitionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25025  	c.name = name
 25026  	return c
 25027  }
 25028  
 25029  // Fields allows partial responses to be retrieved. See
 25030  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25031  // details.
 25032  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
 25033  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25034  	return c
 25035  }
 25036  
 25037  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25038  // object's ETag matches the given value. This is useful for getting updates
 25039  // only after the object has changed since the last request.
 25040  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
 25041  	c.ifNoneMatch_ = entityTag
 25042  	return c
 25043  }
 25044  
 25045  // Context sets the context to be used in this call's Do method.
 25046  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
 25047  	c.ctx_ = ctx
 25048  	return c
 25049  }
 25050  
 25051  // Header returns a http.Header that can be modified by the caller to add
 25052  // headers to the request.
 25053  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Header() http.Header {
 25054  	if c.header_ == nil {
 25055  		c.header_ = make(http.Header)
 25056  	}
 25057  	return c.header_
 25058  }
 25059  
 25060  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) doRequest(alt string) (*http.Response, error) {
 25061  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25062  	if c.ifNoneMatch_ != "" {
 25063  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25064  	}
 25065  	var body io.Reader = nil
 25066  	c.urlParams_.Set("alt", alt)
 25067  	c.urlParams_.Set("prettyPrint", "false")
 25068  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25069  	urls += "?" + c.urlParams_.Encode()
 25070  	req, err := http.NewRequest("GET", urls, body)
 25071  	if err != nil {
 25072  		return nil, err
 25073  	}
 25074  	req.Header = reqHeaders
 25075  	googleapi.Expand(req.URL, map[string]string{
 25076  		"name": c.name,
 25077  	})
 25078  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25079  }
 25080  
 25081  // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.get" call.
 25082  // Any non-2xx status code is an error. Response headers are in either
 25083  // *GoogleCloudDataplexV1Partition.ServerResponse.Header or (if a response was
 25084  // returned at all) in error.(*googleapi.Error).Header. Use
 25085  // googleapi.IsNotModified to check whether the returned error was because
 25086  // http.StatusNotModified was returned.
 25087  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Partition, error) {
 25088  	gensupport.SetOptions(c.urlParams_, opts...)
 25089  	res, err := c.doRequest("json")
 25090  	if res != nil && res.StatusCode == http.StatusNotModified {
 25091  		if res.Body != nil {
 25092  			res.Body.Close()
 25093  		}
 25094  		return nil, gensupport.WrapError(&googleapi.Error{
 25095  			Code:   res.StatusCode,
 25096  			Header: res.Header,
 25097  		})
 25098  	}
 25099  	if err != nil {
 25100  		return nil, err
 25101  	}
 25102  	defer googleapi.CloseBody(res)
 25103  	if err := googleapi.CheckResponse(res); err != nil {
 25104  		return nil, gensupport.WrapError(err)
 25105  	}
 25106  	ret := &GoogleCloudDataplexV1Partition{
 25107  		ServerResponse: googleapi.ServerResponse{
 25108  			Header:         res.Header,
 25109  			HTTPStatusCode: res.StatusCode,
 25110  		},
 25111  	}
 25112  	target := &ret
 25113  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25114  		return nil, err
 25115  	}
 25116  	return ret, nil
 25117  }
 25118  
 25119  type ProjectsLocationsLakesZonesEntitiesPartitionsListCall struct {
 25120  	s            *Service
 25121  	parent       string
 25122  	urlParams_   gensupport.URLParams
 25123  	ifNoneMatch_ string
 25124  	ctx_         context.Context
 25125  	header_      http.Header
 25126  }
 25127  
 25128  // List: List metadata partitions of an entity.
 25129  //
 25130  //   - parent: The resource name of the parent entity:
 25131  //     projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zo
 25132  //     ne_id}/entities/{entity_id}.
 25133  func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) List(parent string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25134  	c := &ProjectsLocationsLakesZonesEntitiesPartitionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25135  	c.parent = parent
 25136  	return c
 25137  }
 25138  
 25139  // Filter sets the optional parameter "filter": Filter the partitions returned
 25140  // to the caller using a key value pair expression. Supported operators and
 25141  // syntax: logic operators: AND, OR comparison operators: <, >, >=, <= ,=, !=
 25142  // LIKE operators: The right hand of a LIKE operator supports "." and "*" for
 25143  // wildcard searches, for example "value1 LIKE ".*oo.*" parenthetical grouping:
 25144  // ( )Sample filter expression: `?filter="key1 < value1 OR key2 > value2"Notes:
 25145  // Keys to the left of operators are case insensitive. Partition results are
 25146  // sorted first by creation time, then by lexicographic order. Up to 20 key
 25147  // value filter pairs are allowed, but due to performance considerations, only
 25148  // the first 10 will be used as a filter.
 25149  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Filter(filter string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25150  	c.urlParams_.Set("filter", filter)
 25151  	return c
 25152  }
 25153  
 25154  // PageSize sets the optional parameter "pageSize": Maximum number of
 25155  // partitions to return. The service may return fewer than this value. If
 25156  // unspecified, 100 partitions will be returned by default. The maximum page
 25157  // size is 500; larger values will will be truncated to 500.
 25158  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25159  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25160  	return c
 25161  }
 25162  
 25163  // PageToken sets the optional parameter "pageToken": Page token received from
 25164  // a previous ListPartitions call. Provide this to retrieve the subsequent
 25165  // page. When paginating, all other parameters provided to ListPartitions must
 25166  // match the call that provided the page token.
 25167  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25168  	c.urlParams_.Set("pageToken", pageToken)
 25169  	return c
 25170  }
 25171  
 25172  // Fields allows partial responses to be retrieved. See
 25173  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25174  // details.
 25175  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25176  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25177  	return c
 25178  }
 25179  
 25180  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25181  // object's ETag matches the given value. This is useful for getting updates
 25182  // only after the object has changed since the last request.
 25183  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25184  	c.ifNoneMatch_ = entityTag
 25185  	return c
 25186  }
 25187  
 25188  // Context sets the context to be used in this call's Do method.
 25189  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
 25190  	c.ctx_ = ctx
 25191  	return c
 25192  }
 25193  
 25194  // Header returns a http.Header that can be modified by the caller to add
 25195  // headers to the request.
 25196  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Header() http.Header {
 25197  	if c.header_ == nil {
 25198  		c.header_ = make(http.Header)
 25199  	}
 25200  	return c.header_
 25201  }
 25202  
 25203  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) doRequest(alt string) (*http.Response, error) {
 25204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25205  	if c.ifNoneMatch_ != "" {
 25206  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25207  	}
 25208  	var body io.Reader = nil
 25209  	c.urlParams_.Set("alt", alt)
 25210  	c.urlParams_.Set("prettyPrint", "false")
 25211  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/partitions")
 25212  	urls += "?" + c.urlParams_.Encode()
 25213  	req, err := http.NewRequest("GET", urls, body)
 25214  	if err != nil {
 25215  		return nil, err
 25216  	}
 25217  	req.Header = reqHeaders
 25218  	googleapi.Expand(req.URL, map[string]string{
 25219  		"parent": c.parent,
 25220  	})
 25221  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25222  }
 25223  
 25224  // Do executes the "dataplex.projects.locations.lakes.zones.entities.partitions.list" call.
 25225  // Any non-2xx status code is an error. Response headers are in either
 25226  // *GoogleCloudDataplexV1ListPartitionsResponse.ServerResponse.Header or (if a
 25227  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25228  // googleapi.IsNotModified to check whether the returned error was because
 25229  // http.StatusNotModified was returned.
 25230  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListPartitionsResponse, error) {
 25231  	gensupport.SetOptions(c.urlParams_, opts...)
 25232  	res, err := c.doRequest("json")
 25233  	if res != nil && res.StatusCode == http.StatusNotModified {
 25234  		if res.Body != nil {
 25235  			res.Body.Close()
 25236  		}
 25237  		return nil, gensupport.WrapError(&googleapi.Error{
 25238  			Code:   res.StatusCode,
 25239  			Header: res.Header,
 25240  		})
 25241  	}
 25242  	if err != nil {
 25243  		return nil, err
 25244  	}
 25245  	defer googleapi.CloseBody(res)
 25246  	if err := googleapi.CheckResponse(res); err != nil {
 25247  		return nil, gensupport.WrapError(err)
 25248  	}
 25249  	ret := &GoogleCloudDataplexV1ListPartitionsResponse{
 25250  		ServerResponse: googleapi.ServerResponse{
 25251  			Header:         res.Header,
 25252  			HTTPStatusCode: res.StatusCode,
 25253  		},
 25254  	}
 25255  	target := &ret
 25256  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25257  		return nil, err
 25258  	}
 25259  	return ret, nil
 25260  }
 25261  
 25262  // Pages invokes f for each page of results.
 25263  // A non-nil error returned from f will halt the iteration.
 25264  // The provided context supersedes any context provided to the Context method.
 25265  func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListPartitionsResponse) error) error {
 25266  	c.ctx_ = ctx
 25267  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25268  	for {
 25269  		x, err := c.Do()
 25270  		if err != nil {
 25271  			return err
 25272  		}
 25273  		if err := f(x); err != nil {
 25274  			return err
 25275  		}
 25276  		if x.NextPageToken == "" {
 25277  			return nil
 25278  		}
 25279  		c.PageToken(x.NextPageToken)
 25280  	}
 25281  }
 25282  
 25283  type ProjectsLocationsOperationsCancelCall struct {
 25284  	s                                       *Service
 25285  	name                                    string
 25286  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 25287  	urlParams_                              gensupport.URLParams
 25288  	ctx_                                    context.Context
 25289  	header_                                 http.Header
 25290  }
 25291  
 25292  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 25293  // server makes a best effort to cancel the operation, but success is not
 25294  // guaranteed. If the server doesn't support this method, it returns
 25295  // google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or
 25296  // other methods to check whether the cancellation succeeded or whether the
 25297  // operation completed despite cancellation. On successful cancellation, the
 25298  // operation is not deleted; instead, it becomes an operation with an
 25299  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 25300  // Code.CANCELLED.
 25301  //
 25302  // - name: The name of the operation resource to be cancelled.
 25303  func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
 25304  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25305  	c.name = name
 25306  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 25307  	return c
 25308  }
 25309  
 25310  // Fields allows partial responses to be retrieved. See
 25311  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25312  // details.
 25313  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
 25314  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25315  	return c
 25316  }
 25317  
 25318  // Context sets the context to be used in this call's Do method.
 25319  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
 25320  	c.ctx_ = ctx
 25321  	return c
 25322  }
 25323  
 25324  // Header returns a http.Header that can be modified by the caller to add
 25325  // headers to the request.
 25326  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
 25327  	if c.header_ == nil {
 25328  		c.header_ = make(http.Header)
 25329  	}
 25330  	return c.header_
 25331  }
 25332  
 25333  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 25334  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25335  	var body io.Reader = nil
 25336  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 25337  	if err != nil {
 25338  		return nil, err
 25339  	}
 25340  	c.urlParams_.Set("alt", alt)
 25341  	c.urlParams_.Set("prettyPrint", "false")
 25342  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
 25343  	urls += "?" + c.urlParams_.Encode()
 25344  	req, err := http.NewRequest("POST", urls, body)
 25345  	if err != nil {
 25346  		return nil, err
 25347  	}
 25348  	req.Header = reqHeaders
 25349  	googleapi.Expand(req.URL, map[string]string{
 25350  		"name": c.name,
 25351  	})
 25352  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25353  }
 25354  
 25355  // Do executes the "dataplex.projects.locations.operations.cancel" call.
 25356  // Any non-2xx status code is an error. Response headers are in either
 25357  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 25358  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25359  // whether the returned error was because http.StatusNotModified was returned.
 25360  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 25361  	gensupport.SetOptions(c.urlParams_, opts...)
 25362  	res, err := c.doRequest("json")
 25363  	if res != nil && res.StatusCode == http.StatusNotModified {
 25364  		if res.Body != nil {
 25365  			res.Body.Close()
 25366  		}
 25367  		return nil, gensupport.WrapError(&googleapi.Error{
 25368  			Code:   res.StatusCode,
 25369  			Header: res.Header,
 25370  		})
 25371  	}
 25372  	if err != nil {
 25373  		return nil, err
 25374  	}
 25375  	defer googleapi.CloseBody(res)
 25376  	if err := googleapi.CheckResponse(res); err != nil {
 25377  		return nil, gensupport.WrapError(err)
 25378  	}
 25379  	ret := &Empty{
 25380  		ServerResponse: googleapi.ServerResponse{
 25381  			Header:         res.Header,
 25382  			HTTPStatusCode: res.StatusCode,
 25383  		},
 25384  	}
 25385  	target := &ret
 25386  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25387  		return nil, err
 25388  	}
 25389  	return ret, nil
 25390  }
 25391  
 25392  type ProjectsLocationsOperationsDeleteCall struct {
 25393  	s          *Service
 25394  	name       string
 25395  	urlParams_ gensupport.URLParams
 25396  	ctx_       context.Context
 25397  	header_    http.Header
 25398  }
 25399  
 25400  // Delete: Deletes a long-running operation. This method indicates that the
 25401  // client is no longer interested in the operation result. It does not cancel
 25402  // the operation. If the server doesn't support this method, it returns
 25403  // google.rpc.Code.UNIMPLEMENTED.
 25404  //
 25405  // - name: The name of the operation resource to be deleted.
 25406  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
 25407  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25408  	c.name = name
 25409  	return c
 25410  }
 25411  
 25412  // Fields allows partial responses to be retrieved. See
 25413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25414  // details.
 25415  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
 25416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25417  	return c
 25418  }
 25419  
 25420  // Context sets the context to be used in this call's Do method.
 25421  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
 25422  	c.ctx_ = ctx
 25423  	return c
 25424  }
 25425  
 25426  // Header returns a http.Header that can be modified by the caller to add
 25427  // headers to the request.
 25428  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
 25429  	if c.header_ == nil {
 25430  		c.header_ = make(http.Header)
 25431  	}
 25432  	return c.header_
 25433  }
 25434  
 25435  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25436  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25437  	var body io.Reader = nil
 25438  	c.urlParams_.Set("alt", alt)
 25439  	c.urlParams_.Set("prettyPrint", "false")
 25440  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25441  	urls += "?" + c.urlParams_.Encode()
 25442  	req, err := http.NewRequest("DELETE", urls, body)
 25443  	if err != nil {
 25444  		return nil, err
 25445  	}
 25446  	req.Header = reqHeaders
 25447  	googleapi.Expand(req.URL, map[string]string{
 25448  		"name": c.name,
 25449  	})
 25450  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25451  }
 25452  
 25453  // Do executes the "dataplex.projects.locations.operations.delete" call.
 25454  // Any non-2xx status code is an error. Response headers are in either
 25455  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 25456  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25457  // whether the returned error was because http.StatusNotModified was returned.
 25458  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 25459  	gensupport.SetOptions(c.urlParams_, opts...)
 25460  	res, err := c.doRequest("json")
 25461  	if res != nil && res.StatusCode == http.StatusNotModified {
 25462  		if res.Body != nil {
 25463  			res.Body.Close()
 25464  		}
 25465  		return nil, gensupport.WrapError(&googleapi.Error{
 25466  			Code:   res.StatusCode,
 25467  			Header: res.Header,
 25468  		})
 25469  	}
 25470  	if err != nil {
 25471  		return nil, err
 25472  	}
 25473  	defer googleapi.CloseBody(res)
 25474  	if err := googleapi.CheckResponse(res); err != nil {
 25475  		return nil, gensupport.WrapError(err)
 25476  	}
 25477  	ret := &Empty{
 25478  		ServerResponse: googleapi.ServerResponse{
 25479  			Header:         res.Header,
 25480  			HTTPStatusCode: res.StatusCode,
 25481  		},
 25482  	}
 25483  	target := &ret
 25484  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25485  		return nil, err
 25486  	}
 25487  	return ret, nil
 25488  }
 25489  
 25490  type ProjectsLocationsOperationsGetCall struct {
 25491  	s            *Service
 25492  	name         string
 25493  	urlParams_   gensupport.URLParams
 25494  	ifNoneMatch_ string
 25495  	ctx_         context.Context
 25496  	header_      http.Header
 25497  }
 25498  
 25499  // Get: Gets the latest state of a long-running operation. Clients can use this
 25500  // method to poll the operation result at intervals as recommended by the API
 25501  // service.
 25502  //
 25503  // - name: The name of the operation resource.
 25504  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 25505  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25506  	c.name = name
 25507  	return c
 25508  }
 25509  
 25510  // Fields allows partial responses to be retrieved. See
 25511  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25512  // details.
 25513  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 25514  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25515  	return c
 25516  }
 25517  
 25518  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25519  // object's ETag matches the given value. This is useful for getting updates
 25520  // only after the object has changed since the last request.
 25521  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 25522  	c.ifNoneMatch_ = entityTag
 25523  	return c
 25524  }
 25525  
 25526  // Context sets the context to be used in this call's Do method.
 25527  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 25528  	c.ctx_ = ctx
 25529  	return c
 25530  }
 25531  
 25532  // Header returns a http.Header that can be modified by the caller to add
 25533  // headers to the request.
 25534  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 25535  	if c.header_ == nil {
 25536  		c.header_ = make(http.Header)
 25537  	}
 25538  	return c.header_
 25539  }
 25540  
 25541  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 25542  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25543  	if c.ifNoneMatch_ != "" {
 25544  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25545  	}
 25546  	var body io.Reader = nil
 25547  	c.urlParams_.Set("alt", alt)
 25548  	c.urlParams_.Set("prettyPrint", "false")
 25549  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 25550  	urls += "?" + c.urlParams_.Encode()
 25551  	req, err := http.NewRequest("GET", urls, body)
 25552  	if err != nil {
 25553  		return nil, err
 25554  	}
 25555  	req.Header = reqHeaders
 25556  	googleapi.Expand(req.URL, map[string]string{
 25557  		"name": c.name,
 25558  	})
 25559  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25560  }
 25561  
 25562  // Do executes the "dataplex.projects.locations.operations.get" call.
 25563  // Any non-2xx status code is an error. Response headers are in either
 25564  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25565  // returned at all) in error.(*googleapi.Error).Header. Use
 25566  // googleapi.IsNotModified to check whether the returned error was because
 25567  // http.StatusNotModified was returned.
 25568  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25569  	gensupport.SetOptions(c.urlParams_, opts...)
 25570  	res, err := c.doRequest("json")
 25571  	if res != nil && res.StatusCode == http.StatusNotModified {
 25572  		if res.Body != nil {
 25573  			res.Body.Close()
 25574  		}
 25575  		return nil, gensupport.WrapError(&googleapi.Error{
 25576  			Code:   res.StatusCode,
 25577  			Header: res.Header,
 25578  		})
 25579  	}
 25580  	if err != nil {
 25581  		return nil, err
 25582  	}
 25583  	defer googleapi.CloseBody(res)
 25584  	if err := googleapi.CheckResponse(res); err != nil {
 25585  		return nil, gensupport.WrapError(err)
 25586  	}
 25587  	ret := &GoogleLongrunningOperation{
 25588  		ServerResponse: googleapi.ServerResponse{
 25589  			Header:         res.Header,
 25590  			HTTPStatusCode: res.StatusCode,
 25591  		},
 25592  	}
 25593  	target := &ret
 25594  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25595  		return nil, err
 25596  	}
 25597  	return ret, nil
 25598  }
 25599  
 25600  type ProjectsLocationsOperationsListCall struct {
 25601  	s            *Service
 25602  	name         string
 25603  	urlParams_   gensupport.URLParams
 25604  	ifNoneMatch_ string
 25605  	ctx_         context.Context
 25606  	header_      http.Header
 25607  }
 25608  
 25609  // List: Lists operations that match the specified filter in the request. If
 25610  // the server doesn't support this method, it returns UNIMPLEMENTED.
 25611  //
 25612  // - name: The name of the operation's parent resource.
 25613  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 25614  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25615  	c.name = name
 25616  	return c
 25617  }
 25618  
 25619  // Filter sets the optional parameter "filter": The standard list filter.
 25620  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 25621  	c.urlParams_.Set("filter", filter)
 25622  	return c
 25623  }
 25624  
 25625  // PageSize sets the optional parameter "pageSize": The standard list page
 25626  // size.
 25627  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 25628  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25629  	return c
 25630  }
 25631  
 25632  // PageToken sets the optional parameter "pageToken": The standard list page
 25633  // token.
 25634  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 25635  	c.urlParams_.Set("pageToken", pageToken)
 25636  	return c
 25637  }
 25638  
 25639  // Fields allows partial responses to be retrieved. See
 25640  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25641  // details.
 25642  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 25643  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25644  	return c
 25645  }
 25646  
 25647  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25648  // object's ETag matches the given value. This is useful for getting updates
 25649  // only after the object has changed since the last request.
 25650  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 25651  	c.ifNoneMatch_ = entityTag
 25652  	return c
 25653  }
 25654  
 25655  // Context sets the context to be used in this call's Do method.
 25656  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 25657  	c.ctx_ = ctx
 25658  	return c
 25659  }
 25660  
 25661  // Header returns a http.Header that can be modified by the caller to add
 25662  // headers to the request.
 25663  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 25664  	if c.header_ == nil {
 25665  		c.header_ = make(http.Header)
 25666  	}
 25667  	return c.header_
 25668  }
 25669  
 25670  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 25671  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25672  	if c.ifNoneMatch_ != "" {
 25673  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25674  	}
 25675  	var body io.Reader = nil
 25676  	c.urlParams_.Set("alt", alt)
 25677  	c.urlParams_.Set("prettyPrint", "false")
 25678  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
 25679  	urls += "?" + c.urlParams_.Encode()
 25680  	req, err := http.NewRequest("GET", urls, body)
 25681  	if err != nil {
 25682  		return nil, err
 25683  	}
 25684  	req.Header = reqHeaders
 25685  	googleapi.Expand(req.URL, map[string]string{
 25686  		"name": c.name,
 25687  	})
 25688  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25689  }
 25690  
 25691  // Do executes the "dataplex.projects.locations.operations.list" call.
 25692  // Any non-2xx status code is an error. Response headers are in either
 25693  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 25694  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25695  // googleapi.IsNotModified to check whether the returned error was because
 25696  // http.StatusNotModified was returned.
 25697  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 25698  	gensupport.SetOptions(c.urlParams_, opts...)
 25699  	res, err := c.doRequest("json")
 25700  	if res != nil && res.StatusCode == http.StatusNotModified {
 25701  		if res.Body != nil {
 25702  			res.Body.Close()
 25703  		}
 25704  		return nil, gensupport.WrapError(&googleapi.Error{
 25705  			Code:   res.StatusCode,
 25706  			Header: res.Header,
 25707  		})
 25708  	}
 25709  	if err != nil {
 25710  		return nil, err
 25711  	}
 25712  	defer googleapi.CloseBody(res)
 25713  	if err := googleapi.CheckResponse(res); err != nil {
 25714  		return nil, gensupport.WrapError(err)
 25715  	}
 25716  	ret := &GoogleLongrunningListOperationsResponse{
 25717  		ServerResponse: googleapi.ServerResponse{
 25718  			Header:         res.Header,
 25719  			HTTPStatusCode: res.StatusCode,
 25720  		},
 25721  	}
 25722  	target := &ret
 25723  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25724  		return nil, err
 25725  	}
 25726  	return ret, nil
 25727  }
 25728  
 25729  // Pages invokes f for each page of results.
 25730  // A non-nil error returned from f will halt the iteration.
 25731  // The provided context supersedes any context provided to the Context method.
 25732  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 25733  	c.ctx_ = ctx
 25734  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25735  	for {
 25736  		x, err := c.Do()
 25737  		if err != nil {
 25738  			return err
 25739  		}
 25740  		if err := f(x); err != nil {
 25741  			return err
 25742  		}
 25743  		if x.NextPageToken == "" {
 25744  			return nil
 25745  		}
 25746  		c.PageToken(x.NextPageToken)
 25747  	}
 25748  }
 25749  

View as plain text