1// Package dlp provides access to the Cloud Data Loss Prevention (DLP) API.
2//
3// See https://cloud.google.com/dlp/docs/
4//
5// Usage example:
6//
7//   import "google.golang.org/api/dlp/v2beta2"
8//   ...
9//   dlpService, err := dlp.New(oauthHttpClient)
10package dlp // import "google.golang.org/api/dlp/v2beta2"
11
12import (
13	"bytes"
14	"encoding/json"
15	"errors"
16	"fmt"
17	context "golang.org/x/net/context"
18	ctxhttp "golang.org/x/net/context/ctxhttp"
19	gensupport "google.golang.org/api/gensupport"
20	googleapi "google.golang.org/api/googleapi"
21	"io"
22	"net/http"
23	"net/url"
24	"strconv"
25	"strings"
26)
27
28// Always reference these packages, just in case the auto-generated code
29// below doesn't.
30var _ = bytes.NewBuffer
31var _ = strconv.Itoa
32var _ = fmt.Sprintf
33var _ = json.NewDecoder
34var _ = io.Copy
35var _ = url.Parse
36var _ = gensupport.MarshalJSON
37var _ = googleapi.Version
38var _ = errors.New
39var _ = strings.Replace
40var _ = context.Canceled
41var _ = ctxhttp.Do
42
43const apiId = "dlp:v2beta2"
44const apiName = "dlp"
45const apiVersion = "v2beta2"
46const basePath = "https://dlp.googleapis.com/"
47
48// OAuth2 scopes used by this API.
49const (
50	// View and manage your data across Google Cloud Platform services
51	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
52)
53
54func New(client *http.Client) (*Service, error) {
55	if client == nil {
56		return nil, errors.New("client is nil")
57	}
58	s := &Service{client: client, BasePath: basePath}
59	s.InfoTypes = NewInfoTypesService(s)
60	s.Organizations = NewOrganizationsService(s)
61	s.Projects = NewProjectsService(s)
62	return s, nil
63}
64
65type Service struct {
66	client    *http.Client
67	BasePath  string // API endpoint base URL
68	UserAgent string // optional additional User-Agent fragment
69
70	InfoTypes *InfoTypesService
71
72	Organizations *OrganizationsService
73
74	Projects *ProjectsService
75}
76
77func (s *Service) userAgent() string {
78	if s.UserAgent == "" {
79		return googleapi.UserAgent
80	}
81	return googleapi.UserAgent + " " + s.UserAgent
82}
83
84func NewInfoTypesService(s *Service) *InfoTypesService {
85	rs := &InfoTypesService{s: s}
86	return rs
87}
88
89type InfoTypesService struct {
90	s *Service
91}
92
93func NewOrganizationsService(s *Service) *OrganizationsService {
94	rs := &OrganizationsService{s: s}
95	rs.DeidentifyTemplates = NewOrganizationsDeidentifyTemplatesService(s)
96	rs.InspectTemplates = NewOrganizationsInspectTemplatesService(s)
97	return rs
98}
99
100type OrganizationsService struct {
101	s *Service
102
103	DeidentifyTemplates *OrganizationsDeidentifyTemplatesService
104
105	InspectTemplates *OrganizationsInspectTemplatesService
106}
107
108func NewOrganizationsDeidentifyTemplatesService(s *Service) *OrganizationsDeidentifyTemplatesService {
109	rs := &OrganizationsDeidentifyTemplatesService{s: s}
110	return rs
111}
112
113type OrganizationsDeidentifyTemplatesService struct {
114	s *Service
115}
116
117func NewOrganizationsInspectTemplatesService(s *Service) *OrganizationsInspectTemplatesService {
118	rs := &OrganizationsInspectTemplatesService{s: s}
119	return rs
120}
121
122type OrganizationsInspectTemplatesService struct {
123	s *Service
124}
125
126func NewProjectsService(s *Service) *ProjectsService {
127	rs := &ProjectsService{s: s}
128	rs.Content = NewProjectsContentService(s)
129	rs.DataSource = NewProjectsDataSourceService(s)
130	rs.DeidentifyTemplates = NewProjectsDeidentifyTemplatesService(s)
131	rs.DlpJobs = NewProjectsDlpJobsService(s)
132	rs.Image = NewProjectsImageService(s)
133	rs.InspectTemplates = NewProjectsInspectTemplatesService(s)
134	rs.JobTriggers = NewProjectsJobTriggersService(s)
135	return rs
136}
137
138type ProjectsService struct {
139	s *Service
140
141	Content *ProjectsContentService
142
143	DataSource *ProjectsDataSourceService
144
145	DeidentifyTemplates *ProjectsDeidentifyTemplatesService
146
147	DlpJobs *ProjectsDlpJobsService
148
149	Image *ProjectsImageService
150
151	InspectTemplates *ProjectsInspectTemplatesService
152
153	JobTriggers *ProjectsJobTriggersService
154}
155
156func NewProjectsContentService(s *Service) *ProjectsContentService {
157	rs := &ProjectsContentService{s: s}
158	return rs
159}
160
161type ProjectsContentService struct {
162	s *Service
163}
164
165func NewProjectsDataSourceService(s *Service) *ProjectsDataSourceService {
166	rs := &ProjectsDataSourceService{s: s}
167	return rs
168}
169
170type ProjectsDataSourceService struct {
171	s *Service
172}
173
174func NewProjectsDeidentifyTemplatesService(s *Service) *ProjectsDeidentifyTemplatesService {
175	rs := &ProjectsDeidentifyTemplatesService{s: s}
176	return rs
177}
178
179type ProjectsDeidentifyTemplatesService struct {
180	s *Service
181}
182
183func NewProjectsDlpJobsService(s *Service) *ProjectsDlpJobsService {
184	rs := &ProjectsDlpJobsService{s: s}
185	return rs
186}
187
188type ProjectsDlpJobsService struct {
189	s *Service
190}
191
192func NewProjectsImageService(s *Service) *ProjectsImageService {
193	rs := &ProjectsImageService{s: s}
194	return rs
195}
196
197type ProjectsImageService struct {
198	s *Service
199}
200
201func NewProjectsInspectTemplatesService(s *Service) *ProjectsInspectTemplatesService {
202	rs := &ProjectsInspectTemplatesService{s: s}
203	return rs
204}
205
206type ProjectsInspectTemplatesService struct {
207	s *Service
208}
209
210func NewProjectsJobTriggersService(s *Service) *ProjectsJobTriggersService {
211	rs := &ProjectsJobTriggersService{s: s}
212	return rs
213}
214
215type ProjectsJobTriggersService struct {
216	s *Service
217}
218
219// GooglePrivacyDlpV2beta1AuxiliaryTable: An auxiliary table contains
220// statistical information on the relative
221// frequency of different quasi-identifiers values. It has one or
222// several
223// quasi-identifiers columns, and one column that indicates the
224// relative
225// frequency of each quasi-identifier tuple.
226// If a tuple is present in the data but not in the auxiliary table,
227// the
228// corresponding relative frequency is assumed to be zero (and thus,
229// the
230// tuple is highly reidentifiable).
231type GooglePrivacyDlpV2beta1AuxiliaryTable struct {
232	// QuasiIds: Quasi-identifier columns. [required]
233	QuasiIds []*GooglePrivacyDlpV2beta1QuasiIdField `json:"quasiIds,omitempty"`
234
235	// RelativeFrequency: The relative frequency column must contain a
236	// floating-point number
237	// between 0 and 1 (inclusive). Null values are assumed to be
238	// zero.
239	// [required]
240	RelativeFrequency *GooglePrivacyDlpV2beta1FieldId `json:"relativeFrequency,omitempty"`
241
242	// Table: Auxiliary table location. [required]
243	Table *GooglePrivacyDlpV2beta1BigQueryTable `json:"table,omitempty"`
244
245	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
246	// unconditionally include in API requests. By default, fields with
247	// empty values are omitted from API requests. However, any non-pointer,
248	// non-interface field appearing in ForceSendFields will be sent to the
249	// server regardless of whether the field is empty or not. This may be
250	// used to include empty fields in Patch requests.
251	ForceSendFields []string `json:"-"`
252
253	// NullFields is a list of field names (e.g. "QuasiIds") to include in
254	// API requests with the JSON null value. By default, fields with empty
255	// values are omitted from API requests. However, any field with an
256	// empty value appearing in NullFields will be sent to the server as
257	// null. It is an error if a field in this list has a non-empty value.
258	// This may be used to include null fields in Patch requests.
259	NullFields []string `json:"-"`
260}
261
262func (s *GooglePrivacyDlpV2beta1AuxiliaryTable) MarshalJSON() ([]byte, error) {
263	type NoMethod GooglePrivacyDlpV2beta1AuxiliaryTable
264	raw := NoMethod(*s)
265	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
266}
267
268// GooglePrivacyDlpV2beta1BigQueryOptions: Options defining BigQuery
269// table and row identifiers.
270type GooglePrivacyDlpV2beta1BigQueryOptions struct {
271	// IdentifyingFields: References to fields uniquely identifying rows
272	// within the table.
273	// Nested fields in the format, like `person.birthdate.year`, are
274	// allowed.
275	IdentifyingFields []*GooglePrivacyDlpV2beta1FieldId `json:"identifyingFields,omitempty"`
276
277	// TableReference: Complete BigQuery table reference.
278	TableReference *GooglePrivacyDlpV2beta1BigQueryTable `json:"tableReference,omitempty"`
279
280	// ForceSendFields is a list of field names (e.g. "IdentifyingFields")
281	// to unconditionally include in API requests. By default, fields with
282	// empty values are omitted from API requests. However, any non-pointer,
283	// non-interface field appearing in ForceSendFields will be sent to the
284	// server regardless of whether the field is empty or not. This may be
285	// used to include empty fields in Patch requests.
286	ForceSendFields []string `json:"-"`
287
288	// NullFields is a list of field names (e.g. "IdentifyingFields") to
289	// include in API requests with the JSON null value. By default, fields
290	// with empty values are omitted from API requests. However, any field
291	// with an empty value appearing in NullFields will be sent to the
292	// server as null. It is an error if a field in this list has a
293	// non-empty value. This may be used to include null fields in Patch
294	// requests.
295	NullFields []string `json:"-"`
296}
297
298func (s *GooglePrivacyDlpV2beta1BigQueryOptions) MarshalJSON() ([]byte, error) {
299	type NoMethod GooglePrivacyDlpV2beta1BigQueryOptions
300	raw := NoMethod(*s)
301	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
302}
303
304// GooglePrivacyDlpV2beta1BigQueryTable: Message defining the location
305// of a BigQuery table. A table is uniquely
306// identified  by its project_id, dataset_id, and table_name. Within a
307// query
308// a table is often referenced with a string in the format
309// of:
310// `<project_id>:<dataset_id>.<table_id>`
311// or
312// `<project_id>.<dataset_id>.<table_id>`.
313type GooglePrivacyDlpV2beta1BigQueryTable struct {
314	// DatasetId: Dataset ID of the table.
315	DatasetId string `json:"datasetId,omitempty"`
316
317	// ProjectId: The Google Cloud Platform project ID of the project
318	// containing the table.
319	// If omitted, project ID is inferred from the API call.
320	ProjectId string `json:"projectId,omitempty"`
321
322	// TableId: Name of the table.
323	TableId string `json:"tableId,omitempty"`
324
325	// ForceSendFields is a list of field names (e.g. "DatasetId") to
326	// unconditionally include in API requests. By default, fields with
327	// empty values are omitted from API requests. However, any non-pointer,
328	// non-interface field appearing in ForceSendFields will be sent to the
329	// server regardless of whether the field is empty or not. This may be
330	// used to include empty fields in Patch requests.
331	ForceSendFields []string `json:"-"`
332
333	// NullFields is a list of field names (e.g. "DatasetId") to include in
334	// API requests with the JSON null value. By default, fields with empty
335	// values are omitted from API requests. However, any field with an
336	// empty value appearing in NullFields will be sent to the server as
337	// null. It is an error if a field in this list has a non-empty value.
338	// This may be used to include null fields in Patch requests.
339	NullFields []string `json:"-"`
340}
341
342func (s *GooglePrivacyDlpV2beta1BigQueryTable) MarshalJSON() ([]byte, error) {
343	type NoMethod GooglePrivacyDlpV2beta1BigQueryTable
344	raw := NoMethod(*s)
345	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
346}
347
348// GooglePrivacyDlpV2beta1CategoricalStatsConfig: Compute numerical
349// stats over an individual column, including
350// number of distinct values and value count distribution.
351type GooglePrivacyDlpV2beta1CategoricalStatsConfig struct {
352	// Field: Field to compute categorical stats on. All column types
353	// are
354	// supported except for arrays and structs. However, it may be
355	// more
356	// informative to use NumericalStats when the field type is
357	// supported,
358	// depending on the data.
359	Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
360
361	// ForceSendFields is a list of field names (e.g. "Field") to
362	// unconditionally include in API requests. By default, fields with
363	// empty values are omitted from API requests. However, any non-pointer,
364	// non-interface field appearing in ForceSendFields will be sent to the
365	// server regardless of whether the field is empty or not. This may be
366	// used to include empty fields in Patch requests.
367	ForceSendFields []string `json:"-"`
368
369	// NullFields is a list of field names (e.g. "Field") to include in API
370	// requests with the JSON null value. By default, fields with empty
371	// values are omitted from API requests. However, any field with an
372	// empty value appearing in NullFields will be sent to the server as
373	// null. It is an error if a field in this list has a non-empty value.
374	// This may be used to include null fields in Patch requests.
375	NullFields []string `json:"-"`
376}
377
378func (s *GooglePrivacyDlpV2beta1CategoricalStatsConfig) MarshalJSON() ([]byte, error) {
379	type NoMethod GooglePrivacyDlpV2beta1CategoricalStatsConfig
380	raw := NoMethod(*s)
381	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
382}
383
384// GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket: Histogram
385// bucket of value frequencies in the column.
386type GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket struct {
387	// BucketSize: Total number of records in this bucket.
388	BucketSize int64 `json:"bucketSize,omitempty,string"`
389
390	// BucketValues: Sample of value frequencies in this bucket. The total
391	// number of
392	// values returned per bucket is capped at 20.
393	BucketValues []*GooglePrivacyDlpV2beta1ValueFrequency `json:"bucketValues,omitempty"`
394
395	// ValueFrequencyLowerBound: Lower bound on the value frequency of the
396	// values in this bucket.
397	ValueFrequencyLowerBound int64 `json:"valueFrequencyLowerBound,omitempty,string"`
398
399	// ValueFrequencyUpperBound: Upper bound on the value frequency of the
400	// values in this bucket.
401	ValueFrequencyUpperBound int64 `json:"valueFrequencyUpperBound,omitempty,string"`
402
403	// ForceSendFields is a list of field names (e.g. "BucketSize") to
404	// unconditionally include in API requests. By default, fields with
405	// empty values are omitted from API requests. However, any non-pointer,
406	// non-interface field appearing in ForceSendFields will be sent to the
407	// server regardless of whether the field is empty or not. This may be
408	// used to include empty fields in Patch requests.
409	ForceSendFields []string `json:"-"`
410
411	// NullFields is a list of field names (e.g. "BucketSize") to include in
412	// API requests with the JSON null value. By default, fields with empty
413	// values are omitted from API requests. However, any field with an
414	// empty value appearing in NullFields will be sent to the server as
415	// null. It is an error if a field in this list has a non-empty value.
416	// This may be used to include null fields in Patch requests.
417	NullFields []string `json:"-"`
418}
419
420func (s *GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket) MarshalJSON() ([]byte, error) {
421	type NoMethod GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket
422	raw := NoMethod(*s)
423	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
424}
425
426// GooglePrivacyDlpV2beta1CategoricalStatsResult: Result of the
427// categorical stats computation.
428type GooglePrivacyDlpV2beta1CategoricalStatsResult struct {
429	// ValueFrequencyHistogramBuckets: Histogram of value frequencies in the
430	// column.
431	ValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket `json:"valueFrequencyHistogramBuckets,omitempty"`
432
433	// ForceSendFields is a list of field names (e.g.
434	// "ValueFrequencyHistogramBuckets") to unconditionally include in API
435	// requests. By default, fields with empty values are omitted from API
436	// requests. However, any non-pointer, non-interface field appearing in
437	// ForceSendFields will be sent to the server regardless of whether the
438	// field is empty or not. This may be used to include empty fields in
439	// Patch requests.
440	ForceSendFields []string `json:"-"`
441
442	// NullFields is a list of field names (e.g.
443	// "ValueFrequencyHistogramBuckets") to include in API requests with the
444	// JSON null value. By default, fields with empty values are omitted
445	// from API requests. However, any field with an empty value appearing
446	// in NullFields will be sent to the server as null. It is an error if a
447	// field in this list has a non-empty value. This may be used to include
448	// null fields in Patch requests.
449	NullFields []string `json:"-"`
450}
451
452func (s *GooglePrivacyDlpV2beta1CategoricalStatsResult) MarshalJSON() ([]byte, error) {
453	type NoMethod GooglePrivacyDlpV2beta1CategoricalStatsResult
454	raw := NoMethod(*s)
455	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
456}
457
458// GooglePrivacyDlpV2beta1CloudStorageOptions: Options defining a file
459// or a set of files (path ending with *) within
460// a Google Cloud Storage bucket.
461type GooglePrivacyDlpV2beta1CloudStorageOptions struct {
462	FileSet *GooglePrivacyDlpV2beta1FileSet `json:"fileSet,omitempty"`
463
464	// ForceSendFields is a list of field names (e.g. "FileSet") to
465	// unconditionally include in API requests. By default, fields with
466	// empty values are omitted from API requests. However, any non-pointer,
467	// non-interface field appearing in ForceSendFields will be sent to the
468	// server regardless of whether the field is empty or not. This may be
469	// used to include empty fields in Patch requests.
470	ForceSendFields []string `json:"-"`
471
472	// NullFields is a list of field names (e.g. "FileSet") to include in
473	// API requests with the JSON null value. By default, fields with empty
474	// values are omitted from API requests. However, any field with an
475	// empty value appearing in NullFields will be sent to the server as
476	// null. It is an error if a field in this list has a non-empty value.
477	// This may be used to include null fields in Patch requests.
478	NullFields []string `json:"-"`
479}
480
481func (s *GooglePrivacyDlpV2beta1CloudStorageOptions) MarshalJSON() ([]byte, error) {
482	type NoMethod GooglePrivacyDlpV2beta1CloudStorageOptions
483	raw := NoMethod(*s)
484	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
485}
486
487// GooglePrivacyDlpV2beta1CloudStoragePath: A location in Cloud Storage.
488type GooglePrivacyDlpV2beta1CloudStoragePath struct {
489	// Path: The url, in the format of `gs://bucket/<path>`.
490	Path string `json:"path,omitempty"`
491
492	// ForceSendFields is a list of field names (e.g. "Path") to
493	// unconditionally include in API requests. By default, fields with
494	// empty values are omitted from API requests. However, any non-pointer,
495	// non-interface field appearing in ForceSendFields will be sent to the
496	// server regardless of whether the field is empty or not. This may be
497	// used to include empty fields in Patch requests.
498	ForceSendFields []string `json:"-"`
499
500	// NullFields is a list of field names (e.g. "Path") to include in API
501	// requests with the JSON null value. By default, fields with empty
502	// values are omitted from API requests. However, any field with an
503	// empty value appearing in NullFields will be sent to the server as
504	// null. It is an error if a field in this list has a non-empty value.
505	// This may be used to include null fields in Patch requests.
506	NullFields []string `json:"-"`
507}
508
509func (s *GooglePrivacyDlpV2beta1CloudStoragePath) MarshalJSON() ([]byte, error) {
510	type NoMethod GooglePrivacyDlpV2beta1CloudStoragePath
511	raw := NoMethod(*s)
512	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
513}
514
515// GooglePrivacyDlpV2beta1CustomInfoType: Custom information type
516// provided by the user. Used to find domain-specific
517// sensitive information configurable to the data in question.
518type GooglePrivacyDlpV2beta1CustomInfoType struct {
519	// Dictionary: Dictionary-based custom info type.
520	Dictionary *GooglePrivacyDlpV2beta1Dictionary `json:"dictionary,omitempty"`
521
522	// InfoType: Info type configuration. All custom info types must have
523	// configurations
524	// that do not conflict with built-in info types or other custom info
525	// types.
526	InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
527
528	// SurrogateType: Surrogate info type.
529	SurrogateType *GooglePrivacyDlpV2beta1SurrogateType `json:"surrogateType,omitempty"`
530
531	// ForceSendFields is a list of field names (e.g. "Dictionary") to
532	// unconditionally include in API requests. By default, fields with
533	// empty values are omitted from API requests. However, any non-pointer,
534	// non-interface field appearing in ForceSendFields will be sent to the
535	// server regardless of whether the field is empty or not. This may be
536	// used to include empty fields in Patch requests.
537	ForceSendFields []string `json:"-"`
538
539	// NullFields is a list of field names (e.g. "Dictionary") to include in
540	// API requests with the JSON null value. By default, fields with empty
541	// values are omitted from API requests. However, any field with an
542	// empty value appearing in NullFields will be sent to the server as
543	// null. It is an error if a field in this list has a non-empty value.
544	// This may be used to include null fields in Patch requests.
545	NullFields []string `json:"-"`
546}
547
548func (s *GooglePrivacyDlpV2beta1CustomInfoType) MarshalJSON() ([]byte, error) {
549	type NoMethod GooglePrivacyDlpV2beta1CustomInfoType
550	raw := NoMethod(*s)
551	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
552}
553
554// GooglePrivacyDlpV2beta1DatastoreOptions: Options defining a data set
555// within Google Cloud Datastore.
556type GooglePrivacyDlpV2beta1DatastoreOptions struct {
557	// Kind: The kind to process.
558	Kind *GooglePrivacyDlpV2beta1KindExpression `json:"kind,omitempty"`
559
560	// PartitionId: A partition ID identifies a grouping of entities. The
561	// grouping is always
562	// by project and namespace, however the namespace ID may be empty.
563	PartitionId *GooglePrivacyDlpV2beta1PartitionId `json:"partitionId,omitempty"`
564
565	// Projection: Properties to scan. If none are specified, all properties
566	// will be scanned
567	// by default.
568	Projection []*GooglePrivacyDlpV2beta1Projection `json:"projection,omitempty"`
569
570	// ForceSendFields is a list of field names (e.g. "Kind") to
571	// unconditionally include in API requests. By default, fields with
572	// empty values are omitted from API requests. However, any non-pointer,
573	// non-interface field appearing in ForceSendFields will be sent to the
574	// server regardless of whether the field is empty or not. This may be
575	// used to include empty fields in Patch requests.
576	ForceSendFields []string `json:"-"`
577
578	// NullFields is a list of field names (e.g. "Kind") to include in API
579	// requests with the JSON null value. By default, fields with empty
580	// values are omitted from API requests. However, any field with an
581	// empty value appearing in NullFields will be sent to the server as
582	// null. It is an error if a field in this list has a non-empty value.
583	// This may be used to include null fields in Patch requests.
584	NullFields []string `json:"-"`
585}
586
587func (s *GooglePrivacyDlpV2beta1DatastoreOptions) MarshalJSON() ([]byte, error) {
588	type NoMethod GooglePrivacyDlpV2beta1DatastoreOptions
589	raw := NoMethod(*s)
590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
591}
592
593// GooglePrivacyDlpV2beta1Dictionary: Custom information type based on a
594// dictionary of words or phrases. This can
595// be used to match sensitive information specific to the data, such as
596// a list
597// of employee IDs or job titles.
598//
599// Dictionary words are case-insensitive and all characters other than
600// letters
601// and digits in the unicode [Basic
602// Multilingual
603// Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
604// Basic_Multilingual_Plane)
605// will be replaced with whitespace when scanning for matches, so
606// the
607// dictionary phrase "Sam Johnson" will match all three phrases "sam
608// johnson",
609// "Sam, Johnson", and "Sam (Johnson)". Additionally, the
610// characters
611// surrounding any match must be of a different type than the
612// adjacent
613// characters within the word, so letters must be next to non-letters
614// and
615// digits next to non-digits. For example, the dictionary word "jen"
616// will
617// match the first three letters of the text "jen123" but will return
618// no
619// matches for "jennifer".
620//
621// Dictionary words containing a large number of characters that are
622// not
623// letters or digits may result in unexpected findings because such
624// characters
625// are treated as whitespace.
626type GooglePrivacyDlpV2beta1Dictionary struct {
627	// WordList: List of words or phrases to search for.
628	WordList *GooglePrivacyDlpV2beta1WordList `json:"wordList,omitempty"`
629
630	// ForceSendFields is a list of field names (e.g. "WordList") to
631	// unconditionally include in API requests. By default, fields with
632	// empty values are omitted from API requests. However, any non-pointer,
633	// non-interface field appearing in ForceSendFields will be sent to the
634	// server regardless of whether the field is empty or not. This may be
635	// used to include empty fields in Patch requests.
636	ForceSendFields []string `json:"-"`
637
638	// NullFields is a list of field names (e.g. "WordList") to include in
639	// API requests with the JSON null value. By default, fields with empty
640	// values are omitted from API requests. However, any field with an
641	// empty value appearing in NullFields will be sent to the server as
642	// null. It is an error if a field in this list has a non-empty value.
643	// This may be used to include null fields in Patch requests.
644	NullFields []string `json:"-"`
645}
646
647func (s *GooglePrivacyDlpV2beta1Dictionary) MarshalJSON() ([]byte, error) {
648	type NoMethod GooglePrivacyDlpV2beta1Dictionary
649	raw := NoMethod(*s)
650	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
651}
652
653// GooglePrivacyDlpV2beta1EntityId: An entity in a dataset is a field or
654// set of fields that correspond to a
655// single person. For example, in medical records the `EntityId` might
656// be
657// a patient identifier, or for financial records it might be an
658// account
659// identifier. This message is used when generalizations or analysis
660// must be
661// consistent across multiple rows pertaining to the same entity.
662type GooglePrivacyDlpV2beta1EntityId struct {
663	// Field: Composite key indicating which field contains the entity
664	// identifier.
665	Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
666
667	// ForceSendFields is a list of field names (e.g. "Field") to
668	// unconditionally include in API requests. By default, fields with
669	// empty values are omitted from API requests. However, any non-pointer,
670	// non-interface field appearing in ForceSendFields will be sent to the
671	// server regardless of whether the field is empty or not. This may be
672	// used to include empty fields in Patch requests.
673	ForceSendFields []string `json:"-"`
674
675	// NullFields is a list of field names (e.g. "Field") to include in API
676	// requests with the JSON null value. By default, fields with empty
677	// values are omitted from API requests. However, any field with an
678	// empty value appearing in NullFields will be sent to the server as
679	// null. It is an error if a field in this list has a non-empty value.
680	// This may be used to include null fields in Patch requests.
681	NullFields []string `json:"-"`
682}
683
684func (s *GooglePrivacyDlpV2beta1EntityId) MarshalJSON() ([]byte, error) {
685	type NoMethod GooglePrivacyDlpV2beta1EntityId
686	raw := NoMethod(*s)
687	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
688}
689
690// GooglePrivacyDlpV2beta1FieldId: General identifier of a data field in
691// a storage service.
692type GooglePrivacyDlpV2beta1FieldId struct {
693	// ColumnName: Name describing the field.
694	ColumnName string `json:"columnName,omitempty"`
695
696	// ForceSendFields is a list of field names (e.g. "ColumnName") to
697	// unconditionally include in API requests. By default, fields with
698	// empty values are omitted from API requests. However, any non-pointer,
699	// non-interface field appearing in ForceSendFields will be sent to the
700	// server regardless of whether the field is empty or not. This may be
701	// used to include empty fields in Patch requests.
702	ForceSendFields []string `json:"-"`
703
704	// NullFields is a list of field names (e.g. "ColumnName") to include in
705	// API requests with the JSON null value. By default, fields with empty
706	// values are omitted from API requests. However, any field with an
707	// empty value appearing in NullFields will be sent to the server as
708	// null. It is an error if a field in this list has a non-empty value.
709	// This may be used to include null fields in Patch requests.
710	NullFields []string `json:"-"`
711}
712
713func (s *GooglePrivacyDlpV2beta1FieldId) MarshalJSON() ([]byte, error) {
714	type NoMethod GooglePrivacyDlpV2beta1FieldId
715	raw := NoMethod(*s)
716	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
717}
718
719// GooglePrivacyDlpV2beta1FileSet: Set of files to scan.
720type GooglePrivacyDlpV2beta1FileSet struct {
721	// Url: The url, in the format `gs://<bucket>/<path>`. Trailing wildcard
722	// in the
723	// path is allowed.
724	Url string `json:"url,omitempty"`
725
726	// ForceSendFields is a list of field names (e.g. "Url") to
727	// unconditionally include in API requests. By default, fields with
728	// empty values are omitted from API requests. However, any non-pointer,
729	// non-interface field appearing in ForceSendFields will be sent to the
730	// server regardless of whether the field is empty or not. This may be
731	// used to include empty fields in Patch requests.
732	ForceSendFields []string `json:"-"`
733
734	// NullFields is a list of field names (e.g. "Url") to include in API
735	// requests with the JSON null value. By default, fields with empty
736	// values are omitted from API requests. However, any field with an
737	// empty value appearing in NullFields will be sent to the server as
738	// null. It is an error if a field in this list has a non-empty value.
739	// This may be used to include null fields in Patch requests.
740	NullFields []string `json:"-"`
741}
742
743func (s *GooglePrivacyDlpV2beta1FileSet) MarshalJSON() ([]byte, error) {
744	type NoMethod GooglePrivacyDlpV2beta1FileSet
745	raw := NoMethod(*s)
746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
747}
748
749// GooglePrivacyDlpV2beta1InfoType: Type of information detected by the
750// API.
751type GooglePrivacyDlpV2beta1InfoType struct {
752	// Name: Name of the information type.
753	Name string `json:"name,omitempty"`
754
755	// ForceSendFields is a list of field names (e.g. "Name") to
756	// unconditionally include in API requests. By default, fields with
757	// empty values are omitted from API requests. However, any non-pointer,
758	// non-interface field appearing in ForceSendFields will be sent to the
759	// server regardless of whether the field is empty or not. This may be
760	// used to include empty fields in Patch requests.
761	ForceSendFields []string `json:"-"`
762
763	// NullFields is a list of field names (e.g. "Name") to include in API
764	// requests with the JSON null value. By default, fields with empty
765	// values are omitted from API requests. However, any field with an
766	// empty value appearing in NullFields will be sent to the server as
767	// null. It is an error if a field in this list has a non-empty value.
768	// This may be used to include null fields in Patch requests.
769	NullFields []string `json:"-"`
770}
771
772func (s *GooglePrivacyDlpV2beta1InfoType) MarshalJSON() ([]byte, error) {
773	type NoMethod GooglePrivacyDlpV2beta1InfoType
774	raw := NoMethod(*s)
775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
776}
777
778// GooglePrivacyDlpV2beta1InfoTypeLimit: Max findings configuration per
779// info type, per content item or long running
780// operation.
781type GooglePrivacyDlpV2beta1InfoTypeLimit struct {
782	// InfoType: Type of information the findings limit applies to. Only one
783	// limit per
784	// info_type should be provided. If InfoTypeLimit does not have
785	// an
786	// info_type, the DLP API applies the limit against all info_types that
787	// are
788	// found but not specified in another InfoTypeLimit.
789	InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
790
791	// MaxFindings: Max findings limit for the given infoType.
792	MaxFindings int64 `json:"maxFindings,omitempty"`
793
794	// ForceSendFields is a list of field names (e.g. "InfoType") to
795	// unconditionally include in API requests. By default, fields with
796	// empty values are omitted from API requests. However, any non-pointer,
797	// non-interface field appearing in ForceSendFields will be sent to the
798	// server regardless of whether the field is empty or not. This may be
799	// used to include empty fields in Patch requests.
800	ForceSendFields []string `json:"-"`
801
802	// NullFields is a list of field names (e.g. "InfoType") to include in
803	// API requests with the JSON null value. By default, fields with empty
804	// values are omitted from API requests. However, any field with an
805	// empty value appearing in NullFields will be sent to the server as
806	// null. It is an error if a field in this list has a non-empty value.
807	// This may be used to include null fields in Patch requests.
808	NullFields []string `json:"-"`
809}
810
811func (s *GooglePrivacyDlpV2beta1InfoTypeLimit) MarshalJSON() ([]byte, error) {
812	type NoMethod GooglePrivacyDlpV2beta1InfoTypeLimit
813	raw := NoMethod(*s)
814	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
815}
816
817// GooglePrivacyDlpV2beta1InfoTypeStatistics: Statistics regarding a
818// specific InfoType.
819type GooglePrivacyDlpV2beta1InfoTypeStatistics struct {
820	// Count: Number of findings for this info type.
821	Count int64 `json:"count,omitempty,string"`
822
823	// InfoType: The type of finding this stat is for.
824	InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
825
826	// ForceSendFields is a list of field names (e.g. "Count") to
827	// unconditionally include in API requests. By default, fields with
828	// empty values are omitted from API requests. However, any non-pointer,
829	// non-interface field appearing in ForceSendFields will be sent to the
830	// server regardless of whether the field is empty or not. This may be
831	// used to include empty fields in Patch requests.
832	ForceSendFields []string `json:"-"`
833
834	// NullFields is a list of field names (e.g. "Count") to include in API
835	// requests with the JSON null value. By default, fields with empty
836	// values are omitted from API requests. However, any field with an
837	// empty value appearing in NullFields will be sent to the server as
838	// null. It is an error if a field in this list has a non-empty value.
839	// This may be used to include null fields in Patch requests.
840	NullFields []string `json:"-"`
841}
842
843func (s *GooglePrivacyDlpV2beta1InfoTypeStatistics) MarshalJSON() ([]byte, error) {
844	type NoMethod GooglePrivacyDlpV2beta1InfoTypeStatistics
845	raw := NoMethod(*s)
846	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
847}
848
849// GooglePrivacyDlpV2beta1InspectConfig: Configuration description of
850// the scanning process.
851// When used with redactContent only info_types and min_likelihood are
852// currently
853// used.
854type GooglePrivacyDlpV2beta1InspectConfig struct {
855	// CustomInfoTypes: Custom info types provided by the user.
856	CustomInfoTypes []*GooglePrivacyDlpV2beta1CustomInfoType `json:"customInfoTypes,omitempty"`
857
858	// ExcludeTypes: When true, excludes type information of the findings.
859	ExcludeTypes bool `json:"excludeTypes,omitempty"`
860
861	// IncludeQuote: When true, a contextual quote from the data that
862	// triggered a finding is
863	// included in the response; see Finding.quote.
864	IncludeQuote bool `json:"includeQuote,omitempty"`
865
866	// InfoTypeLimits: Configuration of findings limit given for specified
867	// info types.
868	InfoTypeLimits []*GooglePrivacyDlpV2beta1InfoTypeLimit `json:"infoTypeLimits,omitempty"`
869
870	// InfoTypes: Restricts what info_types to look for. The values must
871	// correspond to
872	// InfoType values returned by ListInfoTypes or found in
873	// documentation.
874	// Empty info_types runs all enabled detectors.
875	InfoTypes []*GooglePrivacyDlpV2beta1InfoType `json:"infoTypes,omitempty"`
876
877	// MaxFindings: Limits the number of findings per content item or long
878	// running operation.
879	MaxFindings int64 `json:"maxFindings,omitempty"`
880
881	// MinLikelihood: Only returns findings equal or above this threshold.
882	//
883	// Possible values:
884	//   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
885	// likelihoods is included.
886	//   "VERY_UNLIKELY" - Few matching elements.
887	//   "UNLIKELY"
888	//   "POSSIBLE" - Some matching elements.
889	//   "LIKELY"
890	//   "VERY_LIKELY" - Many matching elements.
891	MinLikelihood string `json:"minLikelihood,omitempty"`
892
893	// ForceSendFields is a list of field names (e.g. "CustomInfoTypes") to
894	// unconditionally include in API requests. By default, fields with
895	// empty values are omitted from API requests. However, any non-pointer,
896	// non-interface field appearing in ForceSendFields will be sent to the
897	// server regardless of whether the field is empty or not. This may be
898	// used to include empty fields in Patch requests.
899	ForceSendFields []string `json:"-"`
900
901	// NullFields is a list of field names (e.g. "CustomInfoTypes") to
902	// include in API requests with the JSON null value. By default, fields
903	// with empty values are omitted from API requests. However, any field
904	// with an empty value appearing in NullFields will be sent to the
905	// server as null. It is an error if a field in this list has a
906	// non-empty value. This may be used to include null fields in Patch
907	// requests.
908	NullFields []string `json:"-"`
909}
910
911func (s *GooglePrivacyDlpV2beta1InspectConfig) MarshalJSON() ([]byte, error) {
912	type NoMethod GooglePrivacyDlpV2beta1InspectConfig
913	raw := NoMethod(*s)
914	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
915}
916
917// GooglePrivacyDlpV2beta1InspectOperationMetadata: Metadata returned
918// within GetOperation for an inspect request.
919type GooglePrivacyDlpV2beta1InspectOperationMetadata struct {
920	// CreateTime: The time which this request was started.
921	CreateTime string `json:"createTime,omitempty"`
922
923	InfoTypeStats []*GooglePrivacyDlpV2beta1InfoTypeStatistics `json:"infoTypeStats,omitempty"`
924
925	// ProcessedBytes: Total size in bytes that were processed.
926	ProcessedBytes int64 `json:"processedBytes,omitempty,string"`
927
928	// RequestInspectConfig: The inspect config used to create the
929	// Operation.
930	RequestInspectConfig *GooglePrivacyDlpV2beta1InspectConfig `json:"requestInspectConfig,omitempty"`
931
932	// RequestOutputConfig: Optional location to store findings.
933	RequestOutputConfig *GooglePrivacyDlpV2beta1OutputStorageConfig `json:"requestOutputConfig,omitempty"`
934
935	// RequestStorageConfig: The storage config used to create the
936	// Operation.
937	RequestStorageConfig *GooglePrivacyDlpV2beta1StorageConfig `json:"requestStorageConfig,omitempty"`
938
939	// TotalEstimatedBytes: Estimate of the number of bytes to process.
940	TotalEstimatedBytes int64 `json:"totalEstimatedBytes,omitempty,string"`
941
942	// ForceSendFields is a list of field names (e.g. "CreateTime") to
943	// unconditionally include in API requests. By default, fields with
944	// empty values are omitted from API requests. However, any non-pointer,
945	// non-interface field appearing in ForceSendFields will be sent to the
946	// server regardless of whether the field is empty or not. This may be
947	// used to include empty fields in Patch requests.
948	ForceSendFields []string `json:"-"`
949
950	// NullFields is a list of field names (e.g. "CreateTime") to include in
951	// API requests with the JSON null value. By default, fields with empty
952	// values are omitted from API requests. However, any field with an
953	// empty value appearing in NullFields will be sent to the server as
954	// null. It is an error if a field in this list has a non-empty value.
955	// This may be used to include null fields in Patch requests.
956	NullFields []string `json:"-"`
957}
958
959func (s *GooglePrivacyDlpV2beta1InspectOperationMetadata) MarshalJSON() ([]byte, error) {
960	type NoMethod GooglePrivacyDlpV2beta1InspectOperationMetadata
961	raw := NoMethod(*s)
962	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
963}
964
965// GooglePrivacyDlpV2beta1InspectOperationResult: The operational data.
966type GooglePrivacyDlpV2beta1InspectOperationResult struct {
967	// Name: The server-assigned name, which is only unique within the same
968	// service that
969	// originally returns it. If you use the default HTTP mapping,
970	// the
971	// `name` should have the format of `inspect/results/{id}`.
972	Name string `json:"name,omitempty"`
973
974	// ForceSendFields is a list of field names (e.g. "Name") to
975	// unconditionally include in API requests. By default, fields with
976	// empty values are omitted from API requests. However, any non-pointer,
977	// non-interface field appearing in ForceSendFields will be sent to the
978	// server regardless of whether the field is empty or not. This may be
979	// used to include empty fields in Patch requests.
980	ForceSendFields []string `json:"-"`
981
982	// NullFields is a list of field names (e.g. "Name") to include in API
983	// requests with the JSON null value. By default, fields with empty
984	// values are omitted from API requests. However, any field with an
985	// empty value appearing in NullFields will be sent to the server as
986	// null. It is an error if a field in this list has a non-empty value.
987	// This may be used to include null fields in Patch requests.
988	NullFields []string `json:"-"`
989}
990
991func (s *GooglePrivacyDlpV2beta1InspectOperationResult) MarshalJSON() ([]byte, error) {
992	type NoMethod GooglePrivacyDlpV2beta1InspectOperationResult
993	raw := NoMethod(*s)
994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
995}
996
997// GooglePrivacyDlpV2beta1KAnonymityConfig: k-anonymity metric, used for
998// analysis of reidentification risk.
999type GooglePrivacyDlpV2beta1KAnonymityConfig struct {
1000	// EntityId: Optional message indicating that each distinct entity_id
1001	// should not
1002	// contribute to the k-anonymity count more than once per equivalence
1003	// class.
1004	// If an entity_id appears on several rows with different
1005	// quasi-identifier
1006	// tuples, it will contribute to each count exactly once.
1007	//
1008	// This can lead to unexpected results. Consider a table where ID 1
1009	// is
1010	// associated to quasi-identifier "foo", ID 2 to "bar", and ID 3 to
1011	// *both*
1012	// quasi-identifiers "foo" and "bar" (on separate rows), and where this
1013	// ID
1014	// is used as entity_id. Then, the anonymity value associated to ID 3
1015	// will
1016	// be 2, even if it is the only ID to be associated to both values "foo"
1017	// and
1018	// "bar".
1019	EntityId *GooglePrivacyDlpV2beta1EntityId `json:"entityId,omitempty"`
1020
1021	// QuasiIds: Set of fields to compute k-anonymity over. When multiple
1022	// fields are
1023	// specified, they are considered a single composite key. Structs
1024	// and
1025	// repeated data types are not supported; however, nested fields
1026	// are
1027	// supported so long as they are not structs themselves or nested
1028	// within
1029	// a repeated field.
1030	QuasiIds []*GooglePrivacyDlpV2beta1FieldId `json:"quasiIds,omitempty"`
1031
1032	// ForceSendFields is a list of field names (e.g. "EntityId") to
1033	// unconditionally include in API requests. By default, fields with
1034	// empty values are omitted from API requests. However, any non-pointer,
1035	// non-interface field appearing in ForceSendFields will be sent to the
1036	// server regardless of whether the field is empty or not. This may be
1037	// used to include empty fields in Patch requests.
1038	ForceSendFields []string `json:"-"`
1039
1040	// NullFields is a list of field names (e.g. "EntityId") to include in
1041	// API requests with the JSON null value. By default, fields with empty
1042	// values are omitted from API requests. However, any field with an
1043	// empty value appearing in NullFields will be sent to the server as
1044	// null. It is an error if a field in this list has a non-empty value.
1045	// This may be used to include null fields in Patch requests.
1046	NullFields []string `json:"-"`
1047}
1048
1049func (s *GooglePrivacyDlpV2beta1KAnonymityConfig) MarshalJSON() ([]byte, error) {
1050	type NoMethod GooglePrivacyDlpV2beta1KAnonymityConfig
1051	raw := NoMethod(*s)
1052	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1053}
1054
1055// GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass: The set of
1056// columns' values that share the same k-anonymity value.
1057type GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass struct {
1058	// EquivalenceClassSize: Size of the equivalence class, for example
1059	// number of rows with the
1060	// above set of values.
1061	EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
1062
1063	// QuasiIdsValues: Set of values defining the equivalence class. One
1064	// value per
1065	// quasi-identifier column in the original KAnonymity metric
1066	// message.
1067	// The order is always the same as the original request.
1068	QuasiIdsValues []*GooglePrivacyDlpV2beta1Value `json:"quasiIdsValues,omitempty"`
1069
1070	// ForceSendFields is a list of field names (e.g.
1071	// "EquivalenceClassSize") to unconditionally include in API requests.
1072	// By default, fields with empty values are omitted from API requests.
1073	// However, any non-pointer, non-interface field appearing in
1074	// ForceSendFields will be sent to the server regardless of whether the
1075	// field is empty or not. This may be used to include empty fields in
1076	// Patch requests.
1077	ForceSendFields []string `json:"-"`
1078
1079	// NullFields is a list of field names (e.g. "EquivalenceClassSize") to
1080	// include in API requests with the JSON null value. By default, fields
1081	// with empty values are omitted from API requests. However, any field
1082	// with an empty value appearing in NullFields will be sent to the
1083	// server as null. It is an error if a field in this list has a
1084	// non-empty value. This may be used to include null fields in Patch
1085	// requests.
1086	NullFields []string `json:"-"`
1087}
1088
1089func (s *GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass) MarshalJSON() ([]byte, error) {
1090	type NoMethod GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass
1091	raw := NoMethod(*s)
1092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1093}
1094
1095// GooglePrivacyDlpV2beta1KAnonymityHistogramBucket: Histogram bucket of
1096// equivalence class sizes in the table.
1097type GooglePrivacyDlpV2beta1KAnonymityHistogramBucket struct {
1098	// BucketSize: Total number of records in this bucket.
1099	BucketSize int64 `json:"bucketSize,omitempty,string"`
1100
1101	// BucketValues: Sample of equivalence classes in this bucket. The total
1102	// number of
1103	// classes returned per bucket is capped at 20.
1104	BucketValues []*GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass `json:"bucketValues,omitempty"`
1105
1106	// EquivalenceClassSizeLowerBound: Lower bound on the size of the
1107	// equivalence classes in this bucket.
1108	EquivalenceClassSizeLowerBound int64 `json:"equivalenceClassSizeLowerBound,omitempty,string"`
1109
1110	// EquivalenceClassSizeUpperBound: Upper bound on the size of the
1111	// equivalence classes in this bucket.
1112	EquivalenceClassSizeUpperBound int64 `json:"equivalenceClassSizeUpperBound,omitempty,string"`
1113
1114	// ForceSendFields is a list of field names (e.g. "BucketSize") to
1115	// unconditionally include in API requests. By default, fields with
1116	// empty values are omitted from API requests. However, any non-pointer,
1117	// non-interface field appearing in ForceSendFields will be sent to the
1118	// server regardless of whether the field is empty or not. This may be
1119	// used to include empty fields in Patch requests.
1120	ForceSendFields []string `json:"-"`
1121
1122	// NullFields is a list of field names (e.g. "BucketSize") to include in
1123	// API requests with the JSON null value. By default, fields with empty
1124	// values are omitted from API requests. However, any field with an
1125	// empty value appearing in NullFields will be sent to the server as
1126	// null. It is an error if a field in this list has a non-empty value.
1127	// This may be used to include null fields in Patch requests.
1128	NullFields []string `json:"-"`
1129}
1130
1131func (s *GooglePrivacyDlpV2beta1KAnonymityHistogramBucket) MarshalJSON() ([]byte, error) {
1132	type NoMethod GooglePrivacyDlpV2beta1KAnonymityHistogramBucket
1133	raw := NoMethod(*s)
1134	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1135}
1136
1137// GooglePrivacyDlpV2beta1KAnonymityResult: Result of the k-anonymity
1138// computation.
1139type GooglePrivacyDlpV2beta1KAnonymityResult struct {
1140	// EquivalenceClassHistogramBuckets: Histogram of k-anonymity
1141	// equivalence classes.
1142	EquivalenceClassHistogramBuckets []*GooglePrivacyDlpV2beta1KAnonymityHistogramBucket `json:"equivalenceClassHistogramBuckets,omitempty"`
1143
1144	// ForceSendFields is a list of field names (e.g.
1145	// "EquivalenceClassHistogramBuckets") to unconditionally include in API
1146	// requests. By default, fields with empty values are omitted from API
1147	// requests. However, any non-pointer, non-interface field appearing in
1148	// ForceSendFields will be sent to the server regardless of whether the
1149	// field is empty or not. This may be used to include empty fields in
1150	// Patch requests.
1151	ForceSendFields []string `json:"-"`
1152
1153	// NullFields is a list of field names (e.g.
1154	// "EquivalenceClassHistogramBuckets") to include in API requests with
1155	// the JSON null value. By default, fields with empty values are omitted
1156	// from API requests. However, any field with an empty value appearing
1157	// in NullFields will be sent to the server as null. It is an error if a
1158	// field in this list has a non-empty value. This may be used to include
1159	// null fields in Patch requests.
1160	NullFields []string `json:"-"`
1161}
1162
1163func (s *GooglePrivacyDlpV2beta1KAnonymityResult) MarshalJSON() ([]byte, error) {
1164	type NoMethod GooglePrivacyDlpV2beta1KAnonymityResult
1165	raw := NoMethod(*s)
1166	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1167}
1168
1169// GooglePrivacyDlpV2beta1KMapEstimationConfig: Reidentifiability
1170// metric. This corresponds to a risk model similar to what
1171// is called "journalist risk" in the literature, except the attack
1172// dataset is
1173// statistically modeled instead of being perfectly known. This can be
1174// done
1175// using publicly available data (like the US Census), or using a
1176// custom
1177// statistical model (indicated as one or several BigQuery tables), or
1178// by
1179// extrapolating from the distribution of values in the input dataset.
1180type GooglePrivacyDlpV2beta1KMapEstimationConfig struct {
1181	// AuxiliaryTables: Several auxiliary tables can be used in the
1182	// analysis. Each custom_tag
1183	// used to tag a quasi-identifiers column must appear in exactly one
1184	// column
1185	// of one auxiliary table.
1186	AuxiliaryTables []*GooglePrivacyDlpV2beta1AuxiliaryTable `json:"auxiliaryTables,omitempty"`
1187
1188	// QuasiIds: Fields considered to be quasi-identifiers. No two columns
1189	// can have the
1190	// same tag. [required]
1191	QuasiIds []*GooglePrivacyDlpV2beta1TaggedField `json:"quasiIds,omitempty"`
1192
1193	// RegionCode: ISO 3166-1 alpha-2 region code to use in the statistical
1194	// modeling.
1195	// Required if no column is tagged with a region-specific InfoType
1196	// (like
1197	// US_ZIP_5) or a region code.
1198	RegionCode string `json:"regionCode,omitempty"`
1199
1200	// ForceSendFields is a list of field names (e.g. "AuxiliaryTables") to
1201	// unconditionally include in API requests. By default, fields with
1202	// empty values are omitted from API requests. However, any non-pointer,
1203	// non-interface field appearing in ForceSendFields will be sent to the
1204	// server regardless of whether the field is empty or not. This may be
1205	// used to include empty fields in Patch requests.
1206	ForceSendFields []string `json:"-"`
1207
1208	// NullFields is a list of field names (e.g. "AuxiliaryTables") to
1209	// include in API requests with the JSON null value. By default, fields
1210	// with empty values are omitted from API requests. However, any field
1211	// with an empty value appearing in NullFields will be sent to the
1212	// server as null. It is an error if a field in this list has a
1213	// non-empty value. This may be used to include null fields in Patch
1214	// requests.
1215	NullFields []string `json:"-"`
1216}
1217
1218func (s *GooglePrivacyDlpV2beta1KMapEstimationConfig) MarshalJSON() ([]byte, error) {
1219	type NoMethod GooglePrivacyDlpV2beta1KMapEstimationConfig
1220	raw := NoMethod(*s)
1221	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1222}
1223
1224// GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket: A
1225// KMapEstimationHistogramBucket message with the following values:
1226//   min_anonymity: 3
1227//   max_anonymity: 5
1228//   frequency: 42
1229// means that there are 42 records whose quasi-identifier values
1230// correspond
1231// to 3, 4 or 5 people in the overlying population. An important
1232// particular
1233// case is when min_anonymity = max_anonymity = 1: the frequency field
1234// then
1235// corresponds to the number of uniquely identifiable records.
1236type GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket struct {
1237	// BucketSize: Number of records within these anonymity bounds.
1238	BucketSize int64 `json:"bucketSize,omitempty,string"`
1239
1240	// BucketValues: Sample of quasi-identifier tuple values in this bucket.
1241	// The total
1242	// number of classes returned per bucket is capped at 20.
1243	BucketValues []*GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues `json:"bucketValues,omitempty"`
1244
1245	// MaxAnonymity: Always greater than or equal to min_anonymity.
1246	MaxAnonymity int64 `json:"maxAnonymity,omitempty,string"`
1247
1248	// MinAnonymity: Always positive.
1249	MinAnonymity int64 `json:"minAnonymity,omitempty,string"`
1250
1251	// ForceSendFields is a list of field names (e.g. "BucketSize") to
1252	// unconditionally include in API requests. By default, fields with
1253	// empty values are omitted from API requests. However, any non-pointer,
1254	// non-interface field appearing in ForceSendFields will be sent to the
1255	// server regardless of whether the field is empty or not. This may be
1256	// used to include empty fields in Patch requests.
1257	ForceSendFields []string `json:"-"`
1258
1259	// NullFields is a list of field names (e.g. "BucketSize") to include in
1260	// API requests with the JSON null value. By default, fields with empty
1261	// values are omitted from API requests. However, any field with an
1262	// empty value appearing in NullFields will be sent to the server as
1263	// null. It is an error if a field in this list has a non-empty value.
1264	// This may be used to include null fields in Patch requests.
1265	NullFields []string `json:"-"`
1266}
1267
1268func (s *GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
1269	type NoMethod GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket
1270	raw := NoMethod(*s)
1271	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1272}
1273
1274// GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues: A tuple of values
1275// for the quasi-identifier columns.
1276type GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues struct {
1277	// EstimatedAnonymity: The estimated anonymity for these
1278	// quasi-identifier values.
1279	EstimatedAnonymity int64 `json:"estimatedAnonymity,omitempty,string"`
1280
1281	// QuasiIdsValues: The quasi-identifier values.
1282	QuasiIdsValues []*GooglePrivacyDlpV2beta1Value `json:"quasiIdsValues,omitempty"`
1283
1284	// ForceSendFields is a list of field names (e.g. "EstimatedAnonymity")
1285	// to unconditionally include in API requests. By default, fields with
1286	// empty values are omitted from API requests. However, any non-pointer,
1287	// non-interface field appearing in ForceSendFields will be sent to the
1288	// server regardless of whether the field is empty or not. This may be
1289	// used to include empty fields in Patch requests.
1290	ForceSendFields []string `json:"-"`
1291
1292	// NullFields is a list of field names (e.g. "EstimatedAnonymity") to
1293	// include in API requests with the JSON null value. By default, fields
1294	// with empty values are omitted from API requests. However, any field
1295	// with an empty value appearing in NullFields will be sent to the
1296	// server as null. It is an error if a field in this list has a
1297	// non-empty value. This may be used to include null fields in Patch
1298	// requests.
1299	NullFields []string `json:"-"`
1300}
1301
1302func (s *GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
1303	type NoMethod GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues
1304	raw := NoMethod(*s)
1305	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1306}
1307
1308// GooglePrivacyDlpV2beta1KMapEstimationResult: Result of the
1309// reidentifiability analysis. Note that these results are
1310// an
1311// estimation, not exact values.
1312type GooglePrivacyDlpV2beta1KMapEstimationResult struct {
1313	// KMapEstimationHistogram: The intervals [min_anonymity, max_anonymity]
1314	// do not overlap. If a value
1315	// doesn't correspond to any such interval, the associated frequency
1316	// is
1317	// zero. For example, the following records:
1318	//   {min_anonymity: 1, max_anonymity: 1, frequency: 17}
1319	//   {min_anonymity: 2, max_anonymity: 3, frequency: 42}
1320	//   {min_anonymity: 5, max_anonymity: 10, frequency: 99}
1321	// mean that there are no record with an estimated anonymity of 4, 5,
1322	// or
1323	// larger than 10.
1324	KMapEstimationHistogram []*GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket `json:"kMapEstimationHistogram,omitempty"`
1325
1326	// ForceSendFields is a list of field names (e.g.
1327	// "KMapEstimationHistogram") to unconditionally include in API
1328	// requests. By default, fields with empty values are omitted from API
1329	// requests. However, any non-pointer, non-interface field appearing in
1330	// ForceSendFields will be sent to the server regardless of whether the
1331	// field is empty or not. This may be used to include empty fields in
1332	// Patch requests.
1333	ForceSendFields []string `json:"-"`
1334
1335	// NullFields is a list of field names (e.g. "KMapEstimationHistogram")
1336	// to include in API requests with the JSON null value. By default,
1337	// fields with empty values are omitted from API requests. However, any
1338	// field with an empty value appearing in NullFields will be sent to the
1339	// server as null. It is an error if a field in this list has a
1340	// non-empty value. This may be used to include null fields in Patch
1341	// requests.
1342	NullFields []string `json:"-"`
1343}
1344
1345func (s *GooglePrivacyDlpV2beta1KMapEstimationResult) MarshalJSON() ([]byte, error) {
1346	type NoMethod GooglePrivacyDlpV2beta1KMapEstimationResult
1347	raw := NoMethod(*s)
1348	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1349}
1350
1351// GooglePrivacyDlpV2beta1KindExpression: A representation of a
1352// Datastore kind.
1353type GooglePrivacyDlpV2beta1KindExpression struct {
1354	// Name: The name of the kind.
1355	Name string `json:"name,omitempty"`
1356
1357	// ForceSendFields is a list of field names (e.g. "Name") to
1358	// unconditionally include in API requests. By default, fields with
1359	// empty values are omitted from API requests. However, any non-pointer,
1360	// non-interface field appearing in ForceSendFields will be sent to the
1361	// server regardless of whether the field is empty or not. This may be
1362	// used to include empty fields in Patch requests.
1363	ForceSendFields []string `json:"-"`
1364
1365	// NullFields is a list of field names (e.g. "Name") to include in API
1366	// requests with the JSON null value. By default, fields with empty
1367	// values are omitted from API requests. However, any field with an
1368	// empty value appearing in NullFields will be sent to the server as
1369	// null. It is an error if a field in this list has a non-empty value.
1370	// This may be used to include null fields in Patch requests.
1371	NullFields []string `json:"-"`
1372}
1373
1374func (s *GooglePrivacyDlpV2beta1KindExpression) MarshalJSON() ([]byte, error) {
1375	type NoMethod GooglePrivacyDlpV2beta1KindExpression
1376	raw := NoMethod(*s)
1377	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1378}
1379
1380// GooglePrivacyDlpV2beta1LDiversityConfig: l-diversity metric, used for
1381// analysis of reidentification risk.
1382type GooglePrivacyDlpV2beta1LDiversityConfig struct {
1383	// QuasiIds: Set of quasi-identifiers indicating how equivalence classes
1384	// are
1385	// defined for the l-diversity computation. When multiple fields
1386	// are
1387	// specified, they are considered a single composite key.
1388	QuasiIds []*GooglePrivacyDlpV2beta1FieldId `json:"quasiIds,omitempty"`
1389
1390	// SensitiveAttribute: Sensitive field for computing the l-value.
1391	SensitiveAttribute *GooglePrivacyDlpV2beta1FieldId `json:"sensitiveAttribute,omitempty"`
1392
1393	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
1394	// unconditionally include in API requests. By default, fields with
1395	// empty values are omitted from API requests. However, any non-pointer,
1396	// non-interface field appearing in ForceSendFields will be sent to the
1397	// server regardless of whether the field is empty or not. This may be
1398	// used to include empty fields in Patch requests.
1399	ForceSendFields []string `json:"-"`
1400
1401	// NullFields is a list of field names (e.g. "QuasiIds") to include in
1402	// API requests with the JSON null value. By default, fields with empty
1403	// values are omitted from API requests. However, any field with an
1404	// empty value appearing in NullFields will be sent to the server as
1405	// null. It is an error if a field in this list has a non-empty value.
1406	// This may be used to include null fields in Patch requests.
1407	NullFields []string `json:"-"`
1408}
1409
1410func (s *GooglePrivacyDlpV2beta1LDiversityConfig) MarshalJSON() ([]byte, error) {
1411	type NoMethod GooglePrivacyDlpV2beta1LDiversityConfig
1412	raw := NoMethod(*s)
1413	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1414}
1415
1416// GooglePrivacyDlpV2beta1LDiversityEquivalenceClass: The set of
1417// columns' values that share the same l-diversity value.
1418type GooglePrivacyDlpV2beta1LDiversityEquivalenceClass struct {
1419	// EquivalenceClassSize: Size of the k-anonymity equivalence class.
1420	EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
1421
1422	// NumDistinctSensitiveValues: Number of distinct sensitive values in
1423	// this equivalence class.
1424	NumDistinctSensitiveValues int64 `json:"numDistinctSensitiveValues,omitempty,string"`
1425
1426	// QuasiIdsValues: Quasi-identifier values defining the k-anonymity
1427	// equivalence
1428	// class. The order is always the same as the original request.
1429	QuasiIdsValues []*GooglePrivacyDlpV2beta1Value `json:"quasiIdsValues,omitempty"`
1430
1431	// TopSensitiveValues: Estimated frequencies of top sensitive values.
1432	TopSensitiveValues []*GooglePrivacyDlpV2beta1ValueFrequency `json:"topSensitiveValues,omitempty"`
1433
1434	// ForceSendFields is a list of field names (e.g.
1435	// "EquivalenceClassSize") to unconditionally include in API requests.
1436	// By default, fields with empty values are omitted from API requests.
1437	// However, any non-pointer, non-interface field appearing in
1438	// ForceSendFields will be sent to the server regardless of whether the
1439	// field is empty or not. This may be used to include empty fields in
1440	// Patch requests.
1441	ForceSendFields []string `json:"-"`
1442
1443	// NullFields is a list of field names (e.g. "EquivalenceClassSize") to
1444	// include in API requests with the JSON null value. By default, fields
1445	// with empty values are omitted from API requests. However, any field
1446	// with an empty value appearing in NullFields will be sent to the
1447	// server as null. It is an error if a field in this list has a
1448	// non-empty value. This may be used to include null fields in Patch
1449	// requests.
1450	NullFields []string `json:"-"`
1451}
1452
1453func (s *GooglePrivacyDlpV2beta1LDiversityEquivalenceClass) MarshalJSON() ([]byte, error) {
1454	type NoMethod GooglePrivacyDlpV2beta1LDiversityEquivalenceClass
1455	raw := NoMethod(*s)
1456	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1457}
1458
1459// GooglePrivacyDlpV2beta1LDiversityHistogramBucket: Histogram bucket of
1460// sensitive value frequencies in the table.
1461type GooglePrivacyDlpV2beta1LDiversityHistogramBucket struct {
1462	// BucketSize: Total number of records in this bucket.
1463	BucketSize int64 `json:"bucketSize,omitempty,string"`
1464
1465	// BucketValues: Sample of equivalence classes in this bucket. The total
1466	// number of
1467	// classes returned per bucket is capped at 20.
1468	BucketValues []*GooglePrivacyDlpV2beta1LDiversityEquivalenceClass `json:"bucketValues,omitempty"`
1469
1470	// SensitiveValueFrequencyLowerBound: Lower bound on the sensitive value
1471	// frequencies of the equivalence
1472	// classes in this bucket.
1473	SensitiveValueFrequencyLowerBound int64 `json:"sensitiveValueFrequencyLowerBound,omitempty,string"`
1474
1475	// SensitiveValueFrequencyUpperBound: Upper bound on the sensitive value
1476	// frequencies of the equivalence
1477	// classes in this bucket.
1478	SensitiveValueFrequencyUpperBound int64 `json:"sensitiveValueFrequencyUpperBound,omitempty,string"`
1479
1480	// ForceSendFields is a list of field names (e.g. "BucketSize") to
1481	// unconditionally include in API requests. By default, fields with
1482	// empty values are omitted from API requests. However, any non-pointer,
1483	// non-interface field appearing in ForceSendFields will be sent to the
1484	// server regardless of whether the field is empty or not. This may be
1485	// used to include empty fields in Patch requests.
1486	ForceSendFields []string `json:"-"`
1487
1488	// NullFields is a list of field names (e.g. "BucketSize") to include in
1489	// API requests with the JSON null value. By default, fields with empty
1490	// values are omitted from API requests. However, any field with an
1491	// empty value appearing in NullFields will be sent to the server as
1492	// null. It is an error if a field in this list has a non-empty value.
1493	// This may be used to include null fields in Patch requests.
1494	NullFields []string `json:"-"`
1495}
1496
1497func (s *GooglePrivacyDlpV2beta1LDiversityHistogramBucket) MarshalJSON() ([]byte, error) {
1498	type NoMethod GooglePrivacyDlpV2beta1LDiversityHistogramBucket
1499	raw := NoMethod(*s)
1500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1501}
1502
1503// GooglePrivacyDlpV2beta1LDiversityResult: Result of the l-diversity
1504// computation.
1505type GooglePrivacyDlpV2beta1LDiversityResult struct {
1506	// SensitiveValueFrequencyHistogramBuckets: Histogram of l-diversity
1507	// equivalence class sensitive value frequencies.
1508	SensitiveValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2beta1LDiversityHistogramBucket `json:"sensitiveValueFrequencyHistogramBuckets,omitempty"`
1509
1510	// ForceSendFields is a list of field names (e.g.
1511	// "SensitiveValueFrequencyHistogramBuckets") to unconditionally include
1512	// in API requests. By default, fields with empty values are omitted
1513	// from API requests. However, any non-pointer, non-interface field
1514	// appearing in ForceSendFields will be sent to the server regardless of
1515	// whether the field is empty or not. This may be used to include empty
1516	// fields in Patch requests.
1517	ForceSendFields []string `json:"-"`
1518
1519	// NullFields is a list of field names (e.g.
1520	// "SensitiveValueFrequencyHistogramBuckets") to include in API requests
1521	// with the JSON null value. By default, fields with empty values are
1522	// omitted from API requests. However, any field with an empty value
1523	// appearing in NullFields will be sent to the server as null. It is an
1524	// error if a field in this list has a non-empty value. This may be used
1525	// to include null fields in Patch requests.
1526	NullFields []string `json:"-"`
1527}
1528
1529func (s *GooglePrivacyDlpV2beta1LDiversityResult) MarshalJSON() ([]byte, error) {
1530	type NoMethod GooglePrivacyDlpV2beta1LDiversityResult
1531	raw := NoMethod(*s)
1532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1533}
1534
1535// GooglePrivacyDlpV2beta1NumericalStatsConfig: Compute numerical stats
1536// over an individual column, including
1537// min, max, and quantiles.
1538type GooglePrivacyDlpV2beta1NumericalStatsConfig struct {
1539	// Field: Field to compute numerical stats on. Supported types
1540	// are
1541	// integer, float, date, datetime, timestamp, time.
1542	Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
1543
1544	// ForceSendFields is a list of field names (e.g. "Field") to
1545	// unconditionally include in API requests. By default, fields with
1546	// empty values are omitted from API requests. However, any non-pointer,
1547	// non-interface field appearing in ForceSendFields will be sent to the
1548	// server regardless of whether the field is empty or not. This may be
1549	// used to include empty fields in Patch requests.
1550	ForceSendFields []string `json:"-"`
1551
1552	// NullFields is a list of field names (e.g. "Field") to include in API
1553	// requests with the JSON null value. By default, fields with empty
1554	// values are omitted from API requests. However, any field with an
1555	// empty value appearing in NullFields will be sent to the server as
1556	// null. It is an error if a field in this list has a non-empty value.
1557	// This may be used to include null fields in Patch requests.
1558	NullFields []string `json:"-"`
1559}
1560
1561func (s *GooglePrivacyDlpV2beta1NumericalStatsConfig) MarshalJSON() ([]byte, error) {
1562	type NoMethod GooglePrivacyDlpV2beta1NumericalStatsConfig
1563	raw := NoMethod(*s)
1564	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1565}
1566
1567// GooglePrivacyDlpV2beta1NumericalStatsResult: Result of the numerical
1568// stats computation.
1569type GooglePrivacyDlpV2beta1NumericalStatsResult struct {
1570	// MaxValue: Maximum value appearing in the column.
1571	MaxValue *GooglePrivacyDlpV2beta1Value `json:"maxValue,omitempty"`
1572
1573	// MinValue: Minimum value appearing in the column.
1574	MinValue *GooglePrivacyDlpV2beta1Value `json:"minValue,omitempty"`
1575
1576	// QuantileValues: List of 99 values that partition the set of field
1577	// values into 100 equal
1578	// sized buckets.
1579	QuantileValues []*GooglePrivacyDlpV2beta1Value `json:"quantileValues,omitempty"`
1580
1581	// ForceSendFields is a list of field names (e.g. "MaxValue") to
1582	// unconditionally include in API requests. By default, fields with
1583	// empty values are omitted from API requests. However, any non-pointer,
1584	// non-interface field appearing in ForceSendFields will be sent to the
1585	// server regardless of whether the field is empty or not. This may be
1586	// used to include empty fields in Patch requests.
1587	ForceSendFields []string `json:"-"`
1588
1589	// NullFields is a list of field names (e.g. "MaxValue") to include in
1590	// API requests with the JSON null value. By default, fields with empty
1591	// values are omitted from API requests. However, any field with an
1592	// empty value appearing in NullFields will be sent to the server as
1593	// null. It is an error if a field in this list has a non-empty value.
1594	// This may be used to include null fields in Patch requests.
1595	NullFields []string `json:"-"`
1596}
1597
1598func (s *GooglePrivacyDlpV2beta1NumericalStatsResult) MarshalJSON() ([]byte, error) {
1599	type NoMethod GooglePrivacyDlpV2beta1NumericalStatsResult
1600	raw := NoMethod(*s)
1601	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1602}
1603
1604// GooglePrivacyDlpV2beta1OutputStorageConfig: Cloud repository for
1605// storing output.
1606type GooglePrivacyDlpV2beta1OutputStorageConfig struct {
1607	// StoragePath: The path to a Google Cloud Storage location to store
1608	// output.
1609	// The bucket must already exist and
1610	// the Google APIs service account for DLP must have write permission
1611	// to
1612	// write to the given bucket.
1613	// Results are split over multiple csv files with each file name
1614	// matching
1615	// the pattern "[operation_id]_[count].csv", for
1616	// example
1617	// `3094877188788974909_1.csv`. The `operation_id` matches
1618	// the
1619	// identifier for the Operation, and the `count` is a counter used
1620	// for
1621	// tracking the number of files written.
1622	//
1623	// The CSV file(s) contain the following columns regardless of storage
1624	// type
1625	// scanned:
1626	// - id
1627	// - info_type
1628	// - likelihood
1629	// - byte size of finding
1630	// - quote
1631	// - timestamp
1632	//
1633	// For Cloud Storage the next columns are:
1634	//
1635	// - file_path
1636	// - start_offset
1637	//
1638	// For Cloud Datastore the next columns are:
1639	//
1640	// - project_id
1641	// - namespace_id
1642	// - path
1643	// - column_name
1644	// - offset
1645	//
1646	// For BigQuery the next columns are:
1647	//
1648	// - row_number
1649	// - project_id
1650	// - dataset_id
1651	// - table_id
1652	StoragePath *GooglePrivacyDlpV2beta1CloudStoragePath `json:"storagePath,omitempty"`
1653
1654	// Table: Store findings in a new table in the dataset.
1655	Table *GooglePrivacyDlpV2beta1BigQueryTable `json:"table,omitempty"`
1656
1657	// ForceSendFields is a list of field names (e.g. "StoragePath") to
1658	// unconditionally include in API requests. By default, fields with
1659	// empty values are omitted from API requests. However, any non-pointer,
1660	// non-interface field appearing in ForceSendFields will be sent to the
1661	// server regardless of whether the field is empty or not. This may be
1662	// used to include empty fields in Patch requests.
1663	ForceSendFields []string `json:"-"`
1664
1665	// NullFields is a list of field names (e.g. "StoragePath") to include
1666	// in API requests with the JSON null value. By default, fields with
1667	// empty values are omitted from API requests. However, any field with
1668	// an empty value appearing in NullFields will be sent to the server as
1669	// null. It is an error if a field in this list has a non-empty value.
1670	// This may be used to include null fields in Patch requests.
1671	NullFields []string `json:"-"`
1672}
1673
1674func (s *GooglePrivacyDlpV2beta1OutputStorageConfig) MarshalJSON() ([]byte, error) {
1675	type NoMethod GooglePrivacyDlpV2beta1OutputStorageConfig
1676	raw := NoMethod(*s)
1677	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1678}
1679
1680// GooglePrivacyDlpV2beta1PartitionId: Datastore partition ID.
1681// A partition ID identifies a grouping of entities. The grouping is
1682// always
1683// by project and namespace, however the namespace ID may be empty.
1684//
1685// A partition ID contains several dimensions:
1686// project ID and namespace ID.
1687type GooglePrivacyDlpV2beta1PartitionId struct {
1688	// NamespaceId: If not empty, the ID of the namespace to which the
1689	// entities belong.
1690	NamespaceId string `json:"namespaceId,omitempty"`
1691
1692	// ProjectId: The ID of the project to which the entities belong.
1693	ProjectId string `json:"projectId,omitempty"`
1694
1695	// ForceSendFields is a list of field names (e.g. "NamespaceId") to
1696	// unconditionally include in API requests. By default, fields with
1697	// empty values are omitted from API requests. However, any non-pointer,
1698	// non-interface field appearing in ForceSendFields will be sent to the
1699	// server regardless of whether the field is empty or not. This may be
1700	// used to include empty fields in Patch requests.
1701	ForceSendFields []string `json:"-"`
1702
1703	// NullFields is a list of field names (e.g. "NamespaceId") to include
1704	// in API requests with the JSON null value. By default, fields with
1705	// empty values are omitted from API requests. However, any field with
1706	// an empty value appearing in NullFields will be sent to the server as
1707	// null. It is an error if a field in this list has a non-empty value.
1708	// This may be used to include null fields in Patch requests.
1709	NullFields []string `json:"-"`
1710}
1711
1712func (s *GooglePrivacyDlpV2beta1PartitionId) MarshalJSON() ([]byte, error) {
1713	type NoMethod GooglePrivacyDlpV2beta1PartitionId
1714	raw := NoMethod(*s)
1715	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1716}
1717
1718// GooglePrivacyDlpV2beta1PrivacyMetric: Privacy metric to compute for
1719// reidentification risk analysis.
1720type GooglePrivacyDlpV2beta1PrivacyMetric struct {
1721	CategoricalStatsConfig *GooglePrivacyDlpV2beta1CategoricalStatsConfig `json:"categoricalStatsConfig,omitempty"`
1722
1723	KAnonymityConfig *GooglePrivacyDlpV2beta1KAnonymityConfig `json:"kAnonymityConfig,omitempty"`
1724
1725	KMapEstimationConfig *GooglePrivacyDlpV2beta1KMapEstimationConfig `json:"kMapEstimationConfig,omitempty"`
1726
1727	LDiversityConfig *GooglePrivacyDlpV2beta1LDiversityConfig `json:"lDiversityConfig,omitempty"`
1728
1729	NumericalStatsConfig *GooglePrivacyDlpV2beta1NumericalStatsConfig `json:"numericalStatsConfig,omitempty"`
1730
1731	// ForceSendFields is a list of field names (e.g.
1732	// "CategoricalStatsConfig") to unconditionally include in API requests.
1733	// By default, fields with empty values are omitted from API requests.
1734	// However, any non-pointer, non-interface field appearing in
1735	// ForceSendFields will be sent to the server regardless of whether the
1736	// field is empty or not. This may be used to include empty fields in
1737	// Patch requests.
1738	ForceSendFields []string `json:"-"`
1739
1740	// NullFields is a list of field names (e.g. "CategoricalStatsConfig")
1741	// to include in API requests with the JSON null value. By default,
1742	// fields with empty values are omitted from API requests. However, any
1743	// field with an empty value appearing in NullFields will be sent to the
1744	// server as null. It is an error if a field in this list has a
1745	// non-empty value. This may be used to include null fields in Patch
1746	// requests.
1747	NullFields []string `json:"-"`
1748}
1749
1750func (s *GooglePrivacyDlpV2beta1PrivacyMetric) MarshalJSON() ([]byte, error) {
1751	type NoMethod GooglePrivacyDlpV2beta1PrivacyMetric
1752	raw := NoMethod(*s)
1753	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1754}
1755
1756// GooglePrivacyDlpV2beta1Projection: A representation of a Datastore
1757// property in a projection.
1758type GooglePrivacyDlpV2beta1Projection struct {
1759	// Property: The property to project.
1760	Property *GooglePrivacyDlpV2beta1PropertyReference `json:"property,omitempty"`
1761
1762	// ForceSendFields is a list of field names (e.g. "Property") to
1763	// unconditionally include in API requests. By default, fields with
1764	// empty values are omitted from API requests. However, any non-pointer,
1765	// non-interface field appearing in ForceSendFields will be sent to the
1766	// server regardless of whether the field is empty or not. This may be
1767	// used to include empty fields in Patch requests.
1768	ForceSendFields []string `json:"-"`
1769
1770	// NullFields is a list of field names (e.g. "Property") to include in
1771	// API requests with the JSON null value. By default, fields with empty
1772	// values are omitted from API requests. However, any field with an
1773	// empty value appearing in NullFields will be sent to the server as
1774	// null. It is an error if a field in this list has a non-empty value.
1775	// This may be used to include null fields in Patch requests.
1776	NullFields []string `json:"-"`
1777}
1778
1779func (s *GooglePrivacyDlpV2beta1Projection) MarshalJSON() ([]byte, error) {
1780	type NoMethod GooglePrivacyDlpV2beta1Projection
1781	raw := NoMethod(*s)
1782	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1783}
1784
1785// GooglePrivacyDlpV2beta1PropertyReference: A reference to a property
1786// relative to the Datastore kind expressions.
1787type GooglePrivacyDlpV2beta1PropertyReference struct {
1788	// Name: The name of the property.
1789	// If name includes "."s, it may be interpreted as a property name path.
1790	Name string `json:"name,omitempty"`
1791
1792	// ForceSendFields is a list of field names (e.g. "Name") to
1793	// unconditionally include in API requests. By default, fields with
1794	// empty values are omitted from API requests. However, any non-pointer,
1795	// non-interface field appearing in ForceSendFields will be sent to the
1796	// server regardless of whether the field is empty or not. This may be
1797	// used to include empty fields in Patch requests.
1798	ForceSendFields []string `json:"-"`
1799
1800	// NullFields is a list of field names (e.g. "Name") to include in API
1801	// requests with the JSON null value. By default, fields with empty
1802	// values are omitted from API requests. However, any field with an
1803	// empty value appearing in NullFields will be sent to the server as
1804	// null. It is an error if a field in this list has a non-empty value.
1805	// This may be used to include null fields in Patch requests.
1806	NullFields []string `json:"-"`
1807}
1808
1809func (s *GooglePrivacyDlpV2beta1PropertyReference) MarshalJSON() ([]byte, error) {
1810	type NoMethod GooglePrivacyDlpV2beta1PropertyReference
1811	raw := NoMethod(*s)
1812	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1813}
1814
1815// GooglePrivacyDlpV2beta1QuasiIdField: A quasi-identifier column has a
1816// custom_tag, used to know which column
1817// in the data corresponds to which column in the statistical model.
1818type GooglePrivacyDlpV2beta1QuasiIdField struct {
1819	CustomTag string `json:"customTag,omitempty"`
1820
1821	Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
1822
1823	// ForceSendFields is a list of field names (e.g. "CustomTag") to
1824	// unconditionally include in API requests. By default, fields with
1825	// empty values are omitted from API requests. However, any non-pointer,
1826	// non-interface field appearing in ForceSendFields will be sent to the
1827	// server regardless of whether the field is empty or not. This may be
1828	// used to include empty fields in Patch requests.
1829	ForceSendFields []string `json:"-"`
1830
1831	// NullFields is a list of field names (e.g. "CustomTag") to include in
1832	// API requests with the JSON null value. By default, fields with empty
1833	// values are omitted from API requests. However, any field with an
1834	// empty value appearing in NullFields will be sent to the server as
1835	// null. It is an error if a field in this list has a non-empty value.
1836	// This may be used to include null fields in Patch requests.
1837	NullFields []string `json:"-"`
1838}
1839
1840func (s *GooglePrivacyDlpV2beta1QuasiIdField) MarshalJSON() ([]byte, error) {
1841	type NoMethod GooglePrivacyDlpV2beta1QuasiIdField
1842	raw := NoMethod(*s)
1843	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1844}
1845
1846// GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata: Metadata
1847// returned within
1848// the
1849// [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/r
1850// iskAnalysis.operations/get)
1851// for risk analysis.
1852type GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata struct {
1853	// CreateTime: The time which this request was started.
1854	CreateTime string `json:"createTime,omitempty"`
1855
1856	// RequestedPrivacyMetric: Privacy metric to compute.
1857	RequestedPrivacyMetric *GooglePrivacyDlpV2beta1PrivacyMetric `json:"requestedPrivacyMetric,omitempty"`
1858
1859	// RequestedSourceTable: Input dataset to compute metrics over.
1860	RequestedSourceTable *GooglePrivacyDlpV2beta1BigQueryTable `json:"requestedSourceTable,omitempty"`
1861
1862	// ForceSendFields is a list of field names (e.g. "CreateTime") to
1863	// unconditionally include in API requests. By default, fields with
1864	// empty values are omitted from API requests. However, any non-pointer,
1865	// non-interface field appearing in ForceSendFields will be sent to the
1866	// server regardless of whether the field is empty or not. This may be
1867	// used to include empty fields in Patch requests.
1868	ForceSendFields []string `json:"-"`
1869
1870	// NullFields is a list of field names (e.g. "CreateTime") to include in
1871	// API requests with the JSON null value. By default, fields with empty
1872	// values are omitted from API requests. However, any field with an
1873	// empty value appearing in NullFields will be sent to the server as
1874	// null. It is an error if a field in this list has a non-empty value.
1875	// This may be used to include null fields in Patch requests.
1876	NullFields []string `json:"-"`
1877}
1878
1879func (s *GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata) MarshalJSON() ([]byte, error) {
1880	type NoMethod GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata
1881	raw := NoMethod(*s)
1882	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1883}
1884
1885// GooglePrivacyDlpV2beta1RiskAnalysisOperationResult: Result of a risk
1886// analysis
1887// [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operat
1888// ions)
1889// request.
1890type GooglePrivacyDlpV2beta1RiskAnalysisOperationResult struct {
1891	CategoricalStatsResult *GooglePrivacyDlpV2beta1CategoricalStatsResult `json:"categoricalStatsResult,omitempty"`
1892
1893	KAnonymityResult *GooglePrivacyDlpV2beta1KAnonymityResult `json:"kAnonymityResult,omitempty"`
1894
1895	KMapEstimationResult *GooglePrivacyDlpV2beta1KMapEstimationResult `json:"kMapEstimationResult,omitempty"`
1896
1897	LDiversityResult *GooglePrivacyDlpV2beta1LDiversityResult `json:"lDiversityResult,omitempty"`
1898
1899	NumericalStatsResult *GooglePrivacyDlpV2beta1NumericalStatsResult `json:"numericalStatsResult,omitempty"`
1900
1901	// ForceSendFields is a list of field names (e.g.
1902	// "CategoricalStatsResult") to unconditionally include in API requests.
1903	// By default, fields with empty values are omitted from API requests.
1904	// However, any non-pointer, non-interface field appearing in
1905	// ForceSendFields will be sent to the server regardless of whether the
1906	// field is empty or not. This may be used to include empty fields in
1907	// Patch requests.
1908	ForceSendFields []string `json:"-"`
1909
1910	// NullFields is a list of field names (e.g. "CategoricalStatsResult")
1911	// to include in API requests with the JSON null value. By default,
1912	// fields with empty values are omitted from API requests. However, any
1913	// field with an empty value appearing in NullFields will be sent to the
1914	// server as null. It is an error if a field in this list has a
1915	// non-empty value. This may be used to include null fields in Patch
1916	// requests.
1917	NullFields []string `json:"-"`
1918}
1919
1920func (s *GooglePrivacyDlpV2beta1RiskAnalysisOperationResult) MarshalJSON() ([]byte, error) {
1921	type NoMethod GooglePrivacyDlpV2beta1RiskAnalysisOperationResult
1922	raw := NoMethod(*s)
1923	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1924}
1925
1926// GooglePrivacyDlpV2beta1StorageConfig: Shared message indicating Cloud
1927// storage type.
1928type GooglePrivacyDlpV2beta1StorageConfig struct {
1929	// BigQueryOptions: BigQuery options specification.
1930	BigQueryOptions *GooglePrivacyDlpV2beta1BigQueryOptions `json:"bigQueryOptions,omitempty"`
1931
1932	// CloudStorageOptions: Google Cloud Storage options specification.
1933	CloudStorageOptions *GooglePrivacyDlpV2beta1CloudStorageOptions `json:"cloudStorageOptions,omitempty"`
1934
1935	// DatastoreOptions: Google Cloud Datastore options specification.
1936	DatastoreOptions *GooglePrivacyDlpV2beta1DatastoreOptions `json:"datastoreOptions,omitempty"`
1937
1938	// ForceSendFields is a list of field names (e.g. "BigQueryOptions") to
1939	// unconditionally include in API requests. By default, fields with
1940	// empty values are omitted from API requests. However, any non-pointer,
1941	// non-interface field appearing in ForceSendFields will be sent to the
1942	// server regardless of whether the field is empty or not. This may be
1943	// used to include empty fields in Patch requests.
1944	ForceSendFields []string `json:"-"`
1945
1946	// NullFields is a list of field names (e.g. "BigQueryOptions") to
1947	// include in API requests with the JSON null value. By default, fields
1948	// with empty values are omitted from API requests. However, any field
1949	// with an empty value appearing in NullFields will be sent to the
1950	// server as null. It is an error if a field in this list has a
1951	// non-empty value. This may be used to include null fields in Patch
1952	// requests.
1953	NullFields []string `json:"-"`
1954}
1955
1956func (s *GooglePrivacyDlpV2beta1StorageConfig) MarshalJSON() ([]byte, error) {
1957	type NoMethod GooglePrivacyDlpV2beta1StorageConfig
1958	raw := NoMethod(*s)
1959	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1960}
1961
1962// GooglePrivacyDlpV2beta1SurrogateType: Message for detecting output
1963// from deidentification transformations
1964// such
1965// as
1966// [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/cont
1967// ent/deidentify#CryptoReplaceFfxFpeConfig).
1968// These types of transformations are
1969// those that perform pseudonymization, thereby producing a "surrogate"
1970// as
1971// output. This should be used in conjunction with a field on
1972// the
1973// transformation such as `surrogate_info_type`. This custom info type
1974// does
1975// not support the use of `detection_rules`.
1976type GooglePrivacyDlpV2beta1SurrogateType struct {
1977}
1978
1979// GooglePrivacyDlpV2beta1TaggedField: A column with a semantic tag
1980// attached.
1981type GooglePrivacyDlpV2beta1TaggedField struct {
1982	// CustomTag: A column can be tagged with a custom tag. In this case,
1983	// the user must
1984	// indicate an auxiliary table that contains statistical information
1985	// on
1986	// the possible values of this column (below).
1987	CustomTag string `json:"customTag,omitempty"`
1988
1989	// Field: Identifies the column. [required]
1990	Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
1991
1992	// Inferred: If no semantic tag is indicated, we infer the statistical
1993	// model from
1994	// the distribution of values in the input data
1995	Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
1996
1997	// InfoType: A column can be tagged with a InfoType to use the relevant
1998	// public
1999	// dataset as a statistical model of population, if available.
2000	// We
2001	// currently support US ZIP codes, region codes, ages and genders.
2002	InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
2003
2004	// ForceSendFields is a list of field names (e.g. "CustomTag") to
2005	// unconditionally include in API requests. By default, fields with
2006	// empty values are omitted from API requests. However, any non-pointer,
2007	// non-interface field appearing in ForceSendFields will be sent to the
2008	// server regardless of whether the field is empty or not. This may be
2009	// used to include empty fields in Patch requests.
2010	ForceSendFields []string `json:"-"`
2011
2012	// NullFields is a list of field names (e.g. "CustomTag") to include in
2013	// API requests with the JSON null value. By default, fields with empty
2014	// values are omitted from API requests. However, any field with an
2015	// empty value appearing in NullFields will be sent to the server as
2016	// null. It is an error if a field in this list has a non-empty value.
2017	// This may be used to include null fields in Patch requests.
2018	NullFields []string `json:"-"`
2019}
2020
2021func (s *GooglePrivacyDlpV2beta1TaggedField) MarshalJSON() ([]byte, error) {
2022	type NoMethod GooglePrivacyDlpV2beta1TaggedField
2023	raw := NoMethod(*s)
2024	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2025}
2026
2027// GooglePrivacyDlpV2beta1Value: Set of primitive values supported by
2028// the system.
2029// Note that for the purposes of inspection or transformation, the
2030// number
2031// of bytes considered to comprise a 'Value' is based on its
2032// representation
2033// as a UTF-8 encoded string. For example, if 'integer_value' is set
2034// to
2035// 123456789, the number of bytes would be counted as 9, even though
2036// an
2037// int64 only holds up to 8 bytes of data.
2038type GooglePrivacyDlpV2beta1Value struct {
2039	BooleanValue bool `json:"booleanValue,omitempty"`
2040
2041	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
2042
2043	FloatValue float64 `json:"floatValue,omitempty"`
2044
2045	IntegerValue int64 `json:"integerValue,omitempty,string"`
2046
2047	StringValue string `json:"stringValue,omitempty"`
2048
2049	TimeValue *GoogleTypeTimeOfDay `json:"timeValue,omitempty"`
2050
2051	TimestampValue string `json:"timestampValue,omitempty"`
2052
2053	// ForceSendFields is a list of field names (e.g. "BooleanValue") to
2054	// unconditionally include in API requests. By default, fields with
2055	// empty values are omitted from API requests. However, any non-pointer,
2056	// non-interface field appearing in ForceSendFields will be sent to the
2057	// server regardless of whether the field is empty or not. This may be
2058	// used to include empty fields in Patch requests.
2059	ForceSendFields []string `json:"-"`
2060
2061	// NullFields is a list of field names (e.g. "BooleanValue") to include
2062	// in API requests with the JSON null value. By default, fields with
2063	// empty values are omitted from API requests. However, any field with
2064	// an empty value appearing in NullFields will be sent to the server as
2065	// null. It is an error if a field in this list has a non-empty value.
2066	// This may be used to include null fields in Patch requests.
2067	NullFields []string `json:"-"`
2068}
2069
2070func (s *GooglePrivacyDlpV2beta1Value) MarshalJSON() ([]byte, error) {
2071	type NoMethod GooglePrivacyDlpV2beta1Value
2072	raw := NoMethod(*s)
2073	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2074}
2075
2076func (s *GooglePrivacyDlpV2beta1Value) UnmarshalJSON(data []byte) error {
2077	type NoMethod GooglePrivacyDlpV2beta1Value
2078	var s1 struct {
2079		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
2080		*NoMethod
2081	}
2082	s1.NoMethod = (*NoMethod)(s)
2083	if err := json.Unmarshal(data, &s1); err != nil {
2084		return err
2085	}
2086	s.FloatValue = float64(s1.FloatValue)
2087	return nil
2088}
2089
2090// GooglePrivacyDlpV2beta1ValueFrequency: A value of a field, including
2091// its frequency.
2092type GooglePrivacyDlpV2beta1ValueFrequency struct {
2093	// Count: How many times the value is contained in the field.
2094	Count int64 `json:"count,omitempty,string"`
2095
2096	// Value: A value contained in the field in question.
2097	Value *GooglePrivacyDlpV2beta1Value `json:"value,omitempty"`
2098
2099	// ForceSendFields is a list of field names (e.g. "Count") to
2100	// unconditionally include in API requests. By default, fields with
2101	// empty values are omitted from API requests. However, any non-pointer,
2102	// non-interface field appearing in ForceSendFields will be sent to the
2103	// server regardless of whether the field is empty or not. This may be
2104	// used to include empty fields in Patch requests.
2105	ForceSendFields []string `json:"-"`
2106
2107	// NullFields is a list of field names (e.g. "Count") to include in API
2108	// requests with the JSON null value. By default, fields with empty
2109	// values are omitted from API requests. However, any field with an
2110	// empty value appearing in NullFields will be sent to the server as
2111	// null. It is an error if a field in this list has a non-empty value.
2112	// This may be used to include null fields in Patch requests.
2113	NullFields []string `json:"-"`
2114}
2115
2116func (s *GooglePrivacyDlpV2beta1ValueFrequency) MarshalJSON() ([]byte, error) {
2117	type NoMethod GooglePrivacyDlpV2beta1ValueFrequency
2118	raw := NoMethod(*s)
2119	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2120}
2121
2122// GooglePrivacyDlpV2beta1WordList: Message defining a list of words or
2123// phrases to search for in the data.
2124type GooglePrivacyDlpV2beta1WordList struct {
2125	// Words: Words or phrases defining the dictionary. The dictionary must
2126	// contain
2127	// at least one phrase and every phrase must contain at least 2
2128	// characters
2129	// that are letters or digits. [required]
2130	Words []string `json:"words,omitempty"`
2131
2132	// ForceSendFields is a list of field names (e.g. "Words") to
2133	// unconditionally include in API requests. By default, fields with
2134	// empty values are omitted from API requests. However, any non-pointer,
2135	// non-interface field appearing in ForceSendFields will be sent to the
2136	// server regardless of whether the field is empty or not. This may be
2137	// used to include empty fields in Patch requests.
2138	ForceSendFields []string `json:"-"`
2139
2140	// NullFields is a list of field names (e.g. "Words") to include in API
2141	// requests with the JSON null value. By default, fields with empty
2142	// values are omitted from API requests. However, any field with an
2143	// empty value appearing in NullFields will be sent to the server as
2144	// null. It is an error if a field in this list has a non-empty value.
2145	// This may be used to include null fields in Patch requests.
2146	NullFields []string `json:"-"`
2147}
2148
2149func (s *GooglePrivacyDlpV2beta1WordList) MarshalJSON() ([]byte, error) {
2150	type NoMethod GooglePrivacyDlpV2beta1WordList
2151	raw := NoMethod(*s)
2152	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2153}
2154
2155// GooglePrivacyDlpV2beta2Action: A task to execute on the completion of
2156// a job.
2157type GooglePrivacyDlpV2beta2Action struct {
2158	// PubSub: Publish a notification to a pubsub topic.
2159	PubSub *GooglePrivacyDlpV2beta2PublishToPubSub `json:"pubSub,omitempty"`
2160
2161	// SaveFindings: Save resulting findings in a provided location.
2162	SaveFindings *GooglePrivacyDlpV2beta2SaveFindings `json:"saveFindings,omitempty"`
2163
2164	// ForceSendFields is a list of field names (e.g. "PubSub") to
2165	// unconditionally include in API requests. By default, fields with
2166	// empty values are omitted from API requests. However, any non-pointer,
2167	// non-interface field appearing in ForceSendFields will be sent to the
2168	// server regardless of whether the field is empty or not. This may be
2169	// used to include empty fields in Patch requests.
2170	ForceSendFields []string `json:"-"`
2171
2172	// NullFields is a list of field names (e.g. "PubSub") to include in API
2173	// requests with the JSON null value. By default, fields with empty
2174	// values are omitted from API requests. However, any field with an
2175	// empty value appearing in NullFields will be sent to the server as
2176	// null. It is an error if a field in this list has a non-empty value.
2177	// This may be used to include null fields in Patch requests.
2178	NullFields []string `json:"-"`
2179}
2180
2181func (s *GooglePrivacyDlpV2beta2Action) MarshalJSON() ([]byte, error) {
2182	type NoMethod GooglePrivacyDlpV2beta2Action
2183	raw := NoMethod(*s)
2184	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2185}
2186
2187// GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails: Result of a risk
2188// analysis operation request.
2189type GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails struct {
2190	CategoricalStatsResult *GooglePrivacyDlpV2beta2CategoricalStatsResult `json:"categoricalStatsResult,omitempty"`
2191
2192	KAnonymityResult *GooglePrivacyDlpV2beta2KAnonymityResult `json:"kAnonymityResult,omitempty"`
2193
2194	KMapEstimationResult *GooglePrivacyDlpV2beta2KMapEstimationResult `json:"kMapEstimationResult,omitempty"`
2195
2196	LDiversityResult *GooglePrivacyDlpV2beta2LDiversityResult `json:"lDiversityResult,omitempty"`
2197
2198	NumericalStatsResult *GooglePrivacyDlpV2beta2NumericalStatsResult `json:"numericalStatsResult,omitempty"`
2199
2200	// RequestedPrivacyMetric: Privacy metric to compute.
2201	RequestedPrivacyMetric *GooglePrivacyDlpV2beta2PrivacyMetric `json:"requestedPrivacyMetric,omitempty"`
2202
2203	// RequestedSourceTable: Input dataset to compute metrics over.
2204	RequestedSourceTable *GooglePrivacyDlpV2beta2BigQueryTable `json:"requestedSourceTable,omitempty"`
2205
2206	// ForceSendFields is a list of field names (e.g.
2207	// "CategoricalStatsResult") to unconditionally include in API requests.
2208	// By default, fields with empty values are omitted from API requests.
2209	// However, any non-pointer, non-interface field appearing in
2210	// ForceSendFields will be sent to the server regardless of whether the
2211	// field is empty or not. This may be used to include empty fields in
2212	// Patch requests.
2213	ForceSendFields []string `json:"-"`
2214
2215	// NullFields is a list of field names (e.g. "CategoricalStatsResult")
2216	// to include in API requests with the JSON null value. By default,
2217	// fields with empty values are omitted from API requests. However, any
2218	// field with an empty value appearing in NullFields will be sent to the
2219	// server as null. It is an error if a field in this list has a
2220	// non-empty value. This may be used to include null fields in Patch
2221	// requests.
2222	NullFields []string `json:"-"`
2223}
2224
2225func (s *GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails) MarshalJSON() ([]byte, error) {
2226	type NoMethod GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails
2227	raw := NoMethod(*s)
2228	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2229}
2230
2231// GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest: Request for
2232// creating a risk analysis DlpJob.
2233type GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest struct {
2234	// JobConfig: Configuration for this risk analysis job.
2235	JobConfig *GooglePrivacyDlpV2beta2RiskAnalysisJobConfig `json:"jobConfig,omitempty"`
2236
2237	// JobId: Optional job ID to use for the created job. If not provided, a
2238	// job ID will
2239	// automatically be generated. Must be unique within the project. The
2240	// job ID
2241	// can contain uppercase and lowercase letters, numbers, and hyphens;
2242	// that is,
2243	// it must match the regular expression: `[a-zA-Z\\d-]+`. The maximum
2244	// length
2245	// is 100 characters. Can be empty to allow the system to generate one.
2246	JobId string `json:"jobId,omitempty"`
2247
2248	// ForceSendFields is a list of field names (e.g. "JobConfig") to
2249	// unconditionally include in API requests. By default, fields with
2250	// empty values are omitted from API requests. However, any non-pointer,
2251	// non-interface field appearing in ForceSendFields will be sent to the
2252	// server regardless of whether the field is empty or not. This may be
2253	// used to include empty fields in Patch requests.
2254	ForceSendFields []string `json:"-"`
2255
2256	// NullFields is a list of field names (e.g. "JobConfig") to include in
2257	// API requests with the JSON null value. By default, fields with empty
2258	// values are omitted from API requests. However, any field with an
2259	// empty value appearing in NullFields will be sent to the server as
2260	// null. It is an error if a field in this list has a non-empty value.
2261	// This may be used to include null fields in Patch requests.
2262	NullFields []string `json:"-"`
2263}
2264
2265func (s *GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest) MarshalJSON() ([]byte, error) {
2266	type NoMethod GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest
2267	raw := NoMethod(*s)
2268	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2269}
2270
2271// GooglePrivacyDlpV2beta2AuxiliaryTable: An auxiliary table contains
2272// statistical information on the relative
2273// frequency of different quasi-identifiers values. It has one or
2274// several
2275// quasi-identifiers columns, and one column that indicates the
2276// relative
2277// frequency of each quasi-identifier tuple.
2278// If a tuple is present in the data but not in the auxiliary table,
2279// the
2280// corresponding relative frequency is assumed to be zero (and thus,
2281// the
2282// tuple is highly reidentifiable).
2283type GooglePrivacyDlpV2beta2AuxiliaryTable struct {
2284	// QuasiIds: Quasi-identifier columns. [required]
2285	QuasiIds []*GooglePrivacyDlpV2beta2QuasiIdField `json:"quasiIds,omitempty"`
2286
2287	// RelativeFrequency: The relative frequency column must contain a
2288	// floating-point number
2289	// between 0 and 1 (inclusive). Null values are assumed to be
2290	// zero.
2291	// [required]
2292	RelativeFrequency *GooglePrivacyDlpV2beta2FieldId `json:"relativeFrequency,omitempty"`
2293
2294	// Table: Auxiliary table location. [required]
2295	Table *GooglePrivacyDlpV2beta2BigQueryTable `json:"table,omitempty"`
2296
2297	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
2298	// unconditionally include in API requests. By default, fields with
2299	// empty values are omitted from API requests. However, any non-pointer,
2300	// non-interface field appearing in ForceSendFields will be sent to the
2301	// server regardless of whether the field is empty or not. This may be
2302	// used to include empty fields in Patch requests.
2303	ForceSendFields []string `json:"-"`
2304
2305	// NullFields is a list of field names (e.g. "QuasiIds") to include in
2306	// API requests with the JSON null value. By default, fields with empty
2307	// values are omitted from API requests. However, any field with an
2308	// empty value appearing in NullFields will be sent to the server as
2309	// null. It is an error if a field in this list has a non-empty value.
2310	// This may be used to include null fields in Patch requests.
2311	NullFields []string `json:"-"`
2312}
2313
2314func (s *GooglePrivacyDlpV2beta2AuxiliaryTable) MarshalJSON() ([]byte, error) {
2315	type NoMethod GooglePrivacyDlpV2beta2AuxiliaryTable
2316	raw := NoMethod(*s)
2317	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2318}
2319
2320// GooglePrivacyDlpV2beta2BigQueryKey: Row key for identifying a record
2321// in BigQuery table.
2322type GooglePrivacyDlpV2beta2BigQueryKey struct {
2323	// RowNumber: Absolute number of the row from the beginning of the table
2324	// at the time
2325	// of scanning.
2326	RowNumber int64 `json:"rowNumber,omitempty,string"`
2327
2328	// TableReference: Complete BigQuery table reference.
2329	TableReference *GooglePrivacyDlpV2beta2BigQueryTable `json:"tableReference,omitempty"`
2330
2331	// ForceSendFields is a list of field names (e.g. "RowNumber") to
2332	// unconditionally include in API requests. By default, fields with
2333	// empty values are omitted from API requests. However, any non-pointer,
2334	// non-interface field appearing in ForceSendFields will be sent to the
2335	// server regardless of whether the field is empty or not. This may be
2336	// used to include empty fields in Patch requests.
2337	ForceSendFields []string `json:"-"`
2338
2339	// NullFields is a list of field names (e.g. "RowNumber") to include in
2340	// API requests with the JSON null value. By default, fields with empty
2341	// values are omitted from API requests. However, any field with an
2342	// empty value appearing in NullFields will be sent to the server as
2343	// null. It is an error if a field in this list has a non-empty value.
2344	// This may be used to include null fields in Patch requests.
2345	NullFields []string `json:"-"`
2346}
2347
2348func (s *GooglePrivacyDlpV2beta2BigQueryKey) MarshalJSON() ([]byte, error) {
2349	type NoMethod GooglePrivacyDlpV2beta2BigQueryKey
2350	raw := NoMethod(*s)
2351	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2352}
2353
2354// GooglePrivacyDlpV2beta2BigQueryOptions: Options defining BigQuery
2355// table and row identifiers.
2356type GooglePrivacyDlpV2beta2BigQueryOptions struct {
2357	// IdentifyingFields: References to fields uniquely identifying rows
2358	// within the table.
2359	// Nested fields in the format, like `person.birthdate.year`, are
2360	// allowed.
2361	IdentifyingFields []*GooglePrivacyDlpV2beta2FieldId `json:"identifyingFields,omitempty"`
2362
2363	// TableReference: Complete BigQuery table reference.
2364	TableReference *GooglePrivacyDlpV2beta2BigQueryTable `json:"tableReference,omitempty"`
2365
2366	// ForceSendFields is a list of field names (e.g. "IdentifyingFields")
2367	// to unconditionally include in API requests. By default, fields with
2368	// empty values are omitted from API requests. However, any non-pointer,
2369	// non-interface field appearing in ForceSendFields will be sent to the
2370	// server regardless of whether the field is empty or not. This may be
2371	// used to include empty fields in Patch requests.
2372	ForceSendFields []string `json:"-"`
2373
2374	// NullFields is a list of field names (e.g. "IdentifyingFields") to
2375	// include in API requests with the JSON null value. By default, fields
2376	// with empty values are omitted from API requests. However, any field
2377	// with an empty value appearing in NullFields will be sent to the
2378	// server as null. It is an error if a field in this list has a
2379	// non-empty value. This may be used to include null fields in Patch
2380	// requests.
2381	NullFields []string `json:"-"`
2382}
2383
2384func (s *GooglePrivacyDlpV2beta2BigQueryOptions) MarshalJSON() ([]byte, error) {
2385	type NoMethod GooglePrivacyDlpV2beta2BigQueryOptions
2386	raw := NoMethod(*s)
2387	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2388}
2389
2390// GooglePrivacyDlpV2beta2BigQueryTable: Message defining the location
2391// of a BigQuery table. A table is uniquely
2392// identified  by its project_id, dataset_id, and table_name. Within a
2393// query
2394// a table is often referenced with a string in the format
2395// of:
2396// `<project_id>:<dataset_id>.<table_id>`
2397// or
2398// `<project_id>.<dataset_id>.<table_id>`.
2399type GooglePrivacyDlpV2beta2BigQueryTable struct {
2400	// DatasetId: Dataset ID of the table.
2401	DatasetId string `json:"datasetId,omitempty"`
2402
2403	// ProjectId: The Google Cloud Platform project ID of the project
2404	// containing the table.
2405	// If omitted, project ID is inferred from the API call.
2406	ProjectId string `json:"projectId,omitempty"`
2407
2408	// TableId: Name of the table.
2409	TableId string `json:"tableId,omitempty"`
2410
2411	// ForceSendFields is a list of field names (e.g. "DatasetId") to
2412	// unconditionally include in API requests. By default, fields with
2413	// empty values are omitted from API requests. However, any non-pointer,
2414	// non-interface field appearing in ForceSendFields will be sent to the
2415	// server regardless of whether the field is empty or not. This may be
2416	// used to include empty fields in Patch requests.
2417	ForceSendFields []string `json:"-"`
2418
2419	// NullFields is a list of field names (e.g. "DatasetId") to include in
2420	// API requests with the JSON null value. By default, fields with empty
2421	// values are omitted from API requests. However, any field with an
2422	// empty value appearing in NullFields will be sent to the server as
2423	// null. It is an error if a field in this list has a non-empty value.
2424	// This may be used to include null fields in Patch requests.
2425	NullFields []string `json:"-"`
2426}
2427
2428func (s *GooglePrivacyDlpV2beta2BigQueryTable) MarshalJSON() ([]byte, error) {
2429	type NoMethod GooglePrivacyDlpV2beta2BigQueryTable
2430	raw := NoMethod(*s)
2431	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2432}
2433
2434// GooglePrivacyDlpV2beta2Bucket: Bucket is represented as a range,
2435// along with replacement values.
2436type GooglePrivacyDlpV2beta2Bucket struct {
2437	// Max: Upper bound of the range, exclusive; type must match min.
2438	Max *GooglePrivacyDlpV2beta2Value `json:"max,omitempty"`
2439
2440	// Min: Lower bound of the range, inclusive. Type should be the same as
2441	// max if
2442	// used.
2443	Min *GooglePrivacyDlpV2beta2Value `json:"min,omitempty"`
2444
2445	// ReplacementValue: Replacement value for this bucket. If not
2446	// provided
2447	// the default behavior will be to hyphenate the min-max range.
2448	ReplacementValue *GooglePrivacyDlpV2beta2Value `json:"replacementValue,omitempty"`
2449
2450	// ForceSendFields is a list of field names (e.g. "Max") to
2451	// unconditionally include in API requests. By default, fields with
2452	// empty values are omitted from API requests. However, any non-pointer,
2453	// non-interface field appearing in ForceSendFields will be sent to the
2454	// server regardless of whether the field is empty or not. This may be
2455	// used to include empty fields in Patch requests.
2456	ForceSendFields []string `json:"-"`
2457
2458	// NullFields is a list of field names (e.g. "Max") to include in API
2459	// requests with the JSON null value. By default, fields with empty
2460	// values are omitted from API requests. However, any field with an
2461	// empty value appearing in NullFields will be sent to the server as
2462	// null. It is an error if a field in this list has a non-empty value.
2463	// This may be used to include null fields in Patch requests.
2464	NullFields []string `json:"-"`
2465}
2466
2467func (s *GooglePrivacyDlpV2beta2Bucket) MarshalJSON() ([]byte, error) {
2468	type NoMethod GooglePrivacyDlpV2beta2Bucket
2469	raw := NoMethod(*s)
2470	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2471}
2472
2473// GooglePrivacyDlpV2beta2BucketingConfig: Generalization function that
2474// buckets values based on ranges. The ranges and
2475// replacement values are dynamically provided by the user for custom
2476// behavior,
2477// such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
2478// This can be used on
2479// data of type: number, long, string, timestamp.
2480// If the bound `Value` type differs from the type of data being
2481// transformed, we
2482// will first attempt converting the type of the data to be transformed
2483// to match
2484// the type of the bound before comparing.
2485type GooglePrivacyDlpV2beta2BucketingConfig struct {
2486	// Buckets: Set of buckets. Ranges must be non-overlapping.
2487	Buckets []*GooglePrivacyDlpV2beta2Bucket `json:"buckets,omitempty"`
2488
2489	// ForceSendFields is a list of field names (e.g. "Buckets") to
2490	// unconditionally include in API requests. By default, fields with
2491	// empty values are omitted from API requests. However, any non-pointer,
2492	// non-interface field appearing in ForceSendFields will be sent to the
2493	// server regardless of whether the field is empty or not. This may be
2494	// used to include empty fields in Patch requests.
2495	ForceSendFields []string `json:"-"`
2496
2497	// NullFields is a list of field names (e.g. "Buckets") to include in
2498	// API requests with the JSON null value. By default, fields with empty
2499	// values are omitted from API requests. However, any field with an
2500	// empty value appearing in NullFields will be sent to the server as
2501	// null. It is an error if a field in this list has a non-empty value.
2502	// This may be used to include null fields in Patch requests.
2503	NullFields []string `json:"-"`
2504}
2505
2506func (s *GooglePrivacyDlpV2beta2BucketingConfig) MarshalJSON() ([]byte, error) {
2507	type NoMethod GooglePrivacyDlpV2beta2BucketingConfig
2508	raw := NoMethod(*s)
2509	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2510}
2511
2512// GooglePrivacyDlpV2beta2CancelDlpJobRequest: The request message for
2513// canceling a DLP job.
2514type GooglePrivacyDlpV2beta2CancelDlpJobRequest struct {
2515}
2516
2517// GooglePrivacyDlpV2beta2CategoricalStatsConfig: Compute numerical
2518// stats over an individual column, including
2519// number of distinct values and value count distribution.
2520type GooglePrivacyDlpV2beta2CategoricalStatsConfig struct {
2521	// Field: Field to compute categorical stats on. All column types
2522	// are
2523	// supported except for arrays and structs. However, it may be
2524	// more
2525	// informative to use NumericalStats when the field type is
2526	// supported,
2527	// depending on the data.
2528	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
2529
2530	// ForceSendFields is a list of field names (e.g. "Field") to
2531	// unconditionally include in API requests. By default, fields with
2532	// empty values are omitted from API requests. However, any non-pointer,
2533	// non-interface field appearing in ForceSendFields will be sent to the
2534	// server regardless of whether the field is empty or not. This may be
2535	// used to include empty fields in Patch requests.
2536	ForceSendFields []string `json:"-"`
2537
2538	// NullFields is a list of field names (e.g. "Field") to include in API
2539	// requests with the JSON null value. By default, fields with empty
2540	// values are omitted from API requests. However, any field with an
2541	// empty value appearing in NullFields will be sent to the server as
2542	// null. It is an error if a field in this list has a non-empty value.
2543	// This may be used to include null fields in Patch requests.
2544	NullFields []string `json:"-"`
2545}
2546
2547func (s *GooglePrivacyDlpV2beta2CategoricalStatsConfig) MarshalJSON() ([]byte, error) {
2548	type NoMethod GooglePrivacyDlpV2beta2CategoricalStatsConfig
2549	raw := NoMethod(*s)
2550	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2551}
2552
2553type GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket struct {
2554	// BucketSize: Total number of values in this bucket.
2555	BucketSize int64 `json:"bucketSize,omitempty,string"`
2556
2557	// BucketValueCount: Total number of distinct values in this bucket.
2558	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
2559
2560	// BucketValues: Sample of value frequencies in this bucket. The total
2561	// number of
2562	// values returned per bucket is capped at 20.
2563	BucketValues []*GooglePrivacyDlpV2beta2ValueFrequency `json:"bucketValues,omitempty"`
2564
2565	// ValueFrequencyLowerBound: Lower bound on the value frequency of the
2566	// values in this bucket.
2567	ValueFrequencyLowerBound int64 `json:"valueFrequencyLowerBound,omitempty,string"`
2568
2569	// ValueFrequencyUpperBound: Upper bound on the value frequency of the
2570	// values in this bucket.
2571	ValueFrequencyUpperBound int64 `json:"valueFrequencyUpperBound,omitempty,string"`
2572
2573	// ForceSendFields is a list of field names (e.g. "BucketSize") to
2574	// unconditionally include in API requests. By default, fields with
2575	// empty values are omitted from API requests. However, any non-pointer,
2576	// non-interface field appearing in ForceSendFields will be sent to the
2577	// server regardless of whether the field is empty or not. This may be
2578	// used to include empty fields in Patch requests.
2579	ForceSendFields []string `json:"-"`
2580
2581	// NullFields is a list of field names (e.g. "BucketSize") to include in
2582	// API requests with the JSON null value. By default, fields with empty
2583	// values are omitted from API requests. However, any field with an
2584	// empty value appearing in NullFields will be sent to the server as
2585	// null. It is an error if a field in this list has a non-empty value.
2586	// This may be used to include null fields in Patch requests.
2587	NullFields []string `json:"-"`
2588}
2589
2590func (s *GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket) MarshalJSON() ([]byte, error) {
2591	type NoMethod GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket
2592	raw := NoMethod(*s)
2593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2594}
2595
2596// GooglePrivacyDlpV2beta2CategoricalStatsResult: Result of the
2597// categorical stats computation.
2598type GooglePrivacyDlpV2beta2CategoricalStatsResult struct {
2599	// ValueFrequencyHistogramBuckets: Histogram of value frequencies in the
2600	// column.
2601	ValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket `json:"valueFrequencyHistogramBuckets,omitempty"`
2602
2603	// ForceSendFields is a list of field names (e.g.
2604	// "ValueFrequencyHistogramBuckets") to unconditionally include in API
2605	// requests. By default, fields with empty values are omitted from API
2606	// requests. However, any non-pointer, non-interface field appearing in
2607	// ForceSendFields will be sent to the server regardless of whether the
2608	// field is empty or not. This may be used to include empty fields in
2609	// Patch requests.
2610	ForceSendFields []string `json:"-"`
2611
2612	// NullFields is a list of field names (e.g.
2613	// "ValueFrequencyHistogramBuckets") to include in API requests with the
2614	// JSON null value. By default, fields with empty values are omitted
2615	// from API requests. However, any field with an empty value appearing
2616	// in NullFields will be sent to the server as null. It is an error if a
2617	// field in this list has a non-empty value. This may be used to include
2618	// null fields in Patch requests.
2619	NullFields []string `json:"-"`
2620}
2621
2622func (s *GooglePrivacyDlpV2beta2CategoricalStatsResult) MarshalJSON() ([]byte, error) {
2623	type NoMethod GooglePrivacyDlpV2beta2CategoricalStatsResult
2624	raw := NoMethod(*s)
2625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2626}
2627
2628// GooglePrivacyDlpV2beta2CharacterMaskConfig: Partially mask a string
2629// by replacing a given number of characters with a
2630// fixed character. Masking can start from the beginning or end of the
2631// string.
2632// This can be used on data of any type (numbers, longs, and so on) and
2633// when
2634// de-identifying structured data we'll attempt to preserve the original
2635// data's
2636// type. (This allows you to take a long like 123 and modify it to a
2637// string like
2638// **3.
2639type GooglePrivacyDlpV2beta2CharacterMaskConfig struct {
2640	// CharactersToIgnore: When masking a string, items in this list will be
2641	// skipped when replacing.
2642	// For example, if your string is 555-555-5555 and you ask us to skip
2643	// `-` and
2644	// mask 5 chars with * we would produce ***-*55-5555.
2645	CharactersToIgnore []*GooglePrivacyDlpV2beta2CharsToIgnore `json:"charactersToIgnore,omitempty"`
2646
2647	// MaskingCharacter: Character to mask the sensitive values&mdash;for
2648	// example, "*" for an
2649	// alphabetic string such as name, or "0" for a numeric string such as
2650	// ZIP
2651	// code or credit card number. String must have length 1. If not
2652	// supplied, we
2653	// will default to "*" for strings, 0 for digits.
2654	MaskingCharacter string `json:"maskingCharacter,omitempty"`
2655
2656	// NumberToMask: Number of characters to mask. If not set, all matching
2657	// chars will be
2658	// masked. Skipped characters do not count towards this tally.
2659	NumberToMask int64 `json:"numberToMask,omitempty"`
2660
2661	// ReverseOrder: Mask characters in reverse order. For example, if
2662	// `masking_character` is
2663	// '0', number_to_mask is 14, and `reverse_order` is false,
2664	// then
2665	// 1234-5678-9012-3456 -> 00000000000000-3456
2666	// If `masking_character` is '*', `number_to_mask` is 3, and
2667	// `reverse_order`
2668	// is true, then 12345 -> 12***
2669	ReverseOrder bool `json:"reverseOrder,omitempty"`
2670
2671	// ForceSendFields is a list of field names (e.g. "CharactersToIgnore")
2672	// to unconditionally include in API requests. By default, fields with
2673	// empty values are omitted from API requests. However, any non-pointer,
2674	// non-interface field appearing in ForceSendFields will be sent to the
2675	// server regardless of whether the field is empty or not. This may be
2676	// used to include empty fields in Patch requests.
2677	ForceSendFields []string `json:"-"`
2678
2679	// NullFields is a list of field names (e.g. "CharactersToIgnore") to
2680	// include in API requests with the JSON null value. By default, fields
2681	// with empty values are omitted from API requests. However, any field
2682	// with an empty value appearing in NullFields will be sent to the
2683	// server as null. It is an error if a field in this list has a
2684	// non-empty value. This may be used to include null fields in Patch
2685	// requests.
2686	NullFields []string `json:"-"`
2687}
2688
2689func (s *GooglePrivacyDlpV2beta2CharacterMaskConfig) MarshalJSON() ([]byte, error) {
2690	type NoMethod GooglePrivacyDlpV2beta2CharacterMaskConfig
2691	raw := NoMethod(*s)
2692	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2693}
2694
2695// GooglePrivacyDlpV2beta2CharsToIgnore: Characters to skip when doing
2696// deidentification of a value. These will be left
2697// alone and skipped.
2698type GooglePrivacyDlpV2beta2CharsToIgnore struct {
2699	CharactersToSkip string `json:"charactersToSkip,omitempty"`
2700
2701	// Possible values:
2702	//   "COMMON_CHARS_TO_IGNORE_UNSPECIFIED"
2703	//   "NUMERIC" - 0-9
2704	//   "ALPHA_UPPER_CASE" - A-Z
2705	//   "ALPHA_LOWER_CASE" - a-z
2706	//   "PUNCTUATION" - US Punctuation, one of
2707	// !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
2708	//   "WHITESPACE" - Whitespace character, one of [ \t\n\x0B\f\r]
2709	CommonCharactersToIgnore string `json:"commonCharactersToIgnore,omitempty"`
2710
2711	// ForceSendFields is a list of field names (e.g. "CharactersToSkip") to
2712	// unconditionally include in API requests. By default, fields with
2713	// empty values are omitted from API requests. However, any non-pointer,
2714	// non-interface field appearing in ForceSendFields will be sent to the
2715	// server regardless of whether the field is empty or not. This may be
2716	// used to include empty fields in Patch requests.
2717	ForceSendFields []string `json:"-"`
2718
2719	// NullFields is a list of field names (e.g. "CharactersToSkip") to
2720	// include in API requests with the JSON null value. By default, fields
2721	// with empty values are omitted from API requests. However, any field
2722	// with an empty value appearing in NullFields will be sent to the
2723	// server as null. It is an error if a field in this list has a
2724	// non-empty value. This may be used to include null fields in Patch
2725	// requests.
2726	NullFields []string `json:"-"`
2727}
2728
2729func (s *GooglePrivacyDlpV2beta2CharsToIgnore) MarshalJSON() ([]byte, error) {
2730	type NoMethod GooglePrivacyDlpV2beta2CharsToIgnore
2731	raw := NoMethod(*s)
2732	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2733}
2734
2735// GooglePrivacyDlpV2beta2CloudStorageKey: Record key for a finding in a
2736// Cloud Storage file.
2737type GooglePrivacyDlpV2beta2CloudStorageKey struct {
2738	// FilePath: Path to the file.
2739	FilePath string `json:"filePath,omitempty"`
2740
2741	// StartOffset: Byte offset of the referenced data in the file.
2742	StartOffset int64 `json:"startOffset,omitempty,string"`
2743
2744	// ForceSendFields is a list of field names (e.g. "FilePath") to
2745	// unconditionally include in API requests. By default, fields with
2746	// empty values are omitted from API requests. However, any non-pointer,
2747	// non-interface field appearing in ForceSendFields will be sent to the
2748	// server regardless of whether the field is empty or not. This may be
2749	// used to include empty fields in Patch requests.
2750	ForceSendFields []string `json:"-"`
2751
2752	// NullFields is a list of field names (e.g. "FilePath") to include in
2753	// API requests with the JSON null value. By default, fields with empty
2754	// values are omitted from API requests. However, any field with an
2755	// empty value appearing in NullFields will be sent to the server as
2756	// null. It is an error if a field in this list has a non-empty value.
2757	// This may be used to include null fields in Patch requests.
2758	NullFields []string `json:"-"`
2759}
2760
2761func (s *GooglePrivacyDlpV2beta2CloudStorageKey) MarshalJSON() ([]byte, error) {
2762	type NoMethod GooglePrivacyDlpV2beta2CloudStorageKey
2763	raw := NoMethod(*s)
2764	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2765}
2766
2767// GooglePrivacyDlpV2beta2CloudStorageOptions: Options defining a file
2768// or a set of files (path ending with *) within
2769// a Google Cloud Storage bucket.
2770type GooglePrivacyDlpV2beta2CloudStorageOptions struct {
2771	// BytesLimitPerFile: Max number of bytes to scan from a file. If a
2772	// scanned file's size is bigger
2773	// than this value then the rest of the bytes are omitted.
2774	BytesLimitPerFile int64 `json:"bytesLimitPerFile,omitempty,string"`
2775
2776	FileSet *GooglePrivacyDlpV2beta2FileSet `json:"fileSet,omitempty"`
2777
2778	// ForceSendFields is a list of field names (e.g. "BytesLimitPerFile")
2779	// to unconditionally include in API requests. By default, fields with
2780	// empty values are omitted from API requests. However, any non-pointer,
2781	// non-interface field appearing in ForceSendFields will be sent to the
2782	// server regardless of whether the field is empty or not. This may be
2783	// used to include empty fields in Patch requests.
2784	ForceSendFields []string `json:"-"`
2785
2786	// NullFields is a list of field names (e.g. "BytesLimitPerFile") to
2787	// include in API requests with the JSON null value. By default, fields
2788	// with empty values are omitted from API requests. However, any field
2789	// with an empty value appearing in NullFields will be sent to the
2790	// server as null. It is an error if a field in this list has a
2791	// non-empty value. This may be used to include null fields in Patch
2792	// requests.
2793	NullFields []string `json:"-"`
2794}
2795
2796func (s *GooglePrivacyDlpV2beta2CloudStorageOptions) MarshalJSON() ([]byte, error) {
2797	type NoMethod GooglePrivacyDlpV2beta2CloudStorageOptions
2798	raw := NoMethod(*s)
2799	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2800}
2801
2802// GooglePrivacyDlpV2beta2Color: Represents a color in the RGB color
2803// space.
2804type GooglePrivacyDlpV2beta2Color struct {
2805	// Blue: The amount of blue in the color as a value in the interval [0,
2806	// 1].
2807	Blue float64 `json:"blue,omitempty"`
2808
2809	// Green: The amount of green in the color as a value in the interval
2810	// [0, 1].
2811	Green float64 `json:"green,omitempty"`
2812
2813	// Red: The amount of red in the color as a value in the interval [0,
2814	// 1].
2815	Red float64 `json:"red,omitempty"`
2816
2817	// ForceSendFields is a list of field names (e.g. "Blue") to
2818	// unconditionally include in API requests. By default, fields with
2819	// empty values are omitted from API requests. However, any non-pointer,
2820	// non-interface field appearing in ForceSendFields will be sent to the
2821	// server regardless of whether the field is empty or not. This may be
2822	// used to include empty fields in Patch requests.
2823	ForceSendFields []string `json:"-"`
2824
2825	// NullFields is a list of field names (e.g. "Blue") to include in API
2826	// requests with the JSON null value. By default, fields with empty
2827	// values are omitted from API requests. However, any field with an
2828	// empty value appearing in NullFields will be sent to the server as
2829	// null. It is an error if a field in this list has a non-empty value.
2830	// This may be used to include null fields in Patch requests.
2831	NullFields []string `json:"-"`
2832}
2833
2834func (s *GooglePrivacyDlpV2beta2Color) MarshalJSON() ([]byte, error) {
2835	type NoMethod GooglePrivacyDlpV2beta2Color
2836	raw := NoMethod(*s)
2837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2838}
2839
2840func (s *GooglePrivacyDlpV2beta2Color) UnmarshalJSON(data []byte) error {
2841	type NoMethod GooglePrivacyDlpV2beta2Color
2842	var s1 struct {
2843		Blue  gensupport.JSONFloat64 `json:"blue"`
2844		Green gensupport.JSONFloat64 `json:"green"`
2845		Red   gensupport.JSONFloat64 `json:"red"`
2846		*NoMethod
2847	}
2848	s1.NoMethod = (*NoMethod)(s)
2849	if err := json.Unmarshal(data, &s1); err != nil {
2850		return err
2851	}
2852	s.Blue = float64(s1.Blue)
2853	s.Green = float64(s1.Green)
2854	s.Red = float64(s1.Red)
2855	return nil
2856}
2857
2858// GooglePrivacyDlpV2beta2Condition: The field type of `value` and
2859// `field` do not need to match to be
2860// considered equal, but not all comparisons are possible.
2861//
2862// A `value` of type:
2863//
2864// - `string` can be compared against all other types
2865// - `boolean` can only be compared against other booleans
2866// - `integer` can be compared against doubles or a string if the string
2867// value
2868// can be parsed as an integer.
2869// - `double` can be compared against integers or a string if the string
2870// can
2871// be parsed as a double.
2872// - `Timestamp` can be compared against strings in RFC 3339 date
2873// string
2874// format.
2875// - `TimeOfDay` can be compared against timestamps and strings in the
2876// format
2877// of 'HH:mm:ss'.
2878//
2879// If we fail to compare do to type mismatch, a warning will be given
2880// and
2881// the condition will evaluate to false.
2882type GooglePrivacyDlpV2beta2Condition struct {
2883	// Field: Field within the record this condition is evaluated against.
2884	// [required]
2885	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
2886
2887	// Operator: Operator used to compare the field or infoType to the
2888	// value. [required]
2889	//
2890	// Possible values:
2891	//   "RELATIONAL_OPERATOR_UNSPECIFIED"
2892	//   "EQUAL_TO" - Equal.
2893	//   "NOT_EQUAL_TO" - Not equal to.
2894	//   "GREATER_THAN" - Greater than.
2895	//   "LESS_THAN" - Less than.
2896	//   "GREATER_THAN_OR_EQUALS" - Greater than or equals.
2897	//   "LESS_THAN_OR_EQUALS" - Less than or equals.
2898	//   "EXISTS" - Exists
2899	Operator string `json:"operator,omitempty"`
2900
2901	// Value: Value to compare against. [Required, except for `EXISTS`
2902	// tests.]
2903	Value *GooglePrivacyDlpV2beta2Value `json:"value,omitempty"`
2904
2905	// ForceSendFields is a list of field names (e.g. "Field") to
2906	// unconditionally include in API requests. By default, fields with
2907	// empty values are omitted from API requests. However, any non-pointer,
2908	// non-interface field appearing in ForceSendFields will be sent to the
2909	// server regardless of whether the field is empty or not. This may be
2910	// used to include empty fields in Patch requests.
2911	ForceSendFields []string `json:"-"`
2912
2913	// NullFields is a list of field names (e.g. "Field") to include in API
2914	// requests with the JSON null value. By default, fields with empty
2915	// values are omitted from API requests. However, any field with an
2916	// empty value appearing in NullFields will be sent to the server as
2917	// null. It is an error if a field in this list has a non-empty value.
2918	// This may be used to include null fields in Patch requests.
2919	NullFields []string `json:"-"`
2920}
2921
2922func (s *GooglePrivacyDlpV2beta2Condition) MarshalJSON() ([]byte, error) {
2923	type NoMethod GooglePrivacyDlpV2beta2Condition
2924	raw := NoMethod(*s)
2925	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2926}
2927
2928// GooglePrivacyDlpV2beta2Conditions: A collection of conditions.
2929type GooglePrivacyDlpV2beta2Conditions struct {
2930	Conditions []*GooglePrivacyDlpV2beta2Condition `json:"conditions,omitempty"`
2931
2932	// ForceSendFields is a list of field names (e.g. "Conditions") to
2933	// unconditionally include in API requests. By default, fields with
2934	// empty values are omitted from API requests. However, any non-pointer,
2935	// non-interface field appearing in ForceSendFields will be sent to the
2936	// server regardless of whether the field is empty or not. This may be
2937	// used to include empty fields in Patch requests.
2938	ForceSendFields []string `json:"-"`
2939
2940	// NullFields is a list of field names (e.g. "Conditions") to include in
2941	// API requests with the JSON null value. By default, fields with empty
2942	// values are omitted from API requests. However, any field with an
2943	// empty value appearing in NullFields will be sent to the server as
2944	// null. It is an error if a field in this list has a non-empty value.
2945	// This may be used to include null fields in Patch requests.
2946	NullFields []string `json:"-"`
2947}
2948
2949func (s *GooglePrivacyDlpV2beta2Conditions) MarshalJSON() ([]byte, error) {
2950	type NoMethod GooglePrivacyDlpV2beta2Conditions
2951	raw := NoMethod(*s)
2952	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2953}
2954
2955// GooglePrivacyDlpV2beta2ContentItem: Container structure for the
2956// content to inspect.
2957type GooglePrivacyDlpV2beta2ContentItem struct {
2958	// Data: Content data to inspect or redact.
2959	Data string `json:"data,omitempty"`
2960
2961	// Table: Structured content for inspection.
2962	Table *GooglePrivacyDlpV2beta2Table `json:"table,omitempty"`
2963
2964	// Type: Type of the content, as defined in Content-Type HTTP
2965	// header.
2966	// Supported types are: all "text" types, octet streams, PNG
2967	// images,
2968	// JPEG images.
2969	Type string `json:"type,omitempty"`
2970
2971	// Value: String data to inspect or redact.
2972	Value string `json:"value,omitempty"`
2973
2974	// ForceSendFields is a list of field names (e.g. "Data") to
2975	// unconditionally include in API requests. By default, fields with
2976	// empty values are omitted from API requests. However, any non-pointer,
2977	// non-interface field appearing in ForceSendFields will be sent to the
2978	// server regardless of whether the field is empty or not. This may be
2979	// used to include empty fields in Patch requests.
2980	ForceSendFields []string `json:"-"`
2981
2982	// NullFields is a list of field names (e.g. "Data") to include in API
2983	// requests with the JSON null value. By default, fields with empty
2984	// values are omitted from API requests. However, any field with an
2985	// empty value appearing in NullFields will be sent to the server as
2986	// null. It is an error if a field in this list has a non-empty value.
2987	// This may be used to include null fields in Patch requests.
2988	NullFields []string `json:"-"`
2989}
2990
2991func (s *GooglePrivacyDlpV2beta2ContentItem) MarshalJSON() ([]byte, error) {
2992	type NoMethod GooglePrivacyDlpV2beta2ContentItem
2993	raw := NoMethod(*s)
2994	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2995}
2996
2997// GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest: Request
2998// message for CreateDeidentifyTemplate.
2999type GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest struct {
3000	// DeidentifyTemplate: The DeidentifyTemplate to create.
3001	DeidentifyTemplate *GooglePrivacyDlpV2beta2DeidentifyTemplate `json:"deidentifyTemplate,omitempty"`
3002
3003	// TemplateId: The template id can contain uppercase and lowercase
3004	// letters,
3005	// numbers, and hyphens; that is, it must match the regular
3006	// expression: `[a-zA-Z\\d-]+`. The maximum length is 100
3007	// characters. Can be empty to allow the system to generate one.
3008	TemplateId string `json:"templateId,omitempty"`
3009
3010	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplate")
3011	// to unconditionally include in API requests. By default, fields with
3012	// empty values are omitted from API requests. However, any non-pointer,
3013	// non-interface field appearing in ForceSendFields will be sent to the
3014	// server regardless of whether the field is empty or not. This may be
3015	// used to include empty fields in Patch requests.
3016	ForceSendFields []string `json:"-"`
3017
3018	// NullFields is a list of field names (e.g. "DeidentifyTemplate") to
3019	// include in API requests with the JSON null value. By default, fields
3020	// with empty values are omitted from API requests. However, any field
3021	// with an empty value appearing in NullFields will be sent to the
3022	// server as null. It is an error if a field in this list has a
3023	// non-empty value. This may be used to include null fields in Patch
3024	// requests.
3025	NullFields []string `json:"-"`
3026}
3027
3028func (s *GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest) MarshalJSON() ([]byte, error) {
3029	type NoMethod GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest
3030	raw := NoMethod(*s)
3031	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3032}
3033
3034// GooglePrivacyDlpV2beta2CreateInspectTemplateRequest: Request message
3035// for CreateInspectTemplate.
3036type GooglePrivacyDlpV2beta2CreateInspectTemplateRequest struct {
3037	// InspectTemplate: The InspectTemplate to create.
3038	InspectTemplate *GooglePrivacyDlpV2beta2InspectTemplate `json:"inspectTemplate,omitempty"`
3039
3040	// TemplateId: The template id can contain uppercase and lowercase
3041	// letters,
3042	// numbers, and hyphens; that is, it must match the regular
3043	// expression: `[a-zA-Z\\d-]+`. The maximum length is 100
3044	// characters. Can be empty to allow the system to generate one.
3045	TemplateId string `json:"templateId,omitempty"`
3046
3047	// ForceSendFields is a list of field names (e.g. "InspectTemplate") to
3048	// unconditionally include in API requests. By default, fields with
3049	// empty values are omitted from API requests. However, any non-pointer,
3050	// non-interface field appearing in ForceSendFields will be sent to the
3051	// server regardless of whether the field is empty or not. This may be
3052	// used to include empty fields in Patch requests.
3053	ForceSendFields []string `json:"-"`
3054
3055	// NullFields is a list of field names (e.g. "InspectTemplate") to
3056	// include in API requests with the JSON null value. By default, fields
3057	// with empty values are omitted from API requests. However, any field
3058	// with an empty value appearing in NullFields will be sent to the
3059	// server as null. It is an error if a field in this list has a
3060	// non-empty value. This may be used to include null fields in Patch
3061	// requests.
3062	NullFields []string `json:"-"`
3063}
3064
3065func (s *GooglePrivacyDlpV2beta2CreateInspectTemplateRequest) MarshalJSON() ([]byte, error) {
3066	type NoMethod GooglePrivacyDlpV2beta2CreateInspectTemplateRequest
3067	raw := NoMethod(*s)
3068	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3069}
3070
3071// GooglePrivacyDlpV2beta2CreateJobTriggerRequest: Request message for
3072// CreateJobTrigger.
3073type GooglePrivacyDlpV2beta2CreateJobTriggerRequest struct {
3074	// JobTrigger: The JobTrigger to create.
3075	JobTrigger *GooglePrivacyDlpV2beta2JobTrigger `json:"jobTrigger,omitempty"`
3076
3077	// TriggerId: The trigger id can contain uppercase and lowercase
3078	// letters,
3079	// numbers, and hyphens; that is, it must match the regular
3080	// expression: `[a-zA-Z\\d-]+`. The maximum length is 100
3081	// characters. Can be empty to allow the system to generate one.
3082	TriggerId string `json:"triggerId,omitempty"`
3083
3084	// ForceSendFields is a list of field names (e.g. "JobTrigger") to
3085	// unconditionally include in API requests. By default, fields with
3086	// empty values are omitted from API requests. However, any non-pointer,
3087	// non-interface field appearing in ForceSendFields will be sent to the
3088	// server regardless of whether the field is empty or not. This may be
3089	// used to include empty fields in Patch requests.
3090	ForceSendFields []string `json:"-"`
3091
3092	// NullFields is a list of field names (e.g. "JobTrigger") to include in
3093	// API requests with the JSON null value. By default, fields with empty
3094	// values are omitted from API requests. However, any field with an
3095	// empty value appearing in NullFields will be sent to the server as
3096	// null. It is an error if a field in this list has a non-empty value.
3097	// This may be used to include null fields in Patch requests.
3098	NullFields []string `json:"-"`
3099}
3100
3101func (s *GooglePrivacyDlpV2beta2CreateJobTriggerRequest) MarshalJSON() ([]byte, error) {
3102	type NoMethod GooglePrivacyDlpV2beta2CreateJobTriggerRequest
3103	raw := NoMethod(*s)
3104	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3105}
3106
3107// GooglePrivacyDlpV2beta2CryptoHashConfig: Pseudonymization method that
3108// generates surrogates via cryptographic hashing.
3109// Uses SHA-256.
3110// The key size must be either 32 or 64 bytes.
3111// Outputs a 32 byte digest as an uppercase hex string
3112// (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
3113// Currently, only string and integer values can be hashed.
3114type GooglePrivacyDlpV2beta2CryptoHashConfig struct {
3115	// CryptoKey: The key used by the hash function.
3116	CryptoKey *GooglePrivacyDlpV2beta2CryptoKey `json:"cryptoKey,omitempty"`
3117
3118	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
3119	// unconditionally include in API requests. By default, fields with
3120	// empty values are omitted from API requests. However, any non-pointer,
3121	// non-interface field appearing in ForceSendFields will be sent to the
3122	// server regardless of whether the field is empty or not. This may be
3123	// used to include empty fields in Patch requests.
3124	ForceSendFields []string `json:"-"`
3125
3126	// NullFields is a list of field names (e.g. "CryptoKey") to include in
3127	// API requests with the JSON null value. By default, fields with empty
3128	// values are omitted from API requests. However, any field with an
3129	// empty value appearing in NullFields will be sent to the server as
3130	// null. It is an error if a field in this list has a non-empty value.
3131	// This may be used to include null fields in Patch requests.
3132	NullFields []string `json:"-"`
3133}
3134
3135func (s *GooglePrivacyDlpV2beta2CryptoHashConfig) MarshalJSON() ([]byte, error) {
3136	type NoMethod GooglePrivacyDlpV2beta2CryptoHashConfig
3137	raw := NoMethod(*s)
3138	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3139}
3140
3141// GooglePrivacyDlpV2beta2CryptoKey: This is a data encryption key (DEK)
3142// (as opposed to
3143// a key encryption key (KEK) stored by KMS).
3144// When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
3145// IAM policy on the KMS CryptoKey (KEK) to ensure an attacker
3146// cannot
3147// unwrap the data crypto key.
3148type GooglePrivacyDlpV2beta2CryptoKey struct {
3149	KmsWrapped *GooglePrivacyDlpV2beta2KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
3150
3151	Transient *GooglePrivacyDlpV2beta2TransientCryptoKey `json:"transient,omitempty"`
3152
3153	Unwrapped *GooglePrivacyDlpV2beta2UnwrappedCryptoKey `json:"unwrapped,omitempty"`
3154
3155	// ForceSendFields is a list of field names (e.g. "KmsWrapped") to
3156	// unconditionally include in API requests. By default, fields with
3157	// empty values are omitted from API requests. However, any non-pointer,
3158	// non-interface field appearing in ForceSendFields will be sent to the
3159	// server regardless of whether the field is empty or not. This may be
3160	// used to include empty fields in Patch requests.
3161	ForceSendFields []string `json:"-"`
3162
3163	// NullFields is a list of field names (e.g. "KmsWrapped") to include in
3164	// API requests with the JSON null value. By default, fields with empty
3165	// values are omitted from API requests. However, any field with an
3166	// empty value appearing in NullFields will be sent to the server as
3167	// null. It is an error if a field in this list has a non-empty value.
3168	// This may be used to include null fields in Patch requests.
3169	NullFields []string `json:"-"`
3170}
3171
3172func (s *GooglePrivacyDlpV2beta2CryptoKey) MarshalJSON() ([]byte, error) {
3173	type NoMethod GooglePrivacyDlpV2beta2CryptoKey
3174	raw := NoMethod(*s)
3175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3176}
3177
3178// GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig: Replaces an
3179// identifier with a surrogate using FPE with the FFX
3180// mode of operation; however when used in the `ReidentifyContent` API
3181// method,
3182// it serves the opposite function by reversing the surrogate back
3183// into
3184// the original identifier.
3185// The identifier must be encoded as ASCII.
3186// For a given crypto key and context, the same identifier will
3187// be
3188// replaced with the same surrogate.
3189// Identifiers must be at least two characters long.
3190// In the case that the identifier is the empty string, it will be
3191// skipped.
3192// See [Pseudonymization](/dlp/docs/pseudonymization) for example usage.
3193type GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig struct {
3194	// Possible values:
3195	//   "FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED"
3196	//   "NUMERIC" - [0-9] (radix of 10)
3197	//   "HEXADECIMAL" - [0-9A-F] (radix of 16)
3198	//   "UPPER_CASE_ALPHA_NUMERIC" - [0-9A-Z] (radix of 36)
3199	//   "ALPHA_NUMERIC" - [0-9A-Za-z] (radix of 62)
3200	CommonAlphabet string `json:"commonAlphabet,omitempty"`
3201
3202	// Context: The 'tweak', a context may be used for higher security since
3203	// the same
3204	// identifier in two different contexts won't be given the same
3205	// surrogate. If
3206	// the context is not set, a default tweak will be used.
3207	//
3208	// If the context is set but:
3209	//
3210	// 1. there is no record present when transforming a given value or
3211	// 1. the field is not present when transforming a given value,
3212	//
3213	// a default tweak will be used.
3214	//
3215	// Note that case (1) is expected when an `InfoTypeTransformation`
3216	// is
3217	// applied to both structured and non-structured
3218	// `ContentItem`s.
3219	// Currently, the referenced field may be of value type integer or
3220	// string.
3221	//
3222	// The tweak is constructed as a sequence of bytes in big endian byte
3223	// order
3224	// such that:
3225	//
3226	// - a 64 bit integer is encoded followed by a single byte of value 1
3227	// - a string is encoded in UTF-8 format followed by a single byte of
3228	// value
3229	//  å 2
3230	Context *GooglePrivacyDlpV2beta2FieldId `json:"context,omitempty"`
3231
3232	// CryptoKey: The key used by the encryption algorithm. [required]
3233	CryptoKey *GooglePrivacyDlpV2beta2CryptoKey `json:"cryptoKey,omitempty"`
3234
3235	// CustomAlphabet: This is supported by mapping these to the
3236	// alphanumeric characters
3237	// that the FFX mode natively supports. This happens
3238	// before/after
3239	// encryption/decryption.
3240	// Each character listed must appear only once.
3241	// Number of characters must be in the range [2, 62].
3242	// This must be encoded as ASCII.
3243	// The order of characters does not matter.
3244	CustomAlphabet string `json:"customAlphabet,omitempty"`
3245
3246	// Radix: The native way to select the alphabet. Must be in the range
3247	// [2, 62].
3248	Radix int64 `json:"radix,omitempty"`
3249
3250	// SurrogateInfoType: The custom infoType to annotate the surrogate
3251	// with.
3252	// This annotation will be applied to the surrogate by prefixing it
3253	// with
3254	// the name of the custom infoType followed by the number of
3255	// characters comprising the surrogate. The following scheme defines
3256	// the
3257	// format: info_type_name(surrogate_character_count):surrogate
3258	//
3259	// For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE'
3260	// and
3261	// the surrogate is 'abc', the full replacement value
3262	// will be: 'MY_TOKEN_INFO_TYPE(3):abc'
3263	//
3264	// This annotation identifies the surrogate when inspecting content
3265	// using the
3266	// custom
3267	// infoType
3268	// [`SurrogateType`](/dlp/docs/reference/rest/v2beta2/InspectCon
3269	// fig#surrogatetype).
3270	// This facilitates reversal of the surrogate when it occurs in free
3271	// text.
3272	//
3273	// In order for inspection to work properly, the name of this infoType
3274	// must
3275	// not occur naturally anywhere in your data; otherwise, inspection
3276	// may
3277	// find a surrogate that does not correspond to an actual
3278	// identifier.
3279	// Therefore, choose your custom infoType name carefully after
3280	// considering
3281	// what your data looks like. One way to select a name that has a high
3282	// chance
3283	// of yielding reliable detection is to include one or more unicode
3284	// characters
3285	// that are highly improbable to exist in your data.
3286	// For example, assuming your data is entered from a regular ASCII
3287	// keyboard,
3288	// the symbol with the hex code point 29DD might be used like
3289	// so:
3290	// ⧝MY_TOKEN_TYPE
3291	SurrogateInfoType *GooglePrivacyDlpV2beta2InfoType `json:"surrogateInfoType,omitempty"`
3292
3293	// ForceSendFields is a list of field names (e.g. "CommonAlphabet") to
3294	// unconditionally include in API requests. By default, fields with
3295	// empty values are omitted from API requests. However, any non-pointer,
3296	// non-interface field appearing in ForceSendFields will be sent to the
3297	// server regardless of whether the field is empty or not. This may be
3298	// used to include empty fields in Patch requests.
3299	ForceSendFields []string `json:"-"`
3300
3301	// NullFields is a list of field names (e.g. "CommonAlphabet") to
3302	// include in API requests with the JSON null value. By default, fields
3303	// with empty values are omitted from API requests. However, any field
3304	// with an empty value appearing in NullFields will be sent to the
3305	// server as null. It is an error if a field in this list has a
3306	// non-empty value. This may be used to include null fields in Patch
3307	// requests.
3308	NullFields []string `json:"-"`
3309}
3310
3311func (s *GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig) MarshalJSON() ([]byte, error) {
3312	type NoMethod GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig
3313	raw := NoMethod(*s)
3314	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3315}
3316
3317// GooglePrivacyDlpV2beta2CustomInfoType: Custom information type
3318// provided by the user. Used to find domain-specific
3319// sensitive information configurable to the data in question.
3320type GooglePrivacyDlpV2beta2CustomInfoType struct {
3321	// DetectionRules: Set of detection rules to apply to all findings of
3322	// this custom info type.
3323	// Rules are applied in order that they are specified. Not supported for
3324	// the
3325	// `surrogate_type` custom info type.
3326	DetectionRules []*GooglePrivacyDlpV2beta2DetectionRule `json:"detectionRules,omitempty"`
3327
3328	// Dictionary: Dictionary-based custom info type.
3329	Dictionary *GooglePrivacyDlpV2beta2Dictionary `json:"dictionary,omitempty"`
3330
3331	// InfoType: Info type configuration. All custom info types must have
3332	// configurations
3333	// that do not conflict with built-in info types or other custom info
3334	// types.
3335	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
3336
3337	// Likelihood: Likelihood to return for this custom info type. This base
3338	// value can be
3339	// altered by a detection rule if the finding meets the criteria
3340	// specified by
3341	// the rule. Defaults to `VERY_LIKELY` if not specified.
3342	//
3343	// Possible values:
3344	//   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
3345	// likelihoods is included.
3346	//   "VERY_UNLIKELY" - Few matching elements.
3347	//   "UNLIKELY"
3348	//   "POSSIBLE" - Some matching elements.
3349	//   "LIKELY"
3350	//   "VERY_LIKELY" - Many matching elements.
3351	Likelihood string `json:"likelihood,omitempty"`
3352
3353	// Regex: Regex-based custom info type.
3354	Regex *GooglePrivacyDlpV2beta2Regex `json:"regex,omitempty"`
3355
3356	// SurrogateType: Surrogate info type.
3357	SurrogateType *GooglePrivacyDlpV2beta2SurrogateType `json:"surrogateType,omitempty"`
3358
3359	// ForceSendFields is a list of field names (e.g. "DetectionRules") to
3360	// unconditionally include in API requests. By default, fields with
3361	// empty values are omitted from API requests. However, any non-pointer,
3362	// non-interface field appearing in ForceSendFields will be sent to the
3363	// server regardless of whether the field is empty or not. This may be
3364	// used to include empty fields in Patch requests.
3365	ForceSendFields []string `json:"-"`
3366
3367	// NullFields is a list of field names (e.g. "DetectionRules") to
3368	// include in API requests with the JSON null value. By default, fields
3369	// with empty values are omitted from API requests. However, any field
3370	// with an empty value appearing in NullFields will be sent to the
3371	// server as null. It is an error if a field in this list has a
3372	// non-empty value. This may be used to include null fields in Patch
3373	// requests.
3374	NullFields []string `json:"-"`
3375}
3376
3377func (s *GooglePrivacyDlpV2beta2CustomInfoType) MarshalJSON() ([]byte, error) {
3378	type NoMethod GooglePrivacyDlpV2beta2CustomInfoType
3379	raw := NoMethod(*s)
3380	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3381}
3382
3383// GooglePrivacyDlpV2beta2DatastoreKey: Record key for a finding in
3384// Cloud Datastore.
3385type GooglePrivacyDlpV2beta2DatastoreKey struct {
3386	// EntityKey: Datastore entity key.
3387	EntityKey *GooglePrivacyDlpV2beta2Key `json:"entityKey,omitempty"`
3388
3389	// ForceSendFields is a list of field names (e.g. "EntityKey") to
3390	// unconditionally include in API requests. By default, fields with
3391	// empty values are omitted from API requests. However, any non-pointer,
3392	// non-interface field appearing in ForceSendFields will be sent to the
3393	// server regardless of whether the field is empty or not. This may be
3394	// used to include empty fields in Patch requests.
3395	ForceSendFields []string `json:"-"`
3396
3397	// NullFields is a list of field names (e.g. "EntityKey") to include in
3398	// API requests with the JSON null value. By default, fields with empty
3399	// values are omitted from API requests. However, any field with an
3400	// empty value appearing in NullFields will be sent to the server as
3401	// null. It is an error if a field in this list has a non-empty value.
3402	// This may be used to include null fields in Patch requests.
3403	NullFields []string `json:"-"`
3404}
3405
3406func (s *GooglePrivacyDlpV2beta2DatastoreKey) MarshalJSON() ([]byte, error) {
3407	type NoMethod GooglePrivacyDlpV2beta2DatastoreKey
3408	raw := NoMethod(*s)
3409	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3410}
3411
3412// GooglePrivacyDlpV2beta2DatastoreOptions: Options defining a data set
3413// within Google Cloud Datastore.
3414type GooglePrivacyDlpV2beta2DatastoreOptions struct {
3415	// Kind: The kind to process.
3416	Kind *GooglePrivacyDlpV2beta2KindExpression `json:"kind,omitempty"`
3417
3418	// PartitionId: A partition ID identifies a grouping of entities. The
3419	// grouping is always
3420	// by project and namespace, however the namespace ID may be empty.
3421	PartitionId *GooglePrivacyDlpV2beta2PartitionId `json:"partitionId,omitempty"`
3422
3423	// ForceSendFields is a list of field names (e.g. "Kind") to
3424	// unconditionally include in API requests. By default, fields with
3425	// empty values are omitted from API requests. However, any non-pointer,
3426	// non-interface field appearing in ForceSendFields will be sent to the
3427	// server regardless of whether the field is empty or not. This may be
3428	// used to include empty fields in Patch requests.
3429	ForceSendFields []string `json:"-"`
3430
3431	// NullFields is a list of field names (e.g. "Kind") to include in API
3432	// requests with the JSON null value. By default, fields with empty
3433	// values are omitted from API requests. However, any field with an
3434	// empty value appearing in NullFields will be sent to the server as
3435	// null. It is an error if a field in this list has a non-empty value.
3436	// This may be used to include null fields in Patch requests.
3437	NullFields []string `json:"-"`
3438}
3439
3440func (s *GooglePrivacyDlpV2beta2DatastoreOptions) MarshalJSON() ([]byte, error) {
3441	type NoMethod GooglePrivacyDlpV2beta2DatastoreOptions
3442	raw := NoMethod(*s)
3443	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3444}
3445
3446// GooglePrivacyDlpV2beta2DateShiftConfig: Shifts dates by random number
3447// of days, with option to be consistent for the
3448// same context.
3449type GooglePrivacyDlpV2beta2DateShiftConfig struct {
3450	// Context: Points to the field that contains the context, for example,
3451	// an entity id.
3452	// If set, must also set method. If set, shift will be consistent for
3453	// the
3454	// given context.
3455	Context *GooglePrivacyDlpV2beta2FieldId `json:"context,omitempty"`
3456
3457	// CryptoKey: Causes the shift to be computed based on this key and the
3458	// context. This
3459	// results in the same shift for the same context and crypto_key.
3460	CryptoKey *GooglePrivacyDlpV2beta2CryptoKey `json:"cryptoKey,omitempty"`
3461
3462	// LowerBoundDays: For example, -5 means shift date to at most 5 days
3463	// back in the past.
3464	// [Required]
3465	LowerBoundDays int64 `json:"lowerBoundDays,omitempty"`
3466
3467	// UpperBoundDays: Range of shift in days. Actual shift will be selected
3468	// at random within this
3469	// range (inclusive ends). Negative means shift to earlier in time. Must
3470	// not
3471	// be more than 365250 days (1000 years) each direction.
3472	//
3473	// For example, 3 means shift date to at most 3 days into the
3474	// future.
3475	// [Required]
3476	UpperBoundDays int64 `json:"upperBoundDays,omitempty"`
3477
3478	// ForceSendFields is a list of field names (e.g. "Context") to
3479	// unconditionally include in API requests. By default, fields with
3480	// empty values are omitted from API requests. However, any non-pointer,
3481	// non-interface field appearing in ForceSendFields will be sent to the
3482	// server regardless of whether the field is empty or not. This may be
3483	// used to include empty fields in Patch requests.
3484	ForceSendFields []string `json:"-"`
3485
3486	// NullFields is a list of field names (e.g. "Context") to include in
3487	// API requests with the JSON null value. By default, fields with empty
3488	// values are omitted from API requests. However, any field with an
3489	// empty value appearing in NullFields will be sent to the server as
3490	// null. It is an error if a field in this list has a non-empty value.
3491	// This may be used to include null fields in Patch requests.
3492	NullFields []string `json:"-"`
3493}
3494
3495func (s *GooglePrivacyDlpV2beta2DateShiftConfig) MarshalJSON() ([]byte, error) {
3496	type NoMethod GooglePrivacyDlpV2beta2DateShiftConfig
3497	raw := NoMethod(*s)
3498	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3499}
3500
3501// GooglePrivacyDlpV2beta2DateTime: Message for a date time object.
3502type GooglePrivacyDlpV2beta2DateTime struct {
3503	// Date: One or more of the following must be set. All fields are
3504	// optional, but
3505	// when set must be valid date or time values.
3506	Date *GoogleTypeDate `json:"date,omitempty"`
3507
3508	// Possible values:
3509	//   "DAY_OF_WEEK_UNSPECIFIED" - The unspecified day-of-week.
3510	//   "MONDAY" - The day-of-week of Monday.
3511	//   "TUESDAY" - The day-of-week of Tuesday.
3512	//   "WEDNESDAY" - The day-of-week of Wednesday.
3513	//   "THURSDAY" - The day-of-week of Thursday.
3514	//   "FRIDAY" - The day-of-week of Friday.
3515	//   "SATURDAY" - The day-of-week of Saturday.
3516	//   "SUNDAY" - The day-of-week of Sunday.
3517	DayOfWeek string `json:"dayOfWeek,omitempty"`
3518
3519	Time *GoogleTypeTimeOfDay `json:"time,omitempty"`
3520
3521	TimeZone *GooglePrivacyDlpV2beta2TimeZone `json:"timeZone,omitempty"`
3522
3523	// ForceSendFields is a list of field names (e.g. "Date") to
3524	// unconditionally include in API requests. By default, fields with
3525	// empty values are omitted from API requests. However, any non-pointer,
3526	// non-interface field appearing in ForceSendFields will be sent to the
3527	// server regardless of whether the field is empty or not. This may be
3528	// used to include empty fields in Patch requests.
3529	ForceSendFields []string `json:"-"`
3530
3531	// NullFields is a list of field names (e.g. "Date") to include in API
3532	// requests with the JSON null value. By default, fields with empty
3533	// values are omitted from API requests. However, any field with an
3534	// empty value appearing in NullFields will be sent to the server as
3535	// null. It is an error if a field in this list has a non-empty value.
3536	// This may be used to include null fields in Patch requests.
3537	NullFields []string `json:"-"`
3538}
3539
3540func (s *GooglePrivacyDlpV2beta2DateTime) MarshalJSON() ([]byte, error) {
3541	type NoMethod GooglePrivacyDlpV2beta2DateTime
3542	raw := NoMethod(*s)
3543	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3544}
3545
3546// GooglePrivacyDlpV2beta2DeidentifyConfig: The configuration that
3547// controls how the data will change.
3548type GooglePrivacyDlpV2beta2DeidentifyConfig struct {
3549	// InfoTypeTransformations: Treat the dataset as free-form text and
3550	// apply the same free text
3551	// transformation everywhere.
3552	InfoTypeTransformations *GooglePrivacyDlpV2beta2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
3553
3554	// RecordTransformations: Treat the dataset as structured.
3555	// Transformations can be applied to
3556	// specific locations within structured datasets, such as transforming
3557	// a column within a table.
3558	RecordTransformations *GooglePrivacyDlpV2beta2RecordTransformations `json:"recordTransformations,omitempty"`
3559
3560	// ForceSendFields is a list of field names (e.g.
3561	// "InfoTypeTransformations") to unconditionally include in API
3562	// requests. By default, fields with empty values are omitted from API
3563	// requests. However, any non-pointer, non-interface field appearing in
3564	// ForceSendFields will be sent to the server regardless of whether the
3565	// field is empty or not. This may be used to include empty fields in
3566	// Patch requests.
3567	ForceSendFields []string `json:"-"`
3568
3569	// NullFields is a list of field names (e.g. "InfoTypeTransformations")
3570	// to include in API requests with the JSON null value. By default,
3571	// fields with empty values are omitted from API requests. However, any
3572	// field with an empty value appearing in NullFields will be sent to the
3573	// server as null. It is an error if a field in this list has a
3574	// non-empty value. This may be used to include null fields in Patch
3575	// requests.
3576	NullFields []string `json:"-"`
3577}
3578
3579func (s *GooglePrivacyDlpV2beta2DeidentifyConfig) MarshalJSON() ([]byte, error) {
3580	type NoMethod GooglePrivacyDlpV2beta2DeidentifyConfig
3581	raw := NoMethod(*s)
3582	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3583}
3584
3585// GooglePrivacyDlpV2beta2DeidentifyContentRequest: Request to
3586// de-identify a list of items.
3587type GooglePrivacyDlpV2beta2DeidentifyContentRequest struct {
3588	// DeidentifyConfig: Configuration for the de-identification of the
3589	// content item.
3590	// Items specified here will override the template referenced by
3591	// the
3592	// deidentify_template_name argument.
3593	DeidentifyConfig *GooglePrivacyDlpV2beta2DeidentifyConfig `json:"deidentifyConfig,omitempty"`
3594
3595	// DeidentifyTemplateName: Optional template to use. Any configuration
3596	// directly specified in
3597	// deidentify_config will override those set in the template. Singular
3598	// fields
3599	// that are set in this request will replace their corresponding fields
3600	// in the
3601	// template. Repeated fields are appended. Singular sub-messages and
3602	// groups
3603	// are recursively merged.
3604	DeidentifyTemplateName string `json:"deidentifyTemplateName,omitempty"`
3605
3606	// InspectConfig: Configuration for the inspector.
3607	// Items specified here will override the template referenced by
3608	// the
3609	// inspect_template_name argument.
3610	InspectConfig *GooglePrivacyDlpV2beta2InspectConfig `json:"inspectConfig,omitempty"`
3611
3612	// InspectTemplateName: Optional template to use. Any configuration
3613	// directly specified in
3614	// inspect_config will override those set in the template. Singular
3615	// fields
3616	// that are set in this request will replace their corresponding fields
3617	// in the
3618	// template. Repeated fields are appended. Singular sub-messages and
3619	// groups
3620	// are recursively merged.
3621	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
3622
3623	// Item: The item to de-identify. Will be treated as text.
3624	Item *GooglePrivacyDlpV2beta2ContentItem `json:"item,omitempty"`
3625
3626	// ForceSendFields is a list of field names (e.g. "DeidentifyConfig") to
3627	// unconditionally include in API requests. By default, fields with
3628	// empty values are omitted from API requests. However, any non-pointer,
3629	// non-interface field appearing in ForceSendFields will be sent to the
3630	// server regardless of whether the field is empty or not. This may be
3631	// used to include empty fields in Patch requests.
3632	ForceSendFields []string `json:"-"`
3633
3634	// NullFields is a list of field names (e.g. "DeidentifyConfig") to
3635	// include in API requests with the JSON null value. By default, fields
3636	// with empty values are omitted from API requests. However, any field
3637	// with an empty value appearing in NullFields will be sent to the
3638	// server as null. It is an error if a field in this list has a
3639	// non-empty value. This may be used to include null fields in Patch
3640	// requests.
3641	NullFields []string `json:"-"`
3642}
3643
3644func (s *GooglePrivacyDlpV2beta2DeidentifyContentRequest) MarshalJSON() ([]byte, error) {
3645	type NoMethod GooglePrivacyDlpV2beta2DeidentifyContentRequest
3646	raw := NoMethod(*s)
3647	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3648}
3649
3650// GooglePrivacyDlpV2beta2DeidentifyContentResponse: Results of
3651// de-identifying a ContentItem.
3652type GooglePrivacyDlpV2beta2DeidentifyContentResponse struct {
3653	// Item: The de-identified item.
3654	Item *GooglePrivacyDlpV2beta2ContentItem `json:"item,omitempty"`
3655
3656	// Overview: An overview of the changes that were made on the `item`.
3657	Overview *GooglePrivacyDlpV2beta2TransformationOverview `json:"overview,omitempty"`
3658
3659	// ServerResponse contains the HTTP response code and headers from the
3660	// server.
3661	googleapi.ServerResponse `json:"-"`
3662
3663	// ForceSendFields is a list of field names (e.g. "Item") to
3664	// unconditionally include in API requests. By default, fields with
3665	// empty values are omitted from API requests. However, any non-pointer,
3666	// non-interface field appearing in ForceSendFields will be sent to the
3667	// server regardless of whether the field is empty or not. This may be
3668	// used to include empty fields in Patch requests.
3669	ForceSendFields []string `json:"-"`
3670
3671	// NullFields is a list of field names (e.g. "Item") to include in API
3672	// requests with the JSON null value. By default, fields with empty
3673	// values are omitted from API requests. However, any field with an
3674	// empty value appearing in NullFields will be sent to the server as
3675	// null. It is an error if a field in this list has a non-empty value.
3676	// This may be used to include null fields in Patch requests.
3677	NullFields []string `json:"-"`
3678}
3679
3680func (s *GooglePrivacyDlpV2beta2DeidentifyContentResponse) MarshalJSON() ([]byte, error) {
3681	type NoMethod GooglePrivacyDlpV2beta2DeidentifyContentResponse
3682	raw := NoMethod(*s)
3683	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3684}
3685
3686// GooglePrivacyDlpV2beta2DeidentifyTemplate: The DeidentifyTemplates
3687// contains instructions on how to deidentify content.
3688type GooglePrivacyDlpV2beta2DeidentifyTemplate struct {
3689	// CreateTime: The creation timestamp of a inspectTemplate, output only
3690	// field.
3691	CreateTime string `json:"createTime,omitempty"`
3692
3693	// DeidentifyConfig: ///////////// // The core content of the template
3694	// // ///////////////
3695	DeidentifyConfig *GooglePrivacyDlpV2beta2DeidentifyConfig `json:"deidentifyConfig,omitempty"`
3696
3697	// Description: Short description (max 256 chars).
3698	Description string `json:"description,omitempty"`
3699
3700	// DisplayName: Display name (max 256 chars).
3701	DisplayName string `json:"displayName,omitempty"`
3702
3703	// Name: The template name. Output only.
3704	//
3705	// The template will have one of the following
3706	// formats:
3707	// `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID`
3708	// OR
3709	// `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`
3710	Name string `json:"name,omitempty"`
3711
3712	// UpdateTime: The last update timestamp of a inspectTemplate, output
3713	// only field.
3714	UpdateTime string `json:"updateTime,omitempty"`
3715
3716	// ServerResponse contains the HTTP response code and headers from the
3717	// server.
3718	googleapi.ServerResponse `json:"-"`
3719
3720	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3721	// unconditionally include in API requests. By default, fields with
3722	// empty values are omitted from API requests. However, any non-pointer,
3723	// non-interface field appearing in ForceSendFields will be sent to the
3724	// server regardless of whether the field is empty or not. This may be
3725	// used to include empty fields in Patch requests.
3726	ForceSendFields []string `json:"-"`
3727
3728	// NullFields is a list of field names (e.g. "CreateTime") to include in
3729	// API requests with the JSON null value. By default, fields with empty
3730	// values are omitted from API requests. However, any field with an
3731	// empty value appearing in NullFields will be sent to the server as
3732	// null. It is an error if a field in this list has a non-empty value.
3733	// This may be used to include null fields in Patch requests.
3734	NullFields []string `json:"-"`
3735}
3736
3737func (s *GooglePrivacyDlpV2beta2DeidentifyTemplate) MarshalJSON() ([]byte, error) {
3738	type NoMethod GooglePrivacyDlpV2beta2DeidentifyTemplate
3739	raw := NoMethod(*s)
3740	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3741}
3742
3743// GooglePrivacyDlpV2beta2DetectionRule: Rule for modifying a custom
3744// info type to alter behavior under certain
3745// circumstances, depending on the specific details of the rule. Not
3746// supported
3747// for the `surrogate_type` custom info type.
3748type GooglePrivacyDlpV2beta2DetectionRule struct {
3749	// HotwordRule: Hotword-based detection rule.
3750	HotwordRule *GooglePrivacyDlpV2beta2HotwordRule `json:"hotwordRule,omitempty"`
3751
3752	// ForceSendFields is a list of field names (e.g. "HotwordRule") to
3753	// unconditionally include in API requests. By default, fields with
3754	// empty values are omitted from API requests. However, any non-pointer,
3755	// non-interface field appearing in ForceSendFields will be sent to the
3756	// server regardless of whether the field is empty or not. This may be
3757	// used to include empty fields in Patch requests.
3758	ForceSendFields []string `json:"-"`
3759
3760	// NullFields is a list of field names (e.g. "HotwordRule") to include
3761	// in API requests with the JSON null value. By default, fields with
3762	// empty values are omitted from API requests. However, any field with
3763	// an empty value appearing in NullFields will be sent to the server as
3764	// null. It is an error if a field in this list has a non-empty value.
3765	// This may be used to include null fields in Patch requests.
3766	NullFields []string `json:"-"`
3767}
3768
3769func (s *GooglePrivacyDlpV2beta2DetectionRule) MarshalJSON() ([]byte, error) {
3770	type NoMethod GooglePrivacyDlpV2beta2DetectionRule
3771	raw := NoMethod(*s)
3772	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3773}
3774
3775// GooglePrivacyDlpV2beta2Dictionary: Custom information type based on a
3776// dictionary of words or phrases. This can
3777// be used to match sensitive information specific to the data, such as
3778// a list
3779// of employee IDs or job titles.
3780//
3781// Dictionary words are case-insensitive and all characters other than
3782// letters
3783// and digits in the unicode [Basic
3784// Multilingual
3785// Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
3786// Basic_Multilingual_Plane)
3787// will be replaced with whitespace when scanning for matches, so
3788// the
3789// dictionary phrase "Sam Johnson" will match all three phrases "sam
3790// johnson",
3791// "Sam, Johnson", and "Sam (Johnson)". Additionally, the
3792// characters
3793// surrounding any match must be of a different type than the
3794// adjacent
3795// characters within the word, so letters must be next to non-letters
3796// and
3797// digits next to non-digits. For example, the dictionary word "jen"
3798// will
3799// match the first three letters of the text "jen123" but will return
3800// no
3801// matches for "jennifer".
3802//
3803// Dictionary words containing a large number of characters that are
3804// not
3805// letters or digits may result in unexpected findings because such
3806// characters
3807// are treated as whitespace.
3808type GooglePrivacyDlpV2beta2Dictionary struct {
3809	// WordList: List of words or phrases to search for.
3810	WordList *GooglePrivacyDlpV2beta2WordList `json:"wordList,omitempty"`
3811
3812	// ForceSendFields is a list of field names (e.g. "WordList") to
3813	// unconditionally include in API requests. By default, fields with
3814	// empty values are omitted from API requests. However, any non-pointer,
3815	// non-interface field appearing in ForceSendFields will be sent to the
3816	// server regardless of whether the field is empty or not. This may be
3817	// used to include empty fields in Patch requests.
3818	ForceSendFields []string `json:"-"`
3819
3820	// NullFields is a list of field names (e.g. "WordList") to include in
3821	// API requests with the JSON null value. By default, fields with empty
3822	// values are omitted from API requests. However, any field with an
3823	// empty value appearing in NullFields will be sent to the server as
3824	// null. It is an error if a field in this list has a non-empty value.
3825	// This may be used to include null fields in Patch requests.
3826	NullFields []string `json:"-"`
3827}
3828
3829func (s *GooglePrivacyDlpV2beta2Dictionary) MarshalJSON() ([]byte, error) {
3830	type NoMethod GooglePrivacyDlpV2beta2Dictionary
3831	raw := NoMethod(*s)
3832	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3833}
3834
3835// GooglePrivacyDlpV2beta2DlpJob: Combines all of the information about
3836// a DLP job.
3837type GooglePrivacyDlpV2beta2DlpJob struct {
3838	// CreateTime: Time when the job was created.
3839	CreateTime string `json:"createTime,omitempty"`
3840
3841	// EndTime: Time when the job finished.
3842	EndTime string `json:"endTime,omitempty"`
3843
3844	// ErrorResults: A stream of errors encountered running the job.
3845	ErrorResults []*GoogleRpcStatus `json:"errorResults,omitempty"`
3846
3847	// InspectDetails: Results from inspecting a data source.
3848	InspectDetails *GooglePrivacyDlpV2beta2InspectDataSourceDetails `json:"inspectDetails,omitempty"`
3849
3850	// JobTriggerName: If created by a job trigger, the resource name of the
3851	// trigger that
3852	// instantiated the job.
3853	JobTriggerName string `json:"jobTriggerName,omitempty"`
3854
3855	// Name: The server-assigned name.
3856	Name string `json:"name,omitempty"`
3857
3858	// RiskDetails: Results from analyzing risk of a data source.
3859	RiskDetails *GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails `json:"riskDetails,omitempty"`
3860
3861	// StartTime: Time when the job started.
3862	StartTime string `json:"startTime,omitempty"`
3863
3864	// State: State of a job.
3865	//
3866	// Possible values:
3867	//   "JOB_STATE_UNSPECIFIED"
3868	//   "PENDING" - The job has not yet started.
3869	//   "RUNNING" - The job is currently running.
3870	//   "DONE" - The job is no longer running.
3871	//   "CANCELED" - The job was canceled before it could complete.
3872	//   "FAILED" - The job had an error and did not complete.
3873	State string `json:"state,omitempty"`
3874
3875	// Type: The type of job.
3876	//
3877	// Possible values:
3878	//   "DLP_JOB_TYPE_UNSPECIFIED"
3879	//   "INSPECT_JOB" - The job inspected Google Cloud for sensitive data.
3880	//   "RISK_ANALYSIS_JOB" - The job executed a Risk Analysis computation.
3881	Type string `json:"type,omitempty"`
3882
3883	// ServerResponse contains the HTTP response code and headers from the
3884	// server.
3885	googleapi.ServerResponse `json:"-"`
3886
3887	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3888	// unconditionally include in API requests. By default, fields with
3889	// empty values are omitted from API requests. However, any non-pointer,
3890	// non-interface field appearing in ForceSendFields will be sent to the
3891	// server regardless of whether the field is empty or not. This may be
3892	// used to include empty fields in Patch requests.
3893	ForceSendFields []string `json:"-"`
3894
3895	// NullFields is a list of field names (e.g. "CreateTime") to include in
3896	// API requests with the JSON null value. By default, fields with empty
3897	// values are omitted from API requests. However, any field with an
3898	// empty value appearing in NullFields will be sent to the server as
3899	// null. It is an error if a field in this list has a non-empty value.
3900	// This may be used to include null fields in Patch requests.
3901	NullFields []string `json:"-"`
3902}
3903
3904func (s *GooglePrivacyDlpV2beta2DlpJob) MarshalJSON() ([]byte, error) {
3905	type NoMethod GooglePrivacyDlpV2beta2DlpJob
3906	raw := NoMethod(*s)
3907	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3908}
3909
3910// GooglePrivacyDlpV2beta2EntityId: An entity in a dataset is a field or
3911// set of fields that correspond to a
3912// single person. For example, in medical records the `EntityId` might
3913// be
3914// a patient identifier, or for financial records it might be an
3915// account
3916// identifier. This message is used when generalizations or analysis
3917// must be
3918// consistent across multiple rows pertaining to the same entity.
3919type GooglePrivacyDlpV2beta2EntityId struct {
3920	// Field: Composite key indicating which field contains the entity
3921	// identifier.
3922	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
3923
3924	// ForceSendFields is a list of field names (e.g. "Field") to
3925	// unconditionally include in API requests. By default, fields with
3926	// empty values are omitted from API requests. However, any non-pointer,
3927	// non-interface field appearing in ForceSendFields will be sent to the
3928	// server regardless of whether the field is empty or not. This may be
3929	// used to include empty fields in Patch requests.
3930	ForceSendFields []string `json:"-"`
3931
3932	// NullFields is a list of field names (e.g. "Field") to include in API
3933	// requests with the JSON null value. By default, fields with empty
3934	// values are omitted from API requests. However, any field with an
3935	// empty value appearing in NullFields will be sent to the server as
3936	// null. It is an error if a field in this list has a non-empty value.
3937	// This may be used to include null fields in Patch requests.
3938	NullFields []string `json:"-"`
3939}
3940
3941func (s *GooglePrivacyDlpV2beta2EntityId) MarshalJSON() ([]byte, error) {
3942	type NoMethod GooglePrivacyDlpV2beta2EntityId
3943	raw := NoMethod(*s)
3944	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3945}
3946
3947// GooglePrivacyDlpV2beta2Error: The results of an unsuccessful
3948// activation of the JobTrigger.
3949type GooglePrivacyDlpV2beta2Error struct {
3950	Details *GoogleRpcStatus `json:"details,omitempty"`
3951
3952	// Timestamps: The times the error occurred.
3953	Timestamps []string `json:"timestamps,omitempty"`
3954
3955	// ForceSendFields is a list of field names (e.g. "Details") to
3956	// unconditionally include in API requests. By default, fields with
3957	// empty values are omitted from API requests. However, any non-pointer,
3958	// non-interface field appearing in ForceSendFields will be sent to the
3959	// server regardless of whether the field is empty or not. This may be
3960	// used to include empty fields in Patch requests.
3961	ForceSendFields []string `json:"-"`
3962
3963	// NullFields is a list of field names (e.g. "Details") to include in
3964	// API requests with the JSON null value. By default, fields with empty
3965	// values are omitted from API requests. However, any field with an
3966	// empty value appearing in NullFields will be sent to the server as
3967	// null. It is an error if a field in this list has a non-empty value.
3968	// This may be used to include null fields in Patch requests.
3969	NullFields []string `json:"-"`
3970}
3971
3972func (s *GooglePrivacyDlpV2beta2Error) MarshalJSON() ([]byte, error) {
3973	type NoMethod GooglePrivacyDlpV2beta2Error
3974	raw := NoMethod(*s)
3975	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3976}
3977
3978// GooglePrivacyDlpV2beta2Expressions: An expression, consisting or an
3979// operator and conditions.
3980type GooglePrivacyDlpV2beta2Expressions struct {
3981	Conditions *GooglePrivacyDlpV2beta2Conditions `json:"conditions,omitempty"`
3982
3983	// LogicalOperator: The operator to apply to the result of conditions.
3984	// Default and currently
3985	// only supported value is `AND`.
3986	//
3987	// Possible values:
3988	//   "LOGICAL_OPERATOR_UNSPECIFIED"
3989	//   "AND"
3990	LogicalOperator string `json:"logicalOperator,omitempty"`
3991
3992	// ForceSendFields is a list of field names (e.g. "Conditions") to
3993	// unconditionally include in API requests. By default, fields with
3994	// empty values are omitted from API requests. However, any non-pointer,
3995	// non-interface field appearing in ForceSendFields will be sent to the
3996	// server regardless of whether the field is empty or not. This may be
3997	// used to include empty fields in Patch requests.
3998	ForceSendFields []string `json:"-"`
3999
4000	// NullFields is a list of field names (e.g. "Conditions") to include in
4001	// API requests with the JSON null value. By default, fields with empty
4002	// values are omitted from API requests. However, any field with an
4003	// empty value appearing in NullFields will be sent to the server as
4004	// null. It is an error if a field in this list has a non-empty value.
4005	// This may be used to include null fields in Patch requests.
4006	NullFields []string `json:"-"`
4007}
4008
4009func (s *GooglePrivacyDlpV2beta2Expressions) MarshalJSON() ([]byte, error) {
4010	type NoMethod GooglePrivacyDlpV2beta2Expressions
4011	raw := NoMethod(*s)
4012	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4013}
4014
4015// GooglePrivacyDlpV2beta2FieldId: General identifier of a data field in
4016// a storage service.
4017type GooglePrivacyDlpV2beta2FieldId struct {
4018	// Name: Name describing the field.
4019	Name string `json:"name,omitempty"`
4020
4021	// ForceSendFields is a list of field names (e.g. "Name") to
4022	// unconditionally include in API requests. By default, fields with
4023	// empty values are omitted from API requests. However, any non-pointer,
4024	// non-interface field appearing in ForceSendFields will be sent to the
4025	// server regardless of whether the field is empty or not. This may be
4026	// used to include empty fields in Patch requests.
4027	ForceSendFields []string `json:"-"`
4028
4029	// NullFields is a list of field names (e.g. "Name") to include in API
4030	// requests with the JSON null value. By default, fields with empty
4031	// values are omitted from API requests. However, any field with an
4032	// empty value appearing in NullFields will be sent to the server as
4033	// null. It is an error if a field in this list has a non-empty value.
4034	// This may be used to include null fields in Patch requests.
4035	NullFields []string `json:"-"`
4036}
4037
4038func (s *GooglePrivacyDlpV2beta2FieldId) MarshalJSON() ([]byte, error) {
4039	type NoMethod GooglePrivacyDlpV2beta2FieldId
4040	raw := NoMethod(*s)
4041	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4042}
4043
4044// GooglePrivacyDlpV2beta2FieldTransformation: The transformation to
4045// apply to the field.
4046type GooglePrivacyDlpV2beta2FieldTransformation struct {
4047	// Condition: Only apply the transformation if the condition evaluates
4048	// to true for the
4049	// given `RecordCondition`. The conditions are allowed to reference
4050	// fields
4051	// that are not used in the actual transformation. [optional]
4052	//
4053	// Example Use Cases:
4054	//
4055	// - Apply a different bucket transformation to an age column if the zip
4056	// code
4057	// column for the same record is within a specific range.
4058	// - Redact a field if the date of birth field is greater than 85.
4059	Condition *GooglePrivacyDlpV2beta2RecordCondition `json:"condition,omitempty"`
4060
4061	// Fields: Input field(s) to apply the transformation to. [required]
4062	Fields []*GooglePrivacyDlpV2beta2FieldId `json:"fields,omitempty"`
4063
4064	// InfoTypeTransformations: Treat the contents of the field as free
4065	// text, and selectively
4066	// transform content that matches an `InfoType`.
4067	InfoTypeTransformations *GooglePrivacyDlpV2beta2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
4068
4069	// PrimitiveTransformation: Apply the transformation to the entire
4070	// field.
4071	PrimitiveTransformation *GooglePrivacyDlpV2beta2PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
4072
4073	// ForceSendFields is a list of field names (e.g. "Condition") to
4074	// unconditionally include in API requests. By default, fields with
4075	// empty values are omitted from API requests. However, any non-pointer,
4076	// non-interface field appearing in ForceSendFields will be sent to the
4077	// server regardless of whether the field is empty or not. This may be
4078	// used to include empty fields in Patch requests.
4079	ForceSendFields []string `json:"-"`
4080
4081	// NullFields is a list of field names (e.g. "Condition") to include in
4082	// API requests with the JSON null value. By default, fields with empty
4083	// values are omitted from API requests. However, any field with an
4084	// empty value appearing in NullFields will be sent to the server as
4085	// null. It is an error if a field in this list has a non-empty value.
4086	// This may be used to include null fields in Patch requests.
4087	NullFields []string `json:"-"`
4088}
4089
4090func (s *GooglePrivacyDlpV2beta2FieldTransformation) MarshalJSON() ([]byte, error) {
4091	type NoMethod GooglePrivacyDlpV2beta2FieldTransformation
4092	raw := NoMethod(*s)
4093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4094}
4095
4096// GooglePrivacyDlpV2beta2FileSet: Set of files to scan.
4097type GooglePrivacyDlpV2beta2FileSet struct {
4098	// Url: The url, in the format `gs://<bucket>/<path>`. Trailing wildcard
4099	// in the
4100	// path is allowed.
4101	Url string `json:"url,omitempty"`
4102
4103	// ForceSendFields is a list of field names (e.g. "Url") to
4104	// unconditionally include in API requests. By default, fields with
4105	// empty values are omitted from API requests. However, any non-pointer,
4106	// non-interface field appearing in ForceSendFields will be sent to the
4107	// server regardless of whether the field is empty or not. This may be
4108	// used to include empty fields in Patch requests.
4109	ForceSendFields []string `json:"-"`
4110
4111	// NullFields is a list of field names (e.g. "Url") to include in API
4112	// requests with the JSON null value. By default, fields with empty
4113	// values are omitted from API requests. However, any field with an
4114	// empty value appearing in NullFields will be sent to the server as
4115	// null. It is an error if a field in this list has a non-empty value.
4116	// This may be used to include null fields in Patch requests.
4117	NullFields []string `json:"-"`
4118}
4119
4120func (s *GooglePrivacyDlpV2beta2FileSet) MarshalJSON() ([]byte, error) {
4121	type NoMethod GooglePrivacyDlpV2beta2FileSet
4122	raw := NoMethod(*s)
4123	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4124}
4125
4126// GooglePrivacyDlpV2beta2Finding: Represents a piece of potentially
4127// sensitive content.
4128type GooglePrivacyDlpV2beta2Finding struct {
4129	// CreateTime: Timestamp when finding was detected.
4130	CreateTime string `json:"createTime,omitempty"`
4131
4132	// InfoType: The type of content that might have been found.
4133	// Provided if requested by the `InspectConfig`.
4134	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
4135
4136	// Likelihood: Estimate of how likely it is that the `info_type` is
4137	// correct.
4138	//
4139	// Possible values:
4140	//   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
4141	// likelihoods is included.
4142	//   "VERY_UNLIKELY" - Few matching elements.
4143	//   "UNLIKELY"
4144	//   "POSSIBLE" - Some matching elements.
4145	//   "LIKELY"
4146	//   "VERY_LIKELY" - Many matching elements.
4147	Likelihood string `json:"likelihood,omitempty"`
4148
4149	// Location: Where the content was found.
4150	Location *GooglePrivacyDlpV2beta2Location `json:"location,omitempty"`
4151
4152	// Quote: The content that was found. Even if the content is not
4153	// textual, it
4154	// may be converted to a textual representation here.
4155	// Provided if requested by the `InspectConfig` and the finding is
4156	// less than or equal to 4096 bytes long. If the finding exceeds 4096
4157	// bytes
4158	// in length, the quote may be omitted.
4159	Quote string `json:"quote,omitempty"`
4160
4161	// QuoteInfo: Contains data parsed from quotes. Only populated if
4162	// include_quote was set
4163	// to true and a supported infoType was requested. Currently
4164	// supported
4165	// infoTypes: DATE, DATE_OF_BIRTH and TIME.
4166	QuoteInfo *GooglePrivacyDlpV2beta2QuoteInfo `json:"quoteInfo,omitempty"`
4167
4168	// ForceSendFields is a list of field names (e.g. "CreateTime") to
4169	// unconditionally include in API requests. By default, fields with
4170	// empty values are omitted from API requests. However, any non-pointer,
4171	// non-interface field appearing in ForceSendFields will be sent to the
4172	// server regardless of whether the field is empty or not. This may be
4173	// used to include empty fields in Patch requests.
4174	ForceSendFields []string `json:"-"`
4175
4176	// NullFields is a list of field names (e.g. "CreateTime") to include in
4177	// API requests with the JSON null value. By default, fields with empty
4178	// values are omitted from API requests. However, any field with an
4179	// empty value appearing in NullFields will be sent to the server as
4180	// null. It is an error if a field in this list has a non-empty value.
4181	// This may be used to include null fields in Patch requests.
4182	NullFields []string `json:"-"`
4183}
4184
4185func (s *GooglePrivacyDlpV2beta2Finding) MarshalJSON() ([]byte, error) {
4186	type NoMethod GooglePrivacyDlpV2beta2Finding
4187	raw := NoMethod(*s)
4188	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4189}
4190
4191type GooglePrivacyDlpV2beta2FindingLimits struct {
4192	// MaxFindingsPerInfoType: Configuration of findings limit given for
4193	// specified infoTypes.
4194	MaxFindingsPerInfoType []*GooglePrivacyDlpV2beta2InfoTypeLimit `json:"maxFindingsPerInfoType,omitempty"`
4195
4196	// MaxFindingsPerItem: Max number of findings that will be returned for
4197	// each item scanned.
4198	// When set within `InspectDataSourceRequest`,
4199	// the maximum returned is 1000 regardless if this is set higher.
4200	// When set within `InspectContentRequest`, this field is ignored.
4201	MaxFindingsPerItem int64 `json:"maxFindingsPerItem,omitempty"`
4202
4203	// MaxFindingsPerRequest: Max number of findings that will be returned
4204	// per request/job.
4205	// When set within `InspectContentRequest`, the maximum returned is
4206	// 1000
4207	// regardless if this is set higher.
4208	MaxFindingsPerRequest int64 `json:"maxFindingsPerRequest,omitempty"`
4209
4210	// ForceSendFields is a list of field names (e.g.
4211	// "MaxFindingsPerInfoType") to unconditionally include in API requests.
4212	// By default, fields with empty values are omitted from API requests.
4213	// However, any non-pointer, non-interface field appearing in
4214	// ForceSendFields will be sent to the server regardless of whether the
4215	// field is empty or not. This may be used to include empty fields in
4216	// Patch requests.
4217	ForceSendFields []string `json:"-"`
4218
4219	// NullFields is a list of field names (e.g. "MaxFindingsPerInfoType")
4220	// to include in API requests with the JSON null value. By default,
4221	// fields with empty values are omitted from API requests. However, any
4222	// field with an empty value appearing in NullFields will be sent to the
4223	// server as null. It is an error if a field in this list has a
4224	// non-empty value. This may be used to include null fields in Patch
4225	// requests.
4226	NullFields []string `json:"-"`
4227}
4228
4229func (s *GooglePrivacyDlpV2beta2FindingLimits) MarshalJSON() ([]byte, error) {
4230	type NoMethod GooglePrivacyDlpV2beta2FindingLimits
4231	raw := NoMethod(*s)
4232	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4233}
4234
4235// GooglePrivacyDlpV2beta2FixedSizeBucketingConfig: Buckets values based
4236// on fixed size ranges. The
4237// Bucketing transformation can provide all of this functionality,
4238// but requires more configuration. This message is provided as a
4239// convenience to
4240// the user for simple bucketing strategies.
4241//
4242// The transformed value will be a hyphenated string
4243// of
4244// <lower_bound>-<upper_bound>, i.e if lower_bound = 10 and upper_bound
4245// = 20
4246// all values that are within this bucket will be replaced with
4247// "10-20".
4248//
4249// This can be used on data of type: double, long.
4250//
4251// If the bound Value type differs from the type of data
4252// being transformed, we will first attempt converting the type of the
4253// data to
4254// be transformed to match the type of the bound before comparing.
4255type GooglePrivacyDlpV2beta2FixedSizeBucketingConfig struct {
4256	// BucketSize: Size of each bucket (except for minimum and maximum
4257	// buckets). So if
4258	// `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then
4259	// the
4260	// following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50,
4261	// 50-60,
4262	// 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
4263	// [Required].
4264	BucketSize float64 `json:"bucketSize,omitempty"`
4265
4266	// LowerBound: Lower bound value of buckets. All values less than
4267	// `lower_bound` are
4268	// grouped together into a single bucket; for example if `lower_bound` =
4269	// 10,
4270	// then all values less than 10 are replaced with the value “-10”.
4271	// [Required].
4272	LowerBound *GooglePrivacyDlpV2beta2Value `json:"lowerBound,omitempty"`
4273
4274	// UpperBound: Upper bound value of buckets. All values greater than
4275	// upper_bound are
4276	// grouped together into a single bucket; for example if `upper_bound` =
4277	// 89,
4278	// then all values greater than 89 are replaced with the value
4279	// “89+”.
4280	// [Required].
4281	UpperBound *GooglePrivacyDlpV2beta2Value `json:"upperBound,omitempty"`
4282
4283	// ForceSendFields is a list of field names (e.g. "BucketSize") to
4284	// unconditionally include in API requests. By default, fields with
4285	// empty values are omitted from API requests. However, any non-pointer,
4286	// non-interface field appearing in ForceSendFields will be sent to the
4287	// server regardless of whether the field is empty or not. This may be
4288	// used to include empty fields in Patch requests.
4289	ForceSendFields []string `json:"-"`
4290
4291	// NullFields is a list of field names (e.g. "BucketSize") to include in
4292	// API requests with the JSON null value. By default, fields with empty
4293	// values are omitted from API requests. However, any field with an
4294	// empty value appearing in NullFields will be sent to the server as
4295	// null. It is an error if a field in this list has a non-empty value.
4296	// This may be used to include null fields in Patch requests.
4297	NullFields []string `json:"-"`
4298}
4299
4300func (s *GooglePrivacyDlpV2beta2FixedSizeBucketingConfig) MarshalJSON() ([]byte, error) {
4301	type NoMethod GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
4302	raw := NoMethod(*s)
4303	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4304}
4305
4306func (s *GooglePrivacyDlpV2beta2FixedSizeBucketingConfig) UnmarshalJSON(data []byte) error {
4307	type NoMethod GooglePrivacyDlpV2beta2FixedSizeBucketingConfig
4308	var s1 struct {
4309		BucketSize gensupport.JSONFloat64 `json:"bucketSize"`
4310		*NoMethod
4311	}
4312	s1.NoMethod = (*NoMethod)(s)
4313	if err := json.Unmarshal(data, &s1); err != nil {
4314		return err
4315	}
4316	s.BucketSize = float64(s1.BucketSize)
4317	return nil
4318}
4319
4320// GooglePrivacyDlpV2beta2HotwordRule: Detection rule that adjusts the
4321// likelihood of findings within a certain
4322// proximity of hotwords.
4323type GooglePrivacyDlpV2beta2HotwordRule struct {
4324	// HotwordRegex: Regex pattern defining what qualifies as a hotword.
4325	HotwordRegex *GooglePrivacyDlpV2beta2Regex `json:"hotwordRegex,omitempty"`
4326
4327	// LikelihoodAdjustment: Likelihood adjustment to apply to all matching
4328	// findings.
4329	LikelihoodAdjustment *GooglePrivacyDlpV2beta2LikelihoodAdjustment `json:"likelihoodAdjustment,omitempty"`
4330
4331	// Proximity: Proximity of the finding within which the entire hotword
4332	// must reside.
4333	// The total length of the window cannot exceed 1000 characters. Note
4334	// that
4335	// the finding itself will be included in the window, so that hotwords
4336	// may
4337	// be used to match substrings of the finding itself. For example,
4338	// the
4339	// certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could
4340	// be
4341	// adjusted upwards if the area code is known to be the local area code
4342	// of
4343	// a company office using the hotword regex "\(xxx\)", where "xxx"
4344	// is the area code in question.
4345	Proximity *GooglePrivacyDlpV2beta2Proximity `json:"proximity,omitempty"`
4346
4347	// ForceSendFields is a list of field names (e.g. "HotwordRegex") to
4348	// unconditionally include in API requests. By default, fields with
4349	// empty values are omitted from API requests. However, any non-pointer,
4350	// non-interface field appearing in ForceSendFields will be sent to the
4351	// server regardless of whether the field is empty or not. This may be
4352	// used to include empty fields in Patch requests.
4353	ForceSendFields []string `json:"-"`
4354
4355	// NullFields is a list of field names (e.g. "HotwordRegex") to include
4356	// in API requests with the JSON null value. By default, fields with
4357	// empty values are omitted from API requests. However, any field with
4358	// an empty value appearing in NullFields will be sent to the server as
4359	// null. It is an error if a field in this list has a non-empty value.
4360	// This may be used to include null fields in Patch requests.
4361	NullFields []string `json:"-"`
4362}
4363
4364func (s *GooglePrivacyDlpV2beta2HotwordRule) MarshalJSON() ([]byte, error) {
4365	type NoMethod GooglePrivacyDlpV2beta2HotwordRule
4366	raw := NoMethod(*s)
4367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4368}
4369
4370// GooglePrivacyDlpV2beta2ImageLocation: Bounding box encompassing
4371// detected text within an image.
4372type GooglePrivacyDlpV2beta2ImageLocation struct {
4373	// Height: Height of the bounding box in pixels.
4374	Height int64 `json:"height,omitempty"`
4375
4376	// Left: Left coordinate of the bounding box. (0,0) is upper left.
4377	Left int64 `json:"left,omitempty"`
4378
4379	// Top: Top coordinate of the bounding box. (0,0) is upper left.
4380	Top int64 `json:"top,omitempty"`
4381
4382	// Width: Width of the bounding box in pixels.
4383	Width int64 `json:"width,omitempty"`
4384
4385	// ForceSendFields is a list of field names (e.g. "Height") to
4386	// unconditionally include in API requests. By default, fields with
4387	// empty values are omitted from API requests. However, any non-pointer,
4388	// non-interface field appearing in ForceSendFields will be sent to the
4389	// server regardless of whether the field is empty or not. This may be
4390	// used to include empty fields in Patch requests.
4391	ForceSendFields []string `json:"-"`
4392
4393	// NullFields is a list of field names (e.g. "Height") to include in API
4394	// requests with the JSON null value. By default, fields with empty
4395	// values are omitted from API requests. However, any field with an
4396	// empty value appearing in NullFields will be sent to the server as
4397	// null. It is an error if a field in this list has a non-empty value.
4398	// This may be used to include null fields in Patch requests.
4399	NullFields []string `json:"-"`
4400}
4401
4402func (s *GooglePrivacyDlpV2beta2ImageLocation) MarshalJSON() ([]byte, error) {
4403	type NoMethod GooglePrivacyDlpV2beta2ImageLocation
4404	raw := NoMethod(*s)
4405	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4406}
4407
4408// GooglePrivacyDlpV2beta2ImageRedactionConfig: Configuration for
4409// determining how redaction of images should occur.
4410type GooglePrivacyDlpV2beta2ImageRedactionConfig struct {
4411	// InfoType: Only one per info_type should be provided per request. If
4412	// not
4413	// specified, and redact_all_text is false, the DLP API will redact
4414	// all
4415	// text that it matches against all info_types that are found, but
4416	// not
4417	// specified in another ImageRedactionConfig.
4418	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
4419
4420	// RedactAllText: If true, all text found in the image, regardless
4421	// whether it matches an
4422	// info_type, is redacted.
4423	RedactAllText bool `json:"redactAllText,omitempty"`
4424
4425	// RedactionColor: The color to use when redacting content from an
4426	// image. If not specified,
4427	// the default is black.
4428	RedactionColor *GooglePrivacyDlpV2beta2Color `json:"redactionColor,omitempty"`
4429
4430	// ForceSendFields is a list of field names (e.g. "InfoType") to
4431	// unconditionally include in API requests. By default, fields with
4432	// empty values are omitted from API requests. However, any non-pointer,
4433	// non-interface field appearing in ForceSendFields will be sent to the
4434	// server regardless of whether the field is empty or not. This may be
4435	// used to include empty fields in Patch requests.
4436	ForceSendFields []string `json:"-"`
4437
4438	// NullFields is a list of field names (e.g. "InfoType") to include in
4439	// API requests with the JSON null value. By default, fields with empty
4440	// values are omitted from API requests. However, any field with an
4441	// empty value appearing in NullFields will be sent to the server as
4442	// null. It is an error if a field in this list has a non-empty value.
4443	// This may be used to include null fields in Patch requests.
4444	NullFields []string `json:"-"`
4445}
4446
4447func (s *GooglePrivacyDlpV2beta2ImageRedactionConfig) MarshalJSON() ([]byte, error) {
4448	type NoMethod GooglePrivacyDlpV2beta2ImageRedactionConfig
4449	raw := NoMethod(*s)
4450	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4451}
4452
4453// GooglePrivacyDlpV2beta2InfoType: Type of information detected by the
4454// API.
4455type GooglePrivacyDlpV2beta2InfoType struct {
4456	// Name: Name of the information type.
4457	Name string `json:"name,omitempty"`
4458
4459	// ForceSendFields is a list of field names (e.g. "Name") to
4460	// unconditionally include in API requests. By default, fields with
4461	// empty values are omitted from API requests. However, any non-pointer,
4462	// non-interface field appearing in ForceSendFields will be sent to the
4463	// server regardless of whether the field is empty or not. This may be
4464	// used to include empty fields in Patch requests.
4465	ForceSendFields []string `json:"-"`
4466
4467	// NullFields is a list of field names (e.g. "Name") to include in API
4468	// requests with the JSON null value. By default, fields with empty
4469	// values are omitted from API requests. However, any field with an
4470	// empty value appearing in NullFields will be sent to the server as
4471	// null. It is an error if a field in this list has a non-empty value.
4472	// This may be used to include null fields in Patch requests.
4473	NullFields []string `json:"-"`
4474}
4475
4476func (s *GooglePrivacyDlpV2beta2InfoType) MarshalJSON() ([]byte, error) {
4477	type NoMethod GooglePrivacyDlpV2beta2InfoType
4478	raw := NoMethod(*s)
4479	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4480}
4481
4482// GooglePrivacyDlpV2beta2InfoTypeDescription: InfoType description.
4483type GooglePrivacyDlpV2beta2InfoTypeDescription struct {
4484	// DisplayName: Human readable form of the infoType name.
4485	DisplayName string `json:"displayName,omitempty"`
4486
4487	// Name: Internal name of the infoType.
4488	Name string `json:"name,omitempty"`
4489
4490	// SupportedBy: Which parts of the API supports this InfoType.
4491	//
4492	// Possible values:
4493	//   "ENUM_TYPE_UNSPECIFIED"
4494	//   "INSPECT" - Supported by the inspect operations.
4495	//   "RISK_ANALYSIS" - Supported by the risk analysis operations.
4496	SupportedBy []string `json:"supportedBy,omitempty"`
4497
4498	// ForceSendFields is a list of field names (e.g. "DisplayName") to
4499	// unconditionally include in API requests. By default, fields with
4500	// empty values are omitted from API requests. However, any non-pointer,
4501	// non-interface field appearing in ForceSendFields will be sent to the
4502	// server regardless of whether the field is empty or not. This may be
4503	// used to include empty fields in Patch requests.
4504	ForceSendFields []string `json:"-"`
4505
4506	// NullFields is a list of field names (e.g. "DisplayName") to include
4507	// in API requests with the JSON null value. By default, fields with
4508	// empty values are omitted from API requests. However, any field with
4509	// an empty value appearing in NullFields will be sent to the server as
4510	// null. It is an error if a field in this list has a non-empty value.
4511	// This may be used to include null fields in Patch requests.
4512	NullFields []string `json:"-"`
4513}
4514
4515func (s *GooglePrivacyDlpV2beta2InfoTypeDescription) MarshalJSON() ([]byte, error) {
4516	type NoMethod GooglePrivacyDlpV2beta2InfoTypeDescription
4517	raw := NoMethod(*s)
4518	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4519}
4520
4521// GooglePrivacyDlpV2beta2InfoTypeLimit: Max findings configuration per
4522// infoType, per content item or long
4523// running DlpJob.
4524type GooglePrivacyDlpV2beta2InfoTypeLimit struct {
4525	// InfoType: Type of information the findings limit applies to. Only one
4526	// limit per
4527	// info_type should be provided. If InfoTypeLimit does not have
4528	// an
4529	// info_type, the DLP API applies the limit against all info_types
4530	// that
4531	// are found but not specified in another InfoTypeLimit.
4532	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
4533
4534	// MaxFindings: Max findings limit for the given infoType.
4535	MaxFindings int64 `json:"maxFindings,omitempty"`
4536
4537	// ForceSendFields is a list of field names (e.g. "InfoType") to
4538	// unconditionally include in API requests. By default, fields with
4539	// empty values are omitted from API requests. However, any non-pointer,
4540	// non-interface field appearing in ForceSendFields will be sent to the
4541	// server regardless of whether the field is empty or not. This may be
4542	// used to include empty fields in Patch requests.
4543	ForceSendFields []string `json:"-"`
4544
4545	// NullFields is a list of field names (e.g. "InfoType") to include in
4546	// API requests with the JSON null value. By default, fields with empty
4547	// values are omitted from API requests. However, any field with an
4548	// empty value appearing in NullFields will be sent to the server as
4549	// null. It is an error if a field in this list has a non-empty value.
4550	// This may be used to include null fields in Patch requests.
4551	NullFields []string `json:"-"`
4552}
4553
4554func (s *GooglePrivacyDlpV2beta2InfoTypeLimit) MarshalJSON() ([]byte, error) {
4555	type NoMethod GooglePrivacyDlpV2beta2InfoTypeLimit
4556	raw := NoMethod(*s)
4557	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4558}
4559
4560// GooglePrivacyDlpV2beta2InfoTypeStatistics: Statistics regarding a
4561// specific InfoType.
4562type GooglePrivacyDlpV2beta2InfoTypeStatistics struct {
4563	// Count: Number of findings for this infoType.
4564	Count int64 `json:"count,omitempty,string"`
4565
4566	// InfoType: The type of finding this stat is for.
4567	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
4568
4569	// ForceSendFields is a list of field names (e.g. "Count") to
4570	// unconditionally include in API requests. By default, fields with
4571	// empty values are omitted from API requests. However, any non-pointer,
4572	// non-interface field appearing in ForceSendFields will be sent to the
4573	// server regardless of whether the field is empty or not. This may be
4574	// used to include empty fields in Patch requests.
4575	ForceSendFields []string `json:"-"`
4576
4577	// NullFields is a list of field names (e.g. "Count") to include in API
4578	// requests with the JSON null value. By default, fields with empty
4579	// values are omitted from API requests. However, any field with an
4580	// empty value appearing in NullFields will be sent to the server as
4581	// null. It is an error if a field in this list has a non-empty value.
4582	// This may be used to include null fields in Patch requests.
4583	NullFields []string `json:"-"`
4584}
4585
4586func (s *GooglePrivacyDlpV2beta2InfoTypeStatistics) MarshalJSON() ([]byte, error) {
4587	type NoMethod GooglePrivacyDlpV2beta2InfoTypeStatistics
4588	raw := NoMethod(*s)
4589	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4590}
4591
4592// GooglePrivacyDlpV2beta2InfoTypeTransformation: A transformation to
4593// apply to text that is identified as a specific
4594// info_type.
4595type GooglePrivacyDlpV2beta2InfoTypeTransformation struct {
4596	// InfoTypes: InfoTypes to apply the transformation to. Empty list will
4597	// match all
4598	// available infoTypes for this transformation.
4599	InfoTypes []*GooglePrivacyDlpV2beta2InfoType `json:"infoTypes,omitempty"`
4600
4601	// PrimitiveTransformation: Primitive transformation to apply to the
4602	// infoType. [required]
4603	PrimitiveTransformation *GooglePrivacyDlpV2beta2PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
4604
4605	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
4606	// unconditionally include in API requests. By default, fields with
4607	// empty values are omitted from API requests. However, any non-pointer,
4608	// non-interface field appearing in ForceSendFields will be sent to the
4609	// server regardless of whether the field is empty or not. This may be
4610	// used to include empty fields in Patch requests.
4611	ForceSendFields []string `json:"-"`
4612
4613	// NullFields is a list of field names (e.g. "InfoTypes") to include in
4614	// API requests with the JSON null value. By default, fields with empty
4615	// values are omitted from API requests. However, any field with an
4616	// empty value appearing in NullFields will be sent to the server as
4617	// null. It is an error if a field in this list has a non-empty value.
4618	// This may be used to include null fields in Patch requests.
4619	NullFields []string `json:"-"`
4620}
4621
4622func (s *GooglePrivacyDlpV2beta2InfoTypeTransformation) MarshalJSON() ([]byte, error) {
4623	type NoMethod GooglePrivacyDlpV2beta2InfoTypeTransformation
4624	raw := NoMethod(*s)
4625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4626}
4627
4628// GooglePrivacyDlpV2beta2InfoTypeTransformations: A type of
4629// transformation that will scan unstructured text and
4630// apply various `PrimitiveTransformation`s to each finding, where
4631// the
4632// transformation is applied to only values that were identified as a
4633// specific
4634// info_type.
4635type GooglePrivacyDlpV2beta2InfoTypeTransformations struct {
4636	// Transformations: Transformation for each infoType. Cannot specify
4637	// more than one
4638	// for a given infoType. [required]
4639	Transformations []*GooglePrivacyDlpV2beta2InfoTypeTransformation `json:"transformations,omitempty"`
4640
4641	// ForceSendFields is a list of field names (e.g. "Transformations") to
4642	// unconditionally include in API requests. By default, fields with
4643	// empty values are omitted from API requests. However, any non-pointer,
4644	// non-interface field appearing in ForceSendFields will be sent to the
4645	// server regardless of whether the field is empty or not. This may be
4646	// used to include empty fields in Patch requests.
4647	ForceSendFields []string `json:"-"`
4648
4649	// NullFields is a list of field names (e.g. "Transformations") to
4650	// include in API requests with the JSON null value. By default, fields
4651	// with empty values are omitted from API requests. However, any field
4652	// with an empty value appearing in NullFields will be sent to the
4653	// server as null. It is an error if a field in this list has a
4654	// non-empty value. This may be used to include null fields in Patch
4655	// requests.
4656	NullFields []string `json:"-"`
4657}
4658
4659func (s *GooglePrivacyDlpV2beta2InfoTypeTransformations) MarshalJSON() ([]byte, error) {
4660	type NoMethod GooglePrivacyDlpV2beta2InfoTypeTransformations
4661	raw := NoMethod(*s)
4662	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4663}
4664
4665// GooglePrivacyDlpV2beta2InspectConfig: Configuration description of
4666// the scanning process.
4667// When used with redactContent only info_types and min_likelihood are
4668// currently
4669// used.
4670type GooglePrivacyDlpV2beta2InspectConfig struct {
4671	// CustomInfoTypes: Custom infoTypes provided by the user.
4672	CustomInfoTypes []*GooglePrivacyDlpV2beta2CustomInfoType `json:"customInfoTypes,omitempty"`
4673
4674	// ExcludeInfoTypes: When true, excludes type information of the
4675	// findings.
4676	ExcludeInfoTypes bool `json:"excludeInfoTypes,omitempty"`
4677
4678	// IncludeQuote: When true, a contextual quote from the data that
4679	// triggered a finding is
4680	// included in the response; see Finding.quote.
4681	IncludeQuote bool `json:"includeQuote,omitempty"`
4682
4683	// InfoTypes: Restricts what info_types to look for. The values must
4684	// correspond to
4685	// InfoType values returned by ListInfoTypes or found in
4686	// documentation.
4687	// Empty info_types runs all enabled detectors.
4688	InfoTypes []*GooglePrivacyDlpV2beta2InfoType `json:"infoTypes,omitempty"`
4689
4690	Limits *GooglePrivacyDlpV2beta2FindingLimits `json:"limits,omitempty"`
4691
4692	// MinLikelihood: Only returns findings equal or above this threshold.
4693	// The default is
4694	// POSSIBLE.
4695	//
4696	// Possible values:
4697	//   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
4698	// likelihoods is included.
4699	//   "VERY_UNLIKELY" - Few matching elements.
4700	//   "UNLIKELY"
4701	//   "POSSIBLE" - Some matching elements.
4702	//   "LIKELY"
4703	//   "VERY_LIKELY" - Many matching elements.
4704	MinLikelihood string `json:"minLikelihood,omitempty"`
4705
4706	// ForceSendFields is a list of field names (e.g. "CustomInfoTypes") to
4707	// unconditionally include in API requests. By default, fields with
4708	// empty values are omitted from API requests. However, any non-pointer,
4709	// non-interface field appearing in ForceSendFields will be sent to the
4710	// server regardless of whether the field is empty or not. This may be
4711	// used to include empty fields in Patch requests.
4712	ForceSendFields []string `json:"-"`
4713
4714	// NullFields is a list of field names (e.g. "CustomInfoTypes") to
4715	// include in API requests with the JSON null value. By default, fields
4716	// with empty values are omitted from API requests. However, any field
4717	// with an empty value appearing in NullFields will be sent to the
4718	// server as null. It is an error if a field in this list has a
4719	// non-empty value. This may be used to include null fields in Patch
4720	// requests.
4721	NullFields []string `json:"-"`
4722}
4723
4724func (s *GooglePrivacyDlpV2beta2InspectConfig) MarshalJSON() ([]byte, error) {
4725	type NoMethod GooglePrivacyDlpV2beta2InspectConfig
4726	raw := NoMethod(*s)
4727	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4728}
4729
4730// GooglePrivacyDlpV2beta2InspectContentRequest: Request to search for
4731// potentially sensitive info in a ContentItem.
4732type GooglePrivacyDlpV2beta2InspectContentRequest struct {
4733	// InspectConfig: Configuration for the inspector. What specified here
4734	// will override
4735	// the template referenced by the inspect_template_name argument.
4736	InspectConfig *GooglePrivacyDlpV2beta2InspectConfig `json:"inspectConfig,omitempty"`
4737
4738	// InspectTemplateName: Optional template to use. Any configuration
4739	// directly specified in
4740	// inspect_config will override those set in the template. Singular
4741	// fields
4742	// that are set in this request will replace their corresponding fields
4743	// in the
4744	// template. Repeated fields are appended. Singular sub-messages and
4745	// groups
4746	// are recursively merged.
4747	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
4748
4749	// Item: The item to inspect.
4750	Item *GooglePrivacyDlpV2beta2ContentItem `json:"item,omitempty"`
4751
4752	// ForceSendFields is a list of field names (e.g. "InspectConfig") to
4753	// unconditionally include in API requests. By default, fields with
4754	// empty values are omitted from API requests. However, any non-pointer,
4755	// non-interface field appearing in ForceSendFields will be sent to the
4756	// server regardless of whether the field is empty or not. This may be
4757	// used to include empty fields in Patch requests.
4758	ForceSendFields []string `json:"-"`
4759
4760	// NullFields is a list of field names (e.g. "InspectConfig") to include
4761	// in API requests with the JSON null value. By default, fields with
4762	// empty values are omitted from API requests. However, any field with
4763	// an empty value appearing in NullFields will be sent to the server as
4764	// null. It is an error if a field in this list has a non-empty value.
4765	// This may be used to include null fields in Patch requests.
4766	NullFields []string `json:"-"`
4767}
4768
4769func (s *GooglePrivacyDlpV2beta2InspectContentRequest) MarshalJSON() ([]byte, error) {
4770	type NoMethod GooglePrivacyDlpV2beta2InspectContentRequest
4771	raw := NoMethod(*s)
4772	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4773}
4774
4775// GooglePrivacyDlpV2beta2InspectContentResponse: Results of inspecting
4776// an item.
4777type GooglePrivacyDlpV2beta2InspectContentResponse struct {
4778	// Result: The findings.
4779	Result *GooglePrivacyDlpV2beta2InspectResult `json:"result,omitempty"`
4780
4781	// ServerResponse contains the HTTP response code and headers from the
4782	// server.
4783	googleapi.ServerResponse `json:"-"`
4784
4785	// ForceSendFields is a list of field names (e.g. "Result") to
4786	// unconditionally include in API requests. By default, fields with
4787	// empty values are omitted from API requests. However, any non-pointer,
4788	// non-interface field appearing in ForceSendFields will be sent to the
4789	// server regardless of whether the field is empty or not. This may be
4790	// used to include empty fields in Patch requests.
4791	ForceSendFields []string `json:"-"`
4792
4793	// NullFields is a list of field names (e.g. "Result") to include in API
4794	// requests with the JSON null value. By default, fields with empty
4795	// values are omitted from API requests. However, any field with an
4796	// empty value appearing in NullFields will be sent to the server as
4797	// null. It is an error if a field in this list has a non-empty value.
4798	// This may be used to include null fields in Patch requests.
4799	NullFields []string `json:"-"`
4800}
4801
4802func (s *GooglePrivacyDlpV2beta2InspectContentResponse) MarshalJSON() ([]byte, error) {
4803	type NoMethod GooglePrivacyDlpV2beta2InspectContentResponse
4804	raw := NoMethod(*s)
4805	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4806}
4807
4808// GooglePrivacyDlpV2beta2InspectDataSourceDetails: The results of an
4809// inspect DataSource job.
4810type GooglePrivacyDlpV2beta2InspectDataSourceDetails struct {
4811	// RequestedOptions: The configuration used for this job.
4812	RequestedOptions *GooglePrivacyDlpV2beta2RequestedOptions `json:"requestedOptions,omitempty"`
4813
4814	// Result: A summary of the outcome of this inspect job.
4815	Result *GooglePrivacyDlpV2beta2Result `json:"result,omitempty"`
4816
4817	// ForceSendFields is a list of field names (e.g. "RequestedOptions") to
4818	// unconditionally include in API requests. By default, fields with
4819	// empty values are omitted from API requests. However, any non-pointer,
4820	// non-interface field appearing in ForceSendFields will be sent to the
4821	// server regardless of whether the field is empty or not. This may be
4822	// used to include empty fields in Patch requests.
4823	ForceSendFields []string `json:"-"`
4824
4825	// NullFields is a list of field names (e.g. "RequestedOptions") to
4826	// include in API requests with the JSON null value. By default, fields
4827	// with empty values are omitted from API requests. However, any field
4828	// with an empty value appearing in NullFields will be sent to the
4829	// server as null. It is an error if a field in this list has a
4830	// non-empty value. This may be used to include null fields in Patch
4831	// requests.
4832	NullFields []string `json:"-"`
4833}
4834
4835func (s *GooglePrivacyDlpV2beta2InspectDataSourceDetails) MarshalJSON() ([]byte, error) {
4836	type NoMethod GooglePrivacyDlpV2beta2InspectDataSourceDetails
4837	raw := NoMethod(*s)
4838	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4839}
4840
4841// GooglePrivacyDlpV2beta2InspectDataSourceRequest: Request for
4842// scheduling a scan of a data subset from a Google Platform
4843// data
4844// repository.
4845type GooglePrivacyDlpV2beta2InspectDataSourceRequest struct {
4846	// JobConfig: A configuration for the job.
4847	JobConfig *GooglePrivacyDlpV2beta2InspectJobConfig `json:"jobConfig,omitempty"`
4848
4849	// JobId: Optional job ID to use for the created job. If not provided, a
4850	// job ID will
4851	// automatically be generated. Must be unique within the project. The
4852	// job ID
4853	// can contain uppercase and lowercase letters, numbers, and hyphens;
4854	// that is,
4855	// it must match the regular expression: `[a-zA-Z\\d-]+`. The maximum
4856	// length
4857	// is 100 characters. Can be empty to allow the system to generate one.
4858	JobId string `json:"jobId,omitempty"`
4859
4860	// ForceSendFields is a list of field names (e.g. "JobConfig") to
4861	// unconditionally include in API requests. By default, fields with
4862	// empty values are omitted from API requests. However, any non-pointer,
4863	// non-interface field appearing in ForceSendFields will be sent to the
4864	// server regardless of whether the field is empty or not. This may be
4865	// used to include empty fields in Patch requests.
4866	ForceSendFields []string `json:"-"`
4867
4868	// NullFields is a list of field names (e.g. "JobConfig") to include in
4869	// API requests with the JSON null value. By default, fields with empty
4870	// values are omitted from API requests. However, any field with an
4871	// empty value appearing in NullFields will be sent to the server as
4872	// null. It is an error if a field in this list has a non-empty value.
4873	// This may be used to include null fields in Patch requests.
4874	NullFields []string `json:"-"`
4875}
4876
4877func (s *GooglePrivacyDlpV2beta2InspectDataSourceRequest) MarshalJSON() ([]byte, error) {
4878	type NoMethod GooglePrivacyDlpV2beta2InspectDataSourceRequest
4879	raw := NoMethod(*s)
4880	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4881}
4882
4883type GooglePrivacyDlpV2beta2InspectJobConfig struct {
4884	// Actions: Actions to execute at the completion of the job. Are
4885	// executed in the order
4886	// provided.
4887	Actions []*GooglePrivacyDlpV2beta2Action `json:"actions,omitempty"`
4888
4889	// InspectConfig: How and what to scan for.
4890	InspectConfig *GooglePrivacyDlpV2beta2InspectConfig `json:"inspectConfig,omitempty"`
4891
4892	// InspectTemplateName: If provided, will be used as the default for all
4893	// values in InspectConfig.
4894	// `inspect_config` will be merged into the values persisted as part of
4895	// the
4896	// template.
4897	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
4898
4899	// OutputConfig: Where to put the findings.
4900	OutputConfig *GooglePrivacyDlpV2beta2OutputStorageConfig `json:"outputConfig,omitempty"`
4901
4902	// StorageConfig: The data to scan.
4903	StorageConfig *GooglePrivacyDlpV2beta2StorageConfig `json:"storageConfig,omitempty"`
4904
4905	// ForceSendFields is a list of field names (e.g. "Actions") to
4906	// unconditionally include in API requests. By default, fields with
4907	// empty values are omitted from API requests. However, any non-pointer,
4908	// non-interface field appearing in ForceSendFields will be sent to the
4909	// server regardless of whether the field is empty or not. This may be
4910	// used to include empty fields in Patch requests.
4911	ForceSendFields []string `json:"-"`
4912
4913	// NullFields is a list of field names (e.g. "Actions") to include in
4914	// API requests with the JSON null value. By default, fields with empty
4915	// values are omitted from API requests. However, any field with an
4916	// empty value appearing in NullFields will be sent to the server as
4917	// null. It is an error if a field in this list has a non-empty value.
4918	// This may be used to include null fields in Patch requests.
4919	NullFields []string `json:"-"`
4920}
4921
4922func (s *GooglePrivacyDlpV2beta2InspectJobConfig) MarshalJSON() ([]byte, error) {
4923	type NoMethod GooglePrivacyDlpV2beta2InspectJobConfig
4924	raw := NoMethod(*s)
4925	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4926}
4927
4928// GooglePrivacyDlpV2beta2InspectResult: All the findings for a single
4929// scanned item.
4930type GooglePrivacyDlpV2beta2InspectResult struct {
4931	// Findings: List of findings for an item.
4932	Findings []*GooglePrivacyDlpV2beta2Finding `json:"findings,omitempty"`
4933
4934	// FindingsTruncated: If true, then this item might have more findings
4935	// than were returned,
4936	// and the findings returned are an arbitrary subset of all
4937	// findings.
4938	// The findings list might be truncated because the input items were
4939	// too
4940	// large, or because the server reached the maximum amount of
4941	// resources
4942	// allowed for a single API call. For best results, divide the input
4943	// into
4944	// smaller batches.
4945	FindingsTruncated bool `json:"findingsTruncated,omitempty"`
4946
4947	// ForceSendFields is a list of field names (e.g. "Findings") to
4948	// unconditionally include in API requests. By default, fields with
4949	// empty values are omitted from API requests. However, any non-pointer,
4950	// non-interface field appearing in ForceSendFields will be sent to the
4951	// server regardless of whether the field is empty or not. This may be
4952	// used to include empty fields in Patch requests.
4953	ForceSendFields []string `json:"-"`
4954
4955	// NullFields is a list of field names (e.g. "Findings") to include in
4956	// API requests with the JSON null value. By default, fields with empty
4957	// values are omitted from API requests. However, any field with an
4958	// empty value appearing in NullFields will be sent to the server as
4959	// null. It is an error if a field in this list has a non-empty value.
4960	// This may be used to include null fields in Patch requests.
4961	NullFields []string `json:"-"`
4962}
4963
4964func (s *GooglePrivacyDlpV2beta2InspectResult) MarshalJSON() ([]byte, error) {
4965	type NoMethod GooglePrivacyDlpV2beta2InspectResult
4966	raw := NoMethod(*s)
4967	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4968}
4969
4970// GooglePrivacyDlpV2beta2InspectTemplate: The inspectTemplate contains
4971// a configuration (set of types of sensitive data
4972// to be detected) to be used anywhere you otherwise would normally
4973// specify
4974// InspectConfig.
4975type GooglePrivacyDlpV2beta2InspectTemplate struct {
4976	// CreateTime: The creation timestamp of a inspectTemplate, output only
4977	// field.
4978	CreateTime string `json:"createTime,omitempty"`
4979
4980	// Description: Short description (max 256 chars).
4981	Description string `json:"description,omitempty"`
4982
4983	// DisplayName: Display name (max 256 chars).
4984	DisplayName string `json:"displayName,omitempty"`
4985
4986	// InspectConfig: The core content of the template. Configuration of the
4987	// scanning process.
4988	InspectConfig *GooglePrivacyDlpV2beta2InspectConfig `json:"inspectConfig,omitempty"`
4989
4990	// Name: The template name. Output only.
4991	//
4992	// The template will have one of the following
4993	// formats:
4994	// `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID`
4995	// OR
4996	// `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`
4997	Name string `json:"name,omitempty"`
4998
4999	// UpdateTime: The last update timestamp of a inspectTemplate, output
5000	// only field.
5001	UpdateTime string `json:"updateTime,omitempty"`
5002
5003	// ServerResponse contains the HTTP response code and headers from the
5004	// server.
5005	googleapi.ServerResponse `json:"-"`
5006
5007	// ForceSendFields is a list of field names (e.g. "CreateTime") to
5008	// unconditionally include in API requests. By default, fields with
5009	// empty values are omitted from API requests. However, any non-pointer,
5010	// non-interface field appearing in ForceSendFields will be sent to the
5011	// server regardless of whether the field is empty or not. This may be
5012	// used to include empty fields in Patch requests.
5013	ForceSendFields []string `json:"-"`
5014
5015	// NullFields is a list of field names (e.g. "CreateTime") to include in
5016	// API requests with the JSON null value. By default, fields with empty
5017	// values are omitted from API requests. However, any field with an
5018	// empty value appearing in NullFields will be sent to the server as
5019	// null. It is an error if a field in this list has a non-empty value.
5020	// This may be used to include null fields in Patch requests.
5021	NullFields []string `json:"-"`
5022}
5023
5024func (s *GooglePrivacyDlpV2beta2InspectTemplate) MarshalJSON() ([]byte, error) {
5025	type NoMethod GooglePrivacyDlpV2beta2InspectTemplate
5026	raw := NoMethod(*s)
5027	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5028}
5029
5030// GooglePrivacyDlpV2beta2JobTrigger: Contains a configuration to make
5031// dlp api calls on a repeating basis.
5032type GooglePrivacyDlpV2beta2JobTrigger struct {
5033	// CreateTime: The creation timestamp of a triggeredJob, output only
5034	// field.
5035	CreateTime string `json:"createTime,omitempty"`
5036
5037	// Description: User provided description (max 256 chars)
5038	Description string `json:"description,omitempty"`
5039
5040	// DisplayName: Display name (max 100 chars)
5041	DisplayName string `json:"displayName,omitempty"`
5042
5043	// Errors: A stream of errors encountered when the trigger was
5044	// activated. Repeated
5045	// errors may result in the JobTrigger automaticaly being paused.
5046	// Will return the last 100 errors. Whenever the JobTrigger is
5047	// modified
5048	// this list will be cleared. Output only field.
5049	Errors []*GooglePrivacyDlpV2beta2Error `json:"errors,omitempty"`
5050
5051	InspectJob *GooglePrivacyDlpV2beta2InspectJobConfig `json:"inspectJob,omitempty"`
5052
5053	// LastRunTime: The timestamp of the last time this trigger executed.
5054	LastRunTime string `json:"lastRunTime,omitempty"`
5055
5056	// Name: Unique resource name for the triggeredJob, assigned by the
5057	// service when the
5058	// triggeredJob is created, for
5059	// example
5060	// `projects/dlp-test-project/triggeredJobs/53234423`.
5061	Name string `json:"name,omitempty"`
5062
5063	// Status: A status for this trigger. [required]
5064	//
5065	// Possible values:
5066	//   "STATUS_UNSPECIFIED"
5067	//   "HEALTHY" - Trigger is healthy.
5068	//   "PAUSED" - Trigger is temporarily paused.
5069	//   "CANCELLED" - Trigger is cancelled and can not be resumed.
5070	Status string `json:"status,omitempty"`
5071
5072	// Triggers: A list of triggers which will be OR'ed together. Only one
5073	// in the list
5074	// needs to trigger for a job to be started. The list may contain only
5075	// a single Schedule trigger and must have at least one object.
5076	Triggers []*GooglePrivacyDlpV2beta2Trigger `json:"triggers,omitempty"`
5077
5078	// UpdateTime: The last update timestamp of a triggeredJob, output only
5079	// field.
5080	UpdateTime string `json:"updateTime,omitempty"`
5081
5082	// ServerResponse contains the HTTP response code and headers from the
5083	// server.
5084	googleapi.ServerResponse `json:"-"`
5085
5086	// ForceSendFields is a list of field names (e.g. "CreateTime") to
5087	// unconditionally include in API requests. By default, fields with
5088	// empty values are omitted from API requests. However, any non-pointer,
5089	// non-interface field appearing in ForceSendFields will be sent to the
5090	// server regardless of whether the field is empty or not. This may be
5091	// used to include empty fields in Patch requests.
5092	ForceSendFields []string `json:"-"`
5093
5094	// NullFields is a list of field names (e.g. "CreateTime") to include in
5095	// API requests with the JSON null value. By default, fields with empty
5096	// values are omitted from API requests. However, any field with an
5097	// empty value appearing in NullFields will be sent to the server as
5098	// null. It is an error if a field in this list has a non-empty value.
5099	// This may be used to include null fields in Patch requests.
5100	NullFields []string `json:"-"`
5101}
5102
5103func (s *GooglePrivacyDlpV2beta2JobTrigger) MarshalJSON() ([]byte, error) {
5104	type NoMethod GooglePrivacyDlpV2beta2JobTrigger
5105	raw := NoMethod(*s)
5106	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5107}
5108
5109// GooglePrivacyDlpV2beta2KAnonymityConfig: k-anonymity metric, used for
5110// analysis of reidentification risk.
5111type GooglePrivacyDlpV2beta2KAnonymityConfig struct {
5112	// EntityId: Optional message indicating that each distinct entity_id
5113	// should not
5114	// contribute to the k-anonymity count more than once per equivalence
5115	// class.
5116	// If an entity_id appears on several rows with different
5117	// quasi-identifier
5118	// tuples, it will contribute to each count exactly once.
5119	//
5120	// This can lead to unexpected results. Consider a table where ID 1
5121	// is
5122	// associated to quasi-identifier "foo", ID 2 to "bar", and ID 3 to
5123	// *both*
5124	// quasi-identifiers "foo" and "bar" (on separate rows), and where this
5125	// ID
5126	// is used as entity_id. Then, the anonymity value associated to ID 3
5127	// will
5128	// be 2, even if it is the only ID to be associated to both values "foo"
5129	// and
5130	// "bar".
5131	EntityId *GooglePrivacyDlpV2beta2EntityId `json:"entityId,omitempty"`
5132
5133	// QuasiIds: Set of fields to compute k-anonymity over. When multiple
5134	// fields are
5135	// specified, they are considered a single composite key. Structs
5136	// and
5137	// repeated data types are not supported; however, nested fields
5138	// are
5139	// supported so long as they are not structs themselves or nested
5140	// within
5141	// a repeated field.
5142	QuasiIds []*GooglePrivacyDlpV2beta2FieldId `json:"quasiIds,omitempty"`
5143
5144	// ForceSendFields is a list of field names (e.g. "EntityId") to
5145	// unconditionally include in API requests. By default, fields with
5146	// empty values are omitted from API requests. However, any non-pointer,
5147	// non-interface field appearing in ForceSendFields will be sent to the
5148	// server regardless of whether the field is empty or not. This may be
5149	// used to include empty fields in Patch requests.
5150	ForceSendFields []string `json:"-"`
5151
5152	// NullFields is a list of field names (e.g. "EntityId") to include in
5153	// API requests with the JSON null value. By default, fields with empty
5154	// values are omitted from API requests. However, any field with an
5155	// empty value appearing in NullFields will be sent to the server as
5156	// null. It is an error if a field in this list has a non-empty value.
5157	// This may be used to include null fields in Patch requests.
5158	NullFields []string `json:"-"`
5159}
5160
5161func (s *GooglePrivacyDlpV2beta2KAnonymityConfig) MarshalJSON() ([]byte, error) {
5162	type NoMethod GooglePrivacyDlpV2beta2KAnonymityConfig
5163	raw := NoMethod(*s)
5164	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5165}
5166
5167// GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass: The set of
5168// columns' values that share the same ldiversity value
5169type GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass struct {
5170	// EquivalenceClassSize: Size of the equivalence class, for example
5171	// number of rows with the
5172	// above set of values.
5173	EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
5174
5175	// QuasiIdsValues: Set of values defining the equivalence class. One
5176	// value per
5177	// quasi-identifier column in the original KAnonymity metric
5178	// message.
5179	// The order is always the same as the original request.
5180	QuasiIdsValues []*GooglePrivacyDlpV2beta2Value `json:"quasiIdsValues,omitempty"`
5181
5182	// ForceSendFields is a list of field names (e.g.
5183	// "EquivalenceClassSize") to unconditionally include in API requests.
5184	// By default, fields with empty values are omitted from API requests.
5185	// However, any non-pointer, non-interface field appearing in
5186	// ForceSendFields will be sent to the server regardless of whether the
5187	// field is empty or not. This may be used to include empty fields in
5188	// Patch requests.
5189	ForceSendFields []string `json:"-"`
5190
5191	// NullFields is a list of field names (e.g. "EquivalenceClassSize") to
5192	// include in API requests with the JSON null value. By default, fields
5193	// with empty values are omitted from API requests. However, any field
5194	// with an empty value appearing in NullFields will be sent to the
5195	// server as null. It is an error if a field in this list has a
5196	// non-empty value. This may be used to include null fields in Patch
5197	// requests.
5198	NullFields []string `json:"-"`
5199}
5200
5201func (s *GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass) MarshalJSON() ([]byte, error) {
5202	type NoMethod GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass
5203	raw := NoMethod(*s)
5204	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5205}
5206
5207type GooglePrivacyDlpV2beta2KAnonymityHistogramBucket struct {
5208	// BucketSize: Total number of equivalence classes in this bucket.
5209	BucketSize int64 `json:"bucketSize,omitempty,string"`
5210
5211	// BucketValueCount: Total number of distinct equivalence classes in
5212	// this bucket.
5213	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
5214
5215	// BucketValues: Sample of equivalence classes in this bucket. The total
5216	// number of
5217	// classes returned per bucket is capped at 20.
5218	BucketValues []*GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass `json:"bucketValues,omitempty"`
5219
5220	// EquivalenceClassSizeLowerBound: Lower bound on the size of the
5221	// equivalence classes in this bucket.
5222	EquivalenceClassSizeLowerBound int64 `json:"equivalenceClassSizeLowerBound,omitempty,string"`
5223
5224	// EquivalenceClassSizeUpperBound: Upper bound on the size of the
5225	// equivalence classes in this bucket.
5226	EquivalenceClassSizeUpperBound int64 `json:"equivalenceClassSizeUpperBound,omitempty,string"`
5227
5228	// ForceSendFields is a list of field names (e.g. "BucketSize") to
5229	// unconditionally include in API requests. By default, fields with
5230	// empty values are omitted from API requests. However, any non-pointer,
5231	// non-interface field appearing in ForceSendFields will be sent to the
5232	// server regardless of whether the field is empty or not. This may be
5233	// used to include empty fields in Patch requests.
5234	ForceSendFields []string `json:"-"`
5235
5236	// NullFields is a list of field names (e.g. "BucketSize") to include in
5237	// API requests with the JSON null value. By default, fields with empty
5238	// values are omitted from API requests. However, any field with an
5239	// empty value appearing in NullFields will be sent to the server as
5240	// null. It is an error if a field in this list has a non-empty value.
5241	// This may be used to include null fields in Patch requests.
5242	NullFields []string `json:"-"`
5243}
5244
5245func (s *GooglePrivacyDlpV2beta2KAnonymityHistogramBucket) MarshalJSON() ([]byte, error) {
5246	type NoMethod GooglePrivacyDlpV2beta2KAnonymityHistogramBucket
5247	raw := NoMethod(*s)
5248	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5249}
5250
5251// GooglePrivacyDlpV2beta2KAnonymityResult: Result of the k-anonymity
5252// computation.
5253type GooglePrivacyDlpV2beta2KAnonymityResult struct {
5254	// EquivalenceClassHistogramBuckets: Histogram of k-anonymity
5255	// equivalence classes.
5256	EquivalenceClassHistogramBuckets []*GooglePrivacyDlpV2beta2KAnonymityHistogramBucket `json:"equivalenceClassHistogramBuckets,omitempty"`
5257
5258	// ForceSendFields is a list of field names (e.g.
5259	// "EquivalenceClassHistogramBuckets") to unconditionally include in API
5260	// requests. By default, fields with empty values are omitted from API
5261	// requests. However, any non-pointer, non-interface field appearing in
5262	// ForceSendFields will be sent to the server regardless of whether the
5263	// field is empty or not. This may be used to include empty fields in
5264	// Patch requests.
5265	ForceSendFields []string `json:"-"`
5266
5267	// NullFields is a list of field names (e.g.
5268	// "EquivalenceClassHistogramBuckets") to include in API requests with
5269	// the JSON null value. By default, fields with empty values are omitted
5270	// from API requests. However, any field with an empty value appearing
5271	// in NullFields will be sent to the server as null. It is an error if a
5272	// field in this list has a non-empty value. This may be used to include
5273	// null fields in Patch requests.
5274	NullFields []string `json:"-"`
5275}
5276
5277func (s *GooglePrivacyDlpV2beta2KAnonymityResult) MarshalJSON() ([]byte, error) {
5278	type NoMethod GooglePrivacyDlpV2beta2KAnonymityResult
5279	raw := NoMethod(*s)
5280	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5281}
5282
5283// GooglePrivacyDlpV2beta2KMapEstimationConfig: Reidentifiability
5284// metric. This corresponds to a risk model similar to what
5285// is called "journalist risk" in the literature, except the attack
5286// dataset is
5287// statistically modeled instead of being perfectly known. This can be
5288// done
5289// using publicly available data (like the US Census), or using a
5290// custom
5291// statistical model (indicated as one or several BigQuery tables), or
5292// by
5293// extrapolating from the distribution of values in the input dataset.
5294type GooglePrivacyDlpV2beta2KMapEstimationConfig struct {
5295	// AuxiliaryTables: Several auxiliary tables can be used in the
5296	// analysis. Each custom_tag
5297	// used to tag a quasi-identifiers column must appear in exactly one
5298	// column
5299	// of one auxiliary table.
5300	AuxiliaryTables []*GooglePrivacyDlpV2beta2AuxiliaryTable `json:"auxiliaryTables,omitempty"`
5301
5302	// QuasiIds: Fields considered to be quasi-identifiers. No two columns
5303	// can have the
5304	// same tag. [required]
5305	QuasiIds []*GooglePrivacyDlpV2beta2TaggedField `json:"quasiIds,omitempty"`
5306
5307	// RegionCode: ISO 3166-1 alpha-2 region code to use in the statistical
5308	// modeling.
5309	// Required if no column is tagged with a region-specific InfoType
5310	// (like
5311	// US_ZIP_5) or a region code.
5312	RegionCode string `json:"regionCode,omitempty"`
5313
5314	// ForceSendFields is a list of field names (e.g. "AuxiliaryTables") to
5315	// unconditionally include in API requests. By default, fields with
5316	// empty values are omitted from API requests. However, any non-pointer,
5317	// non-interface field appearing in ForceSendFields will be sent to the
5318	// server regardless of whether the field is empty or not. This may be
5319	// used to include empty fields in Patch requests.
5320	ForceSendFields []string `json:"-"`
5321
5322	// NullFields is a list of field names (e.g. "AuxiliaryTables") to
5323	// include in API requests with the JSON null value. By default, fields
5324	// with empty values are omitted from API requests. However, any field
5325	// with an empty value appearing in NullFields will be sent to the
5326	// server as null. It is an error if a field in this list has a
5327	// non-empty value. This may be used to include null fields in Patch
5328	// requests.
5329	NullFields []string `json:"-"`
5330}
5331
5332func (s *GooglePrivacyDlpV2beta2KMapEstimationConfig) MarshalJSON() ([]byte, error) {
5333	type NoMethod GooglePrivacyDlpV2beta2KMapEstimationConfig
5334	raw := NoMethod(*s)
5335	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5336}
5337
5338// GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket: A
5339// KMapEstimationHistogramBucket message with the following values:
5340//   min_anonymity: 3
5341//   max_anonymity: 5
5342//   frequency: 42
5343// means that there are 42 records whose quasi-identifier values
5344// correspond
5345// to 3, 4 or 5 people in the overlying population. An important
5346// particular
5347// case is when min_anonymity = max_anonymity = 1: the frequency field
5348// then
5349// corresponds to the number of uniquely identifiable records.
5350type GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket struct {
5351	// BucketSize: Number of records within these anonymity bounds.
5352	BucketSize int64 `json:"bucketSize,omitempty,string"`
5353
5354	// BucketValueCount: Total number of distinct quasi-identifier tuple
5355	// values in this bucket.
5356	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
5357
5358	// BucketValues: Sample of quasi-identifier tuple values in this bucket.
5359	// The total
5360	// number of classes returned per bucket is capped at 20.
5361	BucketValues []*GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues `json:"bucketValues,omitempty"`
5362
5363	// MaxAnonymity: Always greater than or equal to min_anonymity.
5364	MaxAnonymity int64 `json:"maxAnonymity,omitempty,string"`
5365
5366	// MinAnonymity: Always positive.
5367	MinAnonymity int64 `json:"minAnonymity,omitempty,string"`
5368
5369	// ForceSendFields is a list of field names (e.g. "BucketSize") to
5370	// unconditionally include in API requests. By default, fields with
5371	// empty values are omitted from API requests. However, any non-pointer,
5372	// non-interface field appearing in ForceSendFields will be sent to the
5373	// server regardless of whether the field is empty or not. This may be
5374	// used to include empty fields in Patch requests.
5375	ForceSendFields []string `json:"-"`
5376
5377	// NullFields is a list of field names (e.g. "BucketSize") to include in
5378	// API requests with the JSON null value. By default, fields with empty
5379	// values are omitted from API requests. However, any field with an
5380	// empty value appearing in NullFields will be sent to the server as
5381	// null. It is an error if a field in this list has a non-empty value.
5382	// This may be used to include null fields in Patch requests.
5383	NullFields []string `json:"-"`
5384}
5385
5386func (s *GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
5387	type NoMethod GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket
5388	raw := NoMethod(*s)
5389	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5390}
5391
5392// GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues: A tuple of values
5393// for the quasi-identifier columns.
5394type GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues struct {
5395	// EstimatedAnonymity: The estimated anonymity for these
5396	// quasi-identifier values.
5397	EstimatedAnonymity int64 `json:"estimatedAnonymity,omitempty,string"`
5398
5399	// QuasiIdsValues: The quasi-identifier values.
5400	QuasiIdsValues []*GooglePrivacyDlpV2beta2Value `json:"quasiIdsValues,omitempty"`
5401
5402	// ForceSendFields is a list of field names (e.g. "EstimatedAnonymity")
5403	// to unconditionally include in API requests. By default, fields with
5404	// empty values are omitted from API requests. However, any non-pointer,
5405	// non-interface field appearing in ForceSendFields will be sent to the
5406	// server regardless of whether the field is empty or not. This may be
5407	// used to include empty fields in Patch requests.
5408	ForceSendFields []string `json:"-"`
5409
5410	// NullFields is a list of field names (e.g. "EstimatedAnonymity") to
5411	// include in API requests with the JSON null value. By default, fields
5412	// with empty values are omitted from API requests. However, any field
5413	// with an empty value appearing in NullFields will be sent to the
5414	// server as null. It is an error if a field in this list has a
5415	// non-empty value. This may be used to include null fields in Patch
5416	// requests.
5417	NullFields []string `json:"-"`
5418}
5419
5420func (s *GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
5421	type NoMethod GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues
5422	raw := NoMethod(*s)
5423	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5424}
5425
5426// GooglePrivacyDlpV2beta2KMapEstimationResult: Result of the
5427// reidentifiability analysis. Note that these results are
5428// an
5429// estimation, not exact values.
5430type GooglePrivacyDlpV2beta2KMapEstimationResult struct {
5431	// KMapEstimationHistogram: The intervals [min_anonymity, max_anonymity]
5432	// do not overlap. If a value
5433	// doesn't correspond to any such interval, the associated frequency
5434	// is
5435	// zero. For example, the following records:
5436	//   {min_anonymity: 1, max_anonymity: 1, frequency: 17}
5437	//   {min_anonymity: 2, max_anonymity: 3, frequency: 42}
5438	//   {min_anonymity: 5, max_anonymity: 10, frequency: 99}
5439	// mean that there are no record with an estimated anonymity of 4, 5,
5440	// or
5441	// larger than 10.
5442	KMapEstimationHistogram []*GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket `json:"kMapEstimationHistogram,omitempty"`
5443
5444	// ForceSendFields is a list of field names (e.g.
5445	// "KMapEstimationHistogram") to unconditionally include in API
5446	// requests. By default, fields with empty values are omitted from API
5447	// requests. However, any non-pointer, non-interface field appearing in
5448	// ForceSendFields will be sent to the server regardless of whether the
5449	// field is empty or not. This may be used to include empty fields in
5450	// Patch requests.
5451	ForceSendFields []string `json:"-"`
5452
5453	// NullFields is a list of field names (e.g. "KMapEstimationHistogram")
5454	// to include in API requests with the JSON null value. By default,
5455	// fields with empty values are omitted from API requests. However, any
5456	// field with an empty value appearing in NullFields will be sent to the
5457	// server as null. It is an error if a field in this list has a
5458	// non-empty value. This may be used to include null fields in Patch
5459	// requests.
5460	NullFields []string `json:"-"`
5461}
5462
5463func (s *GooglePrivacyDlpV2beta2KMapEstimationResult) MarshalJSON() ([]byte, error) {
5464	type NoMethod GooglePrivacyDlpV2beta2KMapEstimationResult
5465	raw := NoMethod(*s)
5466	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5467}
5468
5469// GooglePrivacyDlpV2beta2Key: A unique identifier for a Datastore
5470// entity.
5471// If a key's partition ID or any of its path kinds or names
5472// are
5473// reserved/read-only, the key is reserved/read-only.
5474// A reserved/read-only key is forbidden in certain documented contexts.
5475type GooglePrivacyDlpV2beta2Key struct {
5476	// PartitionId: Entities are partitioned into subsets, currently
5477	// identified by a project
5478	// ID and namespace ID.
5479	// Queries are scoped to a single partition.
5480	PartitionId *GooglePrivacyDlpV2beta2PartitionId `json:"partitionId,omitempty"`
5481
5482	// Path: The entity path.
5483	// An entity path consists of one or more elements composed of a kind
5484	// and a
5485	// string or numerical identifier, which identify entities. The
5486	// first
5487	// element identifies a _root entity_, the second element identifies
5488	// a _child_ of the root entity, the third element identifies a child of
5489	// the
5490	// second entity, and so forth. The entities identified by all prefixes
5491	// of
5492	// the path are called the element's _ancestors_.
5493	//
5494	// A path can never be empty, and a path can have at most 100 elements.
5495	Path []*GooglePrivacyDlpV2beta2PathElement `json:"path,omitempty"`
5496
5497	// ForceSendFields is a list of field names (e.g. "PartitionId") to
5498	// unconditionally include in API requests. By default, fields with
5499	// empty values are omitted from API requests. However, any non-pointer,
5500	// non-interface field appearing in ForceSendFields will be sent to the
5501	// server regardless of whether the field is empty or not. This may be
5502	// used to include empty fields in Patch requests.
5503	ForceSendFields []string `json:"-"`
5504
5505	// NullFields is a list of field names (e.g. "PartitionId") to include
5506	// in API requests with the JSON null value. By default, fields with
5507	// empty values are omitted from API requests. However, any field with
5508	// an empty value appearing in NullFields will be sent to the server as
5509	// null. It is an error if a field in this list has a non-empty value.
5510	// This may be used to include null fields in Patch requests.
5511	NullFields []string `json:"-"`
5512}
5513
5514func (s *GooglePrivacyDlpV2beta2Key) MarshalJSON() ([]byte, error) {
5515	type NoMethod GooglePrivacyDlpV2beta2Key
5516	raw := NoMethod(*s)
5517	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5518}
5519
5520// GooglePrivacyDlpV2beta2KindExpression: A representation of a
5521// Datastore kind.
5522type GooglePrivacyDlpV2beta2KindExpression struct {
5523	// Name: The name of the kind.
5524	Name string `json:"name,omitempty"`
5525
5526	// ForceSendFields is a list of field names (e.g. "Name") to
5527	// unconditionally include in API requests. By default, fields with
5528	// empty values are omitted from API requests. However, any non-pointer,
5529	// non-interface field appearing in ForceSendFields will be sent to the
5530	// server regardless of whether the field is empty or not. This may be
5531	// used to include empty fields in Patch requests.
5532	ForceSendFields []string `json:"-"`
5533
5534	// NullFields is a list of field names (e.g. "Name") to include in API
5535	// requests with the JSON null value. By default, fields with empty
5536	// values are omitted from API requests. However, any field with an
5537	// empty value appearing in NullFields will be sent to the server as
5538	// null. It is an error if a field in this list has a non-empty value.
5539	// This may be used to include null fields in Patch requests.
5540	NullFields []string `json:"-"`
5541}
5542
5543func (s *GooglePrivacyDlpV2beta2KindExpression) MarshalJSON() ([]byte, error) {
5544	type NoMethod GooglePrivacyDlpV2beta2KindExpression
5545	raw := NoMethod(*s)
5546	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5547}
5548
5549// GooglePrivacyDlpV2beta2KmsWrappedCryptoKey: Include to use an
5550// existing data crypto key wrapped by KMS.
5551// Authorization requires the following IAM permissions when sending a
5552// request
5553// to perform a crypto transformation using a kms-wrapped crypto
5554// key:
5555// dlp.kms.encrypt
5556type GooglePrivacyDlpV2beta2KmsWrappedCryptoKey struct {
5557	// CryptoKeyName: The resource name of the KMS CryptoKey to use for
5558	// unwrapping. [required]
5559	CryptoKeyName string `json:"cryptoKeyName,omitempty"`
5560
5561	// WrappedKey: The wrapped data crypto key. [required]
5562	WrappedKey string `json:"wrappedKey,omitempty"`
5563
5564	// ForceSendFields is a list of field names (e.g. "CryptoKeyName") to
5565	// unconditionally include in API requests. By default, fields with
5566	// empty values are omitted from API requests. However, any non-pointer,
5567	// non-interface field appearing in ForceSendFields will be sent to the
5568	// server regardless of whether the field is empty or not. This may be
5569	// used to include empty fields in Patch requests.
5570	ForceSendFields []string `json:"-"`
5571
5572	// NullFields is a list of field names (e.g. "CryptoKeyName") to include
5573	// in API requests with the JSON null value. By default, fields with
5574	// empty values are omitted from API requests. However, any field with
5575	// an empty value appearing in NullFields will be sent to the server as
5576	// null. It is an error if a field in this list has a non-empty value.
5577	// This may be used to include null fields in Patch requests.
5578	NullFields []string `json:"-"`
5579}
5580
5581func (s *GooglePrivacyDlpV2beta2KmsWrappedCryptoKey) MarshalJSON() ([]byte, error) {
5582	type NoMethod GooglePrivacyDlpV2beta2KmsWrappedCryptoKey
5583	raw := NoMethod(*s)
5584	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5585}
5586
5587// GooglePrivacyDlpV2beta2LDiversityConfig: l-diversity metric, used for
5588// analysis of reidentification risk.
5589type GooglePrivacyDlpV2beta2LDiversityConfig struct {
5590	// QuasiIds: Set of quasi-identifiers indicating how equivalence classes
5591	// are
5592	// defined for the l-diversity computation. When multiple fields
5593	// are
5594	// specified, they are considered a single composite key.
5595	QuasiIds []*GooglePrivacyDlpV2beta2FieldId `json:"quasiIds,omitempty"`
5596
5597	// SensitiveAttribute: Sensitive field for computing the l-value.
5598	SensitiveAttribute *GooglePrivacyDlpV2beta2FieldId `json:"sensitiveAttribute,omitempty"`
5599
5600	// ForceSendFields is a list of field names (e.g. "QuasiIds") to
5601	// unconditionally include in API requests. By default, fields with
5602	// empty values are omitted from API requests. However, any non-pointer,
5603	// non-interface field appearing in ForceSendFields will be sent to the
5604	// server regardless of whether the field is empty or not. This may be
5605	// used to include empty fields in Patch requests.
5606	ForceSendFields []string `json:"-"`
5607
5608	// NullFields is a list of field names (e.g. "QuasiIds") to include in
5609	// API requests with the JSON null value. By default, fields with empty
5610	// values are omitted from API requests. However, any field with an
5611	// empty value appearing in NullFields will be sent to the server as
5612	// null. It is an error if a field in this list has a non-empty value.
5613	// This may be used to include null fields in Patch requests.
5614	NullFields []string `json:"-"`
5615}
5616
5617func (s *GooglePrivacyDlpV2beta2LDiversityConfig) MarshalJSON() ([]byte, error) {
5618	type NoMethod GooglePrivacyDlpV2beta2LDiversityConfig
5619	raw := NoMethod(*s)
5620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5621}
5622
5623// GooglePrivacyDlpV2beta2LDiversityEquivalenceClass: The set of
5624// columns' values that share the same ldiversity value.
5625type GooglePrivacyDlpV2beta2LDiversityEquivalenceClass struct {
5626	// EquivalenceClassSize: Size of the k-anonymity equivalence class.
5627	EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
5628
5629	// NumDistinctSensitiveValues: Number of distinct sensitive values in
5630	// this equivalence class.
5631	NumDistinctSensitiveValues int64 `json:"numDistinctSensitiveValues,omitempty,string"`
5632
5633	// QuasiIdsValues: Quasi-identifier values defining the k-anonymity
5634	// equivalence
5635	// class. The order is always the same as the original request.
5636	QuasiIdsValues []*GooglePrivacyDlpV2beta2Value `json:"quasiIdsValues,omitempty"`
5637
5638	// TopSensitiveValues: Estimated frequencies of top sensitive values.
5639	TopSensitiveValues []*GooglePrivacyDlpV2beta2ValueFrequency `json:"topSensitiveValues,omitempty"`
5640
5641	// ForceSendFields is a list of field names (e.g.
5642	// "EquivalenceClassSize") to unconditionally include in API requests.
5643	// By default, fields with empty values are omitted from API requests.
5644	// However, any non-pointer, non-interface field appearing in
5645	// ForceSendFields will be sent to the server regardless of whether the
5646	// field is empty or not. This may be used to include empty fields in
5647	// Patch requests.
5648	ForceSendFields []string `json:"-"`
5649
5650	// NullFields is a list of field names (e.g. "EquivalenceClassSize") to
5651	// include in API requests with the JSON null value. By default, fields
5652	// with empty values are omitted from API requests. However, any field
5653	// with an empty value appearing in NullFields will be sent to the
5654	// server as null. It is an error if a field in this list has a
5655	// non-empty value. This may be used to include null fields in Patch
5656	// requests.
5657	NullFields []string `json:"-"`
5658}
5659
5660func (s *GooglePrivacyDlpV2beta2LDiversityEquivalenceClass) MarshalJSON() ([]byte, error) {
5661	type NoMethod GooglePrivacyDlpV2beta2LDiversityEquivalenceClass
5662	raw := NoMethod(*s)
5663	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5664}
5665
5666type GooglePrivacyDlpV2beta2LDiversityHistogramBucket struct {
5667	// BucketSize: Total number of equivalence classes in this bucket.
5668	BucketSize int64 `json:"bucketSize,omitempty,string"`
5669
5670	// BucketValueCount: Total number of distinct equivalence classes in
5671	// this bucket.
5672	BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
5673
5674	// BucketValues: Sample of equivalence classes in this bucket. The total
5675	// number of
5676	// classes returned per bucket is capped at 20.
5677	BucketValues []*GooglePrivacyDlpV2beta2LDiversityEquivalenceClass `json:"bucketValues,omitempty"`
5678
5679	// SensitiveValueFrequencyLowerBound: Lower bound on the sensitive value
5680	// frequencies of the equivalence
5681	// classes in this bucket.
5682	SensitiveValueFrequencyLowerBound int64 `json:"sensitiveValueFrequencyLowerBound,omitempty,string"`
5683
5684	// SensitiveValueFrequencyUpperBound: Upper bound on the sensitive value
5685	// frequencies of the equivalence
5686	// classes in this bucket.
5687	SensitiveValueFrequencyUpperBound int64 `json:"sensitiveValueFrequencyUpperBound,omitempty,string"`
5688
5689	// ForceSendFields is a list of field names (e.g. "BucketSize") to
5690	// unconditionally include in API requests. By default, fields with
5691	// empty values are omitted from API requests. However, any non-pointer,
5692	// non-interface field appearing in ForceSendFields will be sent to the
5693	// server regardless of whether the field is empty or not. This may be
5694	// used to include empty fields in Patch requests.
5695	ForceSendFields []string `json:"-"`
5696
5697	// NullFields is a list of field names (e.g. "BucketSize") to include in
5698	// API requests with the JSON null value. By default, fields with empty
5699	// values are omitted from API requests. However, any field with an
5700	// empty value appearing in NullFields will be sent to the server as
5701	// null. It is an error if a field in this list has a non-empty value.
5702	// This may be used to include null fields in Patch requests.
5703	NullFields []string `json:"-"`
5704}
5705
5706func (s *GooglePrivacyDlpV2beta2LDiversityHistogramBucket) MarshalJSON() ([]byte, error) {
5707	type NoMethod GooglePrivacyDlpV2beta2LDiversityHistogramBucket
5708	raw := NoMethod(*s)
5709	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5710}
5711
5712// GooglePrivacyDlpV2beta2LDiversityResult: Result of the l-diversity
5713// computation.
5714type GooglePrivacyDlpV2beta2LDiversityResult struct {
5715	// SensitiveValueFrequencyHistogramBuckets: Histogram of l-diversity
5716	// equivalence class sensitive value frequencies.
5717	SensitiveValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2beta2LDiversityHistogramBucket `json:"sensitiveValueFrequencyHistogramBuckets,omitempty"`
5718
5719	// ForceSendFields is a list of field names (e.g.
5720	// "SensitiveValueFrequencyHistogramBuckets") to unconditionally include
5721	// in API requests. By default, fields with empty values are omitted
5722	// from API requests. However, any non-pointer, non-interface field
5723	// appearing in ForceSendFields will be sent to the server regardless of
5724	// whether the field is empty or not. This may be used to include empty
5725	// fields in Patch requests.
5726	ForceSendFields []string `json:"-"`
5727
5728	// NullFields is a list of field names (e.g.
5729	// "SensitiveValueFrequencyHistogramBuckets") to include in API requests
5730	// with the JSON null value. By default, fields with empty values are
5731	// omitted from API requests. However, any field with an empty value
5732	// appearing in NullFields will be sent to the server as null. It is an
5733	// error if a field in this list has a non-empty value. This may be used
5734	// to include null fields in Patch requests.
5735	NullFields []string `json:"-"`
5736}
5737
5738func (s *GooglePrivacyDlpV2beta2LDiversityResult) MarshalJSON() ([]byte, error) {
5739	type NoMethod GooglePrivacyDlpV2beta2LDiversityResult
5740	raw := NoMethod(*s)
5741	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5742}
5743
5744// GooglePrivacyDlpV2beta2LikelihoodAdjustment: Message for specifying
5745// an adjustment to the likelihood of a finding as
5746// part of a detection rule.
5747type GooglePrivacyDlpV2beta2LikelihoodAdjustment struct {
5748	// FixedLikelihood: Set the likelihood of a finding to a fixed value.
5749	//
5750	// Possible values:
5751	//   "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
5752	// likelihoods is included.
5753	//   "VERY_UNLIKELY" - Few matching elements.
5754	//   "UNLIKELY"
5755	//   "POSSIBLE" - Some matching elements.
5756	//   "LIKELY"
5757	//   "VERY_LIKELY" - Many matching elements.
5758	FixedLikelihood string `json:"fixedLikelihood,omitempty"`
5759
5760	// RelativeLikelihood: Increase or decrease the likelihood by the
5761	// specified number of
5762	// levels. For example, if a finding would be `POSSIBLE` without
5763	// the
5764	// detection rule and `relative_likelihood` is 1, then it is upgraded
5765	// to
5766	// `LIKELY`, while a value of -1 would downgrade it to
5767	// `UNLIKELY`.
5768	// Likelihood may never drop below `VERY_UNLIKELY` or
5769	// exceed
5770	// `VERY_LIKELY`, so applying an adjustment of 1 followed by
5771	// an
5772	// adjustment of -1 when base likelihood is `VERY_LIKELY` will result
5773	// in
5774	// a final likelihood of `LIKELY`.
5775	RelativeLikelihood int64 `json:"relativeLikelihood,omitempty"`
5776
5777	// ForceSendFields is a list of field names (e.g. "FixedLikelihood") to
5778	// unconditionally include in API requests. By default, fields with
5779	// empty values are omitted from API requests. However, any non-pointer,
5780	// non-interface field appearing in ForceSendFields will be sent to the
5781	// server regardless of whether the field is empty or not. This may be
5782	// used to include empty fields in Patch requests.
5783	ForceSendFields []string `json:"-"`
5784
5785	// NullFields is a list of field names (e.g. "FixedLikelihood") to
5786	// include in API requests with the JSON null value. By default, fields
5787	// with empty values are omitted from API requests. However, any field
5788	// with an empty value appearing in NullFields will be sent to the
5789	// server as null. It is an error if a field in this list has a
5790	// non-empty value. This may be used to include null fields in Patch
5791	// requests.
5792	NullFields []string `json:"-"`
5793}
5794
5795func (s *GooglePrivacyDlpV2beta2LikelihoodAdjustment) MarshalJSON() ([]byte, error) {
5796	type NoMethod GooglePrivacyDlpV2beta2LikelihoodAdjustment
5797	raw := NoMethod(*s)
5798	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5799}
5800
5801// GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse: Response
5802// message for ListDeidentifyTemplates.
5803type GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse struct {
5804	// DeidentifyTemplates: List of deidentify templates, up to page_size
5805	// in
5806	// ListDeidentifyTemplatesRequest.
5807	DeidentifyTemplates []*GooglePrivacyDlpV2beta2DeidentifyTemplate `json:"deidentifyTemplates,omitempty"`
5808
5809	// NextPageToken: If the next page is available then the next page token
5810	// to be used
5811	// in following ListDeidentifyTemplates request.
5812	NextPageToken string `json:"nextPageToken,omitempty"`
5813
5814	// ServerResponse contains the HTTP response code and headers from the
5815	// server.
5816	googleapi.ServerResponse `json:"-"`
5817
5818	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplates")
5819	// to unconditionally include in API requests. By default, fields with
5820	// empty values are omitted from API requests. However, any non-pointer,
5821	// non-interface field appearing in ForceSendFields will be sent to the
5822	// server regardless of whether the field is empty or not. This may be
5823	// used to include empty fields in Patch requests.
5824	ForceSendFields []string `json:"-"`
5825
5826	// NullFields is a list of field names (e.g. "DeidentifyTemplates") to
5827	// include in API requests with the JSON null value. By default, fields
5828	// with empty values are omitted from API requests. However, any field
5829	// with an empty value appearing in NullFields will be sent to the
5830	// server as null. It is an error if a field in this list has a
5831	// non-empty value. This may be used to include null fields in Patch
5832	// requests.
5833	NullFields []string `json:"-"`
5834}
5835
5836func (s *GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse) MarshalJSON() ([]byte, error) {
5837	type NoMethod GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
5838	raw := NoMethod(*s)
5839	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5840}
5841
5842// GooglePrivacyDlpV2beta2ListDlpJobsResponse: The response message for
5843// listing DLP jobs.
5844type GooglePrivacyDlpV2beta2ListDlpJobsResponse struct {
5845	// Jobs: A list of DlpJobs that matches the specified filter in the
5846	// request.
5847	Jobs []*GooglePrivacyDlpV2beta2DlpJob `json:"jobs,omitempty"`
5848
5849	// NextPageToken: The standard List next-page token.
5850	NextPageToken string `json:"nextPageToken,omitempty"`
5851
5852	// ServerResponse contains the HTTP response code and headers from the
5853	// server.
5854	googleapi.ServerResponse `json:"-"`
5855
5856	// ForceSendFields is a list of field names (e.g. "Jobs") to
5857	// unconditionally include in API requests. By default, fields with
5858	// empty values are omitted from API requests. However, any non-pointer,
5859	// non-interface field appearing in ForceSendFields will be sent to the
5860	// server regardless of whether the field is empty or not. This may be
5861	// used to include empty fields in Patch requests.
5862	ForceSendFields []string `json:"-"`
5863
5864	// NullFields is a list of field names (e.g. "Jobs") to include in API
5865	// requests with the JSON null value. By default, fields with empty
5866	// values are omitted from API requests. However, any field with an
5867	// empty value appearing in NullFields will be sent to the server as
5868	// null. It is an error if a field in this list has a non-empty value.
5869	// This may be used to include null fields in Patch requests.
5870	NullFields []string `json:"-"`
5871}
5872
5873func (s *GooglePrivacyDlpV2beta2ListDlpJobsResponse) MarshalJSON() ([]byte, error) {
5874	type NoMethod GooglePrivacyDlpV2beta2ListDlpJobsResponse
5875	raw := NoMethod(*s)
5876	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5877}
5878
5879// GooglePrivacyDlpV2beta2ListInfoTypesResponse: Response to the
5880// ListInfoTypes request.
5881type GooglePrivacyDlpV2beta2ListInfoTypesResponse struct {
5882	// InfoTypes: Set of sensitive infoTypes.
5883	InfoTypes []*GooglePrivacyDlpV2beta2InfoTypeDescription `json:"infoTypes,omitempty"`
5884
5885	// ServerResponse contains the HTTP response code and headers from the
5886	// server.
5887	googleapi.ServerResponse `json:"-"`
5888
5889	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
5890	// unconditionally include in API requests. By default, fields with
5891	// empty values are omitted from API requests. However, any non-pointer,
5892	// non-interface field appearing in ForceSendFields will be sent to the
5893	// server regardless of whether the field is empty or not. This may be
5894	// used to include empty fields in Patch requests.
5895	ForceSendFields []string `json:"-"`
5896
5897	// NullFields is a list of field names (e.g. "InfoTypes") to include in
5898	// API requests with the JSON null value. By default, fields with empty
5899	// values are omitted from API requests. However, any field with an
5900	// empty value appearing in NullFields will be sent to the server as
5901	// null. It is an error if a field in this list has a non-empty value.
5902	// This may be used to include null fields in Patch requests.
5903	NullFields []string `json:"-"`
5904}
5905
5906func (s *GooglePrivacyDlpV2beta2ListInfoTypesResponse) MarshalJSON() ([]byte, error) {
5907	type NoMethod GooglePrivacyDlpV2beta2ListInfoTypesResponse
5908	raw := NoMethod(*s)
5909	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5910}
5911
5912// GooglePrivacyDlpV2beta2ListInspectTemplatesResponse: Response message
5913// for ListInspectTemplates.
5914type GooglePrivacyDlpV2beta2ListInspectTemplatesResponse struct {
5915	// InspectTemplates: List of inspectTemplates, up to page_size in
5916	// ListInspectTemplatesRequest.
5917	InspectTemplates []*GooglePrivacyDlpV2beta2InspectTemplate `json:"inspectTemplates,omitempty"`
5918
5919	// NextPageToken: If the next page is available then the next page token
5920	// to be used
5921	// in following ListInspectTemplates request.
5922	NextPageToken string `json:"nextPageToken,omitempty"`
5923
5924	// ServerResponse contains the HTTP response code and headers from the
5925	// server.
5926	googleapi.ServerResponse `json:"-"`
5927
5928	// ForceSendFields is a list of field names (e.g. "InspectTemplates") to
5929	// unconditionally include in API requests. By default, fields with
5930	// empty values are omitted from API requests. However, any non-pointer,
5931	// non-interface field appearing in ForceSendFields will be sent to the
5932	// server regardless of whether the field is empty or not. This may be
5933	// used to include empty fields in Patch requests.
5934	ForceSendFields []string `json:"-"`
5935
5936	// NullFields is a list of field names (e.g. "InspectTemplates") to
5937	// include in API requests with the JSON null value. By default, fields
5938	// with empty values are omitted from API requests. However, any field
5939	// with an empty value appearing in NullFields will be sent to the
5940	// server as null. It is an error if a field in this list has a
5941	// non-empty value. This may be used to include null fields in Patch
5942	// requests.
5943	NullFields []string `json:"-"`
5944}
5945
5946func (s *GooglePrivacyDlpV2beta2ListInspectTemplatesResponse) MarshalJSON() ([]byte, error) {
5947	type NoMethod GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
5948	raw := NoMethod(*s)
5949	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5950}
5951
5952// GooglePrivacyDlpV2beta2ListJobTriggersResponse: Response message for
5953// ListJobTriggers.
5954type GooglePrivacyDlpV2beta2ListJobTriggersResponse struct {
5955	// JobTriggers: List of triggeredJobs, up to page_size in
5956	// ListJobTriggersRequest.
5957	JobTriggers []*GooglePrivacyDlpV2beta2JobTrigger `json:"jobTriggers,omitempty"`
5958
5959	// NextPageToken: If the next page is available then the next page token
5960	// to be used
5961	// in following ListJobTriggers request.
5962	NextPageToken string `json:"nextPageToken,omitempty"`
5963
5964	// ServerResponse contains the HTTP response code and headers from the
5965	// server.
5966	googleapi.ServerResponse `json:"-"`
5967
5968	// ForceSendFields is a list of field names (e.g. "JobTriggers") to
5969	// unconditionally include in API requests. By default, fields with
5970	// empty values are omitted from API requests. However, any non-pointer,
5971	// non-interface field appearing in ForceSendFields will be sent to the
5972	// server regardless of whether the field is empty or not. This may be
5973	// used to include empty fields in Patch requests.
5974	ForceSendFields []string `json:"-"`
5975
5976	// NullFields is a list of field names (e.g. "JobTriggers") to include
5977	// in API requests with the JSON null value. By default, fields with
5978	// empty values are omitted from API requests. However, any field with
5979	// an empty value appearing in NullFields will be sent to the server as
5980	// null. It is an error if a field in this list has a non-empty value.
5981	// This may be used to include null fields in Patch requests.
5982	NullFields []string `json:"-"`
5983}
5984
5985func (s *GooglePrivacyDlpV2beta2ListJobTriggersResponse) MarshalJSON() ([]byte, error) {
5986	type NoMethod GooglePrivacyDlpV2beta2ListJobTriggersResponse
5987	raw := NoMethod(*s)
5988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5989}
5990
5991// GooglePrivacyDlpV2beta2Location: Specifies the location of the
5992// finding.
5993type GooglePrivacyDlpV2beta2Location struct {
5994	// ByteRange: Zero-based byte offsets delimiting the finding.
5995	// These are relative to the finding's containing element.
5996	// Note that when the content is not textual, this references
5997	// the UTF-8 encoded textual representation of the content.
5998	// Omitted if content is an image.
5999	ByteRange *GooglePrivacyDlpV2beta2Range `json:"byteRange,omitempty"`
6000
6001	// CodepointRange: Unicode character offsets delimiting the
6002	// finding.
6003	// These are relative to the finding's containing element.
6004	// Provided when the content is text.
6005	CodepointRange *GooglePrivacyDlpV2beta2Range `json:"codepointRange,omitempty"`
6006
6007	// FieldId: The pointer to the property or cell that contained the
6008	// finding.
6009	// Provided when the finding's containing element is a cell in a
6010	// table
6011	// or a property of storage object.
6012	FieldId *GooglePrivacyDlpV2beta2FieldId `json:"fieldId,omitempty"`
6013
6014	// ImageBoxes: The area within the image that contained the
6015	// finding.
6016	// Provided when the content is an image.
6017	ImageBoxes []*GooglePrivacyDlpV2beta2ImageLocation `json:"imageBoxes,omitempty"`
6018
6019	// RecordKey: The pointer to the record in storage that contained the
6020	// field the
6021	// finding was found in.
6022	// Provided when the finding's containing element is a property
6023	// of a storage object.
6024	RecordKey *GooglePrivacyDlpV2beta2RecordKey `json:"recordKey,omitempty"`
6025
6026	// TableLocation: The pointer to the row of the table that contained the
6027	// finding.
6028	// Provided when the finding's containing element is a cell of a table.
6029	TableLocation *GooglePrivacyDlpV2beta2TableLocation `json:"tableLocation,omitempty"`
6030
6031	// ForceSendFields is a list of field names (e.g. "ByteRange") to
6032	// unconditionally include in API requests. By default, fields with
6033	// empty values are omitted from API requests. However, any non-pointer,
6034	// non-interface field appearing in ForceSendFields will be sent to the
6035	// server regardless of whether the field is empty or not. This may be
6036	// used to include empty fields in Patch requests.
6037	ForceSendFields []string `json:"-"`
6038
6039	// NullFields is a list of field names (e.g. "ByteRange") to include in
6040	// API requests with the JSON null value. By default, fields with empty
6041	// values are omitted from API requests. However, any field with an
6042	// empty value appearing in NullFields will be sent to the server as
6043	// null. It is an error if a field in this list has a non-empty value.
6044	// This may be used to include null fields in Patch requests.
6045	NullFields []string `json:"-"`
6046}
6047
6048func (s *GooglePrivacyDlpV2beta2Location) MarshalJSON() ([]byte, error) {
6049	type NoMethod GooglePrivacyDlpV2beta2Location
6050	raw := NoMethod(*s)
6051	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6052}
6053
6054// GooglePrivacyDlpV2beta2NumericalStatsConfig: Compute numerical stats
6055// over an individual column, including
6056// min, max, and quantiles.
6057type GooglePrivacyDlpV2beta2NumericalStatsConfig struct {
6058	// Field: Field to compute numerical stats on. Supported types
6059	// are
6060	// integer, float, date, datetime, timestamp, time.
6061	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
6062
6063	// ForceSendFields is a list of field names (e.g. "Field") to
6064	// unconditionally include in API requests. By default, fields with
6065	// empty values are omitted from API requests. However, any non-pointer,
6066	// non-interface field appearing in ForceSendFields will be sent to the
6067	// server regardless of whether the field is empty or not. This may be
6068	// used to include empty fields in Patch requests.
6069	ForceSendFields []string `json:"-"`
6070
6071	// NullFields is a list of field names (e.g. "Field") to include in API
6072	// requests with the JSON null value. By default, fields with empty
6073	// values are omitted from API requests. However, any field with an
6074	// empty value appearing in NullFields will be sent to the server as
6075	// null. It is an error if a field in this list has a non-empty value.
6076	// This may be used to include null fields in Patch requests.
6077	NullFields []string `json:"-"`
6078}
6079
6080func (s *GooglePrivacyDlpV2beta2NumericalStatsConfig) MarshalJSON() ([]byte, error) {
6081	type NoMethod GooglePrivacyDlpV2beta2NumericalStatsConfig
6082	raw := NoMethod(*s)
6083	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6084}
6085
6086// GooglePrivacyDlpV2beta2NumericalStatsResult: Result of the numerical
6087// stats computation.
6088type GooglePrivacyDlpV2beta2NumericalStatsResult struct {
6089	// MaxValue: Maximum value appearing in the column.
6090	MaxValue *GooglePrivacyDlpV2beta2Value `json:"maxValue,omitempty"`
6091
6092	// MinValue: Minimum value appearing in the column.
6093	MinValue *GooglePrivacyDlpV2beta2Value `json:"minValue,omitempty"`
6094
6095	// QuantileValues: List of 99 values that partition the set of field
6096	// values into 100 equal
6097	// sized buckets.
6098	QuantileValues []*GooglePrivacyDlpV2beta2Value `json:"quantileValues,omitempty"`
6099
6100	// ForceSendFields is a list of field names (e.g. "MaxValue") to
6101	// unconditionally include in API requests. By default, fields with
6102	// empty values are omitted from API requests. However, any non-pointer,
6103	// non-interface field appearing in ForceSendFields will be sent to the
6104	// server regardless of whether the field is empty or not. This may be
6105	// used to include empty fields in Patch requests.
6106	ForceSendFields []string `json:"-"`
6107
6108	// NullFields is a list of field names (e.g. "MaxValue") to include in
6109	// API requests with the JSON null value. By default, fields with empty
6110	// values are omitted from API requests. However, any field with an
6111	// empty value appearing in NullFields will be sent to the server as
6112	// null. It is an error if a field in this list has a non-empty value.
6113	// This may be used to include null fields in Patch requests.
6114	NullFields []string `json:"-"`
6115}
6116
6117func (s *GooglePrivacyDlpV2beta2NumericalStatsResult) MarshalJSON() ([]byte, error) {
6118	type NoMethod GooglePrivacyDlpV2beta2NumericalStatsResult
6119	raw := NoMethod(*s)
6120	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6121}
6122
6123// GooglePrivacyDlpV2beta2OutputStorageConfig: Cloud repository for
6124// storing output.
6125type GooglePrivacyDlpV2beta2OutputStorageConfig struct {
6126	// OutputSchema: Schema used for writing the findings. Columns are
6127	// derived from the
6128	// `Finding` object. If appending to an existing table, any columns from
6129	// the
6130	// predefined schema that are missing will be added. No columns in
6131	// the
6132	// existing table will be deleted.
6133	//
6134	// If unspecified, then all available columns will be used for a new
6135	// table,
6136	// and no changes will be made to an existing table.
6137	//
6138	// Possible values:
6139	//   "OUTPUT_SCHEMA_UNSPECIFIED"
6140	//   "BASIC_COLUMNS" - Basic schema including only `info_type`, `quote`,
6141	// `certainty`, and
6142	// `timestamp`.
6143	//   "GCS_COLUMNS" - Schema tailored to findings from scanning Google
6144	// Cloud Storage.
6145	//   "DATASTORE_COLUMNS" - Schema tailored to findings from scanning
6146	// Google Datastore.
6147	//   "BIG_QUERY_COLUMNS" - Schema tailored to findings from scanning
6148	// Google BigQuery.
6149	//   "ALL_COLUMNS" - Schema containing all columns.
6150	OutputSchema string `json:"outputSchema,omitempty"`
6151
6152	// Table: Store findings in an existing table or a new table in an
6153	// existing
6154	// dataset. Each column in an existing table must have the same name,
6155	// type,
6156	// and mode of a field in the `Finding` object. If table_id is not set a
6157	// new
6158	// one will be generated for you with the following
6159	// format:
6160	// dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used
6161	// for
6162	// generating the date details.
6163	Table *GooglePrivacyDlpV2beta2BigQueryTable `json:"table,omitempty"`
6164
6165	// ForceSendFields is a list of field names (e.g. "OutputSchema") to
6166	// unconditionally include in API requests. By default, fields with
6167	// empty values are omitted from API requests. However, any non-pointer,
6168	// non-interface field appearing in ForceSendFields will be sent to the
6169	// server regardless of whether the field is empty or not. This may be
6170	// used to include empty fields in Patch requests.
6171	ForceSendFields []string `json:"-"`
6172
6173	// NullFields is a list of field names (e.g. "OutputSchema") to include
6174	// in API requests with the JSON null value. By default, fields with
6175	// empty values are omitted from API requests. However, any field with
6176	// an empty value appearing in NullFields will be sent to the server as
6177	// null. It is an error if a field in this list has a non-empty value.
6178	// This may be used to include null fields in Patch requests.
6179	NullFields []string `json:"-"`
6180}
6181
6182func (s *GooglePrivacyDlpV2beta2OutputStorageConfig) MarshalJSON() ([]byte, error) {
6183	type NoMethod GooglePrivacyDlpV2beta2OutputStorageConfig
6184	raw := NoMethod(*s)
6185	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6186}
6187
6188// GooglePrivacyDlpV2beta2PartitionId: Datastore partition ID.
6189// A partition ID identifies a grouping of entities. The grouping is
6190// always
6191// by project and namespace, however the namespace ID may be empty.
6192//
6193// A partition ID contains several dimensions:
6194// project ID and namespace ID.
6195type GooglePrivacyDlpV2beta2PartitionId struct {
6196	// NamespaceId: If not empty, the ID of the namespace to which the
6197	// entities belong.
6198	NamespaceId string `json:"namespaceId,omitempty"`
6199
6200	// ProjectId: The ID of the project to which the entities belong.
6201	ProjectId string `json:"projectId,omitempty"`
6202
6203	// ForceSendFields is a list of field names (e.g. "NamespaceId") to
6204	// unconditionally include in API requests. By default, fields with
6205	// empty values are omitted from API requests. However, any non-pointer,
6206	// non-interface field appearing in ForceSendFields will be sent to the
6207	// server regardless of whether the field is empty or not. This may be
6208	// used to include empty fields in Patch requests.
6209	ForceSendFields []string `json:"-"`
6210
6211	// NullFields is a list of field names (e.g. "NamespaceId") to include
6212	// in API requests with the JSON null value. By default, fields with
6213	// empty values are omitted from API requests. However, any field with
6214	// an empty value appearing in NullFields will be sent to the server as
6215	// null. It is an error if a field in this list has a non-empty value.
6216	// This may be used to include null fields in Patch requests.
6217	NullFields []string `json:"-"`
6218}
6219
6220func (s *GooglePrivacyDlpV2beta2PartitionId) MarshalJSON() ([]byte, error) {
6221	type NoMethod GooglePrivacyDlpV2beta2PartitionId
6222	raw := NoMethod(*s)
6223	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6224}
6225
6226// GooglePrivacyDlpV2beta2PathElement: A (kind, ID/name) pair used to
6227// construct a key path.
6228//
6229// If either name or ID is set, the element is complete.
6230// If neither is set, the element is incomplete.
6231type GooglePrivacyDlpV2beta2PathElement struct {
6232	// Id: The auto-allocated ID of the entity.
6233	// Never equal to zero. Values less than zero are discouraged and may
6234	// not
6235	// be supported in the future.
6236	Id int64 `json:"id,omitempty,string"`
6237
6238	// Kind: The kind of the entity.
6239	// A kind matching regex `__.*__` is reserved/read-only.
6240	// A kind must not contain more than 1500 bytes when UTF-8
6241	// encoded.
6242	// Cannot be "".
6243	Kind string `json:"kind,omitempty"`
6244
6245	// Name: The name of the entity.
6246	// A name matching regex `__.*__` is reserved/read-only.
6247	// A name must not be more than 1500 bytes when UTF-8 encoded.
6248	// Cannot be "".
6249	Name string `json:"name,omitempty"`
6250
6251	// ForceSendFields is a list of field names (e.g. "Id") to
6252	// unconditionally include in API requests. By default, fields with
6253	// empty values are omitted from API requests. However, any non-pointer,
6254	// non-interface field appearing in ForceSendFields will be sent to the
6255	// server regardless of whether the field is empty or not. This may be
6256	// used to include empty fields in Patch requests.
6257	ForceSendFields []string `json:"-"`
6258
6259	// NullFields is a list of field names (e.g. "Id") to include in API
6260	// requests with the JSON null value. By default, fields with empty
6261	// values are omitted from API requests. However, any field with an
6262	// empty value appearing in NullFields will be sent to the server as
6263	// null. It is an error if a field in this list has a non-empty value.
6264	// This may be used to include null fields in Patch requests.
6265	NullFields []string `json:"-"`
6266}
6267
6268func (s *GooglePrivacyDlpV2beta2PathElement) MarshalJSON() ([]byte, error) {
6269	type NoMethod GooglePrivacyDlpV2beta2PathElement
6270	raw := NoMethod(*s)
6271	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6272}
6273
6274// GooglePrivacyDlpV2beta2PrimitiveTransformation: A rule for
6275// transforming a value.
6276type GooglePrivacyDlpV2beta2PrimitiveTransformation struct {
6277	BucketingConfig *GooglePrivacyDlpV2beta2BucketingConfig `json:"bucketingConfig,omitempty"`
6278
6279	CharacterMaskConfig *GooglePrivacyDlpV2beta2CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
6280
6281	CryptoHashConfig *GooglePrivacyDlpV2beta2CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
6282
6283	CryptoReplaceFfxFpeConfig *GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig `json:"cryptoReplaceFfxFpeConfig,omitempty"`
6284
6285	DateShiftConfig *GooglePrivacyDlpV2beta2DateShiftConfig `json:"dateShiftConfig,omitempty"`
6286
6287	FixedSizeBucketingConfig *GooglePrivacyDlpV2beta2FixedSizeBucketingConfig `json:"fixedSizeBucketingConfig,omitempty"`
6288
6289	RedactConfig *GooglePrivacyDlpV2beta2RedactConfig `json:"redactConfig,omitempty"`
6290
6291	ReplaceConfig *GooglePrivacyDlpV2beta2ReplaceValueConfig `json:"replaceConfig,omitempty"`
6292
6293	ReplaceWithInfoTypeConfig *GooglePrivacyDlpV2beta2ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
6294
6295	TimePartConfig *GooglePrivacyDlpV2beta2TimePartConfig `json:"timePartConfig,omitempty"`
6296
6297	// ForceSendFields is a list of field names (e.g. "BucketingConfig") to
6298	// unconditionally include in API requests. By default, fields with
6299	// empty values are omitted from API requests. However, any non-pointer,
6300	// non-interface field appearing in ForceSendFields will be sent to the
6301	// server regardless of whether the field is empty or not. This may be
6302	// used to include empty fields in Patch requests.
6303	ForceSendFields []string `json:"-"`
6304
6305	// NullFields is a list of field names (e.g. "BucketingConfig") to
6306	// include in API requests with the JSON null value. By default, fields
6307	// with empty values are omitted from API requests. However, any field
6308	// with an empty value appearing in NullFields will be sent to the
6309	// server as null. It is an error if a field in this list has a
6310	// non-empty value. This may be used to include null fields in Patch
6311	// requests.
6312	NullFields []string `json:"-"`
6313}
6314
6315func (s *GooglePrivacyDlpV2beta2PrimitiveTransformation) MarshalJSON() ([]byte, error) {
6316	type NoMethod GooglePrivacyDlpV2beta2PrimitiveTransformation
6317	raw := NoMethod(*s)
6318	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6319}
6320
6321// GooglePrivacyDlpV2beta2PrivacyMetric: Privacy metric to compute for
6322// reidentification risk analysis.
6323type GooglePrivacyDlpV2beta2PrivacyMetric struct {
6324	CategoricalStatsConfig *GooglePrivacyDlpV2beta2CategoricalStatsConfig `json:"categoricalStatsConfig,omitempty"`
6325
6326	KAnonymityConfig *GooglePrivacyDlpV2beta2KAnonymityConfig `json:"kAnonymityConfig,omitempty"`
6327
6328	KMapEstimationConfig *GooglePrivacyDlpV2beta2KMapEstimationConfig `json:"kMapEstimationConfig,omitempty"`
6329
6330	LDiversityConfig *GooglePrivacyDlpV2beta2LDiversityConfig `json:"lDiversityConfig,omitempty"`
6331
6332	NumericalStatsConfig *GooglePrivacyDlpV2beta2NumericalStatsConfig `json:"numericalStatsConfig,omitempty"`
6333
6334	// ForceSendFields is a list of field names (e.g.
6335	// "CategoricalStatsConfig") to unconditionally include in API requests.
6336	// By default, fields with empty values are omitted from API requests.
6337	// However, any non-pointer, non-interface field appearing in
6338	// ForceSendFields will be sent to the server regardless of whether the
6339	// field is empty or not. This may be used to include empty fields in
6340	// Patch requests.
6341	ForceSendFields []string `json:"-"`
6342
6343	// NullFields is a list of field names (e.g. "CategoricalStatsConfig")
6344	// to include in API requests with the JSON null value. By default,
6345	// fields with empty values are omitted from API requests. However, any
6346	// field with an empty value appearing in NullFields will be sent to the
6347	// server as null. It is an error if a field in this list has a
6348	// non-empty value. This may be used to include null fields in Patch
6349	// requests.
6350	NullFields []string `json:"-"`
6351}
6352
6353func (s *GooglePrivacyDlpV2beta2PrivacyMetric) MarshalJSON() ([]byte, error) {
6354	type NoMethod GooglePrivacyDlpV2beta2PrivacyMetric
6355	raw := NoMethod(*s)
6356	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6357}
6358
6359// GooglePrivacyDlpV2beta2Proximity: Message for specifying a window
6360// around a finding to apply a detection
6361// rule.
6362type GooglePrivacyDlpV2beta2Proximity struct {
6363	// WindowAfter: Number of characters after the finding to consider.
6364	WindowAfter int64 `json:"windowAfter,omitempty"`
6365
6366	// WindowBefore: Number of characters before the finding to consider.
6367	WindowBefore int64 `json:"windowBefore,omitempty"`
6368
6369	// ForceSendFields is a list of field names (e.g. "WindowAfter") to
6370	// unconditionally include in API requests. By default, fields with
6371	// empty values are omitted from API requests. However, any non-pointer,
6372	// non-interface field appearing in ForceSendFields will be sent to the
6373	// server regardless of whether the field is empty or not. This may be
6374	// used to include empty fields in Patch requests.
6375	ForceSendFields []string `json:"-"`
6376
6377	// NullFields is a list of field names (e.g. "WindowAfter") to include
6378	// in API requests with the JSON null value. By default, fields with
6379	// empty values are omitted from API requests. However, any field with
6380	// an empty value appearing in NullFields will be sent to the server as
6381	// null. It is an error if a field in this list has a non-empty value.
6382	// This may be used to include null fields in Patch requests.
6383	NullFields []string `json:"-"`
6384}
6385
6386func (s *GooglePrivacyDlpV2beta2Proximity) MarshalJSON() ([]byte, error) {
6387	type NoMethod GooglePrivacyDlpV2beta2Proximity
6388	raw := NoMethod(*s)
6389	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6390}
6391
6392// GooglePrivacyDlpV2beta2PublishToPubSub: Publish the results of a
6393// DlpJob to a pub sub channel.
6394// Compatible with: Inpect, Risk
6395type GooglePrivacyDlpV2beta2PublishToPubSub struct {
6396	// Topic: Cloud Pub/Sub topic to send notifications to. The topic must
6397	// have given
6398	// publishing access rights to the DLP API service account executing
6399	// the long running DlpJob sending the notifications.
6400	// Format is projects/{project}/topics/{topic}.
6401	Topic string `json:"topic,omitempty"`
6402
6403	// ForceSendFields is a list of field names (e.g. "Topic") to
6404	// unconditionally include in API requests. By default, fields with
6405	// empty values are omitted from API requests. However, any non-pointer,
6406	// non-interface field appearing in ForceSendFields will be sent to the
6407	// server regardless of whether the field is empty or not. This may be
6408	// used to include empty fields in Patch requests.
6409	ForceSendFields []string `json:"-"`
6410
6411	// NullFields is a list of field names (e.g. "Topic") to include in API
6412	// requests with the JSON null value. By default, fields with empty
6413	// values are omitted from API requests. However, any field with an
6414	// empty value appearing in NullFields will be sent to the server as
6415	// null. It is an error if a field in this list has a non-empty value.
6416	// This may be used to include null fields in Patch requests.
6417	NullFields []string `json:"-"`
6418}
6419
6420func (s *GooglePrivacyDlpV2beta2PublishToPubSub) MarshalJSON() ([]byte, error) {
6421	type NoMethod GooglePrivacyDlpV2beta2PublishToPubSub
6422	raw := NoMethod(*s)
6423	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6424}
6425
6426// GooglePrivacyDlpV2beta2QuasiIdField: A quasi-identifier column has a
6427// custom_tag, used to know which column
6428// in the data corresponds to which column in the statistical model.
6429type GooglePrivacyDlpV2beta2QuasiIdField struct {
6430	CustomTag string `json:"customTag,omitempty"`
6431
6432	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
6433
6434	// ForceSendFields is a list of field names (e.g. "CustomTag") to
6435	// unconditionally include in API requests. By default, fields with
6436	// empty values are omitted from API requests. However, any non-pointer,
6437	// non-interface field appearing in ForceSendFields will be sent to the
6438	// server regardless of whether the field is empty or not. This may be
6439	// used to include empty fields in Patch requests.
6440	ForceSendFields []string `json:"-"`
6441
6442	// NullFields is a list of field names (e.g. "CustomTag") to include in
6443	// API requests with the JSON null value. By default, fields with empty
6444	// values are omitted from API requests. However, any field with an
6445	// empty value appearing in NullFields will be sent to the server as
6446	// null. It is an error if a field in this list has a non-empty value.
6447	// This may be used to include null fields in Patch requests.
6448	NullFields []string `json:"-"`
6449}
6450
6451func (s *GooglePrivacyDlpV2beta2QuasiIdField) MarshalJSON() ([]byte, error) {
6452	type NoMethod GooglePrivacyDlpV2beta2QuasiIdField
6453	raw := NoMethod(*s)
6454	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6455}
6456
6457// GooglePrivacyDlpV2beta2QuoteInfo: Message for infoType-dependent
6458// details parsed from quote.
6459type GooglePrivacyDlpV2beta2QuoteInfo struct {
6460	DateTime *GooglePrivacyDlpV2beta2DateTime `json:"dateTime,omitempty"`
6461
6462	// ForceSendFields is a list of field names (e.g. "DateTime") to
6463	// unconditionally include in API requests. By default, fields with
6464	// empty values are omitted from API requests. However, any non-pointer,
6465	// non-interface field appearing in ForceSendFields will be sent to the
6466	// server regardless of whether the field is empty or not. This may be
6467	// used to include empty fields in Patch requests.
6468	ForceSendFields []string `json:"-"`
6469
6470	// NullFields is a list of field names (e.g. "DateTime") to include in
6471	// API requests with the JSON null value. By default, fields with empty
6472	// values are omitted from API requests. However, any field with an
6473	// empty value appearing in NullFields will be sent to the server as
6474	// null. It is an error if a field in this list has a non-empty value.
6475	// This may be used to include null fields in Patch requests.
6476	NullFields []string `json:"-"`
6477}
6478
6479func (s *GooglePrivacyDlpV2beta2QuoteInfo) MarshalJSON() ([]byte, error) {
6480	type NoMethod GooglePrivacyDlpV2beta2QuoteInfo
6481	raw := NoMethod(*s)
6482	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6483}
6484
6485// GooglePrivacyDlpV2beta2Range: Generic half-open interval [start, end)
6486type GooglePrivacyDlpV2beta2Range struct {
6487	// End: Index of the last character of the range (exclusive).
6488	End int64 `json:"end,omitempty,string"`
6489
6490	// Start: Index of the first character of the range (inclusive).
6491	Start int64 `json:"start,omitempty,string"`
6492
6493	// ForceSendFields is a list of field names (e.g. "End") to
6494	// unconditionally include in API requests. By default, fields with
6495	// empty values are omitted from API requests. However, any non-pointer,
6496	// non-interface field appearing in ForceSendFields will be sent to the
6497	// server regardless of whether the field is empty or not. This may be
6498	// used to include empty fields in Patch requests.
6499	ForceSendFields []string `json:"-"`
6500
6501	// NullFields is a list of field names (e.g. "End") to include in API
6502	// requests with the JSON null value. By default, fields with empty
6503	// values are omitted from API requests. However, any field with an
6504	// empty value appearing in NullFields will be sent to the server as
6505	// null. It is an error if a field in this list has a non-empty value.
6506	// This may be used to include null fields in Patch requests.
6507	NullFields []string `json:"-"`
6508}
6509
6510func (s *GooglePrivacyDlpV2beta2Range) MarshalJSON() ([]byte, error) {
6511	type NoMethod GooglePrivacyDlpV2beta2Range
6512	raw := NoMethod(*s)
6513	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6514}
6515
6516// GooglePrivacyDlpV2beta2RecordCondition: A condition for determining
6517// whether a transformation should be applied to
6518// a field.
6519type GooglePrivacyDlpV2beta2RecordCondition struct {
6520	// Expressions: An expression.
6521	Expressions *GooglePrivacyDlpV2beta2Expressions `json:"expressions,omitempty"`
6522
6523	// ForceSendFields is a list of field names (e.g. "Expressions") to
6524	// unconditionally include in API requests. By default, fields with
6525	// empty values are omitted from API requests. However, any non-pointer,
6526	// non-interface field appearing in ForceSendFields will be sent to the
6527	// server regardless of whether the field is empty or not. This may be
6528	// used to include empty fields in Patch requests.
6529	ForceSendFields []string `json:"-"`
6530
6531	// NullFields is a list of field names (e.g. "Expressions") to include
6532	// in API requests with the JSON null value. By default, fields with
6533	// empty values are omitted from API requests. However, any field with
6534	// an empty value appearing in NullFields will be sent to the server as
6535	// null. It is an error if a field in this list has a non-empty value.
6536	// This may be used to include null fields in Patch requests.
6537	NullFields []string `json:"-"`
6538}
6539
6540func (s *GooglePrivacyDlpV2beta2RecordCondition) MarshalJSON() ([]byte, error) {
6541	type NoMethod GooglePrivacyDlpV2beta2RecordCondition
6542	raw := NoMethod(*s)
6543	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6544}
6545
6546// GooglePrivacyDlpV2beta2RecordKey: Message for a unique key indicating
6547// a record that contains a finding.
6548type GooglePrivacyDlpV2beta2RecordKey struct {
6549	BigQueryKey *GooglePrivacyDlpV2beta2BigQueryKey `json:"bigQueryKey,omitempty"`
6550
6551	CloudStorageKey *GooglePrivacyDlpV2beta2CloudStorageKey `json:"cloudStorageKey,omitempty"`
6552
6553	DatastoreKey *GooglePrivacyDlpV2beta2DatastoreKey `json:"datastoreKey,omitempty"`
6554
6555	// ForceSendFields is a list of field names (e.g. "BigQueryKey") to
6556	// unconditionally include in API requests. By default, fields with
6557	// empty values are omitted from API requests. However, any non-pointer,
6558	// non-interface field appearing in ForceSendFields will be sent to the
6559	// server regardless of whether the field is empty or not. This may be
6560	// used to include empty fields in Patch requests.
6561	ForceSendFields []string `json:"-"`
6562
6563	// NullFields is a list of field names (e.g. "BigQueryKey") to include
6564	// in API requests with the JSON null value. By default, fields with
6565	// empty values are omitted from API requests. However, any field with
6566	// an empty value appearing in NullFields will be sent to the server as
6567	// null. It is an error if a field in this list has a non-empty value.
6568	// This may be used to include null fields in Patch requests.
6569	NullFields []string `json:"-"`
6570}
6571
6572func (s *GooglePrivacyDlpV2beta2RecordKey) MarshalJSON() ([]byte, error) {
6573	type NoMethod GooglePrivacyDlpV2beta2RecordKey
6574	raw := NoMethod(*s)
6575	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6576}
6577
6578// GooglePrivacyDlpV2beta2RecordSuppression: Configuration to suppress
6579// records whose suppression conditions evaluate to
6580// true.
6581type GooglePrivacyDlpV2beta2RecordSuppression struct {
6582	// Condition: A condition that when it evaluates to true will result in
6583	// the record being
6584	// evaluated to be suppressed from the transformed content.
6585	Condition *GooglePrivacyDlpV2beta2RecordCondition `json:"condition,omitempty"`
6586
6587	// ForceSendFields is a list of field names (e.g. "Condition") to
6588	// unconditionally include in API requests. By default, fields with
6589	// empty values are omitted from API requests. However, any non-pointer,
6590	// non-interface field appearing in ForceSendFields will be sent to the
6591	// server regardless of whether the field is empty or not. This may be
6592	// used to include empty fields in Patch requests.
6593	ForceSendFields []string `json:"-"`
6594
6595	// NullFields is a list of field names (e.g. "Condition") to include in
6596	// API requests with the JSON null value. By default, fields with empty
6597	// values are omitted from API requests. However, any field with an
6598	// empty value appearing in NullFields will be sent to the server as
6599	// null. It is an error if a field in this list has a non-empty value.
6600	// This may be used to include null fields in Patch requests.
6601	NullFields []string `json:"-"`
6602}
6603
6604func (s *GooglePrivacyDlpV2beta2RecordSuppression) MarshalJSON() ([]byte, error) {
6605	type NoMethod GooglePrivacyDlpV2beta2RecordSuppression
6606	raw := NoMethod(*s)
6607	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6608}
6609
6610// GooglePrivacyDlpV2beta2RecordTransformations: A type of
6611// transformation that is applied over structured data such as a
6612// table.
6613type GooglePrivacyDlpV2beta2RecordTransformations struct {
6614	// FieldTransformations: Transform the record by applying various field
6615	// transformations.
6616	FieldTransformations []*GooglePrivacyDlpV2beta2FieldTransformation `json:"fieldTransformations,omitempty"`
6617
6618	// RecordSuppressions: Configuration defining which records get
6619	// suppressed entirely. Records that
6620	// match any suppression rule are omitted from the output [optional].
6621	RecordSuppressions []*GooglePrivacyDlpV2beta2RecordSuppression `json:"recordSuppressions,omitempty"`
6622
6623	// ForceSendFields is a list of field names (e.g.
6624	// "FieldTransformations") to unconditionally include in API requests.
6625	// By default, fields with empty values are omitted from API requests.
6626	// However, any non-pointer, non-interface field appearing in
6627	// ForceSendFields will be sent to the server regardless of whether the
6628	// field is empty or not. This may be used to include empty fields in
6629	// Patch requests.
6630	ForceSendFields []string `json:"-"`
6631
6632	// NullFields is a list of field names (e.g. "FieldTransformations") to
6633	// include in API requests with the JSON null value. By default, fields
6634	// with empty values are omitted from API requests. However, any field
6635	// with an empty value appearing in NullFields will be sent to the
6636	// server as null. It is an error if a field in this list has a
6637	// non-empty value. This may be used to include null fields in Patch
6638	// requests.
6639	NullFields []string `json:"-"`
6640}
6641
6642func (s *GooglePrivacyDlpV2beta2RecordTransformations) MarshalJSON() ([]byte, error) {
6643	type NoMethod GooglePrivacyDlpV2beta2RecordTransformations
6644	raw := NoMethod(*s)
6645	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6646}
6647
6648// GooglePrivacyDlpV2beta2RedactConfig: Redact a given value. For
6649// example, if used with an `InfoTypeTransformation`
6650// transforming PHONE_NUMBER, and input 'My phone number is
6651// 206-555-0123', the
6652// output would be 'My phone number is '.
6653type GooglePrivacyDlpV2beta2RedactConfig struct {
6654}
6655
6656// GooglePrivacyDlpV2beta2RedactImageRequest: Request to search for
6657// potentially sensitive info in a list of items
6658// and replace it with a default or provided content.
6659type GooglePrivacyDlpV2beta2RedactImageRequest struct {
6660	// ImageData: The bytes of the image to redact.
6661	ImageData string `json:"imageData,omitempty"`
6662
6663	// ImageRedactionConfigs: The configuration for specifying what content
6664	// to redact from images.
6665	ImageRedactionConfigs []*GooglePrivacyDlpV2beta2ImageRedactionConfig `json:"imageRedactionConfigs,omitempty"`
6666
6667	// ImageType: Type of the content, as defined in Content-Type HTTP
6668	// header.
6669	// Supported types are: PNG, JPEG, SVG, & BMP.
6670	ImageType string `json:"imageType,omitempty"`
6671
6672	// InspectConfig: Configuration for the inspector.
6673	InspectConfig *GooglePrivacyDlpV2beta2InspectConfig `json:"inspectConfig,omitempty"`
6674
6675	// ForceSendFields is a list of field names (e.g. "ImageData") to
6676	// unconditionally include in API requests. By default, fields with
6677	// empty values are omitted from API requests. However, any non-pointer,
6678	// non-interface field appearing in ForceSendFields will be sent to the
6679	// server regardless of whether the field is empty or not. This may be
6680	// used to include empty fields in Patch requests.
6681	ForceSendFields []string `json:"-"`
6682
6683	// NullFields is a list of field names (e.g. "ImageData") to include in
6684	// API requests with the JSON null value. By default, fields with empty
6685	// values are omitted from API requests. However, any field with an
6686	// empty value appearing in NullFields will be sent to the server as
6687	// null. It is an error if a field in this list has a non-empty value.
6688	// This may be used to include null fields in Patch requests.
6689	NullFields []string `json:"-"`
6690}
6691
6692func (s *GooglePrivacyDlpV2beta2RedactImageRequest) MarshalJSON() ([]byte, error) {
6693	type NoMethod GooglePrivacyDlpV2beta2RedactImageRequest
6694	raw := NoMethod(*s)
6695	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6696}
6697
6698// GooglePrivacyDlpV2beta2RedactImageResponse: Results of redacting an
6699// image.
6700type GooglePrivacyDlpV2beta2RedactImageResponse struct {
6701	// ExtractedText: If an image was being inspected and the
6702	// InspectConfig's include_quote was
6703	// set to true, then this field will include all text, if any, that was
6704	// found
6705	// in the image.
6706	ExtractedText string `json:"extractedText,omitempty"`
6707
6708	// RedactedImage: The redacted image. The type will be the same as the
6709	// original image.
6710	RedactedImage string `json:"redactedImage,omitempty"`
6711
6712	// ServerResponse contains the HTTP response code and headers from the
6713	// server.
6714	googleapi.ServerResponse `json:"-"`
6715
6716	// ForceSendFields is a list of field names (e.g. "ExtractedText") to
6717	// unconditionally include in API requests. By default, fields with
6718	// empty values are omitted from API requests. However, any non-pointer,
6719	// non-interface field appearing in ForceSendFields will be sent to the
6720	// server regardless of whether the field is empty or not. This may be
6721	// used to include empty fields in Patch requests.
6722	ForceSendFields []string `json:"-"`
6723
6724	// NullFields is a list of field names (e.g. "ExtractedText") to include
6725	// in API requests with the JSON null value. By default, fields with
6726	// empty values are omitted from API requests. However, any field with
6727	// an empty value appearing in NullFields will be sent to the server as
6728	// null. It is an error if a field in this list has a non-empty value.
6729	// This may be used to include null fields in Patch requests.
6730	NullFields []string `json:"-"`
6731}
6732
6733func (s *GooglePrivacyDlpV2beta2RedactImageResponse) MarshalJSON() ([]byte, error) {
6734	type NoMethod GooglePrivacyDlpV2beta2RedactImageResponse
6735	raw := NoMethod(*s)
6736	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6737}
6738
6739// GooglePrivacyDlpV2beta2Regex: Message defining a custom regular
6740// expression.
6741type GooglePrivacyDlpV2beta2Regex struct {
6742	// Pattern: Pattern defining the regular expression.
6743	Pattern string `json:"pattern,omitempty"`
6744
6745	// ForceSendFields is a list of field names (e.g. "Pattern") to
6746	// unconditionally include in API requests. By default, fields with
6747	// empty values are omitted from API requests. However, any non-pointer,
6748	// non-interface field appearing in ForceSendFields will be sent to the
6749	// server regardless of whether the field is empty or not. This may be
6750	// used to include empty fields in Patch requests.
6751	ForceSendFields []string `json:"-"`
6752
6753	// NullFields is a list of field names (e.g. "Pattern") to include in
6754	// API requests with the JSON null value. By default, fields with empty
6755	// values are omitted from API requests. However, any field with an
6756	// empty value appearing in NullFields will be sent to the server as
6757	// null. It is an error if a field in this list has a non-empty value.
6758	// This may be used to include null fields in Patch requests.
6759	NullFields []string `json:"-"`
6760}
6761
6762func (s *GooglePrivacyDlpV2beta2Regex) MarshalJSON() ([]byte, error) {
6763	type NoMethod GooglePrivacyDlpV2beta2Regex
6764	raw := NoMethod(*s)
6765	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6766}
6767
6768// GooglePrivacyDlpV2beta2ReidentifyContentRequest: Request to
6769// re-identify an item.
6770type GooglePrivacyDlpV2beta2ReidentifyContentRequest struct {
6771	// InspectConfig: Configuration for the inspector.
6772	InspectConfig *GooglePrivacyDlpV2beta2InspectConfig `json:"inspectConfig,omitempty"`
6773
6774	// InspectTemplateName: Optional template to use. Any configuration
6775	// directly specified in
6776	// `inspect_config` will override those set in the template. Singular
6777	// fields
6778	// that are set in this request will replace their corresponding fields
6779	// in the
6780	// template. Repeated fields are appended. Singular sub-messages and
6781	// groups
6782	// are recursively merged.
6783	InspectTemplateName string `json:"inspectTemplateName,omitempty"`
6784
6785	// Item: The item to re-identify. Will be treated as text.
6786	Item *GooglePrivacyDlpV2beta2ContentItem `json:"item,omitempty"`
6787
6788	// ReidentifyConfig: Configuration for the re-identification of the
6789	// content item.
6790	// This field shares the same proto message type that is used
6791	// for
6792	// de-identification, however its usage here is for the reversal of
6793	// the
6794	// previous de-identification. Re-identification is performed by
6795	// examining
6796	// the transformations used to de-identify the items and executing
6797	// the
6798	// reverse. This requires that only reversible transformations
6799	// be provided here. The reversible transformations are:
6800	//
6801	//  - `CryptoReplaceFfxFpeConfig`
6802	ReidentifyConfig *GooglePrivacyDlpV2beta2DeidentifyConfig `json:"reidentifyConfig,omitempty"`
6803
6804	// ReidentifyTemplateName: Optional template to use. References an
6805	// instance of `DeidentifyTemplate`.
6806	// Any configuration directly specified in `reidentify_config`
6807	// or
6808	// `inspect_config` will override those set in the template. Singular
6809	// fields
6810	// that are set in this request will replace their corresponding fields
6811	// in the
6812	// template. Repeated fields are appended. Singular sub-messages and
6813	// groups
6814	// are recursively merged.
6815	ReidentifyTemplateName string `json:"reidentifyTemplateName,omitempty"`
6816
6817	// ForceSendFields is a list of field names (e.g. "InspectConfig") to
6818	// unconditionally include in API requests. By default, fields with
6819	// empty values are omitted from API requests. However, any non-pointer,
6820	// non-interface field appearing in ForceSendFields will be sent to the
6821	// server regardless of whether the field is empty or not. This may be
6822	// used to include empty fields in Patch requests.
6823	ForceSendFields []string `json:"-"`
6824
6825	// NullFields is a list of field names (e.g. "InspectConfig") to include
6826	// in API requests with the JSON null value. By default, fields with
6827	// empty values are omitted from API requests. However, any field with
6828	// an empty value appearing in NullFields will be sent to the server as
6829	// null. It is an error if a field in this list has a non-empty value.
6830	// This may be used to include null fields in Patch requests.
6831	NullFields []string `json:"-"`
6832}
6833
6834func (s *GooglePrivacyDlpV2beta2ReidentifyContentRequest) MarshalJSON() ([]byte, error) {
6835	type NoMethod GooglePrivacyDlpV2beta2ReidentifyContentRequest
6836	raw := NoMethod(*s)
6837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6838}
6839
6840// GooglePrivacyDlpV2beta2ReidentifyContentResponse: Results of
6841// re-identifying a item.
6842type GooglePrivacyDlpV2beta2ReidentifyContentResponse struct {
6843	// Item: The re-identified item.
6844	Item *GooglePrivacyDlpV2beta2ContentItem `json:"item,omitempty"`
6845
6846	// Overview: An overview of the changes that were made to the `item`.
6847	Overview *GooglePrivacyDlpV2beta2TransformationOverview `json:"overview,omitempty"`
6848
6849	// ServerResponse contains the HTTP response code and headers from the
6850	// server.
6851	googleapi.ServerResponse `json:"-"`
6852
6853	// ForceSendFields is a list of field names (e.g. "Item") to
6854	// unconditionally include in API requests. By default, fields with
6855	// empty values are omitted from API requests. However, any non-pointer,
6856	// non-interface field appearing in ForceSendFields will be sent to the
6857	// server regardless of whether the field is empty or not. This may be
6858	// used to include empty fields in Patch requests.
6859	ForceSendFields []string `json:"-"`
6860
6861	// NullFields is a list of field names (e.g. "Item") to include in API
6862	// requests with the JSON null value. By default, fields with empty
6863	// values are omitted from API requests. However, any field with an
6864	// empty value appearing in NullFields will be sent to the server as
6865	// null. It is an error if a field in this list has a non-empty value.
6866	// This may be used to include null fields in Patch requests.
6867	NullFields []string `json:"-"`
6868}
6869
6870func (s *GooglePrivacyDlpV2beta2ReidentifyContentResponse) MarshalJSON() ([]byte, error) {
6871	type NoMethod GooglePrivacyDlpV2beta2ReidentifyContentResponse
6872	raw := NoMethod(*s)
6873	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6874}
6875
6876// GooglePrivacyDlpV2beta2ReplaceValueConfig: Replace each input value
6877// with a given `Value`.
6878type GooglePrivacyDlpV2beta2ReplaceValueConfig struct {
6879	// NewValue: Value to replace it with.
6880	NewValue *GooglePrivacyDlpV2beta2Value `json:"newValue,omitempty"`
6881
6882	// ForceSendFields is a list of field names (e.g. "NewValue") to
6883	// unconditionally include in API requests. By default, fields with
6884	// empty values are omitted from API requests. However, any non-pointer,
6885	// non-interface field appearing in ForceSendFields will be sent to the
6886	// server regardless of whether the field is empty or not. This may be
6887	// used to include empty fields in Patch requests.
6888	ForceSendFields []string `json:"-"`
6889
6890	// NullFields is a list of field names (e.g. "NewValue") to include in
6891	// API requests with the JSON null value. By default, fields with empty
6892	// values are omitted from API requests. However, any field with an
6893	// empty value appearing in NullFields will be sent to the server as
6894	// null. It is an error if a field in this list has a non-empty value.
6895	// This may be used to include null fields in Patch requests.
6896	NullFields []string `json:"-"`
6897}
6898
6899func (s *GooglePrivacyDlpV2beta2ReplaceValueConfig) MarshalJSON() ([]byte, error) {
6900	type NoMethod GooglePrivacyDlpV2beta2ReplaceValueConfig
6901	raw := NoMethod(*s)
6902	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6903}
6904
6905// GooglePrivacyDlpV2beta2ReplaceWithInfoTypeConfig: Replace each
6906// matching finding with the name of the info_type.
6907type GooglePrivacyDlpV2beta2ReplaceWithInfoTypeConfig struct {
6908}
6909
6910type GooglePrivacyDlpV2beta2RequestedOptions struct {
6911	JobConfig *GooglePrivacyDlpV2beta2InspectJobConfig `json:"jobConfig,omitempty"`
6912
6913	// SnapshotInspectTemplate: If run with an inspect template, a snapshot
6914	// of it's state at the time of
6915	// this run.
6916	SnapshotInspectTemplate *GooglePrivacyDlpV2beta2InspectTemplate `json:"snapshotInspectTemplate,omitempty"`
6917
6918	// ForceSendFields is a list of field names (e.g. "JobConfig") to
6919	// unconditionally include in API requests. By default, fields with
6920	// empty values are omitted from API requests. However, any non-pointer,
6921	// non-interface field appearing in ForceSendFields will be sent to the
6922	// server regardless of whether the field is empty or not. This may be
6923	// used to include empty fields in Patch requests.
6924	ForceSendFields []string `json:"-"`
6925
6926	// NullFields is a list of field names (e.g. "JobConfig") to include in
6927	// API requests with the JSON null value. By default, fields with empty
6928	// values are omitted from API requests. However, any field with an
6929	// empty value appearing in NullFields will be sent to the server as
6930	// null. It is an error if a field in this list has a non-empty value.
6931	// This may be used to include null fields in Patch requests.
6932	NullFields []string `json:"-"`
6933}
6934
6935func (s *GooglePrivacyDlpV2beta2RequestedOptions) MarshalJSON() ([]byte, error) {
6936	type NoMethod GooglePrivacyDlpV2beta2RequestedOptions
6937	raw := NoMethod(*s)
6938	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6939}
6940
6941type GooglePrivacyDlpV2beta2Result struct {
6942	// InfoTypeStats: Statistics of how many instances of each info type
6943	// were found during
6944	// inspect job.
6945	InfoTypeStats []*GooglePrivacyDlpV2beta2InfoTypeStatistics `json:"infoTypeStats,omitempty"`
6946
6947	// ProcessedBytes: Total size in bytes that were processed.
6948	ProcessedBytes int64 `json:"processedBytes,omitempty,string"`
6949
6950	// TotalEstimatedBytes: Estimate of the number of bytes to process.
6951	TotalEstimatedBytes int64 `json:"totalEstimatedBytes,omitempty,string"`
6952
6953	// ForceSendFields is a list of field names (e.g. "InfoTypeStats") to
6954	// unconditionally include in API requests. By default, fields with
6955	// empty values are omitted from API requests. However, any non-pointer,
6956	// non-interface field appearing in ForceSendFields will be sent to the
6957	// server regardless of whether the field is empty or not. This may be
6958	// used to include empty fields in Patch requests.
6959	ForceSendFields []string `json:"-"`
6960
6961	// NullFields is a list of field names (e.g. "InfoTypeStats") to include
6962	// in API requests with the JSON null value. By default, fields with
6963	// empty values are omitted from API requests. However, any field with
6964	// an empty value appearing in NullFields will be sent to the server as
6965	// null. It is an error if a field in this list has a non-empty value.
6966	// This may be used to include null fields in Patch requests.
6967	NullFields []string `json:"-"`
6968}
6969
6970func (s *GooglePrivacyDlpV2beta2Result) MarshalJSON() ([]byte, error) {
6971	type NoMethod GooglePrivacyDlpV2beta2Result
6972	raw := NoMethod(*s)
6973	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6974}
6975
6976// GooglePrivacyDlpV2beta2RiskAnalysisJobConfig: Configuration for a
6977// risk analysis job.
6978type GooglePrivacyDlpV2beta2RiskAnalysisJobConfig struct {
6979	// Actions: Actions to execute at the completion of the job. Are
6980	// executed in the order
6981	// provided.
6982	Actions []*GooglePrivacyDlpV2beta2Action `json:"actions,omitempty"`
6983
6984	// PrivacyMetric: Privacy metric to compute.
6985	PrivacyMetric *GooglePrivacyDlpV2beta2PrivacyMetric `json:"privacyMetric,omitempty"`
6986
6987	// SourceTable: Input dataset to compute metrics over.
6988	SourceTable *GooglePrivacyDlpV2beta2BigQueryTable `json:"sourceTable,omitempty"`
6989
6990	// ForceSendFields is a list of field names (e.g. "Actions") to
6991	// unconditionally include in API requests. By default, fields with
6992	// empty values are omitted from API requests. However, any non-pointer,
6993	// non-interface field appearing in ForceSendFields will be sent to the
6994	// server regardless of whether the field is empty or not. This may be
6995	// used to include empty fields in Patch requests.
6996	ForceSendFields []string `json:"-"`
6997
6998	// NullFields is a list of field names (e.g. "Actions") to include in
6999	// API requests with the JSON null value. By default, fields with empty
7000	// values are omitted from API requests. However, any field with an
7001	// empty value appearing in NullFields will be sent to the server as
7002	// null. It is an error if a field in this list has a non-empty value.
7003	// This may be used to include null fields in Patch requests.
7004	NullFields []string `json:"-"`
7005}
7006
7007func (s *GooglePrivacyDlpV2beta2RiskAnalysisJobConfig) MarshalJSON() ([]byte, error) {
7008	type NoMethod GooglePrivacyDlpV2beta2RiskAnalysisJobConfig
7009	raw := NoMethod(*s)
7010	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7011}
7012
7013type GooglePrivacyDlpV2beta2Row struct {
7014	Values []*GooglePrivacyDlpV2beta2Value `json:"values,omitempty"`
7015
7016	// ForceSendFields is a list of field names (e.g. "Values") to
7017	// unconditionally include in API requests. By default, fields with
7018	// empty values are omitted from API requests. However, any non-pointer,
7019	// non-interface field appearing in ForceSendFields will be sent to the
7020	// server regardless of whether the field is empty or not. This may be
7021	// used to include empty fields in Patch requests.
7022	ForceSendFields []string `json:"-"`
7023
7024	// NullFields is a list of field names (e.g. "Values") to include in API
7025	// requests with the JSON null value. By default, fields with empty
7026	// values are omitted from API requests. However, any field with an
7027	// empty value appearing in NullFields will be sent to the server as
7028	// null. It is an error if a field in this list has a non-empty value.
7029	// This may be used to include null fields in Patch requests.
7030	NullFields []string `json:"-"`
7031}
7032
7033func (s *GooglePrivacyDlpV2beta2Row) MarshalJSON() ([]byte, error) {
7034	type NoMethod GooglePrivacyDlpV2beta2Row
7035	raw := NoMethod(*s)
7036	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7037}
7038
7039// GooglePrivacyDlpV2beta2SaveFindings: If set, the detailed findings
7040// will be persisted to the specified
7041// OutputStorageConfig. Compatible with: Inspect
7042type GooglePrivacyDlpV2beta2SaveFindings struct {
7043	OutputConfig *GooglePrivacyDlpV2beta2OutputStorageConfig `json:"outputConfig,omitempty"`
7044
7045	// ForceSendFields is a list of field names (e.g. "OutputConfig") to
7046	// unconditionally include in API requests. By default, fields with
7047	// empty values are omitted from API requests. However, any non-pointer,
7048	// non-interface field appearing in ForceSendFields will be sent to the
7049	// server regardless of whether the field is empty or not. This may be
7050	// used to include empty fields in Patch requests.
7051	ForceSendFields []string `json:"-"`
7052
7053	// NullFields is a list of field names (e.g. "OutputConfig") to include
7054	// in API requests with the JSON null value. By default, fields with
7055	// empty values are omitted from API requests. However, any field with
7056	// an empty value appearing in NullFields will be sent to the server as
7057	// null. It is an error if a field in this list has a non-empty value.
7058	// This may be used to include null fields in Patch requests.
7059	NullFields []string `json:"-"`
7060}
7061
7062func (s *GooglePrivacyDlpV2beta2SaveFindings) MarshalJSON() ([]byte, error) {
7063	type NoMethod GooglePrivacyDlpV2beta2SaveFindings
7064	raw := NoMethod(*s)
7065	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7066}
7067
7068// GooglePrivacyDlpV2beta2Schedule: Schedule for triggeredJobs.
7069type GooglePrivacyDlpV2beta2Schedule struct {
7070	// ReccurrencePeriodDuration: With this option a job is started a
7071	// regular periodic basis. For
7072	// example: every 10 minutes.
7073	//
7074	// A scheduled start time will be skipped if the previous
7075	// execution has not ended when its scheduled time occurs.
7076	//
7077	// This value must be set to a time duration greater than or equal
7078	// to 60 minutes and can be no longer than 60 days.
7079	ReccurrencePeriodDuration string `json:"reccurrencePeriodDuration,omitempty"`
7080
7081	// ForceSendFields is a list of field names (e.g.
7082	// "ReccurrencePeriodDuration") to unconditionally include in API
7083	// requests. By default, fields with empty values are omitted from API
7084	// requests. However, any non-pointer, non-interface field appearing in
7085	// ForceSendFields will be sent to the server regardless of whether the
7086	// field is empty or not. This may be used to include empty fields in
7087	// Patch requests.
7088	ForceSendFields []string `json:"-"`
7089
7090	// NullFields is a list of field names (e.g.
7091	// "ReccurrencePeriodDuration") to include in API requests with the JSON
7092	// null value. By default, fields with empty values are omitted from API
7093	// requests. However, any field with an empty value appearing in
7094	// NullFields will be sent to the server as null. It is an error if a
7095	// field in this list has a non-empty value. This may be used to include
7096	// null fields in Patch requests.
7097	NullFields []string `json:"-"`
7098}
7099
7100func (s *GooglePrivacyDlpV2beta2Schedule) MarshalJSON() ([]byte, error) {
7101	type NoMethod GooglePrivacyDlpV2beta2Schedule
7102	raw := NoMethod(*s)
7103	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7104}
7105
7106// GooglePrivacyDlpV2beta2StorageConfig: Shared message indicating Cloud
7107// storage type.
7108type GooglePrivacyDlpV2beta2StorageConfig struct {
7109	// BigQueryOptions: BigQuery options specification.
7110	BigQueryOptions *GooglePrivacyDlpV2beta2BigQueryOptions `json:"bigQueryOptions,omitempty"`
7111
7112	// CloudStorageOptions: Google Cloud Storage options specification.
7113	CloudStorageOptions *GooglePrivacyDlpV2beta2CloudStorageOptions `json:"cloudStorageOptions,omitempty"`
7114
7115	// DatastoreOptions: Google Cloud Datastore options specification.
7116	DatastoreOptions *GooglePrivacyDlpV2beta2DatastoreOptions `json:"datastoreOptions,omitempty"`
7117
7118	TimespanConfig *GooglePrivacyDlpV2beta2TimespanConfig `json:"timespanConfig,omitempty"`
7119
7120	// ForceSendFields is a list of field names (e.g. "BigQueryOptions") to
7121	// unconditionally include in API requests. By default, fields with
7122	// empty values are omitted from API requests. However, any non-pointer,
7123	// non-interface field appearing in ForceSendFields will be sent to the
7124	// server regardless of whether the field is empty or not. This may be
7125	// used to include empty fields in Patch requests.
7126	ForceSendFields []string `json:"-"`
7127
7128	// NullFields is a list of field names (e.g. "BigQueryOptions") to
7129	// include in API requests with the JSON null value. By default, fields
7130	// with empty values are omitted from API requests. However, any field
7131	// with an empty value appearing in NullFields will be sent to the
7132	// server as null. It is an error if a field in this list has a
7133	// non-empty value. This may be used to include null fields in Patch
7134	// requests.
7135	NullFields []string `json:"-"`
7136}
7137
7138func (s *GooglePrivacyDlpV2beta2StorageConfig) MarshalJSON() ([]byte, error) {
7139	type NoMethod GooglePrivacyDlpV2beta2StorageConfig
7140	raw := NoMethod(*s)
7141	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7142}
7143
7144// GooglePrivacyDlpV2beta2SummaryResult: A collection that informs the
7145// user the number of times a particular
7146// `TransformationResultCode` and error details occurred.
7147type GooglePrivacyDlpV2beta2SummaryResult struct {
7148	// Possible values:
7149	//   "TRANSFORMATION_RESULT_CODE_UNSPECIFIED"
7150	//   "SUCCESS"
7151	//   "ERROR"
7152	Code string `json:"code,omitempty"`
7153
7154	Count int64 `json:"count,omitempty,string"`
7155
7156	// Details: A place for warnings or errors to show up if a
7157	// transformation didn't
7158	// work as expected.
7159	Details string `json:"details,omitempty"`
7160
7161	// ForceSendFields is a list of field names (e.g. "Code") to
7162	// unconditionally include in API requests. By default, fields with
7163	// empty values are omitted from API requests. However, any non-pointer,
7164	// non-interface field appearing in ForceSendFields will be sent to the
7165	// server regardless of whether the field is empty or not. This may be
7166	// used to include empty fields in Patch requests.
7167	ForceSendFields []string `json:"-"`
7168
7169	// NullFields is a list of field names (e.g. "Code") to include in API
7170	// requests with the JSON null value. By default, fields with empty
7171	// values are omitted from API requests. However, any field with an
7172	// empty value appearing in NullFields will be sent to the server as
7173	// null. It is an error if a field in this list has a non-empty value.
7174	// This may be used to include null fields in Patch requests.
7175	NullFields []string `json:"-"`
7176}
7177
7178func (s *GooglePrivacyDlpV2beta2SummaryResult) MarshalJSON() ([]byte, error) {
7179	type NoMethod GooglePrivacyDlpV2beta2SummaryResult
7180	raw := NoMethod(*s)
7181	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7182}
7183
7184// GooglePrivacyDlpV2beta2SurrogateType: Message for detecting output
7185// from deidentification transformations
7186// such
7187// as
7188// [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/cont
7189// ent/deidentify#CryptoReplaceFfxFpeConfig).
7190// These types of transformations are
7191// those that perform pseudonymization, thereby producing a "surrogate"
7192// as
7193// output. This should be used in conjunction with a field on
7194// the
7195// transformation such as `surrogate_info_type`. This custom info type
7196// does
7197// not support the use of `detection_rules`.
7198type GooglePrivacyDlpV2beta2SurrogateType struct {
7199}
7200
7201// GooglePrivacyDlpV2beta2Table: Structured content to inspect. Up to
7202// 50,000 `Value`s per request allowed.
7203type GooglePrivacyDlpV2beta2Table struct {
7204	Headers []*GooglePrivacyDlpV2beta2FieldId `json:"headers,omitempty"`
7205
7206	Rows []*GooglePrivacyDlpV2beta2Row `json:"rows,omitempty"`
7207
7208	// ForceSendFields is a list of field names (e.g. "Headers") to
7209	// unconditionally include in API requests. By default, fields with
7210	// empty values are omitted from API requests. However, any non-pointer,
7211	// non-interface field appearing in ForceSendFields will be sent to the
7212	// server regardless of whether the field is empty or not. This may be
7213	// used to include empty fields in Patch requests.
7214	ForceSendFields []string `json:"-"`
7215
7216	// NullFields is a list of field names (e.g. "Headers") to include in
7217	// API requests with the JSON null value. By default, fields with empty
7218	// values are omitted from API requests. However, any field with an
7219	// empty value appearing in NullFields will be sent to the server as
7220	// null. It is an error if a field in this list has a non-empty value.
7221	// This may be used to include null fields in Patch requests.
7222	NullFields []string `json:"-"`
7223}
7224
7225func (s *GooglePrivacyDlpV2beta2Table) MarshalJSON() ([]byte, error) {
7226	type NoMethod GooglePrivacyDlpV2beta2Table
7227	raw := NoMethod(*s)
7228	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7229}
7230
7231// GooglePrivacyDlpV2beta2TableLocation: Location of a finding within a
7232// table.
7233type GooglePrivacyDlpV2beta2TableLocation struct {
7234	// RowIndex: The zero-based index of the row where the finding is
7235	// located.
7236	RowIndex int64 `json:"rowIndex,omitempty,string"`
7237
7238	// ForceSendFields is a list of field names (e.g. "RowIndex") to
7239	// unconditionally include in API requests. By default, fields with
7240	// empty values are omitted from API requests. However, any non-pointer,
7241	// non-interface field appearing in ForceSendFields will be sent to the
7242	// server regardless of whether the field is empty or not. This may be
7243	// used to include empty fields in Patch requests.
7244	ForceSendFields []string `json:"-"`
7245
7246	// NullFields is a list of field names (e.g. "RowIndex") to include in
7247	// API requests with the JSON null value. By default, fields with empty
7248	// values are omitted from API requests. However, any field with an
7249	// empty value appearing in NullFields will be sent to the server as
7250	// null. It is an error if a field in this list has a non-empty value.
7251	// This may be used to include null fields in Patch requests.
7252	NullFields []string `json:"-"`
7253}
7254
7255func (s *GooglePrivacyDlpV2beta2TableLocation) MarshalJSON() ([]byte, error) {
7256	type NoMethod GooglePrivacyDlpV2beta2TableLocation
7257	raw := NoMethod(*s)
7258	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7259}
7260
7261// GooglePrivacyDlpV2beta2TaggedField: A column with a semantic tag
7262// attached.
7263type GooglePrivacyDlpV2beta2TaggedField struct {
7264	// CustomTag: A column can be tagged with a custom tag. In this case,
7265	// the user must
7266	// indicate an auxiliary table that contains statistical information
7267	// on
7268	// the possible values of this column (below).
7269	CustomTag string `json:"customTag,omitempty"`
7270
7271	// Field: Identifies the column. [required]
7272	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
7273
7274	// Inferred: If no semantic tag is indicated, we infer the statistical
7275	// model from
7276	// the distribution of values in the input data
7277	Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
7278
7279	// InfoType: A column can be tagged with a InfoType to use the relevant
7280	// public
7281	// dataset as a statistical model of population, if available.
7282	// We
7283	// currently support US ZIP codes, region codes, ages and genders.
7284	// To programmatically obtain the list of supported InfoTypes,
7285	// use
7286	// ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
7287	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
7288
7289	// ForceSendFields is a list of field names (e.g. "CustomTag") to
7290	// unconditionally include in API requests. By default, fields with
7291	// empty values are omitted from API requests. However, any non-pointer,
7292	// non-interface field appearing in ForceSendFields will be sent to the
7293	// server regardless of whether the field is empty or not. This may be
7294	// used to include empty fields in Patch requests.
7295	ForceSendFields []string `json:"-"`
7296
7297	// NullFields is a list of field names (e.g. "CustomTag") to include in
7298	// API requests with the JSON null value. By default, fields with empty
7299	// values are omitted from API requests. However, any field with an
7300	// empty value appearing in NullFields will be sent to the server as
7301	// null. It is an error if a field in this list has a non-empty value.
7302	// This may be used to include null fields in Patch requests.
7303	NullFields []string `json:"-"`
7304}
7305
7306func (s *GooglePrivacyDlpV2beta2TaggedField) MarshalJSON() ([]byte, error) {
7307	type NoMethod GooglePrivacyDlpV2beta2TaggedField
7308	raw := NoMethod(*s)
7309	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7310}
7311
7312// GooglePrivacyDlpV2beta2TimePartConfig: For use with `Date`,
7313// `Timestamp`, and `TimeOfDay`, extract or preserve a
7314// portion of the value.
7315type GooglePrivacyDlpV2beta2TimePartConfig struct {
7316	// Possible values:
7317	//   "TIME_PART_UNSPECIFIED"
7318	//   "YEAR" - [0-9999]
7319	//   "MONTH" - [1-12]
7320	//   "DAY_OF_MONTH" - [1-31]
7321	//   "DAY_OF_WEEK" - [1-7]
7322	//   "WEEK_OF_YEAR" - [1-52]
7323	//   "HOUR_OF_DAY" - [0-23]
7324	PartToExtract string `json:"partToExtract,omitempty"`
7325
7326	// ForceSendFields is a list of field names (e.g. "PartToExtract") to
7327	// unconditionally include in API requests. By default, fields with
7328	// empty values are omitted from API requests. However, any non-pointer,
7329	// non-interface field appearing in ForceSendFields will be sent to the
7330	// server regardless of whether the field is empty or not. This may be
7331	// used to include empty fields in Patch requests.
7332	ForceSendFields []string `json:"-"`
7333
7334	// NullFields is a list of field names (e.g. "PartToExtract") to include
7335	// in API requests with the JSON null value. By default, fields with
7336	// empty values are omitted from API requests. However, any field with
7337	// an empty value appearing in NullFields will be sent to the server as
7338	// null. It is an error if a field in this list has a non-empty value.
7339	// This may be used to include null fields in Patch requests.
7340	NullFields []string `json:"-"`
7341}
7342
7343func (s *GooglePrivacyDlpV2beta2TimePartConfig) MarshalJSON() ([]byte, error) {
7344	type NoMethod GooglePrivacyDlpV2beta2TimePartConfig
7345	raw := NoMethod(*s)
7346	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7347}
7348
7349type GooglePrivacyDlpV2beta2TimeZone struct {
7350	// OffsetMinutes: Set only if the offset can be determined. Positive for
7351	// time ahead of UTC.
7352	// E.g. For "UTC-9", this value is -540.
7353	OffsetMinutes int64 `json:"offsetMinutes,omitempty"`
7354
7355	// ForceSendFields is a list of field names (e.g. "OffsetMinutes") to
7356	// unconditionally include in API requests. By default, fields with
7357	// empty values are omitted from API requests. However, any non-pointer,
7358	// non-interface field appearing in ForceSendFields will be sent to the
7359	// server regardless of whether the field is empty or not. This may be
7360	// used to include empty fields in Patch requests.
7361	ForceSendFields []string `json:"-"`
7362
7363	// NullFields is a list of field names (e.g. "OffsetMinutes") to include
7364	// in API requests with the JSON null value. By default, fields with
7365	// empty values are omitted from API requests. However, any field with
7366	// an empty value appearing in NullFields will be sent to the server as
7367	// null. It is an error if a field in this list has a non-empty value.
7368	// This may be used to include null fields in Patch requests.
7369	NullFields []string `json:"-"`
7370}
7371
7372func (s *GooglePrivacyDlpV2beta2TimeZone) MarshalJSON() ([]byte, error) {
7373	type NoMethod GooglePrivacyDlpV2beta2TimeZone
7374	raw := NoMethod(*s)
7375	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7376}
7377
7378// GooglePrivacyDlpV2beta2TimespanConfig: Configuration of the timespan
7379// of the items to include in scanning.
7380// Currently only supported when inspecting Google Cloud Storage and
7381// BigQuery.
7382type GooglePrivacyDlpV2beta2TimespanConfig struct {
7383	// EnableAutoPopulationOfTimespanConfig: When the job is started by a
7384	// JobTrigger we will automatically figure out
7385	// a valid start_time to avoid scanning files that have not been
7386	// modified
7387	// since the last time the JobTrigger executed. This will be based on
7388	// the
7389	// time of the execution of the last run of the JobTrigger.
7390	EnableAutoPopulationOfTimespanConfig bool `json:"enableAutoPopulationOfTimespanConfig,omitempty"`
7391
7392	// EndTime: Exclude files newer than this value.
7393	// If set to zero, no upper time limit is applied.
7394	EndTime string `json:"endTime,omitempty"`
7395
7396	// StartTime: Exclude files older than this value.
7397	StartTime string `json:"startTime,omitempty"`
7398
7399	// ForceSendFields is a list of field names (e.g.
7400	// "EnableAutoPopulationOfTimespanConfig") to unconditionally include in
7401	// API requests. By default, fields with empty values are omitted from
7402	// API requests. However, any non-pointer, non-interface field appearing
7403	// in ForceSendFields will be sent to the server regardless of whether
7404	// the field is empty or not. This may be used to include empty fields
7405	// in Patch requests.
7406	ForceSendFields []string `json:"-"`
7407
7408	// NullFields is a list of field names (e.g.
7409	// "EnableAutoPopulationOfTimespanConfig") to include in API requests
7410	// with the JSON null value. By default, fields with empty values are
7411	// omitted from API requests. However, any field with an empty value
7412	// appearing in NullFields will be sent to the server as null. It is an
7413	// error if a field in this list has a non-empty value. This may be used
7414	// to include null fields in Patch requests.
7415	NullFields []string `json:"-"`
7416}
7417
7418func (s *GooglePrivacyDlpV2beta2TimespanConfig) MarshalJSON() ([]byte, error) {
7419	type NoMethod GooglePrivacyDlpV2beta2TimespanConfig
7420	raw := NoMethod(*s)
7421	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7422}
7423
7424// GooglePrivacyDlpV2beta2TransformationOverview: Overview of the
7425// modifications that occurred.
7426type GooglePrivacyDlpV2beta2TransformationOverview struct {
7427	// TransformationSummaries: Transformations applied to the dataset.
7428	TransformationSummaries []*GooglePrivacyDlpV2beta2TransformationSummary `json:"transformationSummaries,omitempty"`
7429
7430	// TransformedBytes: Total size in bytes that were transformed in some
7431	// way.
7432	TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
7433
7434	// ForceSendFields is a list of field names (e.g.
7435	// "TransformationSummaries") to unconditionally include in API
7436	// requests. By default, fields with empty values are omitted from API
7437	// requests. However, any non-pointer, non-interface field appearing in
7438	// ForceSendFields will be sent to the server regardless of whether the
7439	// field is empty or not. This may be used to include empty fields in
7440	// Patch requests.
7441	ForceSendFields []string `json:"-"`
7442
7443	// NullFields is a list of field names (e.g. "TransformationSummaries")
7444	// to include in API requests with the JSON null value. By default,
7445	// fields with empty values are omitted from API requests. However, any
7446	// field with an empty value appearing in NullFields will be sent to the
7447	// server as null. It is an error if a field in this list has a
7448	// non-empty value. This may be used to include null fields in Patch
7449	// requests.
7450	NullFields []string `json:"-"`
7451}
7452
7453func (s *GooglePrivacyDlpV2beta2TransformationOverview) MarshalJSON() ([]byte, error) {
7454	type NoMethod GooglePrivacyDlpV2beta2TransformationOverview
7455	raw := NoMethod(*s)
7456	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7457}
7458
7459// GooglePrivacyDlpV2beta2TransformationSummary: Summary of a single
7460// tranformation.
7461// Only one of 'transformation', 'field_transformation', or
7462// 'record_suppress'
7463// will be set.
7464type GooglePrivacyDlpV2beta2TransformationSummary struct {
7465	// Field: Set if the transformation was limited to a specific FieldId.
7466	Field *GooglePrivacyDlpV2beta2FieldId `json:"field,omitempty"`
7467
7468	// FieldTransformations: The field transformation that was applied.
7469	// If multiple field transformations are requested for a single
7470	// field,
7471	// this list will contain all of them; otherwise, only one is supplied.
7472	FieldTransformations []*GooglePrivacyDlpV2beta2FieldTransformation `json:"fieldTransformations,omitempty"`
7473
7474	// InfoType: Set if the transformation was limited to a specific
7475	// info_type.
7476	InfoType *GooglePrivacyDlpV2beta2InfoType `json:"infoType,omitempty"`
7477
7478	// RecordSuppress: The specific suppression option these stats apply to.
7479	RecordSuppress *GooglePrivacyDlpV2beta2RecordSuppression `json:"recordSuppress,omitempty"`
7480
7481	Results []*GooglePrivacyDlpV2beta2SummaryResult `json:"results,omitempty"`
7482
7483	// Transformation: The specific transformation these stats apply to.
7484	Transformation *GooglePrivacyDlpV2beta2PrimitiveTransformation `json:"transformation,omitempty"`
7485
7486	// TransformedBytes: Total size in bytes that were transformed in some
7487	// way.
7488	TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
7489
7490	// ForceSendFields is a list of field names (e.g. "Field") to
7491	// unconditionally include in API requests. By default, fields with
7492	// empty values are omitted from API requests. However, any non-pointer,
7493	// non-interface field appearing in ForceSendFields will be sent to the
7494	// server regardless of whether the field is empty or not. This may be
7495	// used to include empty fields in Patch requests.
7496	ForceSendFields []string `json:"-"`
7497
7498	// NullFields is a list of field names (e.g. "Field") to include in API
7499	// requests with the JSON null value. By default, fields with empty
7500	// values are omitted from API requests. However, any field with an
7501	// empty value appearing in NullFields will be sent to the server as
7502	// null. It is an error if a field in this list has a non-empty value.
7503	// This may be used to include null fields in Patch requests.
7504	NullFields []string `json:"-"`
7505}
7506
7507func (s *GooglePrivacyDlpV2beta2TransformationSummary) MarshalJSON() ([]byte, error) {
7508	type NoMethod GooglePrivacyDlpV2beta2TransformationSummary
7509	raw := NoMethod(*s)
7510	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7511}
7512
7513// GooglePrivacyDlpV2beta2TransientCryptoKey: Use this to have a random
7514// data crypto key generated.
7515// It will be discarded after the request finishes.
7516type GooglePrivacyDlpV2beta2TransientCryptoKey struct {
7517	// Name: Name of the key. [required]
7518	// This is an arbitrary string used to differentiate different keys.
7519	// A unique key is generated per name: two separate
7520	// `TransientCryptoKey`
7521	// protos share the same generated key if their names are the same.
7522	// When the data crypto key is generated, this name is not used in any
7523	// way
7524	// (repeating the api call will result in a different key being
7525	// generated).
7526	Name string `json:"name,omitempty"`
7527
7528	// ForceSendFields is a list of field names (e.g. "Name") to
7529	// unconditionally include in API requests. By default, fields with
7530	// empty values are omitted from API requests. However, any non-pointer,
7531	// non-interface field appearing in ForceSendFields will be sent to the
7532	// server regardless of whether the field is empty or not. This may be
7533	// used to include empty fields in Patch requests.
7534	ForceSendFields []string `json:"-"`
7535
7536	// NullFields is a list of field names (e.g. "Name") to include in API
7537	// requests with the JSON null value. By default, fields with empty
7538	// values are omitted from API requests. However, any field with an
7539	// empty value appearing in NullFields will be sent to the server as
7540	// null. It is an error if a field in this list has a non-empty value.
7541	// This may be used to include null fields in Patch requests.
7542	NullFields []string `json:"-"`
7543}
7544
7545func (s *GooglePrivacyDlpV2beta2TransientCryptoKey) MarshalJSON() ([]byte, error) {
7546	type NoMethod GooglePrivacyDlpV2beta2TransientCryptoKey
7547	raw := NoMethod(*s)
7548	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7549}
7550
7551// GooglePrivacyDlpV2beta2Trigger: What event needs to occur for a new
7552// job to be started.
7553type GooglePrivacyDlpV2beta2Trigger struct {
7554	// Schedule: Create a job on a repeating basis based on the elapse of
7555	// time.
7556	Schedule *GooglePrivacyDlpV2beta2Schedule `json:"schedule,omitempty"`
7557
7558	// ForceSendFields is a list of field names (e.g. "Schedule") to
7559	// unconditionally include in API requests. By default, fields with
7560	// empty values are omitted from API requests. However, any non-pointer,
7561	// non-interface field appearing in ForceSendFields will be sent to the
7562	// server regardless of whether the field is empty or not. This may be
7563	// used to include empty fields in Patch requests.
7564	ForceSendFields []string `json:"-"`
7565
7566	// NullFields is a list of field names (e.g. "Schedule") to include in
7567	// API requests with the JSON null value. By default, fields with empty
7568	// values are omitted from API requests. However, any field with an
7569	// empty value appearing in NullFields will be sent to the server as
7570	// null. It is an error if a field in this list has a non-empty value.
7571	// This may be used to include null fields in Patch requests.
7572	NullFields []string `json:"-"`
7573}
7574
7575func (s *GooglePrivacyDlpV2beta2Trigger) MarshalJSON() ([]byte, error) {
7576	type NoMethod GooglePrivacyDlpV2beta2Trigger
7577	raw := NoMethod(*s)
7578	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7579}
7580
7581// GooglePrivacyDlpV2beta2UnwrappedCryptoKey: Using raw keys is prone to
7582// security risks due to accidentally
7583// leaking the key. Choose another type of key if possible.
7584type GooglePrivacyDlpV2beta2UnwrappedCryptoKey struct {
7585	// Key: The AES 128/192/256 bit key. [required]
7586	Key string `json:"key,omitempty"`
7587
7588	// ForceSendFields is a list of field names (e.g. "Key") to
7589	// unconditionally include in API requests. By default, fields with
7590	// empty values are omitted from API requests. However, any non-pointer,
7591	// non-interface field appearing in ForceSendFields will be sent to the
7592	// server regardless of whether the field is empty or not. This may be
7593	// used to include empty fields in Patch requests.
7594	ForceSendFields []string `json:"-"`
7595
7596	// NullFields is a list of field names (e.g. "Key") to include in API
7597	// requests with the JSON null value. By default, fields with empty
7598	// values are omitted from API requests. However, any field with an
7599	// empty value appearing in NullFields will be sent to the server as
7600	// null. It is an error if a field in this list has a non-empty value.
7601	// This may be used to include null fields in Patch requests.
7602	NullFields []string `json:"-"`
7603}
7604
7605func (s *GooglePrivacyDlpV2beta2UnwrappedCryptoKey) MarshalJSON() ([]byte, error) {
7606	type NoMethod GooglePrivacyDlpV2beta2UnwrappedCryptoKey
7607	raw := NoMethod(*s)
7608	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7609}
7610
7611// GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest: Request
7612// message for UpdateDeidentifyTemplate.
7613type GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest struct {
7614	// DeidentifyTemplate: New DeidentifyTemplate value.
7615	DeidentifyTemplate *GooglePrivacyDlpV2beta2DeidentifyTemplate `json:"deidentifyTemplate,omitempty"`
7616
7617	// UpdateMask: Mask to control which fields get updated.
7618	UpdateMask string `json:"updateMask,omitempty"`
7619
7620	// ForceSendFields is a list of field names (e.g. "DeidentifyTemplate")
7621	// to unconditionally include in API requests. By default, fields with
7622	// empty values are omitted from API requests. However, any non-pointer,
7623	// non-interface field appearing in ForceSendFields will be sent to the
7624	// server regardless of whether the field is empty or not. This may be
7625	// used to include empty fields in Patch requests.
7626	ForceSendFields []string `json:"-"`
7627
7628	// NullFields is a list of field names (e.g. "DeidentifyTemplate") to
7629	// include in API requests with the JSON null value. By default, fields
7630	// with empty values are omitted from API requests. However, any field
7631	// with an empty value appearing in NullFields will be sent to the
7632	// server as null. It is an error if a field in this list has a
7633	// non-empty value. This may be used to include null fields in Patch
7634	// requests.
7635	NullFields []string `json:"-"`
7636}
7637
7638func (s *GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest) MarshalJSON() ([]byte, error) {
7639	type NoMethod GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest
7640	raw := NoMethod(*s)
7641	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7642}
7643
7644// GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest: Request message
7645// for UpdateInspectTemplate.
7646type GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest struct {
7647	// InspectTemplate: New InspectTemplate value.
7648	InspectTemplate *GooglePrivacyDlpV2beta2InspectTemplate `json:"inspectTemplate,omitempty"`
7649
7650	// UpdateMask: Mask to control which fields get updated.
7651	UpdateMask string `json:"updateMask,omitempty"`
7652
7653	// ForceSendFields is a list of field names (e.g. "InspectTemplate") to
7654	// unconditionally include in API requests. By default, fields with
7655	// empty values are omitted from API requests. However, any non-pointer,
7656	// non-interface field appearing in ForceSendFields will be sent to the
7657	// server regardless of whether the field is empty or not. This may be
7658	// used to include empty fields in Patch requests.
7659	ForceSendFields []string `json:"-"`
7660
7661	// NullFields is a list of field names (e.g. "InspectTemplate") to
7662	// include in API requests with the JSON null value. By default, fields
7663	// with empty values are omitted from API requests. However, any field
7664	// with an empty value appearing in NullFields will be sent to the
7665	// server as null. It is an error if a field in this list has a
7666	// non-empty value. This may be used to include null fields in Patch
7667	// requests.
7668	NullFields []string `json:"-"`
7669}
7670
7671func (s *GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest) MarshalJSON() ([]byte, error) {
7672	type NoMethod GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest
7673	raw := NoMethod(*s)
7674	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7675}
7676
7677// GooglePrivacyDlpV2beta2UpdateJobTriggerRequest: Request message for
7678// UpdateJobTrigger.
7679type GooglePrivacyDlpV2beta2UpdateJobTriggerRequest struct {
7680	// JobTrigger: New JobTrigger value.
7681	JobTrigger *GooglePrivacyDlpV2beta2JobTrigger `json:"jobTrigger,omitempty"`
7682
7683	// UpdateMask: Mask to control which fields get updated.
7684	UpdateMask string `json:"updateMask,omitempty"`
7685
7686	// ForceSendFields is a list of field names (e.g. "JobTrigger") to
7687	// unconditionally include in API requests. By default, fields with
7688	// empty values are omitted from API requests. However, any non-pointer,
7689	// non-interface field appearing in ForceSendFields will be sent to the
7690	// server regardless of whether the field is empty or not. This may be
7691	// used to include empty fields in Patch requests.
7692	ForceSendFields []string `json:"-"`
7693
7694	// NullFields is a list of field names (e.g. "JobTrigger") to include in
7695	// API requests with the JSON null value. By default, fields with empty
7696	// values are omitted from API requests. However, any field with an
7697	// empty value appearing in NullFields will be sent to the server as
7698	// null. It is an error if a field in this list has a non-empty value.
7699	// This may be used to include null fields in Patch requests.
7700	NullFields []string `json:"-"`
7701}
7702
7703func (s *GooglePrivacyDlpV2beta2UpdateJobTriggerRequest) MarshalJSON() ([]byte, error) {
7704	type NoMethod GooglePrivacyDlpV2beta2UpdateJobTriggerRequest
7705	raw := NoMethod(*s)
7706	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7707}
7708
7709// GooglePrivacyDlpV2beta2Value: Set of primitive values supported by
7710// the system.
7711// Note that for the purposes of inspection or transformation, the
7712// number
7713// of bytes considered to comprise a 'Value' is based on its
7714// representation
7715// as a UTF-8 encoded string. For example, if 'integer_value' is set
7716// to
7717// 123456789, the number of bytes would be counted as 9, even though
7718// an
7719// int64 only holds up to 8 bytes of data.
7720type GooglePrivacyDlpV2beta2Value struct {
7721	BooleanValue bool `json:"booleanValue,omitempty"`
7722
7723	DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
7724
7725	// Possible values:
7726	//   "DAY_OF_WEEK_UNSPECIFIED" - The unspecified day-of-week.
7727	//   "MONDAY" - The day-of-week of Monday.
7728	//   "TUESDAY" - The day-of-week of Tuesday.
7729	//   "WEDNESDAY" - The day-of-week of Wednesday.
7730	//   "THURSDAY" - The day-of-week of Thursday.
7731	//   "FRIDAY" - The day-of-week of Friday.
7732	//   "SATURDAY" - The day-of-week of Saturday.
7733	//   "SUNDAY" - The day-of-week of Sunday.
7734	DayOfWeekValue string `json:"dayOfWeekValue,omitempty"`
7735
7736	FloatValue float64 `json:"floatValue,omitempty"`
7737
7738	IntegerValue int64 `json:"integerValue,omitempty,string"`
7739
7740	StringValue string `json:"stringValue,omitempty"`
7741
7742	TimeValue *GoogleTypeTimeOfDay `json:"timeValue,omitempty"`
7743
7744	TimestampValue string `json:"timestampValue,omitempty"`
7745
7746	// ForceSendFields is a list of field names (e.g. "BooleanValue") to
7747	// unconditionally include in API requests. By default, fields with
7748	// empty values are omitted from API requests. However, any non-pointer,
7749	// non-interface field appearing in ForceSendFields will be sent to the
7750	// server regardless of whether the field is empty or not. This may be
7751	// used to include empty fields in Patch requests.
7752	ForceSendFields []string `json:"-"`
7753
7754	// NullFields is a list of field names (e.g. "BooleanValue") to include
7755	// in API requests with the JSON null value. By default, fields with
7756	// empty values are omitted from API requests. However, any field with
7757	// an empty value appearing in NullFields will be sent to the server as
7758	// null. It is an error if a field in this list has a non-empty value.
7759	// This may be used to include null fields in Patch requests.
7760	NullFields []string `json:"-"`
7761}
7762
7763func (s *GooglePrivacyDlpV2beta2Value) MarshalJSON() ([]byte, error) {
7764	type NoMethod GooglePrivacyDlpV2beta2Value
7765	raw := NoMethod(*s)
7766	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7767}
7768
7769func (s *GooglePrivacyDlpV2beta2Value) UnmarshalJSON(data []byte) error {
7770	type NoMethod GooglePrivacyDlpV2beta2Value
7771	var s1 struct {
7772		FloatValue gensupport.JSONFloat64 `json:"floatValue"`
7773		*NoMethod
7774	}
7775	s1.NoMethod = (*NoMethod)(s)
7776	if err := json.Unmarshal(data, &s1); err != nil {
7777		return err
7778	}
7779	s.FloatValue = float64(s1.FloatValue)
7780	return nil
7781}
7782
7783// GooglePrivacyDlpV2beta2ValueFrequency: A value of a field, including
7784// its frequency.
7785type GooglePrivacyDlpV2beta2ValueFrequency struct {
7786	// Count: How many times the value is contained in the field.
7787	Count int64 `json:"count,omitempty,string"`
7788
7789	// Value: A value contained in the field in question.
7790	Value *GooglePrivacyDlpV2beta2Value `json:"value,omitempty"`
7791
7792	// ForceSendFields is a list of field names (e.g. "Count") to
7793	// unconditionally include in API requests. By default, fields with
7794	// empty values are omitted from API requests. However, any non-pointer,
7795	// non-interface field appearing in ForceSendFields will be sent to the
7796	// server regardless of whether the field is empty or not. This may be
7797	// used to include empty fields in Patch requests.
7798	ForceSendFields []string `json:"-"`
7799
7800	// NullFields is a list of field names (e.g. "Count") to include in API
7801	// requests with the JSON null value. By default, fields with empty
7802	// values are omitted from API requests. However, any field with an
7803	// empty value appearing in NullFields will be sent to the server as
7804	// null. It is an error if a field in this list has a non-empty value.
7805	// This may be used to include null fields in Patch requests.
7806	NullFields []string `json:"-"`
7807}
7808
7809func (s *GooglePrivacyDlpV2beta2ValueFrequency) MarshalJSON() ([]byte, error) {
7810	type NoMethod GooglePrivacyDlpV2beta2ValueFrequency
7811	raw := NoMethod(*s)
7812	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7813}
7814
7815// GooglePrivacyDlpV2beta2WordList: Message defining a list of words or
7816// phrases to search for in the data.
7817type GooglePrivacyDlpV2beta2WordList struct {
7818	// Words: Words or phrases defining the dictionary. The dictionary must
7819	// contain
7820	// at least one phrase and every phrase must contain at least 2
7821	// characters
7822	// that are letters or digits. [required]
7823	Words []string `json:"words,omitempty"`
7824
7825	// ForceSendFields is a list of field names (e.g. "Words") to
7826	// unconditionally include in API requests. By default, fields with
7827	// empty values are omitted from API requests. However, any non-pointer,
7828	// non-interface field appearing in ForceSendFields will be sent to the
7829	// server regardless of whether the field is empty or not. This may be
7830	// used to include empty fields in Patch requests.
7831	ForceSendFields []string `json:"-"`
7832
7833	// NullFields is a list of field names (e.g. "Words") to include in API
7834	// requests with the JSON null value. By default, fields with empty
7835	// values are omitted from API requests. However, any field with an
7836	// empty value appearing in NullFields will be sent to the server as
7837	// null. It is an error if a field in this list has a non-empty value.
7838	// This may be used to include null fields in Patch requests.
7839	NullFields []string `json:"-"`
7840}
7841
7842func (s *GooglePrivacyDlpV2beta2WordList) MarshalJSON() ([]byte, error) {
7843	type NoMethod GooglePrivacyDlpV2beta2WordList
7844	raw := NoMethod(*s)
7845	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7846}
7847
7848// GoogleProtobufEmpty: A generic empty message that you can re-use to
7849// avoid defining duplicated
7850// empty messages in your APIs. A typical example is to use it as the
7851// request
7852// or the response type of an API method. For instance:
7853//
7854//     service Foo {
7855//       rpc Bar(google.protobuf.Empty) returns
7856// (google.protobuf.Empty);
7857//     }
7858//
7859// The JSON representation for `Empty` is empty JSON object `{}`.
7860type GoogleProtobufEmpty struct {
7861	// ServerResponse contains the HTTP response code and headers from the
7862	// server.
7863	googleapi.ServerResponse `json:"-"`
7864}
7865
7866// GoogleRpcStatus: The `Status` type defines a logical error model that
7867// is suitable for different
7868// programming environments, including REST APIs and RPC APIs. It is
7869// used by
7870// [gRPC](https://github.com/grpc). The error model is designed to
7871// be:
7872//
7873// - Simple to use and understand for most users
7874// - Flexible enough to meet unexpected needs
7875//
7876// # Overview
7877//
7878// The `Status` message contains three pieces of data: error code, error
7879// message,
7880// and error details. The error code should be an enum value
7881// of
7882// google.rpc.Code, but it may accept additional error codes if needed.
7883// The
7884// error message should be a developer-facing English message that
7885// helps
7886// developers *understand* and *resolve* the error. If a localized
7887// user-facing
7888// error message is needed, put the localized message in the error
7889// details or
7890// localize it in the client. The optional error details may contain
7891// arbitrary
7892// information about the error. There is a predefined set of error
7893// detail types
7894// in the package `google.rpc` that can be used for common error
7895// conditions.
7896//
7897// # Language mapping
7898//
7899// The `Status` message is the logical representation of the error
7900// model, but it
7901// is not necessarily the actual wire format. When the `Status` message
7902// is
7903// exposed in different client libraries and different wire protocols,
7904// it can be
7905// mapped differently. For example, it will likely be mapped to some
7906// exceptions
7907// in Java, but more likely mapped to some error codes in C.
7908//
7909// # Other uses
7910//
7911// The error model and the `Status` message can be used in a variety
7912// of
7913// environments, either with or without APIs, to provide a
7914// consistent developer experience across different
7915// environments.
7916//
7917// Example uses of this error model include:
7918//
7919// - Partial errors. If a service needs to return partial errors to the
7920// client,
7921//     it may embed the `Status` in the normal response to indicate the
7922// partial
7923//     errors.
7924//
7925// - Workflow errors. A typical workflow has multiple steps. Each step
7926// may
7927//     have a `Status` message for error reporting.
7928//
7929// - Batch operations. If a client uses batch request and batch
7930// response, the
7931//     `Status` message should be used directly inside batch response,
7932// one for
7933//     each error sub-response.
7934//
7935// - Asynchronous operations. If an API call embeds asynchronous
7936// operation
7937//     results in its response, the status of those operations should
7938// be
7939//     represented directly using the `Status` message.
7940//
7941// - Logging. If some API errors are stored in logs, the message
7942// `Status` could
7943//     be used directly after any stripping needed for security/privacy
7944// reasons.
7945type GoogleRpcStatus struct {
7946	// Code: The status code, which should be an enum value of
7947	// google.rpc.Code.
7948	Code int64 `json:"code,omitempty"`
7949
7950	// Details: A list of messages that carry the error details.  There is a
7951	// common set of
7952	// message types for APIs to use.
7953	Details []googleapi.RawMessage `json:"details,omitempty"`
7954
7955	// Message: A developer-facing error message, which should be in
7956	// English. Any
7957	// user-facing error message should be localized and sent in
7958	// the
7959	// google.rpc.Status.details field, or localized by the client.
7960	Message string `json:"message,omitempty"`
7961
7962	// ForceSendFields is a list of field names (e.g. "Code") to
7963	// unconditionally include in API requests. By default, fields with
7964	// empty values are omitted from API requests. However, any non-pointer,
7965	// non-interface field appearing in ForceSendFields will be sent to the
7966	// server regardless of whether the field is empty or not. This may be
7967	// used to include empty fields in Patch requests.
7968	ForceSendFields []string `json:"-"`
7969
7970	// NullFields is a list of field names (e.g. "Code") to include in API
7971	// requests with the JSON null value. By default, fields with empty
7972	// values are omitted from API requests. However, any field with an
7973	// empty value appearing in NullFields will be sent to the server as
7974	// null. It is an error if a field in this list has a non-empty value.
7975	// This may be used to include null fields in Patch requests.
7976	NullFields []string `json:"-"`
7977}
7978
7979func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
7980	type NoMethod GoogleRpcStatus
7981	raw := NoMethod(*s)
7982	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
7983}
7984
7985// GoogleTypeDate: Represents a whole calendar date, e.g. date of birth.
7986// The time of day and
7987// time zone are either specified elsewhere or are not significant. The
7988// date
7989// is relative to the Proleptic Gregorian Calendar. The day may be 0
7990// to
7991// represent a year and month where the day is not significant, e.g.
7992// credit card
7993// expiration date. The year may be 0 to represent a month and day
7994// independent
7995// of year, e.g. anniversary date. Related types are
7996// google.type.TimeOfDay
7997// and `google.protobuf.Timestamp`.
7998type GoogleTypeDate struct {
7999	// Day: Day of month. Must be from 1 to 31 and valid for the year and
8000	// month, or 0
8001	// if specifying a year/month where the day is not significant.
8002	Day int64 `json:"day,omitempty"`
8003
8004	// Month: Month of year. Must be from 1 to 12, or 0 if specifying a date
8005	// without a
8006	// month.
8007	Month int64 `json:"month,omitempty"`
8008
8009	// Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date
8010	// without
8011	// a year.
8012	Year int64 `json:"year,omitempty"`
8013
8014	// ForceSendFields is a list of field names (e.g. "Day") to
8015	// unconditionally include in API requests. By default, fields with
8016	// empty values are omitted from API requests. However, any non-pointer,
8017	// non-interface field appearing in ForceSendFields will be sent to the
8018	// server regardless of whether the field is empty or not. This may be
8019	// used to include empty fields in Patch requests.
8020	ForceSendFields []string `json:"-"`
8021
8022	// NullFields is a list of field names (e.g. "Day") to include in API
8023	// requests with the JSON null value. By default, fields with empty
8024	// values are omitted from API requests. However, any field with an
8025	// empty value appearing in NullFields will be sent to the server as
8026	// null. It is an error if a field in this list has a non-empty value.
8027	// This may be used to include null fields in Patch requests.
8028	NullFields []string `json:"-"`
8029}
8030
8031func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
8032	type NoMethod GoogleTypeDate
8033	raw := NoMethod(*s)
8034	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8035}
8036
8037// GoogleTypeTimeOfDay: Represents a time of day. The date and time zone
8038// are either not significant
8039// or are specified elsewhere. An API may choose to allow leap seconds.
8040// Related
8041// types are google.type.Date and `google.protobuf.Timestamp`.
8042type GoogleTypeTimeOfDay struct {
8043	// Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API
8044	// may choose
8045	// to allow the value "24:00:00" for scenarios like business closing
8046	// time.
8047	Hours int64 `json:"hours,omitempty"`
8048
8049	// Minutes: Minutes of hour of day. Must be from 0 to 59.
8050	Minutes int64 `json:"minutes,omitempty"`
8051
8052	// Nanos: Fractions of seconds in nanoseconds. Must be from 0 to
8053	// 999,999,999.
8054	Nanos int64 `json:"nanos,omitempty"`
8055
8056	// Seconds: Seconds of minutes of the time. Must normally be from 0 to
8057	// 59. An API may
8058	// allow the value 60 if it allows leap-seconds.
8059	Seconds int64 `json:"seconds,omitempty"`
8060
8061	// ForceSendFields is a list of field names (e.g. "Hours") to
8062	// unconditionally include in API requests. By default, fields with
8063	// empty values are omitted from API requests. However, any non-pointer,
8064	// non-interface field appearing in ForceSendFields will be sent to the
8065	// server regardless of whether the field is empty or not. This may be
8066	// used to include empty fields in Patch requests.
8067	ForceSendFields []string `json:"-"`
8068
8069	// NullFields is a list of field names (e.g. "Hours") to include in API
8070	// requests with the JSON null value. By default, fields with empty
8071	// values are omitted from API requests. However, any field with an
8072	// empty value appearing in NullFields will be sent to the server as
8073	// null. It is an error if a field in this list has a non-empty value.
8074	// This may be used to include null fields in Patch requests.
8075	NullFields []string `json:"-"`
8076}
8077
8078func (s *GoogleTypeTimeOfDay) MarshalJSON() ([]byte, error) {
8079	type NoMethod GoogleTypeTimeOfDay
8080	raw := NoMethod(*s)
8081	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
8082}
8083
8084// method id "dlp.infoTypes.list":
8085
8086type InfoTypesListCall struct {
8087	s            *Service
8088	urlParams_   gensupport.URLParams
8089	ifNoneMatch_ string
8090	ctx_         context.Context
8091	header_      http.Header
8092}
8093
8094// List: Returns sensitive information types DLP supports.
8095func (r *InfoTypesService) List() *InfoTypesListCall {
8096	c := &InfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8097	return c
8098}
8099
8100// Filter sets the optional parameter "filter": Optional filter to only
8101// return infoTypes supported by certain parts of the
8102// API. Defaults to supported_by=INSPECT.
8103func (c *InfoTypesListCall) Filter(filter string) *InfoTypesListCall {
8104	c.urlParams_.Set("filter", filter)
8105	return c
8106}
8107
8108// LanguageCode sets the optional parameter "languageCode": Optional
8109// BCP-47 language code for localized infoType friendly
8110// names. If omitted, or if localized strings are not available,
8111// en-US strings will be returned.
8112func (c *InfoTypesListCall) LanguageCode(languageCode string) *InfoTypesListCall {
8113	c.urlParams_.Set("languageCode", languageCode)
8114	return c
8115}
8116
8117// Fields allows partial responses to be retrieved. See
8118// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8119// for more information.
8120func (c *InfoTypesListCall) Fields(s ...googleapi.Field) *InfoTypesListCall {
8121	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8122	return c
8123}
8124
8125// IfNoneMatch sets the optional parameter which makes the operation
8126// fail if the object's ETag matches the given value. This is useful for
8127// getting updates only after the object has changed since the last
8128// request. Use googleapi.IsNotModified to check whether the response
8129// error from Do is the result of In-None-Match.
8130func (c *InfoTypesListCall) IfNoneMatch(entityTag string) *InfoTypesListCall {
8131	c.ifNoneMatch_ = entityTag
8132	return c
8133}
8134
8135// Context sets the context to be used in this call's Do method. Any
8136// pending HTTP request will be aborted if the provided context is
8137// canceled.
8138func (c *InfoTypesListCall) Context(ctx context.Context) *InfoTypesListCall {
8139	c.ctx_ = ctx
8140	return c
8141}
8142
8143// Header returns an http.Header that can be modified by the caller to
8144// add HTTP headers to the request.
8145func (c *InfoTypesListCall) Header() http.Header {
8146	if c.header_ == nil {
8147		c.header_ = make(http.Header)
8148	}
8149	return c.header_
8150}
8151
8152func (c *InfoTypesListCall) doRequest(alt string) (*http.Response, error) {
8153	reqHeaders := make(http.Header)
8154	for k, v := range c.header_ {
8155		reqHeaders[k] = v
8156	}
8157	reqHeaders.Set("User-Agent", c.s.userAgent())
8158	if c.ifNoneMatch_ != "" {
8159		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8160	}
8161	var body io.Reader = nil
8162	c.urlParams_.Set("alt", alt)
8163	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/infoTypes")
8164	urls += "?" + c.urlParams_.Encode()
8165	req, _ := http.NewRequest("GET", urls, body)
8166	req.Header = reqHeaders
8167	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8168}
8169
8170// Do executes the "dlp.infoTypes.list" call.
8171// Exactly one of *GooglePrivacyDlpV2beta2ListInfoTypesResponse or error
8172// will be non-nil. Any non-2xx status code is an error. Response
8173// headers are in either
8174// *GooglePrivacyDlpV2beta2ListInfoTypesResponse.ServerResponse.Header
8175// or (if a response was returned at all) in
8176// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8177// whether the returned error was because http.StatusNotModified was
8178// returned.
8179func (c *InfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListInfoTypesResponse, error) {
8180	gensupport.SetOptions(c.urlParams_, opts...)
8181	res, err := c.doRequest("json")
8182	if res != nil && res.StatusCode == http.StatusNotModified {
8183		if res.Body != nil {
8184			res.Body.Close()
8185		}
8186		return nil, &googleapi.Error{
8187			Code:   res.StatusCode,
8188			Header: res.Header,
8189		}
8190	}
8191	if err != nil {
8192		return nil, err
8193	}
8194	defer googleapi.CloseBody(res)
8195	if err := googleapi.CheckResponse(res); err != nil {
8196		return nil, err
8197	}
8198	ret := &GooglePrivacyDlpV2beta2ListInfoTypesResponse{
8199		ServerResponse: googleapi.ServerResponse{
8200			Header:         res.Header,
8201			HTTPStatusCode: res.StatusCode,
8202		},
8203	}
8204	target := &ret
8205	if err := gensupport.DecodeResponse(target, res); err != nil {
8206		return nil, err
8207	}
8208	return ret, nil
8209	// {
8210	//   "description": "Returns sensitive information types DLP supports.",
8211	//   "flatPath": "v2beta2/infoTypes",
8212	//   "httpMethod": "GET",
8213	//   "id": "dlp.infoTypes.list",
8214	//   "parameterOrder": [],
8215	//   "parameters": {
8216	//     "filter": {
8217	//       "description": "Optional filter to only return infoTypes supported by certain parts of the\nAPI. Defaults to supported_by=INSPECT.",
8218	//       "location": "query",
8219	//       "type": "string"
8220	//     },
8221	//     "languageCode": {
8222	//       "description": "Optional BCP-47 language code for localized infoType friendly\nnames. If omitted, or if localized strings are not available,\nen-US strings will be returned.",
8223	//       "location": "query",
8224	//       "type": "string"
8225	//     }
8226	//   },
8227	//   "path": "v2beta2/infoTypes",
8228	//   "response": {
8229	//     "$ref": "GooglePrivacyDlpV2beta2ListInfoTypesResponse"
8230	//   },
8231	//   "scopes": [
8232	//     "https://www.googleapis.com/auth/cloud-platform"
8233	//   ]
8234	// }
8235
8236}
8237
8238// method id "dlp.organizations.deidentifyTemplates.create":
8239
8240type OrganizationsDeidentifyTemplatesCreateCall struct {
8241	s                                                      *Service
8242	parent                                                 string
8243	googleprivacydlpv2beta2createdeidentifytemplaterequest *GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest
8244	urlParams_                                             gensupport.URLParams
8245	ctx_                                                   context.Context
8246	header_                                                http.Header
8247}
8248
8249// Create: Creates an Deidentify template for re-using frequently used
8250// configuration
8251// for Deidentifying content, images, and storage.
8252func (r *OrganizationsDeidentifyTemplatesService) Create(parent string, googleprivacydlpv2beta2createdeidentifytemplaterequest *GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest) *OrganizationsDeidentifyTemplatesCreateCall {
8253	c := &OrganizationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8254	c.parent = parent
8255	c.googleprivacydlpv2beta2createdeidentifytemplaterequest = googleprivacydlpv2beta2createdeidentifytemplaterequest
8256	return c
8257}
8258
8259// Fields allows partial responses to be retrieved. See
8260// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8261// for more information.
8262func (c *OrganizationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesCreateCall {
8263	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8264	return c
8265}
8266
8267// Context sets the context to be used in this call's Do method. Any
8268// pending HTTP request will be aborted if the provided context is
8269// canceled.
8270func (c *OrganizationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesCreateCall {
8271	c.ctx_ = ctx
8272	return c
8273}
8274
8275// Header returns an http.Header that can be modified by the caller to
8276// add HTTP headers to the request.
8277func (c *OrganizationsDeidentifyTemplatesCreateCall) Header() http.Header {
8278	if c.header_ == nil {
8279		c.header_ = make(http.Header)
8280	}
8281	return c.header_
8282}
8283
8284func (c *OrganizationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
8285	reqHeaders := make(http.Header)
8286	for k, v := range c.header_ {
8287		reqHeaders[k] = v
8288	}
8289	reqHeaders.Set("User-Agent", c.s.userAgent())
8290	var body io.Reader = nil
8291	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2createdeidentifytemplaterequest)
8292	if err != nil {
8293		return nil, err
8294	}
8295	reqHeaders.Set("Content-Type", "application/json")
8296	c.urlParams_.Set("alt", alt)
8297	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/deidentifyTemplates")
8298	urls += "?" + c.urlParams_.Encode()
8299	req, _ := http.NewRequest("POST", urls, body)
8300	req.Header = reqHeaders
8301	googleapi.Expand(req.URL, map[string]string{
8302		"parent": c.parent,
8303	})
8304	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8305}
8306
8307// Do executes the "dlp.organizations.deidentifyTemplates.create" call.
8308// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyTemplate or error
8309// will be non-nil. Any non-2xx status code is an error. Response
8310// headers are in either
8311// *GooglePrivacyDlpV2beta2DeidentifyTemplate.ServerResponse.Header or
8312// (if a response was returned at all) in
8313// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8314// whether the returned error was because http.StatusNotModified was
8315// returned.
8316func (c *OrganizationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyTemplate, error) {
8317	gensupport.SetOptions(c.urlParams_, opts...)
8318	res, err := c.doRequest("json")
8319	if res != nil && res.StatusCode == http.StatusNotModified {
8320		if res.Body != nil {
8321			res.Body.Close()
8322		}
8323		return nil, &googleapi.Error{
8324			Code:   res.StatusCode,
8325			Header: res.Header,
8326		}
8327	}
8328	if err != nil {
8329		return nil, err
8330	}
8331	defer googleapi.CloseBody(res)
8332	if err := googleapi.CheckResponse(res); err != nil {
8333		return nil, err
8334	}
8335	ret := &GooglePrivacyDlpV2beta2DeidentifyTemplate{
8336		ServerResponse: googleapi.ServerResponse{
8337			Header:         res.Header,
8338			HTTPStatusCode: res.StatusCode,
8339		},
8340	}
8341	target := &ret
8342	if err := gensupport.DecodeResponse(target, res); err != nil {
8343		return nil, err
8344	}
8345	return ret, nil
8346	// {
8347	//   "description": "Creates an Deidentify template for re-using frequently used configuration\nfor Deidentifying content, images, and storage.",
8348	//   "flatPath": "v2beta2/organizations/{organizationsId}/deidentifyTemplates",
8349	//   "httpMethod": "POST",
8350	//   "id": "dlp.organizations.deidentifyTemplates.create",
8351	//   "parameterOrder": [
8352	//     "parent"
8353	//   ],
8354	//   "parameters": {
8355	//     "parent": {
8356	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
8357	//       "location": "path",
8358	//       "pattern": "^organizations/[^/]+$",
8359	//       "required": true,
8360	//       "type": "string"
8361	//     }
8362	//   },
8363	//   "path": "v2beta2/{+parent}/deidentifyTemplates",
8364	//   "request": {
8365	//     "$ref": "GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest"
8366	//   },
8367	//   "response": {
8368	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyTemplate"
8369	//   },
8370	//   "scopes": [
8371	//     "https://www.googleapis.com/auth/cloud-platform"
8372	//   ]
8373	// }
8374
8375}
8376
8377// method id "dlp.organizations.deidentifyTemplates.delete":
8378
8379type OrganizationsDeidentifyTemplatesDeleteCall struct {
8380	s          *Service
8381	name       string
8382	urlParams_ gensupport.URLParams
8383	ctx_       context.Context
8384	header_    http.Header
8385}
8386
8387// Delete: Deletes inspect templates.
8388func (r *OrganizationsDeidentifyTemplatesService) Delete(name string) *OrganizationsDeidentifyTemplatesDeleteCall {
8389	c := &OrganizationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8390	c.name = name
8391	return c
8392}
8393
8394// Fields allows partial responses to be retrieved. See
8395// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8396// for more information.
8397func (c *OrganizationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesDeleteCall {
8398	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8399	return c
8400}
8401
8402// Context sets the context to be used in this call's Do method. Any
8403// pending HTTP request will be aborted if the provided context is
8404// canceled.
8405func (c *OrganizationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesDeleteCall {
8406	c.ctx_ = ctx
8407	return c
8408}
8409
8410// Header returns an http.Header that can be modified by the caller to
8411// add HTTP headers to the request.
8412func (c *OrganizationsDeidentifyTemplatesDeleteCall) Header() http.Header {
8413	if c.header_ == nil {
8414		c.header_ = make(http.Header)
8415	}
8416	return c.header_
8417}
8418
8419func (c *OrganizationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
8420	reqHeaders := make(http.Header)
8421	for k, v := range c.header_ {
8422		reqHeaders[k] = v
8423	}
8424	reqHeaders.Set("User-Agent", c.s.userAgent())
8425	var body io.Reader = nil
8426	c.urlParams_.Set("alt", alt)
8427	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
8428	urls += "?" + c.urlParams_.Encode()
8429	req, _ := http.NewRequest("DELETE", urls, body)
8430	req.Header = reqHeaders
8431	googleapi.Expand(req.URL, map[string]string{
8432		"name": c.name,
8433	})
8434	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8435}
8436
8437// Do executes the "dlp.organizations.deidentifyTemplates.delete" call.
8438// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
8439// non-2xx status code is an error. Response headers are in either
8440// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
8441// returned at all) in error.(*googleapi.Error).Header. Use
8442// googleapi.IsNotModified to check whether the returned error was
8443// because http.StatusNotModified was returned.
8444func (c *OrganizationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
8445	gensupport.SetOptions(c.urlParams_, opts...)
8446	res, err := c.doRequest("json")
8447	if res != nil && res.StatusCode == http.StatusNotModified {
8448		if res.Body != nil {
8449			res.Body.Close()
8450		}
8451		return nil, &googleapi.Error{
8452			Code:   res.StatusCode,
8453			Header: res.Header,
8454		}
8455	}
8456	if err != nil {
8457		return nil, err
8458	}
8459	defer googleapi.CloseBody(res)
8460	if err := googleapi.CheckResponse(res); err != nil {
8461		return nil, err
8462	}
8463	ret := &GoogleProtobufEmpty{
8464		ServerResponse: googleapi.ServerResponse{
8465			Header:         res.Header,
8466			HTTPStatusCode: res.StatusCode,
8467		},
8468	}
8469	target := &ret
8470	if err := gensupport.DecodeResponse(target, res); err != nil {
8471		return nil, err
8472	}
8473	return ret, nil
8474	// {
8475	//   "description": "Deletes inspect templates.",
8476	//   "flatPath": "v2beta2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}",
8477	//   "httpMethod": "DELETE",
8478	//   "id": "dlp.organizations.deidentifyTemplates.delete",
8479	//   "parameterOrder": [
8480	//     "name"
8481	//   ],
8482	//   "parameters": {
8483	//     "name": {
8484	//       "description": "Resource name of the organization and deidentify template to be deleted,\nfor example `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
8485	//       "location": "path",
8486	//       "pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$",
8487	//       "required": true,
8488	//       "type": "string"
8489	//     }
8490	//   },
8491	//   "path": "v2beta2/{+name}",
8492	//   "response": {
8493	//     "$ref": "GoogleProtobufEmpty"
8494	//   },
8495	//   "scopes": [
8496	//     "https://www.googleapis.com/auth/cloud-platform"
8497	//   ]
8498	// }
8499
8500}
8501
8502// method id "dlp.organizations.deidentifyTemplates.get":
8503
8504type OrganizationsDeidentifyTemplatesGetCall struct {
8505	s            *Service
8506	name         string
8507	urlParams_   gensupport.URLParams
8508	ifNoneMatch_ string
8509	ctx_         context.Context
8510	header_      http.Header
8511}
8512
8513// Get: Gets an inspect template.
8514func (r *OrganizationsDeidentifyTemplatesService) Get(name string) *OrganizationsDeidentifyTemplatesGetCall {
8515	c := &OrganizationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8516	c.name = name
8517	return c
8518}
8519
8520// Fields allows partial responses to be retrieved. See
8521// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8522// for more information.
8523func (c *OrganizationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesGetCall {
8524	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8525	return c
8526}
8527
8528// IfNoneMatch sets the optional parameter which makes the operation
8529// fail if the object's ETag matches the given value. This is useful for
8530// getting updates only after the object has changed since the last
8531// request. Use googleapi.IsNotModified to check whether the response
8532// error from Do is the result of In-None-Match.
8533func (c *OrganizationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsDeidentifyTemplatesGetCall {
8534	c.ifNoneMatch_ = entityTag
8535	return c
8536}
8537
8538// Context sets the context to be used in this call's Do method. Any
8539// pending HTTP request will be aborted if the provided context is
8540// canceled.
8541func (c *OrganizationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesGetCall {
8542	c.ctx_ = ctx
8543	return c
8544}
8545
8546// Header returns an http.Header that can be modified by the caller to
8547// add HTTP headers to the request.
8548func (c *OrganizationsDeidentifyTemplatesGetCall) Header() http.Header {
8549	if c.header_ == nil {
8550		c.header_ = make(http.Header)
8551	}
8552	return c.header_
8553}
8554
8555func (c *OrganizationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
8556	reqHeaders := make(http.Header)
8557	for k, v := range c.header_ {
8558		reqHeaders[k] = v
8559	}
8560	reqHeaders.Set("User-Agent", c.s.userAgent())
8561	if c.ifNoneMatch_ != "" {
8562		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8563	}
8564	var body io.Reader = nil
8565	c.urlParams_.Set("alt", alt)
8566	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
8567	urls += "?" + c.urlParams_.Encode()
8568	req, _ := http.NewRequest("GET", urls, body)
8569	req.Header = reqHeaders
8570	googleapi.Expand(req.URL, map[string]string{
8571		"name": c.name,
8572	})
8573	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8574}
8575
8576// Do executes the "dlp.organizations.deidentifyTemplates.get" call.
8577// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyTemplate or error
8578// will be non-nil. Any non-2xx status code is an error. Response
8579// headers are in either
8580// *GooglePrivacyDlpV2beta2DeidentifyTemplate.ServerResponse.Header or
8581// (if a response was returned at all) in
8582// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8583// whether the returned error was because http.StatusNotModified was
8584// returned.
8585func (c *OrganizationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyTemplate, error) {
8586	gensupport.SetOptions(c.urlParams_, opts...)
8587	res, err := c.doRequest("json")
8588	if res != nil && res.StatusCode == http.StatusNotModified {
8589		if res.Body != nil {
8590			res.Body.Close()
8591		}
8592		return nil, &googleapi.Error{
8593			Code:   res.StatusCode,
8594			Header: res.Header,
8595		}
8596	}
8597	if err != nil {
8598		return nil, err
8599	}
8600	defer googleapi.CloseBody(res)
8601	if err := googleapi.CheckResponse(res); err != nil {
8602		return nil, err
8603	}
8604	ret := &GooglePrivacyDlpV2beta2DeidentifyTemplate{
8605		ServerResponse: googleapi.ServerResponse{
8606			Header:         res.Header,
8607			HTTPStatusCode: res.StatusCode,
8608		},
8609	}
8610	target := &ret
8611	if err := gensupport.DecodeResponse(target, res); err != nil {
8612		return nil, err
8613	}
8614	return ret, nil
8615	// {
8616	//   "description": "Gets an inspect template.",
8617	//   "flatPath": "v2beta2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}",
8618	//   "httpMethod": "GET",
8619	//   "id": "dlp.organizations.deidentifyTemplates.get",
8620	//   "parameterOrder": [
8621	//     "name"
8622	//   ],
8623	//   "parameters": {
8624	//     "name": {
8625	//       "description": "Resource name of the organization and deidentify template to be read, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
8626	//       "location": "path",
8627	//       "pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$",
8628	//       "required": true,
8629	//       "type": "string"
8630	//     }
8631	//   },
8632	//   "path": "v2beta2/{+name}",
8633	//   "response": {
8634	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyTemplate"
8635	//   },
8636	//   "scopes": [
8637	//     "https://www.googleapis.com/auth/cloud-platform"
8638	//   ]
8639	// }
8640
8641}
8642
8643// method id "dlp.organizations.deidentifyTemplates.list":
8644
8645type OrganizationsDeidentifyTemplatesListCall struct {
8646	s            *Service
8647	parent       string
8648	urlParams_   gensupport.URLParams
8649	ifNoneMatch_ string
8650	ctx_         context.Context
8651	header_      http.Header
8652}
8653
8654// List: Lists inspect templates.
8655func (r *OrganizationsDeidentifyTemplatesService) List(parent string) *OrganizationsDeidentifyTemplatesListCall {
8656	c := &OrganizationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8657	c.parent = parent
8658	return c
8659}
8660
8661// PageSize sets the optional parameter "pageSize": Optional size of the
8662// page, can be limited by server. If zero server returns
8663// a page of max size 100.
8664func (c *OrganizationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *OrganizationsDeidentifyTemplatesListCall {
8665	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8666	return c
8667}
8668
8669// PageToken sets the optional parameter "pageToken": Optional page
8670// token to continue retrieval. Comes from previous call
8671// to `ListDeidentifyTemplates`.
8672func (c *OrganizationsDeidentifyTemplatesListCall) PageToken(pageToken string) *OrganizationsDeidentifyTemplatesListCall {
8673	c.urlParams_.Set("pageToken", pageToken)
8674	return c
8675}
8676
8677// Fields allows partial responses to be retrieved. See
8678// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8679// for more information.
8680func (c *OrganizationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesListCall {
8681	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8682	return c
8683}
8684
8685// IfNoneMatch sets the optional parameter which makes the operation
8686// fail if the object's ETag matches the given value. This is useful for
8687// getting updates only after the object has changed since the last
8688// request. Use googleapi.IsNotModified to check whether the response
8689// error from Do is the result of In-None-Match.
8690func (c *OrganizationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsDeidentifyTemplatesListCall {
8691	c.ifNoneMatch_ = entityTag
8692	return c
8693}
8694
8695// Context sets the context to be used in this call's Do method. Any
8696// pending HTTP request will be aborted if the provided context is
8697// canceled.
8698func (c *OrganizationsDeidentifyTemplatesListCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesListCall {
8699	c.ctx_ = ctx
8700	return c
8701}
8702
8703// Header returns an http.Header that can be modified by the caller to
8704// add HTTP headers to the request.
8705func (c *OrganizationsDeidentifyTemplatesListCall) Header() http.Header {
8706	if c.header_ == nil {
8707		c.header_ = make(http.Header)
8708	}
8709	return c.header_
8710}
8711
8712func (c *OrganizationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
8713	reqHeaders := make(http.Header)
8714	for k, v := range c.header_ {
8715		reqHeaders[k] = v
8716	}
8717	reqHeaders.Set("User-Agent", c.s.userAgent())
8718	if c.ifNoneMatch_ != "" {
8719		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8720	}
8721	var body io.Reader = nil
8722	c.urlParams_.Set("alt", alt)
8723	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/deidentifyTemplates")
8724	urls += "?" + c.urlParams_.Encode()
8725	req, _ := http.NewRequest("GET", urls, body)
8726	req.Header = reqHeaders
8727	googleapi.Expand(req.URL, map[string]string{
8728		"parent": c.parent,
8729	})
8730	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8731}
8732
8733// Do executes the "dlp.organizations.deidentifyTemplates.list" call.
8734// Exactly one of
8735// *GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse or error will
8736// be non-nil. Any non-2xx status code is an error. Response headers are
8737// in either
8738// *GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse.ServerResponse
8739// .Header or (if a response was returned at all) in
8740// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8741// whether the returned error was because http.StatusNotModified was
8742// returned.
8743func (c *OrganizationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse, error) {
8744	gensupport.SetOptions(c.urlParams_, opts...)
8745	res, err := c.doRequest("json")
8746	if res != nil && res.StatusCode == http.StatusNotModified {
8747		if res.Body != nil {
8748			res.Body.Close()
8749		}
8750		return nil, &googleapi.Error{
8751			Code:   res.StatusCode,
8752			Header: res.Header,
8753		}
8754	}
8755	if err != nil {
8756		return nil, err
8757	}
8758	defer googleapi.CloseBody(res)
8759	if err := googleapi.CheckResponse(res); err != nil {
8760		return nil, err
8761	}
8762	ret := &GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse{
8763		ServerResponse: googleapi.ServerResponse{
8764			Header:         res.Header,
8765			HTTPStatusCode: res.StatusCode,
8766		},
8767	}
8768	target := &ret
8769	if err := gensupport.DecodeResponse(target, res); err != nil {
8770		return nil, err
8771	}
8772	return ret, nil
8773	// {
8774	//   "description": "Lists inspect templates.",
8775	//   "flatPath": "v2beta2/organizations/{organizationsId}/deidentifyTemplates",
8776	//   "httpMethod": "GET",
8777	//   "id": "dlp.organizations.deidentifyTemplates.list",
8778	//   "parameterOrder": [
8779	//     "parent"
8780	//   ],
8781	//   "parameters": {
8782	//     "pageSize": {
8783	//       "description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
8784	//       "format": "int32",
8785	//       "location": "query",
8786	//       "type": "integer"
8787	//     },
8788	//     "pageToken": {
8789	//       "description": "Optional page token to continue retrieval. Comes from previous call\nto `ListDeidentifyTemplates`.",
8790	//       "location": "query",
8791	//       "type": "string"
8792	//     },
8793	//     "parent": {
8794	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
8795	//       "location": "path",
8796	//       "pattern": "^organizations/[^/]+$",
8797	//       "required": true,
8798	//       "type": "string"
8799	//     }
8800	//   },
8801	//   "path": "v2beta2/{+parent}/deidentifyTemplates",
8802	//   "response": {
8803	//     "$ref": "GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse"
8804	//   },
8805	//   "scopes": [
8806	//     "https://www.googleapis.com/auth/cloud-platform"
8807	//   ]
8808	// }
8809
8810}
8811
8812// Pages invokes f for each page of results.
8813// A non-nil error returned from f will halt the iteration.
8814// The provided context supersedes any context provided to the Context method.
8815func (c *OrganizationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse) error) error {
8816	c.ctx_ = ctx
8817	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
8818	for {
8819		x, err := c.Do()
8820		if err != nil {
8821			return err
8822		}
8823		if err := f(x); err != nil {
8824			return err
8825		}
8826		if x.NextPageToken == "" {
8827			return nil
8828		}
8829		c.PageToken(x.NextPageToken)
8830	}
8831}
8832
8833// method id "dlp.organizations.deidentifyTemplates.patch":
8834
8835type OrganizationsDeidentifyTemplatesPatchCall struct {
8836	s                                                      *Service
8837	name                                                   string
8838	googleprivacydlpv2beta2updatedeidentifytemplaterequest *GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest
8839	urlParams_                                             gensupport.URLParams
8840	ctx_                                                   context.Context
8841	header_                                                http.Header
8842}
8843
8844// Patch: Updates the inspect template.
8845func (r *OrganizationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2beta2updatedeidentifytemplaterequest *GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest) *OrganizationsDeidentifyTemplatesPatchCall {
8846	c := &OrganizationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8847	c.name = name
8848	c.googleprivacydlpv2beta2updatedeidentifytemplaterequest = googleprivacydlpv2beta2updatedeidentifytemplaterequest
8849	return c
8850}
8851
8852// Fields allows partial responses to be retrieved. See
8853// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8854// for more information.
8855func (c *OrganizationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesPatchCall {
8856	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8857	return c
8858}
8859
8860// Context sets the context to be used in this call's Do method. Any
8861// pending HTTP request will be aborted if the provided context is
8862// canceled.
8863func (c *OrganizationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesPatchCall {
8864	c.ctx_ = ctx
8865	return c
8866}
8867
8868// Header returns an http.Header that can be modified by the caller to
8869// add HTTP headers to the request.
8870func (c *OrganizationsDeidentifyTemplatesPatchCall) Header() http.Header {
8871	if c.header_ == nil {
8872		c.header_ = make(http.Header)
8873	}
8874	return c.header_
8875}
8876
8877func (c *OrganizationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
8878	reqHeaders := make(http.Header)
8879	for k, v := range c.header_ {
8880		reqHeaders[k] = v
8881	}
8882	reqHeaders.Set("User-Agent", c.s.userAgent())
8883	var body io.Reader = nil
8884	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2updatedeidentifytemplaterequest)
8885	if err != nil {
8886		return nil, err
8887	}
8888	reqHeaders.Set("Content-Type", "application/json")
8889	c.urlParams_.Set("alt", alt)
8890	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
8891	urls += "?" + c.urlParams_.Encode()
8892	req, _ := http.NewRequest("PATCH", urls, body)
8893	req.Header = reqHeaders
8894	googleapi.Expand(req.URL, map[string]string{
8895		"name": c.name,
8896	})
8897	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8898}
8899
8900// Do executes the "dlp.organizations.deidentifyTemplates.patch" call.
8901// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyTemplate or error
8902// will be non-nil. Any non-2xx status code is an error. Response
8903// headers are in either
8904// *GooglePrivacyDlpV2beta2DeidentifyTemplate.ServerResponse.Header or
8905// (if a response was returned at all) in
8906// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8907// whether the returned error was because http.StatusNotModified was
8908// returned.
8909func (c *OrganizationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyTemplate, error) {
8910	gensupport.SetOptions(c.urlParams_, opts...)
8911	res, err := c.doRequest("json")
8912	if res != nil && res.StatusCode == http.StatusNotModified {
8913		if res.Body != nil {
8914			res.Body.Close()
8915		}
8916		return nil, &googleapi.Error{
8917			Code:   res.StatusCode,
8918			Header: res.Header,
8919		}
8920	}
8921	if err != nil {
8922		return nil, err
8923	}
8924	defer googleapi.CloseBody(res)
8925	if err := googleapi.CheckResponse(res); err != nil {
8926		return nil, err
8927	}
8928	ret := &GooglePrivacyDlpV2beta2DeidentifyTemplate{
8929		ServerResponse: googleapi.ServerResponse{
8930			Header:         res.Header,
8931			HTTPStatusCode: res.StatusCode,
8932		},
8933	}
8934	target := &ret
8935	if err := gensupport.DecodeResponse(target, res); err != nil {
8936		return nil, err
8937	}
8938	return ret, nil
8939	// {
8940	//   "description": "Updates the inspect template.",
8941	//   "flatPath": "v2beta2/organizations/{organizationsId}/deidentifyTemplates/{deidentifyTemplatesId}",
8942	//   "httpMethod": "PATCH",
8943	//   "id": "dlp.organizations.deidentifyTemplates.patch",
8944	//   "parameterOrder": [
8945	//     "name"
8946	//   ],
8947	//   "parameters": {
8948	//     "name": {
8949	//       "description": "Resource name of organization and deidentify template to be updated, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
8950	//       "location": "path",
8951	//       "pattern": "^organizations/[^/]+/deidentifyTemplates/[^/]+$",
8952	//       "required": true,
8953	//       "type": "string"
8954	//     }
8955	//   },
8956	//   "path": "v2beta2/{+name}",
8957	//   "request": {
8958	//     "$ref": "GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest"
8959	//   },
8960	//   "response": {
8961	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyTemplate"
8962	//   },
8963	//   "scopes": [
8964	//     "https://www.googleapis.com/auth/cloud-platform"
8965	//   ]
8966	// }
8967
8968}
8969
8970// method id "dlp.organizations.inspectTemplates.create":
8971
8972type OrganizationsInspectTemplatesCreateCall struct {
8973	s                                                   *Service
8974	parent                                              string
8975	googleprivacydlpv2beta2createinspecttemplaterequest *GooglePrivacyDlpV2beta2CreateInspectTemplateRequest
8976	urlParams_                                          gensupport.URLParams
8977	ctx_                                                context.Context
8978	header_                                             http.Header
8979}
8980
8981// Create: Creates an inspect template for re-using frequently used
8982// configuration
8983// for inspecting content, images, and storage.
8984func (r *OrganizationsInspectTemplatesService) Create(parent string, googleprivacydlpv2beta2createinspecttemplaterequest *GooglePrivacyDlpV2beta2CreateInspectTemplateRequest) *OrganizationsInspectTemplatesCreateCall {
8985	c := &OrganizationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8986	c.parent = parent
8987	c.googleprivacydlpv2beta2createinspecttemplaterequest = googleprivacydlpv2beta2createinspecttemplaterequest
8988	return c
8989}
8990
8991// Fields allows partial responses to be retrieved. See
8992// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8993// for more information.
8994func (c *OrganizationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesCreateCall {
8995	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8996	return c
8997}
8998
8999// Context sets the context to be used in this call's Do method. Any
9000// pending HTTP request will be aborted if the provided context is
9001// canceled.
9002func (c *OrganizationsInspectTemplatesCreateCall) Context(ctx context.Context) *OrganizationsInspectTemplatesCreateCall {
9003	c.ctx_ = ctx
9004	return c
9005}
9006
9007// Header returns an http.Header that can be modified by the caller to
9008// add HTTP headers to the request.
9009func (c *OrganizationsInspectTemplatesCreateCall) Header() http.Header {
9010	if c.header_ == nil {
9011		c.header_ = make(http.Header)
9012	}
9013	return c.header_
9014}
9015
9016func (c *OrganizationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
9017	reqHeaders := make(http.Header)
9018	for k, v := range c.header_ {
9019		reqHeaders[k] = v
9020	}
9021	reqHeaders.Set("User-Agent", c.s.userAgent())
9022	var body io.Reader = nil
9023	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2createinspecttemplaterequest)
9024	if err != nil {
9025		return nil, err
9026	}
9027	reqHeaders.Set("Content-Type", "application/json")
9028	c.urlParams_.Set("alt", alt)
9029	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/inspectTemplates")
9030	urls += "?" + c.urlParams_.Encode()
9031	req, _ := http.NewRequest("POST", urls, body)
9032	req.Header = reqHeaders
9033	googleapi.Expand(req.URL, map[string]string{
9034		"parent": c.parent,
9035	})
9036	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9037}
9038
9039// Do executes the "dlp.organizations.inspectTemplates.create" call.
9040// Exactly one of *GooglePrivacyDlpV2beta2InspectTemplate or error will
9041// be non-nil. Any non-2xx status code is an error. Response headers are
9042// in either
9043// *GooglePrivacyDlpV2beta2InspectTemplate.ServerResponse.Header or (if
9044// a response was returned at all) in error.(*googleapi.Error).Header.
9045// Use googleapi.IsNotModified to check whether the returned error was
9046// because http.StatusNotModified was returned.
9047func (c *OrganizationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectTemplate, error) {
9048	gensupport.SetOptions(c.urlParams_, opts...)
9049	res, err := c.doRequest("json")
9050	if res != nil && res.StatusCode == http.StatusNotModified {
9051		if res.Body != nil {
9052			res.Body.Close()
9053		}
9054		return nil, &googleapi.Error{
9055			Code:   res.StatusCode,
9056			Header: res.Header,
9057		}
9058	}
9059	if err != nil {
9060		return nil, err
9061	}
9062	defer googleapi.CloseBody(res)
9063	if err := googleapi.CheckResponse(res); err != nil {
9064		return nil, err
9065	}
9066	ret := &GooglePrivacyDlpV2beta2InspectTemplate{
9067		ServerResponse: googleapi.ServerResponse{
9068			Header:         res.Header,
9069			HTTPStatusCode: res.StatusCode,
9070		},
9071	}
9072	target := &ret
9073	if err := gensupport.DecodeResponse(target, res); err != nil {
9074		return nil, err
9075	}
9076	return ret, nil
9077	// {
9078	//   "description": "Creates an inspect template for re-using frequently used configuration\nfor inspecting content, images, and storage.",
9079	//   "flatPath": "v2beta2/organizations/{organizationsId}/inspectTemplates",
9080	//   "httpMethod": "POST",
9081	//   "id": "dlp.organizations.inspectTemplates.create",
9082	//   "parameterOrder": [
9083	//     "parent"
9084	//   ],
9085	//   "parameters": {
9086	//     "parent": {
9087	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
9088	//       "location": "path",
9089	//       "pattern": "^organizations/[^/]+$",
9090	//       "required": true,
9091	//       "type": "string"
9092	//     }
9093	//   },
9094	//   "path": "v2beta2/{+parent}/inspectTemplates",
9095	//   "request": {
9096	//     "$ref": "GooglePrivacyDlpV2beta2CreateInspectTemplateRequest"
9097	//   },
9098	//   "response": {
9099	//     "$ref": "GooglePrivacyDlpV2beta2InspectTemplate"
9100	//   },
9101	//   "scopes": [
9102	//     "https://www.googleapis.com/auth/cloud-platform"
9103	//   ]
9104	// }
9105
9106}
9107
9108// method id "dlp.organizations.inspectTemplates.delete":
9109
9110type OrganizationsInspectTemplatesDeleteCall struct {
9111	s          *Service
9112	name       string
9113	urlParams_ gensupport.URLParams
9114	ctx_       context.Context
9115	header_    http.Header
9116}
9117
9118// Delete: Deletes inspect templates.
9119func (r *OrganizationsInspectTemplatesService) Delete(name string) *OrganizationsInspectTemplatesDeleteCall {
9120	c := &OrganizationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9121	c.name = name
9122	return c
9123}
9124
9125// Fields allows partial responses to be retrieved. See
9126// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9127// for more information.
9128func (c *OrganizationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesDeleteCall {
9129	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9130	return c
9131}
9132
9133// Context sets the context to be used in this call's Do method. Any
9134// pending HTTP request will be aborted if the provided context is
9135// canceled.
9136func (c *OrganizationsInspectTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsInspectTemplatesDeleteCall {
9137	c.ctx_ = ctx
9138	return c
9139}
9140
9141// Header returns an http.Header that can be modified by the caller to
9142// add HTTP headers to the request.
9143func (c *OrganizationsInspectTemplatesDeleteCall) Header() http.Header {
9144	if c.header_ == nil {
9145		c.header_ = make(http.Header)
9146	}
9147	return c.header_
9148}
9149
9150func (c *OrganizationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
9151	reqHeaders := make(http.Header)
9152	for k, v := range c.header_ {
9153		reqHeaders[k] = v
9154	}
9155	reqHeaders.Set("User-Agent", c.s.userAgent())
9156	var body io.Reader = nil
9157	c.urlParams_.Set("alt", alt)
9158	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
9159	urls += "?" + c.urlParams_.Encode()
9160	req, _ := http.NewRequest("DELETE", urls, body)
9161	req.Header = reqHeaders
9162	googleapi.Expand(req.URL, map[string]string{
9163		"name": c.name,
9164	})
9165	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9166}
9167
9168// Do executes the "dlp.organizations.inspectTemplates.delete" call.
9169// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
9170// non-2xx status code is an error. Response headers are in either
9171// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
9172// returned at all) in error.(*googleapi.Error).Header. Use
9173// googleapi.IsNotModified to check whether the returned error was
9174// because http.StatusNotModified was returned.
9175func (c *OrganizationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
9176	gensupport.SetOptions(c.urlParams_, opts...)
9177	res, err := c.doRequest("json")
9178	if res != nil && res.StatusCode == http.StatusNotModified {
9179		if res.Body != nil {
9180			res.Body.Close()
9181		}
9182		return nil, &googleapi.Error{
9183			Code:   res.StatusCode,
9184			Header: res.Header,
9185		}
9186	}
9187	if err != nil {
9188		return nil, err
9189	}
9190	defer googleapi.CloseBody(res)
9191	if err := googleapi.CheckResponse(res); err != nil {
9192		return nil, err
9193	}
9194	ret := &GoogleProtobufEmpty{
9195		ServerResponse: googleapi.ServerResponse{
9196			Header:         res.Header,
9197			HTTPStatusCode: res.StatusCode,
9198		},
9199	}
9200	target := &ret
9201	if err := gensupport.DecodeResponse(target, res); err != nil {
9202		return nil, err
9203	}
9204	return ret, nil
9205	// {
9206	//   "description": "Deletes inspect templates.",
9207	//   "flatPath": "v2beta2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}",
9208	//   "httpMethod": "DELETE",
9209	//   "id": "dlp.organizations.inspectTemplates.delete",
9210	//   "parameterOrder": [
9211	//     "name"
9212	//   ],
9213	//   "parameters": {
9214	//     "name": {
9215	//       "description": "Resource name of the organization and inspectTemplate to be deleted, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
9216	//       "location": "path",
9217	//       "pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$",
9218	//       "required": true,
9219	//       "type": "string"
9220	//     }
9221	//   },
9222	//   "path": "v2beta2/{+name}",
9223	//   "response": {
9224	//     "$ref": "GoogleProtobufEmpty"
9225	//   },
9226	//   "scopes": [
9227	//     "https://www.googleapis.com/auth/cloud-platform"
9228	//   ]
9229	// }
9230
9231}
9232
9233// method id "dlp.organizations.inspectTemplates.get":
9234
9235type OrganizationsInspectTemplatesGetCall struct {
9236	s            *Service
9237	name         string
9238	urlParams_   gensupport.URLParams
9239	ifNoneMatch_ string
9240	ctx_         context.Context
9241	header_      http.Header
9242}
9243
9244// Get: Gets an inspect template.
9245func (r *OrganizationsInspectTemplatesService) Get(name string) *OrganizationsInspectTemplatesGetCall {
9246	c := &OrganizationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9247	c.name = name
9248	return c
9249}
9250
9251// Fields allows partial responses to be retrieved. See
9252// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9253// for more information.
9254func (c *OrganizationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesGetCall {
9255	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9256	return c
9257}
9258
9259// IfNoneMatch sets the optional parameter which makes the operation
9260// fail if the object's ETag matches the given value. This is useful for
9261// getting updates only after the object has changed since the last
9262// request. Use googleapi.IsNotModified to check whether the response
9263// error from Do is the result of In-None-Match.
9264func (c *OrganizationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsInspectTemplatesGetCall {
9265	c.ifNoneMatch_ = entityTag
9266	return c
9267}
9268
9269// Context sets the context to be used in this call's Do method. Any
9270// pending HTTP request will be aborted if the provided context is
9271// canceled.
9272func (c *OrganizationsInspectTemplatesGetCall) Context(ctx context.Context) *OrganizationsInspectTemplatesGetCall {
9273	c.ctx_ = ctx
9274	return c
9275}
9276
9277// Header returns an http.Header that can be modified by the caller to
9278// add HTTP headers to the request.
9279func (c *OrganizationsInspectTemplatesGetCall) Header() http.Header {
9280	if c.header_ == nil {
9281		c.header_ = make(http.Header)
9282	}
9283	return c.header_
9284}
9285
9286func (c *OrganizationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
9287	reqHeaders := make(http.Header)
9288	for k, v := range c.header_ {
9289		reqHeaders[k] = v
9290	}
9291	reqHeaders.Set("User-Agent", c.s.userAgent())
9292	if c.ifNoneMatch_ != "" {
9293		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9294	}
9295	var body io.Reader = nil
9296	c.urlParams_.Set("alt", alt)
9297	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
9298	urls += "?" + c.urlParams_.Encode()
9299	req, _ := http.NewRequest("GET", urls, body)
9300	req.Header = reqHeaders
9301	googleapi.Expand(req.URL, map[string]string{
9302		"name": c.name,
9303	})
9304	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9305}
9306
9307// Do executes the "dlp.organizations.inspectTemplates.get" call.
9308// Exactly one of *GooglePrivacyDlpV2beta2InspectTemplate or error will
9309// be non-nil. Any non-2xx status code is an error. Response headers are
9310// in either
9311// *GooglePrivacyDlpV2beta2InspectTemplate.ServerResponse.Header or (if
9312// a response was returned at all) in error.(*googleapi.Error).Header.
9313// Use googleapi.IsNotModified to check whether the returned error was
9314// because http.StatusNotModified was returned.
9315func (c *OrganizationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectTemplate, error) {
9316	gensupport.SetOptions(c.urlParams_, opts...)
9317	res, err := c.doRequest("json")
9318	if res != nil && res.StatusCode == http.StatusNotModified {
9319		if res.Body != nil {
9320			res.Body.Close()
9321		}
9322		return nil, &googleapi.Error{
9323			Code:   res.StatusCode,
9324			Header: res.Header,
9325		}
9326	}
9327	if err != nil {
9328		return nil, err
9329	}
9330	defer googleapi.CloseBody(res)
9331	if err := googleapi.CheckResponse(res); err != nil {
9332		return nil, err
9333	}
9334	ret := &GooglePrivacyDlpV2beta2InspectTemplate{
9335		ServerResponse: googleapi.ServerResponse{
9336			Header:         res.Header,
9337			HTTPStatusCode: res.StatusCode,
9338		},
9339	}
9340	target := &ret
9341	if err := gensupport.DecodeResponse(target, res); err != nil {
9342		return nil, err
9343	}
9344	return ret, nil
9345	// {
9346	//   "description": "Gets an inspect template.",
9347	//   "flatPath": "v2beta2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}",
9348	//   "httpMethod": "GET",
9349	//   "id": "dlp.organizations.inspectTemplates.get",
9350	//   "parameterOrder": [
9351	//     "name"
9352	//   ],
9353	//   "parameters": {
9354	//     "name": {
9355	//       "description": "Resource name of the organization and inspectTemplate to be read, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
9356	//       "location": "path",
9357	//       "pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$",
9358	//       "required": true,
9359	//       "type": "string"
9360	//     }
9361	//   },
9362	//   "path": "v2beta2/{+name}",
9363	//   "response": {
9364	//     "$ref": "GooglePrivacyDlpV2beta2InspectTemplate"
9365	//   },
9366	//   "scopes": [
9367	//     "https://www.googleapis.com/auth/cloud-platform"
9368	//   ]
9369	// }
9370
9371}
9372
9373// method id "dlp.organizations.inspectTemplates.list":
9374
9375type OrganizationsInspectTemplatesListCall struct {
9376	s            *Service
9377	parent       string
9378	urlParams_   gensupport.URLParams
9379	ifNoneMatch_ string
9380	ctx_         context.Context
9381	header_      http.Header
9382}
9383
9384// List: Lists inspect templates.
9385func (r *OrganizationsInspectTemplatesService) List(parent string) *OrganizationsInspectTemplatesListCall {
9386	c := &OrganizationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9387	c.parent = parent
9388	return c
9389}
9390
9391// PageSize sets the optional parameter "pageSize": Optional size of the
9392// page, can be limited by server. If zero server returns
9393// a page of max size 100.
9394func (c *OrganizationsInspectTemplatesListCall) PageSize(pageSize int64) *OrganizationsInspectTemplatesListCall {
9395	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9396	return c
9397}
9398
9399// PageToken sets the optional parameter "pageToken": Optional page
9400// token to continue retrieval. Comes from previous call
9401// to `ListInspectTemplates`.
9402func (c *OrganizationsInspectTemplatesListCall) PageToken(pageToken string) *OrganizationsInspectTemplatesListCall {
9403	c.urlParams_.Set("pageToken", pageToken)
9404	return c
9405}
9406
9407// Fields allows partial responses to be retrieved. See
9408// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9409// for more information.
9410func (c *OrganizationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesListCall {
9411	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9412	return c
9413}
9414
9415// IfNoneMatch sets the optional parameter which makes the operation
9416// fail if the object's ETag matches the given value. This is useful for
9417// getting updates only after the object has changed since the last
9418// request. Use googleapi.IsNotModified to check whether the response
9419// error from Do is the result of In-None-Match.
9420func (c *OrganizationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsInspectTemplatesListCall {
9421	c.ifNoneMatch_ = entityTag
9422	return c
9423}
9424
9425// Context sets the context to be used in this call's Do method. Any
9426// pending HTTP request will be aborted if the provided context is
9427// canceled.
9428func (c *OrganizationsInspectTemplatesListCall) Context(ctx context.Context) *OrganizationsInspectTemplatesListCall {
9429	c.ctx_ = ctx
9430	return c
9431}
9432
9433// Header returns an http.Header that can be modified by the caller to
9434// add HTTP headers to the request.
9435func (c *OrganizationsInspectTemplatesListCall) Header() http.Header {
9436	if c.header_ == nil {
9437		c.header_ = make(http.Header)
9438	}
9439	return c.header_
9440}
9441
9442func (c *OrganizationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
9443	reqHeaders := make(http.Header)
9444	for k, v := range c.header_ {
9445		reqHeaders[k] = v
9446	}
9447	reqHeaders.Set("User-Agent", c.s.userAgent())
9448	if c.ifNoneMatch_ != "" {
9449		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9450	}
9451	var body io.Reader = nil
9452	c.urlParams_.Set("alt", alt)
9453	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/inspectTemplates")
9454	urls += "?" + c.urlParams_.Encode()
9455	req, _ := http.NewRequest("GET", urls, body)
9456	req.Header = reqHeaders
9457	googleapi.Expand(req.URL, map[string]string{
9458		"parent": c.parent,
9459	})
9460	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9461}
9462
9463// Do executes the "dlp.organizations.inspectTemplates.list" call.
9464// Exactly one of *GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
9465// or error will be non-nil. Any non-2xx status code is an error.
9466// Response headers are in either
9467// *GooglePrivacyDlpV2beta2ListInspectTemplatesResponse.ServerResponse.He
9468// ader or (if a response was returned at all) in
9469// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9470// whether the returned error was because http.StatusNotModified was
9471// returned.
9472func (c *OrganizationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListInspectTemplatesResponse, error) {
9473	gensupport.SetOptions(c.urlParams_, opts...)
9474	res, err := c.doRequest("json")
9475	if res != nil && res.StatusCode == http.StatusNotModified {
9476		if res.Body != nil {
9477			res.Body.Close()
9478		}
9479		return nil, &googleapi.Error{
9480			Code:   res.StatusCode,
9481			Header: res.Header,
9482		}
9483	}
9484	if err != nil {
9485		return nil, err
9486	}
9487	defer googleapi.CloseBody(res)
9488	if err := googleapi.CheckResponse(res); err != nil {
9489		return nil, err
9490	}
9491	ret := &GooglePrivacyDlpV2beta2ListInspectTemplatesResponse{
9492		ServerResponse: googleapi.ServerResponse{
9493			Header:         res.Header,
9494			HTTPStatusCode: res.StatusCode,
9495		},
9496	}
9497	target := &ret
9498	if err := gensupport.DecodeResponse(target, res); err != nil {
9499		return nil, err
9500	}
9501	return ret, nil
9502	// {
9503	//   "description": "Lists inspect templates.",
9504	//   "flatPath": "v2beta2/organizations/{organizationsId}/inspectTemplates",
9505	//   "httpMethod": "GET",
9506	//   "id": "dlp.organizations.inspectTemplates.list",
9507	//   "parameterOrder": [
9508	//     "parent"
9509	//   ],
9510	//   "parameters": {
9511	//     "pageSize": {
9512	//       "description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
9513	//       "format": "int32",
9514	//       "location": "query",
9515	//       "type": "integer"
9516	//     },
9517	//     "pageToken": {
9518	//       "description": "Optional page token to continue retrieval. Comes from previous call\nto `ListInspectTemplates`.",
9519	//       "location": "query",
9520	//       "type": "string"
9521	//     },
9522	//     "parent": {
9523	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
9524	//       "location": "path",
9525	//       "pattern": "^organizations/[^/]+$",
9526	//       "required": true,
9527	//       "type": "string"
9528	//     }
9529	//   },
9530	//   "path": "v2beta2/{+parent}/inspectTemplates",
9531	//   "response": {
9532	//     "$ref": "GooglePrivacyDlpV2beta2ListInspectTemplatesResponse"
9533	//   },
9534	//   "scopes": [
9535	//     "https://www.googleapis.com/auth/cloud-platform"
9536	//   ]
9537	// }
9538
9539}
9540
9541// Pages invokes f for each page of results.
9542// A non-nil error returned from f will halt the iteration.
9543// The provided context supersedes any context provided to the Context method.
9544func (c *OrganizationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta2ListInspectTemplatesResponse) error) error {
9545	c.ctx_ = ctx
9546	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
9547	for {
9548		x, err := c.Do()
9549		if err != nil {
9550			return err
9551		}
9552		if err := f(x); err != nil {
9553			return err
9554		}
9555		if x.NextPageToken == "" {
9556			return nil
9557		}
9558		c.PageToken(x.NextPageToken)
9559	}
9560}
9561
9562// method id "dlp.organizations.inspectTemplates.patch":
9563
9564type OrganizationsInspectTemplatesPatchCall struct {
9565	s                                                   *Service
9566	name                                                string
9567	googleprivacydlpv2beta2updateinspecttemplaterequest *GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest
9568	urlParams_                                          gensupport.URLParams
9569	ctx_                                                context.Context
9570	header_                                             http.Header
9571}
9572
9573// Patch: Updates the inspect template.
9574func (r *OrganizationsInspectTemplatesService) Patch(name string, googleprivacydlpv2beta2updateinspecttemplaterequest *GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest) *OrganizationsInspectTemplatesPatchCall {
9575	c := &OrganizationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9576	c.name = name
9577	c.googleprivacydlpv2beta2updateinspecttemplaterequest = googleprivacydlpv2beta2updateinspecttemplaterequest
9578	return c
9579}
9580
9581// Fields allows partial responses to be retrieved. See
9582// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9583// for more information.
9584func (c *OrganizationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesPatchCall {
9585	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9586	return c
9587}
9588
9589// Context sets the context to be used in this call's Do method. Any
9590// pending HTTP request will be aborted if the provided context is
9591// canceled.
9592func (c *OrganizationsInspectTemplatesPatchCall) Context(ctx context.Context) *OrganizationsInspectTemplatesPatchCall {
9593	c.ctx_ = ctx
9594	return c
9595}
9596
9597// Header returns an http.Header that can be modified by the caller to
9598// add HTTP headers to the request.
9599func (c *OrganizationsInspectTemplatesPatchCall) Header() http.Header {
9600	if c.header_ == nil {
9601		c.header_ = make(http.Header)
9602	}
9603	return c.header_
9604}
9605
9606func (c *OrganizationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
9607	reqHeaders := make(http.Header)
9608	for k, v := range c.header_ {
9609		reqHeaders[k] = v
9610	}
9611	reqHeaders.Set("User-Agent", c.s.userAgent())
9612	var body io.Reader = nil
9613	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2updateinspecttemplaterequest)
9614	if err != nil {
9615		return nil, err
9616	}
9617	reqHeaders.Set("Content-Type", "application/json")
9618	c.urlParams_.Set("alt", alt)
9619	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
9620	urls += "?" + c.urlParams_.Encode()
9621	req, _ := http.NewRequest("PATCH", urls, body)
9622	req.Header = reqHeaders
9623	googleapi.Expand(req.URL, map[string]string{
9624		"name": c.name,
9625	})
9626	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9627}
9628
9629// Do executes the "dlp.organizations.inspectTemplates.patch" call.
9630// Exactly one of *GooglePrivacyDlpV2beta2InspectTemplate or error will
9631// be non-nil. Any non-2xx status code is an error. Response headers are
9632// in either
9633// *GooglePrivacyDlpV2beta2InspectTemplate.ServerResponse.Header or (if
9634// a response was returned at all) in error.(*googleapi.Error).Header.
9635// Use googleapi.IsNotModified to check whether the returned error was
9636// because http.StatusNotModified was returned.
9637func (c *OrganizationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectTemplate, error) {
9638	gensupport.SetOptions(c.urlParams_, opts...)
9639	res, err := c.doRequest("json")
9640	if res != nil && res.StatusCode == http.StatusNotModified {
9641		if res.Body != nil {
9642			res.Body.Close()
9643		}
9644		return nil, &googleapi.Error{
9645			Code:   res.StatusCode,
9646			Header: res.Header,
9647		}
9648	}
9649	if err != nil {
9650		return nil, err
9651	}
9652	defer googleapi.CloseBody(res)
9653	if err := googleapi.CheckResponse(res); err != nil {
9654		return nil, err
9655	}
9656	ret := &GooglePrivacyDlpV2beta2InspectTemplate{
9657		ServerResponse: googleapi.ServerResponse{
9658			Header:         res.Header,
9659			HTTPStatusCode: res.StatusCode,
9660		},
9661	}
9662	target := &ret
9663	if err := gensupport.DecodeResponse(target, res); err != nil {
9664		return nil, err
9665	}
9666	return ret, nil
9667	// {
9668	//   "description": "Updates the inspect template.",
9669	//   "flatPath": "v2beta2/organizations/{organizationsId}/inspectTemplates/{inspectTemplatesId}",
9670	//   "httpMethod": "PATCH",
9671	//   "id": "dlp.organizations.inspectTemplates.patch",
9672	//   "parameterOrder": [
9673	//     "name"
9674	//   ],
9675	//   "parameters": {
9676	//     "name": {
9677	//       "description": "Resource name of organization and inspectTemplate to be updated, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
9678	//       "location": "path",
9679	//       "pattern": "^organizations/[^/]+/inspectTemplates/[^/]+$",
9680	//       "required": true,
9681	//       "type": "string"
9682	//     }
9683	//   },
9684	//   "path": "v2beta2/{+name}",
9685	//   "request": {
9686	//     "$ref": "GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest"
9687	//   },
9688	//   "response": {
9689	//     "$ref": "GooglePrivacyDlpV2beta2InspectTemplate"
9690	//   },
9691	//   "scopes": [
9692	//     "https://www.googleapis.com/auth/cloud-platform"
9693	//   ]
9694	// }
9695
9696}
9697
9698// method id "dlp.projects.content.deidentify":
9699
9700type ProjectsContentDeidentifyCall struct {
9701	s                                               *Service
9702	parent                                          string
9703	googleprivacydlpv2beta2deidentifycontentrequest *GooglePrivacyDlpV2beta2DeidentifyContentRequest
9704	urlParams_                                      gensupport.URLParams
9705	ctx_                                            context.Context
9706	header_                                         http.Header
9707}
9708
9709// Deidentify: De-identifies potentially sensitive info from a
9710// ContentItem.
9711// This method has limits on input size and output size.
9712// [How-to guide](/dlp/docs/deidentify-sensitive-data)
9713func (r *ProjectsContentService) Deidentify(parent string, googleprivacydlpv2beta2deidentifycontentrequest *GooglePrivacyDlpV2beta2DeidentifyContentRequest) *ProjectsContentDeidentifyCall {
9714	c := &ProjectsContentDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9715	c.parent = parent
9716	c.googleprivacydlpv2beta2deidentifycontentrequest = googleprivacydlpv2beta2deidentifycontentrequest
9717	return c
9718}
9719
9720// Fields allows partial responses to be retrieved. See
9721// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9722// for more information.
9723func (c *ProjectsContentDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsContentDeidentifyCall {
9724	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9725	return c
9726}
9727
9728// Context sets the context to be used in this call's Do method. Any
9729// pending HTTP request will be aborted if the provided context is
9730// canceled.
9731func (c *ProjectsContentDeidentifyCall) Context(ctx context.Context) *ProjectsContentDeidentifyCall {
9732	c.ctx_ = ctx
9733	return c
9734}
9735
9736// Header returns an http.Header that can be modified by the caller to
9737// add HTTP headers to the request.
9738func (c *ProjectsContentDeidentifyCall) Header() http.Header {
9739	if c.header_ == nil {
9740		c.header_ = make(http.Header)
9741	}
9742	return c.header_
9743}
9744
9745func (c *ProjectsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) {
9746	reqHeaders := make(http.Header)
9747	for k, v := range c.header_ {
9748		reqHeaders[k] = v
9749	}
9750	reqHeaders.Set("User-Agent", c.s.userAgent())
9751	var body io.Reader = nil
9752	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2deidentifycontentrequest)
9753	if err != nil {
9754		return nil, err
9755	}
9756	reqHeaders.Set("Content-Type", "application/json")
9757	c.urlParams_.Set("alt", alt)
9758	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/content:deidentify")
9759	urls += "?" + c.urlParams_.Encode()
9760	req, _ := http.NewRequest("POST", urls, body)
9761	req.Header = reqHeaders
9762	googleapi.Expand(req.URL, map[string]string{
9763		"parent": c.parent,
9764	})
9765	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9766}
9767
9768// Do executes the "dlp.projects.content.deidentify" call.
9769// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyContentResponse or
9770// error will be non-nil. Any non-2xx status code is an error. Response
9771// headers are in either
9772// *GooglePrivacyDlpV2beta2DeidentifyContentResponse.ServerResponse.Heade
9773// r or (if a response was returned at all) in
9774// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9775// whether the returned error was because http.StatusNotModified was
9776// returned.
9777func (c *ProjectsContentDeidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyContentResponse, error) {
9778	gensupport.SetOptions(c.urlParams_, opts...)
9779	res, err := c.doRequest("json")
9780	if res != nil && res.StatusCode == http.StatusNotModified {
9781		if res.Body != nil {
9782			res.Body.Close()
9783		}
9784		return nil, &googleapi.Error{
9785			Code:   res.StatusCode,
9786			Header: res.Header,
9787		}
9788	}
9789	if err != nil {
9790		return nil, err
9791	}
9792	defer googleapi.CloseBody(res)
9793	if err := googleapi.CheckResponse(res); err != nil {
9794		return nil, err
9795	}
9796	ret := &GooglePrivacyDlpV2beta2DeidentifyContentResponse{
9797		ServerResponse: googleapi.ServerResponse{
9798			Header:         res.Header,
9799			HTTPStatusCode: res.StatusCode,
9800		},
9801	}
9802	target := &ret
9803	if err := gensupport.DecodeResponse(target, res); err != nil {
9804		return nil, err
9805	}
9806	return ret, nil
9807	// {
9808	//   "description": "De-identifies potentially sensitive info from a ContentItem.\nThis method has limits on input size and output size.\n[How-to guide](/dlp/docs/deidentify-sensitive-data)",
9809	//   "flatPath": "v2beta2/projects/{projectsId}/content:deidentify",
9810	//   "httpMethod": "POST",
9811	//   "id": "dlp.projects.content.deidentify",
9812	//   "parameterOrder": [
9813	//     "parent"
9814	//   ],
9815	//   "parameters": {
9816	//     "parent": {
9817	//       "description": "The parent resource name, for example projects/my-project-id.",
9818	//       "location": "path",
9819	//       "pattern": "^projects/[^/]+$",
9820	//       "required": true,
9821	//       "type": "string"
9822	//     }
9823	//   },
9824	//   "path": "v2beta2/{+parent}/content:deidentify",
9825	//   "request": {
9826	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyContentRequest"
9827	//   },
9828	//   "response": {
9829	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyContentResponse"
9830	//   },
9831	//   "scopes": [
9832	//     "https://www.googleapis.com/auth/cloud-platform"
9833	//   ]
9834	// }
9835
9836}
9837
9838// method id "dlp.projects.content.inspect":
9839
9840type ProjectsContentInspectCall struct {
9841	s                                            *Service
9842	parent                                       string
9843	googleprivacydlpv2beta2inspectcontentrequest *GooglePrivacyDlpV2beta2InspectContentRequest
9844	urlParams_                                   gensupport.URLParams
9845	ctx_                                         context.Context
9846	header_                                      http.Header
9847}
9848
9849// Inspect: Finds potentially sensitive info in content.
9850// This method has limits on input size, processing time, and output
9851// size.
9852// [How-to guide for text](/dlp/docs/inspecting-text), [How-to guide
9853// for
9854// images](/dlp/docs/inspecting-images)
9855func (r *ProjectsContentService) Inspect(parent string, googleprivacydlpv2beta2inspectcontentrequest *GooglePrivacyDlpV2beta2InspectContentRequest) *ProjectsContentInspectCall {
9856	c := &ProjectsContentInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9857	c.parent = parent
9858	c.googleprivacydlpv2beta2inspectcontentrequest = googleprivacydlpv2beta2inspectcontentrequest
9859	return c
9860}
9861
9862// Fields allows partial responses to be retrieved. See
9863// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9864// for more information.
9865func (c *ProjectsContentInspectCall) Fields(s ...googleapi.Field) *ProjectsContentInspectCall {
9866	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9867	return c
9868}
9869
9870// Context sets the context to be used in this call's Do method. Any
9871// pending HTTP request will be aborted if the provided context is
9872// canceled.
9873func (c *ProjectsContentInspectCall) Context(ctx context.Context) *ProjectsContentInspectCall {
9874	c.ctx_ = ctx
9875	return c
9876}
9877
9878// Header returns an http.Header that can be modified by the caller to
9879// add HTTP headers to the request.
9880func (c *ProjectsContentInspectCall) Header() http.Header {
9881	if c.header_ == nil {
9882		c.header_ = make(http.Header)
9883	}
9884	return c.header_
9885}
9886
9887func (c *ProjectsContentInspectCall) doRequest(alt string) (*http.Response, error) {
9888	reqHeaders := make(http.Header)
9889	for k, v := range c.header_ {
9890		reqHeaders[k] = v
9891	}
9892	reqHeaders.Set("User-Agent", c.s.userAgent())
9893	var body io.Reader = nil
9894	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2inspectcontentrequest)
9895	if err != nil {
9896		return nil, err
9897	}
9898	reqHeaders.Set("Content-Type", "application/json")
9899	c.urlParams_.Set("alt", alt)
9900	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/content:inspect")
9901	urls += "?" + c.urlParams_.Encode()
9902	req, _ := http.NewRequest("POST", urls, body)
9903	req.Header = reqHeaders
9904	googleapi.Expand(req.URL, map[string]string{
9905		"parent": c.parent,
9906	})
9907	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9908}
9909
9910// Do executes the "dlp.projects.content.inspect" call.
9911// Exactly one of *GooglePrivacyDlpV2beta2InspectContentResponse or
9912// error will be non-nil. Any non-2xx status code is an error. Response
9913// headers are in either
9914// *GooglePrivacyDlpV2beta2InspectContentResponse.ServerResponse.Header
9915// or (if a response was returned at all) in
9916// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9917// whether the returned error was because http.StatusNotModified was
9918// returned.
9919func (c *ProjectsContentInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectContentResponse, error) {
9920	gensupport.SetOptions(c.urlParams_, opts...)
9921	res, err := c.doRequest("json")
9922	if res != nil && res.StatusCode == http.StatusNotModified {
9923		if res.Body != nil {
9924			res.Body.Close()
9925		}
9926		return nil, &googleapi.Error{
9927			Code:   res.StatusCode,
9928			Header: res.Header,
9929		}
9930	}
9931	if err != nil {
9932		return nil, err
9933	}
9934	defer googleapi.CloseBody(res)
9935	if err := googleapi.CheckResponse(res); err != nil {
9936		return nil, err
9937	}
9938	ret := &GooglePrivacyDlpV2beta2InspectContentResponse{
9939		ServerResponse: googleapi.ServerResponse{
9940			Header:         res.Header,
9941			HTTPStatusCode: res.StatusCode,
9942		},
9943	}
9944	target := &ret
9945	if err := gensupport.DecodeResponse(target, res); err != nil {
9946		return nil, err
9947	}
9948	return ret, nil
9949	// {
9950	//   "description": "Finds potentially sensitive info in content.\nThis method has limits on input size, processing time, and output size.\n[How-to guide for text](/dlp/docs/inspecting-text), [How-to guide for\nimages](/dlp/docs/inspecting-images)",
9951	//   "flatPath": "v2beta2/projects/{projectsId}/content:inspect",
9952	//   "httpMethod": "POST",
9953	//   "id": "dlp.projects.content.inspect",
9954	//   "parameterOrder": [
9955	//     "parent"
9956	//   ],
9957	//   "parameters": {
9958	//     "parent": {
9959	//       "description": "The parent resource name, for example projects/my-project-id.",
9960	//       "location": "path",
9961	//       "pattern": "^projects/[^/]+$",
9962	//       "required": true,
9963	//       "type": "string"
9964	//     }
9965	//   },
9966	//   "path": "v2beta2/{+parent}/content:inspect",
9967	//   "request": {
9968	//     "$ref": "GooglePrivacyDlpV2beta2InspectContentRequest"
9969	//   },
9970	//   "response": {
9971	//     "$ref": "GooglePrivacyDlpV2beta2InspectContentResponse"
9972	//   },
9973	//   "scopes": [
9974	//     "https://www.googleapis.com/auth/cloud-platform"
9975	//   ]
9976	// }
9977
9978}
9979
9980// method id "dlp.projects.content.reidentify":
9981
9982type ProjectsContentReidentifyCall struct {
9983	s                                               *Service
9984	parent                                          string
9985	googleprivacydlpv2beta2reidentifycontentrequest *GooglePrivacyDlpV2beta2ReidentifyContentRequest
9986	urlParams_                                      gensupport.URLParams
9987	ctx_                                            context.Context
9988	header_                                         http.Header
9989}
9990
9991// Reidentify: Re-identify content that has been de-identified.
9992func (r *ProjectsContentService) Reidentify(parent string, googleprivacydlpv2beta2reidentifycontentrequest *GooglePrivacyDlpV2beta2ReidentifyContentRequest) *ProjectsContentReidentifyCall {
9993	c := &ProjectsContentReidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9994	c.parent = parent
9995	c.googleprivacydlpv2beta2reidentifycontentrequest = googleprivacydlpv2beta2reidentifycontentrequest
9996	return c
9997}
9998
9999// Fields allows partial responses to be retrieved. See
10000// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10001// for more information.
10002func (c *ProjectsContentReidentifyCall) Fields(s ...googleapi.Field) *ProjectsContentReidentifyCall {
10003	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10004	return c
10005}
10006
10007// Context sets the context to be used in this call's Do method. Any
10008// pending HTTP request will be aborted if the provided context is
10009// canceled.
10010func (c *ProjectsContentReidentifyCall) Context(ctx context.Context) *ProjectsContentReidentifyCall {
10011	c.ctx_ = ctx
10012	return c
10013}
10014
10015// Header returns an http.Header that can be modified by the caller to
10016// add HTTP headers to the request.
10017func (c *ProjectsContentReidentifyCall) Header() http.Header {
10018	if c.header_ == nil {
10019		c.header_ = make(http.Header)
10020	}
10021	return c.header_
10022}
10023
10024func (c *ProjectsContentReidentifyCall) doRequest(alt string) (*http.Response, error) {
10025	reqHeaders := make(http.Header)
10026	for k, v := range c.header_ {
10027		reqHeaders[k] = v
10028	}
10029	reqHeaders.Set("User-Agent", c.s.userAgent())
10030	var body io.Reader = nil
10031	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2reidentifycontentrequest)
10032	if err != nil {
10033		return nil, err
10034	}
10035	reqHeaders.Set("Content-Type", "application/json")
10036	c.urlParams_.Set("alt", alt)
10037	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/content:reidentify")
10038	urls += "?" + c.urlParams_.Encode()
10039	req, _ := http.NewRequest("POST", urls, body)
10040	req.Header = reqHeaders
10041	googleapi.Expand(req.URL, map[string]string{
10042		"parent": c.parent,
10043	})
10044	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10045}
10046
10047// Do executes the "dlp.projects.content.reidentify" call.
10048// Exactly one of *GooglePrivacyDlpV2beta2ReidentifyContentResponse or
10049// error will be non-nil. Any non-2xx status code is an error. Response
10050// headers are in either
10051// *GooglePrivacyDlpV2beta2ReidentifyContentResponse.ServerResponse.Heade
10052// r or (if a response was returned at all) in
10053// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10054// whether the returned error was because http.StatusNotModified was
10055// returned.
10056func (c *ProjectsContentReidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ReidentifyContentResponse, error) {
10057	gensupport.SetOptions(c.urlParams_, opts...)
10058	res, err := c.doRequest("json")
10059	if res != nil && res.StatusCode == http.StatusNotModified {
10060		if res.Body != nil {
10061			res.Body.Close()
10062		}
10063		return nil, &googleapi.Error{
10064			Code:   res.StatusCode,
10065			Header: res.Header,
10066		}
10067	}
10068	if err != nil {
10069		return nil, err
10070	}
10071	defer googleapi.CloseBody(res)
10072	if err := googleapi.CheckResponse(res); err != nil {
10073		return nil, err
10074	}
10075	ret := &GooglePrivacyDlpV2beta2ReidentifyContentResponse{
10076		ServerResponse: googleapi.ServerResponse{
10077			Header:         res.Header,
10078			HTTPStatusCode: res.StatusCode,
10079		},
10080	}
10081	target := &ret
10082	if err := gensupport.DecodeResponse(target, res); err != nil {
10083		return nil, err
10084	}
10085	return ret, nil
10086	// {
10087	//   "description": "Re-identify content that has been de-identified.",
10088	//   "flatPath": "v2beta2/projects/{projectsId}/content:reidentify",
10089	//   "httpMethod": "POST",
10090	//   "id": "dlp.projects.content.reidentify",
10091	//   "parameterOrder": [
10092	//     "parent"
10093	//   ],
10094	//   "parameters": {
10095	//     "parent": {
10096	//       "description": "The parent resource name.",
10097	//       "location": "path",
10098	//       "pattern": "^projects/[^/]+$",
10099	//       "required": true,
10100	//       "type": "string"
10101	//     }
10102	//   },
10103	//   "path": "v2beta2/{+parent}/content:reidentify",
10104	//   "request": {
10105	//     "$ref": "GooglePrivacyDlpV2beta2ReidentifyContentRequest"
10106	//   },
10107	//   "response": {
10108	//     "$ref": "GooglePrivacyDlpV2beta2ReidentifyContentResponse"
10109	//   },
10110	//   "scopes": [
10111	//     "https://www.googleapis.com/auth/cloud-platform"
10112	//   ]
10113	// }
10114
10115}
10116
10117// method id "dlp.projects.dataSource.analyze":
10118
10119type ProjectsDataSourceAnalyzeCall struct {
10120	s                                                   *Service
10121	parent                                              string
10122	googleprivacydlpv2beta2analyzedatasourceriskrequest *GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest
10123	urlParams_                                          gensupport.URLParams
10124	ctx_                                                context.Context
10125	header_                                             http.Header
10126}
10127
10128// Analyze: Schedules a job to compute risk analysis metrics over
10129// content in a Google
10130// Cloud Platform repository. [How-to
10131// guide](/dlp/docs/compute-risk-analysis)
10132func (r *ProjectsDataSourceService) Analyze(parent string, googleprivacydlpv2beta2analyzedatasourceriskrequest *GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest) *ProjectsDataSourceAnalyzeCall {
10133	c := &ProjectsDataSourceAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10134	c.parent = parent
10135	c.googleprivacydlpv2beta2analyzedatasourceriskrequest = googleprivacydlpv2beta2analyzedatasourceriskrequest
10136	return c
10137}
10138
10139// Fields allows partial responses to be retrieved. See
10140// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10141// for more information.
10142func (c *ProjectsDataSourceAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsDataSourceAnalyzeCall {
10143	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10144	return c
10145}
10146
10147// Context sets the context to be used in this call's Do method. Any
10148// pending HTTP request will be aborted if the provided context is
10149// canceled.
10150func (c *ProjectsDataSourceAnalyzeCall) Context(ctx context.Context) *ProjectsDataSourceAnalyzeCall {
10151	c.ctx_ = ctx
10152	return c
10153}
10154
10155// Header returns an http.Header that can be modified by the caller to
10156// add HTTP headers to the request.
10157func (c *ProjectsDataSourceAnalyzeCall) Header() http.Header {
10158	if c.header_ == nil {
10159		c.header_ = make(http.Header)
10160	}
10161	return c.header_
10162}
10163
10164func (c *ProjectsDataSourceAnalyzeCall) doRequest(alt string) (*http.Response, error) {
10165	reqHeaders := make(http.Header)
10166	for k, v := range c.header_ {
10167		reqHeaders[k] = v
10168	}
10169	reqHeaders.Set("User-Agent", c.s.userAgent())
10170	var body io.Reader = nil
10171	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2analyzedatasourceriskrequest)
10172	if err != nil {
10173		return nil, err
10174	}
10175	reqHeaders.Set("Content-Type", "application/json")
10176	c.urlParams_.Set("alt", alt)
10177	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/dataSource:analyze")
10178	urls += "?" + c.urlParams_.Encode()
10179	req, _ := http.NewRequest("POST", urls, body)
10180	req.Header = reqHeaders
10181	googleapi.Expand(req.URL, map[string]string{
10182		"parent": c.parent,
10183	})
10184	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10185}
10186
10187// Do executes the "dlp.projects.dataSource.analyze" call.
10188// Exactly one of *GooglePrivacyDlpV2beta2DlpJob or error will be
10189// non-nil. Any non-2xx status code is an error. Response headers are in
10190// either *GooglePrivacyDlpV2beta2DlpJob.ServerResponse.Header or (if a
10191// response was returned at all) in error.(*googleapi.Error).Header. Use
10192// googleapi.IsNotModified to check whether the returned error was
10193// because http.StatusNotModified was returned.
10194func (c *ProjectsDataSourceAnalyzeCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DlpJob, error) {
10195	gensupport.SetOptions(c.urlParams_, opts...)
10196	res, err := c.doRequest("json")
10197	if res != nil && res.StatusCode == http.StatusNotModified {
10198		if res.Body != nil {
10199			res.Body.Close()
10200		}
10201		return nil, &googleapi.Error{
10202			Code:   res.StatusCode,
10203			Header: res.Header,
10204		}
10205	}
10206	if err != nil {
10207		return nil, err
10208	}
10209	defer googleapi.CloseBody(res)
10210	if err := googleapi.CheckResponse(res); err != nil {
10211		return nil, err
10212	}
10213	ret := &GooglePrivacyDlpV2beta2DlpJob{
10214		ServerResponse: googleapi.ServerResponse{
10215			Header:         res.Header,
10216			HTTPStatusCode: res.StatusCode,
10217		},
10218	}
10219	target := &ret
10220	if err := gensupport.DecodeResponse(target, res); err != nil {
10221		return nil, err
10222	}
10223	return ret, nil
10224	// {
10225	//   "description": "Schedules a job to compute risk analysis metrics over content in a Google\nCloud Platform repository. [How-to guide](/dlp/docs/compute-risk-analysis)",
10226	//   "flatPath": "v2beta2/projects/{projectsId}/dataSource:analyze",
10227	//   "httpMethod": "POST",
10228	//   "id": "dlp.projects.dataSource.analyze",
10229	//   "parameterOrder": [
10230	//     "parent"
10231	//   ],
10232	//   "parameters": {
10233	//     "parent": {
10234	//       "description": "The parent resource name, for example projects/my-project-id.",
10235	//       "location": "path",
10236	//       "pattern": "^projects/[^/]+$",
10237	//       "required": true,
10238	//       "type": "string"
10239	//     }
10240	//   },
10241	//   "path": "v2beta2/{+parent}/dataSource:analyze",
10242	//   "request": {
10243	//     "$ref": "GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest"
10244	//   },
10245	//   "response": {
10246	//     "$ref": "GooglePrivacyDlpV2beta2DlpJob"
10247	//   },
10248	//   "scopes": [
10249	//     "https://www.googleapis.com/auth/cloud-platform"
10250	//   ]
10251	// }
10252
10253}
10254
10255// method id "dlp.projects.dataSource.inspect":
10256
10257type ProjectsDataSourceInspectCall struct {
10258	s                                               *Service
10259	parent                                          string
10260	googleprivacydlpv2beta2inspectdatasourcerequest *GooglePrivacyDlpV2beta2InspectDataSourceRequest
10261	urlParams_                                      gensupport.URLParams
10262	ctx_                                            context.Context
10263	header_                                         http.Header
10264}
10265
10266// Inspect: Schedules a job scanning content in a Google Cloud Platform
10267// data
10268// repository. [How-to guide](/dlp/docs/inspecting-storage)
10269func (r *ProjectsDataSourceService) Inspect(parent string, googleprivacydlpv2beta2inspectdatasourcerequest *GooglePrivacyDlpV2beta2InspectDataSourceRequest) *ProjectsDataSourceInspectCall {
10270	c := &ProjectsDataSourceInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10271	c.parent = parent
10272	c.googleprivacydlpv2beta2inspectdatasourcerequest = googleprivacydlpv2beta2inspectdatasourcerequest
10273	return c
10274}
10275
10276// Fields allows partial responses to be retrieved. See
10277// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10278// for more information.
10279func (c *ProjectsDataSourceInspectCall) Fields(s ...googleapi.Field) *ProjectsDataSourceInspectCall {
10280	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10281	return c
10282}
10283
10284// Context sets the context to be used in this call's Do method. Any
10285// pending HTTP request will be aborted if the provided context is
10286// canceled.
10287func (c *ProjectsDataSourceInspectCall) Context(ctx context.Context) *ProjectsDataSourceInspectCall {
10288	c.ctx_ = ctx
10289	return c
10290}
10291
10292// Header returns an http.Header that can be modified by the caller to
10293// add HTTP headers to the request.
10294func (c *ProjectsDataSourceInspectCall) Header() http.Header {
10295	if c.header_ == nil {
10296		c.header_ = make(http.Header)
10297	}
10298	return c.header_
10299}
10300
10301func (c *ProjectsDataSourceInspectCall) doRequest(alt string) (*http.Response, error) {
10302	reqHeaders := make(http.Header)
10303	for k, v := range c.header_ {
10304		reqHeaders[k] = v
10305	}
10306	reqHeaders.Set("User-Agent", c.s.userAgent())
10307	var body io.Reader = nil
10308	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2inspectdatasourcerequest)
10309	if err != nil {
10310		return nil, err
10311	}
10312	reqHeaders.Set("Content-Type", "application/json")
10313	c.urlParams_.Set("alt", alt)
10314	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/dataSource:inspect")
10315	urls += "?" + c.urlParams_.Encode()
10316	req, _ := http.NewRequest("POST", urls, body)
10317	req.Header = reqHeaders
10318	googleapi.Expand(req.URL, map[string]string{
10319		"parent": c.parent,
10320	})
10321	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10322}
10323
10324// Do executes the "dlp.projects.dataSource.inspect" call.
10325// Exactly one of *GooglePrivacyDlpV2beta2DlpJob or error will be
10326// non-nil. Any non-2xx status code is an error. Response headers are in
10327// either *GooglePrivacyDlpV2beta2DlpJob.ServerResponse.Header or (if a
10328// response was returned at all) in error.(*googleapi.Error).Header. Use
10329// googleapi.IsNotModified to check whether the returned error was
10330// because http.StatusNotModified was returned.
10331func (c *ProjectsDataSourceInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DlpJob, error) {
10332	gensupport.SetOptions(c.urlParams_, opts...)
10333	res, err := c.doRequest("json")
10334	if res != nil && res.StatusCode == http.StatusNotModified {
10335		if res.Body != nil {
10336			res.Body.Close()
10337		}
10338		return nil, &googleapi.Error{
10339			Code:   res.StatusCode,
10340			Header: res.Header,
10341		}
10342	}
10343	if err != nil {
10344		return nil, err
10345	}
10346	defer googleapi.CloseBody(res)
10347	if err := googleapi.CheckResponse(res); err != nil {
10348		return nil, err
10349	}
10350	ret := &GooglePrivacyDlpV2beta2DlpJob{
10351		ServerResponse: googleapi.ServerResponse{
10352			Header:         res.Header,
10353			HTTPStatusCode: res.StatusCode,
10354		},
10355	}
10356	target := &ret
10357	if err := gensupport.DecodeResponse(target, res); err != nil {
10358		return nil, err
10359	}
10360	return ret, nil
10361	// {
10362	//   "description": "Schedules a job scanning content in a Google Cloud Platform data\nrepository. [How-to guide](/dlp/docs/inspecting-storage)",
10363	//   "flatPath": "v2beta2/projects/{projectsId}/dataSource:inspect",
10364	//   "httpMethod": "POST",
10365	//   "id": "dlp.projects.dataSource.inspect",
10366	//   "parameterOrder": [
10367	//     "parent"
10368	//   ],
10369	//   "parameters": {
10370	//     "parent": {
10371	//       "description": "The parent resource name, for example projects/my-project-id.",
10372	//       "location": "path",
10373	//       "pattern": "^projects/[^/]+$",
10374	//       "required": true,
10375	//       "type": "string"
10376	//     }
10377	//   },
10378	//   "path": "v2beta2/{+parent}/dataSource:inspect",
10379	//   "request": {
10380	//     "$ref": "GooglePrivacyDlpV2beta2InspectDataSourceRequest"
10381	//   },
10382	//   "response": {
10383	//     "$ref": "GooglePrivacyDlpV2beta2DlpJob"
10384	//   },
10385	//   "scopes": [
10386	//     "https://www.googleapis.com/auth/cloud-platform"
10387	//   ]
10388	// }
10389
10390}
10391
10392// method id "dlp.projects.deidentifyTemplates.create":
10393
10394type ProjectsDeidentifyTemplatesCreateCall struct {
10395	s                                                      *Service
10396	parent                                                 string
10397	googleprivacydlpv2beta2createdeidentifytemplaterequest *GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest
10398	urlParams_                                             gensupport.URLParams
10399	ctx_                                                   context.Context
10400	header_                                                http.Header
10401}
10402
10403// Create: Creates an Deidentify template for re-using frequently used
10404// configuration
10405// for Deidentifying content, images, and storage.
10406func (r *ProjectsDeidentifyTemplatesService) Create(parent string, googleprivacydlpv2beta2createdeidentifytemplaterequest *GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest) *ProjectsDeidentifyTemplatesCreateCall {
10407	c := &ProjectsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10408	c.parent = parent
10409	c.googleprivacydlpv2beta2createdeidentifytemplaterequest = googleprivacydlpv2beta2createdeidentifytemplaterequest
10410	return c
10411}
10412
10413// Fields allows partial responses to be retrieved. See
10414// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10415// for more information.
10416func (c *ProjectsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesCreateCall {
10417	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10418	return c
10419}
10420
10421// Context sets the context to be used in this call's Do method. Any
10422// pending HTTP request will be aborted if the provided context is
10423// canceled.
10424func (c *ProjectsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesCreateCall {
10425	c.ctx_ = ctx
10426	return c
10427}
10428
10429// Header returns an http.Header that can be modified by the caller to
10430// add HTTP headers to the request.
10431func (c *ProjectsDeidentifyTemplatesCreateCall) Header() http.Header {
10432	if c.header_ == nil {
10433		c.header_ = make(http.Header)
10434	}
10435	return c.header_
10436}
10437
10438func (c *ProjectsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
10439	reqHeaders := make(http.Header)
10440	for k, v := range c.header_ {
10441		reqHeaders[k] = v
10442	}
10443	reqHeaders.Set("User-Agent", c.s.userAgent())
10444	var body io.Reader = nil
10445	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2createdeidentifytemplaterequest)
10446	if err != nil {
10447		return nil, err
10448	}
10449	reqHeaders.Set("Content-Type", "application/json")
10450	c.urlParams_.Set("alt", alt)
10451	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/deidentifyTemplates")
10452	urls += "?" + c.urlParams_.Encode()
10453	req, _ := http.NewRequest("POST", urls, body)
10454	req.Header = reqHeaders
10455	googleapi.Expand(req.URL, map[string]string{
10456		"parent": c.parent,
10457	})
10458	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10459}
10460
10461// Do executes the "dlp.projects.deidentifyTemplates.create" call.
10462// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyTemplate or error
10463// will be non-nil. Any non-2xx status code is an error. Response
10464// headers are in either
10465// *GooglePrivacyDlpV2beta2DeidentifyTemplate.ServerResponse.Header or
10466// (if a response was returned at all) in
10467// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10468// whether the returned error was because http.StatusNotModified was
10469// returned.
10470func (c *ProjectsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyTemplate, error) {
10471	gensupport.SetOptions(c.urlParams_, opts...)
10472	res, err := c.doRequest("json")
10473	if res != nil && res.StatusCode == http.StatusNotModified {
10474		if res.Body != nil {
10475			res.Body.Close()
10476		}
10477		return nil, &googleapi.Error{
10478			Code:   res.StatusCode,
10479			Header: res.Header,
10480		}
10481	}
10482	if err != nil {
10483		return nil, err
10484	}
10485	defer googleapi.CloseBody(res)
10486	if err := googleapi.CheckResponse(res); err != nil {
10487		return nil, err
10488	}
10489	ret := &GooglePrivacyDlpV2beta2DeidentifyTemplate{
10490		ServerResponse: googleapi.ServerResponse{
10491			Header:         res.Header,
10492			HTTPStatusCode: res.StatusCode,
10493		},
10494	}
10495	target := &ret
10496	if err := gensupport.DecodeResponse(target, res); err != nil {
10497		return nil, err
10498	}
10499	return ret, nil
10500	// {
10501	//   "description": "Creates an Deidentify template for re-using frequently used configuration\nfor Deidentifying content, images, and storage.",
10502	//   "flatPath": "v2beta2/projects/{projectsId}/deidentifyTemplates",
10503	//   "httpMethod": "POST",
10504	//   "id": "dlp.projects.deidentifyTemplates.create",
10505	//   "parameterOrder": [
10506	//     "parent"
10507	//   ],
10508	//   "parameters": {
10509	//     "parent": {
10510	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
10511	//       "location": "path",
10512	//       "pattern": "^projects/[^/]+$",
10513	//       "required": true,
10514	//       "type": "string"
10515	//     }
10516	//   },
10517	//   "path": "v2beta2/{+parent}/deidentifyTemplates",
10518	//   "request": {
10519	//     "$ref": "GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest"
10520	//   },
10521	//   "response": {
10522	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyTemplate"
10523	//   },
10524	//   "scopes": [
10525	//     "https://www.googleapis.com/auth/cloud-platform"
10526	//   ]
10527	// }
10528
10529}
10530
10531// method id "dlp.projects.deidentifyTemplates.delete":
10532
10533type ProjectsDeidentifyTemplatesDeleteCall struct {
10534	s          *Service
10535	name       string
10536	urlParams_ gensupport.URLParams
10537	ctx_       context.Context
10538	header_    http.Header
10539}
10540
10541// Delete: Deletes inspect templates.
10542func (r *ProjectsDeidentifyTemplatesService) Delete(name string) *ProjectsDeidentifyTemplatesDeleteCall {
10543	c := &ProjectsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10544	c.name = name
10545	return c
10546}
10547
10548// Fields allows partial responses to be retrieved. See
10549// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10550// for more information.
10551func (c *ProjectsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesDeleteCall {
10552	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10553	return c
10554}
10555
10556// Context sets the context to be used in this call's Do method. Any
10557// pending HTTP request will be aborted if the provided context is
10558// canceled.
10559func (c *ProjectsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesDeleteCall {
10560	c.ctx_ = ctx
10561	return c
10562}
10563
10564// Header returns an http.Header that can be modified by the caller to
10565// add HTTP headers to the request.
10566func (c *ProjectsDeidentifyTemplatesDeleteCall) Header() http.Header {
10567	if c.header_ == nil {
10568		c.header_ = make(http.Header)
10569	}
10570	return c.header_
10571}
10572
10573func (c *ProjectsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
10574	reqHeaders := make(http.Header)
10575	for k, v := range c.header_ {
10576		reqHeaders[k] = v
10577	}
10578	reqHeaders.Set("User-Agent", c.s.userAgent())
10579	var body io.Reader = nil
10580	c.urlParams_.Set("alt", alt)
10581	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
10582	urls += "?" + c.urlParams_.Encode()
10583	req, _ := http.NewRequest("DELETE", urls, body)
10584	req.Header = reqHeaders
10585	googleapi.Expand(req.URL, map[string]string{
10586		"name": c.name,
10587	})
10588	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10589}
10590
10591// Do executes the "dlp.projects.deidentifyTemplates.delete" call.
10592// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
10593// non-2xx status code is an error. Response headers are in either
10594// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
10595// returned at all) in error.(*googleapi.Error).Header. Use
10596// googleapi.IsNotModified to check whether the returned error was
10597// because http.StatusNotModified was returned.
10598func (c *ProjectsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10599	gensupport.SetOptions(c.urlParams_, opts...)
10600	res, err := c.doRequest("json")
10601	if res != nil && res.StatusCode == http.StatusNotModified {
10602		if res.Body != nil {
10603			res.Body.Close()
10604		}
10605		return nil, &googleapi.Error{
10606			Code:   res.StatusCode,
10607			Header: res.Header,
10608		}
10609	}
10610	if err != nil {
10611		return nil, err
10612	}
10613	defer googleapi.CloseBody(res)
10614	if err := googleapi.CheckResponse(res); err != nil {
10615		return nil, err
10616	}
10617	ret := &GoogleProtobufEmpty{
10618		ServerResponse: googleapi.ServerResponse{
10619			Header:         res.Header,
10620			HTTPStatusCode: res.StatusCode,
10621		},
10622	}
10623	target := &ret
10624	if err := gensupport.DecodeResponse(target, res); err != nil {
10625		return nil, err
10626	}
10627	return ret, nil
10628	// {
10629	//   "description": "Deletes inspect templates.",
10630	//   "flatPath": "v2beta2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}",
10631	//   "httpMethod": "DELETE",
10632	//   "id": "dlp.projects.deidentifyTemplates.delete",
10633	//   "parameterOrder": [
10634	//     "name"
10635	//   ],
10636	//   "parameters": {
10637	//     "name": {
10638	//       "description": "Resource name of the organization and deidentify template to be deleted,\nfor example `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
10639	//       "location": "path",
10640	//       "pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$",
10641	//       "required": true,
10642	//       "type": "string"
10643	//     }
10644	//   },
10645	//   "path": "v2beta2/{+name}",
10646	//   "response": {
10647	//     "$ref": "GoogleProtobufEmpty"
10648	//   },
10649	//   "scopes": [
10650	//     "https://www.googleapis.com/auth/cloud-platform"
10651	//   ]
10652	// }
10653
10654}
10655
10656// method id "dlp.projects.deidentifyTemplates.get":
10657
10658type ProjectsDeidentifyTemplatesGetCall struct {
10659	s            *Service
10660	name         string
10661	urlParams_   gensupport.URLParams
10662	ifNoneMatch_ string
10663	ctx_         context.Context
10664	header_      http.Header
10665}
10666
10667// Get: Gets an inspect template.
10668func (r *ProjectsDeidentifyTemplatesService) Get(name string) *ProjectsDeidentifyTemplatesGetCall {
10669	c := &ProjectsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10670	c.name = name
10671	return c
10672}
10673
10674// Fields allows partial responses to be retrieved. See
10675// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10676// for more information.
10677func (c *ProjectsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesGetCall {
10678	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10679	return c
10680}
10681
10682// IfNoneMatch sets the optional parameter which makes the operation
10683// fail if the object's ETag matches the given value. This is useful for
10684// getting updates only after the object has changed since the last
10685// request. Use googleapi.IsNotModified to check whether the response
10686// error from Do is the result of In-None-Match.
10687func (c *ProjectsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsDeidentifyTemplatesGetCall {
10688	c.ifNoneMatch_ = entityTag
10689	return c
10690}
10691
10692// Context sets the context to be used in this call's Do method. Any
10693// pending HTTP request will be aborted if the provided context is
10694// canceled.
10695func (c *ProjectsDeidentifyTemplatesGetCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesGetCall {
10696	c.ctx_ = ctx
10697	return c
10698}
10699
10700// Header returns an http.Header that can be modified by the caller to
10701// add HTTP headers to the request.
10702func (c *ProjectsDeidentifyTemplatesGetCall) Header() http.Header {
10703	if c.header_ == nil {
10704		c.header_ = make(http.Header)
10705	}
10706	return c.header_
10707}
10708
10709func (c *ProjectsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
10710	reqHeaders := make(http.Header)
10711	for k, v := range c.header_ {
10712		reqHeaders[k] = v
10713	}
10714	reqHeaders.Set("User-Agent", c.s.userAgent())
10715	if c.ifNoneMatch_ != "" {
10716		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10717	}
10718	var body io.Reader = nil
10719	c.urlParams_.Set("alt", alt)
10720	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
10721	urls += "?" + c.urlParams_.Encode()
10722	req, _ := http.NewRequest("GET", urls, body)
10723	req.Header = reqHeaders
10724	googleapi.Expand(req.URL, map[string]string{
10725		"name": c.name,
10726	})
10727	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10728}
10729
10730// Do executes the "dlp.projects.deidentifyTemplates.get" call.
10731// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyTemplate or error
10732// will be non-nil. Any non-2xx status code is an error. Response
10733// headers are in either
10734// *GooglePrivacyDlpV2beta2DeidentifyTemplate.ServerResponse.Header or
10735// (if a response was returned at all) in
10736// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10737// whether the returned error was because http.StatusNotModified was
10738// returned.
10739func (c *ProjectsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyTemplate, error) {
10740	gensupport.SetOptions(c.urlParams_, opts...)
10741	res, err := c.doRequest("json")
10742	if res != nil && res.StatusCode == http.StatusNotModified {
10743		if res.Body != nil {
10744			res.Body.Close()
10745		}
10746		return nil, &googleapi.Error{
10747			Code:   res.StatusCode,
10748			Header: res.Header,
10749		}
10750	}
10751	if err != nil {
10752		return nil, err
10753	}
10754	defer googleapi.CloseBody(res)
10755	if err := googleapi.CheckResponse(res); err != nil {
10756		return nil, err
10757	}
10758	ret := &GooglePrivacyDlpV2beta2DeidentifyTemplate{
10759		ServerResponse: googleapi.ServerResponse{
10760			Header:         res.Header,
10761			HTTPStatusCode: res.StatusCode,
10762		},
10763	}
10764	target := &ret
10765	if err := gensupport.DecodeResponse(target, res); err != nil {
10766		return nil, err
10767	}
10768	return ret, nil
10769	// {
10770	//   "description": "Gets an inspect template.",
10771	//   "flatPath": "v2beta2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}",
10772	//   "httpMethod": "GET",
10773	//   "id": "dlp.projects.deidentifyTemplates.get",
10774	//   "parameterOrder": [
10775	//     "name"
10776	//   ],
10777	//   "parameters": {
10778	//     "name": {
10779	//       "description": "Resource name of the organization and deidentify template to be read, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
10780	//       "location": "path",
10781	//       "pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$",
10782	//       "required": true,
10783	//       "type": "string"
10784	//     }
10785	//   },
10786	//   "path": "v2beta2/{+name}",
10787	//   "response": {
10788	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyTemplate"
10789	//   },
10790	//   "scopes": [
10791	//     "https://www.googleapis.com/auth/cloud-platform"
10792	//   ]
10793	// }
10794
10795}
10796
10797// method id "dlp.projects.deidentifyTemplates.list":
10798
10799type ProjectsDeidentifyTemplatesListCall struct {
10800	s            *Service
10801	parent       string
10802	urlParams_   gensupport.URLParams
10803	ifNoneMatch_ string
10804	ctx_         context.Context
10805	header_      http.Header
10806}
10807
10808// List: Lists inspect templates.
10809func (r *ProjectsDeidentifyTemplatesService) List(parent string) *ProjectsDeidentifyTemplatesListCall {
10810	c := &ProjectsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10811	c.parent = parent
10812	return c
10813}
10814
10815// PageSize sets the optional parameter "pageSize": Optional size of the
10816// page, can be limited by server. If zero server returns
10817// a page of max size 100.
10818func (c *ProjectsDeidentifyTemplatesListCall) PageSize(pageSize int64) *ProjectsDeidentifyTemplatesListCall {
10819	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10820	return c
10821}
10822
10823// PageToken sets the optional parameter "pageToken": Optional page
10824// token to continue retrieval. Comes from previous call
10825// to `ListDeidentifyTemplates`.
10826func (c *ProjectsDeidentifyTemplatesListCall) PageToken(pageToken string) *ProjectsDeidentifyTemplatesListCall {
10827	c.urlParams_.Set("pageToken", pageToken)
10828	return c
10829}
10830
10831// Fields allows partial responses to be retrieved. See
10832// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10833// for more information.
10834func (c *ProjectsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesListCall {
10835	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10836	return c
10837}
10838
10839// IfNoneMatch sets the optional parameter which makes the operation
10840// fail if the object's ETag matches the given value. This is useful for
10841// getting updates only after the object has changed since the last
10842// request. Use googleapi.IsNotModified to check whether the response
10843// error from Do is the result of In-None-Match.
10844func (c *ProjectsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsDeidentifyTemplatesListCall {
10845	c.ifNoneMatch_ = entityTag
10846	return c
10847}
10848
10849// Context sets the context to be used in this call's Do method. Any
10850// pending HTTP request will be aborted if the provided context is
10851// canceled.
10852func (c *ProjectsDeidentifyTemplatesListCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesListCall {
10853	c.ctx_ = ctx
10854	return c
10855}
10856
10857// Header returns an http.Header that can be modified by the caller to
10858// add HTTP headers to the request.
10859func (c *ProjectsDeidentifyTemplatesListCall) Header() http.Header {
10860	if c.header_ == nil {
10861		c.header_ = make(http.Header)
10862	}
10863	return c.header_
10864}
10865
10866func (c *ProjectsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
10867	reqHeaders := make(http.Header)
10868	for k, v := range c.header_ {
10869		reqHeaders[k] = v
10870	}
10871	reqHeaders.Set("User-Agent", c.s.userAgent())
10872	if c.ifNoneMatch_ != "" {
10873		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10874	}
10875	var body io.Reader = nil
10876	c.urlParams_.Set("alt", alt)
10877	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/deidentifyTemplates")
10878	urls += "?" + c.urlParams_.Encode()
10879	req, _ := http.NewRequest("GET", urls, body)
10880	req.Header = reqHeaders
10881	googleapi.Expand(req.URL, map[string]string{
10882		"parent": c.parent,
10883	})
10884	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10885}
10886
10887// Do executes the "dlp.projects.deidentifyTemplates.list" call.
10888// Exactly one of
10889// *GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse or error will
10890// be non-nil. Any non-2xx status code is an error. Response headers are
10891// in either
10892// *GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse.ServerResponse
10893// .Header or (if a response was returned at all) in
10894// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10895// whether the returned error was because http.StatusNotModified was
10896// returned.
10897func (c *ProjectsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse, error) {
10898	gensupport.SetOptions(c.urlParams_, opts...)
10899	res, err := c.doRequest("json")
10900	if res != nil && res.StatusCode == http.StatusNotModified {
10901		if res.Body != nil {
10902			res.Body.Close()
10903		}
10904		return nil, &googleapi.Error{
10905			Code:   res.StatusCode,
10906			Header: res.Header,
10907		}
10908	}
10909	if err != nil {
10910		return nil, err
10911	}
10912	defer googleapi.CloseBody(res)
10913	if err := googleapi.CheckResponse(res); err != nil {
10914		return nil, err
10915	}
10916	ret := &GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse{
10917		ServerResponse: googleapi.ServerResponse{
10918			Header:         res.Header,
10919			HTTPStatusCode: res.StatusCode,
10920		},
10921	}
10922	target := &ret
10923	if err := gensupport.DecodeResponse(target, res); err != nil {
10924		return nil, err
10925	}
10926	return ret, nil
10927	// {
10928	//   "description": "Lists inspect templates.",
10929	//   "flatPath": "v2beta2/projects/{projectsId}/deidentifyTemplates",
10930	//   "httpMethod": "GET",
10931	//   "id": "dlp.projects.deidentifyTemplates.list",
10932	//   "parameterOrder": [
10933	//     "parent"
10934	//   ],
10935	//   "parameters": {
10936	//     "pageSize": {
10937	//       "description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
10938	//       "format": "int32",
10939	//       "location": "query",
10940	//       "type": "integer"
10941	//     },
10942	//     "pageToken": {
10943	//       "description": "Optional page token to continue retrieval. Comes from previous call\nto `ListDeidentifyTemplates`.",
10944	//       "location": "query",
10945	//       "type": "string"
10946	//     },
10947	//     "parent": {
10948	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
10949	//       "location": "path",
10950	//       "pattern": "^projects/[^/]+$",
10951	//       "required": true,
10952	//       "type": "string"
10953	//     }
10954	//   },
10955	//   "path": "v2beta2/{+parent}/deidentifyTemplates",
10956	//   "response": {
10957	//     "$ref": "GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse"
10958	//   },
10959	//   "scopes": [
10960	//     "https://www.googleapis.com/auth/cloud-platform"
10961	//   ]
10962	// }
10963
10964}
10965
10966// Pages invokes f for each page of results.
10967// A non-nil error returned from f will halt the iteration.
10968// The provided context supersedes any context provided to the Context method.
10969func (c *ProjectsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse) error) error {
10970	c.ctx_ = ctx
10971	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
10972	for {
10973		x, err := c.Do()
10974		if err != nil {
10975			return err
10976		}
10977		if err := f(x); err != nil {
10978			return err
10979		}
10980		if x.NextPageToken == "" {
10981			return nil
10982		}
10983		c.PageToken(x.NextPageToken)
10984	}
10985}
10986
10987// method id "dlp.projects.deidentifyTemplates.patch":
10988
10989type ProjectsDeidentifyTemplatesPatchCall struct {
10990	s                                                      *Service
10991	name                                                   string
10992	googleprivacydlpv2beta2updatedeidentifytemplaterequest *GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest
10993	urlParams_                                             gensupport.URLParams
10994	ctx_                                                   context.Context
10995	header_                                                http.Header
10996}
10997
10998// Patch: Updates the inspect template.
10999func (r *ProjectsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2beta2updatedeidentifytemplaterequest *GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest) *ProjectsDeidentifyTemplatesPatchCall {
11000	c := &ProjectsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11001	c.name = name
11002	c.googleprivacydlpv2beta2updatedeidentifytemplaterequest = googleprivacydlpv2beta2updatedeidentifytemplaterequest
11003	return c
11004}
11005
11006// Fields allows partial responses to be retrieved. See
11007// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11008// for more information.
11009func (c *ProjectsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesPatchCall {
11010	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11011	return c
11012}
11013
11014// Context sets the context to be used in this call's Do method. Any
11015// pending HTTP request will be aborted if the provided context is
11016// canceled.
11017func (c *ProjectsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesPatchCall {
11018	c.ctx_ = ctx
11019	return c
11020}
11021
11022// Header returns an http.Header that can be modified by the caller to
11023// add HTTP headers to the request.
11024func (c *ProjectsDeidentifyTemplatesPatchCall) Header() http.Header {
11025	if c.header_ == nil {
11026		c.header_ = make(http.Header)
11027	}
11028	return c.header_
11029}
11030
11031func (c *ProjectsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
11032	reqHeaders := make(http.Header)
11033	for k, v := range c.header_ {
11034		reqHeaders[k] = v
11035	}
11036	reqHeaders.Set("User-Agent", c.s.userAgent())
11037	var body io.Reader = nil
11038	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2updatedeidentifytemplaterequest)
11039	if err != nil {
11040		return nil, err
11041	}
11042	reqHeaders.Set("Content-Type", "application/json")
11043	c.urlParams_.Set("alt", alt)
11044	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
11045	urls += "?" + c.urlParams_.Encode()
11046	req, _ := http.NewRequest("PATCH", urls, body)
11047	req.Header = reqHeaders
11048	googleapi.Expand(req.URL, map[string]string{
11049		"name": c.name,
11050	})
11051	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11052}
11053
11054// Do executes the "dlp.projects.deidentifyTemplates.patch" call.
11055// Exactly one of *GooglePrivacyDlpV2beta2DeidentifyTemplate or error
11056// will be non-nil. Any non-2xx status code is an error. Response
11057// headers are in either
11058// *GooglePrivacyDlpV2beta2DeidentifyTemplate.ServerResponse.Header or
11059// (if a response was returned at all) in
11060// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11061// whether the returned error was because http.StatusNotModified was
11062// returned.
11063func (c *ProjectsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DeidentifyTemplate, error) {
11064	gensupport.SetOptions(c.urlParams_, opts...)
11065	res, err := c.doRequest("json")
11066	if res != nil && res.StatusCode == http.StatusNotModified {
11067		if res.Body != nil {
11068			res.Body.Close()
11069		}
11070		return nil, &googleapi.Error{
11071			Code:   res.StatusCode,
11072			Header: res.Header,
11073		}
11074	}
11075	if err != nil {
11076		return nil, err
11077	}
11078	defer googleapi.CloseBody(res)
11079	if err := googleapi.CheckResponse(res); err != nil {
11080		return nil, err
11081	}
11082	ret := &GooglePrivacyDlpV2beta2DeidentifyTemplate{
11083		ServerResponse: googleapi.ServerResponse{
11084			Header:         res.Header,
11085			HTTPStatusCode: res.StatusCode,
11086		},
11087	}
11088	target := &ret
11089	if err := gensupport.DecodeResponse(target, res); err != nil {
11090		return nil, err
11091	}
11092	return ret, nil
11093	// {
11094	//   "description": "Updates the inspect template.",
11095	//   "flatPath": "v2beta2/projects/{projectsId}/deidentifyTemplates/{deidentifyTemplatesId}",
11096	//   "httpMethod": "PATCH",
11097	//   "id": "dlp.projects.deidentifyTemplates.patch",
11098	//   "parameterOrder": [
11099	//     "name"
11100	//   ],
11101	//   "parameters": {
11102	//     "name": {
11103	//       "description": "Resource name of organization and deidentify template to be updated, for\nexample `organizations/433245324/deidentifyTemplates/432452342` or\nprojects/project-id/deidentifyTemplates/432452342.",
11104	//       "location": "path",
11105	//       "pattern": "^projects/[^/]+/deidentifyTemplates/[^/]+$",
11106	//       "required": true,
11107	//       "type": "string"
11108	//     }
11109	//   },
11110	//   "path": "v2beta2/{+name}",
11111	//   "request": {
11112	//     "$ref": "GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest"
11113	//   },
11114	//   "response": {
11115	//     "$ref": "GooglePrivacyDlpV2beta2DeidentifyTemplate"
11116	//   },
11117	//   "scopes": [
11118	//     "https://www.googleapis.com/auth/cloud-platform"
11119	//   ]
11120	// }
11121
11122}
11123
11124// method id "dlp.projects.dlpJobs.cancel":
11125
11126type ProjectsDlpJobsCancelCall struct {
11127	s                                          *Service
11128	name                                       string
11129	googleprivacydlpv2beta2canceldlpjobrequest *GooglePrivacyDlpV2beta2CancelDlpJobRequest
11130	urlParams_                                 gensupport.URLParams
11131	ctx_                                       context.Context
11132	header_                                    http.Header
11133}
11134
11135// Cancel: Starts asynchronous cancellation on a long-running DlpJob.
11136// The server
11137// makes a best effort to cancel the DlpJob, but success is
11138// not
11139// guaranteed.
11140func (r *ProjectsDlpJobsService) Cancel(name string, googleprivacydlpv2beta2canceldlpjobrequest *GooglePrivacyDlpV2beta2CancelDlpJobRequest) *ProjectsDlpJobsCancelCall {
11141	c := &ProjectsDlpJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11142	c.name = name
11143	c.googleprivacydlpv2beta2canceldlpjobrequest = googleprivacydlpv2beta2canceldlpjobrequest
11144	return c
11145}
11146
11147// Fields allows partial responses to be retrieved. See
11148// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11149// for more information.
11150func (c *ProjectsDlpJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsCancelCall {
11151	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11152	return c
11153}
11154
11155// Context sets the context to be used in this call's Do method. Any
11156// pending HTTP request will be aborted if the provided context is
11157// canceled.
11158func (c *ProjectsDlpJobsCancelCall) Context(ctx context.Context) *ProjectsDlpJobsCancelCall {
11159	c.ctx_ = ctx
11160	return c
11161}
11162
11163// Header returns an http.Header that can be modified by the caller to
11164// add HTTP headers to the request.
11165func (c *ProjectsDlpJobsCancelCall) Header() http.Header {
11166	if c.header_ == nil {
11167		c.header_ = make(http.Header)
11168	}
11169	return c.header_
11170}
11171
11172func (c *ProjectsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) {
11173	reqHeaders := make(http.Header)
11174	for k, v := range c.header_ {
11175		reqHeaders[k] = v
11176	}
11177	reqHeaders.Set("User-Agent", c.s.userAgent())
11178	var body io.Reader = nil
11179	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2canceldlpjobrequest)
11180	if err != nil {
11181		return nil, err
11182	}
11183	reqHeaders.Set("Content-Type", "application/json")
11184	c.urlParams_.Set("alt", alt)
11185	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}:cancel")
11186	urls += "?" + c.urlParams_.Encode()
11187	req, _ := http.NewRequest("POST", urls, body)
11188	req.Header = reqHeaders
11189	googleapi.Expand(req.URL, map[string]string{
11190		"name": c.name,
11191	})
11192	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11193}
11194
11195// Do executes the "dlp.projects.dlpJobs.cancel" call.
11196// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
11197// non-2xx status code is an error. Response headers are in either
11198// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
11199// returned at all) in error.(*googleapi.Error).Header. Use
11200// googleapi.IsNotModified to check whether the returned error was
11201// because http.StatusNotModified was returned.
11202func (c *ProjectsDlpJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11203	gensupport.SetOptions(c.urlParams_, opts...)
11204	res, err := c.doRequest("json")
11205	if res != nil && res.StatusCode == http.StatusNotModified {
11206		if res.Body != nil {
11207			res.Body.Close()
11208		}
11209		return nil, &googleapi.Error{
11210			Code:   res.StatusCode,
11211			Header: res.Header,
11212		}
11213	}
11214	if err != nil {
11215		return nil, err
11216	}
11217	defer googleapi.CloseBody(res)
11218	if err := googleapi.CheckResponse(res); err != nil {
11219		return nil, err
11220	}
11221	ret := &GoogleProtobufEmpty{
11222		ServerResponse: googleapi.ServerResponse{
11223			Header:         res.Header,
11224			HTTPStatusCode: res.StatusCode,
11225		},
11226	}
11227	target := &ret
11228	if err := gensupport.DecodeResponse(target, res); err != nil {
11229		return nil, err
11230	}
11231	return ret, nil
11232	// {
11233	//   "description": "Starts asynchronous cancellation on a long-running DlpJob.  The server\nmakes a best effort to cancel the DlpJob, but success is not\nguaranteed.",
11234	//   "flatPath": "v2beta2/projects/{projectsId}/dlpJobs/{dlpJobsId}:cancel",
11235	//   "httpMethod": "POST",
11236	//   "id": "dlp.projects.dlpJobs.cancel",
11237	//   "parameterOrder": [
11238	//     "name"
11239	//   ],
11240	//   "parameters": {
11241	//     "name": {
11242	//       "description": "The name of the DlpJob resource to be cancelled.",
11243	//       "location": "path",
11244	//       "pattern": "^projects/[^/]+/dlpJobs/[^/]+$",
11245	//       "required": true,
11246	//       "type": "string"
11247	//     }
11248	//   },
11249	//   "path": "v2beta2/{+name}:cancel",
11250	//   "request": {
11251	//     "$ref": "GooglePrivacyDlpV2beta2CancelDlpJobRequest"
11252	//   },
11253	//   "response": {
11254	//     "$ref": "GoogleProtobufEmpty"
11255	//   },
11256	//   "scopes": [
11257	//     "https://www.googleapis.com/auth/cloud-platform"
11258	//   ]
11259	// }
11260
11261}
11262
11263// method id "dlp.projects.dlpJobs.delete":
11264
11265type ProjectsDlpJobsDeleteCall struct {
11266	s          *Service
11267	name       string
11268	urlParams_ gensupport.URLParams
11269	ctx_       context.Context
11270	header_    http.Header
11271}
11272
11273// Delete: Deletes a long-running DlpJob. This method indicates that the
11274// client is
11275// no longer interested in the DlpJob result. The job will be cancelled
11276// if
11277// possible.
11278func (r *ProjectsDlpJobsService) Delete(name string) *ProjectsDlpJobsDeleteCall {
11279	c := &ProjectsDlpJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11280	c.name = name
11281	return c
11282}
11283
11284// Fields allows partial responses to be retrieved. See
11285// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11286// for more information.
11287func (c *ProjectsDlpJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsDeleteCall {
11288	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11289	return c
11290}
11291
11292// Context sets the context to be used in this call's Do method. Any
11293// pending HTTP request will be aborted if the provided context is
11294// canceled.
11295func (c *ProjectsDlpJobsDeleteCall) Context(ctx context.Context) *ProjectsDlpJobsDeleteCall {
11296	c.ctx_ = ctx
11297	return c
11298}
11299
11300// Header returns an http.Header that can be modified by the caller to
11301// add HTTP headers to the request.
11302func (c *ProjectsDlpJobsDeleteCall) Header() http.Header {
11303	if c.header_ == nil {
11304		c.header_ = make(http.Header)
11305	}
11306	return c.header_
11307}
11308
11309func (c *ProjectsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
11310	reqHeaders := make(http.Header)
11311	for k, v := range c.header_ {
11312		reqHeaders[k] = v
11313	}
11314	reqHeaders.Set("User-Agent", c.s.userAgent())
11315	var body io.Reader = nil
11316	c.urlParams_.Set("alt", alt)
11317	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
11318	urls += "?" + c.urlParams_.Encode()
11319	req, _ := http.NewRequest("DELETE", urls, body)
11320	req.Header = reqHeaders
11321	googleapi.Expand(req.URL, map[string]string{
11322		"name": c.name,
11323	})
11324	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11325}
11326
11327// Do executes the "dlp.projects.dlpJobs.delete" call.
11328// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
11329// non-2xx status code is an error. Response headers are in either
11330// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
11331// returned at all) in error.(*googleapi.Error).Header. Use
11332// googleapi.IsNotModified to check whether the returned error was
11333// because http.StatusNotModified was returned.
11334func (c *ProjectsDlpJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11335	gensupport.SetOptions(c.urlParams_, opts...)
11336	res, err := c.doRequest("json")
11337	if res != nil && res.StatusCode == http.StatusNotModified {
11338		if res.Body != nil {
11339			res.Body.Close()
11340		}
11341		return nil, &googleapi.Error{
11342			Code:   res.StatusCode,
11343			Header: res.Header,
11344		}
11345	}
11346	if err != nil {
11347		return nil, err
11348	}
11349	defer googleapi.CloseBody(res)
11350	if err := googleapi.CheckResponse(res); err != nil {
11351		return nil, err
11352	}
11353	ret := &GoogleProtobufEmpty{
11354		ServerResponse: googleapi.ServerResponse{
11355			Header:         res.Header,
11356			HTTPStatusCode: res.StatusCode,
11357		},
11358	}
11359	target := &ret
11360	if err := gensupport.DecodeResponse(target, res); err != nil {
11361		return nil, err
11362	}
11363	return ret, nil
11364	// {
11365	//   "description": "Deletes a long-running DlpJob. This method indicates that the client is\nno longer interested in the DlpJob result. The job will be cancelled if\npossible.",
11366	//   "flatPath": "v2beta2/projects/{projectsId}/dlpJobs/{dlpJobsId}",
11367	//   "httpMethod": "DELETE",
11368	//   "id": "dlp.projects.dlpJobs.delete",
11369	//   "parameterOrder": [
11370	//     "name"
11371	//   ],
11372	//   "parameters": {
11373	//     "name": {
11374	//       "description": "The name of the DlpJob resource to be deleted.",
11375	//       "location": "path",
11376	//       "pattern": "^projects/[^/]+/dlpJobs/[^/]+$",
11377	//       "required": true,
11378	//       "type": "string"
11379	//     }
11380	//   },
11381	//   "path": "v2beta2/{+name}",
11382	//   "response": {
11383	//     "$ref": "GoogleProtobufEmpty"
11384	//   },
11385	//   "scopes": [
11386	//     "https://www.googleapis.com/auth/cloud-platform"
11387	//   ]
11388	// }
11389
11390}
11391
11392// method id "dlp.projects.dlpJobs.get":
11393
11394type ProjectsDlpJobsGetCall struct {
11395	s            *Service
11396	name         string
11397	urlParams_   gensupport.URLParams
11398	ifNoneMatch_ string
11399	ctx_         context.Context
11400	header_      http.Header
11401}
11402
11403// Get: Gets the latest state of a long-running DlpJob.
11404func (r *ProjectsDlpJobsService) Get(name string) *ProjectsDlpJobsGetCall {
11405	c := &ProjectsDlpJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11406	c.name = name
11407	return c
11408}
11409
11410// Fields allows partial responses to be retrieved. See
11411// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11412// for more information.
11413func (c *ProjectsDlpJobsGetCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsGetCall {
11414	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11415	return c
11416}
11417
11418// IfNoneMatch sets the optional parameter which makes the operation
11419// fail if the object's ETag matches the given value. This is useful for
11420// getting updates only after the object has changed since the last
11421// request. Use googleapi.IsNotModified to check whether the response
11422// error from Do is the result of In-None-Match.
11423func (c *ProjectsDlpJobsGetCall) IfNoneMatch(entityTag string) *ProjectsDlpJobsGetCall {
11424	c.ifNoneMatch_ = entityTag
11425	return c
11426}
11427
11428// Context sets the context to be used in this call's Do method. Any
11429// pending HTTP request will be aborted if the provided context is
11430// canceled.
11431func (c *ProjectsDlpJobsGetCall) Context(ctx context.Context) *ProjectsDlpJobsGetCall {
11432	c.ctx_ = ctx
11433	return c
11434}
11435
11436// Header returns an http.Header that can be modified by the caller to
11437// add HTTP headers to the request.
11438func (c *ProjectsDlpJobsGetCall) Header() http.Header {
11439	if c.header_ == nil {
11440		c.header_ = make(http.Header)
11441	}
11442	return c.header_
11443}
11444
11445func (c *ProjectsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) {
11446	reqHeaders := make(http.Header)
11447	for k, v := range c.header_ {
11448		reqHeaders[k] = v
11449	}
11450	reqHeaders.Set("User-Agent", c.s.userAgent())
11451	if c.ifNoneMatch_ != "" {
11452		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11453	}
11454	var body io.Reader = nil
11455	c.urlParams_.Set("alt", alt)
11456	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
11457	urls += "?" + c.urlParams_.Encode()
11458	req, _ := http.NewRequest("GET", urls, body)
11459	req.Header = reqHeaders
11460	googleapi.Expand(req.URL, map[string]string{
11461		"name": c.name,
11462	})
11463	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11464}
11465
11466// Do executes the "dlp.projects.dlpJobs.get" call.
11467// Exactly one of *GooglePrivacyDlpV2beta2DlpJob or error will be
11468// non-nil. Any non-2xx status code is an error. Response headers are in
11469// either *GooglePrivacyDlpV2beta2DlpJob.ServerResponse.Header or (if a
11470// response was returned at all) in error.(*googleapi.Error).Header. Use
11471// googleapi.IsNotModified to check whether the returned error was
11472// because http.StatusNotModified was returned.
11473func (c *ProjectsDlpJobsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2DlpJob, error) {
11474	gensupport.SetOptions(c.urlParams_, opts...)
11475	res, err := c.doRequest("json")
11476	if res != nil && res.StatusCode == http.StatusNotModified {
11477		if res.Body != nil {
11478			res.Body.Close()
11479		}
11480		return nil, &googleapi.Error{
11481			Code:   res.StatusCode,
11482			Header: res.Header,
11483		}
11484	}
11485	if err != nil {
11486		return nil, err
11487	}
11488	defer googleapi.CloseBody(res)
11489	if err := googleapi.CheckResponse(res); err != nil {
11490		return nil, err
11491	}
11492	ret := &GooglePrivacyDlpV2beta2DlpJob{
11493		ServerResponse: googleapi.ServerResponse{
11494			Header:         res.Header,
11495			HTTPStatusCode: res.StatusCode,
11496		},
11497	}
11498	target := &ret
11499	if err := gensupport.DecodeResponse(target, res); err != nil {
11500		return nil, err
11501	}
11502	return ret, nil
11503	// {
11504	//   "description": "Gets the latest state of a long-running DlpJob.",
11505	//   "flatPath": "v2beta2/projects/{projectsId}/dlpJobs/{dlpJobsId}",
11506	//   "httpMethod": "GET",
11507	//   "id": "dlp.projects.dlpJobs.get",
11508	//   "parameterOrder": [
11509	//     "name"
11510	//   ],
11511	//   "parameters": {
11512	//     "name": {
11513	//       "description": "The name of the DlpJob resource.",
11514	//       "location": "path",
11515	//       "pattern": "^projects/[^/]+/dlpJobs/[^/]+$",
11516	//       "required": true,
11517	//       "type": "string"
11518	//     }
11519	//   },
11520	//   "path": "v2beta2/{+name}",
11521	//   "response": {
11522	//     "$ref": "GooglePrivacyDlpV2beta2DlpJob"
11523	//   },
11524	//   "scopes": [
11525	//     "https://www.googleapis.com/auth/cloud-platform"
11526	//   ]
11527	// }
11528
11529}
11530
11531// method id "dlp.projects.dlpJobs.list":
11532
11533type ProjectsDlpJobsListCall struct {
11534	s            *Service
11535	parent       string
11536	urlParams_   gensupport.URLParams
11537	ifNoneMatch_ string
11538	ctx_         context.Context
11539	header_      http.Header
11540}
11541
11542// List: Lists DlpJobs that match the specified filter in the request.
11543func (r *ProjectsDlpJobsService) List(parent string) *ProjectsDlpJobsListCall {
11544	c := &ProjectsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11545	c.parent = parent
11546	return c
11547}
11548
11549// Filter sets the optional parameter "filter": Allows
11550// filtering.
11551//
11552// Supported syntax:
11553//
11554// * Filter expressions are made up of one or more restrictions.
11555// * Restrictions can be combined by `AND` or `OR` logical operators.
11556// A
11557// sequence of restrictions implicitly uses `AND`.
11558// * A restriction has the form of `<field> <operator> <value>`.
11559// * Supported fields/values for inspect jobs:
11560//     - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
11561//     - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
11562//     - `trigger_name` - The resource name of the trigger that created
11563// job.
11564// * Supported fields for risk analysis jobs:
11565//     - `state` - RUNNING|CANCELED|FINISHED|FAILED
11566// * The operator must be `=` or `!=`.
11567//
11568// Examples:
11569//
11570// * inspected_storage = cloud_storage AND state = done
11571// * inspected_storage = cloud_storage OR inspected_storage = bigquery
11572// * inspected_storage = cloud_storage AND (state = done OR state =
11573// canceled)
11574//
11575// The length of this field should be no more than 500 characters.
11576func (c *ProjectsDlpJobsListCall) Filter(filter string) *ProjectsDlpJobsListCall {
11577	c.urlParams_.Set("filter", filter)
11578	return c
11579}
11580
11581// PageSize sets the optional parameter "pageSize": The standard list
11582// page size.
11583func (c *ProjectsDlpJobsListCall) PageSize(pageSize int64) *ProjectsDlpJobsListCall {
11584	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11585	return c
11586}
11587
11588// PageToken sets the optional parameter "pageToken": The standard list
11589// page token.
11590func (c *ProjectsDlpJobsListCall) PageToken(pageToken string) *ProjectsDlpJobsListCall {
11591	c.urlParams_.Set("pageToken", pageToken)
11592	return c
11593}
11594
11595// Type sets the optional parameter "type": The type of job. Defaults to
11596// `DlpJobType.INSPECT`
11597//
11598// Possible values:
11599//   "DLP_JOB_TYPE_UNSPECIFIED"
11600//   "INSPECT_JOB"
11601//   "RISK_ANALYSIS_JOB"
11602func (c *ProjectsDlpJobsListCall) Type(type_ string) *ProjectsDlpJobsListCall {
11603	c.urlParams_.Set("type", type_)
11604	return c
11605}
11606
11607// Fields allows partial responses to be retrieved. See
11608// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11609// for more information.
11610func (c *ProjectsDlpJobsListCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsListCall {
11611	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11612	return c
11613}
11614
11615// IfNoneMatch sets the optional parameter which makes the operation
11616// fail if the object's ETag matches the given value. This is useful for
11617// getting updates only after the object has changed since the last
11618// request. Use googleapi.IsNotModified to check whether the response
11619// error from Do is the result of In-None-Match.
11620func (c *ProjectsDlpJobsListCall) IfNoneMatch(entityTag string) *ProjectsDlpJobsListCall {
11621	c.ifNoneMatch_ = entityTag
11622	return c
11623}
11624
11625// Context sets the context to be used in this call's Do method. Any
11626// pending HTTP request will be aborted if the provided context is
11627// canceled.
11628func (c *ProjectsDlpJobsListCall) Context(ctx context.Context) *ProjectsDlpJobsListCall {
11629	c.ctx_ = ctx
11630	return c
11631}
11632
11633// Header returns an http.Header that can be modified by the caller to
11634// add HTTP headers to the request.
11635func (c *ProjectsDlpJobsListCall) Header() http.Header {
11636	if c.header_ == nil {
11637		c.header_ = make(http.Header)
11638	}
11639	return c.header_
11640}
11641
11642func (c *ProjectsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
11643	reqHeaders := make(http.Header)
11644	for k, v := range c.header_ {
11645		reqHeaders[k] = v
11646	}
11647	reqHeaders.Set("User-Agent", c.s.userAgent())
11648	if c.ifNoneMatch_ != "" {
11649		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11650	}
11651	var body io.Reader = nil
11652	c.urlParams_.Set("alt", alt)
11653	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/dlpJobs")
11654	urls += "?" + c.urlParams_.Encode()
11655	req, _ := http.NewRequest("GET", urls, body)
11656	req.Header = reqHeaders
11657	googleapi.Expand(req.URL, map[string]string{
11658		"parent": c.parent,
11659	})
11660	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11661}
11662
11663// Do executes the "dlp.projects.dlpJobs.list" call.
11664// Exactly one of *GooglePrivacyDlpV2beta2ListDlpJobsResponse or error
11665// will be non-nil. Any non-2xx status code is an error. Response
11666// headers are in either
11667// *GooglePrivacyDlpV2beta2ListDlpJobsResponse.ServerResponse.Header or
11668// (if a response was returned at all) in
11669// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11670// whether the returned error was because http.StatusNotModified was
11671// returned.
11672func (c *ProjectsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListDlpJobsResponse, error) {
11673	gensupport.SetOptions(c.urlParams_, opts...)
11674	res, err := c.doRequest("json")
11675	if res != nil && res.StatusCode == http.StatusNotModified {
11676		if res.Body != nil {
11677			res.Body.Close()
11678		}
11679		return nil, &googleapi.Error{
11680			Code:   res.StatusCode,
11681			Header: res.Header,
11682		}
11683	}
11684	if err != nil {
11685		return nil, err
11686	}
11687	defer googleapi.CloseBody(res)
11688	if err := googleapi.CheckResponse(res); err != nil {
11689		return nil, err
11690	}
11691	ret := &GooglePrivacyDlpV2beta2ListDlpJobsResponse{
11692		ServerResponse: googleapi.ServerResponse{
11693			Header:         res.Header,
11694			HTTPStatusCode: res.StatusCode,
11695		},
11696	}
11697	target := &ret
11698	if err := gensupport.DecodeResponse(target, res); err != nil {
11699		return nil, err
11700	}
11701	return ret, nil
11702	// {
11703	//   "description": "Lists DlpJobs that match the specified filter in the request.",
11704	//   "flatPath": "v2beta2/projects/{projectsId}/dlpJobs",
11705	//   "httpMethod": "GET",
11706	//   "id": "dlp.projects.dlpJobs.list",
11707	//   "parameterOrder": [
11708	//     "parent"
11709	//   ],
11710	//   "parameters": {
11711	//     "filter": {
11712	//       "description": "Optional. Allows filtering.\n\nSupported syntax:\n\n* Filter expressions are made up of one or more restrictions.\n* Restrictions can be combined by `AND` or `OR` logical operators. A\nsequence of restrictions implicitly uses `AND`.\n* A restriction has the form of `\u003cfield\u003e \u003coperator\u003e \u003cvalue\u003e`.\n* Supported fields/values for inspect jobs:\n    - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED\n    - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY\n    - `trigger_name` - The resource name of the trigger that created job.\n* Supported fields for risk analysis jobs:\n    - `state` - RUNNING|CANCELED|FINISHED|FAILED\n* The operator must be `=` or `!=`.\n\nExamples:\n\n* inspected_storage = cloud_storage AND state = done\n* inspected_storage = cloud_storage OR inspected_storage = bigquery\n* inspected_storage = cloud_storage AND (state = done OR state = canceled)\n\nThe length of this field should be no more than 500 characters.",
11713	//       "location": "query",
11714	//       "type": "string"
11715	//     },
11716	//     "pageSize": {
11717	//       "description": "The standard list page size.",
11718	//       "format": "int32",
11719	//       "location": "query",
11720	//       "type": "integer"
11721	//     },
11722	//     "pageToken": {
11723	//       "description": "The standard list page token.",
11724	//       "location": "query",
11725	//       "type": "string"
11726	//     },
11727	//     "parent": {
11728	//       "description": "The parent resource name, for example projects/my-project-id.",
11729	//       "location": "path",
11730	//       "pattern": "^projects/[^/]+$",
11731	//       "required": true,
11732	//       "type": "string"
11733	//     },
11734	//     "type": {
11735	//       "description": "The type of job. Defaults to `DlpJobType.INSPECT`",
11736	//       "enum": [
11737	//         "DLP_JOB_TYPE_UNSPECIFIED",
11738	//         "INSPECT_JOB",
11739	//         "RISK_ANALYSIS_JOB"
11740	//       ],
11741	//       "location": "query",
11742	//       "type": "string"
11743	//     }
11744	//   },
11745	//   "path": "v2beta2/{+parent}/dlpJobs",
11746	//   "response": {
11747	//     "$ref": "GooglePrivacyDlpV2beta2ListDlpJobsResponse"
11748	//   },
11749	//   "scopes": [
11750	//     "https://www.googleapis.com/auth/cloud-platform"
11751	//   ]
11752	// }
11753
11754}
11755
11756// Pages invokes f for each page of results.
11757// A non-nil error returned from f will halt the iteration.
11758// The provided context supersedes any context provided to the Context method.
11759func (c *ProjectsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta2ListDlpJobsResponse) error) error {
11760	c.ctx_ = ctx
11761	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
11762	for {
11763		x, err := c.Do()
11764		if err != nil {
11765			return err
11766		}
11767		if err := f(x); err != nil {
11768			return err
11769		}
11770		if x.NextPageToken == "" {
11771			return nil
11772		}
11773		c.PageToken(x.NextPageToken)
11774	}
11775}
11776
11777// method id "dlp.projects.image.redact":
11778
11779type ProjectsImageRedactCall struct {
11780	s                                         *Service
11781	parent                                    string
11782	googleprivacydlpv2beta2redactimagerequest *GooglePrivacyDlpV2beta2RedactImageRequest
11783	urlParams_                                gensupport.URLParams
11784	ctx_                                      context.Context
11785	header_                                   http.Header
11786}
11787
11788// Redact: Redacts potentially sensitive info from an image.
11789// This method has limits on input size, processing time, and output
11790// size.
11791// [How-to guide](/dlp/docs/redacting-sensitive-data-images)
11792func (r *ProjectsImageService) Redact(parent string, googleprivacydlpv2beta2redactimagerequest *GooglePrivacyDlpV2beta2RedactImageRequest) *ProjectsImageRedactCall {
11793	c := &ProjectsImageRedactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11794	c.parent = parent
11795	c.googleprivacydlpv2beta2redactimagerequest = googleprivacydlpv2beta2redactimagerequest
11796	return c
11797}
11798
11799// Fields allows partial responses to be retrieved. See
11800// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11801// for more information.
11802func (c *ProjectsImageRedactCall) Fields(s ...googleapi.Field) *ProjectsImageRedactCall {
11803	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11804	return c
11805}
11806
11807// Context sets the context to be used in this call's Do method. Any
11808// pending HTTP request will be aborted if the provided context is
11809// canceled.
11810func (c *ProjectsImageRedactCall) Context(ctx context.Context) *ProjectsImageRedactCall {
11811	c.ctx_ = ctx
11812	return c
11813}
11814
11815// Header returns an http.Header that can be modified by the caller to
11816// add HTTP headers to the request.
11817func (c *ProjectsImageRedactCall) Header() http.Header {
11818	if c.header_ == nil {
11819		c.header_ = make(http.Header)
11820	}
11821	return c.header_
11822}
11823
11824func (c *ProjectsImageRedactCall) doRequest(alt string) (*http.Response, error) {
11825	reqHeaders := make(http.Header)
11826	for k, v := range c.header_ {
11827		reqHeaders[k] = v
11828	}
11829	reqHeaders.Set("User-Agent", c.s.userAgent())
11830	var body io.Reader = nil
11831	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2redactimagerequest)
11832	if err != nil {
11833		return nil, err
11834	}
11835	reqHeaders.Set("Content-Type", "application/json")
11836	c.urlParams_.Set("alt", alt)
11837	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/image:redact")
11838	urls += "?" + c.urlParams_.Encode()
11839	req, _ := http.NewRequest("POST", urls, body)
11840	req.Header = reqHeaders
11841	googleapi.Expand(req.URL, map[string]string{
11842		"parent": c.parent,
11843	})
11844	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11845}
11846
11847// Do executes the "dlp.projects.image.redact" call.
11848// Exactly one of *GooglePrivacyDlpV2beta2RedactImageResponse or error
11849// will be non-nil. Any non-2xx status code is an error. Response
11850// headers are in either
11851// *GooglePrivacyDlpV2beta2RedactImageResponse.ServerResponse.Header or
11852// (if a response was returned at all) in
11853// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11854// whether the returned error was because http.StatusNotModified was
11855// returned.
11856func (c *ProjectsImageRedactCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2RedactImageResponse, error) {
11857	gensupport.SetOptions(c.urlParams_, opts...)
11858	res, err := c.doRequest("json")
11859	if res != nil && res.StatusCode == http.StatusNotModified {
11860		if res.Body != nil {
11861			res.Body.Close()
11862		}
11863		return nil, &googleapi.Error{
11864			Code:   res.StatusCode,
11865			Header: res.Header,
11866		}
11867	}
11868	if err != nil {
11869		return nil, err
11870	}
11871	defer googleapi.CloseBody(res)
11872	if err := googleapi.CheckResponse(res); err != nil {
11873		return nil, err
11874	}
11875	ret := &GooglePrivacyDlpV2beta2RedactImageResponse{
11876		ServerResponse: googleapi.ServerResponse{
11877			Header:         res.Header,
11878			HTTPStatusCode: res.StatusCode,
11879		},
11880	}
11881	target := &ret
11882	if err := gensupport.DecodeResponse(target, res); err != nil {
11883		return nil, err
11884	}
11885	return ret, nil
11886	// {
11887	//   "description": "Redacts potentially sensitive info from an image.\nThis method has limits on input size, processing time, and output size.\n[How-to guide](/dlp/docs/redacting-sensitive-data-images)",
11888	//   "flatPath": "v2beta2/projects/{projectsId}/image:redact",
11889	//   "httpMethod": "POST",
11890	//   "id": "dlp.projects.image.redact",
11891	//   "parameterOrder": [
11892	//     "parent"
11893	//   ],
11894	//   "parameters": {
11895	//     "parent": {
11896	//       "description": "The parent resource name, for example projects/my-project-id.",
11897	//       "location": "path",
11898	//       "pattern": "^projects/[^/]+$",
11899	//       "required": true,
11900	//       "type": "string"
11901	//     }
11902	//   },
11903	//   "path": "v2beta2/{+parent}/image:redact",
11904	//   "request": {
11905	//     "$ref": "GooglePrivacyDlpV2beta2RedactImageRequest"
11906	//   },
11907	//   "response": {
11908	//     "$ref": "GooglePrivacyDlpV2beta2RedactImageResponse"
11909	//   },
11910	//   "scopes": [
11911	//     "https://www.googleapis.com/auth/cloud-platform"
11912	//   ]
11913	// }
11914
11915}
11916
11917// method id "dlp.projects.inspectTemplates.create":
11918
11919type ProjectsInspectTemplatesCreateCall struct {
11920	s                                                   *Service
11921	parent                                              string
11922	googleprivacydlpv2beta2createinspecttemplaterequest *GooglePrivacyDlpV2beta2CreateInspectTemplateRequest
11923	urlParams_                                          gensupport.URLParams
11924	ctx_                                                context.Context
11925	header_                                             http.Header
11926}
11927
11928// Create: Creates an inspect template for re-using frequently used
11929// configuration
11930// for inspecting content, images, and storage.
11931func (r *ProjectsInspectTemplatesService) Create(parent string, googleprivacydlpv2beta2createinspecttemplaterequest *GooglePrivacyDlpV2beta2CreateInspectTemplateRequest) *ProjectsInspectTemplatesCreateCall {
11932	c := &ProjectsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11933	c.parent = parent
11934	c.googleprivacydlpv2beta2createinspecttemplaterequest = googleprivacydlpv2beta2createinspecttemplaterequest
11935	return c
11936}
11937
11938// Fields allows partial responses to be retrieved. See
11939// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11940// for more information.
11941func (c *ProjectsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesCreateCall {
11942	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11943	return c
11944}
11945
11946// Context sets the context to be used in this call's Do method. Any
11947// pending HTTP request will be aborted if the provided context is
11948// canceled.
11949func (c *ProjectsInspectTemplatesCreateCall) Context(ctx context.Context) *ProjectsInspectTemplatesCreateCall {
11950	c.ctx_ = ctx
11951	return c
11952}
11953
11954// Header returns an http.Header that can be modified by the caller to
11955// add HTTP headers to the request.
11956func (c *ProjectsInspectTemplatesCreateCall) Header() http.Header {
11957	if c.header_ == nil {
11958		c.header_ = make(http.Header)
11959	}
11960	return c.header_
11961}
11962
11963func (c *ProjectsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
11964	reqHeaders := make(http.Header)
11965	for k, v := range c.header_ {
11966		reqHeaders[k] = v
11967	}
11968	reqHeaders.Set("User-Agent", c.s.userAgent())
11969	var body io.Reader = nil
11970	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2createinspecttemplaterequest)
11971	if err != nil {
11972		return nil, err
11973	}
11974	reqHeaders.Set("Content-Type", "application/json")
11975	c.urlParams_.Set("alt", alt)
11976	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/inspectTemplates")
11977	urls += "?" + c.urlParams_.Encode()
11978	req, _ := http.NewRequest("POST", urls, body)
11979	req.Header = reqHeaders
11980	googleapi.Expand(req.URL, map[string]string{
11981		"parent": c.parent,
11982	})
11983	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11984}
11985
11986// Do executes the "dlp.projects.inspectTemplates.create" call.
11987// Exactly one of *GooglePrivacyDlpV2beta2InspectTemplate or error will
11988// be non-nil. Any non-2xx status code is an error. Response headers are
11989// in either
11990// *GooglePrivacyDlpV2beta2InspectTemplate.ServerResponse.Header or (if
11991// a response was returned at all) in error.(*googleapi.Error).Header.
11992// Use googleapi.IsNotModified to check whether the returned error was
11993// because http.StatusNotModified was returned.
11994func (c *ProjectsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectTemplate, error) {
11995	gensupport.SetOptions(c.urlParams_, opts...)
11996	res, err := c.doRequest("json")
11997	if res != nil && res.StatusCode == http.StatusNotModified {
11998		if res.Body != nil {
11999			res.Body.Close()
12000		}
12001		return nil, &googleapi.Error{
12002			Code:   res.StatusCode,
12003			Header: res.Header,
12004		}
12005	}
12006	if err != nil {
12007		return nil, err
12008	}
12009	defer googleapi.CloseBody(res)
12010	if err := googleapi.CheckResponse(res); err != nil {
12011		return nil, err
12012	}
12013	ret := &GooglePrivacyDlpV2beta2InspectTemplate{
12014		ServerResponse: googleapi.ServerResponse{
12015			Header:         res.Header,
12016			HTTPStatusCode: res.StatusCode,
12017		},
12018	}
12019	target := &ret
12020	if err := gensupport.DecodeResponse(target, res); err != nil {
12021		return nil, err
12022	}
12023	return ret, nil
12024	// {
12025	//   "description": "Creates an inspect template for re-using frequently used configuration\nfor inspecting content, images, and storage.",
12026	//   "flatPath": "v2beta2/projects/{projectsId}/inspectTemplates",
12027	//   "httpMethod": "POST",
12028	//   "id": "dlp.projects.inspectTemplates.create",
12029	//   "parameterOrder": [
12030	//     "parent"
12031	//   ],
12032	//   "parameters": {
12033	//     "parent": {
12034	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
12035	//       "location": "path",
12036	//       "pattern": "^projects/[^/]+$",
12037	//       "required": true,
12038	//       "type": "string"
12039	//     }
12040	//   },
12041	//   "path": "v2beta2/{+parent}/inspectTemplates",
12042	//   "request": {
12043	//     "$ref": "GooglePrivacyDlpV2beta2CreateInspectTemplateRequest"
12044	//   },
12045	//   "response": {
12046	//     "$ref": "GooglePrivacyDlpV2beta2InspectTemplate"
12047	//   },
12048	//   "scopes": [
12049	//     "https://www.googleapis.com/auth/cloud-platform"
12050	//   ]
12051	// }
12052
12053}
12054
12055// method id "dlp.projects.inspectTemplates.delete":
12056
12057type ProjectsInspectTemplatesDeleteCall struct {
12058	s          *Service
12059	name       string
12060	urlParams_ gensupport.URLParams
12061	ctx_       context.Context
12062	header_    http.Header
12063}
12064
12065// Delete: Deletes inspect templates.
12066func (r *ProjectsInspectTemplatesService) Delete(name string) *ProjectsInspectTemplatesDeleteCall {
12067	c := &ProjectsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12068	c.name = name
12069	return c
12070}
12071
12072// Fields allows partial responses to be retrieved. See
12073// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12074// for more information.
12075func (c *ProjectsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesDeleteCall {
12076	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12077	return c
12078}
12079
12080// Context sets the context to be used in this call's Do method. Any
12081// pending HTTP request will be aborted if the provided context is
12082// canceled.
12083func (c *ProjectsInspectTemplatesDeleteCall) Context(ctx context.Context) *ProjectsInspectTemplatesDeleteCall {
12084	c.ctx_ = ctx
12085	return c
12086}
12087
12088// Header returns an http.Header that can be modified by the caller to
12089// add HTTP headers to the request.
12090func (c *ProjectsInspectTemplatesDeleteCall) Header() http.Header {
12091	if c.header_ == nil {
12092		c.header_ = make(http.Header)
12093	}
12094	return c.header_
12095}
12096
12097func (c *ProjectsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
12098	reqHeaders := make(http.Header)
12099	for k, v := range c.header_ {
12100		reqHeaders[k] = v
12101	}
12102	reqHeaders.Set("User-Agent", c.s.userAgent())
12103	var body io.Reader = nil
12104	c.urlParams_.Set("alt", alt)
12105	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
12106	urls += "?" + c.urlParams_.Encode()
12107	req, _ := http.NewRequest("DELETE", urls, body)
12108	req.Header = reqHeaders
12109	googleapi.Expand(req.URL, map[string]string{
12110		"name": c.name,
12111	})
12112	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12113}
12114
12115// Do executes the "dlp.projects.inspectTemplates.delete" call.
12116// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
12117// non-2xx status code is an error. Response headers are in either
12118// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
12119// returned at all) in error.(*googleapi.Error).Header. Use
12120// googleapi.IsNotModified to check whether the returned error was
12121// because http.StatusNotModified was returned.
12122func (c *ProjectsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
12123	gensupport.SetOptions(c.urlParams_, opts...)
12124	res, err := c.doRequest("json")
12125	if res != nil && res.StatusCode == http.StatusNotModified {
12126		if res.Body != nil {
12127			res.Body.Close()
12128		}
12129		return nil, &googleapi.Error{
12130			Code:   res.StatusCode,
12131			Header: res.Header,
12132		}
12133	}
12134	if err != nil {
12135		return nil, err
12136	}
12137	defer googleapi.CloseBody(res)
12138	if err := googleapi.CheckResponse(res); err != nil {
12139		return nil, err
12140	}
12141	ret := &GoogleProtobufEmpty{
12142		ServerResponse: googleapi.ServerResponse{
12143			Header:         res.Header,
12144			HTTPStatusCode: res.StatusCode,
12145		},
12146	}
12147	target := &ret
12148	if err := gensupport.DecodeResponse(target, res); err != nil {
12149		return nil, err
12150	}
12151	return ret, nil
12152	// {
12153	//   "description": "Deletes inspect templates.",
12154	//   "flatPath": "v2beta2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}",
12155	//   "httpMethod": "DELETE",
12156	//   "id": "dlp.projects.inspectTemplates.delete",
12157	//   "parameterOrder": [
12158	//     "name"
12159	//   ],
12160	//   "parameters": {
12161	//     "name": {
12162	//       "description": "Resource name of the organization and inspectTemplate to be deleted, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
12163	//       "location": "path",
12164	//       "pattern": "^projects/[^/]+/inspectTemplates/[^/]+$",
12165	//       "required": true,
12166	//       "type": "string"
12167	//     }
12168	//   },
12169	//   "path": "v2beta2/{+name}",
12170	//   "response": {
12171	//     "$ref": "GoogleProtobufEmpty"
12172	//   },
12173	//   "scopes": [
12174	//     "https://www.googleapis.com/auth/cloud-platform"
12175	//   ]
12176	// }
12177
12178}
12179
12180// method id "dlp.projects.inspectTemplates.get":
12181
12182type ProjectsInspectTemplatesGetCall struct {
12183	s            *Service
12184	name         string
12185	urlParams_   gensupport.URLParams
12186	ifNoneMatch_ string
12187	ctx_         context.Context
12188	header_      http.Header
12189}
12190
12191// Get: Gets an inspect template.
12192func (r *ProjectsInspectTemplatesService) Get(name string) *ProjectsInspectTemplatesGetCall {
12193	c := &ProjectsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12194	c.name = name
12195	return c
12196}
12197
12198// Fields allows partial responses to be retrieved. See
12199// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12200// for more information.
12201func (c *ProjectsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesGetCall {
12202	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12203	return c
12204}
12205
12206// IfNoneMatch sets the optional parameter which makes the operation
12207// fail if the object's ETag matches the given value. This is useful for
12208// getting updates only after the object has changed since the last
12209// request. Use googleapi.IsNotModified to check whether the response
12210// error from Do is the result of In-None-Match.
12211func (c *ProjectsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsInspectTemplatesGetCall {
12212	c.ifNoneMatch_ = entityTag
12213	return c
12214}
12215
12216// Context sets the context to be used in this call's Do method. Any
12217// pending HTTP request will be aborted if the provided context is
12218// canceled.
12219func (c *ProjectsInspectTemplatesGetCall) Context(ctx context.Context) *ProjectsInspectTemplatesGetCall {
12220	c.ctx_ = ctx
12221	return c
12222}
12223
12224// Header returns an http.Header that can be modified by the caller to
12225// add HTTP headers to the request.
12226func (c *ProjectsInspectTemplatesGetCall) Header() http.Header {
12227	if c.header_ == nil {
12228		c.header_ = make(http.Header)
12229	}
12230	return c.header_
12231}
12232
12233func (c *ProjectsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
12234	reqHeaders := make(http.Header)
12235	for k, v := range c.header_ {
12236		reqHeaders[k] = v
12237	}
12238	reqHeaders.Set("User-Agent", c.s.userAgent())
12239	if c.ifNoneMatch_ != "" {
12240		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12241	}
12242	var body io.Reader = nil
12243	c.urlParams_.Set("alt", alt)
12244	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
12245	urls += "?" + c.urlParams_.Encode()
12246	req, _ := http.NewRequest("GET", urls, body)
12247	req.Header = reqHeaders
12248	googleapi.Expand(req.URL, map[string]string{
12249		"name": c.name,
12250	})
12251	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12252}
12253
12254// Do executes the "dlp.projects.inspectTemplates.get" call.
12255// Exactly one of *GooglePrivacyDlpV2beta2InspectTemplate or error will
12256// be non-nil. Any non-2xx status code is an error. Response headers are
12257// in either
12258// *GooglePrivacyDlpV2beta2InspectTemplate.ServerResponse.Header or (if
12259// a response was returned at all) in error.(*googleapi.Error).Header.
12260// Use googleapi.IsNotModified to check whether the returned error was
12261// because http.StatusNotModified was returned.
12262func (c *ProjectsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectTemplate, error) {
12263	gensupport.SetOptions(c.urlParams_, opts...)
12264	res, err := c.doRequest("json")
12265	if res != nil && res.StatusCode == http.StatusNotModified {
12266		if res.Body != nil {
12267			res.Body.Close()
12268		}
12269		return nil, &googleapi.Error{
12270			Code:   res.StatusCode,
12271			Header: res.Header,
12272		}
12273	}
12274	if err != nil {
12275		return nil, err
12276	}
12277	defer googleapi.CloseBody(res)
12278	if err := googleapi.CheckResponse(res); err != nil {
12279		return nil, err
12280	}
12281	ret := &GooglePrivacyDlpV2beta2InspectTemplate{
12282		ServerResponse: googleapi.ServerResponse{
12283			Header:         res.Header,
12284			HTTPStatusCode: res.StatusCode,
12285		},
12286	}
12287	target := &ret
12288	if err := gensupport.DecodeResponse(target, res); err != nil {
12289		return nil, err
12290	}
12291	return ret, nil
12292	// {
12293	//   "description": "Gets an inspect template.",
12294	//   "flatPath": "v2beta2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}",
12295	//   "httpMethod": "GET",
12296	//   "id": "dlp.projects.inspectTemplates.get",
12297	//   "parameterOrder": [
12298	//     "name"
12299	//   ],
12300	//   "parameters": {
12301	//     "name": {
12302	//       "description": "Resource name of the organization and inspectTemplate to be read, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
12303	//       "location": "path",
12304	//       "pattern": "^projects/[^/]+/inspectTemplates/[^/]+$",
12305	//       "required": true,
12306	//       "type": "string"
12307	//     }
12308	//   },
12309	//   "path": "v2beta2/{+name}",
12310	//   "response": {
12311	//     "$ref": "GooglePrivacyDlpV2beta2InspectTemplate"
12312	//   },
12313	//   "scopes": [
12314	//     "https://www.googleapis.com/auth/cloud-platform"
12315	//   ]
12316	// }
12317
12318}
12319
12320// method id "dlp.projects.inspectTemplates.list":
12321
12322type ProjectsInspectTemplatesListCall struct {
12323	s            *Service
12324	parent       string
12325	urlParams_   gensupport.URLParams
12326	ifNoneMatch_ string
12327	ctx_         context.Context
12328	header_      http.Header
12329}
12330
12331// List: Lists inspect templates.
12332func (r *ProjectsInspectTemplatesService) List(parent string) *ProjectsInspectTemplatesListCall {
12333	c := &ProjectsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12334	c.parent = parent
12335	return c
12336}
12337
12338// PageSize sets the optional parameter "pageSize": Optional size of the
12339// page, can be limited by server. If zero server returns
12340// a page of max size 100.
12341func (c *ProjectsInspectTemplatesListCall) PageSize(pageSize int64) *ProjectsInspectTemplatesListCall {
12342	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12343	return c
12344}
12345
12346// PageToken sets the optional parameter "pageToken": Optional page
12347// token to continue retrieval. Comes from previous call
12348// to `ListInspectTemplates`.
12349func (c *ProjectsInspectTemplatesListCall) PageToken(pageToken string) *ProjectsInspectTemplatesListCall {
12350	c.urlParams_.Set("pageToken", pageToken)
12351	return c
12352}
12353
12354// Fields allows partial responses to be retrieved. See
12355// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12356// for more information.
12357func (c *ProjectsInspectTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesListCall {
12358	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12359	return c
12360}
12361
12362// IfNoneMatch sets the optional parameter which makes the operation
12363// fail if the object's ETag matches the given value. This is useful for
12364// getting updates only after the object has changed since the last
12365// request. Use googleapi.IsNotModified to check whether the response
12366// error from Do is the result of In-None-Match.
12367func (c *ProjectsInspectTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsInspectTemplatesListCall {
12368	c.ifNoneMatch_ = entityTag
12369	return c
12370}
12371
12372// Context sets the context to be used in this call's Do method. Any
12373// pending HTTP request will be aborted if the provided context is
12374// canceled.
12375func (c *ProjectsInspectTemplatesListCall) Context(ctx context.Context) *ProjectsInspectTemplatesListCall {
12376	c.ctx_ = ctx
12377	return c
12378}
12379
12380// Header returns an http.Header that can be modified by the caller to
12381// add HTTP headers to the request.
12382func (c *ProjectsInspectTemplatesListCall) Header() http.Header {
12383	if c.header_ == nil {
12384		c.header_ = make(http.Header)
12385	}
12386	return c.header_
12387}
12388
12389func (c *ProjectsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
12390	reqHeaders := make(http.Header)
12391	for k, v := range c.header_ {
12392		reqHeaders[k] = v
12393	}
12394	reqHeaders.Set("User-Agent", c.s.userAgent())
12395	if c.ifNoneMatch_ != "" {
12396		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12397	}
12398	var body io.Reader = nil
12399	c.urlParams_.Set("alt", alt)
12400	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/inspectTemplates")
12401	urls += "?" + c.urlParams_.Encode()
12402	req, _ := http.NewRequest("GET", urls, body)
12403	req.Header = reqHeaders
12404	googleapi.Expand(req.URL, map[string]string{
12405		"parent": c.parent,
12406	})
12407	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12408}
12409
12410// Do executes the "dlp.projects.inspectTemplates.list" call.
12411// Exactly one of *GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
12412// or error will be non-nil. Any non-2xx status code is an error.
12413// Response headers are in either
12414// *GooglePrivacyDlpV2beta2ListInspectTemplatesResponse.ServerResponse.He
12415// ader or (if a response was returned at all) in
12416// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12417// whether the returned error was because http.StatusNotModified was
12418// returned.
12419func (c *ProjectsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListInspectTemplatesResponse, error) {
12420	gensupport.SetOptions(c.urlParams_, opts...)
12421	res, err := c.doRequest("json")
12422	if res != nil && res.StatusCode == http.StatusNotModified {
12423		if res.Body != nil {
12424			res.Body.Close()
12425		}
12426		return nil, &googleapi.Error{
12427			Code:   res.StatusCode,
12428			Header: res.Header,
12429		}
12430	}
12431	if err != nil {
12432		return nil, err
12433	}
12434	defer googleapi.CloseBody(res)
12435	if err := googleapi.CheckResponse(res); err != nil {
12436		return nil, err
12437	}
12438	ret := &GooglePrivacyDlpV2beta2ListInspectTemplatesResponse{
12439		ServerResponse: googleapi.ServerResponse{
12440			Header:         res.Header,
12441			HTTPStatusCode: res.StatusCode,
12442		},
12443	}
12444	target := &ret
12445	if err := gensupport.DecodeResponse(target, res); err != nil {
12446		return nil, err
12447	}
12448	return ret, nil
12449	// {
12450	//   "description": "Lists inspect templates.",
12451	//   "flatPath": "v2beta2/projects/{projectsId}/inspectTemplates",
12452	//   "httpMethod": "GET",
12453	//   "id": "dlp.projects.inspectTemplates.list",
12454	//   "parameterOrder": [
12455	//     "parent"
12456	//   ],
12457	//   "parameters": {
12458	//     "pageSize": {
12459	//       "description": "Optional size of the page, can be limited by server. If zero server returns\na page of max size 100.",
12460	//       "format": "int32",
12461	//       "location": "query",
12462	//       "type": "integer"
12463	//     },
12464	//     "pageToken": {
12465	//       "description": "Optional page token to continue retrieval. Comes from previous call\nto `ListInspectTemplates`.",
12466	//       "location": "query",
12467	//       "type": "string"
12468	//     },
12469	//     "parent": {
12470	//       "description": "The parent resource name, for example projects/my-project-id or\norganizations/my-org-id.",
12471	//       "location": "path",
12472	//       "pattern": "^projects/[^/]+$",
12473	//       "required": true,
12474	//       "type": "string"
12475	//     }
12476	//   },
12477	//   "path": "v2beta2/{+parent}/inspectTemplates",
12478	//   "response": {
12479	//     "$ref": "GooglePrivacyDlpV2beta2ListInspectTemplatesResponse"
12480	//   },
12481	//   "scopes": [
12482	//     "https://www.googleapis.com/auth/cloud-platform"
12483	//   ]
12484	// }
12485
12486}
12487
12488// Pages invokes f for each page of results.
12489// A non-nil error returned from f will halt the iteration.
12490// The provided context supersedes any context provided to the Context method.
12491func (c *ProjectsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta2ListInspectTemplatesResponse) error) error {
12492	c.ctx_ = ctx
12493	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
12494	for {
12495		x, err := c.Do()
12496		if err != nil {
12497			return err
12498		}
12499		if err := f(x); err != nil {
12500			return err
12501		}
12502		if x.NextPageToken == "" {
12503			return nil
12504		}
12505		c.PageToken(x.NextPageToken)
12506	}
12507}
12508
12509// method id "dlp.projects.inspectTemplates.patch":
12510
12511type ProjectsInspectTemplatesPatchCall struct {
12512	s                                                   *Service
12513	name                                                string
12514	googleprivacydlpv2beta2updateinspecttemplaterequest *GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest
12515	urlParams_                                          gensupport.URLParams
12516	ctx_                                                context.Context
12517	header_                                             http.Header
12518}
12519
12520// Patch: Updates the inspect template.
12521func (r *ProjectsInspectTemplatesService) Patch(name string, googleprivacydlpv2beta2updateinspecttemplaterequest *GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest) *ProjectsInspectTemplatesPatchCall {
12522	c := &ProjectsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12523	c.name = name
12524	c.googleprivacydlpv2beta2updateinspecttemplaterequest = googleprivacydlpv2beta2updateinspecttemplaterequest
12525	return c
12526}
12527
12528// Fields allows partial responses to be retrieved. See
12529// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12530// for more information.
12531func (c *ProjectsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesPatchCall {
12532	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12533	return c
12534}
12535
12536// Context sets the context to be used in this call's Do method. Any
12537// pending HTTP request will be aborted if the provided context is
12538// canceled.
12539func (c *ProjectsInspectTemplatesPatchCall) Context(ctx context.Context) *ProjectsInspectTemplatesPatchCall {
12540	c.ctx_ = ctx
12541	return c
12542}
12543
12544// Header returns an http.Header that can be modified by the caller to
12545// add HTTP headers to the request.
12546func (c *ProjectsInspectTemplatesPatchCall) Header() http.Header {
12547	if c.header_ == nil {
12548		c.header_ = make(http.Header)
12549	}
12550	return c.header_
12551}
12552
12553func (c *ProjectsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
12554	reqHeaders := make(http.Header)
12555	for k, v := range c.header_ {
12556		reqHeaders[k] = v
12557	}
12558	reqHeaders.Set("User-Agent", c.s.userAgent())
12559	var body io.Reader = nil
12560	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2updateinspecttemplaterequest)
12561	if err != nil {
12562		return nil, err
12563	}
12564	reqHeaders.Set("Content-Type", "application/json")
12565	c.urlParams_.Set("alt", alt)
12566	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
12567	urls += "?" + c.urlParams_.Encode()
12568	req, _ := http.NewRequest("PATCH", urls, body)
12569	req.Header = reqHeaders
12570	googleapi.Expand(req.URL, map[string]string{
12571		"name": c.name,
12572	})
12573	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12574}
12575
12576// Do executes the "dlp.projects.inspectTemplates.patch" call.
12577// Exactly one of *GooglePrivacyDlpV2beta2InspectTemplate or error will
12578// be non-nil. Any non-2xx status code is an error. Response headers are
12579// in either
12580// *GooglePrivacyDlpV2beta2InspectTemplate.ServerResponse.Header or (if
12581// a response was returned at all) in error.(*googleapi.Error).Header.
12582// Use googleapi.IsNotModified to check whether the returned error was
12583// because http.StatusNotModified was returned.
12584func (c *ProjectsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2InspectTemplate, error) {
12585	gensupport.SetOptions(c.urlParams_, opts...)
12586	res, err := c.doRequest("json")
12587	if res != nil && res.StatusCode == http.StatusNotModified {
12588		if res.Body != nil {
12589			res.Body.Close()
12590		}
12591		return nil, &googleapi.Error{
12592			Code:   res.StatusCode,
12593			Header: res.Header,
12594		}
12595	}
12596	if err != nil {
12597		return nil, err
12598	}
12599	defer googleapi.CloseBody(res)
12600	if err := googleapi.CheckResponse(res); err != nil {
12601		return nil, err
12602	}
12603	ret := &GooglePrivacyDlpV2beta2InspectTemplate{
12604		ServerResponse: googleapi.ServerResponse{
12605			Header:         res.Header,
12606			HTTPStatusCode: res.StatusCode,
12607		},
12608	}
12609	target := &ret
12610	if err := gensupport.DecodeResponse(target, res); err != nil {
12611		return nil, err
12612	}
12613	return ret, nil
12614	// {
12615	//   "description": "Updates the inspect template.",
12616	//   "flatPath": "v2beta2/projects/{projectsId}/inspectTemplates/{inspectTemplatesId}",
12617	//   "httpMethod": "PATCH",
12618	//   "id": "dlp.projects.inspectTemplates.patch",
12619	//   "parameterOrder": [
12620	//     "name"
12621	//   ],
12622	//   "parameters": {
12623	//     "name": {
12624	//       "description": "Resource name of organization and inspectTemplate to be updated, for\nexample `organizations/433245324/inspectTemplates/432452342` or\nprojects/project-id/inspectTemplates/432452342.",
12625	//       "location": "path",
12626	//       "pattern": "^projects/[^/]+/inspectTemplates/[^/]+$",
12627	//       "required": true,
12628	//       "type": "string"
12629	//     }
12630	//   },
12631	//   "path": "v2beta2/{+name}",
12632	//   "request": {
12633	//     "$ref": "GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest"
12634	//   },
12635	//   "response": {
12636	//     "$ref": "GooglePrivacyDlpV2beta2InspectTemplate"
12637	//   },
12638	//   "scopes": [
12639	//     "https://www.googleapis.com/auth/cloud-platform"
12640	//   ]
12641	// }
12642
12643}
12644
12645// method id "dlp.projects.jobTriggers.create":
12646
12647type ProjectsJobTriggersCreateCall struct {
12648	s                                              *Service
12649	parent                                         string
12650	googleprivacydlpv2beta2createjobtriggerrequest *GooglePrivacyDlpV2beta2CreateJobTriggerRequest
12651	urlParams_                                     gensupport.URLParams
12652	ctx_                                           context.Context
12653	header_                                        http.Header
12654}
12655
12656// Create: Creates a job to run DLP actions such as scanning storage for
12657// sensitive
12658// information on a set schedule.
12659func (r *ProjectsJobTriggersService) Create(parent string, googleprivacydlpv2beta2createjobtriggerrequest *GooglePrivacyDlpV2beta2CreateJobTriggerRequest) *ProjectsJobTriggersCreateCall {
12660	c := &ProjectsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12661	c.parent = parent
12662	c.googleprivacydlpv2beta2createjobtriggerrequest = googleprivacydlpv2beta2createjobtriggerrequest
12663	return c
12664}
12665
12666// Fields allows partial responses to be retrieved. See
12667// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12668// for more information.
12669func (c *ProjectsJobTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersCreateCall {
12670	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12671	return c
12672}
12673
12674// Context sets the context to be used in this call's Do method. Any
12675// pending HTTP request will be aborted if the provided context is
12676// canceled.
12677func (c *ProjectsJobTriggersCreateCall) Context(ctx context.Context) *ProjectsJobTriggersCreateCall {
12678	c.ctx_ = ctx
12679	return c
12680}
12681
12682// Header returns an http.Header that can be modified by the caller to
12683// add HTTP headers to the request.
12684func (c *ProjectsJobTriggersCreateCall) Header() http.Header {
12685	if c.header_ == nil {
12686		c.header_ = make(http.Header)
12687	}
12688	return c.header_
12689}
12690
12691func (c *ProjectsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
12692	reqHeaders := make(http.Header)
12693	for k, v := range c.header_ {
12694		reqHeaders[k] = v
12695	}
12696	reqHeaders.Set("User-Agent", c.s.userAgent())
12697	var body io.Reader = nil
12698	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2createjobtriggerrequest)
12699	if err != nil {
12700		return nil, err
12701	}
12702	reqHeaders.Set("Content-Type", "application/json")
12703	c.urlParams_.Set("alt", alt)
12704	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/jobTriggers")
12705	urls += "?" + c.urlParams_.Encode()
12706	req, _ := http.NewRequest("POST", urls, body)
12707	req.Header = reqHeaders
12708	googleapi.Expand(req.URL, map[string]string{
12709		"parent": c.parent,
12710	})
12711	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12712}
12713
12714// Do executes the "dlp.projects.jobTriggers.create" call.
12715// Exactly one of *GooglePrivacyDlpV2beta2JobTrigger or error will be
12716// non-nil. Any non-2xx status code is an error. Response headers are in
12717// either *GooglePrivacyDlpV2beta2JobTrigger.ServerResponse.Header or
12718// (if a response was returned at all) in
12719// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12720// whether the returned error was because http.StatusNotModified was
12721// returned.
12722func (c *ProjectsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2JobTrigger, error) {
12723	gensupport.SetOptions(c.urlParams_, opts...)
12724	res, err := c.doRequest("json")
12725	if res != nil && res.StatusCode == http.StatusNotModified {
12726		if res.Body != nil {
12727			res.Body.Close()
12728		}
12729		return nil, &googleapi.Error{
12730			Code:   res.StatusCode,
12731			Header: res.Header,
12732		}
12733	}
12734	if err != nil {
12735		return nil, err
12736	}
12737	defer googleapi.CloseBody(res)
12738	if err := googleapi.CheckResponse(res); err != nil {
12739		return nil, err
12740	}
12741	ret := &GooglePrivacyDlpV2beta2JobTrigger{
12742		ServerResponse: googleapi.ServerResponse{
12743			Header:         res.Header,
12744			HTTPStatusCode: res.StatusCode,
12745		},
12746	}
12747	target := &ret
12748	if err := gensupport.DecodeResponse(target, res); err != nil {
12749		return nil, err
12750	}
12751	return ret, nil
12752	// {
12753	//   "description": "Creates a job to run DLP actions such as scanning storage for sensitive\ninformation on a set schedule.",
12754	//   "flatPath": "v2beta2/projects/{projectsId}/jobTriggers",
12755	//   "httpMethod": "POST",
12756	//   "id": "dlp.projects.jobTriggers.create",
12757	//   "parameterOrder": [
12758	//     "parent"
12759	//   ],
12760	//   "parameters": {
12761	//     "parent": {
12762	//       "description": "The parent resource name, for example projects/my-project-id.",
12763	//       "location": "path",
12764	//       "pattern": "^projects/[^/]+$",
12765	//       "required": true,
12766	//       "type": "string"
12767	//     }
12768	//   },
12769	//   "path": "v2beta2/{+parent}/jobTriggers",
12770	//   "request": {
12771	//     "$ref": "GooglePrivacyDlpV2beta2CreateJobTriggerRequest"
12772	//   },
12773	//   "response": {
12774	//     "$ref": "GooglePrivacyDlpV2beta2JobTrigger"
12775	//   },
12776	//   "scopes": [
12777	//     "https://www.googleapis.com/auth/cloud-platform"
12778	//   ]
12779	// }
12780
12781}
12782
12783// method id "dlp.projects.jobTriggers.delete":
12784
12785type ProjectsJobTriggersDeleteCall struct {
12786	s          *Service
12787	name       string
12788	urlParams_ gensupport.URLParams
12789	ctx_       context.Context
12790	header_    http.Header
12791}
12792
12793// Delete: Deletes a job trigger.
12794func (r *ProjectsJobTriggersService) Delete(name string) *ProjectsJobTriggersDeleteCall {
12795	c := &ProjectsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12796	c.name = name
12797	return c
12798}
12799
12800// Fields allows partial responses to be retrieved. See
12801// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12802// for more information.
12803func (c *ProjectsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersDeleteCall {
12804	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12805	return c
12806}
12807
12808// Context sets the context to be used in this call's Do method. Any
12809// pending HTTP request will be aborted if the provided context is
12810// canceled.
12811func (c *ProjectsJobTriggersDeleteCall) Context(ctx context.Context) *ProjectsJobTriggersDeleteCall {
12812	c.ctx_ = ctx
12813	return c
12814}
12815
12816// Header returns an http.Header that can be modified by the caller to
12817// add HTTP headers to the request.
12818func (c *ProjectsJobTriggersDeleteCall) Header() http.Header {
12819	if c.header_ == nil {
12820		c.header_ = make(http.Header)
12821	}
12822	return c.header_
12823}
12824
12825func (c *ProjectsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
12826	reqHeaders := make(http.Header)
12827	for k, v := range c.header_ {
12828		reqHeaders[k] = v
12829	}
12830	reqHeaders.Set("User-Agent", c.s.userAgent())
12831	var body io.Reader = nil
12832	c.urlParams_.Set("alt", alt)
12833	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
12834	urls += "?" + c.urlParams_.Encode()
12835	req, _ := http.NewRequest("DELETE", urls, body)
12836	req.Header = reqHeaders
12837	googleapi.Expand(req.URL, map[string]string{
12838		"name": c.name,
12839	})
12840	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12841}
12842
12843// Do executes the "dlp.projects.jobTriggers.delete" call.
12844// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
12845// non-2xx status code is an error. Response headers are in either
12846// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
12847// returned at all) in error.(*googleapi.Error).Header. Use
12848// googleapi.IsNotModified to check whether the returned error was
12849// because http.StatusNotModified was returned.
12850func (c *ProjectsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
12851	gensupport.SetOptions(c.urlParams_, opts...)
12852	res, err := c.doRequest("json")
12853	if res != nil && res.StatusCode == http.StatusNotModified {
12854		if res.Body != nil {
12855			res.Body.Close()
12856		}
12857		return nil, &googleapi.Error{
12858			Code:   res.StatusCode,
12859			Header: res.Header,
12860		}
12861	}
12862	if err != nil {
12863		return nil, err
12864	}
12865	defer googleapi.CloseBody(res)
12866	if err := googleapi.CheckResponse(res); err != nil {
12867		return nil, err
12868	}
12869	ret := &GoogleProtobufEmpty{
12870		ServerResponse: googleapi.ServerResponse{
12871			Header:         res.Header,
12872			HTTPStatusCode: res.StatusCode,
12873		},
12874	}
12875	target := &ret
12876	if err := gensupport.DecodeResponse(target, res); err != nil {
12877		return nil, err
12878	}
12879	return ret, nil
12880	// {
12881	//   "description": "Deletes a job trigger.",
12882	//   "flatPath": "v2beta2/projects/{projectsId}/jobTriggers/{jobTriggersId}",
12883	//   "httpMethod": "DELETE",
12884	//   "id": "dlp.projects.jobTriggers.delete",
12885	//   "parameterOrder": [
12886	//     "name"
12887	//   ],
12888	//   "parameters": {
12889	//     "name": {
12890	//       "description": "Resource name of the project and the triggeredJob, for example\n`projects/dlp-test-project/jobTriggers/53234423`.",
12891	//       "location": "path",
12892	//       "pattern": "^projects/[^/]+/jobTriggers/[^/]+$",
12893	//       "required": true,
12894	//       "type": "string"
12895	//     }
12896	//   },
12897	//   "path": "v2beta2/{+name}",
12898	//   "response": {
12899	//     "$ref": "GoogleProtobufEmpty"
12900	//   },
12901	//   "scopes": [
12902	//     "https://www.googleapis.com/auth/cloud-platform"
12903	//   ]
12904	// }
12905
12906}
12907
12908// method id "dlp.projects.jobTriggers.get":
12909
12910type ProjectsJobTriggersGetCall struct {
12911	s            *Service
12912	name         string
12913	urlParams_   gensupport.URLParams
12914	ifNoneMatch_ string
12915	ctx_         context.Context
12916	header_      http.Header
12917}
12918
12919// Get: Gets a job trigger.
12920func (r *ProjectsJobTriggersService) Get(name string) *ProjectsJobTriggersGetCall {
12921	c := &ProjectsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12922	c.name = name
12923	return c
12924}
12925
12926// Fields allows partial responses to be retrieved. See
12927// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12928// for more information.
12929func (c *ProjectsJobTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersGetCall {
12930	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12931	return c
12932}
12933
12934// IfNoneMatch sets the optional parameter which makes the operation
12935// fail if the object's ETag matches the given value. This is useful for
12936// getting updates only after the object has changed since the last
12937// request. Use googleapi.IsNotModified to check whether the response
12938// error from Do is the result of In-None-Match.
12939func (c *ProjectsJobTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsJobTriggersGetCall {
12940	c.ifNoneMatch_ = entityTag
12941	return c
12942}
12943
12944// Context sets the context to be used in this call's Do method. Any
12945// pending HTTP request will be aborted if the provided context is
12946// canceled.
12947func (c *ProjectsJobTriggersGetCall) Context(ctx context.Context) *ProjectsJobTriggersGetCall {
12948	c.ctx_ = ctx
12949	return c
12950}
12951
12952// Header returns an http.Header that can be modified by the caller to
12953// add HTTP headers to the request.
12954func (c *ProjectsJobTriggersGetCall) Header() http.Header {
12955	if c.header_ == nil {
12956		c.header_ = make(http.Header)
12957	}
12958	return c.header_
12959}
12960
12961func (c *ProjectsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
12962	reqHeaders := make(http.Header)
12963	for k, v := range c.header_ {
12964		reqHeaders[k] = v
12965	}
12966	reqHeaders.Set("User-Agent", c.s.userAgent())
12967	if c.ifNoneMatch_ != "" {
12968		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12969	}
12970	var body io.Reader = nil
12971	c.urlParams_.Set("alt", alt)
12972	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
12973	urls += "?" + c.urlParams_.Encode()
12974	req, _ := http.NewRequest("GET", urls, body)
12975	req.Header = reqHeaders
12976	googleapi.Expand(req.URL, map[string]string{
12977		"name": c.name,
12978	})
12979	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12980}
12981
12982// Do executes the "dlp.projects.jobTriggers.get" call.
12983// Exactly one of *GooglePrivacyDlpV2beta2JobTrigger or error will be
12984// non-nil. Any non-2xx status code is an error. Response headers are in
12985// either *GooglePrivacyDlpV2beta2JobTrigger.ServerResponse.Header or
12986// (if a response was returned at all) in
12987// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12988// whether the returned error was because http.StatusNotModified was
12989// returned.
12990func (c *ProjectsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2JobTrigger, error) {
12991	gensupport.SetOptions(c.urlParams_, opts...)
12992	res, err := c.doRequest("json")
12993	if res != nil && res.StatusCode == http.StatusNotModified {
12994		if res.Body != nil {
12995			res.Body.Close()
12996		}
12997		return nil, &googleapi.Error{
12998			Code:   res.StatusCode,
12999			Header: res.Header,
13000		}
13001	}
13002	if err != nil {
13003		return nil, err
13004	}
13005	defer googleapi.CloseBody(res)
13006	if err := googleapi.CheckResponse(res); err != nil {
13007		return nil, err
13008	}
13009	ret := &GooglePrivacyDlpV2beta2JobTrigger{
13010		ServerResponse: googleapi.ServerResponse{
13011			Header:         res.Header,
13012			HTTPStatusCode: res.StatusCode,
13013		},
13014	}
13015	target := &ret
13016	if err := gensupport.DecodeResponse(target, res); err != nil {
13017		return nil, err
13018	}
13019	return ret, nil
13020	// {
13021	//   "description": "Gets a job trigger.",
13022	//   "flatPath": "v2beta2/projects/{projectsId}/jobTriggers/{jobTriggersId}",
13023	//   "httpMethod": "GET",
13024	//   "id": "dlp.projects.jobTriggers.get",
13025	//   "parameterOrder": [
13026	//     "name"
13027	//   ],
13028	//   "parameters": {
13029	//     "name": {
13030	//       "description": "Resource name of the project and the triggeredJob, for example\n`projects/dlp-test-project/jobTriggers/53234423`.",
13031	//       "location": "path",
13032	//       "pattern": "^projects/[^/]+/jobTriggers/[^/]+$",
13033	//       "required": true,
13034	//       "type": "string"
13035	//     }
13036	//   },
13037	//   "path": "v2beta2/{+name}",
13038	//   "response": {
13039	//     "$ref": "GooglePrivacyDlpV2beta2JobTrigger"
13040	//   },
13041	//   "scopes": [
13042	//     "https://www.googleapis.com/auth/cloud-platform"
13043	//   ]
13044	// }
13045
13046}
13047
13048// method id "dlp.projects.jobTriggers.list":
13049
13050type ProjectsJobTriggersListCall struct {
13051	s            *Service
13052	parent       string
13053	urlParams_   gensupport.URLParams
13054	ifNoneMatch_ string
13055	ctx_         context.Context
13056	header_      http.Header
13057}
13058
13059// List: Lists job triggers.
13060func (r *ProjectsJobTriggersService) List(parent string) *ProjectsJobTriggersListCall {
13061	c := &ProjectsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13062	c.parent = parent
13063	return c
13064}
13065
13066// OrderBy sets the optional parameter "orderBy": Optional comma
13067// separated list of triggeredJob fields to order by,
13068// followed by 'asc/desc' postfix, i.e.
13069// "create_time asc,name desc,schedule_mode asc". This list
13070// is
13071// case-insensitive.
13072//
13073// Example: "name asc,schedule_mode desc, status desc"
13074//
13075// Supported filters keys and values are:
13076//
13077// - `create_time`: corresponds to time the triggeredJob was created.
13078// - `update_time`: corresponds to time the triggeredJob was last
13079// updated.
13080// - `name`: corresponds to JobTrigger's display name.
13081// - `status`: corresponds to the triggeredJob status.
13082func (c *ProjectsJobTriggersListCall) OrderBy(orderBy string) *ProjectsJobTriggersListCall {
13083	c.urlParams_.Set("orderBy", orderBy)
13084	return c
13085}
13086
13087// PageSize sets the optional parameter "pageSize": Optional size of the
13088// page, can be limited by a server.
13089func (c *ProjectsJobTriggersListCall) PageSize(pageSize int64) *ProjectsJobTriggersListCall {
13090	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13091	return c
13092}
13093
13094// PageToken sets the optional parameter "pageToken": Optional page
13095// token to continue retrieval. Comes from previous call
13096// to ListJobTriggers. `order_by` and `filter` should not change
13097// for
13098// subsequent calls, but can be omitted if token is specified.
13099func (c *ProjectsJobTriggersListCall) PageToken(pageToken string) *ProjectsJobTriggersListCall {
13100	c.urlParams_.Set("pageToken", pageToken)
13101	return c
13102}
13103
13104// Fields allows partial responses to be retrieved. See
13105// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13106// for more information.
13107func (c *ProjectsJobTriggersListCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersListCall {
13108	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13109	return c
13110}
13111
13112// IfNoneMatch sets the optional parameter which makes the operation
13113// fail if the object's ETag matches the given value. This is useful for
13114// getting updates only after the object has changed since the last
13115// request. Use googleapi.IsNotModified to check whether the response
13116// error from Do is the result of In-None-Match.
13117func (c *ProjectsJobTriggersListCall) IfNoneMatch(entityTag string) *ProjectsJobTriggersListCall {
13118	c.ifNoneMatch_ = entityTag
13119	return c
13120}
13121
13122// Context sets the context to be used in this call's Do method. Any
13123// pending HTTP request will be aborted if the provided context is
13124// canceled.
13125func (c *ProjectsJobTriggersListCall) Context(ctx context.Context) *ProjectsJobTriggersListCall {
13126	c.ctx_ = ctx
13127	return c
13128}
13129
13130// Header returns an http.Header that can be modified by the caller to
13131// add HTTP headers to the request.
13132func (c *ProjectsJobTriggersListCall) Header() http.Header {
13133	if c.header_ == nil {
13134		c.header_ = make(http.Header)
13135	}
13136	return c.header_
13137}
13138
13139func (c *ProjectsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
13140	reqHeaders := make(http.Header)
13141	for k, v := range c.header_ {
13142		reqHeaders[k] = v
13143	}
13144	reqHeaders.Set("User-Agent", c.s.userAgent())
13145	if c.ifNoneMatch_ != "" {
13146		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13147	}
13148	var body io.Reader = nil
13149	c.urlParams_.Set("alt", alt)
13150	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+parent}/jobTriggers")
13151	urls += "?" + c.urlParams_.Encode()
13152	req, _ := http.NewRequest("GET", urls, body)
13153	req.Header = reqHeaders
13154	googleapi.Expand(req.URL, map[string]string{
13155		"parent": c.parent,
13156	})
13157	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13158}
13159
13160// Do executes the "dlp.projects.jobTriggers.list" call.
13161// Exactly one of *GooglePrivacyDlpV2beta2ListJobTriggersResponse or
13162// error will be non-nil. Any non-2xx status code is an error. Response
13163// headers are in either
13164// *GooglePrivacyDlpV2beta2ListJobTriggersResponse.ServerResponse.Header
13165// or (if a response was returned at all) in
13166// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13167// whether the returned error was because http.StatusNotModified was
13168// returned.
13169func (c *ProjectsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2ListJobTriggersResponse, error) {
13170	gensupport.SetOptions(c.urlParams_, opts...)
13171	res, err := c.doRequest("json")
13172	if res != nil && res.StatusCode == http.StatusNotModified {
13173		if res.Body != nil {
13174			res.Body.Close()
13175		}
13176		return nil, &googleapi.Error{
13177			Code:   res.StatusCode,
13178			Header: res.Header,
13179		}
13180	}
13181	if err != nil {
13182		return nil, err
13183	}
13184	defer googleapi.CloseBody(res)
13185	if err := googleapi.CheckResponse(res); err != nil {
13186		return nil, err
13187	}
13188	ret := &GooglePrivacyDlpV2beta2ListJobTriggersResponse{
13189		ServerResponse: googleapi.ServerResponse{
13190			Header:         res.Header,
13191			HTTPStatusCode: res.StatusCode,
13192		},
13193	}
13194	target := &ret
13195	if err := gensupport.DecodeResponse(target, res); err != nil {
13196		return nil, err
13197	}
13198	return ret, nil
13199	// {
13200	//   "description": "Lists job triggers.",
13201	//   "flatPath": "v2beta2/projects/{projectsId}/jobTriggers",
13202	//   "httpMethod": "GET",
13203	//   "id": "dlp.projects.jobTriggers.list",
13204	//   "parameterOrder": [
13205	//     "parent"
13206	//   ],
13207	//   "parameters": {
13208	//     "orderBy": {
13209	//       "description": "Optional comma separated list of triggeredJob fields to order by,\nfollowed by 'asc/desc' postfix, i.e.\n`\"create_time asc,name desc,schedule_mode asc\"`. This list is\ncase-insensitive.\n\nExample: `\"name asc,schedule_mode desc, status desc\"`\n\nSupported filters keys and values are:\n\n- `create_time`: corresponds to time the triggeredJob was created.\n- `update_time`: corresponds to time the triggeredJob was last updated.\n- `name`: corresponds to JobTrigger's display name.\n- `status`: corresponds to the triggeredJob status.",
13210	//       "location": "query",
13211	//       "type": "string"
13212	//     },
13213	//     "pageSize": {
13214	//       "description": "Optional size of the page, can be limited by a server.",
13215	//       "format": "int32",
13216	//       "location": "query",
13217	//       "type": "integer"
13218	//     },
13219	//     "pageToken": {
13220	//       "description": "Optional page token to continue retrieval. Comes from previous call\nto ListJobTriggers. `order_by` and `filter` should not change for\nsubsequent calls, but can be omitted if token is specified.",
13221	//       "location": "query",
13222	//       "type": "string"
13223	//     },
13224	//     "parent": {
13225	//       "description": "The parent resource name, for example projects/my-project-id.",
13226	//       "location": "path",
13227	//       "pattern": "^projects/[^/]+$",
13228	//       "required": true,
13229	//       "type": "string"
13230	//     }
13231	//   },
13232	//   "path": "v2beta2/{+parent}/jobTriggers",
13233	//   "response": {
13234	//     "$ref": "GooglePrivacyDlpV2beta2ListJobTriggersResponse"
13235	//   },
13236	//   "scopes": [
13237	//     "https://www.googleapis.com/auth/cloud-platform"
13238	//   ]
13239	// }
13240
13241}
13242
13243// Pages invokes f for each page of results.
13244// A non-nil error returned from f will halt the iteration.
13245// The provided context supersedes any context provided to the Context method.
13246func (c *ProjectsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta2ListJobTriggersResponse) error) error {
13247	c.ctx_ = ctx
13248	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
13249	for {
13250		x, err := c.Do()
13251		if err != nil {
13252			return err
13253		}
13254		if err := f(x); err != nil {
13255			return err
13256		}
13257		if x.NextPageToken == "" {
13258			return nil
13259		}
13260		c.PageToken(x.NextPageToken)
13261	}
13262}
13263
13264// method id "dlp.projects.jobTriggers.patch":
13265
13266type ProjectsJobTriggersPatchCall struct {
13267	s                                              *Service
13268	name                                           string
13269	googleprivacydlpv2beta2updatejobtriggerrequest *GooglePrivacyDlpV2beta2UpdateJobTriggerRequest
13270	urlParams_                                     gensupport.URLParams
13271	ctx_                                           context.Context
13272	header_                                        http.Header
13273}
13274
13275// Patch: Updates a job trigger.
13276func (r *ProjectsJobTriggersService) Patch(name string, googleprivacydlpv2beta2updatejobtriggerrequest *GooglePrivacyDlpV2beta2UpdateJobTriggerRequest) *ProjectsJobTriggersPatchCall {
13277	c := &ProjectsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13278	c.name = name
13279	c.googleprivacydlpv2beta2updatejobtriggerrequest = googleprivacydlpv2beta2updatejobtriggerrequest
13280	return c
13281}
13282
13283// Fields allows partial responses to be retrieved. See
13284// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13285// for more information.
13286func (c *ProjectsJobTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersPatchCall {
13287	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13288	return c
13289}
13290
13291// Context sets the context to be used in this call's Do method. Any
13292// pending HTTP request will be aborted if the provided context is
13293// canceled.
13294func (c *ProjectsJobTriggersPatchCall) Context(ctx context.Context) *ProjectsJobTriggersPatchCall {
13295	c.ctx_ = ctx
13296	return c
13297}
13298
13299// Header returns an http.Header that can be modified by the caller to
13300// add HTTP headers to the request.
13301func (c *ProjectsJobTriggersPatchCall) Header() http.Header {
13302	if c.header_ == nil {
13303		c.header_ = make(http.Header)
13304	}
13305	return c.header_
13306}
13307
13308func (c *ProjectsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
13309	reqHeaders := make(http.Header)
13310	for k, v := range c.header_ {
13311		reqHeaders[k] = v
13312	}
13313	reqHeaders.Set("User-Agent", c.s.userAgent())
13314	var body io.Reader = nil
13315	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta2updatejobtriggerrequest)
13316	if err != nil {
13317		return nil, err
13318	}
13319	reqHeaders.Set("Content-Type", "application/json")
13320	c.urlParams_.Set("alt", alt)
13321	urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta2/{+name}")
13322	urls += "?" + c.urlParams_.Encode()
13323	req, _ := http.NewRequest("PATCH", urls, body)
13324	req.Header = reqHeaders
13325	googleapi.Expand(req.URL, map[string]string{
13326		"name": c.name,
13327	})
13328	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13329}
13330
13331// Do executes the "dlp.projects.jobTriggers.patch" call.
13332// Exactly one of *GooglePrivacyDlpV2beta2JobTrigger or error will be
13333// non-nil. Any non-2xx status code is an error. Response headers are in
13334// either *GooglePrivacyDlpV2beta2JobTrigger.ServerResponse.Header or
13335// (if a response was returned at all) in
13336// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13337// whether the returned error was because http.StatusNotModified was
13338// returned.
13339func (c *ProjectsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta2JobTrigger, error) {
13340	gensupport.SetOptions(c.urlParams_, opts...)
13341	res, err := c.doRequest("json")
13342	if res != nil && res.StatusCode == http.StatusNotModified {
13343		if res.Body != nil {
13344			res.Body.Close()
13345		}
13346		return nil, &googleapi.Error{
13347			Code:   res.StatusCode,
13348			Header: res.Header,
13349		}
13350	}
13351	if err != nil {
13352		return nil, err
13353	}
13354	defer googleapi.CloseBody(res)
13355	if err := googleapi.CheckResponse(res); err != nil {
13356		return nil, err
13357	}
13358	ret := &GooglePrivacyDlpV2beta2JobTrigger{
13359		ServerResponse: googleapi.ServerResponse{
13360			Header:         res.Header,
13361			HTTPStatusCode: res.StatusCode,
13362		},
13363	}
13364	target := &ret
13365	if err := gensupport.DecodeResponse(target, res); err != nil {
13366		return nil, err
13367	}
13368	return ret, nil
13369	// {
13370	//   "description": "Updates a job trigger.",
13371	//   "flatPath": "v2beta2/projects/{projectsId}/jobTriggers/{jobTriggersId}",
13372	//   "httpMethod": "PATCH",
13373	//   "id": "dlp.projects.jobTriggers.patch",
13374	//   "parameterOrder": [
13375	//     "name"
13376	//   ],
13377	//   "parameters": {
13378	//     "name": {
13379	//       "description": "Resource name of the project and the triggeredJob, for example\n`projects/dlp-test-project/jobTriggers/53234423`.",
13380	//       "location": "path",
13381	//       "pattern": "^projects/[^/]+/jobTriggers/[^/]+$",
13382	//       "required": true,
13383	//       "type": "string"
13384	//     }
13385	//   },
13386	//   "path": "v2beta2/{+name}",
13387	//   "request": {
13388	//     "$ref": "GooglePrivacyDlpV2beta2UpdateJobTriggerRequest"
13389	//   },
13390	//   "response": {
13391	//     "$ref": "GooglePrivacyDlpV2beta2JobTrigger"
13392	//   },
13393	//   "scopes": [
13394	//     "https://www.googleapis.com/auth/cloud-platform"
13395	//   ]
13396	// }
13397
13398}
13399