1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package dataplex
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "dataplex:v1"
90 const apiName = "dataplex"
91 const apiVersion = "v1"
92 const basePath = "https://dataplex.googleapis.com/"
93 const basePathTemplate = "https://dataplex.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://dataplex.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Projects = NewProjectsService(s)
139 return s, nil
140 }
141
142 type Service struct {
143 client *http.Client
144 BasePath string
145 UserAgent string
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.Locations = NewProjectsLocationsService(s)
160 return rs
161 }
162
163 type ProjectsService struct {
164 s *Service
165
166 Locations *ProjectsLocationsService
167 }
168
169 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
170 rs := &ProjectsLocationsService{s: s}
171 rs.AspectTypes = NewProjectsLocationsAspectTypesService(s)
172 rs.DataAttributeBindings = NewProjectsLocationsDataAttributeBindingsService(s)
173 rs.DataScans = NewProjectsLocationsDataScansService(s)
174 rs.DataTaxonomies = NewProjectsLocationsDataTaxonomiesService(s)
175 rs.EntryGroups = NewProjectsLocationsEntryGroupsService(s)
176 rs.EntryTypes = NewProjectsLocationsEntryTypesService(s)
177 rs.GovernanceRules = NewProjectsLocationsGovernanceRulesService(s)
178 rs.Lakes = NewProjectsLocationsLakesService(s)
179 rs.Operations = NewProjectsLocationsOperationsService(s)
180 return rs
181 }
182
183 type ProjectsLocationsService struct {
184 s *Service
185
186 AspectTypes *ProjectsLocationsAspectTypesService
187
188 DataAttributeBindings *ProjectsLocationsDataAttributeBindingsService
189
190 DataScans *ProjectsLocationsDataScansService
191
192 DataTaxonomies *ProjectsLocationsDataTaxonomiesService
193
194 EntryGroups *ProjectsLocationsEntryGroupsService
195
196 EntryTypes *ProjectsLocationsEntryTypesService
197
198 GovernanceRules *ProjectsLocationsGovernanceRulesService
199
200 Lakes *ProjectsLocationsLakesService
201
202 Operations *ProjectsLocationsOperationsService
203 }
204
205 func NewProjectsLocationsAspectTypesService(s *Service) *ProjectsLocationsAspectTypesService {
206 rs := &ProjectsLocationsAspectTypesService{s: s}
207 return rs
208 }
209
210 type ProjectsLocationsAspectTypesService struct {
211 s *Service
212 }
213
214 func NewProjectsLocationsDataAttributeBindingsService(s *Service) *ProjectsLocationsDataAttributeBindingsService {
215 rs := &ProjectsLocationsDataAttributeBindingsService{s: s}
216 return rs
217 }
218
219 type ProjectsLocationsDataAttributeBindingsService struct {
220 s *Service
221 }
222
223 func NewProjectsLocationsDataScansService(s *Service) *ProjectsLocationsDataScansService {
224 rs := &ProjectsLocationsDataScansService{s: s}
225 rs.Jobs = NewProjectsLocationsDataScansJobsService(s)
226 return rs
227 }
228
229 type ProjectsLocationsDataScansService struct {
230 s *Service
231
232 Jobs *ProjectsLocationsDataScansJobsService
233 }
234
235 func NewProjectsLocationsDataScansJobsService(s *Service) *ProjectsLocationsDataScansJobsService {
236 rs := &ProjectsLocationsDataScansJobsService{s: s}
237 return rs
238 }
239
240 type ProjectsLocationsDataScansJobsService struct {
241 s *Service
242 }
243
244 func NewProjectsLocationsDataTaxonomiesService(s *Service) *ProjectsLocationsDataTaxonomiesService {
245 rs := &ProjectsLocationsDataTaxonomiesService{s: s}
246 rs.Attributes = NewProjectsLocationsDataTaxonomiesAttributesService(s)
247 return rs
248 }
249
250 type ProjectsLocationsDataTaxonomiesService struct {
251 s *Service
252
253 Attributes *ProjectsLocationsDataTaxonomiesAttributesService
254 }
255
256 func NewProjectsLocationsDataTaxonomiesAttributesService(s *Service) *ProjectsLocationsDataTaxonomiesAttributesService {
257 rs := &ProjectsLocationsDataTaxonomiesAttributesService{s: s}
258 return rs
259 }
260
261 type ProjectsLocationsDataTaxonomiesAttributesService struct {
262 s *Service
263 }
264
265 func NewProjectsLocationsEntryGroupsService(s *Service) *ProjectsLocationsEntryGroupsService {
266 rs := &ProjectsLocationsEntryGroupsService{s: s}
267 rs.Entries = NewProjectsLocationsEntryGroupsEntriesService(s)
268 return rs
269 }
270
271 type ProjectsLocationsEntryGroupsService struct {
272 s *Service
273
274 Entries *ProjectsLocationsEntryGroupsEntriesService
275 }
276
277 func NewProjectsLocationsEntryGroupsEntriesService(s *Service) *ProjectsLocationsEntryGroupsEntriesService {
278 rs := &ProjectsLocationsEntryGroupsEntriesService{s: s}
279 return rs
280 }
281
282 type ProjectsLocationsEntryGroupsEntriesService struct {
283 s *Service
284 }
285
286 func NewProjectsLocationsEntryTypesService(s *Service) *ProjectsLocationsEntryTypesService {
287 rs := &ProjectsLocationsEntryTypesService{s: s}
288 return rs
289 }
290
291 type ProjectsLocationsEntryTypesService struct {
292 s *Service
293 }
294
295 func NewProjectsLocationsGovernanceRulesService(s *Service) *ProjectsLocationsGovernanceRulesService {
296 rs := &ProjectsLocationsGovernanceRulesService{s: s}
297 return rs
298 }
299
300 type ProjectsLocationsGovernanceRulesService struct {
301 s *Service
302 }
303
304 func NewProjectsLocationsLakesService(s *Service) *ProjectsLocationsLakesService {
305 rs := &ProjectsLocationsLakesService{s: s}
306 rs.Actions = NewProjectsLocationsLakesActionsService(s)
307 rs.Content = NewProjectsLocationsLakesContentService(s)
308 rs.Contentitems = NewProjectsLocationsLakesContentitemsService(s)
309 rs.Environments = NewProjectsLocationsLakesEnvironmentsService(s)
310 rs.Tasks = NewProjectsLocationsLakesTasksService(s)
311 rs.Zones = NewProjectsLocationsLakesZonesService(s)
312 return rs
313 }
314
315 type ProjectsLocationsLakesService struct {
316 s *Service
317
318 Actions *ProjectsLocationsLakesActionsService
319
320 Content *ProjectsLocationsLakesContentService
321
322 Contentitems *ProjectsLocationsLakesContentitemsService
323
324 Environments *ProjectsLocationsLakesEnvironmentsService
325
326 Tasks *ProjectsLocationsLakesTasksService
327
328 Zones *ProjectsLocationsLakesZonesService
329 }
330
331 func NewProjectsLocationsLakesActionsService(s *Service) *ProjectsLocationsLakesActionsService {
332 rs := &ProjectsLocationsLakesActionsService{s: s}
333 return rs
334 }
335
336 type ProjectsLocationsLakesActionsService struct {
337 s *Service
338 }
339
340 func NewProjectsLocationsLakesContentService(s *Service) *ProjectsLocationsLakesContentService {
341 rs := &ProjectsLocationsLakesContentService{s: s}
342 return rs
343 }
344
345 type ProjectsLocationsLakesContentService struct {
346 s *Service
347 }
348
349 func NewProjectsLocationsLakesContentitemsService(s *Service) *ProjectsLocationsLakesContentitemsService {
350 rs := &ProjectsLocationsLakesContentitemsService{s: s}
351 return rs
352 }
353
354 type ProjectsLocationsLakesContentitemsService struct {
355 s *Service
356 }
357
358 func NewProjectsLocationsLakesEnvironmentsService(s *Service) *ProjectsLocationsLakesEnvironmentsService {
359 rs := &ProjectsLocationsLakesEnvironmentsService{s: s}
360 rs.Sessions = NewProjectsLocationsLakesEnvironmentsSessionsService(s)
361 return rs
362 }
363
364 type ProjectsLocationsLakesEnvironmentsService struct {
365 s *Service
366
367 Sessions *ProjectsLocationsLakesEnvironmentsSessionsService
368 }
369
370 func NewProjectsLocationsLakesEnvironmentsSessionsService(s *Service) *ProjectsLocationsLakesEnvironmentsSessionsService {
371 rs := &ProjectsLocationsLakesEnvironmentsSessionsService{s: s}
372 return rs
373 }
374
375 type ProjectsLocationsLakesEnvironmentsSessionsService struct {
376 s *Service
377 }
378
379 func NewProjectsLocationsLakesTasksService(s *Service) *ProjectsLocationsLakesTasksService {
380 rs := &ProjectsLocationsLakesTasksService{s: s}
381 rs.Jobs = NewProjectsLocationsLakesTasksJobsService(s)
382 return rs
383 }
384
385 type ProjectsLocationsLakesTasksService struct {
386 s *Service
387
388 Jobs *ProjectsLocationsLakesTasksJobsService
389 }
390
391 func NewProjectsLocationsLakesTasksJobsService(s *Service) *ProjectsLocationsLakesTasksJobsService {
392 rs := &ProjectsLocationsLakesTasksJobsService{s: s}
393 return rs
394 }
395
396 type ProjectsLocationsLakesTasksJobsService struct {
397 s *Service
398 }
399
400 func NewProjectsLocationsLakesZonesService(s *Service) *ProjectsLocationsLakesZonesService {
401 rs := &ProjectsLocationsLakesZonesService{s: s}
402 rs.Actions = NewProjectsLocationsLakesZonesActionsService(s)
403 rs.Assets = NewProjectsLocationsLakesZonesAssetsService(s)
404 rs.Entities = NewProjectsLocationsLakesZonesEntitiesService(s)
405 return rs
406 }
407
408 type ProjectsLocationsLakesZonesService struct {
409 s *Service
410
411 Actions *ProjectsLocationsLakesZonesActionsService
412
413 Assets *ProjectsLocationsLakesZonesAssetsService
414
415 Entities *ProjectsLocationsLakesZonesEntitiesService
416 }
417
418 func NewProjectsLocationsLakesZonesActionsService(s *Service) *ProjectsLocationsLakesZonesActionsService {
419 rs := &ProjectsLocationsLakesZonesActionsService{s: s}
420 return rs
421 }
422
423 type ProjectsLocationsLakesZonesActionsService struct {
424 s *Service
425 }
426
427 func NewProjectsLocationsLakesZonesAssetsService(s *Service) *ProjectsLocationsLakesZonesAssetsService {
428 rs := &ProjectsLocationsLakesZonesAssetsService{s: s}
429 rs.Actions = NewProjectsLocationsLakesZonesAssetsActionsService(s)
430 return rs
431 }
432
433 type ProjectsLocationsLakesZonesAssetsService struct {
434 s *Service
435
436 Actions *ProjectsLocationsLakesZonesAssetsActionsService
437 }
438
439 func NewProjectsLocationsLakesZonesAssetsActionsService(s *Service) *ProjectsLocationsLakesZonesAssetsActionsService {
440 rs := &ProjectsLocationsLakesZonesAssetsActionsService{s: s}
441 return rs
442 }
443
444 type ProjectsLocationsLakesZonesAssetsActionsService struct {
445 s *Service
446 }
447
448 func NewProjectsLocationsLakesZonesEntitiesService(s *Service) *ProjectsLocationsLakesZonesEntitiesService {
449 rs := &ProjectsLocationsLakesZonesEntitiesService{s: s}
450 rs.Partitions = NewProjectsLocationsLakesZonesEntitiesPartitionsService(s)
451 return rs
452 }
453
454 type ProjectsLocationsLakesZonesEntitiesService struct {
455 s *Service
456
457 Partitions *ProjectsLocationsLakesZonesEntitiesPartitionsService
458 }
459
460 func NewProjectsLocationsLakesZonesEntitiesPartitionsService(s *Service) *ProjectsLocationsLakesZonesEntitiesPartitionsService {
461 rs := &ProjectsLocationsLakesZonesEntitiesPartitionsService{s: s}
462 return rs
463 }
464
465 type ProjectsLocationsLakesZonesEntitiesPartitionsService struct {
466 s *Service
467 }
468
469 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
470 rs := &ProjectsLocationsOperationsService{s: s}
471 return rs
472 }
473
474 type ProjectsLocationsOperationsService struct {
475 s *Service
476 }
477
478
479
480
481
482 type Empty struct {
483
484 googleapi.ServerResponse `json:"-"`
485 }
486
487
488
489 type GoogleCloudDataplexV1Action struct {
490
491
492
493 Asset string `json:"asset,omitempty"`
494
495
496
497
498
499
500
501 Category string `json:"category,omitempty"`
502
503
504
505
506
507 DataLocations []string `json:"dataLocations,omitempty"`
508
509 DetectTime string `json:"detectTime,omitempty"`
510
511
512 FailedSecurityPolicyApply *GoogleCloudDataplexV1ActionFailedSecurityPolicyApply `json:"failedSecurityPolicyApply,omitempty"`
513
514
515 IncompatibleDataSchema *GoogleCloudDataplexV1ActionIncompatibleDataSchema `json:"incompatibleDataSchema,omitempty"`
516
517
518 InvalidDataFormat *GoogleCloudDataplexV1ActionInvalidDataFormat `json:"invalidDataFormat,omitempty"`
519
520
521 InvalidDataOrganization *GoogleCloudDataplexV1ActionInvalidDataOrganization `json:"invalidDataOrganization,omitempty"`
522
523
524 InvalidDataPartition *GoogleCloudDataplexV1ActionInvalidDataPartition `json:"invalidDataPartition,omitempty"`
525
526 Issue string `json:"issue,omitempty"`
527
528
529 Lake string `json:"lake,omitempty"`
530
531
532 MissingData *GoogleCloudDataplexV1ActionMissingData `json:"missingData,omitempty"`
533
534
535 MissingResource *GoogleCloudDataplexV1ActionMissingResource `json:"missingResource,omitempty"`
536
537
538
539
540
541
542 Name string `json:"name,omitempty"`
543
544
545 UnauthorizedResource *GoogleCloudDataplexV1ActionUnauthorizedResource `json:"unauthorizedResource,omitempty"`
546
547
548
549 Zone string `json:"zone,omitempty"`
550
551
552
553
554
555 ForceSendFields []string `json:"-"`
556
557
558
559
560 NullFields []string `json:"-"`
561 }
562
563 func (s *GoogleCloudDataplexV1Action) MarshalJSON() ([]byte, error) {
564 type NoMethod GoogleCloudDataplexV1Action
565 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
566 }
567
568
569
570
571
572 type GoogleCloudDataplexV1ActionFailedSecurityPolicyApply struct {
573
574
575 Asset string `json:"asset,omitempty"`
576
577
578
579
580
581 ForceSendFields []string `json:"-"`
582
583
584
585
586 NullFields []string `json:"-"`
587 }
588
589 func (s *GoogleCloudDataplexV1ActionFailedSecurityPolicyApply) MarshalJSON() ([]byte, error) {
590 type NoMethod GoogleCloudDataplexV1ActionFailedSecurityPolicyApply
591 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
592 }
593
594
595
596 type GoogleCloudDataplexV1ActionIncompatibleDataSchema struct {
597
598
599 ExistingSchema string `json:"existingSchema,omitempty"`
600
601
602 NewSchema string `json:"newSchema,omitempty"`
603
604
605 SampledDataLocations []string `json:"sampledDataLocations,omitempty"`
606
607
608
609
610
611
612
613
614
615 SchemaChange string `json:"schemaChange,omitempty"`
616
617 Table string `json:"table,omitempty"`
618
619
620
621
622
623 ForceSendFields []string `json:"-"`
624
625
626
627
628 NullFields []string `json:"-"`
629 }
630
631 func (s *GoogleCloudDataplexV1ActionIncompatibleDataSchema) MarshalJSON() ([]byte, error) {
632 type NoMethod GoogleCloudDataplexV1ActionIncompatibleDataSchema
633 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
634 }
635
636
637
638 type GoogleCloudDataplexV1ActionInvalidDataFormat struct {
639
640 ExpectedFormat string `json:"expectedFormat,omitempty"`
641
642 NewFormat string `json:"newFormat,omitempty"`
643
644
645 SampledDataLocations []string `json:"sampledDataLocations,omitempty"`
646
647
648
649
650
651 ForceSendFields []string `json:"-"`
652
653
654
655
656 NullFields []string `json:"-"`
657 }
658
659 func (s *GoogleCloudDataplexV1ActionInvalidDataFormat) MarshalJSON() ([]byte, error) {
660 type NoMethod GoogleCloudDataplexV1ActionInvalidDataFormat
661 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
662 }
663
664
665
666 type GoogleCloudDataplexV1ActionInvalidDataOrganization struct {
667 }
668
669
670
671 type GoogleCloudDataplexV1ActionInvalidDataPartition struct {
672
673
674
675
676
677
678
679 ExpectedStructure string `json:"expectedStructure,omitempty"`
680
681
682
683
684
685 ForceSendFields []string `json:"-"`
686
687
688
689
690 NullFields []string `json:"-"`
691 }
692
693 func (s *GoogleCloudDataplexV1ActionInvalidDataPartition) MarshalJSON() ([]byte, error) {
694 type NoMethod GoogleCloudDataplexV1ActionInvalidDataPartition
695 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
696 }
697
698
699
700 type GoogleCloudDataplexV1ActionMissingData struct {
701 }
702
703
704
705 type GoogleCloudDataplexV1ActionMissingResource struct {
706 }
707
708
709
710
711
712 type GoogleCloudDataplexV1ActionUnauthorizedResource struct {
713 }
714
715
716
717 type GoogleCloudDataplexV1Aspect struct {
718 AspectSource *GoogleCloudDataplexV1AspectSource `json:"aspectSource,omitempty"`
719
720
721 AspectType string `json:"aspectType,omitempty"`
722
723 CreateTime string `json:"createTime,omitempty"`
724
725
726
727 Data googleapi.RawMessage `json:"data,omitempty"`
728
729 Path string `json:"path,omitempty"`
730
731 UpdateTime string `json:"updateTime,omitempty"`
732
733
734
735
736
737 ForceSendFields []string `json:"-"`
738
739
740
741
742 NullFields []string `json:"-"`
743 }
744
745 func (s *GoogleCloudDataplexV1Aspect) MarshalJSON() ([]byte, error) {
746 type NoMethod GoogleCloudDataplexV1Aspect
747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
748 }
749
750
751
752 type GoogleCloudDataplexV1AspectSource struct {
753
754 CreateTime string `json:"createTime,omitempty"`
755
756 UpdateTime string `json:"updateTime,omitempty"`
757
758
759
760
761
762 ForceSendFields []string `json:"-"`
763
764
765
766
767 NullFields []string `json:"-"`
768 }
769
770 func (s *GoogleCloudDataplexV1AspectSource) MarshalJSON() ([]byte, error) {
771 type NoMethod GoogleCloudDataplexV1AspectSource
772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
773 }
774
775
776
777
778 type GoogleCloudDataplexV1AspectType struct {
779
780 Authorization *GoogleCloudDataplexV1AspectTypeAuthorization `json:"authorization,omitempty"`
781
782 CreateTime string `json:"createTime,omitempty"`
783
784 Description string `json:"description,omitempty"`
785
786 DisplayName string `json:"displayName,omitempty"`
787
788
789
790 Etag string `json:"etag,omitempty"`
791
792 Labels map[string]string `json:"labels,omitempty"`
793
794 MetadataTemplate *GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"metadataTemplate,omitempty"`
795
796
797
798
799 Name string `json:"name,omitempty"`
800
801
802
803
804
805
806
807
808
809
810
811
812 TransferStatus string `json:"transferStatus,omitempty"`
813
814
815
816 Uid string `json:"uid,omitempty"`
817
818 UpdateTime string `json:"updateTime,omitempty"`
819
820
821 googleapi.ServerResponse `json:"-"`
822
823
824
825
826
827 ForceSendFields []string `json:"-"`
828
829
830
831
832 NullFields []string `json:"-"`
833 }
834
835 func (s *GoogleCloudDataplexV1AspectType) MarshalJSON() ([]byte, error) {
836 type NoMethod GoogleCloudDataplexV1AspectType
837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
838 }
839
840
841
842 type GoogleCloudDataplexV1AspectTypeAuthorization struct {
843
844
845
846 AlternateUsePermission string `json:"alternateUsePermission,omitempty"`
847
848
849
850
851
852 ForceSendFields []string `json:"-"`
853
854
855
856
857 NullFields []string `json:"-"`
858 }
859
860 func (s *GoogleCloudDataplexV1AspectTypeAuthorization) MarshalJSON() ([]byte, error) {
861 type NoMethod GoogleCloudDataplexV1AspectTypeAuthorization
862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
863 }
864
865
866
867 type GoogleCloudDataplexV1AspectTypeMetadataTemplate struct {
868
869 Annotations *GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations `json:"annotations,omitempty"`
870
871
872
873
874
875 ArrayItems *GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"arrayItems,omitempty"`
876
877 Constraints *GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints `json:"constraints,omitempty"`
878
879
880 EnumValues []*GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue `json:"enumValues,omitempty"`
881
882
883
884
885
886
887 Index int64 `json:"index,omitempty"`
888
889
890
891
892
893 MapItems *GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"mapItems,omitempty"`
894
895 Name string `json:"name,omitempty"`
896
897
898 RecordFields []*GoogleCloudDataplexV1AspectTypeMetadataTemplate `json:"recordFields,omitempty"`
899
900
901
902
903
904 Type string `json:"type,omitempty"`
905
906
907
908 TypeId string `json:"typeId,omitempty"`
909
910
911
912
913 TypeRef string `json:"typeRef,omitempty"`
914
915
916
917
918
919 ForceSendFields []string `json:"-"`
920
921
922
923
924 NullFields []string `json:"-"`
925 }
926
927 func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplate) MarshalJSON() ([]byte, error) {
928 type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplate
929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
930 }
931
932
933
934 type GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations struct {
935
936
937 Deprecated string `json:"deprecated,omitempty"`
938
939 Description string `json:"description,omitempty"`
940
941 DisplayName string `json:"displayName,omitempty"`
942
943
944 DisplayOrder int64 `json:"displayOrder,omitempty"`
945
946
947
948
949 StringType string `json:"stringType,omitempty"`
950
951
952 StringValues []string `json:"stringValues,omitempty"`
953
954
955
956
957
958 ForceSendFields []string `json:"-"`
959
960
961
962
963 NullFields []string `json:"-"`
964 }
965
966 func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations) MarshalJSON() ([]byte, error) {
967 type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations
968 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
969 }
970
971
972
973 type GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints struct {
974
975 Required bool `json:"required,omitempty"`
976
977
978
979
980
981 ForceSendFields []string `json:"-"`
982
983
984
985
986 NullFields []string `json:"-"`
987 }
988
989 func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints) MarshalJSON() ([]byte, error) {
990 type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints
991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
992 }
993
994
995
996 type GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue struct {
997
998
999 Deprecated string `json:"deprecated,omitempty"`
1000
1001 Index int64 `json:"index,omitempty"`
1002
1003
1004 Name string `json:"name,omitempty"`
1005
1006
1007
1008
1009
1010 ForceSendFields []string `json:"-"`
1011
1012
1013
1014
1015 NullFields []string `json:"-"`
1016 }
1017
1018 func (s *GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue) MarshalJSON() ([]byte, error) {
1019 type NoMethod GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
1020 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1021 }
1022
1023
1024
1025 type GoogleCloudDataplexV1Asset struct {
1026
1027 CreateTime string `json:"createTime,omitempty"`
1028
1029 Description string `json:"description,omitempty"`
1030
1031
1032
1033 DiscoverySpec *GoogleCloudDataplexV1AssetDiscoverySpec `json:"discoverySpec,omitempty"`
1034
1035
1036 DiscoveryStatus *GoogleCloudDataplexV1AssetDiscoveryStatus `json:"discoveryStatus,omitempty"`
1037
1038 DisplayName string `json:"displayName,omitempty"`
1039
1040 Labels map[string]string `json:"labels,omitempty"`
1041
1042
1043
1044 Name string `json:"name,omitempty"`
1045
1046
1047 ResourceSpec *GoogleCloudDataplexV1AssetResourceSpec `json:"resourceSpec,omitempty"`
1048
1049
1050 ResourceStatus *GoogleCloudDataplexV1AssetResourceStatus `json:"resourceStatus,omitempty"`
1051
1052
1053 SecurityStatus *GoogleCloudDataplexV1AssetSecurityStatus `json:"securityStatus,omitempty"`
1054
1055
1056
1057
1058
1059
1060
1061
1062 State string `json:"state,omitempty"`
1063
1064
1065 Uid string `json:"uid,omitempty"`
1066
1067 UpdateTime string `json:"updateTime,omitempty"`
1068
1069
1070 googleapi.ServerResponse `json:"-"`
1071
1072
1073
1074
1075
1076 ForceSendFields []string `json:"-"`
1077
1078
1079
1080
1081 NullFields []string `json:"-"`
1082 }
1083
1084 func (s *GoogleCloudDataplexV1Asset) MarshalJSON() ([]byte, error) {
1085 type NoMethod GoogleCloudDataplexV1Asset
1086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1087 }
1088
1089
1090
1091 type GoogleCloudDataplexV1AssetDiscoverySpec struct {
1092
1093 CsvOptions *GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions `json:"csvOptions,omitempty"`
1094
1095 Enabled bool `json:"enabled,omitempty"`
1096
1097
1098
1099
1100 ExcludePatterns []string `json:"excludePatterns,omitempty"`
1101
1102
1103
1104
1105
1106 IncludePatterns []string `json:"includePatterns,omitempty"`
1107
1108 JsonOptions *GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions `json:"jsonOptions,omitempty"`
1109
1110
1111
1112
1113
1114
1115
1116
1117 Schedule string `json:"schedule,omitempty"`
1118
1119
1120
1121
1122
1123 ForceSendFields []string `json:"-"`
1124
1125
1126
1127
1128 NullFields []string `json:"-"`
1129 }
1130
1131 func (s *GoogleCloudDataplexV1AssetDiscoverySpec) MarshalJSON() ([]byte, error) {
1132 type NoMethod GoogleCloudDataplexV1AssetDiscoverySpec
1133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1134 }
1135
1136
1137
1138 type GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions struct {
1139
1140
1141 Delimiter string `json:"delimiter,omitempty"`
1142
1143
1144 DisableTypeInference bool `json:"disableTypeInference,omitempty"`
1145
1146
1147 Encoding string `json:"encoding,omitempty"`
1148
1149
1150 HeaderRows int64 `json:"headerRows,omitempty"`
1151
1152
1153
1154
1155
1156 ForceSendFields []string `json:"-"`
1157
1158
1159
1160
1161 NullFields []string `json:"-"`
1162 }
1163
1164 func (s *GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions) MarshalJSON() ([]byte, error) {
1165 type NoMethod GoogleCloudDataplexV1AssetDiscoverySpecCsvOptions
1166 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1167 }
1168
1169
1170
1171 type GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions struct {
1172
1173
1174
1175 DisableTypeInference bool `json:"disableTypeInference,omitempty"`
1176
1177
1178 Encoding string `json:"encoding,omitempty"`
1179
1180
1181
1182
1183
1184 ForceSendFields []string `json:"-"`
1185
1186
1187
1188
1189 NullFields []string `json:"-"`
1190 }
1191
1192 func (s *GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions) MarshalJSON() ([]byte, error) {
1193 type NoMethod GoogleCloudDataplexV1AssetDiscoverySpecJsonOptions
1194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1195 }
1196
1197
1198 type GoogleCloudDataplexV1AssetDiscoveryStatus struct {
1199
1200 LastRunDuration string `json:"lastRunDuration,omitempty"`
1201
1202 LastRunTime string `json:"lastRunTime,omitempty"`
1203
1204 Message string `json:"message,omitempty"`
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214 State string `json:"state,omitempty"`
1215
1216 Stats *GoogleCloudDataplexV1AssetDiscoveryStatusStats `json:"stats,omitempty"`
1217
1218 UpdateTime string `json:"updateTime,omitempty"`
1219
1220
1221
1222
1223
1224 ForceSendFields []string `json:"-"`
1225
1226
1227
1228
1229 NullFields []string `json:"-"`
1230 }
1231
1232 func (s *GoogleCloudDataplexV1AssetDiscoveryStatus) MarshalJSON() ([]byte, error) {
1233 type NoMethod GoogleCloudDataplexV1AssetDiscoveryStatus
1234 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1235 }
1236
1237
1238
1239 type GoogleCloudDataplexV1AssetDiscoveryStatusStats struct {
1240
1241 DataItems int64 `json:"dataItems,omitempty,string"`
1242
1243 DataSize int64 `json:"dataSize,omitempty,string"`
1244
1245 Filesets int64 `json:"filesets,omitempty,string"`
1246
1247 Tables int64 `json:"tables,omitempty,string"`
1248
1249
1250
1251
1252
1253 ForceSendFields []string `json:"-"`
1254
1255
1256
1257
1258 NullFields []string `json:"-"`
1259 }
1260
1261 func (s *GoogleCloudDataplexV1AssetDiscoveryStatusStats) MarshalJSON() ([]byte, error) {
1262 type NoMethod GoogleCloudDataplexV1AssetDiscoveryStatusStats
1263 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1264 }
1265
1266
1267
1268 type GoogleCloudDataplexV1AssetResourceSpec struct {
1269
1270
1271
1272
1273 Name string `json:"name,omitempty"`
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 ReadAccessMode string `json:"readAccessMode,omitempty"`
1284
1285
1286
1287
1288
1289
1290 Type string `json:"type,omitempty"`
1291
1292
1293
1294
1295
1296 ForceSendFields []string `json:"-"`
1297
1298
1299
1300
1301 NullFields []string `json:"-"`
1302 }
1303
1304 func (s *GoogleCloudDataplexV1AssetResourceSpec) MarshalJSON() ([]byte, error) {
1305 type NoMethod GoogleCloudDataplexV1AssetResourceSpec
1306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1307 }
1308
1309
1310
1311 type GoogleCloudDataplexV1AssetResourceStatus struct {
1312
1313
1314 ManagedAccessIdentity string `json:"managedAccessIdentity,omitempty"`
1315
1316 Message string `json:"message,omitempty"`
1317
1318
1319
1320
1321
1322
1323 State string `json:"state,omitempty"`
1324
1325 UpdateTime string `json:"updateTime,omitempty"`
1326
1327
1328
1329
1330
1331 ForceSendFields []string `json:"-"`
1332
1333
1334
1335
1336 NullFields []string `json:"-"`
1337 }
1338
1339 func (s *GoogleCloudDataplexV1AssetResourceStatus) MarshalJSON() ([]byte, error) {
1340 type NoMethod GoogleCloudDataplexV1AssetResourceStatus
1341 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1342 }
1343
1344
1345
1346
1347 type GoogleCloudDataplexV1AssetSecurityStatus struct {
1348
1349 Message string `json:"message,omitempty"`
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361 State string `json:"state,omitempty"`
1362
1363 UpdateTime string `json:"updateTime,omitempty"`
1364
1365
1366
1367
1368
1369 ForceSendFields []string `json:"-"`
1370
1371
1372
1373
1374 NullFields []string `json:"-"`
1375 }
1376
1377 func (s *GoogleCloudDataplexV1AssetSecurityStatus) MarshalJSON() ([]byte, error) {
1378 type NoMethod GoogleCloudDataplexV1AssetSecurityStatus
1379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1380 }
1381
1382
1383
1384 type GoogleCloudDataplexV1AssetStatus struct {
1385
1386 ActiveAssets int64 `json:"activeAssets,omitempty"`
1387
1388
1389 SecurityPolicyApplyingAssets int64 `json:"securityPolicyApplyingAssets,omitempty"`
1390
1391 UpdateTime string `json:"updateTime,omitempty"`
1392
1393
1394
1395
1396
1397 ForceSendFields []string `json:"-"`
1398
1399
1400
1401
1402 NullFields []string `json:"-"`
1403 }
1404
1405 func (s *GoogleCloudDataplexV1AssetStatus) MarshalJSON() ([]byte, error) {
1406 type NoMethod GoogleCloudDataplexV1AssetStatus
1407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1408 }
1409
1410
1411 type GoogleCloudDataplexV1CancelJobRequest struct {
1412 }
1413
1414
1415
1416 type GoogleCloudDataplexV1Content struct {
1417
1418 CreateTime string `json:"createTime,omitempty"`
1419
1420 DataText string `json:"dataText,omitempty"`
1421
1422 Description string `json:"description,omitempty"`
1423
1424 Labels map[string]string `json:"labels,omitempty"`
1425
1426
1427
1428 Name string `json:"name,omitempty"`
1429
1430 Notebook *GoogleCloudDataplexV1ContentNotebook `json:"notebook,omitempty"`
1431
1432
1433
1434 Path string `json:"path,omitempty"`
1435
1436 SqlScript *GoogleCloudDataplexV1ContentSqlScript `json:"sqlScript,omitempty"`
1437
1438
1439
1440 Uid string `json:"uid,omitempty"`
1441
1442 UpdateTime string `json:"updateTime,omitempty"`
1443
1444
1445 googleapi.ServerResponse `json:"-"`
1446
1447
1448
1449
1450
1451 ForceSendFields []string `json:"-"`
1452
1453
1454
1455
1456 NullFields []string `json:"-"`
1457 }
1458
1459 func (s *GoogleCloudDataplexV1Content) MarshalJSON() ([]byte, error) {
1460 type NoMethod GoogleCloudDataplexV1Content
1461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1462 }
1463
1464
1465 type GoogleCloudDataplexV1ContentNotebook struct {
1466
1467
1468
1469
1470
1471 KernelType string `json:"kernelType,omitempty"`
1472
1473
1474
1475
1476
1477 ForceSendFields []string `json:"-"`
1478
1479
1480
1481
1482 NullFields []string `json:"-"`
1483 }
1484
1485 func (s *GoogleCloudDataplexV1ContentNotebook) MarshalJSON() ([]byte, error) {
1486 type NoMethod GoogleCloudDataplexV1ContentNotebook
1487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1488 }
1489
1490
1491
1492 type GoogleCloudDataplexV1ContentSqlScript struct {
1493
1494
1495
1496
1497
1498 Engine string `json:"engine,omitempty"`
1499
1500
1501
1502
1503
1504 ForceSendFields []string `json:"-"`
1505
1506
1507
1508
1509 NullFields []string `json:"-"`
1510 }
1511
1512 func (s *GoogleCloudDataplexV1ContentSqlScript) MarshalJSON() ([]byte, error) {
1513 type NoMethod GoogleCloudDataplexV1ContentSqlScript
1514 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1515 }
1516
1517
1518
1519
1520
1521
1522
1523 type GoogleCloudDataplexV1DataAccessSpec struct {
1524
1525
1526
1527 Readers []string `json:"readers,omitempty"`
1528
1529
1530
1531
1532
1533 ForceSendFields []string `json:"-"`
1534
1535
1536
1537
1538 NullFields []string `json:"-"`
1539 }
1540
1541 func (s *GoogleCloudDataplexV1DataAccessSpec) MarshalJSON() ([]byte, error) {
1542 type NoMethod GoogleCloudDataplexV1DataAccessSpec
1543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1544 }
1545
1546
1547
1548
1549
1550
1551 type GoogleCloudDataplexV1DataAttribute struct {
1552
1553
1554 AttributeCount int64 `json:"attributeCount,omitempty"`
1555
1556 CreateTime string `json:"createTime,omitempty"`
1557
1558
1559 DataAccessSpec *GoogleCloudDataplexV1DataAccessSpec `json:"dataAccessSpec,omitempty"`
1560
1561 Description string `json:"description,omitempty"`
1562
1563 DisplayName string `json:"displayName,omitempty"`
1564
1565
1566
1567 Etag string `json:"etag,omitempty"`
1568
1569 Labels map[string]string `json:"labels,omitempty"`
1570
1571
1572
1573
1574 Name string `json:"name,omitempty"`
1575
1576
1577
1578
1579 ParentId string `json:"parentId,omitempty"`
1580
1581
1582 ResourceAccessSpec *GoogleCloudDataplexV1ResourceAccessSpec `json:"resourceAccessSpec,omitempty"`
1583
1584
1585
1586 Uid string `json:"uid,omitempty"`
1587
1588 UpdateTime string `json:"updateTime,omitempty"`
1589
1590
1591 googleapi.ServerResponse `json:"-"`
1592
1593
1594
1595
1596
1597 ForceSendFields []string `json:"-"`
1598
1599
1600
1601
1602 NullFields []string `json:"-"`
1603 }
1604
1605 func (s *GoogleCloudDataplexV1DataAttribute) MarshalJSON() ([]byte, error) {
1606 type NoMethod GoogleCloudDataplexV1DataAttribute
1607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1608 }
1609
1610
1611
1612
1613 type GoogleCloudDataplexV1DataAttributeBinding struct {
1614
1615
1616
1617
1618 Attributes []string `json:"attributes,omitempty"`
1619
1620 CreateTime string `json:"createTime,omitempty"`
1621
1622 Description string `json:"description,omitempty"`
1623
1624 DisplayName string `json:"displayName,omitempty"`
1625
1626
1627
1628
1629 Etag string `json:"etag,omitempty"`
1630
1631 Labels map[string]string `json:"labels,omitempty"`
1632
1633
1634
1635
1636 Name string `json:"name,omitempty"`
1637
1638
1639 Paths []*GoogleCloudDataplexV1DataAttributeBindingPath `json:"paths,omitempty"`
1640
1641
1642
1643
1644
1645
1646 Resource string `json:"resource,omitempty"`
1647
1648
1649
1650 Uid string `json:"uid,omitempty"`
1651
1652
1653 UpdateTime string `json:"updateTime,omitempty"`
1654
1655
1656 googleapi.ServerResponse `json:"-"`
1657
1658
1659
1660
1661
1662 ForceSendFields []string `json:"-"`
1663
1664
1665
1666
1667 NullFields []string `json:"-"`
1668 }
1669
1670 func (s *GoogleCloudDataplexV1DataAttributeBinding) MarshalJSON() ([]byte, error) {
1671 type NoMethod GoogleCloudDataplexV1DataAttributeBinding
1672 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1673 }
1674
1675
1676
1677
1678 type GoogleCloudDataplexV1DataAttributeBindingPath struct {
1679
1680
1681
1682
1683 Attributes []string `json:"attributes,omitempty"`
1684
1685
1686 Name string `json:"name,omitempty"`
1687
1688
1689
1690
1691
1692 ForceSendFields []string `json:"-"`
1693
1694
1695
1696
1697 NullFields []string `json:"-"`
1698 }
1699
1700 func (s *GoogleCloudDataplexV1DataAttributeBindingPath) MarshalJSON() ([]byte, error) {
1701 type NoMethod GoogleCloudDataplexV1DataAttributeBindingPath
1702 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1703 }
1704
1705
1706
1707
1708 type GoogleCloudDataplexV1DataProfileResult struct {
1709
1710 PostScanActionsResult *GoogleCloudDataplexV1DataProfileResultPostScanActionsResult `json:"postScanActionsResult,omitempty"`
1711
1712 Profile *GoogleCloudDataplexV1DataProfileResultProfile `json:"profile,omitempty"`
1713
1714 RowCount int64 `json:"rowCount,omitempty,string"`
1715
1716 ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"`
1717
1718
1719
1720
1721
1722 ForceSendFields []string `json:"-"`
1723
1724
1725
1726
1727 NullFields []string `json:"-"`
1728 }
1729
1730 func (s *GoogleCloudDataplexV1DataProfileResult) MarshalJSON() ([]byte, error) {
1731 type NoMethod GoogleCloudDataplexV1DataProfileResult
1732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1733 }
1734
1735
1736
1737 type GoogleCloudDataplexV1DataProfileResultPostScanActionsResult struct {
1738
1739
1740 BigqueryExportResult *GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"`
1741
1742
1743
1744
1745
1746 ForceSendFields []string `json:"-"`
1747
1748
1749
1750
1751 NullFields []string `json:"-"`
1752 }
1753
1754 func (s *GoogleCloudDataplexV1DataProfileResultPostScanActionsResult) MarshalJSON() ([]byte, error) {
1755 type NoMethod GoogleCloudDataplexV1DataProfileResultPostScanActionsResult
1756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1757 }
1758
1759
1760
1761 type GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult struct {
1762
1763 Message string `json:"message,omitempty"`
1764
1765
1766
1767
1768
1769
1770
1771
1772 State string `json:"state,omitempty"`
1773
1774
1775
1776
1777
1778 ForceSendFields []string `json:"-"`
1779
1780
1781
1782
1783 NullFields []string `json:"-"`
1784 }
1785
1786 func (s *GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) {
1787 type NoMethod GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult
1788 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1789 }
1790
1791
1792
1793 type GoogleCloudDataplexV1DataProfileResultProfile struct {
1794
1795
1796 Fields []*GoogleCloudDataplexV1DataProfileResultProfileField `json:"fields,omitempty"`
1797
1798
1799
1800
1801
1802 ForceSendFields []string `json:"-"`
1803
1804
1805
1806
1807 NullFields []string `json:"-"`
1808 }
1809
1810 func (s *GoogleCloudDataplexV1DataProfileResultProfile) MarshalJSON() ([]byte, error) {
1811 type NoMethod GoogleCloudDataplexV1DataProfileResultProfile
1812 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1813 }
1814
1815
1816 type GoogleCloudDataplexV1DataProfileResultProfileField struct {
1817
1818
1819
1820 Mode string `json:"mode,omitempty"`
1821
1822 Name string `json:"name,omitempty"`
1823
1824 Profile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo `json:"profile,omitempty"`
1825
1826
1827
1828
1829
1830 Type string `json:"type,omitempty"`
1831
1832
1833
1834
1835
1836 ForceSendFields []string `json:"-"`
1837
1838
1839
1840
1841 NullFields []string `json:"-"`
1842 }
1843
1844 func (s *GoogleCloudDataplexV1DataProfileResultProfileField) MarshalJSON() ([]byte, error) {
1845 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileField
1846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1847 }
1848
1849
1850
1851 type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo struct {
1852
1853
1854
1855 DistinctRatio float64 `json:"distinctRatio,omitempty"`
1856
1857 DoubleProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo `json:"doubleProfile,omitempty"`
1858
1859 IntegerProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo `json:"integerProfile,omitempty"`
1860
1861 NullRatio float64 `json:"nullRatio,omitempty"`
1862
1863 StringProfile *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo `json:"stringProfile,omitempty"`
1864
1865
1866
1867
1868 TopNValues []*GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue `json:"topNValues,omitempty"`
1869
1870
1871
1872
1873
1874 ForceSendFields []string `json:"-"`
1875
1876
1877
1878
1879 NullFields []string `json:"-"`
1880 }
1881
1882 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo) MarshalJSON() ([]byte, error) {
1883 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo
1884 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1885 }
1886
1887 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo) UnmarshalJSON(data []byte) error {
1888 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo
1889 var s1 struct {
1890 DistinctRatio gensupport.JSONFloat64 `json:"distinctRatio"`
1891 NullRatio gensupport.JSONFloat64 `json:"nullRatio"`
1892 *NoMethod
1893 }
1894 s1.NoMethod = (*NoMethod)(s)
1895 if err := json.Unmarshal(data, &s1); err != nil {
1896 return err
1897 }
1898 s.DistinctRatio = float64(s1.DistinctRatio)
1899 s.NullRatio = float64(s1.NullRatio)
1900 return nil
1901 }
1902
1903
1904
1905
1906 type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo struct {
1907
1908
1909 Average float64 `json:"average,omitempty"`
1910
1911
1912 Max float64 `json:"max,omitempty"`
1913
1914
1915 Min float64 `json:"min,omitempty"`
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926 Quartiles []float64 `json:"quartiles,omitempty"`
1927
1928
1929 StandardDeviation float64 `json:"standardDeviation,omitempty"`
1930
1931
1932
1933
1934
1935 ForceSendFields []string `json:"-"`
1936
1937
1938
1939
1940 NullFields []string `json:"-"`
1941 }
1942
1943 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo) MarshalJSON() ([]byte, error) {
1944 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo
1945 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1946 }
1947
1948 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo) UnmarshalJSON(data []byte) error {
1949 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo
1950 var s1 struct {
1951 Average gensupport.JSONFloat64 `json:"average"`
1952 Max gensupport.JSONFloat64 `json:"max"`
1953 Min gensupport.JSONFloat64 `json:"min"`
1954 Quartiles []gensupport.JSONFloat64 `json:"quartiles"`
1955 StandardDeviation gensupport.JSONFloat64 `json:"standardDeviation"`
1956 *NoMethod
1957 }
1958 s1.NoMethod = (*NoMethod)(s)
1959 if err := json.Unmarshal(data, &s1); err != nil {
1960 return err
1961 }
1962 s.Average = float64(s1.Average)
1963 s.Max = float64(s1.Max)
1964 s.Min = float64(s1.Min)
1965 s.Quartiles = make([]float64, len(s1.Quartiles))
1966 for i := range s1.Quartiles {
1967 s.Quartiles[i] = float64(s1.Quartiles[i])
1968 }
1969 s.StandardDeviation = float64(s1.StandardDeviation)
1970 return nil
1971 }
1972
1973
1974
1975 type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo struct {
1976
1977
1978 Average float64 `json:"average,omitempty"`
1979
1980
1981 Max int64 `json:"max,omitempty,string"`
1982
1983
1984 Min int64 `json:"min,omitempty,string"`
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995 Quartiles googleapi.Int64s `json:"quartiles,omitempty"`
1996
1997
1998 StandardDeviation float64 `json:"standardDeviation,omitempty"`
1999
2000
2001
2002
2003
2004 ForceSendFields []string `json:"-"`
2005
2006
2007
2008
2009 NullFields []string `json:"-"`
2010 }
2011
2012 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo) MarshalJSON() ([]byte, error) {
2013 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo
2014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2015 }
2016
2017 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo) UnmarshalJSON(data []byte) error {
2018 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo
2019 var s1 struct {
2020 Average gensupport.JSONFloat64 `json:"average"`
2021 StandardDeviation gensupport.JSONFloat64 `json:"standardDeviation"`
2022 *NoMethod
2023 }
2024 s1.NoMethod = (*NoMethod)(s)
2025 if err := json.Unmarshal(data, &s1); err != nil {
2026 return err
2027 }
2028 s.Average = float64(s1.Average)
2029 s.StandardDeviation = float64(s1.StandardDeviation)
2030 return nil
2031 }
2032
2033
2034
2035
2036 type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo struct {
2037
2038 AverageLength float64 `json:"averageLength,omitempty"`
2039
2040 MaxLength int64 `json:"maxLength,omitempty,string"`
2041
2042 MinLength int64 `json:"minLength,omitempty,string"`
2043
2044
2045
2046
2047
2048 ForceSendFields []string `json:"-"`
2049
2050
2051
2052
2053 NullFields []string `json:"-"`
2054 }
2055
2056 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo) MarshalJSON() ([]byte, error) {
2057 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo
2058 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2059 }
2060
2061 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo) UnmarshalJSON(data []byte) error {
2062 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo
2063 var s1 struct {
2064 AverageLength gensupport.JSONFloat64 `json:"averageLength"`
2065 *NoMethod
2066 }
2067 s1.NoMethod = (*NoMethod)(s)
2068 if err := json.Unmarshal(data, &s1); err != nil {
2069 return err
2070 }
2071 s.AverageLength = float64(s1.AverageLength)
2072 return nil
2073 }
2074
2075
2076
2077 type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue struct {
2078
2079 Count int64 `json:"count,omitempty,string"`
2080
2081
2082 Ratio float64 `json:"ratio,omitempty"`
2083
2084 Value string `json:"value,omitempty"`
2085
2086
2087
2088
2089
2090 ForceSendFields []string `json:"-"`
2091
2092
2093
2094
2095 NullFields []string `json:"-"`
2096 }
2097
2098 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) MarshalJSON() ([]byte, error) {
2099 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue
2100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2101 }
2102
2103 func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) UnmarshalJSON(data []byte) error {
2104 type NoMethod GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue
2105 var s1 struct {
2106 Ratio gensupport.JSONFloat64 `json:"ratio"`
2107 *NoMethod
2108 }
2109 s1.NoMethod = (*NoMethod)(s)
2110 if err := json.Unmarshal(data, &s1); err != nil {
2111 return err
2112 }
2113 s.Ratio = float64(s1.Ratio)
2114 return nil
2115 }
2116
2117
2118 type GoogleCloudDataplexV1DataProfileSpec struct {
2119
2120
2121
2122 ExcludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"excludeFields,omitempty"`
2123
2124
2125
2126 IncludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"includeFields,omitempty"`
2127
2128 PostScanActions *GoogleCloudDataplexV1DataProfileSpecPostScanActions `json:"postScanActions,omitempty"`
2129
2130
2131
2132 RowFilter string `json:"rowFilter,omitempty"`
2133
2134
2135
2136
2137 SamplingPercent float64 `json:"samplingPercent,omitempty"`
2138
2139
2140
2141
2142
2143 ForceSendFields []string `json:"-"`
2144
2145
2146
2147
2148 NullFields []string `json:"-"`
2149 }
2150
2151 func (s *GoogleCloudDataplexV1DataProfileSpec) MarshalJSON() ([]byte, error) {
2152 type NoMethod GoogleCloudDataplexV1DataProfileSpec
2153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2154 }
2155
2156 func (s *GoogleCloudDataplexV1DataProfileSpec) UnmarshalJSON(data []byte) error {
2157 type NoMethod GoogleCloudDataplexV1DataProfileSpec
2158 var s1 struct {
2159 SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
2160 *NoMethod
2161 }
2162 s1.NoMethod = (*NoMethod)(s)
2163 if err := json.Unmarshal(data, &s1); err != nil {
2164 return err
2165 }
2166 s.SamplingPercent = float64(s1.SamplingPercent)
2167 return nil
2168 }
2169
2170
2171
2172 type GoogleCloudDataplexV1DataProfileSpecPostScanActions struct {
2173
2174
2175 BigqueryExport *GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport `json:"bigqueryExport,omitempty"`
2176
2177
2178
2179
2180
2181 ForceSendFields []string `json:"-"`
2182
2183
2184
2185
2186 NullFields []string `json:"-"`
2187 }
2188
2189 func (s *GoogleCloudDataplexV1DataProfileSpecPostScanActions) MarshalJSON() ([]byte, error) {
2190 type NoMethod GoogleCloudDataplexV1DataProfileSpecPostScanActions
2191 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2192 }
2193
2194
2195
2196 type GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport struct {
2197
2198
2199
2200
2201 ResultsTable string `json:"resultsTable,omitempty"`
2202
2203
2204
2205
2206
2207 ForceSendFields []string `json:"-"`
2208
2209
2210
2211
2212 NullFields []string `json:"-"`
2213 }
2214
2215 func (s *GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport) MarshalJSON() ([]byte, error) {
2216 type NoMethod GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport
2217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2218 }
2219
2220
2221
2222 type GoogleCloudDataplexV1DataProfileSpecSelectedFields struct {
2223
2224
2225
2226
2227
2228 FieldNames []string `json:"fieldNames,omitempty"`
2229
2230
2231
2232
2233
2234 ForceSendFields []string `json:"-"`
2235
2236
2237
2238
2239 NullFields []string `json:"-"`
2240 }
2241
2242 func (s *GoogleCloudDataplexV1DataProfileSpecSelectedFields) MarshalJSON() ([]byte, error) {
2243 type NoMethod GoogleCloudDataplexV1DataProfileSpecSelectedFields
2244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2245 }
2246
2247
2248
2249 type GoogleCloudDataplexV1DataQualityColumnResult struct {
2250
2251 Column string `json:"column,omitempty"`
2252
2253
2254
2255 Score float64 `json:"score,omitempty"`
2256
2257
2258
2259
2260
2261 ForceSendFields []string `json:"-"`
2262
2263
2264
2265
2266 NullFields []string `json:"-"`
2267 }
2268
2269 func (s *GoogleCloudDataplexV1DataQualityColumnResult) MarshalJSON() ([]byte, error) {
2270 type NoMethod GoogleCloudDataplexV1DataQualityColumnResult
2271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2272 }
2273
2274 func (s *GoogleCloudDataplexV1DataQualityColumnResult) UnmarshalJSON(data []byte) error {
2275 type NoMethod GoogleCloudDataplexV1DataQualityColumnResult
2276 var s1 struct {
2277 Score gensupport.JSONFloat64 `json:"score"`
2278 *NoMethod
2279 }
2280 s1.NoMethod = (*NoMethod)(s)
2281 if err := json.Unmarshal(data, &s1); err != nil {
2282 return err
2283 }
2284 s.Score = float64(s1.Score)
2285 return nil
2286 }
2287
2288
2289
2290 type GoogleCloudDataplexV1DataQualityDimension struct {
2291
2292
2293
2294 Name string `json:"name,omitempty"`
2295
2296
2297
2298
2299
2300 ForceSendFields []string `json:"-"`
2301
2302
2303
2304
2305 NullFields []string `json:"-"`
2306 }
2307
2308 func (s *GoogleCloudDataplexV1DataQualityDimension) MarshalJSON() ([]byte, error) {
2309 type NoMethod GoogleCloudDataplexV1DataQualityDimension
2310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2311 }
2312
2313
2314
2315 type GoogleCloudDataplexV1DataQualityDimensionResult struct {
2316
2317
2318 Dimension *GoogleCloudDataplexV1DataQualityDimension `json:"dimension,omitempty"`
2319
2320 Passed bool `json:"passed,omitempty"`
2321
2322
2323
2324 Score float64 `json:"score,omitempty"`
2325
2326
2327
2328
2329
2330 ForceSendFields []string `json:"-"`
2331
2332
2333
2334
2335 NullFields []string `json:"-"`
2336 }
2337
2338 func (s *GoogleCloudDataplexV1DataQualityDimensionResult) MarshalJSON() ([]byte, error) {
2339 type NoMethod GoogleCloudDataplexV1DataQualityDimensionResult
2340 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2341 }
2342
2343 func (s *GoogleCloudDataplexV1DataQualityDimensionResult) UnmarshalJSON(data []byte) error {
2344 type NoMethod GoogleCloudDataplexV1DataQualityDimensionResult
2345 var s1 struct {
2346 Score gensupport.JSONFloat64 `json:"score"`
2347 *NoMethod
2348 }
2349 s1.NoMethod = (*NoMethod)(s)
2350 if err := json.Unmarshal(data, &s1); err != nil {
2351 return err
2352 }
2353 s.Score = float64(s1.Score)
2354 return nil
2355 }
2356
2357
2358 type GoogleCloudDataplexV1DataQualityResult struct {
2359
2360
2361
2362 Columns []*GoogleCloudDataplexV1DataQualityColumnResult `json:"columns,omitempty"`
2363
2364
2365
2366 Dimensions []*GoogleCloudDataplexV1DataQualityDimensionResult `json:"dimensions,omitempty"`
2367
2368 Passed bool `json:"passed,omitempty"`
2369
2370 PostScanActionsResult *GoogleCloudDataplexV1DataQualityResultPostScanActionsResult `json:"postScanActionsResult,omitempty"`
2371
2372 RowCount int64 `json:"rowCount,omitempty,string"`
2373
2374 Rules []*GoogleCloudDataplexV1DataQualityRuleResult `json:"rules,omitempty"`
2375
2376 ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"`
2377
2378
2379 Score float64 `json:"score,omitempty"`
2380
2381
2382
2383
2384
2385 ForceSendFields []string `json:"-"`
2386
2387
2388
2389
2390 NullFields []string `json:"-"`
2391 }
2392
2393 func (s *GoogleCloudDataplexV1DataQualityResult) MarshalJSON() ([]byte, error) {
2394 type NoMethod GoogleCloudDataplexV1DataQualityResult
2395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2396 }
2397
2398 func (s *GoogleCloudDataplexV1DataQualityResult) UnmarshalJSON(data []byte) error {
2399 type NoMethod GoogleCloudDataplexV1DataQualityResult
2400 var s1 struct {
2401 Score gensupport.JSONFloat64 `json:"score"`
2402 *NoMethod
2403 }
2404 s1.NoMethod = (*NoMethod)(s)
2405 if err := json.Unmarshal(data, &s1); err != nil {
2406 return err
2407 }
2408 s.Score = float64(s1.Score)
2409 return nil
2410 }
2411
2412
2413
2414 type GoogleCloudDataplexV1DataQualityResultPostScanActionsResult struct {
2415
2416
2417 BigqueryExportResult *GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"`
2418
2419
2420
2421
2422
2423 ForceSendFields []string `json:"-"`
2424
2425
2426
2427
2428 NullFields []string `json:"-"`
2429 }
2430
2431 func (s *GoogleCloudDataplexV1DataQualityResultPostScanActionsResult) MarshalJSON() ([]byte, error) {
2432 type NoMethod GoogleCloudDataplexV1DataQualityResultPostScanActionsResult
2433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2434 }
2435
2436
2437
2438 type GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult struct {
2439
2440 Message string `json:"message,omitempty"`
2441
2442
2443
2444
2445
2446
2447
2448
2449 State string `json:"state,omitempty"`
2450
2451
2452
2453
2454
2455 ForceSendFields []string `json:"-"`
2456
2457
2458
2459
2460 NullFields []string `json:"-"`
2461 }
2462
2463 func (s *GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) {
2464 type NoMethod GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult
2465 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2466 }
2467
2468
2469
2470 type GoogleCloudDataplexV1DataQualityRule struct {
2471
2472 Column string `json:"column,omitempty"`
2473
2474
2475 Description string `json:"description,omitempty"`
2476
2477
2478
2479 Dimension string `json:"dimension,omitempty"`
2480
2481
2482
2483
2484 IgnoreNull bool `json:"ignoreNull,omitempty"`
2485
2486
2487
2488 Name string `json:"name,omitempty"`
2489
2490
2491 NonNullExpectation *GoogleCloudDataplexV1DataQualityRuleNonNullExpectation `json:"nonNullExpectation,omitempty"`
2492
2493
2494 RangeExpectation *GoogleCloudDataplexV1DataQualityRuleRangeExpectation `json:"rangeExpectation,omitempty"`
2495
2496
2497 RegexExpectation *GoogleCloudDataplexV1DataQualityRuleRegexExpectation `json:"regexExpectation,omitempty"`
2498
2499
2500 RowConditionExpectation *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation `json:"rowConditionExpectation,omitempty"`
2501
2502
2503 SetExpectation *GoogleCloudDataplexV1DataQualityRuleSetExpectation `json:"setExpectation,omitempty"`
2504
2505
2506 SqlAssertion *GoogleCloudDataplexV1DataQualityRuleSqlAssertion `json:"sqlAssertion,omitempty"`
2507
2508
2509 StatisticRangeExpectation *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation `json:"statisticRangeExpectation,omitempty"`
2510
2511
2512 TableConditionExpectation *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation `json:"tableConditionExpectation,omitempty"`
2513
2514
2515
2516 Threshold float64 `json:"threshold,omitempty"`
2517
2518
2519 UniquenessExpectation *GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation `json:"uniquenessExpectation,omitempty"`
2520
2521
2522
2523
2524
2525 ForceSendFields []string `json:"-"`
2526
2527
2528
2529
2530 NullFields []string `json:"-"`
2531 }
2532
2533 func (s *GoogleCloudDataplexV1DataQualityRule) MarshalJSON() ([]byte, error) {
2534 type NoMethod GoogleCloudDataplexV1DataQualityRule
2535 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2536 }
2537
2538 func (s *GoogleCloudDataplexV1DataQualityRule) UnmarshalJSON(data []byte) error {
2539 type NoMethod GoogleCloudDataplexV1DataQualityRule
2540 var s1 struct {
2541 Threshold gensupport.JSONFloat64 `json:"threshold"`
2542 *NoMethod
2543 }
2544 s1.NoMethod = (*NoMethod)(s)
2545 if err := json.Unmarshal(data, &s1); err != nil {
2546 return err
2547 }
2548 s.Threshold = float64(s1.Threshold)
2549 return nil
2550 }
2551
2552
2553
2554 type GoogleCloudDataplexV1DataQualityRuleNonNullExpectation struct {
2555 }
2556
2557
2558
2559 type GoogleCloudDataplexV1DataQualityRuleRangeExpectation struct {
2560
2561
2562 MaxValue string `json:"maxValue,omitempty"`
2563
2564
2565 MinValue string `json:"minValue,omitempty"`
2566
2567
2568
2569 StrictMaxEnabled bool `json:"strictMaxEnabled,omitempty"`
2570
2571
2572
2573 StrictMinEnabled bool `json:"strictMinEnabled,omitempty"`
2574
2575
2576
2577
2578
2579 ForceSendFields []string `json:"-"`
2580
2581
2582
2583
2584 NullFields []string `json:"-"`
2585 }
2586
2587 func (s *GoogleCloudDataplexV1DataQualityRuleRangeExpectation) MarshalJSON() ([]byte, error) {
2588 type NoMethod GoogleCloudDataplexV1DataQualityRuleRangeExpectation
2589 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2590 }
2591
2592
2593
2594 type GoogleCloudDataplexV1DataQualityRuleRegexExpectation struct {
2595
2596 Regex string `json:"regex,omitempty"`
2597
2598
2599
2600
2601
2602 ForceSendFields []string `json:"-"`
2603
2604
2605
2606
2607 NullFields []string `json:"-"`
2608 }
2609
2610 func (s *GoogleCloudDataplexV1DataQualityRuleRegexExpectation) MarshalJSON() ([]byte, error) {
2611 type NoMethod GoogleCloudDataplexV1DataQualityRuleRegexExpectation
2612 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2613 }
2614
2615
2616
2617 type GoogleCloudDataplexV1DataQualityRuleResult struct {
2618
2619
2620
2621 AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"`
2622
2623
2624
2625
2626
2627 EvaluatedCount int64 `json:"evaluatedCount,omitempty,string"`
2628
2629
2630 FailingRowsQuery string `json:"failingRowsQuery,omitempty"`
2631
2632 NullCount int64 `json:"nullCount,omitempty,string"`
2633
2634
2635 PassRatio float64 `json:"passRatio,omitempty"`
2636
2637 Passed bool `json:"passed,omitempty"`
2638
2639
2640 PassedCount int64 `json:"passedCount,omitempty,string"`
2641
2642 Rule *GoogleCloudDataplexV1DataQualityRule `json:"rule,omitempty"`
2643
2644
2645
2646
2647
2648 ForceSendFields []string `json:"-"`
2649
2650
2651
2652
2653 NullFields []string `json:"-"`
2654 }
2655
2656 func (s *GoogleCloudDataplexV1DataQualityRuleResult) MarshalJSON() ([]byte, error) {
2657 type NoMethod GoogleCloudDataplexV1DataQualityRuleResult
2658 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2659 }
2660
2661 func (s *GoogleCloudDataplexV1DataQualityRuleResult) UnmarshalJSON(data []byte) error {
2662 type NoMethod GoogleCloudDataplexV1DataQualityRuleResult
2663 var s1 struct {
2664 PassRatio gensupport.JSONFloat64 `json:"passRatio"`
2665 *NoMethod
2666 }
2667 s1.NoMethod = (*NoMethod)(s)
2668 if err := json.Unmarshal(data, &s1); err != nil {
2669 return err
2670 }
2671 s.PassRatio = float64(s1.PassRatio)
2672 return nil
2673 }
2674
2675
2676
2677
2678
2679 type GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation struct {
2680
2681 SqlExpression string `json:"sqlExpression,omitempty"`
2682
2683
2684
2685
2686
2687 ForceSendFields []string `json:"-"`
2688
2689
2690
2691
2692 NullFields []string `json:"-"`
2693 }
2694
2695 func (s *GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation) MarshalJSON() ([]byte, error) {
2696 type NoMethod GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation
2697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2698 }
2699
2700
2701
2702 type GoogleCloudDataplexV1DataQualityRuleSetExpectation struct {
2703
2704 Values []string `json:"values,omitempty"`
2705
2706
2707
2708
2709
2710 ForceSendFields []string `json:"-"`
2711
2712
2713
2714
2715 NullFields []string `json:"-"`
2716 }
2717
2718 func (s *GoogleCloudDataplexV1DataQualityRuleSetExpectation) MarshalJSON() ([]byte, error) {
2719 type NoMethod GoogleCloudDataplexV1DataQualityRuleSetExpectation
2720 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2721 }
2722
2723
2724
2725
2726
2727
2728
2729
2730 type GoogleCloudDataplexV1DataQualityRuleSqlAssertion struct {
2731
2732 SqlStatement string `json:"sqlStatement,omitempty"`
2733
2734
2735
2736
2737
2738 ForceSendFields []string `json:"-"`
2739
2740
2741
2742
2743 NullFields []string `json:"-"`
2744 }
2745
2746 func (s *GoogleCloudDataplexV1DataQualityRuleSqlAssertion) MarshalJSON() ([]byte, error) {
2747 type NoMethod GoogleCloudDataplexV1DataQualityRuleSqlAssertion
2748 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2749 }
2750
2751
2752
2753 type GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation struct {
2754
2755
2756
2757 MaxValue string `json:"maxValue,omitempty"`
2758
2759
2760
2761 MinValue string `json:"minValue,omitempty"`
2762
2763
2764
2765
2766
2767
2768
2769 Statistic string `json:"statistic,omitempty"`
2770
2771
2772
2773 StrictMaxEnabled bool `json:"strictMaxEnabled,omitempty"`
2774
2775
2776
2777 StrictMinEnabled bool `json:"strictMinEnabled,omitempty"`
2778
2779
2780
2781
2782
2783 ForceSendFields []string `json:"-"`
2784
2785
2786
2787
2788 NullFields []string `json:"-"`
2789 }
2790
2791 func (s *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation) MarshalJSON() ([]byte, error) {
2792 type NoMethod GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation
2793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2794 }
2795
2796
2797
2798
2799
2800 type GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation struct {
2801
2802 SqlExpression string `json:"sqlExpression,omitempty"`
2803
2804
2805
2806
2807
2808 ForceSendFields []string `json:"-"`
2809
2810
2811
2812
2813 NullFields []string `json:"-"`
2814 }
2815
2816 func (s *GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation) MarshalJSON() ([]byte, error) {
2817 type NoMethod GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation
2818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2819 }
2820
2821
2822
2823 type GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation struct {
2824 }
2825
2826
2827
2828
2829 type GoogleCloudDataplexV1DataQualityScanRuleResult struct {
2830
2831
2832 AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"`
2833
2834 Column string `json:"column,omitempty"`
2835
2836 DataSource string `json:"dataSource,omitempty"`
2837
2838
2839 EvaluatedRowCount int64 `json:"evaluatedRowCount,omitempty,string"`
2840
2841
2842
2843
2844
2845
2846 EvalutionType string `json:"evalutionType,omitempty"`
2847
2848 JobId string `json:"jobId,omitempty"`
2849
2850 NullRowCount int64 `json:"nullRowCount,omitempty,string"`
2851
2852
2853 PassedRowCount int64 `json:"passedRowCount,omitempty,string"`
2854
2855
2856
2857
2858
2859
2860 Result string `json:"result,omitempty"`
2861
2862 RuleDimension string `json:"ruleDimension,omitempty"`
2863
2864 RuleName string `json:"ruleName,omitempty"`
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887 RuleType string `json:"ruleType,omitempty"`
2888
2889
2890 ThresholdPercent float64 `json:"thresholdPercent,omitempty"`
2891
2892
2893
2894
2895
2896 ForceSendFields []string `json:"-"`
2897
2898
2899
2900
2901 NullFields []string `json:"-"`
2902 }
2903
2904 func (s *GoogleCloudDataplexV1DataQualityScanRuleResult) MarshalJSON() ([]byte, error) {
2905 type NoMethod GoogleCloudDataplexV1DataQualityScanRuleResult
2906 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2907 }
2908
2909 func (s *GoogleCloudDataplexV1DataQualityScanRuleResult) UnmarshalJSON(data []byte) error {
2910 type NoMethod GoogleCloudDataplexV1DataQualityScanRuleResult
2911 var s1 struct {
2912 ThresholdPercent gensupport.JSONFloat64 `json:"thresholdPercent"`
2913 *NoMethod
2914 }
2915 s1.NoMethod = (*NoMethod)(s)
2916 if err := json.Unmarshal(data, &s1); err != nil {
2917 return err
2918 }
2919 s.ThresholdPercent = float64(s1.ThresholdPercent)
2920 return nil
2921 }
2922
2923
2924 type GoogleCloudDataplexV1DataQualitySpec struct {
2925
2926 PostScanActions *GoogleCloudDataplexV1DataQualitySpecPostScanActions `json:"postScanActions,omitempty"`
2927
2928
2929
2930 RowFilter string `json:"rowFilter,omitempty"`
2931
2932
2933 Rules []*GoogleCloudDataplexV1DataQualityRule `json:"rules,omitempty"`
2934
2935
2936
2937
2938 SamplingPercent float64 `json:"samplingPercent,omitempty"`
2939
2940
2941
2942
2943
2944 ForceSendFields []string `json:"-"`
2945
2946
2947
2948
2949 NullFields []string `json:"-"`
2950 }
2951
2952 func (s *GoogleCloudDataplexV1DataQualitySpec) MarshalJSON() ([]byte, error) {
2953 type NoMethod GoogleCloudDataplexV1DataQualitySpec
2954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2955 }
2956
2957 func (s *GoogleCloudDataplexV1DataQualitySpec) UnmarshalJSON(data []byte) error {
2958 type NoMethod GoogleCloudDataplexV1DataQualitySpec
2959 var s1 struct {
2960 SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
2961 *NoMethod
2962 }
2963 s1.NoMethod = (*NoMethod)(s)
2964 if err := json.Unmarshal(data, &s1); err != nil {
2965 return err
2966 }
2967 s.SamplingPercent = float64(s1.SamplingPercent)
2968 return nil
2969 }
2970
2971
2972
2973 type GoogleCloudDataplexV1DataQualitySpecPostScanActions struct {
2974
2975
2976 BigqueryExport *GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport `json:"bigqueryExport,omitempty"`
2977
2978
2979 NotificationReport *GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport `json:"notificationReport,omitempty"`
2980
2981
2982
2983
2984
2985 ForceSendFields []string `json:"-"`
2986
2987
2988
2989
2990 NullFields []string `json:"-"`
2991 }
2992
2993 func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActions) MarshalJSON() ([]byte, error) {
2994 type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActions
2995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2996 }
2997
2998
2999
3000 type GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport struct {
3001
3002
3003
3004
3005 ResultsTable string `json:"resultsTable,omitempty"`
3006
3007
3008
3009
3010
3011 ForceSendFields []string `json:"-"`
3012
3013
3014
3015
3016 NullFields []string `json:"-"`
3017 }
3018
3019 func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport) MarshalJSON() ([]byte, error) {
3020 type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport
3021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3022 }
3023
3024
3025
3026 type GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger struct {
3027 }
3028
3029
3030
3031
3032 type GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger struct {
3033 }
3034
3035
3036
3037 type GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport struct {
3038
3039 JobEndTrigger *GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobEndTrigger `json:"jobEndTrigger,omitempty"`
3040
3041
3042 JobFailureTrigger *GoogleCloudDataplexV1DataQualitySpecPostScanActionsJobFailureTrigger `json:"jobFailureTrigger,omitempty"`
3043
3044
3045 Recipients *GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients `json:"recipients,omitempty"`
3046
3047
3048 ScoreThresholdTrigger *GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger `json:"scoreThresholdTrigger,omitempty"`
3049
3050
3051
3052
3053
3054 ForceSendFields []string `json:"-"`
3055
3056
3057
3058
3059 NullFields []string `json:"-"`
3060 }
3061
3062 func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport) MarshalJSON() ([]byte, error) {
3063 type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsNotificationReport
3064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3065 }
3066
3067
3068
3069
3070 type GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients struct {
3071
3072
3073 Emails []string `json:"emails,omitempty"`
3074
3075
3076
3077
3078
3079 ForceSendFields []string `json:"-"`
3080
3081
3082
3083
3084 NullFields []string `json:"-"`
3085 }
3086
3087 func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients) MarshalJSON() ([]byte, error) {
3088 type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsRecipients
3089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3090 }
3091
3092
3093
3094
3095 type GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger struct {
3096
3097 ScoreThreshold float64 `json:"scoreThreshold,omitempty"`
3098
3099
3100
3101
3102
3103 ForceSendFields []string `json:"-"`
3104
3105
3106
3107
3108 NullFields []string `json:"-"`
3109 }
3110
3111 func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger) MarshalJSON() ([]byte, error) {
3112 type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger
3113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3114 }
3115
3116 func (s *GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger) UnmarshalJSON(data []byte) error {
3117 type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger
3118 var s1 struct {
3119 ScoreThreshold gensupport.JSONFloat64 `json:"scoreThreshold"`
3120 *NoMethod
3121 }
3122 s1.NoMethod = (*NoMethod)(s)
3123 if err := json.Unmarshal(data, &s1); err != nil {
3124 return err
3125 }
3126 s.ScoreThreshold = float64(s1.ScoreThreshold)
3127 return nil
3128 }
3129
3130
3131
3132
3133
3134
3135
3136 type GoogleCloudDataplexV1DataScan struct {
3137
3138 CreateTime string `json:"createTime,omitempty"`
3139
3140 Data *GoogleCloudDataplexV1DataSource `json:"data,omitempty"`
3141
3142 DataProfileResult *GoogleCloudDataplexV1DataProfileResult `json:"dataProfileResult,omitempty"`
3143
3144 DataProfileSpec *GoogleCloudDataplexV1DataProfileSpec `json:"dataProfileSpec,omitempty"`
3145
3146 DataQualityResult *GoogleCloudDataplexV1DataQualityResult `json:"dataQualityResult,omitempty"`
3147
3148 DataQualitySpec *GoogleCloudDataplexV1DataQualitySpec `json:"dataQualitySpec,omitempty"`
3149
3150
3151 Description string `json:"description,omitempty"`
3152
3153
3154 DisplayName string `json:"displayName,omitempty"`
3155
3156
3157 ExecutionSpec *GoogleCloudDataplexV1DataScanExecutionSpec `json:"executionSpec,omitempty"`
3158
3159 ExecutionStatus *GoogleCloudDataplexV1DataScanExecutionStatus `json:"executionStatus,omitempty"`
3160
3161 Labels map[string]string `json:"labels,omitempty"`
3162
3163
3164
3165
3166 Name string `json:"name,omitempty"`
3167
3168
3169
3170
3171
3172
3173
3174
3175 State string `json:"state,omitempty"`
3176
3177
3178
3179
3180
3181
3182 Type string `json:"type,omitempty"`
3183
3184
3185 Uid string `json:"uid,omitempty"`
3186
3187 UpdateTime string `json:"updateTime,omitempty"`
3188
3189
3190 googleapi.ServerResponse `json:"-"`
3191
3192
3193
3194
3195
3196 ForceSendFields []string `json:"-"`
3197
3198
3199
3200
3201 NullFields []string `json:"-"`
3202 }
3203
3204 func (s *GoogleCloudDataplexV1DataScan) MarshalJSON() ([]byte, error) {
3205 type NoMethod GoogleCloudDataplexV1DataScan
3206 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3207 }
3208
3209
3210
3211
3212 type GoogleCloudDataplexV1DataScanEvent struct {
3213
3214 CreateTime string `json:"createTime,omitempty"`
3215
3216 DataProfile *GoogleCloudDataplexV1DataScanEventDataProfileResult `json:"dataProfile,omitempty"`
3217
3218 DataProfileConfigs *GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs `json:"dataProfileConfigs,omitempty"`
3219
3220 DataQuality *GoogleCloudDataplexV1DataScanEventDataQualityResult `json:"dataQuality,omitempty"`
3221
3222 DataQualityConfigs *GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs `json:"dataQualityConfigs,omitempty"`
3223
3224 DataSource string `json:"dataSource,omitempty"`
3225
3226 EndTime string `json:"endTime,omitempty"`
3227
3228 JobId string `json:"jobId,omitempty"`
3229
3230 Message string `json:"message,omitempty"`
3231
3232 PostScanActionsResult *GoogleCloudDataplexV1DataScanEventPostScanActionsResult `json:"postScanActionsResult,omitempty"`
3233
3234
3235
3236
3237
3238
3239 Scope string `json:"scope,omitempty"`
3240
3241
3242 SpecVersion string `json:"specVersion,omitempty"`
3243
3244 StartTime string `json:"startTime,omitempty"`
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254 State string `json:"state,omitempty"`
3255
3256
3257
3258
3259
3260
3261 Trigger string `json:"trigger,omitempty"`
3262
3263
3264
3265
3266
3267
3268 Type string `json:"type,omitempty"`
3269
3270
3271
3272
3273
3274 ForceSendFields []string `json:"-"`
3275
3276
3277
3278
3279 NullFields []string `json:"-"`
3280 }
3281
3282 func (s *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) {
3283 type NoMethod GoogleCloudDataplexV1DataScanEvent
3284 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3285 }
3286
3287
3288
3289 type GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs struct {
3290
3291
3292 ColumnFilterApplied bool `json:"columnFilterApplied,omitempty"`
3293
3294
3295 RowFilterApplied bool `json:"rowFilterApplied,omitempty"`
3296
3297
3298
3299 SamplingPercent float64 `json:"samplingPercent,omitempty"`
3300
3301
3302
3303
3304
3305 ForceSendFields []string `json:"-"`
3306
3307
3308
3309
3310 NullFields []string `json:"-"`
3311 }
3312
3313 func (s *GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs) MarshalJSON() ([]byte, error) {
3314 type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs
3315 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3316 }
3317
3318 func (s *GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs) UnmarshalJSON(data []byte) error {
3319 type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs
3320 var s1 struct {
3321 SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
3322 *NoMethod
3323 }
3324 s1.NoMethod = (*NoMethod)(s)
3325 if err := json.Unmarshal(data, &s1); err != nil {
3326 return err
3327 }
3328 s.SamplingPercent = float64(s1.SamplingPercent)
3329 return nil
3330 }
3331
3332
3333
3334 type GoogleCloudDataplexV1DataScanEventDataProfileResult struct {
3335
3336 RowCount int64 `json:"rowCount,omitempty,string"`
3337
3338
3339
3340
3341
3342 ForceSendFields []string `json:"-"`
3343
3344
3345
3346
3347 NullFields []string `json:"-"`
3348 }
3349
3350 func (s *GoogleCloudDataplexV1DataScanEventDataProfileResult) MarshalJSON() ([]byte, error) {
3351 type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileResult
3352 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3353 }
3354
3355
3356
3357 type GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs struct {
3358
3359
3360 RowFilterApplied bool `json:"rowFilterApplied,omitempty"`
3361
3362
3363
3364 SamplingPercent float64 `json:"samplingPercent,omitempty"`
3365
3366
3367
3368
3369
3370 ForceSendFields []string `json:"-"`
3371
3372
3373
3374
3375 NullFields []string `json:"-"`
3376 }
3377
3378 func (s *GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs) MarshalJSON() ([]byte, error) {
3379 type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs
3380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3381 }
3382
3383 func (s *GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs) UnmarshalJSON(data []byte) error {
3384 type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityAppliedConfigs
3385 var s1 struct {
3386 SamplingPercent gensupport.JSONFloat64 `json:"samplingPercent"`
3387 *NoMethod
3388 }
3389 s1.NoMethod = (*NoMethod)(s)
3390 if err := json.Unmarshal(data, &s1); err != nil {
3391 return err
3392 }
3393 s.SamplingPercent = float64(s1.SamplingPercent)
3394 return nil
3395 }
3396
3397
3398
3399 type GoogleCloudDataplexV1DataScanEventDataQualityResult struct {
3400
3401
3402
3403 ColumnScore map[string]float64 `json:"columnScore,omitempty"`
3404
3405
3406
3407 DimensionPassed map[string]bool `json:"dimensionPassed,omitempty"`
3408
3409
3410
3411
3412 DimensionScore map[string]float64 `json:"dimensionScore,omitempty"`
3413
3414 Passed bool `json:"passed,omitempty"`
3415
3416 RowCount int64 `json:"rowCount,omitempty,string"`
3417
3418
3419 Score float64 `json:"score,omitempty"`
3420
3421
3422
3423
3424
3425 ForceSendFields []string `json:"-"`
3426
3427
3428
3429
3430 NullFields []string `json:"-"`
3431 }
3432
3433 func (s *GoogleCloudDataplexV1DataScanEventDataQualityResult) MarshalJSON() ([]byte, error) {
3434 type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult
3435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3436 }
3437
3438 func (s *GoogleCloudDataplexV1DataScanEventDataQualityResult) UnmarshalJSON(data []byte) error {
3439 type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult
3440 var s1 struct {
3441 Score gensupport.JSONFloat64 `json:"score"`
3442 *NoMethod
3443 }
3444 s1.NoMethod = (*NoMethod)(s)
3445 if err := json.Unmarshal(data, &s1); err != nil {
3446 return err
3447 }
3448 s.Score = float64(s1.Score)
3449 return nil
3450 }
3451
3452
3453
3454 type GoogleCloudDataplexV1DataScanEventPostScanActionsResult struct {
3455
3456 BigqueryExportResult *GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"`
3457
3458
3459
3460
3461
3462 ForceSendFields []string `json:"-"`
3463
3464
3465
3466
3467 NullFields []string `json:"-"`
3468 }
3469
3470 func (s *GoogleCloudDataplexV1DataScanEventPostScanActionsResult) MarshalJSON() ([]byte, error) {
3471 type NoMethod GoogleCloudDataplexV1DataScanEventPostScanActionsResult
3472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3473 }
3474
3475
3476
3477 type GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult struct {
3478
3479 Message string `json:"message,omitempty"`
3480
3481
3482
3483
3484
3485
3486
3487
3488 State string `json:"state,omitempty"`
3489
3490
3491
3492
3493
3494 ForceSendFields []string `json:"-"`
3495
3496
3497
3498
3499 NullFields []string `json:"-"`
3500 }
3501
3502 func (s *GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) {
3503 type NoMethod GoogleCloudDataplexV1DataScanEventPostScanActionsResultBigQueryExportResult
3504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3505 }
3506
3507
3508 type GoogleCloudDataplexV1DataScanExecutionSpec struct {
3509
3510
3511
3512 Field string `json:"field,omitempty"`
3513
3514
3515
3516 Trigger *GoogleCloudDataplexV1Trigger `json:"trigger,omitempty"`
3517
3518
3519
3520
3521
3522 ForceSendFields []string `json:"-"`
3523
3524
3525
3526
3527 NullFields []string `json:"-"`
3528 }
3529
3530 func (s *GoogleCloudDataplexV1DataScanExecutionSpec) MarshalJSON() ([]byte, error) {
3531 type NoMethod GoogleCloudDataplexV1DataScanExecutionSpec
3532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3533 }
3534
3535
3536
3537 type GoogleCloudDataplexV1DataScanExecutionStatus struct {
3538
3539 LatestJobEndTime string `json:"latestJobEndTime,omitempty"`
3540
3541 LatestJobStartTime string `json:"latestJobStartTime,omitempty"`
3542
3543
3544
3545
3546
3547 ForceSendFields []string `json:"-"`
3548
3549
3550
3551
3552 NullFields []string `json:"-"`
3553 }
3554
3555 func (s *GoogleCloudDataplexV1DataScanExecutionStatus) MarshalJSON() ([]byte, error) {
3556 type NoMethod GoogleCloudDataplexV1DataScanExecutionStatus
3557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3558 }
3559
3560
3561
3562 type GoogleCloudDataplexV1DataScanJob struct {
3563
3564 DataProfileResult *GoogleCloudDataplexV1DataProfileResult `json:"dataProfileResult,omitempty"`
3565
3566 DataProfileSpec *GoogleCloudDataplexV1DataProfileSpec `json:"dataProfileSpec,omitempty"`
3567
3568 DataQualityResult *GoogleCloudDataplexV1DataQualityResult `json:"dataQualityResult,omitempty"`
3569
3570 DataQualitySpec *GoogleCloudDataplexV1DataQualitySpec `json:"dataQualitySpec,omitempty"`
3571
3572 EndTime string `json:"endTime,omitempty"`
3573
3574 Message string `json:"message,omitempty"`
3575
3576
3577
3578
3579
3580 Name string `json:"name,omitempty"`
3581
3582 StartTime string `json:"startTime,omitempty"`
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593 State string `json:"state,omitempty"`
3594
3595
3596
3597
3598
3599
3600 Type string `json:"type,omitempty"`
3601
3602 Uid string `json:"uid,omitempty"`
3603
3604
3605 googleapi.ServerResponse `json:"-"`
3606
3607
3608
3609
3610
3611 ForceSendFields []string `json:"-"`
3612
3613
3614
3615
3616 NullFields []string `json:"-"`
3617 }
3618
3619 func (s *GoogleCloudDataplexV1DataScanJob) MarshalJSON() ([]byte, error) {
3620 type NoMethod GoogleCloudDataplexV1DataScanJob
3621 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3622 }
3623
3624
3625 type GoogleCloudDataplexV1DataSource struct {
3626
3627
3628
3629
3630 Entity string `json:"entity,omitempty"`
3631
3632
3633
3634
3635
3636 Resource string `json:"resource,omitempty"`
3637
3638
3639
3640
3641
3642 ForceSendFields []string `json:"-"`
3643
3644
3645
3646
3647 NullFields []string `json:"-"`
3648 }
3649
3650 func (s *GoogleCloudDataplexV1DataSource) MarshalJSON() ([]byte, error) {
3651 type NoMethod GoogleCloudDataplexV1DataSource
3652 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3653 }
3654
3655
3656
3657
3658
3659 type GoogleCloudDataplexV1DataTaxonomy struct {
3660
3661 AttributeCount int64 `json:"attributeCount,omitempty"`
3662
3663 ClassCount int64 `json:"classCount,omitempty"`
3664
3665 CreateTime string `json:"createTime,omitempty"`
3666
3667 Description string `json:"description,omitempty"`
3668
3669 DisplayName string `json:"displayName,omitempty"`
3670
3671
3672
3673 Etag string `json:"etag,omitempty"`
3674
3675 Labels map[string]string `json:"labels,omitempty"`
3676
3677
3678
3679
3680 Name string `json:"name,omitempty"`
3681
3682
3683
3684 Uid string `json:"uid,omitempty"`
3685
3686 UpdateTime string `json:"updateTime,omitempty"`
3687
3688
3689 googleapi.ServerResponse `json:"-"`
3690
3691
3692
3693
3694
3695 ForceSendFields []string `json:"-"`
3696
3697
3698
3699
3700 NullFields []string `json:"-"`
3701 }
3702
3703 func (s *GoogleCloudDataplexV1DataTaxonomy) MarshalJSON() ([]byte, error) {
3704 type NoMethod GoogleCloudDataplexV1DataTaxonomy
3705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3706 }
3707
3708
3709
3710 type GoogleCloudDataplexV1DiscoveryEvent struct {
3711
3712 Action *GoogleCloudDataplexV1DiscoveryEventActionDetails `json:"action,omitempty"`
3713
3714 AssetId string `json:"assetId,omitempty"`
3715
3716 Config *GoogleCloudDataplexV1DiscoveryEventConfigDetails `json:"config,omitempty"`
3717
3718 DataLocation string `json:"dataLocation,omitempty"`
3719
3720 Entity *GoogleCloudDataplexV1DiscoveryEventEntityDetails `json:"entity,omitempty"`
3721
3722 LakeId string `json:"lakeId,omitempty"`
3723
3724 Message string `json:"message,omitempty"`
3725
3726 Partition *GoogleCloudDataplexV1DiscoveryEventPartitionDetails `json:"partition,omitempty"`
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738 Type string `json:"type,omitempty"`
3739
3740 ZoneId string `json:"zoneId,omitempty"`
3741
3742
3743
3744
3745
3746 ForceSendFields []string `json:"-"`
3747
3748
3749
3750
3751 NullFields []string `json:"-"`
3752 }
3753
3754 func (s *GoogleCloudDataplexV1DiscoveryEvent) MarshalJSON() ([]byte, error) {
3755 type NoMethod GoogleCloudDataplexV1DiscoveryEvent
3756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3757 }
3758
3759
3760 type GoogleCloudDataplexV1DiscoveryEventActionDetails struct {
3761
3762 Type string `json:"type,omitempty"`
3763
3764
3765
3766
3767
3768 ForceSendFields []string `json:"-"`
3769
3770
3771
3772
3773 NullFields []string `json:"-"`
3774 }
3775
3776 func (s *GoogleCloudDataplexV1DiscoveryEventActionDetails) MarshalJSON() ([]byte, error) {
3777 type NoMethod GoogleCloudDataplexV1DiscoveryEventActionDetails
3778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3779 }
3780
3781
3782
3783 type GoogleCloudDataplexV1DiscoveryEventConfigDetails struct {
3784
3785
3786
3787 Parameters map[string]string `json:"parameters,omitempty"`
3788
3789
3790
3791
3792
3793 ForceSendFields []string `json:"-"`
3794
3795
3796
3797
3798 NullFields []string `json:"-"`
3799 }
3800
3801 func (s *GoogleCloudDataplexV1DiscoveryEventConfigDetails) MarshalJSON() ([]byte, error) {
3802 type NoMethod GoogleCloudDataplexV1DiscoveryEventConfigDetails
3803 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3804 }
3805
3806
3807 type GoogleCloudDataplexV1DiscoveryEventEntityDetails struct {
3808
3809
3810 Entity string `json:"entity,omitempty"`
3811
3812
3813
3814
3815
3816
3817 Type string `json:"type,omitempty"`
3818
3819
3820
3821
3822
3823 ForceSendFields []string `json:"-"`
3824
3825
3826
3827
3828 NullFields []string `json:"-"`
3829 }
3830
3831 func (s *GoogleCloudDataplexV1DiscoveryEventEntityDetails) MarshalJSON() ([]byte, error) {
3832 type NoMethod GoogleCloudDataplexV1DiscoveryEventEntityDetails
3833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3834 }
3835
3836
3837
3838 type GoogleCloudDataplexV1DiscoveryEventPartitionDetails struct {
3839
3840
3841 Entity string `json:"entity,omitempty"`
3842
3843
3844 Partition string `json:"partition,omitempty"`
3845
3846
3847 SampledDataLocations []string `json:"sampledDataLocations,omitempty"`
3848
3849
3850
3851
3852
3853
3854 Type string `json:"type,omitempty"`
3855
3856
3857
3858
3859
3860 ForceSendFields []string `json:"-"`
3861
3862
3863
3864
3865 NullFields []string `json:"-"`
3866 }
3867
3868 func (s *GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]byte, error) {
3869 type NoMethod GoogleCloudDataplexV1DiscoveryEventPartitionDetails
3870 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3871 }
3872
3873
3874
3875 type GoogleCloudDataplexV1Entity struct {
3876
3877
3878 Access *GoogleCloudDataplexV1StorageAccess `json:"access,omitempty"`
3879
3880
3881
3882 Asset string `json:"asset,omitempty"`
3883
3884 CatalogEntry string `json:"catalogEntry,omitempty"`
3885
3886
3887 Compatibility *GoogleCloudDataplexV1EntityCompatibilityStatus `json:"compatibility,omitempty"`
3888
3889 CreateTime string `json:"createTime,omitempty"`
3890
3891
3892
3893
3894 DataPath string `json:"dataPath,omitempty"`
3895
3896
3897
3898 DataPathPattern string `json:"dataPathPattern,omitempty"`
3899
3900
3901 Description string `json:"description,omitempty"`
3902
3903
3904 DisplayName string `json:"displayName,omitempty"`
3905
3906
3907 Etag string `json:"etag,omitempty"`
3908
3909
3910 Format *GoogleCloudDataplexV1StorageFormat `json:"format,omitempty"`
3911
3912
3913
3914
3915
3916 Id string `json:"id,omitempty"`
3917
3918
3919
3920 Name string `json:"name,omitempty"`
3921
3922
3923
3924 Schema *GoogleCloudDataplexV1Schema `json:"schema,omitempty"`
3925
3926
3927
3928
3929
3930
3931
3932
3933 System string `json:"system,omitempty"`
3934
3935
3936
3937
3938
3939
3940 Type string `json:"type,omitempty"`
3941
3942
3943 Uid string `json:"uid,omitempty"`
3944
3945 UpdateTime string `json:"updateTime,omitempty"`
3946
3947
3948 googleapi.ServerResponse `json:"-"`
3949
3950
3951
3952
3953
3954 ForceSendFields []string `json:"-"`
3955
3956
3957
3958
3959 NullFields []string `json:"-"`
3960 }
3961
3962 func (s *GoogleCloudDataplexV1Entity) MarshalJSON() ([]byte, error) {
3963 type NoMethod GoogleCloudDataplexV1Entity
3964 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3965 }
3966
3967
3968
3969 type GoogleCloudDataplexV1EntityCompatibilityStatus struct {
3970
3971 Bigquery *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"bigquery,omitempty"`
3972
3973
3974 HiveMetastore *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility `json:"hiveMetastore,omitempty"`
3975
3976
3977
3978
3979
3980 ForceSendFields []string `json:"-"`
3981
3982
3983
3984
3985 NullFields []string `json:"-"`
3986 }
3987
3988 func (s *GoogleCloudDataplexV1EntityCompatibilityStatus) MarshalJSON() ([]byte, error) {
3989 type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatus
3990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3991 }
3992
3993
3994
3995 type GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility struct {
3996
3997
3998 Compatible bool `json:"compatible,omitempty"`
3999
4000
4001 Reason string `json:"reason,omitempty"`
4002
4003
4004
4005
4006
4007 ForceSendFields []string `json:"-"`
4008
4009
4010
4011
4012 NullFields []string `json:"-"`
4013 }
4014
4015 func (s *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility) MarshalJSON() ([]byte, error) {
4016 type NoMethod GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility
4017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4018 }
4019
4020
4021
4022 type GoogleCloudDataplexV1Entry struct {
4023
4024
4025
4026
4027
4028 Aspects map[string]GoogleCloudDataplexV1Aspect `json:"aspects,omitempty"`
4029
4030 CreateTime string `json:"createTime,omitempty"`
4031
4032 EntrySource *GoogleCloudDataplexV1EntrySource `json:"entrySource,omitempty"`
4033
4034
4035 EntryType string `json:"entryType,omitempty"`
4036
4037
4038 FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
4039
4040
4041
4042 Name string `json:"name,omitempty"`
4043
4044 ParentEntry string `json:"parentEntry,omitempty"`
4045
4046 UpdateTime string `json:"updateTime,omitempty"`
4047
4048
4049 googleapi.ServerResponse `json:"-"`
4050
4051
4052
4053
4054
4055 ForceSendFields []string `json:"-"`
4056
4057
4058
4059
4060 NullFields []string `json:"-"`
4061 }
4062
4063 func (s *GoogleCloudDataplexV1Entry) MarshalJSON() ([]byte, error) {
4064 type NoMethod GoogleCloudDataplexV1Entry
4065 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4066 }
4067
4068
4069
4070 type GoogleCloudDataplexV1EntryGroup struct {
4071
4072 CreateTime string `json:"createTime,omitempty"`
4073
4074 Description string `json:"description,omitempty"`
4075
4076 DisplayName string `json:"displayName,omitempty"`
4077
4078
4079
4080 Etag string `json:"etag,omitempty"`
4081
4082 Labels map[string]string `json:"labels,omitempty"`
4083
4084
4085
4086
4087 Name string `json:"name,omitempty"`
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100 TransferStatus string `json:"transferStatus,omitempty"`
4101
4102
4103
4104 Uid string `json:"uid,omitempty"`
4105
4106 UpdateTime string `json:"updateTime,omitempty"`
4107
4108
4109 googleapi.ServerResponse `json:"-"`
4110
4111
4112
4113
4114
4115 ForceSendFields []string `json:"-"`
4116
4117
4118
4119
4120 NullFields []string `json:"-"`
4121 }
4122
4123 func (s *GoogleCloudDataplexV1EntryGroup) MarshalJSON() ([]byte, error) {
4124 type NoMethod GoogleCloudDataplexV1EntryGroup
4125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4126 }
4127
4128
4129
4130 type GoogleCloudDataplexV1EntrySource struct {
4131
4132 Ancestors []*GoogleCloudDataplexV1EntrySourceAncestor `json:"ancestors,omitempty"`
4133
4134 CreateTime string `json:"createTime,omitempty"`
4135
4136
4137 Description string `json:"description,omitempty"`
4138
4139
4140 DisplayName string `json:"displayName,omitempty"`
4141
4142
4143 Labels map[string]string `json:"labels,omitempty"`
4144
4145
4146 Platform string `json:"platform,omitempty"`
4147
4148
4149 Resource string `json:"resource,omitempty"`
4150
4151
4152 System string `json:"system,omitempty"`
4153
4154 UpdateTime string `json:"updateTime,omitempty"`
4155
4156
4157
4158
4159
4160 ForceSendFields []string `json:"-"`
4161
4162
4163
4164
4165 NullFields []string `json:"-"`
4166 }
4167
4168 func (s *GoogleCloudDataplexV1EntrySource) MarshalJSON() ([]byte, error) {
4169 type NoMethod GoogleCloudDataplexV1EntrySource
4170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4171 }
4172
4173
4174
4175 type GoogleCloudDataplexV1EntrySourceAncestor struct {
4176
4177 Name string `json:"name,omitempty"`
4178
4179 Type string `json:"type,omitempty"`
4180
4181
4182
4183
4184
4185 ForceSendFields []string `json:"-"`
4186
4187
4188
4189
4190 NullFields []string `json:"-"`
4191 }
4192
4193 func (s *GoogleCloudDataplexV1EntrySourceAncestor) MarshalJSON() ([]byte, error) {
4194 type NoMethod GoogleCloudDataplexV1EntrySourceAncestor
4195 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4196 }
4197
4198
4199
4200 type GoogleCloudDataplexV1EntryType struct {
4201
4202 Authorization *GoogleCloudDataplexV1EntryTypeAuthorization `json:"authorization,omitempty"`
4203
4204 CreateTime string `json:"createTime,omitempty"`
4205
4206 Description string `json:"description,omitempty"`
4207
4208 DisplayName string `json:"displayName,omitempty"`
4209
4210
4211
4212 Etag string `json:"etag,omitempty"`
4213
4214 Labels map[string]string `json:"labels,omitempty"`
4215
4216
4217 Name string `json:"name,omitempty"`
4218
4219 Platform string `json:"platform,omitempty"`
4220
4221 RequiredAspects []*GoogleCloudDataplexV1EntryTypeAspectInfo `json:"requiredAspects,omitempty"`
4222
4223
4224 System string `json:"system,omitempty"`
4225
4226
4227 TypeAliases []string `json:"typeAliases,omitempty"`
4228
4229
4230
4231 Uid string `json:"uid,omitempty"`
4232
4233 UpdateTime string `json:"updateTime,omitempty"`
4234
4235
4236 googleapi.ServerResponse `json:"-"`
4237
4238
4239
4240
4241
4242 ForceSendFields []string `json:"-"`
4243
4244
4245
4246
4247 NullFields []string `json:"-"`
4248 }
4249
4250 func (s *GoogleCloudDataplexV1EntryType) MarshalJSON() ([]byte, error) {
4251 type NoMethod GoogleCloudDataplexV1EntryType
4252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4253 }
4254
4255 type GoogleCloudDataplexV1EntryTypeAspectInfo struct {
4256
4257 Type string `json:"type,omitempty"`
4258
4259
4260
4261
4262
4263 ForceSendFields []string `json:"-"`
4264
4265
4266
4267
4268 NullFields []string `json:"-"`
4269 }
4270
4271 func (s *GoogleCloudDataplexV1EntryTypeAspectInfo) MarshalJSON() ([]byte, error) {
4272 type NoMethod GoogleCloudDataplexV1EntryTypeAspectInfo
4273 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4274 }
4275
4276
4277
4278 type GoogleCloudDataplexV1EntryTypeAuthorization struct {
4279
4280
4281
4282 AlternateUsePermission string `json:"alternateUsePermission,omitempty"`
4283
4284
4285
4286
4287
4288 ForceSendFields []string `json:"-"`
4289
4290
4291
4292
4293 NullFields []string `json:"-"`
4294 }
4295
4296 func (s *GoogleCloudDataplexV1EntryTypeAuthorization) MarshalJSON() ([]byte, error) {
4297 type NoMethod GoogleCloudDataplexV1EntryTypeAuthorization
4298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4299 }
4300
4301
4302
4303 type GoogleCloudDataplexV1Environment struct {
4304
4305 CreateTime string `json:"createTime,omitempty"`
4306
4307 Description string `json:"description,omitempty"`
4308
4309 DisplayName string `json:"displayName,omitempty"`
4310
4311
4312 Endpoints *GoogleCloudDataplexV1EnvironmentEndpoints `json:"endpoints,omitempty"`
4313
4314
4315 InfrastructureSpec *GoogleCloudDataplexV1EnvironmentInfrastructureSpec `json:"infrastructureSpec,omitempty"`
4316
4317 Labels map[string]string `json:"labels,omitempty"`
4318
4319
4320
4321
4322 Name string `json:"name,omitempty"`
4323
4324
4325 SessionSpec *GoogleCloudDataplexV1EnvironmentSessionSpec `json:"sessionSpec,omitempty"`
4326
4327 SessionStatus *GoogleCloudDataplexV1EnvironmentSessionStatus `json:"sessionStatus,omitempty"`
4328
4329
4330
4331
4332
4333
4334
4335
4336 State string `json:"state,omitempty"`
4337
4338
4339
4340 Uid string `json:"uid,omitempty"`
4341
4342 UpdateTime string `json:"updateTime,omitempty"`
4343
4344
4345 googleapi.ServerResponse `json:"-"`
4346
4347
4348
4349
4350
4351 ForceSendFields []string `json:"-"`
4352
4353
4354
4355
4356 NullFields []string `json:"-"`
4357 }
4358
4359 func (s *GoogleCloudDataplexV1Environment) MarshalJSON() ([]byte, error) {
4360 type NoMethod GoogleCloudDataplexV1Environment
4361 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4362 }
4363
4364
4365
4366 type GoogleCloudDataplexV1EnvironmentEndpoints struct {
4367
4368 Notebooks string `json:"notebooks,omitempty"`
4369
4370 Sql string `json:"sql,omitempty"`
4371
4372
4373
4374
4375
4376 ForceSendFields []string `json:"-"`
4377
4378
4379
4380
4381 NullFields []string `json:"-"`
4382 }
4383
4384 func (s *GoogleCloudDataplexV1EnvironmentEndpoints) MarshalJSON() ([]byte, error) {
4385 type NoMethod GoogleCloudDataplexV1EnvironmentEndpoints
4386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4387 }
4388
4389
4390
4391 type GoogleCloudDataplexV1EnvironmentInfrastructureSpec struct {
4392
4393
4394 Compute *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources `json:"compute,omitempty"`
4395
4396
4397 OsImage *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime `json:"osImage,omitempty"`
4398
4399
4400
4401
4402
4403 ForceSendFields []string `json:"-"`
4404
4405
4406
4407
4408 NullFields []string `json:"-"`
4409 }
4410
4411 func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpec) MarshalJSON() ([]byte, error) {
4412 type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpec
4413 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4414 }
4415
4416
4417
4418 type GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources struct {
4419
4420 DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
4421
4422
4423 MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
4424
4425
4426 NodeCount int64 `json:"nodeCount,omitempty"`
4427
4428
4429
4430
4431
4432 ForceSendFields []string `json:"-"`
4433
4434
4435
4436
4437 NullFields []string `json:"-"`
4438 }
4439
4440 func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources) MarshalJSON() ([]byte, error) {
4441 type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecComputeResources
4442 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4443 }
4444
4445
4446
4447 type GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime struct {
4448
4449 ImageVersion string `json:"imageVersion,omitempty"`
4450
4451
4452
4453 JavaLibraries []string `json:"javaLibraries,omitempty"`
4454
4455
4456
4457
4458 Properties map[string]string `json:"properties,omitempty"`
4459
4460
4461
4462 PythonPackages []string `json:"pythonPackages,omitempty"`
4463
4464
4465
4466
4467
4468 ForceSendFields []string `json:"-"`
4469
4470
4471
4472
4473 NullFields []string `json:"-"`
4474 }
4475
4476 func (s *GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime) MarshalJSON() ([]byte, error) {
4477 type NoMethod GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime
4478 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4479 }
4480
4481
4482
4483 type GoogleCloudDataplexV1EnvironmentSessionSpec struct {
4484
4485
4486
4487
4488
4489 EnableFastStartup bool `json:"enableFastStartup,omitempty"`
4490
4491
4492 MaxIdleDuration string `json:"maxIdleDuration,omitempty"`
4493
4494
4495
4496
4497
4498 ForceSendFields []string `json:"-"`
4499
4500
4501
4502
4503 NullFields []string `json:"-"`
4504 }
4505
4506 func (s *GoogleCloudDataplexV1EnvironmentSessionSpec) MarshalJSON() ([]byte, error) {
4507 type NoMethod GoogleCloudDataplexV1EnvironmentSessionSpec
4508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4509 }
4510
4511
4512
4513 type GoogleCloudDataplexV1EnvironmentSessionStatus struct {
4514
4515
4516 Active bool `json:"active,omitempty"`
4517
4518
4519
4520
4521
4522 ForceSendFields []string `json:"-"`
4523
4524
4525
4526
4527 NullFields []string `json:"-"`
4528 }
4529
4530 func (s *GoogleCloudDataplexV1EnvironmentSessionStatus) MarshalJSON() ([]byte, error) {
4531 type NoMethod GoogleCloudDataplexV1EnvironmentSessionStatus
4532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4533 }
4534
4535
4536
4537 type GoogleCloudDataplexV1GenerateDataQualityRulesRequest struct {
4538 }
4539
4540
4541
4542 type GoogleCloudDataplexV1GenerateDataQualityRulesResponse struct {
4543
4544 Rule []*GoogleCloudDataplexV1DataQualityRule `json:"rule,omitempty"`
4545
4546
4547 googleapi.ServerResponse `json:"-"`
4548
4549
4550
4551
4552
4553 ForceSendFields []string `json:"-"`
4554
4555
4556
4557
4558 NullFields []string `json:"-"`
4559 }
4560
4561 func (s *GoogleCloudDataplexV1GenerateDataQualityRulesResponse) MarshalJSON() ([]byte, error) {
4562 type NoMethod GoogleCloudDataplexV1GenerateDataQualityRulesResponse
4563 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4564 }
4565
4566
4567
4568 type GoogleCloudDataplexV1GovernanceEvent struct {
4569
4570
4571 Entity *GoogleCloudDataplexV1GovernanceEventEntity `json:"entity,omitempty"`
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 EventType string `json:"eventType,omitempty"`
4596
4597 Message string `json:"message,omitempty"`
4598
4599
4600
4601
4602
4603 ForceSendFields []string `json:"-"`
4604
4605
4606
4607
4608 NullFields []string `json:"-"`
4609 }
4610
4611 func (s *GoogleCloudDataplexV1GovernanceEvent) MarshalJSON() ([]byte, error) {
4612 type NoMethod GoogleCloudDataplexV1GovernanceEvent
4613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4614 }
4615
4616
4617
4618 type GoogleCloudDataplexV1GovernanceEventEntity struct {
4619
4620
4621
4622 Entity string `json:"entity,omitempty"`
4623
4624
4625
4626
4627
4628
4629 EntityType string `json:"entityType,omitempty"`
4630
4631
4632
4633
4634
4635 ForceSendFields []string `json:"-"`
4636
4637
4638
4639
4640 NullFields []string `json:"-"`
4641 }
4642
4643 func (s *GoogleCloudDataplexV1GovernanceEventEntity) MarshalJSON() ([]byte, error) {
4644 type NoMethod GoogleCloudDataplexV1GovernanceEventEntity
4645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4646 }
4647
4648
4649 type GoogleCloudDataplexV1Job struct {
4650
4651 EndTime string `json:"endTime,omitempty"`
4652
4653 ExecutionSpec *GoogleCloudDataplexV1TaskExecutionSpec `json:"executionSpec,omitempty"`
4654
4655 Labels map[string]string `json:"labels,omitempty"`
4656
4657 Message string `json:"message,omitempty"`
4658
4659
4660
4661 Name string `json:"name,omitempty"`
4662
4663
4664 RetryCount int64 `json:"retryCount,omitempty"`
4665
4666
4667
4668
4669
4670 Service string `json:"service,omitempty"`
4671
4672
4673 ServiceJob string `json:"serviceJob,omitempty"`
4674
4675 StartTime string `json:"startTime,omitempty"`
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 State string `json:"state,omitempty"`
4687
4688
4689
4690
4691
4692
4693
4694 Trigger string `json:"trigger,omitempty"`
4695
4696 Uid string `json:"uid,omitempty"`
4697
4698
4699 googleapi.ServerResponse `json:"-"`
4700
4701
4702
4703
4704
4705 ForceSendFields []string `json:"-"`
4706
4707
4708
4709
4710 NullFields []string `json:"-"`
4711 }
4712
4713 func (s *GoogleCloudDataplexV1Job) MarshalJSON() ([]byte, error) {
4714 type NoMethod GoogleCloudDataplexV1Job
4715 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4716 }
4717
4718
4719
4720 type GoogleCloudDataplexV1JobEvent struct {
4721
4722 EndTime string `json:"endTime,omitempty"`
4723
4724
4725
4726
4727
4728
4729
4730
4731 ExecutionTrigger string `json:"executionTrigger,omitempty"`
4732
4733 JobId string `json:"jobId,omitempty"`
4734
4735 Message string `json:"message,omitempty"`
4736
4737 Retries int64 `json:"retries,omitempty"`
4738
4739
4740
4741
4742
4743 Service string `json:"service,omitempty"`
4744
4745 ServiceJob string `json:"serviceJob,omitempty"`
4746
4747 StartTime string `json:"startTime,omitempty"`
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 State string `json:"state,omitempty"`
4758
4759
4760
4761
4762
4763
4764 Type string `json:"type,omitempty"`
4765
4766
4767
4768
4769
4770 ForceSendFields []string `json:"-"`
4771
4772
4773
4774
4775 NullFields []string `json:"-"`
4776 }
4777
4778 func (s *GoogleCloudDataplexV1JobEvent) MarshalJSON() ([]byte, error) {
4779 type NoMethod GoogleCloudDataplexV1JobEvent
4780 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4781 }
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792 type GoogleCloudDataplexV1Lake struct {
4793
4794
4795 AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"`
4796
4797 CreateTime string `json:"createTime,omitempty"`
4798
4799 Description string `json:"description,omitempty"`
4800
4801 DisplayName string `json:"displayName,omitempty"`
4802
4803 Labels map[string]string `json:"labels,omitempty"`
4804
4805
4806 Metastore *GoogleCloudDataplexV1LakeMetastore `json:"metastore,omitempty"`
4807
4808 MetastoreStatus *GoogleCloudDataplexV1LakeMetastoreStatus `json:"metastoreStatus,omitempty"`
4809
4810
4811 Name string `json:"name,omitempty"`
4812
4813
4814
4815 ServiceAccount string `json:"serviceAccount,omitempty"`
4816
4817
4818
4819
4820
4821
4822
4823
4824 State string `json:"state,omitempty"`
4825
4826
4827 Uid string `json:"uid,omitempty"`
4828
4829 UpdateTime string `json:"updateTime,omitempty"`
4830
4831
4832 googleapi.ServerResponse `json:"-"`
4833
4834
4835
4836
4837
4838 ForceSendFields []string `json:"-"`
4839
4840
4841
4842
4843 NullFields []string `json:"-"`
4844 }
4845
4846 func (s *GoogleCloudDataplexV1Lake) MarshalJSON() ([]byte, error) {
4847 type NoMethod GoogleCloudDataplexV1Lake
4848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4849 }
4850
4851
4852
4853 type GoogleCloudDataplexV1LakeMetastore struct {
4854
4855
4856
4857
4858 Service string `json:"service,omitempty"`
4859
4860
4861
4862
4863
4864 ForceSendFields []string `json:"-"`
4865
4866
4867
4868
4869 NullFields []string `json:"-"`
4870 }
4871
4872 func (s *GoogleCloudDataplexV1LakeMetastore) MarshalJSON() ([]byte, error) {
4873 type NoMethod GoogleCloudDataplexV1LakeMetastore
4874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4875 }
4876
4877
4878
4879 type GoogleCloudDataplexV1LakeMetastoreStatus struct {
4880
4881 Endpoint string `json:"endpoint,omitempty"`
4882
4883 Message string `json:"message,omitempty"`
4884
4885
4886
4887
4888
4889
4890
4891
4892 State string `json:"state,omitempty"`
4893
4894 UpdateTime string `json:"updateTime,omitempty"`
4895
4896
4897
4898
4899
4900 ForceSendFields []string `json:"-"`
4901
4902
4903
4904
4905 NullFields []string `json:"-"`
4906 }
4907
4908 func (s *GoogleCloudDataplexV1LakeMetastoreStatus) MarshalJSON() ([]byte, error) {
4909 type NoMethod GoogleCloudDataplexV1LakeMetastoreStatus
4910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4911 }
4912
4913
4914 type GoogleCloudDataplexV1ListActionsResponse struct {
4915
4916 Actions []*GoogleCloudDataplexV1Action `json:"actions,omitempty"`
4917
4918
4919 NextPageToken string `json:"nextPageToken,omitempty"`
4920
4921
4922 googleapi.ServerResponse `json:"-"`
4923
4924
4925
4926
4927
4928 ForceSendFields []string `json:"-"`
4929
4930
4931
4932
4933 NullFields []string `json:"-"`
4934 }
4935
4936 func (s *GoogleCloudDataplexV1ListActionsResponse) MarshalJSON() ([]byte, error) {
4937 type NoMethod GoogleCloudDataplexV1ListActionsResponse
4938 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4939 }
4940
4941
4942 type GoogleCloudDataplexV1ListAspectTypesResponse struct {
4943
4944 AspectTypes []*GoogleCloudDataplexV1AspectType `json:"aspectTypes,omitempty"`
4945
4946
4947 NextPageToken string `json:"nextPageToken,omitempty"`
4948
4949 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
4950
4951
4952 googleapi.ServerResponse `json:"-"`
4953
4954
4955
4956
4957
4958 ForceSendFields []string `json:"-"`
4959
4960
4961
4962
4963 NullFields []string `json:"-"`
4964 }
4965
4966 func (s *GoogleCloudDataplexV1ListAspectTypesResponse) MarshalJSON() ([]byte, error) {
4967 type NoMethod GoogleCloudDataplexV1ListAspectTypesResponse
4968 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4969 }
4970
4971
4972 type GoogleCloudDataplexV1ListAssetsResponse struct {
4973
4974 Assets []*GoogleCloudDataplexV1Asset `json:"assets,omitempty"`
4975
4976
4977 NextPageToken string `json:"nextPageToken,omitempty"`
4978
4979
4980 googleapi.ServerResponse `json:"-"`
4981
4982
4983
4984
4985
4986 ForceSendFields []string `json:"-"`
4987
4988
4989
4990
4991 NullFields []string `json:"-"`
4992 }
4993
4994 func (s *GoogleCloudDataplexV1ListAssetsResponse) MarshalJSON() ([]byte, error) {
4995 type NoMethod GoogleCloudDataplexV1ListAssetsResponse
4996 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4997 }
4998
4999
5000 type GoogleCloudDataplexV1ListContentResponse struct {
5001
5002 Content []*GoogleCloudDataplexV1Content `json:"content,omitempty"`
5003
5004
5005 NextPageToken string `json:"nextPageToken,omitempty"`
5006
5007
5008 googleapi.ServerResponse `json:"-"`
5009
5010
5011
5012
5013
5014 ForceSendFields []string `json:"-"`
5015
5016
5017
5018
5019 NullFields []string `json:"-"`
5020 }
5021
5022 func (s *GoogleCloudDataplexV1ListContentResponse) MarshalJSON() ([]byte, error) {
5023 type NoMethod GoogleCloudDataplexV1ListContentResponse
5024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5025 }
5026
5027
5028
5029 type GoogleCloudDataplexV1ListDataAttributeBindingsResponse struct {
5030
5031
5032 DataAttributeBindings []*GoogleCloudDataplexV1DataAttributeBinding `json:"dataAttributeBindings,omitempty"`
5033
5034
5035 NextPageToken string `json:"nextPageToken,omitempty"`
5036
5037 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5038
5039
5040 googleapi.ServerResponse `json:"-"`
5041
5042
5043
5044
5045
5046 ForceSendFields []string `json:"-"`
5047
5048
5049
5050
5051 NullFields []string `json:"-"`
5052 }
5053
5054 func (s *GoogleCloudDataplexV1ListDataAttributeBindingsResponse) MarshalJSON() ([]byte, error) {
5055 type NoMethod GoogleCloudDataplexV1ListDataAttributeBindingsResponse
5056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5057 }
5058
5059
5060
5061 type GoogleCloudDataplexV1ListDataAttributesResponse struct {
5062
5063 DataAttributes []*GoogleCloudDataplexV1DataAttribute `json:"dataAttributes,omitempty"`
5064
5065
5066 NextPageToken string `json:"nextPageToken,omitempty"`
5067
5068 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5069
5070
5071 googleapi.ServerResponse `json:"-"`
5072
5073
5074
5075
5076
5077 ForceSendFields []string `json:"-"`
5078
5079
5080
5081
5082 NullFields []string `json:"-"`
5083 }
5084
5085 func (s *GoogleCloudDataplexV1ListDataAttributesResponse) MarshalJSON() ([]byte, error) {
5086 type NoMethod GoogleCloudDataplexV1ListDataAttributesResponse
5087 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5088 }
5089
5090
5091 type GoogleCloudDataplexV1ListDataScanJobsResponse struct {
5092
5093 DataScanJobs []*GoogleCloudDataplexV1DataScanJob `json:"dataScanJobs,omitempty"`
5094
5095
5096 NextPageToken string `json:"nextPageToken,omitempty"`
5097
5098
5099 googleapi.ServerResponse `json:"-"`
5100
5101
5102
5103
5104
5105 ForceSendFields []string `json:"-"`
5106
5107
5108
5109
5110 NullFields []string `json:"-"`
5111 }
5112
5113 func (s *GoogleCloudDataplexV1ListDataScanJobsResponse) MarshalJSON() ([]byte, error) {
5114 type NoMethod GoogleCloudDataplexV1ListDataScanJobsResponse
5115 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5116 }
5117
5118
5119 type GoogleCloudDataplexV1ListDataScansResponse struct {
5120
5121 DataScans []*GoogleCloudDataplexV1DataScan `json:"dataScans,omitempty"`
5122
5123
5124 NextPageToken string `json:"nextPageToken,omitempty"`
5125
5126 Unreachable []string `json:"unreachable,omitempty"`
5127
5128
5129 googleapi.ServerResponse `json:"-"`
5130
5131
5132
5133
5134
5135 ForceSendFields []string `json:"-"`
5136
5137
5138
5139
5140 NullFields []string `json:"-"`
5141 }
5142
5143 func (s *GoogleCloudDataplexV1ListDataScansResponse) MarshalJSON() ([]byte, error) {
5144 type NoMethod GoogleCloudDataplexV1ListDataScansResponse
5145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5146 }
5147
5148
5149
5150 type GoogleCloudDataplexV1ListDataTaxonomiesResponse struct {
5151
5152 DataTaxonomies []*GoogleCloudDataplexV1DataTaxonomy `json:"dataTaxonomies,omitempty"`
5153
5154
5155 NextPageToken string `json:"nextPageToken,omitempty"`
5156
5157 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5158
5159
5160 googleapi.ServerResponse `json:"-"`
5161
5162
5163
5164
5165
5166 ForceSendFields []string `json:"-"`
5167
5168
5169
5170
5171 NullFields []string `json:"-"`
5172 }
5173
5174 func (s *GoogleCloudDataplexV1ListDataTaxonomiesResponse) MarshalJSON() ([]byte, error) {
5175 type NoMethod GoogleCloudDataplexV1ListDataTaxonomiesResponse
5176 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5177 }
5178
5179
5180 type GoogleCloudDataplexV1ListEntitiesResponse struct {
5181
5182 Entities []*GoogleCloudDataplexV1Entity `json:"entities,omitempty"`
5183
5184
5185 NextPageToken string `json:"nextPageToken,omitempty"`
5186
5187
5188 googleapi.ServerResponse `json:"-"`
5189
5190
5191
5192
5193
5194 ForceSendFields []string `json:"-"`
5195
5196
5197
5198
5199 NullFields []string `json:"-"`
5200 }
5201
5202 func (s *GoogleCloudDataplexV1ListEntitiesResponse) MarshalJSON() ([]byte, error) {
5203 type NoMethod GoogleCloudDataplexV1ListEntitiesResponse
5204 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5205 }
5206
5207 type GoogleCloudDataplexV1ListEntriesResponse struct {
5208
5209 Entries []*GoogleCloudDataplexV1Entry `json:"entries,omitempty"`
5210
5211 NextPageToken string `json:"nextPageToken,omitempty"`
5212
5213
5214 googleapi.ServerResponse `json:"-"`
5215
5216
5217
5218
5219
5220 ForceSendFields []string `json:"-"`
5221
5222
5223
5224
5225 NullFields []string `json:"-"`
5226 }
5227
5228 func (s *GoogleCloudDataplexV1ListEntriesResponse) MarshalJSON() ([]byte, error) {
5229 type NoMethod GoogleCloudDataplexV1ListEntriesResponse
5230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5231 }
5232
5233
5234 type GoogleCloudDataplexV1ListEntryGroupsResponse struct {
5235
5236 EntryGroups []*GoogleCloudDataplexV1EntryGroup `json:"entryGroups,omitempty"`
5237
5238
5239 NextPageToken string `json:"nextPageToken,omitempty"`
5240
5241 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5242
5243
5244 googleapi.ServerResponse `json:"-"`
5245
5246
5247
5248
5249
5250 ForceSendFields []string `json:"-"`
5251
5252
5253
5254
5255 NullFields []string `json:"-"`
5256 }
5257
5258 func (s *GoogleCloudDataplexV1ListEntryGroupsResponse) MarshalJSON() ([]byte, error) {
5259 type NoMethod GoogleCloudDataplexV1ListEntryGroupsResponse
5260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5261 }
5262
5263
5264 type GoogleCloudDataplexV1ListEntryTypesResponse struct {
5265
5266 EntryTypes []*GoogleCloudDataplexV1EntryType `json:"entryTypes,omitempty"`
5267
5268
5269 NextPageToken string `json:"nextPageToken,omitempty"`
5270
5271 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5272
5273
5274 googleapi.ServerResponse `json:"-"`
5275
5276
5277
5278
5279
5280 ForceSendFields []string `json:"-"`
5281
5282
5283
5284
5285 NullFields []string `json:"-"`
5286 }
5287
5288 func (s *GoogleCloudDataplexV1ListEntryTypesResponse) MarshalJSON() ([]byte, error) {
5289 type NoMethod GoogleCloudDataplexV1ListEntryTypesResponse
5290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5291 }
5292
5293
5294 type GoogleCloudDataplexV1ListEnvironmentsResponse struct {
5295
5296 Environments []*GoogleCloudDataplexV1Environment `json:"environments,omitempty"`
5297
5298
5299 NextPageToken string `json:"nextPageToken,omitempty"`
5300
5301
5302 googleapi.ServerResponse `json:"-"`
5303
5304
5305
5306
5307
5308 ForceSendFields []string `json:"-"`
5309
5310
5311
5312
5313 NullFields []string `json:"-"`
5314 }
5315
5316 func (s *GoogleCloudDataplexV1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
5317 type NoMethod GoogleCloudDataplexV1ListEnvironmentsResponse
5318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5319 }
5320
5321
5322 type GoogleCloudDataplexV1ListJobsResponse struct {
5323
5324 Jobs []*GoogleCloudDataplexV1Job `json:"jobs,omitempty"`
5325
5326
5327 NextPageToken string `json:"nextPageToken,omitempty"`
5328
5329
5330 googleapi.ServerResponse `json:"-"`
5331
5332
5333
5334
5335
5336 ForceSendFields []string `json:"-"`
5337
5338
5339
5340
5341 NullFields []string `json:"-"`
5342 }
5343
5344 func (s *GoogleCloudDataplexV1ListJobsResponse) MarshalJSON() ([]byte, error) {
5345 type NoMethod GoogleCloudDataplexV1ListJobsResponse
5346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5347 }
5348
5349
5350 type GoogleCloudDataplexV1ListLakesResponse struct {
5351
5352 Lakes []*GoogleCloudDataplexV1Lake `json:"lakes,omitempty"`
5353
5354
5355 NextPageToken string `json:"nextPageToken,omitempty"`
5356
5357 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5358
5359
5360 googleapi.ServerResponse `json:"-"`
5361
5362
5363
5364
5365
5366 ForceSendFields []string `json:"-"`
5367
5368
5369
5370
5371 NullFields []string `json:"-"`
5372 }
5373
5374 func (s *GoogleCloudDataplexV1ListLakesResponse) MarshalJSON() ([]byte, error) {
5375 type NoMethod GoogleCloudDataplexV1ListLakesResponse
5376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5377 }
5378
5379
5380
5381 type GoogleCloudDataplexV1ListPartitionsResponse struct {
5382
5383
5384 NextPageToken string `json:"nextPageToken,omitempty"`
5385
5386 Partitions []*GoogleCloudDataplexV1Partition `json:"partitions,omitempty"`
5387
5388
5389 googleapi.ServerResponse `json:"-"`
5390
5391
5392
5393
5394
5395 ForceSendFields []string `json:"-"`
5396
5397
5398
5399
5400 NullFields []string `json:"-"`
5401 }
5402
5403 func (s *GoogleCloudDataplexV1ListPartitionsResponse) MarshalJSON() ([]byte, error) {
5404 type NoMethod GoogleCloudDataplexV1ListPartitionsResponse
5405 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5406 }
5407
5408
5409 type GoogleCloudDataplexV1ListSessionsResponse struct {
5410
5411
5412 NextPageToken string `json:"nextPageToken,omitempty"`
5413
5414 Sessions []*GoogleCloudDataplexV1Session `json:"sessions,omitempty"`
5415
5416
5417 googleapi.ServerResponse `json:"-"`
5418
5419
5420
5421
5422
5423 ForceSendFields []string `json:"-"`
5424
5425
5426
5427
5428 NullFields []string `json:"-"`
5429 }
5430
5431 func (s *GoogleCloudDataplexV1ListSessionsResponse) MarshalJSON() ([]byte, error) {
5432 type NoMethod GoogleCloudDataplexV1ListSessionsResponse
5433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5434 }
5435
5436
5437 type GoogleCloudDataplexV1ListTasksResponse struct {
5438
5439
5440 NextPageToken string `json:"nextPageToken,omitempty"`
5441
5442 Tasks []*GoogleCloudDataplexV1Task `json:"tasks,omitempty"`
5443
5444 UnreachableLocations []string `json:"unreachableLocations,omitempty"`
5445
5446
5447 googleapi.ServerResponse `json:"-"`
5448
5449
5450
5451
5452
5453 ForceSendFields []string `json:"-"`
5454
5455
5456
5457
5458 NullFields []string `json:"-"`
5459 }
5460
5461 func (s *GoogleCloudDataplexV1ListTasksResponse) MarshalJSON() ([]byte, error) {
5462 type NoMethod GoogleCloudDataplexV1ListTasksResponse
5463 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5464 }
5465
5466
5467 type GoogleCloudDataplexV1ListZonesResponse struct {
5468
5469
5470 NextPageToken string `json:"nextPageToken,omitempty"`
5471
5472 Zones []*GoogleCloudDataplexV1Zone `json:"zones,omitempty"`
5473
5474
5475 googleapi.ServerResponse `json:"-"`
5476
5477
5478
5479
5480
5481 ForceSendFields []string `json:"-"`
5482
5483
5484
5485
5486 NullFields []string `json:"-"`
5487 }
5488
5489 func (s *GoogleCloudDataplexV1ListZonesResponse) MarshalJSON() ([]byte, error) {
5490 type NoMethod GoogleCloudDataplexV1ListZonesResponse
5491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5492 }
5493
5494
5495
5496 type GoogleCloudDataplexV1OperationMetadata struct {
5497
5498 ApiVersion string `json:"apiVersion,omitempty"`
5499
5500 CreateTime string `json:"createTime,omitempty"`
5501
5502 EndTime string `json:"endTime,omitempty"`
5503
5504
5505
5506
5507 RequestedCancellation bool `json:"requestedCancellation,omitempty"`
5508
5509 StatusMessage string `json:"statusMessage,omitempty"`
5510
5511
5512 Target string `json:"target,omitempty"`
5513
5514 Verb string `json:"verb,omitempty"`
5515
5516
5517
5518
5519
5520 ForceSendFields []string `json:"-"`
5521
5522
5523
5524
5525 NullFields []string `json:"-"`
5526 }
5527
5528 func (s *GoogleCloudDataplexV1OperationMetadata) MarshalJSON() ([]byte, error) {
5529 type NoMethod GoogleCloudDataplexV1OperationMetadata
5530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5531 }
5532
5533
5534
5535 type GoogleCloudDataplexV1Partition struct {
5536
5537 Etag string `json:"etag,omitempty"`
5538
5539
5540
5541 Location string `json:"location,omitempty"`
5542
5543
5544
5545
5546
5547 Name string `json:"name,omitempty"`
5548
5549
5550 Values []string `json:"values,omitempty"`
5551
5552
5553 googleapi.ServerResponse `json:"-"`
5554
5555
5556
5557
5558
5559 ForceSendFields []string `json:"-"`
5560
5561
5562
5563
5564 NullFields []string `json:"-"`
5565 }
5566
5567 func (s *GoogleCloudDataplexV1Partition) MarshalJSON() ([]byte, error) {
5568 type NoMethod GoogleCloudDataplexV1Partition
5569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5570 }
5571
5572
5573
5574
5575 type GoogleCloudDataplexV1ResourceAccessSpec struct {
5576
5577
5578 Owners []string `json:"owners,omitempty"`
5579
5580
5581
5582 Readers []string `json:"readers,omitempty"`
5583
5584
5585 Writers []string `json:"writers,omitempty"`
5586
5587
5588
5589
5590
5591 ForceSendFields []string `json:"-"`
5592
5593
5594
5595
5596 NullFields []string `json:"-"`
5597 }
5598
5599 func (s *GoogleCloudDataplexV1ResourceAccessSpec) MarshalJSON() ([]byte, error) {
5600 type NoMethod GoogleCloudDataplexV1ResourceAccessSpec
5601 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5602 }
5603
5604
5605 type GoogleCloudDataplexV1RunDataScanRequest struct {
5606 }
5607
5608
5609 type GoogleCloudDataplexV1RunDataScanResponse struct {
5610
5611 Job *GoogleCloudDataplexV1DataScanJob `json:"job,omitempty"`
5612
5613
5614 googleapi.ServerResponse `json:"-"`
5615
5616
5617
5618
5619
5620 ForceSendFields []string `json:"-"`
5621
5622
5623
5624
5625 NullFields []string `json:"-"`
5626 }
5627
5628 func (s *GoogleCloudDataplexV1RunDataScanResponse) MarshalJSON() ([]byte, error) {
5629 type NoMethod GoogleCloudDataplexV1RunDataScanResponse
5630 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5631 }
5632
5633 type GoogleCloudDataplexV1RunTaskRequest struct {
5634
5635
5636
5637
5638
5639
5640
5641 Args map[string]string `json:"args,omitempty"`
5642
5643
5644
5645
5646
5647
5648
5649 Labels map[string]string `json:"labels,omitempty"`
5650
5651
5652
5653
5654
5655 ForceSendFields []string `json:"-"`
5656
5657
5658
5659
5660 NullFields []string `json:"-"`
5661 }
5662
5663 func (s *GoogleCloudDataplexV1RunTaskRequest) MarshalJSON() ([]byte, error) {
5664 type NoMethod GoogleCloudDataplexV1RunTaskRequest
5665 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5666 }
5667
5668 type GoogleCloudDataplexV1RunTaskResponse struct {
5669
5670 Job *GoogleCloudDataplexV1Job `json:"job,omitempty"`
5671
5672
5673 googleapi.ServerResponse `json:"-"`
5674
5675
5676
5677
5678
5679 ForceSendFields []string `json:"-"`
5680
5681
5682
5683
5684 NullFields []string `json:"-"`
5685 }
5686
5687 func (s *GoogleCloudDataplexV1RunTaskResponse) MarshalJSON() ([]byte, error) {
5688 type NoMethod GoogleCloudDataplexV1RunTaskResponse
5689 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5690 }
5691
5692
5693
5694 type GoogleCloudDataplexV1ScannedData struct {
5695
5696 IncrementalField *GoogleCloudDataplexV1ScannedDataIncrementalField `json:"incrementalField,omitempty"`
5697
5698
5699
5700
5701
5702 ForceSendFields []string `json:"-"`
5703
5704
5705
5706
5707 NullFields []string `json:"-"`
5708 }
5709
5710 func (s *GoogleCloudDataplexV1ScannedData) MarshalJSON() ([]byte, error) {
5711 type NoMethod GoogleCloudDataplexV1ScannedData
5712 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5713 }
5714
5715
5716
5717 type GoogleCloudDataplexV1ScannedDataIncrementalField struct {
5718
5719 End string `json:"end,omitempty"`
5720
5721
5722 Field string `json:"field,omitempty"`
5723
5724 Start string `json:"start,omitempty"`
5725
5726
5727
5728
5729
5730 ForceSendFields []string `json:"-"`
5731
5732
5733
5734
5735 NullFields []string `json:"-"`
5736 }
5737
5738 func (s *GoogleCloudDataplexV1ScannedDataIncrementalField) MarshalJSON() ([]byte, error) {
5739 type NoMethod GoogleCloudDataplexV1ScannedDataIncrementalField
5740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5741 }
5742
5743
5744
5745 type GoogleCloudDataplexV1Schema struct {
5746
5747
5748 Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"`
5749
5750
5751
5752 PartitionFields []*GoogleCloudDataplexV1SchemaPartitionField `json:"partitionFields,omitempty"`
5753
5754
5755
5756
5757
5758
5759
5760
5761 PartitionStyle string `json:"partitionStyle,omitempty"`
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 UserManaged bool `json:"userManaged,omitempty"`
5772
5773
5774
5775
5776
5777 ForceSendFields []string `json:"-"`
5778
5779
5780
5781
5782 NullFields []string `json:"-"`
5783 }
5784
5785 func (s *GoogleCloudDataplexV1Schema) MarshalJSON() ([]byte, error) {
5786 type NoMethod GoogleCloudDataplexV1Schema
5787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5788 }
5789
5790
5791
5792
5793
5794 type GoogleCloudDataplexV1SchemaPartitionField struct {
5795
5796
5797
5798 Name string `json:"name,omitempty"`
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 Type string `json:"type,omitempty"`
5820
5821
5822
5823
5824
5825 ForceSendFields []string `json:"-"`
5826
5827
5828
5829
5830 NullFields []string `json:"-"`
5831 }
5832
5833 func (s *GoogleCloudDataplexV1SchemaPartitionField) MarshalJSON() ([]byte, error) {
5834 type NoMethod GoogleCloudDataplexV1SchemaPartitionField
5835 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5836 }
5837
5838
5839
5840 type GoogleCloudDataplexV1SchemaSchemaField struct {
5841
5842
5843 Description string `json:"description,omitempty"`
5844
5845 Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"`
5846
5847
5848
5849
5850
5851
5852
5853
5854 Mode string `json:"mode,omitempty"`
5855
5856
5857
5858 Name string `json:"name,omitempty"`
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 Type string `json:"type,omitempty"`
5880
5881
5882
5883
5884
5885 ForceSendFields []string `json:"-"`
5886
5887
5888
5889
5890 NullFields []string `json:"-"`
5891 }
5892
5893 func (s *GoogleCloudDataplexV1SchemaSchemaField) MarshalJSON() ([]byte, error) {
5894 type NoMethod GoogleCloudDataplexV1SchemaSchemaField
5895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5896 }
5897
5898 type GoogleCloudDataplexV1SearchEntriesResponse struct {
5899
5900 NextPageToken string `json:"nextPageToken,omitempty"`
5901
5902 Results []*GoogleCloudDataplexV1SearchEntriesResult `json:"results,omitempty"`
5903
5904
5905 TotalSize int64 `json:"totalSize,omitempty"`
5906
5907
5908 Unreachable []string `json:"unreachable,omitempty"`
5909
5910
5911 googleapi.ServerResponse `json:"-"`
5912
5913
5914
5915
5916
5917 ForceSendFields []string `json:"-"`
5918
5919
5920
5921
5922 NullFields []string `json:"-"`
5923 }
5924
5925 func (s *GoogleCloudDataplexV1SearchEntriesResponse) MarshalJSON() ([]byte, error) {
5926 type NoMethod GoogleCloudDataplexV1SearchEntriesResponse
5927 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5928 }
5929
5930
5931
5932 type GoogleCloudDataplexV1SearchEntriesResult struct {
5933
5934 DataplexEntry *GoogleCloudDataplexV1Entry `json:"dataplexEntry,omitempty"`
5935
5936 LinkedResource string `json:"linkedResource,omitempty"`
5937
5938 Snippets *GoogleCloudDataplexV1SearchEntriesResultSnippets `json:"snippets,omitempty"`
5939
5940
5941
5942
5943
5944 ForceSendFields []string `json:"-"`
5945
5946
5947
5948
5949 NullFields []string `json:"-"`
5950 }
5951
5952 func (s *GoogleCloudDataplexV1SearchEntriesResult) MarshalJSON() ([]byte, error) {
5953 type NoMethod GoogleCloudDataplexV1SearchEntriesResult
5954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5955 }
5956
5957
5958
5959 type GoogleCloudDataplexV1SearchEntriesResultSnippets struct {
5960
5961 DataplexEntry *GoogleCloudDataplexV1Entry `json:"dataplexEntry,omitempty"`
5962
5963
5964
5965
5966
5967 ForceSendFields []string `json:"-"`
5968
5969
5970
5971
5972 NullFields []string `json:"-"`
5973 }
5974
5975 func (s *GoogleCloudDataplexV1SearchEntriesResultSnippets) MarshalJSON() ([]byte, error) {
5976 type NoMethod GoogleCloudDataplexV1SearchEntriesResultSnippets
5977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5978 }
5979
5980
5981
5982 type GoogleCloudDataplexV1Session struct {
5983
5984 CreateTime string `json:"createTime,omitempty"`
5985
5986
5987
5988 Name string `json:"name,omitempty"`
5989
5990
5991
5992
5993
5994
5995
5996
5997 State string `json:"state,omitempty"`
5998
5999 UserId string `json:"userId,omitempty"`
6000
6001
6002
6003
6004
6005 ForceSendFields []string `json:"-"`
6006
6007
6008
6009
6010 NullFields []string `json:"-"`
6011 }
6012
6013 func (s *GoogleCloudDataplexV1Session) MarshalJSON() ([]byte, error) {
6014 type NoMethod GoogleCloudDataplexV1Session
6015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6016 }
6017
6018
6019
6020 type GoogleCloudDataplexV1SessionEvent struct {
6021
6022 EventSucceeded bool `json:"eventSucceeded,omitempty"`
6023
6024
6025 FastStartupEnabled bool `json:"fastStartupEnabled,omitempty"`
6026
6027 Message string `json:"message,omitempty"`
6028
6029 Query *GoogleCloudDataplexV1SessionEventQueryDetail `json:"query,omitempty"`
6030
6031 SessionId string `json:"sessionId,omitempty"`
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 Type string `json:"type,omitempty"`
6042
6043
6044 UnassignedDuration string `json:"unassignedDuration,omitempty"`
6045
6046
6047 UserId string `json:"userId,omitempty"`
6048
6049
6050
6051
6052
6053 ForceSendFields []string `json:"-"`
6054
6055
6056
6057
6058 NullFields []string `json:"-"`
6059 }
6060
6061 func (s *GoogleCloudDataplexV1SessionEvent) MarshalJSON() ([]byte, error) {
6062 type NoMethod GoogleCloudDataplexV1SessionEvent
6063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6064 }
6065
6066
6067
6068 type GoogleCloudDataplexV1SessionEventQueryDetail struct {
6069
6070 DataProcessedBytes int64 `json:"dataProcessedBytes,omitempty,string"`
6071
6072 Duration string `json:"duration,omitempty"`
6073
6074
6075
6076
6077
6078
6079 Engine string `json:"engine,omitempty"`
6080
6081 QueryId string `json:"queryId,omitempty"`
6082
6083 QueryText string `json:"queryText,omitempty"`
6084
6085 ResultSizeBytes int64 `json:"resultSizeBytes,omitempty,string"`
6086
6087
6088
6089
6090
6091 ForceSendFields []string `json:"-"`
6092
6093
6094
6095
6096 NullFields []string `json:"-"`
6097 }
6098
6099 func (s *GoogleCloudDataplexV1SessionEventQueryDetail) MarshalJSON() ([]byte, error) {
6100 type NoMethod GoogleCloudDataplexV1SessionEventQueryDetail
6101 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6102 }
6103
6104
6105
6106 type GoogleCloudDataplexV1StorageAccess struct {
6107
6108
6109
6110
6111
6112
6113
6114
6115 Read string `json:"read,omitempty"`
6116
6117
6118
6119
6120
6121 ForceSendFields []string `json:"-"`
6122
6123
6124
6125
6126 NullFields []string `json:"-"`
6127 }
6128
6129 func (s *GoogleCloudDataplexV1StorageAccess) MarshalJSON() ([]byte, error) {
6130 type NoMethod GoogleCloudDataplexV1StorageAccess
6131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6132 }
6133
6134
6135
6136 type GoogleCloudDataplexV1StorageFormat struct {
6137
6138
6139
6140
6141
6142
6143
6144
6145 CompressionFormat string `json:"compressionFormat,omitempty"`
6146
6147 Csv *GoogleCloudDataplexV1StorageFormatCsvOptions `json:"csv,omitempty"`
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 Format string `json:"format,omitempty"`
6166
6167 Iceberg *GoogleCloudDataplexV1StorageFormatIcebergOptions `json:"iceberg,omitempty"`
6168
6169 Json *GoogleCloudDataplexV1StorageFormatJsonOptions `json:"json,omitempty"`
6170
6171
6172
6173
6174
6175
6176 MimeType string `json:"mimeType,omitempty"`
6177
6178
6179
6180
6181
6182 ForceSendFields []string `json:"-"`
6183
6184
6185
6186
6187 NullFields []string `json:"-"`
6188 }
6189
6190 func (s *GoogleCloudDataplexV1StorageFormat) MarshalJSON() ([]byte, error) {
6191 type NoMethod GoogleCloudDataplexV1StorageFormat
6192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6193 }
6194
6195
6196
6197 type GoogleCloudDataplexV1StorageFormatCsvOptions struct {
6198
6199 Delimiter string `json:"delimiter,omitempty"`
6200
6201
6202 Encoding string `json:"encoding,omitempty"`
6203
6204
6205 HeaderRows int64 `json:"headerRows,omitempty"`
6206
6207
6208
6209 Quote string `json:"quote,omitempty"`
6210
6211
6212
6213
6214
6215 ForceSendFields []string `json:"-"`
6216
6217
6218
6219
6220 NullFields []string `json:"-"`
6221 }
6222
6223 func (s *GoogleCloudDataplexV1StorageFormatCsvOptions) MarshalJSON() ([]byte, error) {
6224 type NoMethod GoogleCloudDataplexV1StorageFormatCsvOptions
6225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6226 }
6227
6228
6229
6230 type GoogleCloudDataplexV1StorageFormatIcebergOptions struct {
6231
6232
6233 MetadataLocation string `json:"metadataLocation,omitempty"`
6234
6235
6236
6237
6238
6239 ForceSendFields []string `json:"-"`
6240
6241
6242
6243
6244 NullFields []string `json:"-"`
6245 }
6246
6247 func (s *GoogleCloudDataplexV1StorageFormatIcebergOptions) MarshalJSON() ([]byte, error) {
6248 type NoMethod GoogleCloudDataplexV1StorageFormatIcebergOptions
6249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6250 }
6251
6252
6253 type GoogleCloudDataplexV1StorageFormatJsonOptions struct {
6254
6255
6256 Encoding string `json:"encoding,omitempty"`
6257
6258
6259
6260
6261
6262 ForceSendFields []string `json:"-"`
6263
6264
6265
6266
6267 NullFields []string `json:"-"`
6268 }
6269
6270 func (s *GoogleCloudDataplexV1StorageFormatJsonOptions) MarshalJSON() ([]byte, error) {
6271 type NoMethod GoogleCloudDataplexV1StorageFormatJsonOptions
6272 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6273 }
6274
6275
6276 type GoogleCloudDataplexV1Task struct {
6277
6278 CreateTime string `json:"createTime,omitempty"`
6279
6280 Description string `json:"description,omitempty"`
6281
6282 DisplayName string `json:"displayName,omitempty"`
6283
6284 ExecutionSpec *GoogleCloudDataplexV1TaskExecutionSpec `json:"executionSpec,omitempty"`
6285
6286 ExecutionStatus *GoogleCloudDataplexV1TaskExecutionStatus `json:"executionStatus,omitempty"`
6287
6288 Labels map[string]string `json:"labels,omitempty"`
6289
6290
6291
6292 Name string `json:"name,omitempty"`
6293
6294 Notebook *GoogleCloudDataplexV1TaskNotebookTaskConfig `json:"notebook,omitempty"`
6295
6296 Spark *GoogleCloudDataplexV1TaskSparkTaskConfig `json:"spark,omitempty"`
6297
6298
6299
6300
6301
6302
6303
6304
6305 State string `json:"state,omitempty"`
6306
6307
6308 TriggerSpec *GoogleCloudDataplexV1TaskTriggerSpec `json:"triggerSpec,omitempty"`
6309
6310
6311 Uid string `json:"uid,omitempty"`
6312
6313 UpdateTime string `json:"updateTime,omitempty"`
6314
6315
6316 googleapi.ServerResponse `json:"-"`
6317
6318
6319
6320
6321
6322 ForceSendFields []string `json:"-"`
6323
6324
6325
6326
6327 NullFields []string `json:"-"`
6328 }
6329
6330 func (s *GoogleCloudDataplexV1Task) MarshalJSON() ([]byte, error) {
6331 type NoMethod GoogleCloudDataplexV1Task
6332 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6333 }
6334
6335
6336
6337 type GoogleCloudDataplexV1TaskExecutionSpec struct {
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 Args map[string]string `json:"args,omitempty"`
6348
6349
6350
6351 KmsKey string `json:"kmsKey,omitempty"`
6352
6353
6354 MaxJobExecutionLifetime string `json:"maxJobExecutionLifetime,omitempty"`
6355
6356
6357
6358 Project string `json:"project,omitempty"`
6359
6360
6361 ServiceAccount string `json:"serviceAccount,omitempty"`
6362
6363
6364
6365
6366
6367 ForceSendFields []string `json:"-"`
6368
6369
6370
6371
6372 NullFields []string `json:"-"`
6373 }
6374
6375 func (s *GoogleCloudDataplexV1TaskExecutionSpec) MarshalJSON() ([]byte, error) {
6376 type NoMethod GoogleCloudDataplexV1TaskExecutionSpec
6377 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6378 }
6379
6380
6381
6382 type GoogleCloudDataplexV1TaskExecutionStatus struct {
6383
6384 LatestJob *GoogleCloudDataplexV1Job `json:"latestJob,omitempty"`
6385
6386 UpdateTime string `json:"updateTime,omitempty"`
6387
6388
6389
6390
6391
6392 ForceSendFields []string `json:"-"`
6393
6394
6395
6396
6397 NullFields []string `json:"-"`
6398 }
6399
6400 func (s *GoogleCloudDataplexV1TaskExecutionStatus) MarshalJSON() ([]byte, error) {
6401 type NoMethod GoogleCloudDataplexV1TaskExecutionStatus
6402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6403 }
6404
6405
6406
6407 type GoogleCloudDataplexV1TaskInfrastructureSpec struct {
6408
6409 Batch *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources `json:"batch,omitempty"`
6410
6411 ContainerImage *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime `json:"containerImage,omitempty"`
6412
6413 VpcNetwork *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork `json:"vpcNetwork,omitempty"`
6414
6415
6416
6417
6418
6419 ForceSendFields []string `json:"-"`
6420
6421
6422
6423
6424 NullFields []string `json:"-"`
6425 }
6426
6427 func (s *GoogleCloudDataplexV1TaskInfrastructureSpec) MarshalJSON() ([]byte, error) {
6428 type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpec
6429 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6430 }
6431
6432
6433
6434 type GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources struct {
6435
6436
6437 ExecutorsCount int64 `json:"executorsCount,omitempty"`
6438
6439
6440
6441 MaxExecutorsCount int64 `json:"maxExecutorsCount,omitempty"`
6442
6443
6444
6445
6446
6447 ForceSendFields []string `json:"-"`
6448
6449
6450
6451
6452 NullFields []string `json:"-"`
6453 }
6454
6455 func (s *GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources) MarshalJSON() ([]byte, error) {
6456 type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecBatchComputeResources
6457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6458 }
6459
6460
6461
6462 type GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime struct {
6463
6464 Image string `json:"image,omitempty"`
6465
6466
6467
6468 JavaJars []string `json:"javaJars,omitempty"`
6469
6470
6471
6472
6473
6474
6475 Properties map[string]string `json:"properties,omitempty"`
6476
6477
6478
6479 PythonPackages []string `json:"pythonPackages,omitempty"`
6480
6481
6482
6483
6484
6485 ForceSendFields []string `json:"-"`
6486
6487
6488
6489
6490 NullFields []string `json:"-"`
6491 }
6492
6493 func (s *GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime) MarshalJSON() ([]byte, error) {
6494 type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecContainerImageRuntime
6495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6496 }
6497
6498
6499
6500 type GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork struct {
6501
6502
6503 Network string `json:"network,omitempty"`
6504
6505 NetworkTags []string `json:"networkTags,omitempty"`
6506
6507 SubNetwork string `json:"subNetwork,omitempty"`
6508
6509
6510
6511
6512
6513 ForceSendFields []string `json:"-"`
6514
6515
6516
6517
6518 NullFields []string `json:"-"`
6519 }
6520
6521 func (s *GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork) MarshalJSON() ([]byte, error) {
6522 type NoMethod GoogleCloudDataplexV1TaskInfrastructureSpecVpcNetwork
6523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6524 }
6525
6526
6527
6528 type GoogleCloudDataplexV1TaskNotebookTaskConfig struct {
6529
6530
6531
6532 ArchiveUris []string `json:"archiveUris,omitempty"`
6533
6534
6535 FileUris []string `json:"fileUris,omitempty"`
6536
6537
6538 InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"`
6539
6540
6541
6542 Notebook string `json:"notebook,omitempty"`
6543
6544
6545
6546
6547
6548 ForceSendFields []string `json:"-"`
6549
6550
6551
6552
6553 NullFields []string `json:"-"`
6554 }
6555
6556 func (s *GoogleCloudDataplexV1TaskNotebookTaskConfig) MarshalJSON() ([]byte, error) {
6557 type NoMethod GoogleCloudDataplexV1TaskNotebookTaskConfig
6558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6559 }
6560
6561
6562
6563 type GoogleCloudDataplexV1TaskSparkTaskConfig struct {
6564
6565
6566
6567 ArchiveUris []string `json:"archiveUris,omitempty"`
6568
6569
6570 FileUris []string `json:"fileUris,omitempty"`
6571
6572
6573 InfrastructureSpec *GoogleCloudDataplexV1TaskInfrastructureSpec `json:"infrastructureSpec,omitempty"`
6574
6575
6576
6577
6578 MainClass string `json:"mainClass,omitempty"`
6579
6580
6581
6582 MainJarFileUri string `json:"mainJarFileUri,omitempty"`
6583
6584
6585
6586 PythonScriptFile string `json:"pythonScriptFile,omitempty"`
6587
6588
6589 SqlScript string `json:"sqlScript,omitempty"`
6590
6591
6592
6593
6594 SqlScriptFile string `json:"sqlScriptFile,omitempty"`
6595
6596
6597
6598
6599
6600 ForceSendFields []string `json:"-"`
6601
6602
6603
6604
6605 NullFields []string `json:"-"`
6606 }
6607
6608 func (s *GoogleCloudDataplexV1TaskSparkTaskConfig) MarshalJSON() ([]byte, error) {
6609 type NoMethod GoogleCloudDataplexV1TaskSparkTaskConfig
6610 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6611 }
6612
6613
6614 type GoogleCloudDataplexV1TaskTriggerSpec struct {
6615
6616
6617
6618 Disabled bool `json:"disabled,omitempty"`
6619
6620
6621 MaxRetries int64 `json:"maxRetries,omitempty"`
6622
6623
6624
6625
6626
6627
6628
6629 Schedule string `json:"schedule,omitempty"`
6630
6631
6632
6633 StartTime string `json:"startTime,omitempty"`
6634
6635
6636
6637
6638
6639
6640 Type string `json:"type,omitempty"`
6641
6642
6643
6644
6645
6646 ForceSendFields []string `json:"-"`
6647
6648
6649
6650
6651 NullFields []string `json:"-"`
6652 }
6653
6654 func (s *GoogleCloudDataplexV1TaskTriggerSpec) MarshalJSON() ([]byte, error) {
6655 type NoMethod GoogleCloudDataplexV1TaskTriggerSpec
6656 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6657 }
6658
6659
6660 type GoogleCloudDataplexV1Trigger struct {
6661
6662 OnDemand *GoogleCloudDataplexV1TriggerOnDemand `json:"onDemand,omitempty"`
6663
6664 Schedule *GoogleCloudDataplexV1TriggerSchedule `json:"schedule,omitempty"`
6665
6666
6667
6668
6669
6670 ForceSendFields []string `json:"-"`
6671
6672
6673
6674
6675 NullFields []string `json:"-"`
6676 }
6677
6678 func (s *GoogleCloudDataplexV1Trigger) MarshalJSON() ([]byte, error) {
6679 type NoMethod GoogleCloudDataplexV1Trigger
6680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6681 }
6682
6683
6684
6685 type GoogleCloudDataplexV1TriggerOnDemand struct {
6686 }
6687
6688
6689
6690 type GoogleCloudDataplexV1TriggerSchedule struct {
6691
6692
6693
6694
6695
6696
6697
6698
6699 Cron string `json:"cron,omitempty"`
6700
6701
6702
6703
6704
6705 ForceSendFields []string `json:"-"`
6706
6707
6708
6709
6710 NullFields []string `json:"-"`
6711 }
6712
6713 func (s *GoogleCloudDataplexV1TriggerSchedule) MarshalJSON() ([]byte, error) {
6714 type NoMethod GoogleCloudDataplexV1TriggerSchedule
6715 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6716 }
6717
6718
6719
6720
6721
6722 type GoogleCloudDataplexV1Zone struct {
6723
6724
6725 AssetStatus *GoogleCloudDataplexV1AssetStatus `json:"assetStatus,omitempty"`
6726
6727 CreateTime string `json:"createTime,omitempty"`
6728
6729 Description string `json:"description,omitempty"`
6730
6731
6732 DiscoverySpec *GoogleCloudDataplexV1ZoneDiscoverySpec `json:"discoverySpec,omitempty"`
6733
6734 DisplayName string `json:"displayName,omitempty"`
6735
6736 Labels map[string]string `json:"labels,omitempty"`
6737
6738
6739
6740 Name string `json:"name,omitempty"`
6741
6742
6743 ResourceSpec *GoogleCloudDataplexV1ZoneResourceSpec `json:"resourceSpec,omitempty"`
6744
6745
6746
6747
6748
6749
6750
6751
6752 State string `json:"state,omitempty"`
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 Type string `json:"type,omitempty"`
6764
6765
6766 Uid string `json:"uid,omitempty"`
6767
6768 UpdateTime string `json:"updateTime,omitempty"`
6769
6770
6771 googleapi.ServerResponse `json:"-"`
6772
6773
6774
6775
6776
6777 ForceSendFields []string `json:"-"`
6778
6779
6780
6781
6782 NullFields []string `json:"-"`
6783 }
6784
6785 func (s *GoogleCloudDataplexV1Zone) MarshalJSON() ([]byte, error) {
6786 type NoMethod GoogleCloudDataplexV1Zone
6787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6788 }
6789
6790
6791
6792 type GoogleCloudDataplexV1ZoneDiscoverySpec struct {
6793
6794 CsvOptions *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions `json:"csvOptions,omitempty"`
6795
6796 Enabled bool `json:"enabled,omitempty"`
6797
6798
6799
6800
6801 ExcludePatterns []string `json:"excludePatterns,omitempty"`
6802
6803
6804
6805
6806
6807 IncludePatterns []string `json:"includePatterns,omitempty"`
6808
6809 JsonOptions *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions `json:"jsonOptions,omitempty"`
6810
6811
6812
6813
6814
6815
6816
6817
6818 Schedule string `json:"schedule,omitempty"`
6819
6820
6821
6822
6823
6824 ForceSendFields []string `json:"-"`
6825
6826
6827
6828
6829 NullFields []string `json:"-"`
6830 }
6831
6832 func (s *GoogleCloudDataplexV1ZoneDiscoverySpec) MarshalJSON() ([]byte, error) {
6833 type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpec
6834 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6835 }
6836
6837
6838
6839 type GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions struct {
6840
6841
6842 Delimiter string `json:"delimiter,omitempty"`
6843
6844
6845 DisableTypeInference bool `json:"disableTypeInference,omitempty"`
6846
6847
6848 Encoding string `json:"encoding,omitempty"`
6849
6850
6851 HeaderRows int64 `json:"headerRows,omitempty"`
6852
6853
6854
6855
6856
6857 ForceSendFields []string `json:"-"`
6858
6859
6860
6861
6862 NullFields []string `json:"-"`
6863 }
6864
6865 func (s *GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions) MarshalJSON() ([]byte, error) {
6866 type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecCsvOptions
6867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6868 }
6869
6870
6871
6872 type GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions struct {
6873
6874
6875
6876 DisableTypeInference bool `json:"disableTypeInference,omitempty"`
6877
6878
6879 Encoding string `json:"encoding,omitempty"`
6880
6881
6882
6883
6884
6885 ForceSendFields []string `json:"-"`
6886
6887
6888
6889
6890 NullFields []string `json:"-"`
6891 }
6892
6893 func (s *GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions) MarshalJSON() ([]byte, error) {
6894 type NoMethod GoogleCloudDataplexV1ZoneDiscoverySpecJsonOptions
6895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6896 }
6897
6898
6899
6900 type GoogleCloudDataplexV1ZoneResourceSpec struct {
6901
6902
6903
6904
6905
6906
6907
6908
6909 LocationType string `json:"locationType,omitempty"`
6910
6911
6912
6913
6914
6915 ForceSendFields []string `json:"-"`
6916
6917
6918
6919
6920 NullFields []string `json:"-"`
6921 }
6922
6923 func (s *GoogleCloudDataplexV1ZoneResourceSpec) MarshalJSON() ([]byte, error) {
6924 type NoMethod GoogleCloudDataplexV1ZoneResourceSpec
6925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6926 }
6927
6928
6929
6930 type GoogleCloudLocationListLocationsResponse struct {
6931
6932
6933 Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
6934
6935 NextPageToken string `json:"nextPageToken,omitempty"`
6936
6937
6938 googleapi.ServerResponse `json:"-"`
6939
6940
6941
6942
6943
6944 ForceSendFields []string `json:"-"`
6945
6946
6947
6948
6949 NullFields []string `json:"-"`
6950 }
6951
6952 func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
6953 type NoMethod GoogleCloudLocationListLocationsResponse
6954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6955 }
6956
6957
6958
6959 type GoogleCloudLocationLocation struct {
6960
6961
6962 DisplayName string `json:"displayName,omitempty"`
6963
6964
6965 Labels map[string]string `json:"labels,omitempty"`
6966
6967 LocationId string `json:"locationId,omitempty"`
6968
6969
6970 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6971
6972
6973 Name string `json:"name,omitempty"`
6974
6975
6976 googleapi.ServerResponse `json:"-"`
6977
6978
6979
6980
6981
6982 ForceSendFields []string `json:"-"`
6983
6984
6985
6986
6987 NullFields []string `json:"-"`
6988 }
6989
6990 func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
6991 type NoMethod GoogleCloudLocationLocation
6992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6993 }
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 type GoogleIamV1AuditConfig struct {
7012
7013 AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
7014
7015
7016
7017 Service string `json:"service,omitempty"`
7018
7019
7020
7021
7022
7023 ForceSendFields []string `json:"-"`
7024
7025
7026
7027
7028 NullFields []string `json:"-"`
7029 }
7030
7031 func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
7032 type NoMethod GoogleIamV1AuditConfig
7033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7034 }
7035
7036
7037
7038
7039
7040
7041 type GoogleIamV1AuditLogConfig struct {
7042
7043
7044 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
7045
7046
7047
7048
7049
7050
7051
7052 LogType string `json:"logType,omitempty"`
7053
7054
7055
7056
7057
7058 ForceSendFields []string `json:"-"`
7059
7060
7061
7062
7063 NullFields []string `json:"-"`
7064 }
7065
7066 func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
7067 type NoMethod GoogleIamV1AuditLogConfig
7068 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7069 }
7070
7071
7072 type GoogleIamV1Binding struct {
7073
7074
7075
7076
7077
7078
7079
7080
7081 Condition *GoogleTypeExpr `json:"condition,omitempty"`
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 Members []string `json:"members,omitempty"`
7142
7143
7144
7145
7146
7147
7148 Role string `json:"role,omitempty"`
7149
7150
7151
7152
7153
7154 ForceSendFields []string `json:"-"`
7155
7156
7157
7158
7159 NullFields []string `json:"-"`
7160 }
7161
7162 func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
7163 type NoMethod GoogleIamV1Binding
7164 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7165 }
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 type GoogleIamV1Policy struct {
7198
7199 AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
7200
7201
7202
7203
7204
7205
7206
7207
7208 Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 Etag string `json:"etag,omitempty"`
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236 Version int64 `json:"version,omitempty"`
7237
7238
7239 googleapi.ServerResponse `json:"-"`
7240
7241
7242
7243
7244
7245 ForceSendFields []string `json:"-"`
7246
7247
7248
7249
7250 NullFields []string `json:"-"`
7251 }
7252
7253 func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
7254 type NoMethod GoogleIamV1Policy
7255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7256 }
7257
7258
7259 type GoogleIamV1SetIamPolicyRequest struct {
7260
7261
7262
7263
7264 Policy *GoogleIamV1Policy `json:"policy,omitempty"`
7265
7266
7267
7268 UpdateMask string `json:"updateMask,omitempty"`
7269
7270
7271
7272
7273
7274 ForceSendFields []string `json:"-"`
7275
7276
7277
7278
7279 NullFields []string `json:"-"`
7280 }
7281
7282 func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
7283 type NoMethod GoogleIamV1SetIamPolicyRequest
7284 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7285 }
7286
7287
7288
7289 type GoogleIamV1TestIamPermissionsRequest struct {
7290
7291
7292
7293
7294 Permissions []string `json:"permissions,omitempty"`
7295
7296
7297
7298
7299
7300 ForceSendFields []string `json:"-"`
7301
7302
7303
7304
7305 NullFields []string `json:"-"`
7306 }
7307
7308 func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
7309 type NoMethod GoogleIamV1TestIamPermissionsRequest
7310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7311 }
7312
7313
7314
7315 type GoogleIamV1TestIamPermissionsResponse struct {
7316
7317
7318 Permissions []string `json:"permissions,omitempty"`
7319
7320
7321 googleapi.ServerResponse `json:"-"`
7322
7323
7324
7325
7326
7327 ForceSendFields []string `json:"-"`
7328
7329
7330
7331
7332 NullFields []string `json:"-"`
7333 }
7334
7335 func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
7336 type NoMethod GoogleIamV1TestIamPermissionsResponse
7337 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7338 }
7339
7340
7341
7342 type GoogleLongrunningCancelOperationRequest struct {
7343 }
7344
7345
7346
7347 type GoogleLongrunningListOperationsResponse struct {
7348
7349 NextPageToken string `json:"nextPageToken,omitempty"`
7350
7351
7352 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
7353
7354
7355 googleapi.ServerResponse `json:"-"`
7356
7357
7358
7359
7360
7361 ForceSendFields []string `json:"-"`
7362
7363
7364
7365
7366 NullFields []string `json:"-"`
7367 }
7368
7369 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
7370 type NoMethod GoogleLongrunningListOperationsResponse
7371 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7372 }
7373
7374
7375
7376 type GoogleLongrunningOperation struct {
7377
7378
7379 Done bool `json:"done,omitempty"`
7380
7381 Error *GoogleRpcStatus `json:"error,omitempty"`
7382
7383
7384
7385
7386 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
7387
7388
7389
7390 Name string `json:"name,omitempty"`
7391
7392
7393
7394
7395
7396
7397
7398 Response googleapi.RawMessage `json:"response,omitempty"`
7399
7400
7401 googleapi.ServerResponse `json:"-"`
7402
7403
7404
7405
7406
7407 ForceSendFields []string `json:"-"`
7408
7409
7410
7411
7412 NullFields []string `json:"-"`
7413 }
7414
7415 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
7416 type NoMethod GoogleLongrunningOperation
7417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7418 }
7419
7420
7421
7422
7423
7424
7425
7426 type GoogleRpcStatus struct {
7427
7428 Code int64 `json:"code,omitempty"`
7429
7430
7431 Details []googleapi.RawMessage `json:"details,omitempty"`
7432
7433
7434
7435 Message string `json:"message,omitempty"`
7436
7437
7438
7439
7440
7441 ForceSendFields []string `json:"-"`
7442
7443
7444
7445
7446 NullFields []string `json:"-"`
7447 }
7448
7449 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
7450 type NoMethod GoogleRpcStatus
7451 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7452 }
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 type GoogleTypeExpr struct {
7471
7472
7473 Description string `json:"description,omitempty"`
7474
7475
7476 Expression string `json:"expression,omitempty"`
7477
7478
7479 Location string `json:"location,omitempty"`
7480
7481
7482
7483 Title string `json:"title,omitempty"`
7484
7485
7486
7487
7488
7489 ForceSendFields []string `json:"-"`
7490
7491
7492
7493
7494 NullFields []string `json:"-"`
7495 }
7496
7497 func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
7498 type NoMethod GoogleTypeExpr
7499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7500 }
7501
7502 type ProjectsLocationsGetCall struct {
7503 s *Service
7504 name string
7505 urlParams_ gensupport.URLParams
7506 ifNoneMatch_ string
7507 ctx_ context.Context
7508 header_ http.Header
7509 }
7510
7511
7512
7513
7514 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
7515 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7516 c.name = name
7517 return c
7518 }
7519
7520
7521
7522
7523 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
7524 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7525 return c
7526 }
7527
7528
7529
7530
7531 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
7532 c.ifNoneMatch_ = entityTag
7533 return c
7534 }
7535
7536
7537 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
7538 c.ctx_ = ctx
7539 return c
7540 }
7541
7542
7543
7544 func (c *ProjectsLocationsGetCall) Header() http.Header {
7545 if c.header_ == nil {
7546 c.header_ = make(http.Header)
7547 }
7548 return c.header_
7549 }
7550
7551 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
7552 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7553 if c.ifNoneMatch_ != "" {
7554 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7555 }
7556 var body io.Reader = nil
7557 c.urlParams_.Set("alt", alt)
7558 c.urlParams_.Set("prettyPrint", "false")
7559 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7560 urls += "?" + c.urlParams_.Encode()
7561 req, err := http.NewRequest("GET", urls, body)
7562 if err != nil {
7563 return nil, err
7564 }
7565 req.Header = reqHeaders
7566 googleapi.Expand(req.URL, map[string]string{
7567 "name": c.name,
7568 })
7569 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7570 }
7571
7572
7573
7574
7575
7576
7577
7578 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
7579 gensupport.SetOptions(c.urlParams_, opts...)
7580 res, err := c.doRequest("json")
7581 if res != nil && res.StatusCode == http.StatusNotModified {
7582 if res.Body != nil {
7583 res.Body.Close()
7584 }
7585 return nil, gensupport.WrapError(&googleapi.Error{
7586 Code: res.StatusCode,
7587 Header: res.Header,
7588 })
7589 }
7590 if err != nil {
7591 return nil, err
7592 }
7593 defer googleapi.CloseBody(res)
7594 if err := googleapi.CheckResponse(res); err != nil {
7595 return nil, gensupport.WrapError(err)
7596 }
7597 ret := &GoogleCloudLocationLocation{
7598 ServerResponse: googleapi.ServerResponse{
7599 Header: res.Header,
7600 HTTPStatusCode: res.StatusCode,
7601 },
7602 }
7603 target := &ret
7604 if err := gensupport.DecodeResponse(target, res); err != nil {
7605 return nil, err
7606 }
7607 return ret, nil
7608 }
7609
7610 type ProjectsLocationsListCall struct {
7611 s *Service
7612 name string
7613 urlParams_ gensupport.URLParams
7614 ifNoneMatch_ string
7615 ctx_ context.Context
7616 header_ http.Header
7617 }
7618
7619
7620
7621
7622 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
7623 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7624 c.name = name
7625 return c
7626 }
7627
7628
7629
7630
7631
7632 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
7633 c.urlParams_.Set("filter", filter)
7634 return c
7635 }
7636
7637
7638
7639 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
7640 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7641 return c
7642 }
7643
7644
7645
7646
7647 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
7648 c.urlParams_.Set("pageToken", pageToken)
7649 return c
7650 }
7651
7652
7653
7654
7655 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
7656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7657 return c
7658 }
7659
7660
7661
7662
7663 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
7664 c.ifNoneMatch_ = entityTag
7665 return c
7666 }
7667
7668
7669 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
7670 c.ctx_ = ctx
7671 return c
7672 }
7673
7674
7675
7676 func (c *ProjectsLocationsListCall) Header() http.Header {
7677 if c.header_ == nil {
7678 c.header_ = make(http.Header)
7679 }
7680 return c.header_
7681 }
7682
7683 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
7684 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7685 if c.ifNoneMatch_ != "" {
7686 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7687 }
7688 var body io.Reader = nil
7689 c.urlParams_.Set("alt", alt)
7690 c.urlParams_.Set("prettyPrint", "false")
7691 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
7692 urls += "?" + c.urlParams_.Encode()
7693 req, err := http.NewRequest("GET", urls, body)
7694 if err != nil {
7695 return nil, err
7696 }
7697 req.Header = reqHeaders
7698 googleapi.Expand(req.URL, map[string]string{
7699 "name": c.name,
7700 })
7701 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7702 }
7703
7704
7705
7706
7707
7708
7709
7710 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
7711 gensupport.SetOptions(c.urlParams_, opts...)
7712 res, err := c.doRequest("json")
7713 if res != nil && res.StatusCode == http.StatusNotModified {
7714 if res.Body != nil {
7715 res.Body.Close()
7716 }
7717 return nil, gensupport.WrapError(&googleapi.Error{
7718 Code: res.StatusCode,
7719 Header: res.Header,
7720 })
7721 }
7722 if err != nil {
7723 return nil, err
7724 }
7725 defer googleapi.CloseBody(res)
7726 if err := googleapi.CheckResponse(res); err != nil {
7727 return nil, gensupport.WrapError(err)
7728 }
7729 ret := &GoogleCloudLocationListLocationsResponse{
7730 ServerResponse: googleapi.ServerResponse{
7731 Header: res.Header,
7732 HTTPStatusCode: res.StatusCode,
7733 },
7734 }
7735 target := &ret
7736 if err := gensupport.DecodeResponse(target, res); err != nil {
7737 return nil, err
7738 }
7739 return ret, nil
7740 }
7741
7742
7743
7744
7745 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
7746 c.ctx_ = ctx
7747 defer c.PageToken(c.urlParams_.Get("pageToken"))
7748 for {
7749 x, err := c.Do()
7750 if err != nil {
7751 return err
7752 }
7753 if err := f(x); err != nil {
7754 return err
7755 }
7756 if x.NextPageToken == "" {
7757 return nil
7758 }
7759 c.PageToken(x.NextPageToken)
7760 }
7761 }
7762
7763 type ProjectsLocationsLookupEntryCall struct {
7764 s *Service
7765 name string
7766 urlParams_ gensupport.URLParams
7767 ifNoneMatch_ string
7768 ctx_ context.Context
7769 header_ http.Header
7770 }
7771
7772
7773
7774
7775
7776 func (r *ProjectsLocationsService) LookupEntry(name string) *ProjectsLocationsLookupEntryCall {
7777 c := &ProjectsLocationsLookupEntryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7778 c.name = name
7779 return c
7780 }
7781
7782
7783
7784
7785 func (c *ProjectsLocationsLookupEntryCall) AspectTypes(aspectTypes ...string) *ProjectsLocationsLookupEntryCall {
7786 c.urlParams_.SetMulti("aspectTypes", append([]string{}, aspectTypes...))
7787 return c
7788 }
7789
7790
7791
7792
7793
7794 func (c *ProjectsLocationsLookupEntryCall) Entry(entry string) *ProjectsLocationsLookupEntryCall {
7795 c.urlParams_.Set("entry", entry)
7796 return c
7797 }
7798
7799
7800
7801
7802 func (c *ProjectsLocationsLookupEntryCall) Paths(paths ...string) *ProjectsLocationsLookupEntryCall {
7803 c.urlParams_.SetMulti("paths", append([]string{}, paths...))
7804 return c
7805 }
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 func (c *ProjectsLocationsLookupEntryCall) View(view string) *ProjectsLocationsLookupEntryCall {
7826 c.urlParams_.Set("view", view)
7827 return c
7828 }
7829
7830
7831
7832
7833 func (c *ProjectsLocationsLookupEntryCall) Fields(s ...googleapi.Field) *ProjectsLocationsLookupEntryCall {
7834 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7835 return c
7836 }
7837
7838
7839
7840
7841 func (c *ProjectsLocationsLookupEntryCall) IfNoneMatch(entityTag string) *ProjectsLocationsLookupEntryCall {
7842 c.ifNoneMatch_ = entityTag
7843 return c
7844 }
7845
7846
7847 func (c *ProjectsLocationsLookupEntryCall) Context(ctx context.Context) *ProjectsLocationsLookupEntryCall {
7848 c.ctx_ = ctx
7849 return c
7850 }
7851
7852
7853
7854 func (c *ProjectsLocationsLookupEntryCall) Header() http.Header {
7855 if c.header_ == nil {
7856 c.header_ = make(http.Header)
7857 }
7858 return c.header_
7859 }
7860
7861 func (c *ProjectsLocationsLookupEntryCall) doRequest(alt string) (*http.Response, error) {
7862 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7863 if c.ifNoneMatch_ != "" {
7864 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7865 }
7866 var body io.Reader = nil
7867 c.urlParams_.Set("alt", alt)
7868 c.urlParams_.Set("prettyPrint", "false")
7869 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:lookupEntry")
7870 urls += "?" + c.urlParams_.Encode()
7871 req, err := http.NewRequest("GET", urls, body)
7872 if err != nil {
7873 return nil, err
7874 }
7875 req.Header = reqHeaders
7876 googleapi.Expand(req.URL, map[string]string{
7877 "name": c.name,
7878 })
7879 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7880 }
7881
7882
7883
7884
7885
7886
7887
7888 func (c *ProjectsLocationsLookupEntryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
7889 gensupport.SetOptions(c.urlParams_, opts...)
7890 res, err := c.doRequest("json")
7891 if res != nil && res.StatusCode == http.StatusNotModified {
7892 if res.Body != nil {
7893 res.Body.Close()
7894 }
7895 return nil, gensupport.WrapError(&googleapi.Error{
7896 Code: res.StatusCode,
7897 Header: res.Header,
7898 })
7899 }
7900 if err != nil {
7901 return nil, err
7902 }
7903 defer googleapi.CloseBody(res)
7904 if err := googleapi.CheckResponse(res); err != nil {
7905 return nil, gensupport.WrapError(err)
7906 }
7907 ret := &GoogleCloudDataplexV1Entry{
7908 ServerResponse: googleapi.ServerResponse{
7909 Header: res.Header,
7910 HTTPStatusCode: res.StatusCode,
7911 },
7912 }
7913 target := &ret
7914 if err := gensupport.DecodeResponse(target, res); err != nil {
7915 return nil, err
7916 }
7917 return ret, nil
7918 }
7919
7920 type ProjectsLocationsSearchEntriesCall struct {
7921 s *Service
7922 name string
7923 urlParams_ gensupport.URLParams
7924 ctx_ context.Context
7925 header_ http.Header
7926 }
7927
7928
7929
7930
7931
7932 func (r *ProjectsLocationsService) SearchEntries(name string) *ProjectsLocationsSearchEntriesCall {
7933 c := &ProjectsLocationsSearchEntriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7934 c.name = name
7935 return c
7936 }
7937
7938
7939
7940 func (c *ProjectsLocationsSearchEntriesCall) OrderBy(orderBy string) *ProjectsLocationsSearchEntriesCall {
7941 c.urlParams_.Set("orderBy", orderBy)
7942 return c
7943 }
7944
7945
7946 func (c *ProjectsLocationsSearchEntriesCall) PageSize(pageSize int64) *ProjectsLocationsSearchEntriesCall {
7947 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7948 return c
7949 }
7950
7951
7952 func (c *ProjectsLocationsSearchEntriesCall) PageToken(pageToken string) *ProjectsLocationsSearchEntriesCall {
7953 c.urlParams_.Set("pageToken", pageToken)
7954 return c
7955 }
7956
7957
7958
7959 func (c *ProjectsLocationsSearchEntriesCall) Query(query string) *ProjectsLocationsSearchEntriesCall {
7960 c.urlParams_.Set("query", query)
7961 return c
7962 }
7963
7964
7965
7966
7967
7968 func (c *ProjectsLocationsSearchEntriesCall) Scope(scope string) *ProjectsLocationsSearchEntriesCall {
7969 c.urlParams_.Set("scope", scope)
7970 return c
7971 }
7972
7973
7974
7975
7976 func (c *ProjectsLocationsSearchEntriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchEntriesCall {
7977 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7978 return c
7979 }
7980
7981
7982 func (c *ProjectsLocationsSearchEntriesCall) Context(ctx context.Context) *ProjectsLocationsSearchEntriesCall {
7983 c.ctx_ = ctx
7984 return c
7985 }
7986
7987
7988
7989 func (c *ProjectsLocationsSearchEntriesCall) Header() http.Header {
7990 if c.header_ == nil {
7991 c.header_ = make(http.Header)
7992 }
7993 return c.header_
7994 }
7995
7996 func (c *ProjectsLocationsSearchEntriesCall) doRequest(alt string) (*http.Response, error) {
7997 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7998 var body io.Reader = nil
7999 c.urlParams_.Set("alt", alt)
8000 c.urlParams_.Set("prettyPrint", "false")
8001 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:searchEntries")
8002 urls += "?" + c.urlParams_.Encode()
8003 req, err := http.NewRequest("POST", urls, body)
8004 if err != nil {
8005 return nil, err
8006 }
8007 req.Header = reqHeaders
8008 googleapi.Expand(req.URL, map[string]string{
8009 "name": c.name,
8010 })
8011 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8012 }
8013
8014
8015
8016
8017
8018
8019
8020 func (c *ProjectsLocationsSearchEntriesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1SearchEntriesResponse, error) {
8021 gensupport.SetOptions(c.urlParams_, opts...)
8022 res, err := c.doRequest("json")
8023 if res != nil && res.StatusCode == http.StatusNotModified {
8024 if res.Body != nil {
8025 res.Body.Close()
8026 }
8027 return nil, gensupport.WrapError(&googleapi.Error{
8028 Code: res.StatusCode,
8029 Header: res.Header,
8030 })
8031 }
8032 if err != nil {
8033 return nil, err
8034 }
8035 defer googleapi.CloseBody(res)
8036 if err := googleapi.CheckResponse(res); err != nil {
8037 return nil, gensupport.WrapError(err)
8038 }
8039 ret := &GoogleCloudDataplexV1SearchEntriesResponse{
8040 ServerResponse: googleapi.ServerResponse{
8041 Header: res.Header,
8042 HTTPStatusCode: res.StatusCode,
8043 },
8044 }
8045 target := &ret
8046 if err := gensupport.DecodeResponse(target, res); err != nil {
8047 return nil, err
8048 }
8049 return ret, nil
8050 }
8051
8052
8053
8054
8055 func (c *ProjectsLocationsSearchEntriesCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1SearchEntriesResponse) error) error {
8056 c.ctx_ = ctx
8057 defer c.PageToken(c.urlParams_.Get("pageToken"))
8058 for {
8059 x, err := c.Do()
8060 if err != nil {
8061 return err
8062 }
8063 if err := f(x); err != nil {
8064 return err
8065 }
8066 if x.NextPageToken == "" {
8067 return nil
8068 }
8069 c.PageToken(x.NextPageToken)
8070 }
8071 }
8072
8073 type ProjectsLocationsAspectTypesCreateCall struct {
8074 s *Service
8075 parent string
8076 googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType
8077 urlParams_ gensupport.URLParams
8078 ctx_ context.Context
8079 header_ http.Header
8080 }
8081
8082
8083
8084
8085
8086
8087 func (r *ProjectsLocationsAspectTypesService) Create(parent string, googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType) *ProjectsLocationsAspectTypesCreateCall {
8088 c := &ProjectsLocationsAspectTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8089 c.parent = parent
8090 c.googleclouddataplexv1aspecttype = googleclouddataplexv1aspecttype
8091 return c
8092 }
8093
8094
8095
8096 func (c *ProjectsLocationsAspectTypesCreateCall) AspectTypeId(aspectTypeId string) *ProjectsLocationsAspectTypesCreateCall {
8097 c.urlParams_.Set("aspectTypeId", aspectTypeId)
8098 return c
8099 }
8100
8101
8102
8103 func (c *ProjectsLocationsAspectTypesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAspectTypesCreateCall {
8104 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
8105 return c
8106 }
8107
8108
8109
8110
8111 func (c *ProjectsLocationsAspectTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesCreateCall {
8112 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8113 return c
8114 }
8115
8116
8117 func (c *ProjectsLocationsAspectTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesCreateCall {
8118 c.ctx_ = ctx
8119 return c
8120 }
8121
8122
8123
8124 func (c *ProjectsLocationsAspectTypesCreateCall) Header() http.Header {
8125 if c.header_ == nil {
8126 c.header_ = make(http.Header)
8127 }
8128 return c.header_
8129 }
8130
8131 func (c *ProjectsLocationsAspectTypesCreateCall) doRequest(alt string) (*http.Response, error) {
8132 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8133 var body io.Reader = nil
8134 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1aspecttype)
8135 if err != nil {
8136 return nil, err
8137 }
8138 c.urlParams_.Set("alt", alt)
8139 c.urlParams_.Set("prettyPrint", "false")
8140 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aspectTypes")
8141 urls += "?" + c.urlParams_.Encode()
8142 req, err := http.NewRequest("POST", urls, body)
8143 if err != nil {
8144 return nil, err
8145 }
8146 req.Header = reqHeaders
8147 googleapi.Expand(req.URL, map[string]string{
8148 "parent": c.parent,
8149 })
8150 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8151 }
8152
8153
8154
8155
8156
8157
8158
8159 func (c *ProjectsLocationsAspectTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8160 gensupport.SetOptions(c.urlParams_, opts...)
8161 res, err := c.doRequest("json")
8162 if res != nil && res.StatusCode == http.StatusNotModified {
8163 if res.Body != nil {
8164 res.Body.Close()
8165 }
8166 return nil, gensupport.WrapError(&googleapi.Error{
8167 Code: res.StatusCode,
8168 Header: res.Header,
8169 })
8170 }
8171 if err != nil {
8172 return nil, err
8173 }
8174 defer googleapi.CloseBody(res)
8175 if err := googleapi.CheckResponse(res); err != nil {
8176 return nil, gensupport.WrapError(err)
8177 }
8178 ret := &GoogleLongrunningOperation{
8179 ServerResponse: googleapi.ServerResponse{
8180 Header: res.Header,
8181 HTTPStatusCode: res.StatusCode,
8182 },
8183 }
8184 target := &ret
8185 if err := gensupport.DecodeResponse(target, res); err != nil {
8186 return nil, err
8187 }
8188 return ret, nil
8189 }
8190
8191 type ProjectsLocationsAspectTypesDeleteCall struct {
8192 s *Service
8193 name string
8194 urlParams_ gensupport.URLParams
8195 ctx_ context.Context
8196 header_ http.Header
8197 }
8198
8199
8200
8201
8202
8203
8204 func (r *ProjectsLocationsAspectTypesService) Delete(name string) *ProjectsLocationsAspectTypesDeleteCall {
8205 c := &ProjectsLocationsAspectTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8206 c.name = name
8207 return c
8208 }
8209
8210
8211
8212
8213 func (c *ProjectsLocationsAspectTypesDeleteCall) Etag(etag string) *ProjectsLocationsAspectTypesDeleteCall {
8214 c.urlParams_.Set("etag", etag)
8215 return c
8216 }
8217
8218
8219
8220
8221 func (c *ProjectsLocationsAspectTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesDeleteCall {
8222 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8223 return c
8224 }
8225
8226
8227 func (c *ProjectsLocationsAspectTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesDeleteCall {
8228 c.ctx_ = ctx
8229 return c
8230 }
8231
8232
8233
8234 func (c *ProjectsLocationsAspectTypesDeleteCall) Header() http.Header {
8235 if c.header_ == nil {
8236 c.header_ = make(http.Header)
8237 }
8238 return c.header_
8239 }
8240
8241 func (c *ProjectsLocationsAspectTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
8242 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8243 var body io.Reader = nil
8244 c.urlParams_.Set("alt", alt)
8245 c.urlParams_.Set("prettyPrint", "false")
8246 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8247 urls += "?" + c.urlParams_.Encode()
8248 req, err := http.NewRequest("DELETE", urls, body)
8249 if err != nil {
8250 return nil, err
8251 }
8252 req.Header = reqHeaders
8253 googleapi.Expand(req.URL, map[string]string{
8254 "name": c.name,
8255 })
8256 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8257 }
8258
8259
8260
8261
8262
8263
8264
8265 func (c *ProjectsLocationsAspectTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8266 gensupport.SetOptions(c.urlParams_, opts...)
8267 res, err := c.doRequest("json")
8268 if res != nil && res.StatusCode == http.StatusNotModified {
8269 if res.Body != nil {
8270 res.Body.Close()
8271 }
8272 return nil, gensupport.WrapError(&googleapi.Error{
8273 Code: res.StatusCode,
8274 Header: res.Header,
8275 })
8276 }
8277 if err != nil {
8278 return nil, err
8279 }
8280 defer googleapi.CloseBody(res)
8281 if err := googleapi.CheckResponse(res); err != nil {
8282 return nil, gensupport.WrapError(err)
8283 }
8284 ret := &GoogleLongrunningOperation{
8285 ServerResponse: googleapi.ServerResponse{
8286 Header: res.Header,
8287 HTTPStatusCode: res.StatusCode,
8288 },
8289 }
8290 target := &ret
8291 if err := gensupport.DecodeResponse(target, res); err != nil {
8292 return nil, err
8293 }
8294 return ret, nil
8295 }
8296
8297 type ProjectsLocationsAspectTypesGetCall struct {
8298 s *Service
8299 name string
8300 urlParams_ gensupport.URLParams
8301 ifNoneMatch_ string
8302 ctx_ context.Context
8303 header_ http.Header
8304 }
8305
8306
8307
8308
8309
8310
8311 func (r *ProjectsLocationsAspectTypesService) Get(name string) *ProjectsLocationsAspectTypesGetCall {
8312 c := &ProjectsLocationsAspectTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8313 c.name = name
8314 return c
8315 }
8316
8317
8318
8319
8320 func (c *ProjectsLocationsAspectTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesGetCall {
8321 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8322 return c
8323 }
8324
8325
8326
8327
8328 func (c *ProjectsLocationsAspectTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAspectTypesGetCall {
8329 c.ifNoneMatch_ = entityTag
8330 return c
8331 }
8332
8333
8334 func (c *ProjectsLocationsAspectTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesGetCall {
8335 c.ctx_ = ctx
8336 return c
8337 }
8338
8339
8340
8341 func (c *ProjectsLocationsAspectTypesGetCall) Header() http.Header {
8342 if c.header_ == nil {
8343 c.header_ = make(http.Header)
8344 }
8345 return c.header_
8346 }
8347
8348 func (c *ProjectsLocationsAspectTypesGetCall) doRequest(alt string) (*http.Response, error) {
8349 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8350 if c.ifNoneMatch_ != "" {
8351 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8352 }
8353 var body io.Reader = nil
8354 c.urlParams_.Set("alt", alt)
8355 c.urlParams_.Set("prettyPrint", "false")
8356 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8357 urls += "?" + c.urlParams_.Encode()
8358 req, err := http.NewRequest("GET", urls, body)
8359 if err != nil {
8360 return nil, err
8361 }
8362 req.Header = reqHeaders
8363 googleapi.Expand(req.URL, map[string]string{
8364 "name": c.name,
8365 })
8366 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8367 }
8368
8369
8370
8371
8372
8373
8374
8375 func (c *ProjectsLocationsAspectTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1AspectType, error) {
8376 gensupport.SetOptions(c.urlParams_, opts...)
8377 res, err := c.doRequest("json")
8378 if res != nil && res.StatusCode == http.StatusNotModified {
8379 if res.Body != nil {
8380 res.Body.Close()
8381 }
8382 return nil, gensupport.WrapError(&googleapi.Error{
8383 Code: res.StatusCode,
8384 Header: res.Header,
8385 })
8386 }
8387 if err != nil {
8388 return nil, err
8389 }
8390 defer googleapi.CloseBody(res)
8391 if err := googleapi.CheckResponse(res); err != nil {
8392 return nil, gensupport.WrapError(err)
8393 }
8394 ret := &GoogleCloudDataplexV1AspectType{
8395 ServerResponse: googleapi.ServerResponse{
8396 Header: res.Header,
8397 HTTPStatusCode: res.StatusCode,
8398 },
8399 }
8400 target := &ret
8401 if err := gensupport.DecodeResponse(target, res); err != nil {
8402 return nil, err
8403 }
8404 return ret, nil
8405 }
8406
8407 type ProjectsLocationsAspectTypesGetIamPolicyCall struct {
8408 s *Service
8409 resource string
8410 urlParams_ gensupport.URLParams
8411 ifNoneMatch_ string
8412 ctx_ context.Context
8413 header_ http.Header
8414 }
8415
8416
8417
8418
8419
8420
8421
8422 func (r *ProjectsLocationsAspectTypesService) GetIamPolicy(resource string) *ProjectsLocationsAspectTypesGetIamPolicyCall {
8423 c := &ProjectsLocationsAspectTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8424 c.resource = resource
8425 return c
8426 }
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAspectTypesGetIamPolicyCall {
8441 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
8442 return c
8443 }
8444
8445
8446
8447
8448 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesGetIamPolicyCall {
8449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8450 return c
8451 }
8452
8453
8454
8455
8456 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAspectTypesGetIamPolicyCall {
8457 c.ifNoneMatch_ = entityTag
8458 return c
8459 }
8460
8461
8462 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesGetIamPolicyCall {
8463 c.ctx_ = ctx
8464 return c
8465 }
8466
8467
8468
8469 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Header() http.Header {
8470 if c.header_ == nil {
8471 c.header_ = make(http.Header)
8472 }
8473 return c.header_
8474 }
8475
8476 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8477 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8478 if c.ifNoneMatch_ != "" {
8479 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8480 }
8481 var body io.Reader = nil
8482 c.urlParams_.Set("alt", alt)
8483 c.urlParams_.Set("prettyPrint", "false")
8484 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
8485 urls += "?" + c.urlParams_.Encode()
8486 req, err := http.NewRequest("GET", urls, body)
8487 if err != nil {
8488 return nil, err
8489 }
8490 req.Header = reqHeaders
8491 googleapi.Expand(req.URL, map[string]string{
8492 "resource": c.resource,
8493 })
8494 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8495 }
8496
8497
8498
8499
8500
8501
8502
8503 func (c *ProjectsLocationsAspectTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
8504 gensupport.SetOptions(c.urlParams_, opts...)
8505 res, err := c.doRequest("json")
8506 if res != nil && res.StatusCode == http.StatusNotModified {
8507 if res.Body != nil {
8508 res.Body.Close()
8509 }
8510 return nil, gensupport.WrapError(&googleapi.Error{
8511 Code: res.StatusCode,
8512 Header: res.Header,
8513 })
8514 }
8515 if err != nil {
8516 return nil, err
8517 }
8518 defer googleapi.CloseBody(res)
8519 if err := googleapi.CheckResponse(res); err != nil {
8520 return nil, gensupport.WrapError(err)
8521 }
8522 ret := &GoogleIamV1Policy{
8523 ServerResponse: googleapi.ServerResponse{
8524 Header: res.Header,
8525 HTTPStatusCode: res.StatusCode,
8526 },
8527 }
8528 target := &ret
8529 if err := gensupport.DecodeResponse(target, res); err != nil {
8530 return nil, err
8531 }
8532 return ret, nil
8533 }
8534
8535 type ProjectsLocationsAspectTypesListCall struct {
8536 s *Service
8537 parent string
8538 urlParams_ gensupport.URLParams
8539 ifNoneMatch_ string
8540 ctx_ context.Context
8541 header_ http.Header
8542 }
8543
8544
8545
8546
8547
8548
8549 func (r *ProjectsLocationsAspectTypesService) List(parent string) *ProjectsLocationsAspectTypesListCall {
8550 c := &ProjectsLocationsAspectTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8551 c.parent = parent
8552 return c
8553 }
8554
8555
8556
8557
8558
8559 func (c *ProjectsLocationsAspectTypesListCall) Filter(filter string) *ProjectsLocationsAspectTypesListCall {
8560 c.urlParams_.Set("filter", filter)
8561 return c
8562 }
8563
8564
8565
8566 func (c *ProjectsLocationsAspectTypesListCall) OrderBy(orderBy string) *ProjectsLocationsAspectTypesListCall {
8567 c.urlParams_.Set("orderBy", orderBy)
8568 return c
8569 }
8570
8571
8572
8573
8574
8575 func (c *ProjectsLocationsAspectTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAspectTypesListCall {
8576 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8577 return c
8578 }
8579
8580
8581
8582
8583
8584 func (c *ProjectsLocationsAspectTypesListCall) PageToken(pageToken string) *ProjectsLocationsAspectTypesListCall {
8585 c.urlParams_.Set("pageToken", pageToken)
8586 return c
8587 }
8588
8589
8590
8591
8592 func (c *ProjectsLocationsAspectTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesListCall {
8593 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8594 return c
8595 }
8596
8597
8598
8599
8600 func (c *ProjectsLocationsAspectTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAspectTypesListCall {
8601 c.ifNoneMatch_ = entityTag
8602 return c
8603 }
8604
8605
8606 func (c *ProjectsLocationsAspectTypesListCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesListCall {
8607 c.ctx_ = ctx
8608 return c
8609 }
8610
8611
8612
8613 func (c *ProjectsLocationsAspectTypesListCall) Header() http.Header {
8614 if c.header_ == nil {
8615 c.header_ = make(http.Header)
8616 }
8617 return c.header_
8618 }
8619
8620 func (c *ProjectsLocationsAspectTypesListCall) doRequest(alt string) (*http.Response, error) {
8621 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8622 if c.ifNoneMatch_ != "" {
8623 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8624 }
8625 var body io.Reader = nil
8626 c.urlParams_.Set("alt", alt)
8627 c.urlParams_.Set("prettyPrint", "false")
8628 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aspectTypes")
8629 urls += "?" + c.urlParams_.Encode()
8630 req, err := http.NewRequest("GET", urls, body)
8631 if err != nil {
8632 return nil, err
8633 }
8634 req.Header = reqHeaders
8635 googleapi.Expand(req.URL, map[string]string{
8636 "parent": c.parent,
8637 })
8638 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8639 }
8640
8641
8642
8643
8644
8645
8646
8647 func (c *ProjectsLocationsAspectTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListAspectTypesResponse, error) {
8648 gensupport.SetOptions(c.urlParams_, opts...)
8649 res, err := c.doRequest("json")
8650 if res != nil && res.StatusCode == http.StatusNotModified {
8651 if res.Body != nil {
8652 res.Body.Close()
8653 }
8654 return nil, gensupport.WrapError(&googleapi.Error{
8655 Code: res.StatusCode,
8656 Header: res.Header,
8657 })
8658 }
8659 if err != nil {
8660 return nil, err
8661 }
8662 defer googleapi.CloseBody(res)
8663 if err := googleapi.CheckResponse(res); err != nil {
8664 return nil, gensupport.WrapError(err)
8665 }
8666 ret := &GoogleCloudDataplexV1ListAspectTypesResponse{
8667 ServerResponse: googleapi.ServerResponse{
8668 Header: res.Header,
8669 HTTPStatusCode: res.StatusCode,
8670 },
8671 }
8672 target := &ret
8673 if err := gensupport.DecodeResponse(target, res); err != nil {
8674 return nil, err
8675 }
8676 return ret, nil
8677 }
8678
8679
8680
8681
8682 func (c *ProjectsLocationsAspectTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListAspectTypesResponse) error) error {
8683 c.ctx_ = ctx
8684 defer c.PageToken(c.urlParams_.Get("pageToken"))
8685 for {
8686 x, err := c.Do()
8687 if err != nil {
8688 return err
8689 }
8690 if err := f(x); err != nil {
8691 return err
8692 }
8693 if x.NextPageToken == "" {
8694 return nil
8695 }
8696 c.PageToken(x.NextPageToken)
8697 }
8698 }
8699
8700 type ProjectsLocationsAspectTypesPatchCall struct {
8701 s *Service
8702 name string
8703 googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType
8704 urlParams_ gensupport.URLParams
8705 ctx_ context.Context
8706 header_ http.Header
8707 }
8708
8709
8710
8711
8712
8713
8714
8715 func (r *ProjectsLocationsAspectTypesService) Patch(name string, googleclouddataplexv1aspecttype *GoogleCloudDataplexV1AspectType) *ProjectsLocationsAspectTypesPatchCall {
8716 c := &ProjectsLocationsAspectTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8717 c.name = name
8718 c.googleclouddataplexv1aspecttype = googleclouddataplexv1aspecttype
8719 return c
8720 }
8721
8722
8723
8724 func (c *ProjectsLocationsAspectTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAspectTypesPatchCall {
8725 c.urlParams_.Set("updateMask", updateMask)
8726 return c
8727 }
8728
8729
8730
8731 func (c *ProjectsLocationsAspectTypesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsAspectTypesPatchCall {
8732 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
8733 return c
8734 }
8735
8736
8737
8738
8739 func (c *ProjectsLocationsAspectTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesPatchCall {
8740 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8741 return c
8742 }
8743
8744
8745 func (c *ProjectsLocationsAspectTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesPatchCall {
8746 c.ctx_ = ctx
8747 return c
8748 }
8749
8750
8751
8752 func (c *ProjectsLocationsAspectTypesPatchCall) Header() http.Header {
8753 if c.header_ == nil {
8754 c.header_ = make(http.Header)
8755 }
8756 return c.header_
8757 }
8758
8759 func (c *ProjectsLocationsAspectTypesPatchCall) doRequest(alt string) (*http.Response, error) {
8760 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8761 var body io.Reader = nil
8762 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1aspecttype)
8763 if err != nil {
8764 return nil, err
8765 }
8766 c.urlParams_.Set("alt", alt)
8767 c.urlParams_.Set("prettyPrint", "false")
8768 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8769 urls += "?" + c.urlParams_.Encode()
8770 req, err := http.NewRequest("PATCH", urls, body)
8771 if err != nil {
8772 return nil, err
8773 }
8774 req.Header = reqHeaders
8775 googleapi.Expand(req.URL, map[string]string{
8776 "name": c.name,
8777 })
8778 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8779 }
8780
8781
8782
8783
8784
8785
8786
8787 func (c *ProjectsLocationsAspectTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8788 gensupport.SetOptions(c.urlParams_, opts...)
8789 res, err := c.doRequest("json")
8790 if res != nil && res.StatusCode == http.StatusNotModified {
8791 if res.Body != nil {
8792 res.Body.Close()
8793 }
8794 return nil, gensupport.WrapError(&googleapi.Error{
8795 Code: res.StatusCode,
8796 Header: res.Header,
8797 })
8798 }
8799 if err != nil {
8800 return nil, err
8801 }
8802 defer googleapi.CloseBody(res)
8803 if err := googleapi.CheckResponse(res); err != nil {
8804 return nil, gensupport.WrapError(err)
8805 }
8806 ret := &GoogleLongrunningOperation{
8807 ServerResponse: googleapi.ServerResponse{
8808 Header: res.Header,
8809 HTTPStatusCode: res.StatusCode,
8810 },
8811 }
8812 target := &ret
8813 if err := gensupport.DecodeResponse(target, res); err != nil {
8814 return nil, err
8815 }
8816 return ret, nil
8817 }
8818
8819 type ProjectsLocationsAspectTypesSetIamPolicyCall struct {
8820 s *Service
8821 resource string
8822 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
8823 urlParams_ gensupport.URLParams
8824 ctx_ context.Context
8825 header_ http.Header
8826 }
8827
8828
8829
8830
8831
8832
8833
8834
8835 func (r *ProjectsLocationsAspectTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAspectTypesSetIamPolicyCall {
8836 c := &ProjectsLocationsAspectTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8837 c.resource = resource
8838 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
8839 return c
8840 }
8841
8842
8843
8844
8845 func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesSetIamPolicyCall {
8846 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8847 return c
8848 }
8849
8850
8851 func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesSetIamPolicyCall {
8852 c.ctx_ = ctx
8853 return c
8854 }
8855
8856
8857
8858 func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Header() http.Header {
8859 if c.header_ == nil {
8860 c.header_ = make(http.Header)
8861 }
8862 return c.header_
8863 }
8864
8865 func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8866 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8867 var body io.Reader = nil
8868 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
8869 if err != nil {
8870 return nil, err
8871 }
8872 c.urlParams_.Set("alt", alt)
8873 c.urlParams_.Set("prettyPrint", "false")
8874 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
8875 urls += "?" + c.urlParams_.Encode()
8876 req, err := http.NewRequest("POST", urls, body)
8877 if err != nil {
8878 return nil, err
8879 }
8880 req.Header = reqHeaders
8881 googleapi.Expand(req.URL, map[string]string{
8882 "resource": c.resource,
8883 })
8884 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8885 }
8886
8887
8888
8889
8890
8891
8892
8893 func (c *ProjectsLocationsAspectTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
8894 gensupport.SetOptions(c.urlParams_, opts...)
8895 res, err := c.doRequest("json")
8896 if res != nil && res.StatusCode == http.StatusNotModified {
8897 if res.Body != nil {
8898 res.Body.Close()
8899 }
8900 return nil, gensupport.WrapError(&googleapi.Error{
8901 Code: res.StatusCode,
8902 Header: res.Header,
8903 })
8904 }
8905 if err != nil {
8906 return nil, err
8907 }
8908 defer googleapi.CloseBody(res)
8909 if err := googleapi.CheckResponse(res); err != nil {
8910 return nil, gensupport.WrapError(err)
8911 }
8912 ret := &GoogleIamV1Policy{
8913 ServerResponse: googleapi.ServerResponse{
8914 Header: res.Header,
8915 HTTPStatusCode: res.StatusCode,
8916 },
8917 }
8918 target := &ret
8919 if err := gensupport.DecodeResponse(target, res); err != nil {
8920 return nil, err
8921 }
8922 return ret, nil
8923 }
8924
8925 type ProjectsLocationsAspectTypesTestIamPermissionsCall struct {
8926 s *Service
8927 resource string
8928 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
8929 urlParams_ gensupport.URLParams
8930 ctx_ context.Context
8931 header_ http.Header
8932 }
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944 func (r *ProjectsLocationsAspectTypesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAspectTypesTestIamPermissionsCall {
8945 c := &ProjectsLocationsAspectTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8946 c.resource = resource
8947 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
8948 return c
8949 }
8950
8951
8952
8953
8954 func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAspectTypesTestIamPermissionsCall {
8955 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8956 return c
8957 }
8958
8959
8960 func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAspectTypesTestIamPermissionsCall {
8961 c.ctx_ = ctx
8962 return c
8963 }
8964
8965
8966
8967 func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Header() http.Header {
8968 if c.header_ == nil {
8969 c.header_ = make(http.Header)
8970 }
8971 return c.header_
8972 }
8973
8974 func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
8975 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8976 var body io.Reader = nil
8977 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
8978 if err != nil {
8979 return nil, err
8980 }
8981 c.urlParams_.Set("alt", alt)
8982 c.urlParams_.Set("prettyPrint", "false")
8983 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
8984 urls += "?" + c.urlParams_.Encode()
8985 req, err := http.NewRequest("POST", urls, body)
8986 if err != nil {
8987 return nil, err
8988 }
8989 req.Header = reqHeaders
8990 googleapi.Expand(req.URL, map[string]string{
8991 "resource": c.resource,
8992 })
8993 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8994 }
8995
8996
8997
8998
8999
9000
9001
9002 func (c *ProjectsLocationsAspectTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
9003 gensupport.SetOptions(c.urlParams_, opts...)
9004 res, err := c.doRequest("json")
9005 if res != nil && res.StatusCode == http.StatusNotModified {
9006 if res.Body != nil {
9007 res.Body.Close()
9008 }
9009 return nil, gensupport.WrapError(&googleapi.Error{
9010 Code: res.StatusCode,
9011 Header: res.Header,
9012 })
9013 }
9014 if err != nil {
9015 return nil, err
9016 }
9017 defer googleapi.CloseBody(res)
9018 if err := googleapi.CheckResponse(res); err != nil {
9019 return nil, gensupport.WrapError(err)
9020 }
9021 ret := &GoogleIamV1TestIamPermissionsResponse{
9022 ServerResponse: googleapi.ServerResponse{
9023 Header: res.Header,
9024 HTTPStatusCode: res.StatusCode,
9025 },
9026 }
9027 target := &ret
9028 if err := gensupport.DecodeResponse(target, res); err != nil {
9029 return nil, err
9030 }
9031 return ret, nil
9032 }
9033
9034 type ProjectsLocationsDataAttributeBindingsCreateCall struct {
9035 s *Service
9036 parent string
9037 googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding
9038 urlParams_ gensupport.URLParams
9039 ctx_ context.Context
9040 header_ http.Header
9041 }
9042
9043
9044
9045
9046
9047 func (r *ProjectsLocationsDataAttributeBindingsService) Create(parent string, googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding) *ProjectsLocationsDataAttributeBindingsCreateCall {
9048 c := &ProjectsLocationsDataAttributeBindingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9049 c.parent = parent
9050 c.googleclouddataplexv1dataattributebinding = googleclouddataplexv1dataattributebinding
9051 return c
9052 }
9053
9054
9055
9056
9057
9058
9059 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) DataAttributeBindingId(dataAttributeBindingId string) *ProjectsLocationsDataAttributeBindingsCreateCall {
9060 c.urlParams_.Set("dataAttributeBindingId", dataAttributeBindingId)
9061 return c
9062 }
9063
9064
9065
9066 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataAttributeBindingsCreateCall {
9067 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
9068 return c
9069 }
9070
9071
9072
9073
9074 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsCreateCall {
9075 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9076 return c
9077 }
9078
9079
9080 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsCreateCall {
9081 c.ctx_ = ctx
9082 return c
9083 }
9084
9085
9086
9087 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Header() http.Header {
9088 if c.header_ == nil {
9089 c.header_ = make(http.Header)
9090 }
9091 return c.header_
9092 }
9093
9094 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) doRequest(alt string) (*http.Response, error) {
9095 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9096 var body io.Reader = nil
9097 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattributebinding)
9098 if err != nil {
9099 return nil, err
9100 }
9101 c.urlParams_.Set("alt", alt)
9102 c.urlParams_.Set("prettyPrint", "false")
9103 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataAttributeBindings")
9104 urls += "?" + c.urlParams_.Encode()
9105 req, err := http.NewRequest("POST", urls, body)
9106 if err != nil {
9107 return nil, err
9108 }
9109 req.Header = reqHeaders
9110 googleapi.Expand(req.URL, map[string]string{
9111 "parent": c.parent,
9112 })
9113 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9114 }
9115
9116
9117
9118
9119
9120
9121
9122 func (c *ProjectsLocationsDataAttributeBindingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9123 gensupport.SetOptions(c.urlParams_, opts...)
9124 res, err := c.doRequest("json")
9125 if res != nil && res.StatusCode == http.StatusNotModified {
9126 if res.Body != nil {
9127 res.Body.Close()
9128 }
9129 return nil, gensupport.WrapError(&googleapi.Error{
9130 Code: res.StatusCode,
9131 Header: res.Header,
9132 })
9133 }
9134 if err != nil {
9135 return nil, err
9136 }
9137 defer googleapi.CloseBody(res)
9138 if err := googleapi.CheckResponse(res); err != nil {
9139 return nil, gensupport.WrapError(err)
9140 }
9141 ret := &GoogleLongrunningOperation{
9142 ServerResponse: googleapi.ServerResponse{
9143 Header: res.Header,
9144 HTTPStatusCode: res.StatusCode,
9145 },
9146 }
9147 target := &ret
9148 if err := gensupport.DecodeResponse(target, res); err != nil {
9149 return nil, err
9150 }
9151 return ret, nil
9152 }
9153
9154 type ProjectsLocationsDataAttributeBindingsDeleteCall struct {
9155 s *Service
9156 name string
9157 urlParams_ gensupport.URLParams
9158 ctx_ context.Context
9159 header_ http.Header
9160 }
9161
9162
9163
9164
9165
9166
9167
9168
9169 func (r *ProjectsLocationsDataAttributeBindingsService) Delete(name string) *ProjectsLocationsDataAttributeBindingsDeleteCall {
9170 c := &ProjectsLocationsDataAttributeBindingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9171 c.name = name
9172 return c
9173 }
9174
9175
9176
9177
9178
9179 func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Etag(etag string) *ProjectsLocationsDataAttributeBindingsDeleteCall {
9180 c.urlParams_.Set("etag", etag)
9181 return c
9182 }
9183
9184
9185
9186
9187 func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsDeleteCall {
9188 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9189 return c
9190 }
9191
9192
9193 func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsDeleteCall {
9194 c.ctx_ = ctx
9195 return c
9196 }
9197
9198
9199
9200 func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Header() http.Header {
9201 if c.header_ == nil {
9202 c.header_ = make(http.Header)
9203 }
9204 return c.header_
9205 }
9206
9207 func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) doRequest(alt string) (*http.Response, error) {
9208 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9209 var body io.Reader = nil
9210 c.urlParams_.Set("alt", alt)
9211 c.urlParams_.Set("prettyPrint", "false")
9212 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9213 urls += "?" + c.urlParams_.Encode()
9214 req, err := http.NewRequest("DELETE", urls, body)
9215 if err != nil {
9216 return nil, err
9217 }
9218 req.Header = reqHeaders
9219 googleapi.Expand(req.URL, map[string]string{
9220 "name": c.name,
9221 })
9222 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9223 }
9224
9225
9226
9227
9228
9229
9230
9231 func (c *ProjectsLocationsDataAttributeBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9232 gensupport.SetOptions(c.urlParams_, opts...)
9233 res, err := c.doRequest("json")
9234 if res != nil && res.StatusCode == http.StatusNotModified {
9235 if res.Body != nil {
9236 res.Body.Close()
9237 }
9238 return nil, gensupport.WrapError(&googleapi.Error{
9239 Code: res.StatusCode,
9240 Header: res.Header,
9241 })
9242 }
9243 if err != nil {
9244 return nil, err
9245 }
9246 defer googleapi.CloseBody(res)
9247 if err := googleapi.CheckResponse(res); err != nil {
9248 return nil, gensupport.WrapError(err)
9249 }
9250 ret := &GoogleLongrunningOperation{
9251 ServerResponse: googleapi.ServerResponse{
9252 Header: res.Header,
9253 HTTPStatusCode: res.StatusCode,
9254 },
9255 }
9256 target := &ret
9257 if err := gensupport.DecodeResponse(target, res); err != nil {
9258 return nil, err
9259 }
9260 return ret, nil
9261 }
9262
9263 type ProjectsLocationsDataAttributeBindingsGetCall struct {
9264 s *Service
9265 name string
9266 urlParams_ gensupport.URLParams
9267 ifNoneMatch_ string
9268 ctx_ context.Context
9269 header_ http.Header
9270 }
9271
9272
9273
9274
9275
9276
9277 func (r *ProjectsLocationsDataAttributeBindingsService) Get(name string) *ProjectsLocationsDataAttributeBindingsGetCall {
9278 c := &ProjectsLocationsDataAttributeBindingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9279 c.name = name
9280 return c
9281 }
9282
9283
9284
9285
9286 func (c *ProjectsLocationsDataAttributeBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsGetCall {
9287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9288 return c
9289 }
9290
9291
9292
9293
9294 func (c *ProjectsLocationsDataAttributeBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsGetCall {
9295 c.ifNoneMatch_ = entityTag
9296 return c
9297 }
9298
9299
9300 func (c *ProjectsLocationsDataAttributeBindingsGetCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsGetCall {
9301 c.ctx_ = ctx
9302 return c
9303 }
9304
9305
9306
9307 func (c *ProjectsLocationsDataAttributeBindingsGetCall) Header() http.Header {
9308 if c.header_ == nil {
9309 c.header_ = make(http.Header)
9310 }
9311 return c.header_
9312 }
9313
9314 func (c *ProjectsLocationsDataAttributeBindingsGetCall) doRequest(alt string) (*http.Response, error) {
9315 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9316 if c.ifNoneMatch_ != "" {
9317 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9318 }
9319 var body io.Reader = nil
9320 c.urlParams_.Set("alt", alt)
9321 c.urlParams_.Set("prettyPrint", "false")
9322 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9323 urls += "?" + c.urlParams_.Encode()
9324 req, err := http.NewRequest("GET", urls, body)
9325 if err != nil {
9326 return nil, err
9327 }
9328 req.Header = reqHeaders
9329 googleapi.Expand(req.URL, map[string]string{
9330 "name": c.name,
9331 })
9332 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9333 }
9334
9335
9336
9337
9338
9339
9340
9341 func (c *ProjectsLocationsDataAttributeBindingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataAttributeBinding, error) {
9342 gensupport.SetOptions(c.urlParams_, opts...)
9343 res, err := c.doRequest("json")
9344 if res != nil && res.StatusCode == http.StatusNotModified {
9345 if res.Body != nil {
9346 res.Body.Close()
9347 }
9348 return nil, gensupport.WrapError(&googleapi.Error{
9349 Code: res.StatusCode,
9350 Header: res.Header,
9351 })
9352 }
9353 if err != nil {
9354 return nil, err
9355 }
9356 defer googleapi.CloseBody(res)
9357 if err := googleapi.CheckResponse(res); err != nil {
9358 return nil, gensupport.WrapError(err)
9359 }
9360 ret := &GoogleCloudDataplexV1DataAttributeBinding{
9361 ServerResponse: googleapi.ServerResponse{
9362 Header: res.Header,
9363 HTTPStatusCode: res.StatusCode,
9364 },
9365 }
9366 target := &ret
9367 if err := gensupport.DecodeResponse(target, res); err != nil {
9368 return nil, err
9369 }
9370 return ret, nil
9371 }
9372
9373 type ProjectsLocationsDataAttributeBindingsGetIamPolicyCall struct {
9374 s *Service
9375 resource string
9376 urlParams_ gensupport.URLParams
9377 ifNoneMatch_ string
9378 ctx_ context.Context
9379 header_ http.Header
9380 }
9381
9382
9383
9384
9385
9386
9387
9388 func (r *ProjectsLocationsDataAttributeBindingsService) GetIamPolicy(resource string) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
9389 c := &ProjectsLocationsDataAttributeBindingsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9390 c.resource = resource
9391 return c
9392 }
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
9407 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
9408 return c
9409 }
9410
9411
9412
9413
9414 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
9415 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9416 return c
9417 }
9418
9419
9420
9421
9422 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
9423 c.ifNoneMatch_ = entityTag
9424 return c
9425 }
9426
9427
9428 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall {
9429 c.ctx_ = ctx
9430 return c
9431 }
9432
9433
9434
9435 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Header() http.Header {
9436 if c.header_ == nil {
9437 c.header_ = make(http.Header)
9438 }
9439 return c.header_
9440 }
9441
9442 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
9443 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9444 if c.ifNoneMatch_ != "" {
9445 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9446 }
9447 var body io.Reader = nil
9448 c.urlParams_.Set("alt", alt)
9449 c.urlParams_.Set("prettyPrint", "false")
9450 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
9451 urls += "?" + c.urlParams_.Encode()
9452 req, err := http.NewRequest("GET", urls, body)
9453 if err != nil {
9454 return nil, err
9455 }
9456 req.Header = reqHeaders
9457 googleapi.Expand(req.URL, map[string]string{
9458 "resource": c.resource,
9459 })
9460 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9461 }
9462
9463
9464
9465
9466
9467
9468
9469 func (c *ProjectsLocationsDataAttributeBindingsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
9470 gensupport.SetOptions(c.urlParams_, opts...)
9471 res, err := c.doRequest("json")
9472 if res != nil && res.StatusCode == http.StatusNotModified {
9473 if res.Body != nil {
9474 res.Body.Close()
9475 }
9476 return nil, gensupport.WrapError(&googleapi.Error{
9477 Code: res.StatusCode,
9478 Header: res.Header,
9479 })
9480 }
9481 if err != nil {
9482 return nil, err
9483 }
9484 defer googleapi.CloseBody(res)
9485 if err := googleapi.CheckResponse(res); err != nil {
9486 return nil, gensupport.WrapError(err)
9487 }
9488 ret := &GoogleIamV1Policy{
9489 ServerResponse: googleapi.ServerResponse{
9490 Header: res.Header,
9491 HTTPStatusCode: res.StatusCode,
9492 },
9493 }
9494 target := &ret
9495 if err := gensupport.DecodeResponse(target, res); err != nil {
9496 return nil, err
9497 }
9498 return ret, nil
9499 }
9500
9501 type ProjectsLocationsDataAttributeBindingsListCall struct {
9502 s *Service
9503 parent string
9504 urlParams_ gensupport.URLParams
9505 ifNoneMatch_ string
9506 ctx_ context.Context
9507 header_ http.Header
9508 }
9509
9510
9511
9512
9513
9514 func (r *ProjectsLocationsDataAttributeBindingsService) List(parent string) *ProjectsLocationsDataAttributeBindingsListCall {
9515 c := &ProjectsLocationsDataAttributeBindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9516 c.parent = parent
9517 return c
9518 }
9519
9520
9521
9522
9523
9524 func (c *ProjectsLocationsDataAttributeBindingsListCall) Filter(filter string) *ProjectsLocationsDataAttributeBindingsListCall {
9525 c.urlParams_.Set("filter", filter)
9526 return c
9527 }
9528
9529
9530
9531 func (c *ProjectsLocationsDataAttributeBindingsListCall) OrderBy(orderBy string) *ProjectsLocationsDataAttributeBindingsListCall {
9532 c.urlParams_.Set("orderBy", orderBy)
9533 return c
9534 }
9535
9536
9537
9538
9539
9540 func (c *ProjectsLocationsDataAttributeBindingsListCall) PageSize(pageSize int64) *ProjectsLocationsDataAttributeBindingsListCall {
9541 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9542 return c
9543 }
9544
9545
9546
9547
9548
9549 func (c *ProjectsLocationsDataAttributeBindingsListCall) PageToken(pageToken string) *ProjectsLocationsDataAttributeBindingsListCall {
9550 c.urlParams_.Set("pageToken", pageToken)
9551 return c
9552 }
9553
9554
9555
9556
9557 func (c *ProjectsLocationsDataAttributeBindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsListCall {
9558 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9559 return c
9560 }
9561
9562
9563
9564
9565 func (c *ProjectsLocationsDataAttributeBindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataAttributeBindingsListCall {
9566 c.ifNoneMatch_ = entityTag
9567 return c
9568 }
9569
9570
9571 func (c *ProjectsLocationsDataAttributeBindingsListCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsListCall {
9572 c.ctx_ = ctx
9573 return c
9574 }
9575
9576
9577
9578 func (c *ProjectsLocationsDataAttributeBindingsListCall) Header() http.Header {
9579 if c.header_ == nil {
9580 c.header_ = make(http.Header)
9581 }
9582 return c.header_
9583 }
9584
9585 func (c *ProjectsLocationsDataAttributeBindingsListCall) doRequest(alt string) (*http.Response, error) {
9586 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9587 if c.ifNoneMatch_ != "" {
9588 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9589 }
9590 var body io.Reader = nil
9591 c.urlParams_.Set("alt", alt)
9592 c.urlParams_.Set("prettyPrint", "false")
9593 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataAttributeBindings")
9594 urls += "?" + c.urlParams_.Encode()
9595 req, err := http.NewRequest("GET", urls, body)
9596 if err != nil {
9597 return nil, err
9598 }
9599 req.Header = reqHeaders
9600 googleapi.Expand(req.URL, map[string]string{
9601 "parent": c.parent,
9602 })
9603 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9604 }
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614 func (c *ProjectsLocationsDataAttributeBindingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataAttributeBindingsResponse, error) {
9615 gensupport.SetOptions(c.urlParams_, opts...)
9616 res, err := c.doRequest("json")
9617 if res != nil && res.StatusCode == http.StatusNotModified {
9618 if res.Body != nil {
9619 res.Body.Close()
9620 }
9621 return nil, gensupport.WrapError(&googleapi.Error{
9622 Code: res.StatusCode,
9623 Header: res.Header,
9624 })
9625 }
9626 if err != nil {
9627 return nil, err
9628 }
9629 defer googleapi.CloseBody(res)
9630 if err := googleapi.CheckResponse(res); err != nil {
9631 return nil, gensupport.WrapError(err)
9632 }
9633 ret := &GoogleCloudDataplexV1ListDataAttributeBindingsResponse{
9634 ServerResponse: googleapi.ServerResponse{
9635 Header: res.Header,
9636 HTTPStatusCode: res.StatusCode,
9637 },
9638 }
9639 target := &ret
9640 if err := gensupport.DecodeResponse(target, res); err != nil {
9641 return nil, err
9642 }
9643 return ret, nil
9644 }
9645
9646
9647
9648
9649 func (c *ProjectsLocationsDataAttributeBindingsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataAttributeBindingsResponse) error) error {
9650 c.ctx_ = ctx
9651 defer c.PageToken(c.urlParams_.Get("pageToken"))
9652 for {
9653 x, err := c.Do()
9654 if err != nil {
9655 return err
9656 }
9657 if err := f(x); err != nil {
9658 return err
9659 }
9660 if x.NextPageToken == "" {
9661 return nil
9662 }
9663 c.PageToken(x.NextPageToken)
9664 }
9665 }
9666
9667 type ProjectsLocationsDataAttributeBindingsPatchCall struct {
9668 s *Service
9669 name string
9670 googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding
9671 urlParams_ gensupport.URLParams
9672 ctx_ context.Context
9673 header_ http.Header
9674 }
9675
9676
9677
9678
9679
9680
9681
9682 func (r *ProjectsLocationsDataAttributeBindingsService) Patch(name string, googleclouddataplexv1dataattributebinding *GoogleCloudDataplexV1DataAttributeBinding) *ProjectsLocationsDataAttributeBindingsPatchCall {
9683 c := &ProjectsLocationsDataAttributeBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9684 c.name = name
9685 c.googleclouddataplexv1dataattributebinding = googleclouddataplexv1dataattributebinding
9686 return c
9687 }
9688
9689
9690
9691 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataAttributeBindingsPatchCall {
9692 c.urlParams_.Set("updateMask", updateMask)
9693 return c
9694 }
9695
9696
9697
9698 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataAttributeBindingsPatchCall {
9699 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
9700 return c
9701 }
9702
9703
9704
9705
9706 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsPatchCall {
9707 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9708 return c
9709 }
9710
9711
9712 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsPatchCall {
9713 c.ctx_ = ctx
9714 return c
9715 }
9716
9717
9718
9719 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Header() http.Header {
9720 if c.header_ == nil {
9721 c.header_ = make(http.Header)
9722 }
9723 return c.header_
9724 }
9725
9726 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) doRequest(alt string) (*http.Response, error) {
9727 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9728 var body io.Reader = nil
9729 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattributebinding)
9730 if err != nil {
9731 return nil, err
9732 }
9733 c.urlParams_.Set("alt", alt)
9734 c.urlParams_.Set("prettyPrint", "false")
9735 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9736 urls += "?" + c.urlParams_.Encode()
9737 req, err := http.NewRequest("PATCH", urls, body)
9738 if err != nil {
9739 return nil, err
9740 }
9741 req.Header = reqHeaders
9742 googleapi.Expand(req.URL, map[string]string{
9743 "name": c.name,
9744 })
9745 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9746 }
9747
9748
9749
9750
9751
9752
9753
9754 func (c *ProjectsLocationsDataAttributeBindingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9755 gensupport.SetOptions(c.urlParams_, opts...)
9756 res, err := c.doRequest("json")
9757 if res != nil && res.StatusCode == http.StatusNotModified {
9758 if res.Body != nil {
9759 res.Body.Close()
9760 }
9761 return nil, gensupport.WrapError(&googleapi.Error{
9762 Code: res.StatusCode,
9763 Header: res.Header,
9764 })
9765 }
9766 if err != nil {
9767 return nil, err
9768 }
9769 defer googleapi.CloseBody(res)
9770 if err := googleapi.CheckResponse(res); err != nil {
9771 return nil, gensupport.WrapError(err)
9772 }
9773 ret := &GoogleLongrunningOperation{
9774 ServerResponse: googleapi.ServerResponse{
9775 Header: res.Header,
9776 HTTPStatusCode: res.StatusCode,
9777 },
9778 }
9779 target := &ret
9780 if err := gensupport.DecodeResponse(target, res); err != nil {
9781 return nil, err
9782 }
9783 return ret, nil
9784 }
9785
9786 type ProjectsLocationsDataAttributeBindingsSetIamPolicyCall struct {
9787 s *Service
9788 resource string
9789 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
9790 urlParams_ gensupport.URLParams
9791 ctx_ context.Context
9792 header_ http.Header
9793 }
9794
9795
9796
9797
9798
9799
9800
9801
9802 func (r *ProjectsLocationsDataAttributeBindingsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall {
9803 c := &ProjectsLocationsDataAttributeBindingsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9804 c.resource = resource
9805 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
9806 return c
9807 }
9808
9809
9810
9811
9812 func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall {
9813 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9814 return c
9815 }
9816
9817
9818 func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall {
9819 c.ctx_ = ctx
9820 return c
9821 }
9822
9823
9824
9825 func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Header() http.Header {
9826 if c.header_ == nil {
9827 c.header_ = make(http.Header)
9828 }
9829 return c.header_
9830 }
9831
9832 func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
9833 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9834 var body io.Reader = nil
9835 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
9836 if err != nil {
9837 return nil, err
9838 }
9839 c.urlParams_.Set("alt", alt)
9840 c.urlParams_.Set("prettyPrint", "false")
9841 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
9842 urls += "?" + c.urlParams_.Encode()
9843 req, err := http.NewRequest("POST", urls, body)
9844 if err != nil {
9845 return nil, err
9846 }
9847 req.Header = reqHeaders
9848 googleapi.Expand(req.URL, map[string]string{
9849 "resource": c.resource,
9850 })
9851 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9852 }
9853
9854
9855
9856
9857
9858
9859
9860 func (c *ProjectsLocationsDataAttributeBindingsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
9861 gensupport.SetOptions(c.urlParams_, opts...)
9862 res, err := c.doRequest("json")
9863 if res != nil && res.StatusCode == http.StatusNotModified {
9864 if res.Body != nil {
9865 res.Body.Close()
9866 }
9867 return nil, gensupport.WrapError(&googleapi.Error{
9868 Code: res.StatusCode,
9869 Header: res.Header,
9870 })
9871 }
9872 if err != nil {
9873 return nil, err
9874 }
9875 defer googleapi.CloseBody(res)
9876 if err := googleapi.CheckResponse(res); err != nil {
9877 return nil, gensupport.WrapError(err)
9878 }
9879 ret := &GoogleIamV1Policy{
9880 ServerResponse: googleapi.ServerResponse{
9881 Header: res.Header,
9882 HTTPStatusCode: res.StatusCode,
9883 },
9884 }
9885 target := &ret
9886 if err := gensupport.DecodeResponse(target, res); err != nil {
9887 return nil, err
9888 }
9889 return ret, nil
9890 }
9891
9892 type ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall struct {
9893 s *Service
9894 resource string
9895 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
9896 urlParams_ gensupport.URLParams
9897 ctx_ context.Context
9898 header_ http.Header
9899 }
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911 func (r *ProjectsLocationsDataAttributeBindingsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall {
9912 c := &ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9913 c.resource = resource
9914 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
9915 return c
9916 }
9917
9918
9919
9920
9921 func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall {
9922 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9923 return c
9924 }
9925
9926
9927 func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall {
9928 c.ctx_ = ctx
9929 return c
9930 }
9931
9932
9933
9934 func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Header() http.Header {
9935 if c.header_ == nil {
9936 c.header_ = make(http.Header)
9937 }
9938 return c.header_
9939 }
9940
9941 func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
9942 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9943 var body io.Reader = nil
9944 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
9945 if err != nil {
9946 return nil, err
9947 }
9948 c.urlParams_.Set("alt", alt)
9949 c.urlParams_.Set("prettyPrint", "false")
9950 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
9951 urls += "?" + c.urlParams_.Encode()
9952 req, err := http.NewRequest("POST", urls, body)
9953 if err != nil {
9954 return nil, err
9955 }
9956 req.Header = reqHeaders
9957 googleapi.Expand(req.URL, map[string]string{
9958 "resource": c.resource,
9959 })
9960 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9961 }
9962
9963
9964
9965
9966
9967
9968
9969 func (c *ProjectsLocationsDataAttributeBindingsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
9970 gensupport.SetOptions(c.urlParams_, opts...)
9971 res, err := c.doRequest("json")
9972 if res != nil && res.StatusCode == http.StatusNotModified {
9973 if res.Body != nil {
9974 res.Body.Close()
9975 }
9976 return nil, gensupport.WrapError(&googleapi.Error{
9977 Code: res.StatusCode,
9978 Header: res.Header,
9979 })
9980 }
9981 if err != nil {
9982 return nil, err
9983 }
9984 defer googleapi.CloseBody(res)
9985 if err := googleapi.CheckResponse(res); err != nil {
9986 return nil, gensupport.WrapError(err)
9987 }
9988 ret := &GoogleIamV1TestIamPermissionsResponse{
9989 ServerResponse: googleapi.ServerResponse{
9990 Header: res.Header,
9991 HTTPStatusCode: res.StatusCode,
9992 },
9993 }
9994 target := &ret
9995 if err := gensupport.DecodeResponse(target, res); err != nil {
9996 return nil, err
9997 }
9998 return ret, nil
9999 }
10000
10001 type ProjectsLocationsDataScansCreateCall struct {
10002 s *Service
10003 parent string
10004 googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan
10005 urlParams_ gensupport.URLParams
10006 ctx_ context.Context
10007 header_ http.Header
10008 }
10009
10010
10011
10012
10013
10014
10015 func (r *ProjectsLocationsDataScansService) Create(parent string, googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan) *ProjectsLocationsDataScansCreateCall {
10016 c := &ProjectsLocationsDataScansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10017 c.parent = parent
10018 c.googleclouddataplexv1datascan = googleclouddataplexv1datascan
10019 return c
10020 }
10021
10022
10023
10024
10025
10026 func (c *ProjectsLocationsDataScansCreateCall) DataScanId(dataScanId string) *ProjectsLocationsDataScansCreateCall {
10027 c.urlParams_.Set("dataScanId", dataScanId)
10028 return c
10029 }
10030
10031
10032
10033 func (c *ProjectsLocationsDataScansCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataScansCreateCall {
10034 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
10035 return c
10036 }
10037
10038
10039
10040
10041 func (c *ProjectsLocationsDataScansCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansCreateCall {
10042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10043 return c
10044 }
10045
10046
10047 func (c *ProjectsLocationsDataScansCreateCall) Context(ctx context.Context) *ProjectsLocationsDataScansCreateCall {
10048 c.ctx_ = ctx
10049 return c
10050 }
10051
10052
10053
10054 func (c *ProjectsLocationsDataScansCreateCall) Header() http.Header {
10055 if c.header_ == nil {
10056 c.header_ = make(http.Header)
10057 }
10058 return c.header_
10059 }
10060
10061 func (c *ProjectsLocationsDataScansCreateCall) doRequest(alt string) (*http.Response, error) {
10062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10063 var body io.Reader = nil
10064 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datascan)
10065 if err != nil {
10066 return nil, err
10067 }
10068 c.urlParams_.Set("alt", alt)
10069 c.urlParams_.Set("prettyPrint", "false")
10070 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataScans")
10071 urls += "?" + c.urlParams_.Encode()
10072 req, err := http.NewRequest("POST", urls, body)
10073 if err != nil {
10074 return nil, err
10075 }
10076 req.Header = reqHeaders
10077 googleapi.Expand(req.URL, map[string]string{
10078 "parent": c.parent,
10079 })
10080 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10081 }
10082
10083
10084
10085
10086
10087
10088
10089 func (c *ProjectsLocationsDataScansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10090 gensupport.SetOptions(c.urlParams_, opts...)
10091 res, err := c.doRequest("json")
10092 if res != nil && res.StatusCode == http.StatusNotModified {
10093 if res.Body != nil {
10094 res.Body.Close()
10095 }
10096 return nil, gensupport.WrapError(&googleapi.Error{
10097 Code: res.StatusCode,
10098 Header: res.Header,
10099 })
10100 }
10101 if err != nil {
10102 return nil, err
10103 }
10104 defer googleapi.CloseBody(res)
10105 if err := googleapi.CheckResponse(res); err != nil {
10106 return nil, gensupport.WrapError(err)
10107 }
10108 ret := &GoogleLongrunningOperation{
10109 ServerResponse: googleapi.ServerResponse{
10110 Header: res.Header,
10111 HTTPStatusCode: res.StatusCode,
10112 },
10113 }
10114 target := &ret
10115 if err := gensupport.DecodeResponse(target, res); err != nil {
10116 return nil, err
10117 }
10118 return ret, nil
10119 }
10120
10121 type ProjectsLocationsDataScansDeleteCall struct {
10122 s *Service
10123 name string
10124 urlParams_ gensupport.URLParams
10125 ctx_ context.Context
10126 header_ http.Header
10127 }
10128
10129
10130
10131
10132
10133
10134
10135 func (r *ProjectsLocationsDataScansService) Delete(name string) *ProjectsLocationsDataScansDeleteCall {
10136 c := &ProjectsLocationsDataScansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10137 c.name = name
10138 return c
10139 }
10140
10141
10142
10143
10144 func (c *ProjectsLocationsDataScansDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansDeleteCall {
10145 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10146 return c
10147 }
10148
10149
10150 func (c *ProjectsLocationsDataScansDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataScansDeleteCall {
10151 c.ctx_ = ctx
10152 return c
10153 }
10154
10155
10156
10157 func (c *ProjectsLocationsDataScansDeleteCall) Header() http.Header {
10158 if c.header_ == nil {
10159 c.header_ = make(http.Header)
10160 }
10161 return c.header_
10162 }
10163
10164 func (c *ProjectsLocationsDataScansDeleteCall) doRequest(alt string) (*http.Response, error) {
10165 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10166 var body io.Reader = nil
10167 c.urlParams_.Set("alt", alt)
10168 c.urlParams_.Set("prettyPrint", "false")
10169 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10170 urls += "?" + c.urlParams_.Encode()
10171 req, err := http.NewRequest("DELETE", urls, body)
10172 if err != nil {
10173 return nil, err
10174 }
10175 req.Header = reqHeaders
10176 googleapi.Expand(req.URL, map[string]string{
10177 "name": c.name,
10178 })
10179 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10180 }
10181
10182
10183
10184
10185
10186
10187
10188 func (c *ProjectsLocationsDataScansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10189 gensupport.SetOptions(c.urlParams_, opts...)
10190 res, err := c.doRequest("json")
10191 if res != nil && res.StatusCode == http.StatusNotModified {
10192 if res.Body != nil {
10193 res.Body.Close()
10194 }
10195 return nil, gensupport.WrapError(&googleapi.Error{
10196 Code: res.StatusCode,
10197 Header: res.Header,
10198 })
10199 }
10200 if err != nil {
10201 return nil, err
10202 }
10203 defer googleapi.CloseBody(res)
10204 if err := googleapi.CheckResponse(res); err != nil {
10205 return nil, gensupport.WrapError(err)
10206 }
10207 ret := &GoogleLongrunningOperation{
10208 ServerResponse: googleapi.ServerResponse{
10209 Header: res.Header,
10210 HTTPStatusCode: res.StatusCode,
10211 },
10212 }
10213 target := &ret
10214 if err := gensupport.DecodeResponse(target, res); err != nil {
10215 return nil, err
10216 }
10217 return ret, nil
10218 }
10219
10220 type ProjectsLocationsDataScansGenerateDataQualityRulesCall struct {
10221 s *Service
10222 name string
10223 googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest
10224 urlParams_ gensupport.URLParams
10225 ctx_ context.Context
10226 header_ http.Header
10227 }
10228
10229
10230
10231
10232
10233
10234
10235 func (r *ProjectsLocationsDataScansService) GenerateDataQualityRules(name string, googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest) *ProjectsLocationsDataScansGenerateDataQualityRulesCall {
10236 c := &ProjectsLocationsDataScansGenerateDataQualityRulesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10237 c.name = name
10238 c.googleclouddataplexv1generatedataqualityrulesrequest = googleclouddataplexv1generatedataqualityrulesrequest
10239 return c
10240 }
10241
10242
10243
10244
10245 func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGenerateDataQualityRulesCall {
10246 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10247 return c
10248 }
10249
10250
10251 func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Context(ctx context.Context) *ProjectsLocationsDataScansGenerateDataQualityRulesCall {
10252 c.ctx_ = ctx
10253 return c
10254 }
10255
10256
10257
10258 func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Header() http.Header {
10259 if c.header_ == nil {
10260 c.header_ = make(http.Header)
10261 }
10262 return c.header_
10263 }
10264
10265 func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) doRequest(alt string) (*http.Response, error) {
10266 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10267 var body io.Reader = nil
10268 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1generatedataqualityrulesrequest)
10269 if err != nil {
10270 return nil, err
10271 }
10272 c.urlParams_.Set("alt", alt)
10273 c.urlParams_.Set("prettyPrint", "false")
10274 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDataQualityRules")
10275 urls += "?" + c.urlParams_.Encode()
10276 req, err := http.NewRequest("POST", urls, body)
10277 if err != nil {
10278 return nil, err
10279 }
10280 req.Header = reqHeaders
10281 googleapi.Expand(req.URL, map[string]string{
10282 "name": c.name,
10283 })
10284 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10285 }
10286
10287
10288
10289
10290
10291
10292
10293 func (c *ProjectsLocationsDataScansGenerateDataQualityRulesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1GenerateDataQualityRulesResponse, error) {
10294 gensupport.SetOptions(c.urlParams_, opts...)
10295 res, err := c.doRequest("json")
10296 if res != nil && res.StatusCode == http.StatusNotModified {
10297 if res.Body != nil {
10298 res.Body.Close()
10299 }
10300 return nil, gensupport.WrapError(&googleapi.Error{
10301 Code: res.StatusCode,
10302 Header: res.Header,
10303 })
10304 }
10305 if err != nil {
10306 return nil, err
10307 }
10308 defer googleapi.CloseBody(res)
10309 if err := googleapi.CheckResponse(res); err != nil {
10310 return nil, gensupport.WrapError(err)
10311 }
10312 ret := &GoogleCloudDataplexV1GenerateDataQualityRulesResponse{
10313 ServerResponse: googleapi.ServerResponse{
10314 Header: res.Header,
10315 HTTPStatusCode: res.StatusCode,
10316 },
10317 }
10318 target := &ret
10319 if err := gensupport.DecodeResponse(target, res); err != nil {
10320 return nil, err
10321 }
10322 return ret, nil
10323 }
10324
10325 type ProjectsLocationsDataScansGetCall struct {
10326 s *Service
10327 name string
10328 urlParams_ gensupport.URLParams
10329 ifNoneMatch_ string
10330 ctx_ context.Context
10331 header_ http.Header
10332 }
10333
10334
10335
10336
10337
10338
10339
10340 func (r *ProjectsLocationsDataScansService) Get(name string) *ProjectsLocationsDataScansGetCall {
10341 c := &ProjectsLocationsDataScansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10342 c.name = name
10343 return c
10344 }
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 func (c *ProjectsLocationsDataScansGetCall) View(view string) *ProjectsLocationsDataScansGetCall {
10355 c.urlParams_.Set("view", view)
10356 return c
10357 }
10358
10359
10360
10361
10362 func (c *ProjectsLocationsDataScansGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGetCall {
10363 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10364 return c
10365 }
10366
10367
10368
10369
10370 func (c *ProjectsLocationsDataScansGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansGetCall {
10371 c.ifNoneMatch_ = entityTag
10372 return c
10373 }
10374
10375
10376 func (c *ProjectsLocationsDataScansGetCall) Context(ctx context.Context) *ProjectsLocationsDataScansGetCall {
10377 c.ctx_ = ctx
10378 return c
10379 }
10380
10381
10382
10383 func (c *ProjectsLocationsDataScansGetCall) Header() http.Header {
10384 if c.header_ == nil {
10385 c.header_ = make(http.Header)
10386 }
10387 return c.header_
10388 }
10389
10390 func (c *ProjectsLocationsDataScansGetCall) doRequest(alt string) (*http.Response, error) {
10391 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10392 if c.ifNoneMatch_ != "" {
10393 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10394 }
10395 var body io.Reader = nil
10396 c.urlParams_.Set("alt", alt)
10397 c.urlParams_.Set("prettyPrint", "false")
10398 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10399 urls += "?" + c.urlParams_.Encode()
10400 req, err := http.NewRequest("GET", urls, body)
10401 if err != nil {
10402 return nil, err
10403 }
10404 req.Header = reqHeaders
10405 googleapi.Expand(req.URL, map[string]string{
10406 "name": c.name,
10407 })
10408 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10409 }
10410
10411
10412
10413
10414
10415
10416
10417 func (c *ProjectsLocationsDataScansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataScan, error) {
10418 gensupport.SetOptions(c.urlParams_, opts...)
10419 res, err := c.doRequest("json")
10420 if res != nil && res.StatusCode == http.StatusNotModified {
10421 if res.Body != nil {
10422 res.Body.Close()
10423 }
10424 return nil, gensupport.WrapError(&googleapi.Error{
10425 Code: res.StatusCode,
10426 Header: res.Header,
10427 })
10428 }
10429 if err != nil {
10430 return nil, err
10431 }
10432 defer googleapi.CloseBody(res)
10433 if err := googleapi.CheckResponse(res); err != nil {
10434 return nil, gensupport.WrapError(err)
10435 }
10436 ret := &GoogleCloudDataplexV1DataScan{
10437 ServerResponse: googleapi.ServerResponse{
10438 Header: res.Header,
10439 HTTPStatusCode: res.StatusCode,
10440 },
10441 }
10442 target := &ret
10443 if err := gensupport.DecodeResponse(target, res); err != nil {
10444 return nil, err
10445 }
10446 return ret, nil
10447 }
10448
10449 type ProjectsLocationsDataScansGetIamPolicyCall struct {
10450 s *Service
10451 resource string
10452 urlParams_ gensupport.URLParams
10453 ifNoneMatch_ string
10454 ctx_ context.Context
10455 header_ http.Header
10456 }
10457
10458
10459
10460
10461
10462
10463
10464 func (r *ProjectsLocationsDataScansService) GetIamPolicy(resource string) *ProjectsLocationsDataScansGetIamPolicyCall {
10465 c := &ProjectsLocationsDataScansGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10466 c.resource = resource
10467 return c
10468 }
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482 func (c *ProjectsLocationsDataScansGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataScansGetIamPolicyCall {
10483 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
10484 return c
10485 }
10486
10487
10488
10489
10490 func (c *ProjectsLocationsDataScansGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansGetIamPolicyCall {
10491 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10492 return c
10493 }
10494
10495
10496
10497
10498 func (c *ProjectsLocationsDataScansGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansGetIamPolicyCall {
10499 c.ifNoneMatch_ = entityTag
10500 return c
10501 }
10502
10503
10504 func (c *ProjectsLocationsDataScansGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataScansGetIamPolicyCall {
10505 c.ctx_ = ctx
10506 return c
10507 }
10508
10509
10510
10511 func (c *ProjectsLocationsDataScansGetIamPolicyCall) Header() http.Header {
10512 if c.header_ == nil {
10513 c.header_ = make(http.Header)
10514 }
10515 return c.header_
10516 }
10517
10518 func (c *ProjectsLocationsDataScansGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
10519 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10520 if c.ifNoneMatch_ != "" {
10521 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10522 }
10523 var body io.Reader = nil
10524 c.urlParams_.Set("alt", alt)
10525 c.urlParams_.Set("prettyPrint", "false")
10526 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
10527 urls += "?" + c.urlParams_.Encode()
10528 req, err := http.NewRequest("GET", urls, body)
10529 if err != nil {
10530 return nil, err
10531 }
10532 req.Header = reqHeaders
10533 googleapi.Expand(req.URL, map[string]string{
10534 "resource": c.resource,
10535 })
10536 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10537 }
10538
10539
10540
10541
10542
10543
10544
10545 func (c *ProjectsLocationsDataScansGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
10546 gensupport.SetOptions(c.urlParams_, opts...)
10547 res, err := c.doRequest("json")
10548 if res != nil && res.StatusCode == http.StatusNotModified {
10549 if res.Body != nil {
10550 res.Body.Close()
10551 }
10552 return nil, gensupport.WrapError(&googleapi.Error{
10553 Code: res.StatusCode,
10554 Header: res.Header,
10555 })
10556 }
10557 if err != nil {
10558 return nil, err
10559 }
10560 defer googleapi.CloseBody(res)
10561 if err := googleapi.CheckResponse(res); err != nil {
10562 return nil, gensupport.WrapError(err)
10563 }
10564 ret := &GoogleIamV1Policy{
10565 ServerResponse: googleapi.ServerResponse{
10566 Header: res.Header,
10567 HTTPStatusCode: res.StatusCode,
10568 },
10569 }
10570 target := &ret
10571 if err := gensupport.DecodeResponse(target, res); err != nil {
10572 return nil, err
10573 }
10574 return ret, nil
10575 }
10576
10577 type ProjectsLocationsDataScansListCall struct {
10578 s *Service
10579 parent string
10580 urlParams_ gensupport.URLParams
10581 ifNoneMatch_ string
10582 ctx_ context.Context
10583 header_ http.Header
10584 }
10585
10586
10587
10588
10589
10590
10591 func (r *ProjectsLocationsDataScansService) List(parent string) *ProjectsLocationsDataScansListCall {
10592 c := &ProjectsLocationsDataScansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10593 c.parent = parent
10594 return c
10595 }
10596
10597
10598 func (c *ProjectsLocationsDataScansListCall) Filter(filter string) *ProjectsLocationsDataScansListCall {
10599 c.urlParams_.Set("filter", filter)
10600 return c
10601 }
10602
10603
10604
10605 func (c *ProjectsLocationsDataScansListCall) OrderBy(orderBy string) *ProjectsLocationsDataScansListCall {
10606 c.urlParams_.Set("orderBy", orderBy)
10607 return c
10608 }
10609
10610
10611
10612
10613
10614 func (c *ProjectsLocationsDataScansListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansListCall {
10615 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10616 return c
10617 }
10618
10619
10620
10621
10622
10623 func (c *ProjectsLocationsDataScansListCall) PageToken(pageToken string) *ProjectsLocationsDataScansListCall {
10624 c.urlParams_.Set("pageToken", pageToken)
10625 return c
10626 }
10627
10628
10629
10630
10631 func (c *ProjectsLocationsDataScansListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansListCall {
10632 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10633 return c
10634 }
10635
10636
10637
10638
10639 func (c *ProjectsLocationsDataScansListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansListCall {
10640 c.ifNoneMatch_ = entityTag
10641 return c
10642 }
10643
10644
10645 func (c *ProjectsLocationsDataScansListCall) Context(ctx context.Context) *ProjectsLocationsDataScansListCall {
10646 c.ctx_ = ctx
10647 return c
10648 }
10649
10650
10651
10652 func (c *ProjectsLocationsDataScansListCall) Header() http.Header {
10653 if c.header_ == nil {
10654 c.header_ = make(http.Header)
10655 }
10656 return c.header_
10657 }
10658
10659 func (c *ProjectsLocationsDataScansListCall) doRequest(alt string) (*http.Response, error) {
10660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10661 if c.ifNoneMatch_ != "" {
10662 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10663 }
10664 var body io.Reader = nil
10665 c.urlParams_.Set("alt", alt)
10666 c.urlParams_.Set("prettyPrint", "false")
10667 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataScans")
10668 urls += "?" + c.urlParams_.Encode()
10669 req, err := http.NewRequest("GET", urls, body)
10670 if err != nil {
10671 return nil, err
10672 }
10673 req.Header = reqHeaders
10674 googleapi.Expand(req.URL, map[string]string{
10675 "parent": c.parent,
10676 })
10677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10678 }
10679
10680
10681
10682
10683
10684
10685
10686 func (c *ProjectsLocationsDataScansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataScansResponse, error) {
10687 gensupport.SetOptions(c.urlParams_, opts...)
10688 res, err := c.doRequest("json")
10689 if res != nil && res.StatusCode == http.StatusNotModified {
10690 if res.Body != nil {
10691 res.Body.Close()
10692 }
10693 return nil, gensupport.WrapError(&googleapi.Error{
10694 Code: res.StatusCode,
10695 Header: res.Header,
10696 })
10697 }
10698 if err != nil {
10699 return nil, err
10700 }
10701 defer googleapi.CloseBody(res)
10702 if err := googleapi.CheckResponse(res); err != nil {
10703 return nil, gensupport.WrapError(err)
10704 }
10705 ret := &GoogleCloudDataplexV1ListDataScansResponse{
10706 ServerResponse: googleapi.ServerResponse{
10707 Header: res.Header,
10708 HTTPStatusCode: res.StatusCode,
10709 },
10710 }
10711 target := &ret
10712 if err := gensupport.DecodeResponse(target, res); err != nil {
10713 return nil, err
10714 }
10715 return ret, nil
10716 }
10717
10718
10719
10720
10721 func (c *ProjectsLocationsDataScansListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataScansResponse) error) error {
10722 c.ctx_ = ctx
10723 defer c.PageToken(c.urlParams_.Get("pageToken"))
10724 for {
10725 x, err := c.Do()
10726 if err != nil {
10727 return err
10728 }
10729 if err := f(x); err != nil {
10730 return err
10731 }
10732 if x.NextPageToken == "" {
10733 return nil
10734 }
10735 c.PageToken(x.NextPageToken)
10736 }
10737 }
10738
10739 type ProjectsLocationsDataScansPatchCall struct {
10740 s *Service
10741 name string
10742 googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan
10743 urlParams_ gensupport.URLParams
10744 ctx_ context.Context
10745 header_ http.Header
10746 }
10747
10748
10749
10750
10751
10752
10753
10754 func (r *ProjectsLocationsDataScansService) Patch(name string, googleclouddataplexv1datascan *GoogleCloudDataplexV1DataScan) *ProjectsLocationsDataScansPatchCall {
10755 c := &ProjectsLocationsDataScansPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10756 c.name = name
10757 c.googleclouddataplexv1datascan = googleclouddataplexv1datascan
10758 return c
10759 }
10760
10761
10762
10763 func (c *ProjectsLocationsDataScansPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataScansPatchCall {
10764 c.urlParams_.Set("updateMask", updateMask)
10765 return c
10766 }
10767
10768
10769
10770 func (c *ProjectsLocationsDataScansPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataScansPatchCall {
10771 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
10772 return c
10773 }
10774
10775
10776
10777
10778 func (c *ProjectsLocationsDataScansPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansPatchCall {
10779 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10780 return c
10781 }
10782
10783
10784 func (c *ProjectsLocationsDataScansPatchCall) Context(ctx context.Context) *ProjectsLocationsDataScansPatchCall {
10785 c.ctx_ = ctx
10786 return c
10787 }
10788
10789
10790
10791 func (c *ProjectsLocationsDataScansPatchCall) Header() http.Header {
10792 if c.header_ == nil {
10793 c.header_ = make(http.Header)
10794 }
10795 return c.header_
10796 }
10797
10798 func (c *ProjectsLocationsDataScansPatchCall) doRequest(alt string) (*http.Response, error) {
10799 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10800 var body io.Reader = nil
10801 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datascan)
10802 if err != nil {
10803 return nil, err
10804 }
10805 c.urlParams_.Set("alt", alt)
10806 c.urlParams_.Set("prettyPrint", "false")
10807 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10808 urls += "?" + c.urlParams_.Encode()
10809 req, err := http.NewRequest("PATCH", urls, body)
10810 if err != nil {
10811 return nil, err
10812 }
10813 req.Header = reqHeaders
10814 googleapi.Expand(req.URL, map[string]string{
10815 "name": c.name,
10816 })
10817 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10818 }
10819
10820
10821
10822
10823
10824
10825
10826 func (c *ProjectsLocationsDataScansPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10827 gensupport.SetOptions(c.urlParams_, opts...)
10828 res, err := c.doRequest("json")
10829 if res != nil && res.StatusCode == http.StatusNotModified {
10830 if res.Body != nil {
10831 res.Body.Close()
10832 }
10833 return nil, gensupport.WrapError(&googleapi.Error{
10834 Code: res.StatusCode,
10835 Header: res.Header,
10836 })
10837 }
10838 if err != nil {
10839 return nil, err
10840 }
10841 defer googleapi.CloseBody(res)
10842 if err := googleapi.CheckResponse(res); err != nil {
10843 return nil, gensupport.WrapError(err)
10844 }
10845 ret := &GoogleLongrunningOperation{
10846 ServerResponse: googleapi.ServerResponse{
10847 Header: res.Header,
10848 HTTPStatusCode: res.StatusCode,
10849 },
10850 }
10851 target := &ret
10852 if err := gensupport.DecodeResponse(target, res); err != nil {
10853 return nil, err
10854 }
10855 return ret, nil
10856 }
10857
10858 type ProjectsLocationsDataScansRunCall struct {
10859 s *Service
10860 name string
10861 googleclouddataplexv1rundatascanrequest *GoogleCloudDataplexV1RunDataScanRequest
10862 urlParams_ gensupport.URLParams
10863 ctx_ context.Context
10864 header_ http.Header
10865 }
10866
10867
10868
10869
10870
10871
10872
10873 func (r *ProjectsLocationsDataScansService) Run(name string, googleclouddataplexv1rundatascanrequest *GoogleCloudDataplexV1RunDataScanRequest) *ProjectsLocationsDataScansRunCall {
10874 c := &ProjectsLocationsDataScansRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10875 c.name = name
10876 c.googleclouddataplexv1rundatascanrequest = googleclouddataplexv1rundatascanrequest
10877 return c
10878 }
10879
10880
10881
10882
10883 func (c *ProjectsLocationsDataScansRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansRunCall {
10884 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10885 return c
10886 }
10887
10888
10889 func (c *ProjectsLocationsDataScansRunCall) Context(ctx context.Context) *ProjectsLocationsDataScansRunCall {
10890 c.ctx_ = ctx
10891 return c
10892 }
10893
10894
10895
10896 func (c *ProjectsLocationsDataScansRunCall) Header() http.Header {
10897 if c.header_ == nil {
10898 c.header_ = make(http.Header)
10899 }
10900 return c.header_
10901 }
10902
10903 func (c *ProjectsLocationsDataScansRunCall) doRequest(alt string) (*http.Response, error) {
10904 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10905 var body io.Reader = nil
10906 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1rundatascanrequest)
10907 if err != nil {
10908 return nil, err
10909 }
10910 c.urlParams_.Set("alt", alt)
10911 c.urlParams_.Set("prettyPrint", "false")
10912 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
10913 urls += "?" + c.urlParams_.Encode()
10914 req, err := http.NewRequest("POST", urls, body)
10915 if err != nil {
10916 return nil, err
10917 }
10918 req.Header = reqHeaders
10919 googleapi.Expand(req.URL, map[string]string{
10920 "name": c.name,
10921 })
10922 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10923 }
10924
10925
10926
10927
10928
10929
10930
10931 func (c *ProjectsLocationsDataScansRunCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1RunDataScanResponse, error) {
10932 gensupport.SetOptions(c.urlParams_, opts...)
10933 res, err := c.doRequest("json")
10934 if res != nil && res.StatusCode == http.StatusNotModified {
10935 if res.Body != nil {
10936 res.Body.Close()
10937 }
10938 return nil, gensupport.WrapError(&googleapi.Error{
10939 Code: res.StatusCode,
10940 Header: res.Header,
10941 })
10942 }
10943 if err != nil {
10944 return nil, err
10945 }
10946 defer googleapi.CloseBody(res)
10947 if err := googleapi.CheckResponse(res); err != nil {
10948 return nil, gensupport.WrapError(err)
10949 }
10950 ret := &GoogleCloudDataplexV1RunDataScanResponse{
10951 ServerResponse: googleapi.ServerResponse{
10952 Header: res.Header,
10953 HTTPStatusCode: res.StatusCode,
10954 },
10955 }
10956 target := &ret
10957 if err := gensupport.DecodeResponse(target, res); err != nil {
10958 return nil, err
10959 }
10960 return ret, nil
10961 }
10962
10963 type ProjectsLocationsDataScansSetIamPolicyCall struct {
10964 s *Service
10965 resource string
10966 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
10967 urlParams_ gensupport.URLParams
10968 ctx_ context.Context
10969 header_ http.Header
10970 }
10971
10972
10973
10974
10975
10976
10977
10978
10979 func (r *ProjectsLocationsDataScansService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataScansSetIamPolicyCall {
10980 c := &ProjectsLocationsDataScansSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10981 c.resource = resource
10982 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
10983 return c
10984 }
10985
10986
10987
10988
10989 func (c *ProjectsLocationsDataScansSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansSetIamPolicyCall {
10990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10991 return c
10992 }
10993
10994
10995 func (c *ProjectsLocationsDataScansSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataScansSetIamPolicyCall {
10996 c.ctx_ = ctx
10997 return c
10998 }
10999
11000
11001
11002 func (c *ProjectsLocationsDataScansSetIamPolicyCall) Header() http.Header {
11003 if c.header_ == nil {
11004 c.header_ = make(http.Header)
11005 }
11006 return c.header_
11007 }
11008
11009 func (c *ProjectsLocationsDataScansSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
11010 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11011 var body io.Reader = nil
11012 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
11013 if err != nil {
11014 return nil, err
11015 }
11016 c.urlParams_.Set("alt", alt)
11017 c.urlParams_.Set("prettyPrint", "false")
11018 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
11019 urls += "?" + c.urlParams_.Encode()
11020 req, err := http.NewRequest("POST", urls, body)
11021 if err != nil {
11022 return nil, err
11023 }
11024 req.Header = reqHeaders
11025 googleapi.Expand(req.URL, map[string]string{
11026 "resource": c.resource,
11027 })
11028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11029 }
11030
11031
11032
11033
11034
11035
11036
11037 func (c *ProjectsLocationsDataScansSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
11038 gensupport.SetOptions(c.urlParams_, opts...)
11039 res, err := c.doRequest("json")
11040 if res != nil && res.StatusCode == http.StatusNotModified {
11041 if res.Body != nil {
11042 res.Body.Close()
11043 }
11044 return nil, gensupport.WrapError(&googleapi.Error{
11045 Code: res.StatusCode,
11046 Header: res.Header,
11047 })
11048 }
11049 if err != nil {
11050 return nil, err
11051 }
11052 defer googleapi.CloseBody(res)
11053 if err := googleapi.CheckResponse(res); err != nil {
11054 return nil, gensupport.WrapError(err)
11055 }
11056 ret := &GoogleIamV1Policy{
11057 ServerResponse: googleapi.ServerResponse{
11058 Header: res.Header,
11059 HTTPStatusCode: res.StatusCode,
11060 },
11061 }
11062 target := &ret
11063 if err := gensupport.DecodeResponse(target, res); err != nil {
11064 return nil, err
11065 }
11066 return ret, nil
11067 }
11068
11069 type ProjectsLocationsDataScansTestIamPermissionsCall struct {
11070 s *Service
11071 resource string
11072 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
11073 urlParams_ gensupport.URLParams
11074 ctx_ context.Context
11075 header_ http.Header
11076 }
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 func (r *ProjectsLocationsDataScansService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataScansTestIamPermissionsCall {
11089 c := &ProjectsLocationsDataScansTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11090 c.resource = resource
11091 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
11092 return c
11093 }
11094
11095
11096
11097
11098 func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansTestIamPermissionsCall {
11099 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11100 return c
11101 }
11102
11103
11104 func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataScansTestIamPermissionsCall {
11105 c.ctx_ = ctx
11106 return c
11107 }
11108
11109
11110
11111 func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Header() http.Header {
11112 if c.header_ == nil {
11113 c.header_ = make(http.Header)
11114 }
11115 return c.header_
11116 }
11117
11118 func (c *ProjectsLocationsDataScansTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
11119 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11120 var body io.Reader = nil
11121 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
11122 if err != nil {
11123 return nil, err
11124 }
11125 c.urlParams_.Set("alt", alt)
11126 c.urlParams_.Set("prettyPrint", "false")
11127 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
11128 urls += "?" + c.urlParams_.Encode()
11129 req, err := http.NewRequest("POST", urls, body)
11130 if err != nil {
11131 return nil, err
11132 }
11133 req.Header = reqHeaders
11134 googleapi.Expand(req.URL, map[string]string{
11135 "resource": c.resource,
11136 })
11137 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11138 }
11139
11140
11141
11142
11143
11144
11145
11146 func (c *ProjectsLocationsDataScansTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
11147 gensupport.SetOptions(c.urlParams_, opts...)
11148 res, err := c.doRequest("json")
11149 if res != nil && res.StatusCode == http.StatusNotModified {
11150 if res.Body != nil {
11151 res.Body.Close()
11152 }
11153 return nil, gensupport.WrapError(&googleapi.Error{
11154 Code: res.StatusCode,
11155 Header: res.Header,
11156 })
11157 }
11158 if err != nil {
11159 return nil, err
11160 }
11161 defer googleapi.CloseBody(res)
11162 if err := googleapi.CheckResponse(res); err != nil {
11163 return nil, gensupport.WrapError(err)
11164 }
11165 ret := &GoogleIamV1TestIamPermissionsResponse{
11166 ServerResponse: googleapi.ServerResponse{
11167 Header: res.Header,
11168 HTTPStatusCode: res.StatusCode,
11169 },
11170 }
11171 target := &ret
11172 if err := gensupport.DecodeResponse(target, res); err != nil {
11173 return nil, err
11174 }
11175 return ret, nil
11176 }
11177
11178 type ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall struct {
11179 s *Service
11180 name string
11181 googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest
11182 urlParams_ gensupport.URLParams
11183 ctx_ context.Context
11184 header_ http.Header
11185 }
11186
11187
11188
11189
11190
11191
11192
11193 func (r *ProjectsLocationsDataScansJobsService) GenerateDataQualityRules(name string, googleclouddataplexv1generatedataqualityrulesrequest *GoogleCloudDataplexV1GenerateDataQualityRulesRequest) *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall {
11194 c := &ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11195 c.name = name
11196 c.googleclouddataplexv1generatedataqualityrulesrequest = googleclouddataplexv1generatedataqualityrulesrequest
11197 return c
11198 }
11199
11200
11201
11202
11203 func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall {
11204 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11205 return c
11206 }
11207
11208
11209 func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall {
11210 c.ctx_ = ctx
11211 return c
11212 }
11213
11214
11215
11216 func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Header() http.Header {
11217 if c.header_ == nil {
11218 c.header_ = make(http.Header)
11219 }
11220 return c.header_
11221 }
11222
11223 func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) doRequest(alt string) (*http.Response, error) {
11224 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11225 var body io.Reader = nil
11226 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1generatedataqualityrulesrequest)
11227 if err != nil {
11228 return nil, err
11229 }
11230 c.urlParams_.Set("alt", alt)
11231 c.urlParams_.Set("prettyPrint", "false")
11232 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDataQualityRules")
11233 urls += "?" + c.urlParams_.Encode()
11234 req, err := http.NewRequest("POST", urls, body)
11235 if err != nil {
11236 return nil, err
11237 }
11238 req.Header = reqHeaders
11239 googleapi.Expand(req.URL, map[string]string{
11240 "name": c.name,
11241 })
11242 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11243 }
11244
11245
11246
11247
11248
11249
11250
11251 func (c *ProjectsLocationsDataScansJobsGenerateDataQualityRulesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1GenerateDataQualityRulesResponse, error) {
11252 gensupport.SetOptions(c.urlParams_, opts...)
11253 res, err := c.doRequest("json")
11254 if res != nil && res.StatusCode == http.StatusNotModified {
11255 if res.Body != nil {
11256 res.Body.Close()
11257 }
11258 return nil, gensupport.WrapError(&googleapi.Error{
11259 Code: res.StatusCode,
11260 Header: res.Header,
11261 })
11262 }
11263 if err != nil {
11264 return nil, err
11265 }
11266 defer googleapi.CloseBody(res)
11267 if err := googleapi.CheckResponse(res); err != nil {
11268 return nil, gensupport.WrapError(err)
11269 }
11270 ret := &GoogleCloudDataplexV1GenerateDataQualityRulesResponse{
11271 ServerResponse: googleapi.ServerResponse{
11272 Header: res.Header,
11273 HTTPStatusCode: res.StatusCode,
11274 },
11275 }
11276 target := &ret
11277 if err := gensupport.DecodeResponse(target, res); err != nil {
11278 return nil, err
11279 }
11280 return ret, nil
11281 }
11282
11283 type ProjectsLocationsDataScansJobsGetCall struct {
11284 s *Service
11285 name string
11286 urlParams_ gensupport.URLParams
11287 ifNoneMatch_ string
11288 ctx_ context.Context
11289 header_ http.Header
11290 }
11291
11292
11293
11294
11295
11296
11297
11298 func (r *ProjectsLocationsDataScansJobsService) Get(name string) *ProjectsLocationsDataScansJobsGetCall {
11299 c := &ProjectsLocationsDataScansJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11300 c.name = name
11301 return c
11302 }
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 func (c *ProjectsLocationsDataScansJobsGetCall) View(view string) *ProjectsLocationsDataScansJobsGetCall {
11313 c.urlParams_.Set("view", view)
11314 return c
11315 }
11316
11317
11318
11319
11320 func (c *ProjectsLocationsDataScansJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsGetCall {
11321 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11322 return c
11323 }
11324
11325
11326
11327
11328 func (c *ProjectsLocationsDataScansJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansJobsGetCall {
11329 c.ifNoneMatch_ = entityTag
11330 return c
11331 }
11332
11333
11334 func (c *ProjectsLocationsDataScansJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsGetCall {
11335 c.ctx_ = ctx
11336 return c
11337 }
11338
11339
11340
11341 func (c *ProjectsLocationsDataScansJobsGetCall) Header() http.Header {
11342 if c.header_ == nil {
11343 c.header_ = make(http.Header)
11344 }
11345 return c.header_
11346 }
11347
11348 func (c *ProjectsLocationsDataScansJobsGetCall) doRequest(alt string) (*http.Response, error) {
11349 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11350 if c.ifNoneMatch_ != "" {
11351 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11352 }
11353 var body io.Reader = nil
11354 c.urlParams_.Set("alt", alt)
11355 c.urlParams_.Set("prettyPrint", "false")
11356 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11357 urls += "?" + c.urlParams_.Encode()
11358 req, err := http.NewRequest("GET", urls, body)
11359 if err != nil {
11360 return nil, err
11361 }
11362 req.Header = reqHeaders
11363 googleapi.Expand(req.URL, map[string]string{
11364 "name": c.name,
11365 })
11366 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11367 }
11368
11369
11370
11371
11372
11373
11374
11375 func (c *ProjectsLocationsDataScansJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataScanJob, error) {
11376 gensupport.SetOptions(c.urlParams_, opts...)
11377 res, err := c.doRequest("json")
11378 if res != nil && res.StatusCode == http.StatusNotModified {
11379 if res.Body != nil {
11380 res.Body.Close()
11381 }
11382 return nil, gensupport.WrapError(&googleapi.Error{
11383 Code: res.StatusCode,
11384 Header: res.Header,
11385 })
11386 }
11387 if err != nil {
11388 return nil, err
11389 }
11390 defer googleapi.CloseBody(res)
11391 if err := googleapi.CheckResponse(res); err != nil {
11392 return nil, gensupport.WrapError(err)
11393 }
11394 ret := &GoogleCloudDataplexV1DataScanJob{
11395 ServerResponse: googleapi.ServerResponse{
11396 Header: res.Header,
11397 HTTPStatusCode: res.StatusCode,
11398 },
11399 }
11400 target := &ret
11401 if err := gensupport.DecodeResponse(target, res); err != nil {
11402 return nil, err
11403 }
11404 return ret, nil
11405 }
11406
11407 type ProjectsLocationsDataScansJobsListCall struct {
11408 s *Service
11409 parent string
11410 urlParams_ gensupport.URLParams
11411 ifNoneMatch_ string
11412 ctx_ context.Context
11413 header_ http.Header
11414 }
11415
11416
11417
11418
11419
11420
11421
11422 func (r *ProjectsLocationsDataScansJobsService) List(parent string) *ProjectsLocationsDataScansJobsListCall {
11423 c := &ProjectsLocationsDataScansJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11424 c.parent = parent
11425 return c
11426 }
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437 func (c *ProjectsLocationsDataScansJobsListCall) Filter(filter string) *ProjectsLocationsDataScansJobsListCall {
11438 c.urlParams_.Set("filter", filter)
11439 return c
11440 }
11441
11442
11443
11444
11445
11446 func (c *ProjectsLocationsDataScansJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataScansJobsListCall {
11447 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11448 return c
11449 }
11450
11451
11452
11453
11454
11455 func (c *ProjectsLocationsDataScansJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataScansJobsListCall {
11456 c.urlParams_.Set("pageToken", pageToken)
11457 return c
11458 }
11459
11460
11461
11462
11463 func (c *ProjectsLocationsDataScansJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataScansJobsListCall {
11464 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11465 return c
11466 }
11467
11468
11469
11470
11471 func (c *ProjectsLocationsDataScansJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataScansJobsListCall {
11472 c.ifNoneMatch_ = entityTag
11473 return c
11474 }
11475
11476
11477 func (c *ProjectsLocationsDataScansJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataScansJobsListCall {
11478 c.ctx_ = ctx
11479 return c
11480 }
11481
11482
11483
11484 func (c *ProjectsLocationsDataScansJobsListCall) Header() http.Header {
11485 if c.header_ == nil {
11486 c.header_ = make(http.Header)
11487 }
11488 return c.header_
11489 }
11490
11491 func (c *ProjectsLocationsDataScansJobsListCall) doRequest(alt string) (*http.Response, error) {
11492 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11493 if c.ifNoneMatch_ != "" {
11494 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11495 }
11496 var body io.Reader = nil
11497 c.urlParams_.Set("alt", alt)
11498 c.urlParams_.Set("prettyPrint", "false")
11499 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/jobs")
11500 urls += "?" + c.urlParams_.Encode()
11501 req, err := http.NewRequest("GET", urls, body)
11502 if err != nil {
11503 return nil, err
11504 }
11505 req.Header = reqHeaders
11506 googleapi.Expand(req.URL, map[string]string{
11507 "parent": c.parent,
11508 })
11509 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11510 }
11511
11512
11513
11514
11515
11516
11517
11518 func (c *ProjectsLocationsDataScansJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataScanJobsResponse, error) {
11519 gensupport.SetOptions(c.urlParams_, opts...)
11520 res, err := c.doRequest("json")
11521 if res != nil && res.StatusCode == http.StatusNotModified {
11522 if res.Body != nil {
11523 res.Body.Close()
11524 }
11525 return nil, gensupport.WrapError(&googleapi.Error{
11526 Code: res.StatusCode,
11527 Header: res.Header,
11528 })
11529 }
11530 if err != nil {
11531 return nil, err
11532 }
11533 defer googleapi.CloseBody(res)
11534 if err := googleapi.CheckResponse(res); err != nil {
11535 return nil, gensupport.WrapError(err)
11536 }
11537 ret := &GoogleCloudDataplexV1ListDataScanJobsResponse{
11538 ServerResponse: googleapi.ServerResponse{
11539 Header: res.Header,
11540 HTTPStatusCode: res.StatusCode,
11541 },
11542 }
11543 target := &ret
11544 if err := gensupport.DecodeResponse(target, res); err != nil {
11545 return nil, err
11546 }
11547 return ret, nil
11548 }
11549
11550
11551
11552
11553 func (c *ProjectsLocationsDataScansJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataScanJobsResponse) error) error {
11554 c.ctx_ = ctx
11555 defer c.PageToken(c.urlParams_.Get("pageToken"))
11556 for {
11557 x, err := c.Do()
11558 if err != nil {
11559 return err
11560 }
11561 if err := f(x); err != nil {
11562 return err
11563 }
11564 if x.NextPageToken == "" {
11565 return nil
11566 }
11567 c.PageToken(x.NextPageToken)
11568 }
11569 }
11570
11571 type ProjectsLocationsDataTaxonomiesCreateCall struct {
11572 s *Service
11573 parent string
11574 googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy
11575 urlParams_ gensupport.URLParams
11576 ctx_ context.Context
11577 header_ http.Header
11578 }
11579
11580
11581
11582
11583
11584
11585 func (r *ProjectsLocationsDataTaxonomiesService) Create(parent string, googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy) *ProjectsLocationsDataTaxonomiesCreateCall {
11586 c := &ProjectsLocationsDataTaxonomiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11587 c.parent = parent
11588 c.googleclouddataplexv1datataxonomy = googleclouddataplexv1datataxonomy
11589 return c
11590 }
11591
11592
11593
11594
11595
11596 func (c *ProjectsLocationsDataTaxonomiesCreateCall) DataTaxonomyId(dataTaxonomyId string) *ProjectsLocationsDataTaxonomiesCreateCall {
11597 c.urlParams_.Set("dataTaxonomyId", dataTaxonomyId)
11598 return c
11599 }
11600
11601
11602
11603 func (c *ProjectsLocationsDataTaxonomiesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesCreateCall {
11604 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
11605 return c
11606 }
11607
11608
11609
11610
11611 func (c *ProjectsLocationsDataTaxonomiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesCreateCall {
11612 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11613 return c
11614 }
11615
11616
11617 func (c *ProjectsLocationsDataTaxonomiesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesCreateCall {
11618 c.ctx_ = ctx
11619 return c
11620 }
11621
11622
11623
11624 func (c *ProjectsLocationsDataTaxonomiesCreateCall) Header() http.Header {
11625 if c.header_ == nil {
11626 c.header_ = make(http.Header)
11627 }
11628 return c.header_
11629 }
11630
11631 func (c *ProjectsLocationsDataTaxonomiesCreateCall) doRequest(alt string) (*http.Response, error) {
11632 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11633 var body io.Reader = nil
11634 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datataxonomy)
11635 if err != nil {
11636 return nil, err
11637 }
11638 c.urlParams_.Set("alt", alt)
11639 c.urlParams_.Set("prettyPrint", "false")
11640 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataTaxonomies")
11641 urls += "?" + c.urlParams_.Encode()
11642 req, err := http.NewRequest("POST", urls, body)
11643 if err != nil {
11644 return nil, err
11645 }
11646 req.Header = reqHeaders
11647 googleapi.Expand(req.URL, map[string]string{
11648 "parent": c.parent,
11649 })
11650 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11651 }
11652
11653
11654
11655
11656
11657
11658
11659 func (c *ProjectsLocationsDataTaxonomiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11660 gensupport.SetOptions(c.urlParams_, opts...)
11661 res, err := c.doRequest("json")
11662 if res != nil && res.StatusCode == http.StatusNotModified {
11663 if res.Body != nil {
11664 res.Body.Close()
11665 }
11666 return nil, gensupport.WrapError(&googleapi.Error{
11667 Code: res.StatusCode,
11668 Header: res.Header,
11669 })
11670 }
11671 if err != nil {
11672 return nil, err
11673 }
11674 defer googleapi.CloseBody(res)
11675 if err := googleapi.CheckResponse(res); err != nil {
11676 return nil, gensupport.WrapError(err)
11677 }
11678 ret := &GoogleLongrunningOperation{
11679 ServerResponse: googleapi.ServerResponse{
11680 Header: res.Header,
11681 HTTPStatusCode: res.StatusCode,
11682 },
11683 }
11684 target := &ret
11685 if err := gensupport.DecodeResponse(target, res); err != nil {
11686 return nil, err
11687 }
11688 return ret, nil
11689 }
11690
11691 type ProjectsLocationsDataTaxonomiesDeleteCall struct {
11692 s *Service
11693 name string
11694 urlParams_ gensupport.URLParams
11695 ctx_ context.Context
11696 header_ http.Header
11697 }
11698
11699
11700
11701
11702
11703
11704
11705 func (r *ProjectsLocationsDataTaxonomiesService) Delete(name string) *ProjectsLocationsDataTaxonomiesDeleteCall {
11706 c := &ProjectsLocationsDataTaxonomiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11707 c.name = name
11708 return c
11709 }
11710
11711
11712
11713
11714 func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Etag(etag string) *ProjectsLocationsDataTaxonomiesDeleteCall {
11715 c.urlParams_.Set("etag", etag)
11716 return c
11717 }
11718
11719
11720
11721
11722 func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesDeleteCall {
11723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11724 return c
11725 }
11726
11727
11728 func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesDeleteCall {
11729 c.ctx_ = ctx
11730 return c
11731 }
11732
11733
11734
11735 func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Header() http.Header {
11736 if c.header_ == nil {
11737 c.header_ = make(http.Header)
11738 }
11739 return c.header_
11740 }
11741
11742 func (c *ProjectsLocationsDataTaxonomiesDeleteCall) doRequest(alt string) (*http.Response, error) {
11743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11744 var body io.Reader = nil
11745 c.urlParams_.Set("alt", alt)
11746 c.urlParams_.Set("prettyPrint", "false")
11747 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11748 urls += "?" + c.urlParams_.Encode()
11749 req, err := http.NewRequest("DELETE", urls, body)
11750 if err != nil {
11751 return nil, err
11752 }
11753 req.Header = reqHeaders
11754 googleapi.Expand(req.URL, map[string]string{
11755 "name": c.name,
11756 })
11757 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11758 }
11759
11760
11761
11762
11763
11764
11765
11766 func (c *ProjectsLocationsDataTaxonomiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11767 gensupport.SetOptions(c.urlParams_, opts...)
11768 res, err := c.doRequest("json")
11769 if res != nil && res.StatusCode == http.StatusNotModified {
11770 if res.Body != nil {
11771 res.Body.Close()
11772 }
11773 return nil, gensupport.WrapError(&googleapi.Error{
11774 Code: res.StatusCode,
11775 Header: res.Header,
11776 })
11777 }
11778 if err != nil {
11779 return nil, err
11780 }
11781 defer googleapi.CloseBody(res)
11782 if err := googleapi.CheckResponse(res); err != nil {
11783 return nil, gensupport.WrapError(err)
11784 }
11785 ret := &GoogleLongrunningOperation{
11786 ServerResponse: googleapi.ServerResponse{
11787 Header: res.Header,
11788 HTTPStatusCode: res.StatusCode,
11789 },
11790 }
11791 target := &ret
11792 if err := gensupport.DecodeResponse(target, res); err != nil {
11793 return nil, err
11794 }
11795 return ret, nil
11796 }
11797
11798 type ProjectsLocationsDataTaxonomiesGetCall struct {
11799 s *Service
11800 name string
11801 urlParams_ gensupport.URLParams
11802 ifNoneMatch_ string
11803 ctx_ context.Context
11804 header_ http.Header
11805 }
11806
11807
11808
11809
11810
11811
11812 func (r *ProjectsLocationsDataTaxonomiesService) Get(name string) *ProjectsLocationsDataTaxonomiesGetCall {
11813 c := &ProjectsLocationsDataTaxonomiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11814 c.name = name
11815 return c
11816 }
11817
11818
11819
11820
11821 func (c *ProjectsLocationsDataTaxonomiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesGetCall {
11822 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11823 return c
11824 }
11825
11826
11827
11828
11829 func (c *ProjectsLocationsDataTaxonomiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesGetCall {
11830 c.ifNoneMatch_ = entityTag
11831 return c
11832 }
11833
11834
11835 func (c *ProjectsLocationsDataTaxonomiesGetCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesGetCall {
11836 c.ctx_ = ctx
11837 return c
11838 }
11839
11840
11841
11842 func (c *ProjectsLocationsDataTaxonomiesGetCall) Header() http.Header {
11843 if c.header_ == nil {
11844 c.header_ = make(http.Header)
11845 }
11846 return c.header_
11847 }
11848
11849 func (c *ProjectsLocationsDataTaxonomiesGetCall) doRequest(alt string) (*http.Response, error) {
11850 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11851 if c.ifNoneMatch_ != "" {
11852 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11853 }
11854 var body io.Reader = nil
11855 c.urlParams_.Set("alt", alt)
11856 c.urlParams_.Set("prettyPrint", "false")
11857 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11858 urls += "?" + c.urlParams_.Encode()
11859 req, err := http.NewRequest("GET", urls, body)
11860 if err != nil {
11861 return nil, err
11862 }
11863 req.Header = reqHeaders
11864 googleapi.Expand(req.URL, map[string]string{
11865 "name": c.name,
11866 })
11867 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11868 }
11869
11870
11871
11872
11873
11874
11875
11876 func (c *ProjectsLocationsDataTaxonomiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataTaxonomy, error) {
11877 gensupport.SetOptions(c.urlParams_, opts...)
11878 res, err := c.doRequest("json")
11879 if res != nil && res.StatusCode == http.StatusNotModified {
11880 if res.Body != nil {
11881 res.Body.Close()
11882 }
11883 return nil, gensupport.WrapError(&googleapi.Error{
11884 Code: res.StatusCode,
11885 Header: res.Header,
11886 })
11887 }
11888 if err != nil {
11889 return nil, err
11890 }
11891 defer googleapi.CloseBody(res)
11892 if err := googleapi.CheckResponse(res); err != nil {
11893 return nil, gensupport.WrapError(err)
11894 }
11895 ret := &GoogleCloudDataplexV1DataTaxonomy{
11896 ServerResponse: googleapi.ServerResponse{
11897 Header: res.Header,
11898 HTTPStatusCode: res.StatusCode,
11899 },
11900 }
11901 target := &ret
11902 if err := gensupport.DecodeResponse(target, res); err != nil {
11903 return nil, err
11904 }
11905 return ret, nil
11906 }
11907
11908 type ProjectsLocationsDataTaxonomiesGetIamPolicyCall struct {
11909 s *Service
11910 resource string
11911 urlParams_ gensupport.URLParams
11912 ifNoneMatch_ string
11913 ctx_ context.Context
11914 header_ http.Header
11915 }
11916
11917
11918
11919
11920
11921
11922
11923 func (r *ProjectsLocationsDataTaxonomiesService) GetIamPolicy(resource string) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
11924 c := &ProjectsLocationsDataTaxonomiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11925 c.resource = resource
11926 return c
11927 }
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
11942 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
11943 return c
11944 }
11945
11946
11947
11948
11949 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
11950 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11951 return c
11952 }
11953
11954
11955
11956
11957 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
11958 c.ifNoneMatch_ = entityTag
11959 return c
11960 }
11961
11962
11963 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesGetIamPolicyCall {
11964 c.ctx_ = ctx
11965 return c
11966 }
11967
11968
11969
11970 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Header() http.Header {
11971 if c.header_ == nil {
11972 c.header_ = make(http.Header)
11973 }
11974 return c.header_
11975 }
11976
11977 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
11978 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11979 if c.ifNoneMatch_ != "" {
11980 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11981 }
11982 var body io.Reader = nil
11983 c.urlParams_.Set("alt", alt)
11984 c.urlParams_.Set("prettyPrint", "false")
11985 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
11986 urls += "?" + c.urlParams_.Encode()
11987 req, err := http.NewRequest("GET", urls, body)
11988 if err != nil {
11989 return nil, err
11990 }
11991 req.Header = reqHeaders
11992 googleapi.Expand(req.URL, map[string]string{
11993 "resource": c.resource,
11994 })
11995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11996 }
11997
11998
11999
12000
12001
12002
12003
12004 func (c *ProjectsLocationsDataTaxonomiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
12005 gensupport.SetOptions(c.urlParams_, opts...)
12006 res, err := c.doRequest("json")
12007 if res != nil && res.StatusCode == http.StatusNotModified {
12008 if res.Body != nil {
12009 res.Body.Close()
12010 }
12011 return nil, gensupport.WrapError(&googleapi.Error{
12012 Code: res.StatusCode,
12013 Header: res.Header,
12014 })
12015 }
12016 if err != nil {
12017 return nil, err
12018 }
12019 defer googleapi.CloseBody(res)
12020 if err := googleapi.CheckResponse(res); err != nil {
12021 return nil, gensupport.WrapError(err)
12022 }
12023 ret := &GoogleIamV1Policy{
12024 ServerResponse: googleapi.ServerResponse{
12025 Header: res.Header,
12026 HTTPStatusCode: res.StatusCode,
12027 },
12028 }
12029 target := &ret
12030 if err := gensupport.DecodeResponse(target, res); err != nil {
12031 return nil, err
12032 }
12033 return ret, nil
12034 }
12035
12036 type ProjectsLocationsDataTaxonomiesListCall struct {
12037 s *Service
12038 parent string
12039 urlParams_ gensupport.URLParams
12040 ifNoneMatch_ string
12041 ctx_ context.Context
12042 header_ http.Header
12043 }
12044
12045
12046
12047
12048
12049
12050 func (r *ProjectsLocationsDataTaxonomiesService) List(parent string) *ProjectsLocationsDataTaxonomiesListCall {
12051 c := &ProjectsLocationsDataTaxonomiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12052 c.parent = parent
12053 return c
12054 }
12055
12056
12057 func (c *ProjectsLocationsDataTaxonomiesListCall) Filter(filter string) *ProjectsLocationsDataTaxonomiesListCall {
12058 c.urlParams_.Set("filter", filter)
12059 return c
12060 }
12061
12062
12063
12064 func (c *ProjectsLocationsDataTaxonomiesListCall) OrderBy(orderBy string) *ProjectsLocationsDataTaxonomiesListCall {
12065 c.urlParams_.Set("orderBy", orderBy)
12066 return c
12067 }
12068
12069
12070
12071
12072
12073 func (c *ProjectsLocationsDataTaxonomiesListCall) PageSize(pageSize int64) *ProjectsLocationsDataTaxonomiesListCall {
12074 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12075 return c
12076 }
12077
12078
12079
12080
12081
12082 func (c *ProjectsLocationsDataTaxonomiesListCall) PageToken(pageToken string) *ProjectsLocationsDataTaxonomiesListCall {
12083 c.urlParams_.Set("pageToken", pageToken)
12084 return c
12085 }
12086
12087
12088
12089
12090 func (c *ProjectsLocationsDataTaxonomiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesListCall {
12091 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12092 return c
12093 }
12094
12095
12096
12097
12098 func (c *ProjectsLocationsDataTaxonomiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesListCall {
12099 c.ifNoneMatch_ = entityTag
12100 return c
12101 }
12102
12103
12104 func (c *ProjectsLocationsDataTaxonomiesListCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesListCall {
12105 c.ctx_ = ctx
12106 return c
12107 }
12108
12109
12110
12111 func (c *ProjectsLocationsDataTaxonomiesListCall) Header() http.Header {
12112 if c.header_ == nil {
12113 c.header_ = make(http.Header)
12114 }
12115 return c.header_
12116 }
12117
12118 func (c *ProjectsLocationsDataTaxonomiesListCall) doRequest(alt string) (*http.Response, error) {
12119 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12120 if c.ifNoneMatch_ != "" {
12121 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12122 }
12123 var body io.Reader = nil
12124 c.urlParams_.Set("alt", alt)
12125 c.urlParams_.Set("prettyPrint", "false")
12126 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataTaxonomies")
12127 urls += "?" + c.urlParams_.Encode()
12128 req, err := http.NewRequest("GET", urls, body)
12129 if err != nil {
12130 return nil, err
12131 }
12132 req.Header = reqHeaders
12133 googleapi.Expand(req.URL, map[string]string{
12134 "parent": c.parent,
12135 })
12136 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12137 }
12138
12139
12140
12141
12142
12143
12144
12145 func (c *ProjectsLocationsDataTaxonomiesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataTaxonomiesResponse, error) {
12146 gensupport.SetOptions(c.urlParams_, opts...)
12147 res, err := c.doRequest("json")
12148 if res != nil && res.StatusCode == http.StatusNotModified {
12149 if res.Body != nil {
12150 res.Body.Close()
12151 }
12152 return nil, gensupport.WrapError(&googleapi.Error{
12153 Code: res.StatusCode,
12154 Header: res.Header,
12155 })
12156 }
12157 if err != nil {
12158 return nil, err
12159 }
12160 defer googleapi.CloseBody(res)
12161 if err := googleapi.CheckResponse(res); err != nil {
12162 return nil, gensupport.WrapError(err)
12163 }
12164 ret := &GoogleCloudDataplexV1ListDataTaxonomiesResponse{
12165 ServerResponse: googleapi.ServerResponse{
12166 Header: res.Header,
12167 HTTPStatusCode: res.StatusCode,
12168 },
12169 }
12170 target := &ret
12171 if err := gensupport.DecodeResponse(target, res); err != nil {
12172 return nil, err
12173 }
12174 return ret, nil
12175 }
12176
12177
12178
12179
12180 func (c *ProjectsLocationsDataTaxonomiesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataTaxonomiesResponse) error) error {
12181 c.ctx_ = ctx
12182 defer c.PageToken(c.urlParams_.Get("pageToken"))
12183 for {
12184 x, err := c.Do()
12185 if err != nil {
12186 return err
12187 }
12188 if err := f(x); err != nil {
12189 return err
12190 }
12191 if x.NextPageToken == "" {
12192 return nil
12193 }
12194 c.PageToken(x.NextPageToken)
12195 }
12196 }
12197
12198 type ProjectsLocationsDataTaxonomiesPatchCall struct {
12199 s *Service
12200 name string
12201 googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy
12202 urlParams_ gensupport.URLParams
12203 ctx_ context.Context
12204 header_ http.Header
12205 }
12206
12207
12208
12209
12210
12211
12212
12213 func (r *ProjectsLocationsDataTaxonomiesService) Patch(name string, googleclouddataplexv1datataxonomy *GoogleCloudDataplexV1DataTaxonomy) *ProjectsLocationsDataTaxonomiesPatchCall {
12214 c := &ProjectsLocationsDataTaxonomiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12215 c.name = name
12216 c.googleclouddataplexv1datataxonomy = googleclouddataplexv1datataxonomy
12217 return c
12218 }
12219
12220
12221
12222 func (c *ProjectsLocationsDataTaxonomiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataTaxonomiesPatchCall {
12223 c.urlParams_.Set("updateMask", updateMask)
12224 return c
12225 }
12226
12227
12228
12229 func (c *ProjectsLocationsDataTaxonomiesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesPatchCall {
12230 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
12231 return c
12232 }
12233
12234
12235
12236
12237 func (c *ProjectsLocationsDataTaxonomiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesPatchCall {
12238 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12239 return c
12240 }
12241
12242
12243 func (c *ProjectsLocationsDataTaxonomiesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesPatchCall {
12244 c.ctx_ = ctx
12245 return c
12246 }
12247
12248
12249
12250 func (c *ProjectsLocationsDataTaxonomiesPatchCall) Header() http.Header {
12251 if c.header_ == nil {
12252 c.header_ = make(http.Header)
12253 }
12254 return c.header_
12255 }
12256
12257 func (c *ProjectsLocationsDataTaxonomiesPatchCall) doRequest(alt string) (*http.Response, error) {
12258 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12259 var body io.Reader = nil
12260 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1datataxonomy)
12261 if err != nil {
12262 return nil, err
12263 }
12264 c.urlParams_.Set("alt", alt)
12265 c.urlParams_.Set("prettyPrint", "false")
12266 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12267 urls += "?" + c.urlParams_.Encode()
12268 req, err := http.NewRequest("PATCH", urls, body)
12269 if err != nil {
12270 return nil, err
12271 }
12272 req.Header = reqHeaders
12273 googleapi.Expand(req.URL, map[string]string{
12274 "name": c.name,
12275 })
12276 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12277 }
12278
12279
12280
12281
12282
12283
12284
12285 func (c *ProjectsLocationsDataTaxonomiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12286 gensupport.SetOptions(c.urlParams_, opts...)
12287 res, err := c.doRequest("json")
12288 if res != nil && res.StatusCode == http.StatusNotModified {
12289 if res.Body != nil {
12290 res.Body.Close()
12291 }
12292 return nil, gensupport.WrapError(&googleapi.Error{
12293 Code: res.StatusCode,
12294 Header: res.Header,
12295 })
12296 }
12297 if err != nil {
12298 return nil, err
12299 }
12300 defer googleapi.CloseBody(res)
12301 if err := googleapi.CheckResponse(res); err != nil {
12302 return nil, gensupport.WrapError(err)
12303 }
12304 ret := &GoogleLongrunningOperation{
12305 ServerResponse: googleapi.ServerResponse{
12306 Header: res.Header,
12307 HTTPStatusCode: res.StatusCode,
12308 },
12309 }
12310 target := &ret
12311 if err := gensupport.DecodeResponse(target, res); err != nil {
12312 return nil, err
12313 }
12314 return ret, nil
12315 }
12316
12317 type ProjectsLocationsDataTaxonomiesSetIamPolicyCall struct {
12318 s *Service
12319 resource string
12320 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
12321 urlParams_ gensupport.URLParams
12322 ctx_ context.Context
12323 header_ http.Header
12324 }
12325
12326
12327
12328
12329
12330
12331
12332
12333 func (r *ProjectsLocationsDataTaxonomiesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall {
12334 c := &ProjectsLocationsDataTaxonomiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12335 c.resource = resource
12336 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
12337 return c
12338 }
12339
12340
12341
12342
12343 func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall {
12344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12345 return c
12346 }
12347
12348
12349 func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesSetIamPolicyCall {
12350 c.ctx_ = ctx
12351 return c
12352 }
12353
12354
12355
12356 func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Header() http.Header {
12357 if c.header_ == nil {
12358 c.header_ = make(http.Header)
12359 }
12360 return c.header_
12361 }
12362
12363 func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
12364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12365 var body io.Reader = nil
12366 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
12367 if err != nil {
12368 return nil, err
12369 }
12370 c.urlParams_.Set("alt", alt)
12371 c.urlParams_.Set("prettyPrint", "false")
12372 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
12373 urls += "?" + c.urlParams_.Encode()
12374 req, err := http.NewRequest("POST", urls, body)
12375 if err != nil {
12376 return nil, err
12377 }
12378 req.Header = reqHeaders
12379 googleapi.Expand(req.URL, map[string]string{
12380 "resource": c.resource,
12381 })
12382 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12383 }
12384
12385
12386
12387
12388
12389
12390
12391 func (c *ProjectsLocationsDataTaxonomiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
12392 gensupport.SetOptions(c.urlParams_, opts...)
12393 res, err := c.doRequest("json")
12394 if res != nil && res.StatusCode == http.StatusNotModified {
12395 if res.Body != nil {
12396 res.Body.Close()
12397 }
12398 return nil, gensupport.WrapError(&googleapi.Error{
12399 Code: res.StatusCode,
12400 Header: res.Header,
12401 })
12402 }
12403 if err != nil {
12404 return nil, err
12405 }
12406 defer googleapi.CloseBody(res)
12407 if err := googleapi.CheckResponse(res); err != nil {
12408 return nil, gensupport.WrapError(err)
12409 }
12410 ret := &GoogleIamV1Policy{
12411 ServerResponse: googleapi.ServerResponse{
12412 Header: res.Header,
12413 HTTPStatusCode: res.StatusCode,
12414 },
12415 }
12416 target := &ret
12417 if err := gensupport.DecodeResponse(target, res); err != nil {
12418 return nil, err
12419 }
12420 return ret, nil
12421 }
12422
12423 type ProjectsLocationsDataTaxonomiesTestIamPermissionsCall struct {
12424 s *Service
12425 resource string
12426 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
12427 urlParams_ gensupport.URLParams
12428 ctx_ context.Context
12429 header_ http.Header
12430 }
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442 func (r *ProjectsLocationsDataTaxonomiesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall {
12443 c := &ProjectsLocationsDataTaxonomiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12444 c.resource = resource
12445 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
12446 return c
12447 }
12448
12449
12450
12451
12452 func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall {
12453 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12454 return c
12455 }
12456
12457
12458 func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall {
12459 c.ctx_ = ctx
12460 return c
12461 }
12462
12463
12464
12465 func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Header() http.Header {
12466 if c.header_ == nil {
12467 c.header_ = make(http.Header)
12468 }
12469 return c.header_
12470 }
12471
12472 func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
12473 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12474 var body io.Reader = nil
12475 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
12476 if err != nil {
12477 return nil, err
12478 }
12479 c.urlParams_.Set("alt", alt)
12480 c.urlParams_.Set("prettyPrint", "false")
12481 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
12482 urls += "?" + c.urlParams_.Encode()
12483 req, err := http.NewRequest("POST", urls, body)
12484 if err != nil {
12485 return nil, err
12486 }
12487 req.Header = reqHeaders
12488 googleapi.Expand(req.URL, map[string]string{
12489 "resource": c.resource,
12490 })
12491 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12492 }
12493
12494
12495
12496
12497
12498
12499
12500 func (c *ProjectsLocationsDataTaxonomiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
12501 gensupport.SetOptions(c.urlParams_, opts...)
12502 res, err := c.doRequest("json")
12503 if res != nil && res.StatusCode == http.StatusNotModified {
12504 if res.Body != nil {
12505 res.Body.Close()
12506 }
12507 return nil, gensupport.WrapError(&googleapi.Error{
12508 Code: res.StatusCode,
12509 Header: res.Header,
12510 })
12511 }
12512 if err != nil {
12513 return nil, err
12514 }
12515 defer googleapi.CloseBody(res)
12516 if err := googleapi.CheckResponse(res); err != nil {
12517 return nil, gensupport.WrapError(err)
12518 }
12519 ret := &GoogleIamV1TestIamPermissionsResponse{
12520 ServerResponse: googleapi.ServerResponse{
12521 Header: res.Header,
12522 HTTPStatusCode: res.StatusCode,
12523 },
12524 }
12525 target := &ret
12526 if err := gensupport.DecodeResponse(target, res); err != nil {
12527 return nil, err
12528 }
12529 return ret, nil
12530 }
12531
12532 type ProjectsLocationsDataTaxonomiesAttributesCreateCall struct {
12533 s *Service
12534 parent string
12535 googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute
12536 urlParams_ gensupport.URLParams
12537 ctx_ context.Context
12538 header_ http.Header
12539 }
12540
12541
12542
12543
12544
12545
12546 func (r *ProjectsLocationsDataTaxonomiesAttributesService) Create(parent string, googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
12547 c := &ProjectsLocationsDataTaxonomiesAttributesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12548 c.parent = parent
12549 c.googleclouddataplexv1dataattribute = googleclouddataplexv1dataattribute
12550 return c
12551 }
12552
12553
12554
12555
12556
12557
12558 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) DataAttributeId(dataAttributeId string) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
12559 c.urlParams_.Set("dataAttributeId", dataAttributeId)
12560 return c
12561 }
12562
12563
12564
12565 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
12566 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
12567 return c
12568 }
12569
12570
12571
12572
12573 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
12574 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12575 return c
12576 }
12577
12578
12579 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesCreateCall {
12580 c.ctx_ = ctx
12581 return c
12582 }
12583
12584
12585
12586 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Header() http.Header {
12587 if c.header_ == nil {
12588 c.header_ = make(http.Header)
12589 }
12590 return c.header_
12591 }
12592
12593 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) doRequest(alt string) (*http.Response, error) {
12594 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12595 var body io.Reader = nil
12596 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattribute)
12597 if err != nil {
12598 return nil, err
12599 }
12600 c.urlParams_.Set("alt", alt)
12601 c.urlParams_.Set("prettyPrint", "false")
12602 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
12603 urls += "?" + c.urlParams_.Encode()
12604 req, err := http.NewRequest("POST", urls, body)
12605 if err != nil {
12606 return nil, err
12607 }
12608 req.Header = reqHeaders
12609 googleapi.Expand(req.URL, map[string]string{
12610 "parent": c.parent,
12611 })
12612 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12613 }
12614
12615
12616
12617
12618
12619
12620
12621 func (c *ProjectsLocationsDataTaxonomiesAttributesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12622 gensupport.SetOptions(c.urlParams_, opts...)
12623 res, err := c.doRequest("json")
12624 if res != nil && res.StatusCode == http.StatusNotModified {
12625 if res.Body != nil {
12626 res.Body.Close()
12627 }
12628 return nil, gensupport.WrapError(&googleapi.Error{
12629 Code: res.StatusCode,
12630 Header: res.Header,
12631 })
12632 }
12633 if err != nil {
12634 return nil, err
12635 }
12636 defer googleapi.CloseBody(res)
12637 if err := googleapi.CheckResponse(res); err != nil {
12638 return nil, gensupport.WrapError(err)
12639 }
12640 ret := &GoogleLongrunningOperation{
12641 ServerResponse: googleapi.ServerResponse{
12642 Header: res.Header,
12643 HTTPStatusCode: res.StatusCode,
12644 },
12645 }
12646 target := &ret
12647 if err := gensupport.DecodeResponse(target, res); err != nil {
12648 return nil, err
12649 }
12650 return ret, nil
12651 }
12652
12653 type ProjectsLocationsDataTaxonomiesAttributesDeleteCall struct {
12654 s *Service
12655 name string
12656 urlParams_ gensupport.URLParams
12657 ctx_ context.Context
12658 header_ http.Header
12659 }
12660
12661
12662
12663
12664
12665
12666 func (r *ProjectsLocationsDataTaxonomiesAttributesService) Delete(name string) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
12667 c := &ProjectsLocationsDataTaxonomiesAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12668 c.name = name
12669 return c
12670 }
12671
12672
12673
12674
12675 func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Etag(etag string) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
12676 c.urlParams_.Set("etag", etag)
12677 return c
12678 }
12679
12680
12681
12682
12683 func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
12684 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12685 return c
12686 }
12687
12688
12689 func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesDeleteCall {
12690 c.ctx_ = ctx
12691 return c
12692 }
12693
12694
12695
12696 func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Header() http.Header {
12697 if c.header_ == nil {
12698 c.header_ = make(http.Header)
12699 }
12700 return c.header_
12701 }
12702
12703 func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
12704 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12705 var body io.Reader = nil
12706 c.urlParams_.Set("alt", alt)
12707 c.urlParams_.Set("prettyPrint", "false")
12708 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12709 urls += "?" + c.urlParams_.Encode()
12710 req, err := http.NewRequest("DELETE", urls, body)
12711 if err != nil {
12712 return nil, err
12713 }
12714 req.Header = reqHeaders
12715 googleapi.Expand(req.URL, map[string]string{
12716 "name": c.name,
12717 })
12718 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12719 }
12720
12721
12722
12723
12724
12725
12726
12727 func (c *ProjectsLocationsDataTaxonomiesAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12728 gensupport.SetOptions(c.urlParams_, opts...)
12729 res, err := c.doRequest("json")
12730 if res != nil && res.StatusCode == http.StatusNotModified {
12731 if res.Body != nil {
12732 res.Body.Close()
12733 }
12734 return nil, gensupport.WrapError(&googleapi.Error{
12735 Code: res.StatusCode,
12736 Header: res.Header,
12737 })
12738 }
12739 if err != nil {
12740 return nil, err
12741 }
12742 defer googleapi.CloseBody(res)
12743 if err := googleapi.CheckResponse(res); err != nil {
12744 return nil, gensupport.WrapError(err)
12745 }
12746 ret := &GoogleLongrunningOperation{
12747 ServerResponse: googleapi.ServerResponse{
12748 Header: res.Header,
12749 HTTPStatusCode: res.StatusCode,
12750 },
12751 }
12752 target := &ret
12753 if err := gensupport.DecodeResponse(target, res); err != nil {
12754 return nil, err
12755 }
12756 return ret, nil
12757 }
12758
12759 type ProjectsLocationsDataTaxonomiesAttributesGetCall struct {
12760 s *Service
12761 name string
12762 urlParams_ gensupport.URLParams
12763 ifNoneMatch_ string
12764 ctx_ context.Context
12765 header_ http.Header
12766 }
12767
12768
12769
12770
12771
12772
12773 func (r *ProjectsLocationsDataTaxonomiesAttributesService) Get(name string) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
12774 c := &ProjectsLocationsDataTaxonomiesAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12775 c.name = name
12776 return c
12777 }
12778
12779
12780
12781
12782 func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
12783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12784 return c
12785 }
12786
12787
12788
12789
12790 func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
12791 c.ifNoneMatch_ = entityTag
12792 return c
12793 }
12794
12795
12796 func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesGetCall {
12797 c.ctx_ = ctx
12798 return c
12799 }
12800
12801
12802
12803 func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Header() http.Header {
12804 if c.header_ == nil {
12805 c.header_ = make(http.Header)
12806 }
12807 return c.header_
12808 }
12809
12810 func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) doRequest(alt string) (*http.Response, error) {
12811 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12812 if c.ifNoneMatch_ != "" {
12813 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12814 }
12815 var body io.Reader = nil
12816 c.urlParams_.Set("alt", alt)
12817 c.urlParams_.Set("prettyPrint", "false")
12818 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12819 urls += "?" + c.urlParams_.Encode()
12820 req, err := http.NewRequest("GET", urls, body)
12821 if err != nil {
12822 return nil, err
12823 }
12824 req.Header = reqHeaders
12825 googleapi.Expand(req.URL, map[string]string{
12826 "name": c.name,
12827 })
12828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12829 }
12830
12831
12832
12833
12834
12835
12836
12837 func (c *ProjectsLocationsDataTaxonomiesAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1DataAttribute, error) {
12838 gensupport.SetOptions(c.urlParams_, opts...)
12839 res, err := c.doRequest("json")
12840 if res != nil && res.StatusCode == http.StatusNotModified {
12841 if res.Body != nil {
12842 res.Body.Close()
12843 }
12844 return nil, gensupport.WrapError(&googleapi.Error{
12845 Code: res.StatusCode,
12846 Header: res.Header,
12847 })
12848 }
12849 if err != nil {
12850 return nil, err
12851 }
12852 defer googleapi.CloseBody(res)
12853 if err := googleapi.CheckResponse(res); err != nil {
12854 return nil, gensupport.WrapError(err)
12855 }
12856 ret := &GoogleCloudDataplexV1DataAttribute{
12857 ServerResponse: googleapi.ServerResponse{
12858 Header: res.Header,
12859 HTTPStatusCode: res.StatusCode,
12860 },
12861 }
12862 target := &ret
12863 if err := gensupport.DecodeResponse(target, res); err != nil {
12864 return nil, err
12865 }
12866 return ret, nil
12867 }
12868
12869 type ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall struct {
12870 s *Service
12871 resource string
12872 urlParams_ gensupport.URLParams
12873 ifNoneMatch_ string
12874 ctx_ context.Context
12875 header_ http.Header
12876 }
12877
12878
12879
12880
12881
12882
12883
12884 func (r *ProjectsLocationsDataTaxonomiesAttributesService) GetIamPolicy(resource string) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
12885 c := &ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12886 c.resource = resource
12887 return c
12888 }
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
12903 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
12904 return c
12905 }
12906
12907
12908
12909
12910 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
12911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12912 return c
12913 }
12914
12915
12916
12917
12918 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
12919 c.ifNoneMatch_ = entityTag
12920 return c
12921 }
12922
12923
12924 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall {
12925 c.ctx_ = ctx
12926 return c
12927 }
12928
12929
12930
12931 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Header() http.Header {
12932 if c.header_ == nil {
12933 c.header_ = make(http.Header)
12934 }
12935 return c.header_
12936 }
12937
12938 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
12939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12940 if c.ifNoneMatch_ != "" {
12941 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12942 }
12943 var body io.Reader = nil
12944 c.urlParams_.Set("alt", alt)
12945 c.urlParams_.Set("prettyPrint", "false")
12946 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
12947 urls += "?" + c.urlParams_.Encode()
12948 req, err := http.NewRequest("GET", urls, body)
12949 if err != nil {
12950 return nil, err
12951 }
12952 req.Header = reqHeaders
12953 googleapi.Expand(req.URL, map[string]string{
12954 "resource": c.resource,
12955 })
12956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12957 }
12958
12959
12960
12961
12962
12963
12964
12965 func (c *ProjectsLocationsDataTaxonomiesAttributesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
12966 gensupport.SetOptions(c.urlParams_, opts...)
12967 res, err := c.doRequest("json")
12968 if res != nil && res.StatusCode == http.StatusNotModified {
12969 if res.Body != nil {
12970 res.Body.Close()
12971 }
12972 return nil, gensupport.WrapError(&googleapi.Error{
12973 Code: res.StatusCode,
12974 Header: res.Header,
12975 })
12976 }
12977 if err != nil {
12978 return nil, err
12979 }
12980 defer googleapi.CloseBody(res)
12981 if err := googleapi.CheckResponse(res); err != nil {
12982 return nil, gensupport.WrapError(err)
12983 }
12984 ret := &GoogleIamV1Policy{
12985 ServerResponse: googleapi.ServerResponse{
12986 Header: res.Header,
12987 HTTPStatusCode: res.StatusCode,
12988 },
12989 }
12990 target := &ret
12991 if err := gensupport.DecodeResponse(target, res); err != nil {
12992 return nil, err
12993 }
12994 return ret, nil
12995 }
12996
12997 type ProjectsLocationsDataTaxonomiesAttributesListCall struct {
12998 s *Service
12999 parent string
13000 urlParams_ gensupport.URLParams
13001 ifNoneMatch_ string
13002 ctx_ context.Context
13003 header_ http.Header
13004 }
13005
13006
13007
13008
13009
13010
13011 func (r *ProjectsLocationsDataTaxonomiesAttributesService) List(parent string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13012 c := &ProjectsLocationsDataTaxonomiesAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13013 c.parent = parent
13014 return c
13015 }
13016
13017
13018 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Filter(filter string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13019 c.urlParams_.Set("filter", filter)
13020 return c
13021 }
13022
13023
13024
13025 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) OrderBy(orderBy string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13026 c.urlParams_.Set("orderBy", orderBy)
13027 return c
13028 }
13029
13030
13031
13032
13033
13034 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) PageSize(pageSize int64) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13035 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13036 return c
13037 }
13038
13039
13040
13041
13042
13043 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) PageToken(pageToken string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13044 c.urlParams_.Set("pageToken", pageToken)
13045 return c
13046 }
13047
13048
13049
13050
13051 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13052 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13053 return c
13054 }
13055
13056
13057
13058
13059 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13060 c.ifNoneMatch_ = entityTag
13061 return c
13062 }
13063
13064
13065 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesListCall {
13066 c.ctx_ = ctx
13067 return c
13068 }
13069
13070
13071
13072 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Header() http.Header {
13073 if c.header_ == nil {
13074 c.header_ = make(http.Header)
13075 }
13076 return c.header_
13077 }
13078
13079 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) doRequest(alt string) (*http.Response, error) {
13080 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13081 if c.ifNoneMatch_ != "" {
13082 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13083 }
13084 var body io.Reader = nil
13085 c.urlParams_.Set("alt", alt)
13086 c.urlParams_.Set("prettyPrint", "false")
13087 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
13088 urls += "?" + c.urlParams_.Encode()
13089 req, err := http.NewRequest("GET", urls, body)
13090 if err != nil {
13091 return nil, err
13092 }
13093 req.Header = reqHeaders
13094 googleapi.Expand(req.URL, map[string]string{
13095 "parent": c.parent,
13096 })
13097 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13098 }
13099
13100
13101
13102
13103
13104
13105
13106 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListDataAttributesResponse, error) {
13107 gensupport.SetOptions(c.urlParams_, opts...)
13108 res, err := c.doRequest("json")
13109 if res != nil && res.StatusCode == http.StatusNotModified {
13110 if res.Body != nil {
13111 res.Body.Close()
13112 }
13113 return nil, gensupport.WrapError(&googleapi.Error{
13114 Code: res.StatusCode,
13115 Header: res.Header,
13116 })
13117 }
13118 if err != nil {
13119 return nil, err
13120 }
13121 defer googleapi.CloseBody(res)
13122 if err := googleapi.CheckResponse(res); err != nil {
13123 return nil, gensupport.WrapError(err)
13124 }
13125 ret := &GoogleCloudDataplexV1ListDataAttributesResponse{
13126 ServerResponse: googleapi.ServerResponse{
13127 Header: res.Header,
13128 HTTPStatusCode: res.StatusCode,
13129 },
13130 }
13131 target := &ret
13132 if err := gensupport.DecodeResponse(target, res); err != nil {
13133 return nil, err
13134 }
13135 return ret, nil
13136 }
13137
13138
13139
13140
13141 func (c *ProjectsLocationsDataTaxonomiesAttributesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListDataAttributesResponse) error) error {
13142 c.ctx_ = ctx
13143 defer c.PageToken(c.urlParams_.Get("pageToken"))
13144 for {
13145 x, err := c.Do()
13146 if err != nil {
13147 return err
13148 }
13149 if err := f(x); err != nil {
13150 return err
13151 }
13152 if x.NextPageToken == "" {
13153 return nil
13154 }
13155 c.PageToken(x.NextPageToken)
13156 }
13157 }
13158
13159 type ProjectsLocationsDataTaxonomiesAttributesPatchCall struct {
13160 s *Service
13161 name string
13162 googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute
13163 urlParams_ gensupport.URLParams
13164 ctx_ context.Context
13165 header_ http.Header
13166 }
13167
13168
13169
13170
13171
13172
13173
13174 func (r *ProjectsLocationsDataTaxonomiesAttributesService) Patch(name string, googleclouddataplexv1dataattribute *GoogleCloudDataplexV1DataAttribute) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
13175 c := &ProjectsLocationsDataTaxonomiesAttributesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13176 c.name = name
13177 c.googleclouddataplexv1dataattribute = googleclouddataplexv1dataattribute
13178 return c
13179 }
13180
13181
13182
13183 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
13184 c.urlParams_.Set("updateMask", updateMask)
13185 return c
13186 }
13187
13188
13189
13190 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
13191 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
13192 return c
13193 }
13194
13195
13196
13197
13198 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
13199 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13200 return c
13201 }
13202
13203
13204 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesPatchCall {
13205 c.ctx_ = ctx
13206 return c
13207 }
13208
13209
13210
13211 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Header() http.Header {
13212 if c.header_ == nil {
13213 c.header_ = make(http.Header)
13214 }
13215 return c.header_
13216 }
13217
13218 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) doRequest(alt string) (*http.Response, error) {
13219 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13220 var body io.Reader = nil
13221 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1dataattribute)
13222 if err != nil {
13223 return nil, err
13224 }
13225 c.urlParams_.Set("alt", alt)
13226 c.urlParams_.Set("prettyPrint", "false")
13227 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13228 urls += "?" + c.urlParams_.Encode()
13229 req, err := http.NewRequest("PATCH", urls, body)
13230 if err != nil {
13231 return nil, err
13232 }
13233 req.Header = reqHeaders
13234 googleapi.Expand(req.URL, map[string]string{
13235 "name": c.name,
13236 })
13237 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13238 }
13239
13240
13241
13242
13243
13244
13245
13246 func (c *ProjectsLocationsDataTaxonomiesAttributesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13247 gensupport.SetOptions(c.urlParams_, opts...)
13248 res, err := c.doRequest("json")
13249 if res != nil && res.StatusCode == http.StatusNotModified {
13250 if res.Body != nil {
13251 res.Body.Close()
13252 }
13253 return nil, gensupport.WrapError(&googleapi.Error{
13254 Code: res.StatusCode,
13255 Header: res.Header,
13256 })
13257 }
13258 if err != nil {
13259 return nil, err
13260 }
13261 defer googleapi.CloseBody(res)
13262 if err := googleapi.CheckResponse(res); err != nil {
13263 return nil, gensupport.WrapError(err)
13264 }
13265 ret := &GoogleLongrunningOperation{
13266 ServerResponse: googleapi.ServerResponse{
13267 Header: res.Header,
13268 HTTPStatusCode: res.StatusCode,
13269 },
13270 }
13271 target := &ret
13272 if err := gensupport.DecodeResponse(target, res); err != nil {
13273 return nil, err
13274 }
13275 return ret, nil
13276 }
13277
13278 type ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall struct {
13279 s *Service
13280 resource string
13281 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
13282 urlParams_ gensupport.URLParams
13283 ctx_ context.Context
13284 header_ http.Header
13285 }
13286
13287
13288
13289
13290
13291
13292
13293
13294 func (r *ProjectsLocationsDataTaxonomiesAttributesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall {
13295 c := &ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13296 c.resource = resource
13297 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
13298 return c
13299 }
13300
13301
13302
13303
13304 func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall {
13305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13306 return c
13307 }
13308
13309
13310 func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall {
13311 c.ctx_ = ctx
13312 return c
13313 }
13314
13315
13316
13317 func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Header() http.Header {
13318 if c.header_ == nil {
13319 c.header_ = make(http.Header)
13320 }
13321 return c.header_
13322 }
13323
13324 func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
13325 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13326 var body io.Reader = nil
13327 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
13328 if err != nil {
13329 return nil, err
13330 }
13331 c.urlParams_.Set("alt", alt)
13332 c.urlParams_.Set("prettyPrint", "false")
13333 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
13334 urls += "?" + c.urlParams_.Encode()
13335 req, err := http.NewRequest("POST", urls, body)
13336 if err != nil {
13337 return nil, err
13338 }
13339 req.Header = reqHeaders
13340 googleapi.Expand(req.URL, map[string]string{
13341 "resource": c.resource,
13342 })
13343 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13344 }
13345
13346
13347
13348
13349
13350
13351
13352 func (c *ProjectsLocationsDataTaxonomiesAttributesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
13353 gensupport.SetOptions(c.urlParams_, opts...)
13354 res, err := c.doRequest("json")
13355 if res != nil && res.StatusCode == http.StatusNotModified {
13356 if res.Body != nil {
13357 res.Body.Close()
13358 }
13359 return nil, gensupport.WrapError(&googleapi.Error{
13360 Code: res.StatusCode,
13361 Header: res.Header,
13362 })
13363 }
13364 if err != nil {
13365 return nil, err
13366 }
13367 defer googleapi.CloseBody(res)
13368 if err := googleapi.CheckResponse(res); err != nil {
13369 return nil, gensupport.WrapError(err)
13370 }
13371 ret := &GoogleIamV1Policy{
13372 ServerResponse: googleapi.ServerResponse{
13373 Header: res.Header,
13374 HTTPStatusCode: res.StatusCode,
13375 },
13376 }
13377 target := &ret
13378 if err := gensupport.DecodeResponse(target, res); err != nil {
13379 return nil, err
13380 }
13381 return ret, nil
13382 }
13383
13384 type ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall struct {
13385 s *Service
13386 resource string
13387 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
13388 urlParams_ gensupport.URLParams
13389 ctx_ context.Context
13390 header_ http.Header
13391 }
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403 func (r *ProjectsLocationsDataTaxonomiesAttributesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall {
13404 c := &ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13405 c.resource = resource
13406 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
13407 return c
13408 }
13409
13410
13411
13412
13413 func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall {
13414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13415 return c
13416 }
13417
13418
13419 func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall {
13420 c.ctx_ = ctx
13421 return c
13422 }
13423
13424
13425
13426 func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Header() http.Header {
13427 if c.header_ == nil {
13428 c.header_ = make(http.Header)
13429 }
13430 return c.header_
13431 }
13432
13433 func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
13434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13435 var body io.Reader = nil
13436 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
13437 if err != nil {
13438 return nil, err
13439 }
13440 c.urlParams_.Set("alt", alt)
13441 c.urlParams_.Set("prettyPrint", "false")
13442 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
13443 urls += "?" + c.urlParams_.Encode()
13444 req, err := http.NewRequest("POST", urls, body)
13445 if err != nil {
13446 return nil, err
13447 }
13448 req.Header = reqHeaders
13449 googleapi.Expand(req.URL, map[string]string{
13450 "resource": c.resource,
13451 })
13452 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13453 }
13454
13455
13456
13457
13458
13459
13460
13461 func (c *ProjectsLocationsDataTaxonomiesAttributesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
13462 gensupport.SetOptions(c.urlParams_, opts...)
13463 res, err := c.doRequest("json")
13464 if res != nil && res.StatusCode == http.StatusNotModified {
13465 if res.Body != nil {
13466 res.Body.Close()
13467 }
13468 return nil, gensupport.WrapError(&googleapi.Error{
13469 Code: res.StatusCode,
13470 Header: res.Header,
13471 })
13472 }
13473 if err != nil {
13474 return nil, err
13475 }
13476 defer googleapi.CloseBody(res)
13477 if err := googleapi.CheckResponse(res); err != nil {
13478 return nil, gensupport.WrapError(err)
13479 }
13480 ret := &GoogleIamV1TestIamPermissionsResponse{
13481 ServerResponse: googleapi.ServerResponse{
13482 Header: res.Header,
13483 HTTPStatusCode: res.StatusCode,
13484 },
13485 }
13486 target := &ret
13487 if err := gensupport.DecodeResponse(target, res); err != nil {
13488 return nil, err
13489 }
13490 return ret, nil
13491 }
13492
13493 type ProjectsLocationsEntryGroupsCreateCall struct {
13494 s *Service
13495 parent string
13496 googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup
13497 urlParams_ gensupport.URLParams
13498 ctx_ context.Context
13499 header_ http.Header
13500 }
13501
13502
13503
13504
13505
13506
13507 func (r *ProjectsLocationsEntryGroupsService) Create(parent string, googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup) *ProjectsLocationsEntryGroupsCreateCall {
13508 c := &ProjectsLocationsEntryGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13509 c.parent = parent
13510 c.googleclouddataplexv1entrygroup = googleclouddataplexv1entrygroup
13511 return c
13512 }
13513
13514
13515
13516 func (c *ProjectsLocationsEntryGroupsCreateCall) EntryGroupId(entryGroupId string) *ProjectsLocationsEntryGroupsCreateCall {
13517 c.urlParams_.Set("entryGroupId", entryGroupId)
13518 return c
13519 }
13520
13521
13522
13523 func (c *ProjectsLocationsEntryGroupsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryGroupsCreateCall {
13524 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
13525 return c
13526 }
13527
13528
13529
13530
13531 func (c *ProjectsLocationsEntryGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsCreateCall {
13532 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13533 return c
13534 }
13535
13536
13537 func (c *ProjectsLocationsEntryGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsCreateCall {
13538 c.ctx_ = ctx
13539 return c
13540 }
13541
13542
13543
13544 func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header {
13545 if c.header_ == nil {
13546 c.header_ = make(http.Header)
13547 }
13548 return c.header_
13549 }
13550
13551 func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
13552 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13553 var body io.Reader = nil
13554 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrygroup)
13555 if err != nil {
13556 return nil, err
13557 }
13558 c.urlParams_.Set("alt", alt)
13559 c.urlParams_.Set("prettyPrint", "false")
13560 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
13561 urls += "?" + c.urlParams_.Encode()
13562 req, err := http.NewRequest("POST", urls, body)
13563 if err != nil {
13564 return nil, err
13565 }
13566 req.Header = reqHeaders
13567 googleapi.Expand(req.URL, map[string]string{
13568 "parent": c.parent,
13569 })
13570 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13571 }
13572
13573
13574
13575
13576
13577
13578
13579 func (c *ProjectsLocationsEntryGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13580 gensupport.SetOptions(c.urlParams_, opts...)
13581 res, err := c.doRequest("json")
13582 if res != nil && res.StatusCode == http.StatusNotModified {
13583 if res.Body != nil {
13584 res.Body.Close()
13585 }
13586 return nil, gensupport.WrapError(&googleapi.Error{
13587 Code: res.StatusCode,
13588 Header: res.Header,
13589 })
13590 }
13591 if err != nil {
13592 return nil, err
13593 }
13594 defer googleapi.CloseBody(res)
13595 if err := googleapi.CheckResponse(res); err != nil {
13596 return nil, gensupport.WrapError(err)
13597 }
13598 ret := &GoogleLongrunningOperation{
13599 ServerResponse: googleapi.ServerResponse{
13600 Header: res.Header,
13601 HTTPStatusCode: res.StatusCode,
13602 },
13603 }
13604 target := &ret
13605 if err := gensupport.DecodeResponse(target, res); err != nil {
13606 return nil, err
13607 }
13608 return ret, nil
13609 }
13610
13611 type ProjectsLocationsEntryGroupsDeleteCall struct {
13612 s *Service
13613 name string
13614 urlParams_ gensupport.URLParams
13615 ctx_ context.Context
13616 header_ http.Header
13617 }
13618
13619
13620
13621
13622
13623
13624 func (r *ProjectsLocationsEntryGroupsService) Delete(name string) *ProjectsLocationsEntryGroupsDeleteCall {
13625 c := &ProjectsLocationsEntryGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13626 c.name = name
13627 return c
13628 }
13629
13630
13631
13632
13633 func (c *ProjectsLocationsEntryGroupsDeleteCall) Etag(etag string) *ProjectsLocationsEntryGroupsDeleteCall {
13634 c.urlParams_.Set("etag", etag)
13635 return c
13636 }
13637
13638
13639
13640
13641 func (c *ProjectsLocationsEntryGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsDeleteCall {
13642 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13643 return c
13644 }
13645
13646
13647 func (c *ProjectsLocationsEntryGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsDeleteCall {
13648 c.ctx_ = ctx
13649 return c
13650 }
13651
13652
13653
13654 func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header {
13655 if c.header_ == nil {
13656 c.header_ = make(http.Header)
13657 }
13658 return c.header_
13659 }
13660
13661 func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
13662 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13663 var body io.Reader = nil
13664 c.urlParams_.Set("alt", alt)
13665 c.urlParams_.Set("prettyPrint", "false")
13666 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13667 urls += "?" + c.urlParams_.Encode()
13668 req, err := http.NewRequest("DELETE", urls, body)
13669 if err != nil {
13670 return nil, err
13671 }
13672 req.Header = reqHeaders
13673 googleapi.Expand(req.URL, map[string]string{
13674 "name": c.name,
13675 })
13676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13677 }
13678
13679
13680
13681
13682
13683
13684
13685 func (c *ProjectsLocationsEntryGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13686 gensupport.SetOptions(c.urlParams_, opts...)
13687 res, err := c.doRequest("json")
13688 if res != nil && res.StatusCode == http.StatusNotModified {
13689 if res.Body != nil {
13690 res.Body.Close()
13691 }
13692 return nil, gensupport.WrapError(&googleapi.Error{
13693 Code: res.StatusCode,
13694 Header: res.Header,
13695 })
13696 }
13697 if err != nil {
13698 return nil, err
13699 }
13700 defer googleapi.CloseBody(res)
13701 if err := googleapi.CheckResponse(res); err != nil {
13702 return nil, gensupport.WrapError(err)
13703 }
13704 ret := &GoogleLongrunningOperation{
13705 ServerResponse: googleapi.ServerResponse{
13706 Header: res.Header,
13707 HTTPStatusCode: res.StatusCode,
13708 },
13709 }
13710 target := &ret
13711 if err := gensupport.DecodeResponse(target, res); err != nil {
13712 return nil, err
13713 }
13714 return ret, nil
13715 }
13716
13717 type ProjectsLocationsEntryGroupsGetCall struct {
13718 s *Service
13719 name string
13720 urlParams_ gensupport.URLParams
13721 ifNoneMatch_ string
13722 ctx_ context.Context
13723 header_ http.Header
13724 }
13725
13726
13727
13728
13729
13730
13731 func (r *ProjectsLocationsEntryGroupsService) Get(name string) *ProjectsLocationsEntryGroupsGetCall {
13732 c := &ProjectsLocationsEntryGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13733 c.name = name
13734 return c
13735 }
13736
13737
13738
13739
13740 func (c *ProjectsLocationsEntryGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetCall {
13741 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13742 return c
13743 }
13744
13745
13746
13747
13748 func (c *ProjectsLocationsEntryGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetCall {
13749 c.ifNoneMatch_ = entityTag
13750 return c
13751 }
13752
13753
13754 func (c *ProjectsLocationsEntryGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetCall {
13755 c.ctx_ = ctx
13756 return c
13757 }
13758
13759
13760
13761 func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header {
13762 if c.header_ == nil {
13763 c.header_ = make(http.Header)
13764 }
13765 return c.header_
13766 }
13767
13768 func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Response, error) {
13769 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13770 if c.ifNoneMatch_ != "" {
13771 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13772 }
13773 var body io.Reader = nil
13774 c.urlParams_.Set("alt", alt)
13775 c.urlParams_.Set("prettyPrint", "false")
13776 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13777 urls += "?" + c.urlParams_.Encode()
13778 req, err := http.NewRequest("GET", urls, body)
13779 if err != nil {
13780 return nil, err
13781 }
13782 req.Header = reqHeaders
13783 googleapi.Expand(req.URL, map[string]string{
13784 "name": c.name,
13785 })
13786 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13787 }
13788
13789
13790
13791
13792
13793
13794
13795 func (c *ProjectsLocationsEntryGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1EntryGroup, error) {
13796 gensupport.SetOptions(c.urlParams_, opts...)
13797 res, err := c.doRequest("json")
13798 if res != nil && res.StatusCode == http.StatusNotModified {
13799 if res.Body != nil {
13800 res.Body.Close()
13801 }
13802 return nil, gensupport.WrapError(&googleapi.Error{
13803 Code: res.StatusCode,
13804 Header: res.Header,
13805 })
13806 }
13807 if err != nil {
13808 return nil, err
13809 }
13810 defer googleapi.CloseBody(res)
13811 if err := googleapi.CheckResponse(res); err != nil {
13812 return nil, gensupport.WrapError(err)
13813 }
13814 ret := &GoogleCloudDataplexV1EntryGroup{
13815 ServerResponse: googleapi.ServerResponse{
13816 Header: res.Header,
13817 HTTPStatusCode: res.StatusCode,
13818 },
13819 }
13820 target := &ret
13821 if err := gensupport.DecodeResponse(target, res); err != nil {
13822 return nil, err
13823 }
13824 return ret, nil
13825 }
13826
13827 type ProjectsLocationsEntryGroupsGetIamPolicyCall struct {
13828 s *Service
13829 resource string
13830 urlParams_ gensupport.URLParams
13831 ifNoneMatch_ string
13832 ctx_ context.Context
13833 header_ http.Header
13834 }
13835
13836
13837
13838
13839
13840
13841
13842 func (r *ProjectsLocationsEntryGroupsService) GetIamPolicy(resource string) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
13843 c := &ProjectsLocationsEntryGroupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13844 c.resource = resource
13845 return c
13846 }
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
13861 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
13862 return c
13863 }
13864
13865
13866
13867
13868 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
13869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13870 return c
13871 }
13872
13873
13874
13875
13876 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
13877 c.ifNoneMatch_ = entityTag
13878 return c
13879 }
13880
13881
13882 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
13883 c.ctx_ = ctx
13884 return c
13885 }
13886
13887
13888
13889 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header {
13890 if c.header_ == nil {
13891 c.header_ = make(http.Header)
13892 }
13893 return c.header_
13894 }
13895
13896 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
13897 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13898 if c.ifNoneMatch_ != "" {
13899 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13900 }
13901 var body io.Reader = nil
13902 c.urlParams_.Set("alt", alt)
13903 c.urlParams_.Set("prettyPrint", "false")
13904 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
13905 urls += "?" + c.urlParams_.Encode()
13906 req, err := http.NewRequest("GET", urls, body)
13907 if err != nil {
13908 return nil, err
13909 }
13910 req.Header = reqHeaders
13911 googleapi.Expand(req.URL, map[string]string{
13912 "resource": c.resource,
13913 })
13914 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13915 }
13916
13917
13918
13919
13920
13921
13922
13923 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
13924 gensupport.SetOptions(c.urlParams_, opts...)
13925 res, err := c.doRequest("json")
13926 if res != nil && res.StatusCode == http.StatusNotModified {
13927 if res.Body != nil {
13928 res.Body.Close()
13929 }
13930 return nil, gensupport.WrapError(&googleapi.Error{
13931 Code: res.StatusCode,
13932 Header: res.Header,
13933 })
13934 }
13935 if err != nil {
13936 return nil, err
13937 }
13938 defer googleapi.CloseBody(res)
13939 if err := googleapi.CheckResponse(res); err != nil {
13940 return nil, gensupport.WrapError(err)
13941 }
13942 ret := &GoogleIamV1Policy{
13943 ServerResponse: googleapi.ServerResponse{
13944 Header: res.Header,
13945 HTTPStatusCode: res.StatusCode,
13946 },
13947 }
13948 target := &ret
13949 if err := gensupport.DecodeResponse(target, res); err != nil {
13950 return nil, err
13951 }
13952 return ret, nil
13953 }
13954
13955 type ProjectsLocationsEntryGroupsListCall struct {
13956 s *Service
13957 parent string
13958 urlParams_ gensupport.URLParams
13959 ifNoneMatch_ string
13960 ctx_ context.Context
13961 header_ http.Header
13962 }
13963
13964
13965
13966
13967
13968
13969 func (r *ProjectsLocationsEntryGroupsService) List(parent string) *ProjectsLocationsEntryGroupsListCall {
13970 c := &ProjectsLocationsEntryGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13971 c.parent = parent
13972 return c
13973 }
13974
13975
13976 func (c *ProjectsLocationsEntryGroupsListCall) Filter(filter string) *ProjectsLocationsEntryGroupsListCall {
13977 c.urlParams_.Set("filter", filter)
13978 return c
13979 }
13980
13981
13982
13983 func (c *ProjectsLocationsEntryGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsEntryGroupsListCall {
13984 c.urlParams_.Set("orderBy", orderBy)
13985 return c
13986 }
13987
13988
13989
13990
13991
13992 func (c *ProjectsLocationsEntryGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsListCall {
13993 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13994 return c
13995 }
13996
13997
13998
13999
14000
14001 func (c *ProjectsLocationsEntryGroupsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsListCall {
14002 c.urlParams_.Set("pageToken", pageToken)
14003 return c
14004 }
14005
14006
14007
14008
14009 func (c *ProjectsLocationsEntryGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsListCall {
14010 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14011 return c
14012 }
14013
14014
14015
14016
14017 func (c *ProjectsLocationsEntryGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsListCall {
14018 c.ifNoneMatch_ = entityTag
14019 return c
14020 }
14021
14022
14023 func (c *ProjectsLocationsEntryGroupsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsListCall {
14024 c.ctx_ = ctx
14025 return c
14026 }
14027
14028
14029
14030 func (c *ProjectsLocationsEntryGroupsListCall) Header() http.Header {
14031 if c.header_ == nil {
14032 c.header_ = make(http.Header)
14033 }
14034 return c.header_
14035 }
14036
14037 func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Response, error) {
14038 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14039 if c.ifNoneMatch_ != "" {
14040 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14041 }
14042 var body io.Reader = nil
14043 c.urlParams_.Set("alt", alt)
14044 c.urlParams_.Set("prettyPrint", "false")
14045 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
14046 urls += "?" + c.urlParams_.Encode()
14047 req, err := http.NewRequest("GET", urls, body)
14048 if err != nil {
14049 return nil, err
14050 }
14051 req.Header = reqHeaders
14052 googleapi.Expand(req.URL, map[string]string{
14053 "parent": c.parent,
14054 })
14055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14056 }
14057
14058
14059
14060
14061
14062
14063
14064 func (c *ProjectsLocationsEntryGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntryGroupsResponse, error) {
14065 gensupport.SetOptions(c.urlParams_, opts...)
14066 res, err := c.doRequest("json")
14067 if res != nil && res.StatusCode == http.StatusNotModified {
14068 if res.Body != nil {
14069 res.Body.Close()
14070 }
14071 return nil, gensupport.WrapError(&googleapi.Error{
14072 Code: res.StatusCode,
14073 Header: res.Header,
14074 })
14075 }
14076 if err != nil {
14077 return nil, err
14078 }
14079 defer googleapi.CloseBody(res)
14080 if err := googleapi.CheckResponse(res); err != nil {
14081 return nil, gensupport.WrapError(err)
14082 }
14083 ret := &GoogleCloudDataplexV1ListEntryGroupsResponse{
14084 ServerResponse: googleapi.ServerResponse{
14085 Header: res.Header,
14086 HTTPStatusCode: res.StatusCode,
14087 },
14088 }
14089 target := &ret
14090 if err := gensupport.DecodeResponse(target, res); err != nil {
14091 return nil, err
14092 }
14093 return ret, nil
14094 }
14095
14096
14097
14098
14099 func (c *ProjectsLocationsEntryGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntryGroupsResponse) error) error {
14100 c.ctx_ = ctx
14101 defer c.PageToken(c.urlParams_.Get("pageToken"))
14102 for {
14103 x, err := c.Do()
14104 if err != nil {
14105 return err
14106 }
14107 if err := f(x); err != nil {
14108 return err
14109 }
14110 if x.NextPageToken == "" {
14111 return nil
14112 }
14113 c.PageToken(x.NextPageToken)
14114 }
14115 }
14116
14117 type ProjectsLocationsEntryGroupsPatchCall struct {
14118 s *Service
14119 name string
14120 googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup
14121 urlParams_ gensupport.URLParams
14122 ctx_ context.Context
14123 header_ http.Header
14124 }
14125
14126
14127
14128
14129
14130
14131
14132 func (r *ProjectsLocationsEntryGroupsService) Patch(name string, googleclouddataplexv1entrygroup *GoogleCloudDataplexV1EntryGroup) *ProjectsLocationsEntryGroupsPatchCall {
14133 c := &ProjectsLocationsEntryGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14134 c.name = name
14135 c.googleclouddataplexv1entrygroup = googleclouddataplexv1entrygroup
14136 return c
14137 }
14138
14139
14140
14141 func (c *ProjectsLocationsEntryGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsPatchCall {
14142 c.urlParams_.Set("updateMask", updateMask)
14143 return c
14144 }
14145
14146
14147
14148 func (c *ProjectsLocationsEntryGroupsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryGroupsPatchCall {
14149 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
14150 return c
14151 }
14152
14153
14154
14155
14156 func (c *ProjectsLocationsEntryGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsPatchCall {
14157 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14158 return c
14159 }
14160
14161
14162 func (c *ProjectsLocationsEntryGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsPatchCall {
14163 c.ctx_ = ctx
14164 return c
14165 }
14166
14167
14168
14169 func (c *ProjectsLocationsEntryGroupsPatchCall) Header() http.Header {
14170 if c.header_ == nil {
14171 c.header_ = make(http.Header)
14172 }
14173 return c.header_
14174 }
14175
14176 func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
14177 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14178 var body io.Reader = nil
14179 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrygroup)
14180 if err != nil {
14181 return nil, err
14182 }
14183 c.urlParams_.Set("alt", alt)
14184 c.urlParams_.Set("prettyPrint", "false")
14185 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14186 urls += "?" + c.urlParams_.Encode()
14187 req, err := http.NewRequest("PATCH", urls, body)
14188 if err != nil {
14189 return nil, err
14190 }
14191 req.Header = reqHeaders
14192 googleapi.Expand(req.URL, map[string]string{
14193 "name": c.name,
14194 })
14195 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14196 }
14197
14198
14199
14200
14201
14202
14203
14204 func (c *ProjectsLocationsEntryGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14205 gensupport.SetOptions(c.urlParams_, opts...)
14206 res, err := c.doRequest("json")
14207 if res != nil && res.StatusCode == http.StatusNotModified {
14208 if res.Body != nil {
14209 res.Body.Close()
14210 }
14211 return nil, gensupport.WrapError(&googleapi.Error{
14212 Code: res.StatusCode,
14213 Header: res.Header,
14214 })
14215 }
14216 if err != nil {
14217 return nil, err
14218 }
14219 defer googleapi.CloseBody(res)
14220 if err := googleapi.CheckResponse(res); err != nil {
14221 return nil, gensupport.WrapError(err)
14222 }
14223 ret := &GoogleLongrunningOperation{
14224 ServerResponse: googleapi.ServerResponse{
14225 Header: res.Header,
14226 HTTPStatusCode: res.StatusCode,
14227 },
14228 }
14229 target := &ret
14230 if err := gensupport.DecodeResponse(target, res); err != nil {
14231 return nil, err
14232 }
14233 return ret, nil
14234 }
14235
14236 type ProjectsLocationsEntryGroupsSetIamPolicyCall struct {
14237 s *Service
14238 resource string
14239 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
14240 urlParams_ gensupport.URLParams
14241 ctx_ context.Context
14242 header_ http.Header
14243 }
14244
14245
14246
14247
14248
14249
14250
14251
14252 func (r *ProjectsLocationsEntryGroupsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
14253 c := &ProjectsLocationsEntryGroupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14254 c.resource = resource
14255 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
14256 return c
14257 }
14258
14259
14260
14261
14262 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
14263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14264 return c
14265 }
14266
14267
14268 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
14269 c.ctx_ = ctx
14270 return c
14271 }
14272
14273
14274
14275 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header {
14276 if c.header_ == nil {
14277 c.header_ = make(http.Header)
14278 }
14279 return c.header_
14280 }
14281
14282 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
14283 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14284 var body io.Reader = nil
14285 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
14286 if err != nil {
14287 return nil, err
14288 }
14289 c.urlParams_.Set("alt", alt)
14290 c.urlParams_.Set("prettyPrint", "false")
14291 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
14292 urls += "?" + c.urlParams_.Encode()
14293 req, err := http.NewRequest("POST", urls, body)
14294 if err != nil {
14295 return nil, err
14296 }
14297 req.Header = reqHeaders
14298 googleapi.Expand(req.URL, map[string]string{
14299 "resource": c.resource,
14300 })
14301 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14302 }
14303
14304
14305
14306
14307
14308
14309
14310 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
14311 gensupport.SetOptions(c.urlParams_, opts...)
14312 res, err := c.doRequest("json")
14313 if res != nil && res.StatusCode == http.StatusNotModified {
14314 if res.Body != nil {
14315 res.Body.Close()
14316 }
14317 return nil, gensupport.WrapError(&googleapi.Error{
14318 Code: res.StatusCode,
14319 Header: res.Header,
14320 })
14321 }
14322 if err != nil {
14323 return nil, err
14324 }
14325 defer googleapi.CloseBody(res)
14326 if err := googleapi.CheckResponse(res); err != nil {
14327 return nil, gensupport.WrapError(err)
14328 }
14329 ret := &GoogleIamV1Policy{
14330 ServerResponse: googleapi.ServerResponse{
14331 Header: res.Header,
14332 HTTPStatusCode: res.StatusCode,
14333 },
14334 }
14335 target := &ret
14336 if err := gensupport.DecodeResponse(target, res); err != nil {
14337 return nil, err
14338 }
14339 return ret, nil
14340 }
14341
14342 type ProjectsLocationsEntryGroupsTestIamPermissionsCall struct {
14343 s *Service
14344 resource string
14345 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
14346 urlParams_ gensupport.URLParams
14347 ctx_ context.Context
14348 header_ http.Header
14349 }
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361 func (r *ProjectsLocationsEntryGroupsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
14362 c := &ProjectsLocationsEntryGroupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14363 c.resource = resource
14364 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
14365 return c
14366 }
14367
14368
14369
14370
14371 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
14372 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14373 return c
14374 }
14375
14376
14377 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
14378 c.ctx_ = ctx
14379 return c
14380 }
14381
14382
14383
14384 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Header {
14385 if c.header_ == nil {
14386 c.header_ = make(http.Header)
14387 }
14388 return c.header_
14389 }
14390
14391 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
14392 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14393 var body io.Reader = nil
14394 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
14395 if err != nil {
14396 return nil, err
14397 }
14398 c.urlParams_.Set("alt", alt)
14399 c.urlParams_.Set("prettyPrint", "false")
14400 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
14401 urls += "?" + c.urlParams_.Encode()
14402 req, err := http.NewRequest("POST", urls, body)
14403 if err != nil {
14404 return nil, err
14405 }
14406 req.Header = reqHeaders
14407 googleapi.Expand(req.URL, map[string]string{
14408 "resource": c.resource,
14409 })
14410 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14411 }
14412
14413
14414
14415
14416
14417
14418
14419 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
14420 gensupport.SetOptions(c.urlParams_, opts...)
14421 res, err := c.doRequest("json")
14422 if res != nil && res.StatusCode == http.StatusNotModified {
14423 if res.Body != nil {
14424 res.Body.Close()
14425 }
14426 return nil, gensupport.WrapError(&googleapi.Error{
14427 Code: res.StatusCode,
14428 Header: res.Header,
14429 })
14430 }
14431 if err != nil {
14432 return nil, err
14433 }
14434 defer googleapi.CloseBody(res)
14435 if err := googleapi.CheckResponse(res); err != nil {
14436 return nil, gensupport.WrapError(err)
14437 }
14438 ret := &GoogleIamV1TestIamPermissionsResponse{
14439 ServerResponse: googleapi.ServerResponse{
14440 Header: res.Header,
14441 HTTPStatusCode: res.StatusCode,
14442 },
14443 }
14444 target := &ret
14445 if err := gensupport.DecodeResponse(target, res); err != nil {
14446 return nil, err
14447 }
14448 return ret, nil
14449 }
14450
14451 type ProjectsLocationsEntryGroupsEntriesCreateCall struct {
14452 s *Service
14453 parent string
14454 googleclouddataplexv1entry *GoogleCloudDataplexV1Entry
14455 urlParams_ gensupport.URLParams
14456 ctx_ context.Context
14457 header_ http.Header
14458 }
14459
14460
14461
14462
14463
14464 func (r *ProjectsLocationsEntryGroupsEntriesService) Create(parent string, googleclouddataplexv1entry *GoogleCloudDataplexV1Entry) *ProjectsLocationsEntryGroupsEntriesCreateCall {
14465 c := &ProjectsLocationsEntryGroupsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14466 c.parent = parent
14467 c.googleclouddataplexv1entry = googleclouddataplexv1entry
14468 return c
14469 }
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId(entryId string) *ProjectsLocationsEntryGroupsEntriesCreateCall {
14485 c.urlParams_.Set("entryId", entryId)
14486 return c
14487 }
14488
14489
14490
14491
14492 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesCreateCall {
14493 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14494 return c
14495 }
14496
14497
14498 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesCreateCall {
14499 c.ctx_ = ctx
14500 return c
14501 }
14502
14503
14504
14505 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header {
14506 if c.header_ == nil {
14507 c.header_ = make(http.Header)
14508 }
14509 return c.header_
14510 }
14511
14512 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
14513 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14514 var body io.Reader = nil
14515 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entry)
14516 if err != nil {
14517 return nil, err
14518 }
14519 c.urlParams_.Set("alt", alt)
14520 c.urlParams_.Set("prettyPrint", "false")
14521 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
14522 urls += "?" + c.urlParams_.Encode()
14523 req, err := http.NewRequest("POST", urls, body)
14524 if err != nil {
14525 return nil, err
14526 }
14527 req.Header = reqHeaders
14528 googleapi.Expand(req.URL, map[string]string{
14529 "parent": c.parent,
14530 })
14531 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14532 }
14533
14534
14535
14536
14537
14538
14539
14540 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
14541 gensupport.SetOptions(c.urlParams_, opts...)
14542 res, err := c.doRequest("json")
14543 if res != nil && res.StatusCode == http.StatusNotModified {
14544 if res.Body != nil {
14545 res.Body.Close()
14546 }
14547 return nil, gensupport.WrapError(&googleapi.Error{
14548 Code: res.StatusCode,
14549 Header: res.Header,
14550 })
14551 }
14552 if err != nil {
14553 return nil, err
14554 }
14555 defer googleapi.CloseBody(res)
14556 if err := googleapi.CheckResponse(res); err != nil {
14557 return nil, gensupport.WrapError(err)
14558 }
14559 ret := &GoogleCloudDataplexV1Entry{
14560 ServerResponse: googleapi.ServerResponse{
14561 Header: res.Header,
14562 HTTPStatusCode: res.StatusCode,
14563 },
14564 }
14565 target := &ret
14566 if err := gensupport.DecodeResponse(target, res); err != nil {
14567 return nil, err
14568 }
14569 return ret, nil
14570 }
14571
14572 type ProjectsLocationsEntryGroupsEntriesDeleteCall struct {
14573 s *Service
14574 name string
14575 urlParams_ gensupport.URLParams
14576 ctx_ context.Context
14577 header_ http.Header
14578 }
14579
14580
14581
14582
14583
14584
14585 func (r *ProjectsLocationsEntryGroupsEntriesService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
14586 c := &ProjectsLocationsEntryGroupsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14587 c.name = name
14588 return c
14589 }
14590
14591
14592
14593
14594 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
14595 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14596 return c
14597 }
14598
14599
14600 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
14601 c.ctx_ = ctx
14602 return c
14603 }
14604
14605
14606
14607 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header {
14608 if c.header_ == nil {
14609 c.header_ = make(http.Header)
14610 }
14611 return c.header_
14612 }
14613
14614 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
14615 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14616 var body io.Reader = nil
14617 c.urlParams_.Set("alt", alt)
14618 c.urlParams_.Set("prettyPrint", "false")
14619 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14620 urls += "?" + c.urlParams_.Encode()
14621 req, err := http.NewRequest("DELETE", urls, body)
14622 if err != nil {
14623 return nil, err
14624 }
14625 req.Header = reqHeaders
14626 googleapi.Expand(req.URL, map[string]string{
14627 "name": c.name,
14628 })
14629 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14630 }
14631
14632
14633
14634
14635
14636
14637
14638 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
14639 gensupport.SetOptions(c.urlParams_, opts...)
14640 res, err := c.doRequest("json")
14641 if res != nil && res.StatusCode == http.StatusNotModified {
14642 if res.Body != nil {
14643 res.Body.Close()
14644 }
14645 return nil, gensupport.WrapError(&googleapi.Error{
14646 Code: res.StatusCode,
14647 Header: res.Header,
14648 })
14649 }
14650 if err != nil {
14651 return nil, err
14652 }
14653 defer googleapi.CloseBody(res)
14654 if err := googleapi.CheckResponse(res); err != nil {
14655 return nil, gensupport.WrapError(err)
14656 }
14657 ret := &GoogleCloudDataplexV1Entry{
14658 ServerResponse: googleapi.ServerResponse{
14659 Header: res.Header,
14660 HTTPStatusCode: res.StatusCode,
14661 },
14662 }
14663 target := &ret
14664 if err := gensupport.DecodeResponse(target, res); err != nil {
14665 return nil, err
14666 }
14667 return ret, nil
14668 }
14669
14670 type ProjectsLocationsEntryGroupsEntriesGetCall struct {
14671 s *Service
14672 name string
14673 urlParams_ gensupport.URLParams
14674 ifNoneMatch_ string
14675 ctx_ context.Context
14676 header_ http.Header
14677 }
14678
14679
14680
14681
14682
14683
14684 func (r *ProjectsLocationsEntryGroupsEntriesService) Get(name string) *ProjectsLocationsEntryGroupsEntriesGetCall {
14685 c := &ProjectsLocationsEntryGroupsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14686 c.name = name
14687 return c
14688 }
14689
14690
14691
14692
14693 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) AspectTypes(aspectTypes ...string) *ProjectsLocationsEntryGroupsEntriesGetCall {
14694 c.urlParams_.SetMulti("aspectTypes", append([]string{}, aspectTypes...))
14695 return c
14696 }
14697
14698
14699
14700
14701 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Paths(paths ...string) *ProjectsLocationsEntryGroupsEntriesGetCall {
14702 c.urlParams_.SetMulti("paths", append([]string{}, paths...))
14703 return c
14704 }
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) View(view string) *ProjectsLocationsEntryGroupsEntriesGetCall {
14725 c.urlParams_.Set("view", view)
14726 return c
14727 }
14728
14729
14730
14731
14732 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetCall {
14733 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14734 return c
14735 }
14736
14737
14738
14739
14740 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesGetCall {
14741 c.ifNoneMatch_ = entityTag
14742 return c
14743 }
14744
14745
14746 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetCall {
14747 c.ctx_ = ctx
14748 return c
14749 }
14750
14751
14752
14753 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header {
14754 if c.header_ == nil {
14755 c.header_ = make(http.Header)
14756 }
14757 return c.header_
14758 }
14759
14760 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
14761 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14762 if c.ifNoneMatch_ != "" {
14763 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14764 }
14765 var body io.Reader = nil
14766 c.urlParams_.Set("alt", alt)
14767 c.urlParams_.Set("prettyPrint", "false")
14768 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14769 urls += "?" + c.urlParams_.Encode()
14770 req, err := http.NewRequest("GET", urls, body)
14771 if err != nil {
14772 return nil, err
14773 }
14774 req.Header = reqHeaders
14775 googleapi.Expand(req.URL, map[string]string{
14776 "name": c.name,
14777 })
14778 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14779 }
14780
14781
14782
14783
14784
14785
14786
14787 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
14788 gensupport.SetOptions(c.urlParams_, opts...)
14789 res, err := c.doRequest("json")
14790 if res != nil && res.StatusCode == http.StatusNotModified {
14791 if res.Body != nil {
14792 res.Body.Close()
14793 }
14794 return nil, gensupport.WrapError(&googleapi.Error{
14795 Code: res.StatusCode,
14796 Header: res.Header,
14797 })
14798 }
14799 if err != nil {
14800 return nil, err
14801 }
14802 defer googleapi.CloseBody(res)
14803 if err := googleapi.CheckResponse(res); err != nil {
14804 return nil, gensupport.WrapError(err)
14805 }
14806 ret := &GoogleCloudDataplexV1Entry{
14807 ServerResponse: googleapi.ServerResponse{
14808 Header: res.Header,
14809 HTTPStatusCode: res.StatusCode,
14810 },
14811 }
14812 target := &ret
14813 if err := gensupport.DecodeResponse(target, res); err != nil {
14814 return nil, err
14815 }
14816 return ret, nil
14817 }
14818
14819 type ProjectsLocationsEntryGroupsEntriesListCall struct {
14820 s *Service
14821 parent string
14822 urlParams_ gensupport.URLParams
14823 ifNoneMatch_ string
14824 ctx_ context.Context
14825 header_ http.Header
14826 }
14827
14828
14829
14830
14831
14832 func (r *ProjectsLocationsEntryGroupsEntriesService) List(parent string) *ProjectsLocationsEntryGroupsEntriesListCall {
14833 c := &ProjectsLocationsEntryGroupsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14834 c.parent = parent
14835 return c
14836 }
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Filter(filter string) *ProjectsLocationsEntryGroupsEntriesListCall {
14851 c.urlParams_.Set("filter", filter)
14852 return c
14853 }
14854
14855
14856 func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesListCall {
14857 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14858 return c
14859 }
14860
14861
14862
14863 func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesListCall {
14864 c.urlParams_.Set("pageToken", pageToken)
14865 return c
14866 }
14867
14868
14869
14870
14871 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesListCall {
14872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14873 return c
14874 }
14875
14876
14877
14878
14879 func (c *ProjectsLocationsEntryGroupsEntriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesListCall {
14880 c.ifNoneMatch_ = entityTag
14881 return c
14882 }
14883
14884
14885 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesListCall {
14886 c.ctx_ = ctx
14887 return c
14888 }
14889
14890
14891
14892 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Header() http.Header {
14893 if c.header_ == nil {
14894 c.header_ = make(http.Header)
14895 }
14896 return c.header_
14897 }
14898
14899 func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*http.Response, error) {
14900 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14901 if c.ifNoneMatch_ != "" {
14902 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14903 }
14904 var body io.Reader = nil
14905 c.urlParams_.Set("alt", alt)
14906 c.urlParams_.Set("prettyPrint", "false")
14907 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
14908 urls += "?" + c.urlParams_.Encode()
14909 req, err := http.NewRequest("GET", urls, body)
14910 if err != nil {
14911 return nil, err
14912 }
14913 req.Header = reqHeaders
14914 googleapi.Expand(req.URL, map[string]string{
14915 "parent": c.parent,
14916 })
14917 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14918 }
14919
14920
14921
14922
14923
14924
14925
14926 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntriesResponse, error) {
14927 gensupport.SetOptions(c.urlParams_, opts...)
14928 res, err := c.doRequest("json")
14929 if res != nil && res.StatusCode == http.StatusNotModified {
14930 if res.Body != nil {
14931 res.Body.Close()
14932 }
14933 return nil, gensupport.WrapError(&googleapi.Error{
14934 Code: res.StatusCode,
14935 Header: res.Header,
14936 })
14937 }
14938 if err != nil {
14939 return nil, err
14940 }
14941 defer googleapi.CloseBody(res)
14942 if err := googleapi.CheckResponse(res); err != nil {
14943 return nil, gensupport.WrapError(err)
14944 }
14945 ret := &GoogleCloudDataplexV1ListEntriesResponse{
14946 ServerResponse: googleapi.ServerResponse{
14947 Header: res.Header,
14948 HTTPStatusCode: res.StatusCode,
14949 },
14950 }
14951 target := &ret
14952 if err := gensupport.DecodeResponse(target, res); err != nil {
14953 return nil, err
14954 }
14955 return ret, nil
14956 }
14957
14958
14959
14960
14961 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntriesResponse) error) error {
14962 c.ctx_ = ctx
14963 defer c.PageToken(c.urlParams_.Get("pageToken"))
14964 for {
14965 x, err := c.Do()
14966 if err != nil {
14967 return err
14968 }
14969 if err := f(x); err != nil {
14970 return err
14971 }
14972 if x.NextPageToken == "" {
14973 return nil
14974 }
14975 c.PageToken(x.NextPageToken)
14976 }
14977 }
14978
14979 type ProjectsLocationsEntryGroupsEntriesPatchCall struct {
14980 s *Service
14981 name string
14982 googleclouddataplexv1entry *GoogleCloudDataplexV1Entry
14983 urlParams_ gensupport.URLParams
14984 ctx_ context.Context
14985 header_ http.Header
14986 }
14987
14988
14989
14990
14991
14992
14993 func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, googleclouddataplexv1entry *GoogleCloudDataplexV1Entry) *ProjectsLocationsEntryGroupsEntriesPatchCall {
14994 c := &ProjectsLocationsEntryGroupsEntriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14995 c.name = name
14996 c.googleclouddataplexv1entry = googleclouddataplexv1entry
14997 return c
14998 }
14999
15000
15001
15002 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsEntryGroupsEntriesPatchCall {
15003 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
15004 return c
15005 }
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) AspectKeys(aspectKeys ...string) *ProjectsLocationsEntryGroupsEntriesPatchCall {
15016 c.urlParams_.SetMulti("aspectKeys", append([]string{}, aspectKeys...))
15017 return c
15018 }
15019
15020
15021
15022
15023 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) DeleteMissingAspects(deleteMissingAspects bool) *ProjectsLocationsEntryGroupsEntriesPatchCall {
15024 c.urlParams_.Set("deleteMissingAspects", fmt.Sprint(deleteMissingAspects))
15025 return c
15026 }
15027
15028
15029
15030
15031
15032 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesPatchCall {
15033 c.urlParams_.Set("updateMask", updateMask)
15034 return c
15035 }
15036
15037
15038
15039
15040 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesPatchCall {
15041 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15042 return c
15043 }
15044
15045
15046 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesPatchCall {
15047 c.ctx_ = ctx
15048 return c
15049 }
15050
15051
15052
15053 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header {
15054 if c.header_ == nil {
15055 c.header_ = make(http.Header)
15056 }
15057 return c.header_
15058 }
15059
15060 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*http.Response, error) {
15061 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15062 var body io.Reader = nil
15063 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entry)
15064 if err != nil {
15065 return nil, err
15066 }
15067 c.urlParams_.Set("alt", alt)
15068 c.urlParams_.Set("prettyPrint", "false")
15069 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15070 urls += "?" + c.urlParams_.Encode()
15071 req, err := http.NewRequest("PATCH", urls, body)
15072 if err != nil {
15073 return nil, err
15074 }
15075 req.Header = reqHeaders
15076 googleapi.Expand(req.URL, map[string]string{
15077 "name": c.name,
15078 })
15079 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15080 }
15081
15082
15083
15084
15085
15086
15087
15088 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entry, error) {
15089 gensupport.SetOptions(c.urlParams_, opts...)
15090 res, err := c.doRequest("json")
15091 if res != nil && res.StatusCode == http.StatusNotModified {
15092 if res.Body != nil {
15093 res.Body.Close()
15094 }
15095 return nil, gensupport.WrapError(&googleapi.Error{
15096 Code: res.StatusCode,
15097 Header: res.Header,
15098 })
15099 }
15100 if err != nil {
15101 return nil, err
15102 }
15103 defer googleapi.CloseBody(res)
15104 if err := googleapi.CheckResponse(res); err != nil {
15105 return nil, gensupport.WrapError(err)
15106 }
15107 ret := &GoogleCloudDataplexV1Entry{
15108 ServerResponse: googleapi.ServerResponse{
15109 Header: res.Header,
15110 HTTPStatusCode: res.StatusCode,
15111 },
15112 }
15113 target := &ret
15114 if err := gensupport.DecodeResponse(target, res); err != nil {
15115 return nil, err
15116 }
15117 return ret, nil
15118 }
15119
15120 type ProjectsLocationsEntryTypesCreateCall struct {
15121 s *Service
15122 parent string
15123 googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType
15124 urlParams_ gensupport.URLParams
15125 ctx_ context.Context
15126 header_ http.Header
15127 }
15128
15129
15130
15131
15132
15133
15134 func (r *ProjectsLocationsEntryTypesService) Create(parent string, googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType) *ProjectsLocationsEntryTypesCreateCall {
15135 c := &ProjectsLocationsEntryTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15136 c.parent = parent
15137 c.googleclouddataplexv1entrytype = googleclouddataplexv1entrytype
15138 return c
15139 }
15140
15141
15142
15143 func (c *ProjectsLocationsEntryTypesCreateCall) EntryTypeId(entryTypeId string) *ProjectsLocationsEntryTypesCreateCall {
15144 c.urlParams_.Set("entryTypeId", entryTypeId)
15145 return c
15146 }
15147
15148
15149
15150 func (c *ProjectsLocationsEntryTypesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryTypesCreateCall {
15151 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
15152 return c
15153 }
15154
15155
15156
15157
15158 func (c *ProjectsLocationsEntryTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesCreateCall {
15159 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15160 return c
15161 }
15162
15163
15164 func (c *ProjectsLocationsEntryTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesCreateCall {
15165 c.ctx_ = ctx
15166 return c
15167 }
15168
15169
15170
15171 func (c *ProjectsLocationsEntryTypesCreateCall) Header() http.Header {
15172 if c.header_ == nil {
15173 c.header_ = make(http.Header)
15174 }
15175 return c.header_
15176 }
15177
15178 func (c *ProjectsLocationsEntryTypesCreateCall) doRequest(alt string) (*http.Response, error) {
15179 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15180 var body io.Reader = nil
15181 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrytype)
15182 if err != nil {
15183 return nil, err
15184 }
15185 c.urlParams_.Set("alt", alt)
15186 c.urlParams_.Set("prettyPrint", "false")
15187 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryTypes")
15188 urls += "?" + c.urlParams_.Encode()
15189 req, err := http.NewRequest("POST", urls, body)
15190 if err != nil {
15191 return nil, err
15192 }
15193 req.Header = reqHeaders
15194 googleapi.Expand(req.URL, map[string]string{
15195 "parent": c.parent,
15196 })
15197 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15198 }
15199
15200
15201
15202
15203
15204
15205
15206 func (c *ProjectsLocationsEntryTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15207 gensupport.SetOptions(c.urlParams_, opts...)
15208 res, err := c.doRequest("json")
15209 if res != nil && res.StatusCode == http.StatusNotModified {
15210 if res.Body != nil {
15211 res.Body.Close()
15212 }
15213 return nil, gensupport.WrapError(&googleapi.Error{
15214 Code: res.StatusCode,
15215 Header: res.Header,
15216 })
15217 }
15218 if err != nil {
15219 return nil, err
15220 }
15221 defer googleapi.CloseBody(res)
15222 if err := googleapi.CheckResponse(res); err != nil {
15223 return nil, gensupport.WrapError(err)
15224 }
15225 ret := &GoogleLongrunningOperation{
15226 ServerResponse: googleapi.ServerResponse{
15227 Header: res.Header,
15228 HTTPStatusCode: res.StatusCode,
15229 },
15230 }
15231 target := &ret
15232 if err := gensupport.DecodeResponse(target, res); err != nil {
15233 return nil, err
15234 }
15235 return ret, nil
15236 }
15237
15238 type ProjectsLocationsEntryTypesDeleteCall struct {
15239 s *Service
15240 name string
15241 urlParams_ gensupport.URLParams
15242 ctx_ context.Context
15243 header_ http.Header
15244 }
15245
15246
15247
15248
15249
15250
15251 func (r *ProjectsLocationsEntryTypesService) Delete(name string) *ProjectsLocationsEntryTypesDeleteCall {
15252 c := &ProjectsLocationsEntryTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15253 c.name = name
15254 return c
15255 }
15256
15257
15258
15259
15260 func (c *ProjectsLocationsEntryTypesDeleteCall) Etag(etag string) *ProjectsLocationsEntryTypesDeleteCall {
15261 c.urlParams_.Set("etag", etag)
15262 return c
15263 }
15264
15265
15266
15267
15268 func (c *ProjectsLocationsEntryTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesDeleteCall {
15269 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15270 return c
15271 }
15272
15273
15274 func (c *ProjectsLocationsEntryTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesDeleteCall {
15275 c.ctx_ = ctx
15276 return c
15277 }
15278
15279
15280
15281 func (c *ProjectsLocationsEntryTypesDeleteCall) Header() http.Header {
15282 if c.header_ == nil {
15283 c.header_ = make(http.Header)
15284 }
15285 return c.header_
15286 }
15287
15288 func (c *ProjectsLocationsEntryTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
15289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15290 var body io.Reader = nil
15291 c.urlParams_.Set("alt", alt)
15292 c.urlParams_.Set("prettyPrint", "false")
15293 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15294 urls += "?" + c.urlParams_.Encode()
15295 req, err := http.NewRequest("DELETE", urls, body)
15296 if err != nil {
15297 return nil, err
15298 }
15299 req.Header = reqHeaders
15300 googleapi.Expand(req.URL, map[string]string{
15301 "name": c.name,
15302 })
15303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15304 }
15305
15306
15307
15308
15309
15310
15311
15312 func (c *ProjectsLocationsEntryTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15313 gensupport.SetOptions(c.urlParams_, opts...)
15314 res, err := c.doRequest("json")
15315 if res != nil && res.StatusCode == http.StatusNotModified {
15316 if res.Body != nil {
15317 res.Body.Close()
15318 }
15319 return nil, gensupport.WrapError(&googleapi.Error{
15320 Code: res.StatusCode,
15321 Header: res.Header,
15322 })
15323 }
15324 if err != nil {
15325 return nil, err
15326 }
15327 defer googleapi.CloseBody(res)
15328 if err := googleapi.CheckResponse(res); err != nil {
15329 return nil, gensupport.WrapError(err)
15330 }
15331 ret := &GoogleLongrunningOperation{
15332 ServerResponse: googleapi.ServerResponse{
15333 Header: res.Header,
15334 HTTPStatusCode: res.StatusCode,
15335 },
15336 }
15337 target := &ret
15338 if err := gensupport.DecodeResponse(target, res); err != nil {
15339 return nil, err
15340 }
15341 return ret, nil
15342 }
15343
15344 type ProjectsLocationsEntryTypesGetCall struct {
15345 s *Service
15346 name string
15347 urlParams_ gensupport.URLParams
15348 ifNoneMatch_ string
15349 ctx_ context.Context
15350 header_ http.Header
15351 }
15352
15353
15354
15355
15356
15357
15358 func (r *ProjectsLocationsEntryTypesService) Get(name string) *ProjectsLocationsEntryTypesGetCall {
15359 c := &ProjectsLocationsEntryTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15360 c.name = name
15361 return c
15362 }
15363
15364
15365
15366
15367 func (c *ProjectsLocationsEntryTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesGetCall {
15368 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15369 return c
15370 }
15371
15372
15373
15374
15375 func (c *ProjectsLocationsEntryTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryTypesGetCall {
15376 c.ifNoneMatch_ = entityTag
15377 return c
15378 }
15379
15380
15381 func (c *ProjectsLocationsEntryTypesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesGetCall {
15382 c.ctx_ = ctx
15383 return c
15384 }
15385
15386
15387
15388 func (c *ProjectsLocationsEntryTypesGetCall) Header() http.Header {
15389 if c.header_ == nil {
15390 c.header_ = make(http.Header)
15391 }
15392 return c.header_
15393 }
15394
15395 func (c *ProjectsLocationsEntryTypesGetCall) doRequest(alt string) (*http.Response, error) {
15396 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15397 if c.ifNoneMatch_ != "" {
15398 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15399 }
15400 var body io.Reader = nil
15401 c.urlParams_.Set("alt", alt)
15402 c.urlParams_.Set("prettyPrint", "false")
15403 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15404 urls += "?" + c.urlParams_.Encode()
15405 req, err := http.NewRequest("GET", urls, body)
15406 if err != nil {
15407 return nil, err
15408 }
15409 req.Header = reqHeaders
15410 googleapi.Expand(req.URL, map[string]string{
15411 "name": c.name,
15412 })
15413 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15414 }
15415
15416
15417
15418
15419
15420
15421
15422 func (c *ProjectsLocationsEntryTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1EntryType, error) {
15423 gensupport.SetOptions(c.urlParams_, opts...)
15424 res, err := c.doRequest("json")
15425 if res != nil && res.StatusCode == http.StatusNotModified {
15426 if res.Body != nil {
15427 res.Body.Close()
15428 }
15429 return nil, gensupport.WrapError(&googleapi.Error{
15430 Code: res.StatusCode,
15431 Header: res.Header,
15432 })
15433 }
15434 if err != nil {
15435 return nil, err
15436 }
15437 defer googleapi.CloseBody(res)
15438 if err := googleapi.CheckResponse(res); err != nil {
15439 return nil, gensupport.WrapError(err)
15440 }
15441 ret := &GoogleCloudDataplexV1EntryType{
15442 ServerResponse: googleapi.ServerResponse{
15443 Header: res.Header,
15444 HTTPStatusCode: res.StatusCode,
15445 },
15446 }
15447 target := &ret
15448 if err := gensupport.DecodeResponse(target, res); err != nil {
15449 return nil, err
15450 }
15451 return ret, nil
15452 }
15453
15454 type ProjectsLocationsEntryTypesGetIamPolicyCall struct {
15455 s *Service
15456 resource string
15457 urlParams_ gensupport.URLParams
15458 ifNoneMatch_ string
15459 ctx_ context.Context
15460 header_ http.Header
15461 }
15462
15463
15464
15465
15466
15467
15468
15469 func (r *ProjectsLocationsEntryTypesService) GetIamPolicy(resource string) *ProjectsLocationsEntryTypesGetIamPolicyCall {
15470 c := &ProjectsLocationsEntryTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15471 c.resource = resource
15472 return c
15473 }
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEntryTypesGetIamPolicyCall {
15488 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
15489 return c
15490 }
15491
15492
15493
15494
15495 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesGetIamPolicyCall {
15496 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15497 return c
15498 }
15499
15500
15501
15502
15503 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryTypesGetIamPolicyCall {
15504 c.ifNoneMatch_ = entityTag
15505 return c
15506 }
15507
15508
15509 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesGetIamPolicyCall {
15510 c.ctx_ = ctx
15511 return c
15512 }
15513
15514
15515
15516 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Header() http.Header {
15517 if c.header_ == nil {
15518 c.header_ = make(http.Header)
15519 }
15520 return c.header_
15521 }
15522
15523 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
15524 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15525 if c.ifNoneMatch_ != "" {
15526 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15527 }
15528 var body io.Reader = nil
15529 c.urlParams_.Set("alt", alt)
15530 c.urlParams_.Set("prettyPrint", "false")
15531 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
15532 urls += "?" + c.urlParams_.Encode()
15533 req, err := http.NewRequest("GET", urls, body)
15534 if err != nil {
15535 return nil, err
15536 }
15537 req.Header = reqHeaders
15538 googleapi.Expand(req.URL, map[string]string{
15539 "resource": c.resource,
15540 })
15541 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15542 }
15543
15544
15545
15546
15547
15548
15549
15550 func (c *ProjectsLocationsEntryTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
15551 gensupport.SetOptions(c.urlParams_, opts...)
15552 res, err := c.doRequest("json")
15553 if res != nil && res.StatusCode == http.StatusNotModified {
15554 if res.Body != nil {
15555 res.Body.Close()
15556 }
15557 return nil, gensupport.WrapError(&googleapi.Error{
15558 Code: res.StatusCode,
15559 Header: res.Header,
15560 })
15561 }
15562 if err != nil {
15563 return nil, err
15564 }
15565 defer googleapi.CloseBody(res)
15566 if err := googleapi.CheckResponse(res); err != nil {
15567 return nil, gensupport.WrapError(err)
15568 }
15569 ret := &GoogleIamV1Policy{
15570 ServerResponse: googleapi.ServerResponse{
15571 Header: res.Header,
15572 HTTPStatusCode: res.StatusCode,
15573 },
15574 }
15575 target := &ret
15576 if err := gensupport.DecodeResponse(target, res); err != nil {
15577 return nil, err
15578 }
15579 return ret, nil
15580 }
15581
15582 type ProjectsLocationsEntryTypesListCall struct {
15583 s *Service
15584 parent string
15585 urlParams_ gensupport.URLParams
15586 ifNoneMatch_ string
15587 ctx_ context.Context
15588 header_ http.Header
15589 }
15590
15591
15592
15593
15594
15595
15596 func (r *ProjectsLocationsEntryTypesService) List(parent string) *ProjectsLocationsEntryTypesListCall {
15597 c := &ProjectsLocationsEntryTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15598 c.parent = parent
15599 return c
15600 }
15601
15602
15603
15604
15605
15606 func (c *ProjectsLocationsEntryTypesListCall) Filter(filter string) *ProjectsLocationsEntryTypesListCall {
15607 c.urlParams_.Set("filter", filter)
15608 return c
15609 }
15610
15611
15612
15613 func (c *ProjectsLocationsEntryTypesListCall) OrderBy(orderBy string) *ProjectsLocationsEntryTypesListCall {
15614 c.urlParams_.Set("orderBy", orderBy)
15615 return c
15616 }
15617
15618
15619
15620
15621
15622 func (c *ProjectsLocationsEntryTypesListCall) PageSize(pageSize int64) *ProjectsLocationsEntryTypesListCall {
15623 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15624 return c
15625 }
15626
15627
15628
15629
15630
15631 func (c *ProjectsLocationsEntryTypesListCall) PageToken(pageToken string) *ProjectsLocationsEntryTypesListCall {
15632 c.urlParams_.Set("pageToken", pageToken)
15633 return c
15634 }
15635
15636
15637
15638
15639 func (c *ProjectsLocationsEntryTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesListCall {
15640 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15641 return c
15642 }
15643
15644
15645
15646
15647 func (c *ProjectsLocationsEntryTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryTypesListCall {
15648 c.ifNoneMatch_ = entityTag
15649 return c
15650 }
15651
15652
15653 func (c *ProjectsLocationsEntryTypesListCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesListCall {
15654 c.ctx_ = ctx
15655 return c
15656 }
15657
15658
15659
15660 func (c *ProjectsLocationsEntryTypesListCall) Header() http.Header {
15661 if c.header_ == nil {
15662 c.header_ = make(http.Header)
15663 }
15664 return c.header_
15665 }
15666
15667 func (c *ProjectsLocationsEntryTypesListCall) doRequest(alt string) (*http.Response, error) {
15668 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15669 if c.ifNoneMatch_ != "" {
15670 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15671 }
15672 var body io.Reader = nil
15673 c.urlParams_.Set("alt", alt)
15674 c.urlParams_.Set("prettyPrint", "false")
15675 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryTypes")
15676 urls += "?" + c.urlParams_.Encode()
15677 req, err := http.NewRequest("GET", urls, body)
15678 if err != nil {
15679 return nil, err
15680 }
15681 req.Header = reqHeaders
15682 googleapi.Expand(req.URL, map[string]string{
15683 "parent": c.parent,
15684 })
15685 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15686 }
15687
15688
15689
15690
15691
15692
15693
15694 func (c *ProjectsLocationsEntryTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntryTypesResponse, error) {
15695 gensupport.SetOptions(c.urlParams_, opts...)
15696 res, err := c.doRequest("json")
15697 if res != nil && res.StatusCode == http.StatusNotModified {
15698 if res.Body != nil {
15699 res.Body.Close()
15700 }
15701 return nil, gensupport.WrapError(&googleapi.Error{
15702 Code: res.StatusCode,
15703 Header: res.Header,
15704 })
15705 }
15706 if err != nil {
15707 return nil, err
15708 }
15709 defer googleapi.CloseBody(res)
15710 if err := googleapi.CheckResponse(res); err != nil {
15711 return nil, gensupport.WrapError(err)
15712 }
15713 ret := &GoogleCloudDataplexV1ListEntryTypesResponse{
15714 ServerResponse: googleapi.ServerResponse{
15715 Header: res.Header,
15716 HTTPStatusCode: res.StatusCode,
15717 },
15718 }
15719 target := &ret
15720 if err := gensupport.DecodeResponse(target, res); err != nil {
15721 return nil, err
15722 }
15723 return ret, nil
15724 }
15725
15726
15727
15728
15729 func (c *ProjectsLocationsEntryTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntryTypesResponse) error) error {
15730 c.ctx_ = ctx
15731 defer c.PageToken(c.urlParams_.Get("pageToken"))
15732 for {
15733 x, err := c.Do()
15734 if err != nil {
15735 return err
15736 }
15737 if err := f(x); err != nil {
15738 return err
15739 }
15740 if x.NextPageToken == "" {
15741 return nil
15742 }
15743 c.PageToken(x.NextPageToken)
15744 }
15745 }
15746
15747 type ProjectsLocationsEntryTypesPatchCall struct {
15748 s *Service
15749 name string
15750 googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType
15751 urlParams_ gensupport.URLParams
15752 ctx_ context.Context
15753 header_ http.Header
15754 }
15755
15756
15757
15758
15759
15760
15761
15762 func (r *ProjectsLocationsEntryTypesService) Patch(name string, googleclouddataplexv1entrytype *GoogleCloudDataplexV1EntryType) *ProjectsLocationsEntryTypesPatchCall {
15763 c := &ProjectsLocationsEntryTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15764 c.name = name
15765 c.googleclouddataplexv1entrytype = googleclouddataplexv1entrytype
15766 return c
15767 }
15768
15769
15770
15771 func (c *ProjectsLocationsEntryTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryTypesPatchCall {
15772 c.urlParams_.Set("updateMask", updateMask)
15773 return c
15774 }
15775
15776
15777
15778 func (c *ProjectsLocationsEntryTypesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsEntryTypesPatchCall {
15779 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
15780 return c
15781 }
15782
15783
15784
15785
15786 func (c *ProjectsLocationsEntryTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesPatchCall {
15787 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15788 return c
15789 }
15790
15791
15792 func (c *ProjectsLocationsEntryTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesPatchCall {
15793 c.ctx_ = ctx
15794 return c
15795 }
15796
15797
15798
15799 func (c *ProjectsLocationsEntryTypesPatchCall) Header() http.Header {
15800 if c.header_ == nil {
15801 c.header_ = make(http.Header)
15802 }
15803 return c.header_
15804 }
15805
15806 func (c *ProjectsLocationsEntryTypesPatchCall) doRequest(alt string) (*http.Response, error) {
15807 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15808 var body io.Reader = nil
15809 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entrytype)
15810 if err != nil {
15811 return nil, err
15812 }
15813 c.urlParams_.Set("alt", alt)
15814 c.urlParams_.Set("prettyPrint", "false")
15815 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15816 urls += "?" + c.urlParams_.Encode()
15817 req, err := http.NewRequest("PATCH", urls, body)
15818 if err != nil {
15819 return nil, err
15820 }
15821 req.Header = reqHeaders
15822 googleapi.Expand(req.URL, map[string]string{
15823 "name": c.name,
15824 })
15825 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15826 }
15827
15828
15829
15830
15831
15832
15833
15834 func (c *ProjectsLocationsEntryTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15835 gensupport.SetOptions(c.urlParams_, opts...)
15836 res, err := c.doRequest("json")
15837 if res != nil && res.StatusCode == http.StatusNotModified {
15838 if res.Body != nil {
15839 res.Body.Close()
15840 }
15841 return nil, gensupport.WrapError(&googleapi.Error{
15842 Code: res.StatusCode,
15843 Header: res.Header,
15844 })
15845 }
15846 if err != nil {
15847 return nil, err
15848 }
15849 defer googleapi.CloseBody(res)
15850 if err := googleapi.CheckResponse(res); err != nil {
15851 return nil, gensupport.WrapError(err)
15852 }
15853 ret := &GoogleLongrunningOperation{
15854 ServerResponse: googleapi.ServerResponse{
15855 Header: res.Header,
15856 HTTPStatusCode: res.StatusCode,
15857 },
15858 }
15859 target := &ret
15860 if err := gensupport.DecodeResponse(target, res); err != nil {
15861 return nil, err
15862 }
15863 return ret, nil
15864 }
15865
15866 type ProjectsLocationsEntryTypesSetIamPolicyCall struct {
15867 s *Service
15868 resource string
15869 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
15870 urlParams_ gensupport.URLParams
15871 ctx_ context.Context
15872 header_ http.Header
15873 }
15874
15875
15876
15877
15878
15879
15880
15881
15882 func (r *ProjectsLocationsEntryTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsEntryTypesSetIamPolicyCall {
15883 c := &ProjectsLocationsEntryTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15884 c.resource = resource
15885 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
15886 return c
15887 }
15888
15889
15890
15891
15892 func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesSetIamPolicyCall {
15893 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15894 return c
15895 }
15896
15897
15898 func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesSetIamPolicyCall {
15899 c.ctx_ = ctx
15900 return c
15901 }
15902
15903
15904
15905 func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Header() http.Header {
15906 if c.header_ == nil {
15907 c.header_ = make(http.Header)
15908 }
15909 return c.header_
15910 }
15911
15912 func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
15913 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15914 var body io.Reader = nil
15915 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
15916 if err != nil {
15917 return nil, err
15918 }
15919 c.urlParams_.Set("alt", alt)
15920 c.urlParams_.Set("prettyPrint", "false")
15921 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
15922 urls += "?" + c.urlParams_.Encode()
15923 req, err := http.NewRequest("POST", urls, body)
15924 if err != nil {
15925 return nil, err
15926 }
15927 req.Header = reqHeaders
15928 googleapi.Expand(req.URL, map[string]string{
15929 "resource": c.resource,
15930 })
15931 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15932 }
15933
15934
15935
15936
15937
15938
15939
15940 func (c *ProjectsLocationsEntryTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
15941 gensupport.SetOptions(c.urlParams_, opts...)
15942 res, err := c.doRequest("json")
15943 if res != nil && res.StatusCode == http.StatusNotModified {
15944 if res.Body != nil {
15945 res.Body.Close()
15946 }
15947 return nil, gensupport.WrapError(&googleapi.Error{
15948 Code: res.StatusCode,
15949 Header: res.Header,
15950 })
15951 }
15952 if err != nil {
15953 return nil, err
15954 }
15955 defer googleapi.CloseBody(res)
15956 if err := googleapi.CheckResponse(res); err != nil {
15957 return nil, gensupport.WrapError(err)
15958 }
15959 ret := &GoogleIamV1Policy{
15960 ServerResponse: googleapi.ServerResponse{
15961 Header: res.Header,
15962 HTTPStatusCode: res.StatusCode,
15963 },
15964 }
15965 target := &ret
15966 if err := gensupport.DecodeResponse(target, res); err != nil {
15967 return nil, err
15968 }
15969 return ret, nil
15970 }
15971
15972 type ProjectsLocationsEntryTypesTestIamPermissionsCall struct {
15973 s *Service
15974 resource string
15975 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
15976 urlParams_ gensupport.URLParams
15977 ctx_ context.Context
15978 header_ http.Header
15979 }
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991 func (r *ProjectsLocationsEntryTypesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsEntryTypesTestIamPermissionsCall {
15992 c := &ProjectsLocationsEntryTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15993 c.resource = resource
15994 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
15995 return c
15996 }
15997
15998
15999
16000
16001 func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryTypesTestIamPermissionsCall {
16002 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16003 return c
16004 }
16005
16006
16007 func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryTypesTestIamPermissionsCall {
16008 c.ctx_ = ctx
16009 return c
16010 }
16011
16012
16013
16014 func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Header() http.Header {
16015 if c.header_ == nil {
16016 c.header_ = make(http.Header)
16017 }
16018 return c.header_
16019 }
16020
16021 func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
16022 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16023 var body io.Reader = nil
16024 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
16025 if err != nil {
16026 return nil, err
16027 }
16028 c.urlParams_.Set("alt", alt)
16029 c.urlParams_.Set("prettyPrint", "false")
16030 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
16031 urls += "?" + c.urlParams_.Encode()
16032 req, err := http.NewRequest("POST", urls, body)
16033 if err != nil {
16034 return nil, err
16035 }
16036 req.Header = reqHeaders
16037 googleapi.Expand(req.URL, map[string]string{
16038 "resource": c.resource,
16039 })
16040 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16041 }
16042
16043
16044
16045
16046
16047
16048
16049 func (c *ProjectsLocationsEntryTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
16050 gensupport.SetOptions(c.urlParams_, opts...)
16051 res, err := c.doRequest("json")
16052 if res != nil && res.StatusCode == http.StatusNotModified {
16053 if res.Body != nil {
16054 res.Body.Close()
16055 }
16056 return nil, gensupport.WrapError(&googleapi.Error{
16057 Code: res.StatusCode,
16058 Header: res.Header,
16059 })
16060 }
16061 if err != nil {
16062 return nil, err
16063 }
16064 defer googleapi.CloseBody(res)
16065 if err := googleapi.CheckResponse(res); err != nil {
16066 return nil, gensupport.WrapError(err)
16067 }
16068 ret := &GoogleIamV1TestIamPermissionsResponse{
16069 ServerResponse: googleapi.ServerResponse{
16070 Header: res.Header,
16071 HTTPStatusCode: res.StatusCode,
16072 },
16073 }
16074 target := &ret
16075 if err := gensupport.DecodeResponse(target, res); err != nil {
16076 return nil, err
16077 }
16078 return ret, nil
16079 }
16080
16081 type ProjectsLocationsGovernanceRulesGetIamPolicyCall struct {
16082 s *Service
16083 resource string
16084 urlParams_ gensupport.URLParams
16085 ifNoneMatch_ string
16086 ctx_ context.Context
16087 header_ http.Header
16088 }
16089
16090
16091
16092
16093
16094
16095
16096 func (r *ProjectsLocationsGovernanceRulesService) GetIamPolicy(resource string) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
16097 c := &ProjectsLocationsGovernanceRulesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16098 c.resource = resource
16099 return c
16100 }
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
16115 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
16116 return c
16117 }
16118
16119
16120
16121
16122 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
16123 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16124 return c
16125 }
16126
16127
16128
16129
16130 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
16131 c.ifNoneMatch_ = entityTag
16132 return c
16133 }
16134
16135
16136 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGovernanceRulesGetIamPolicyCall {
16137 c.ctx_ = ctx
16138 return c
16139 }
16140
16141
16142
16143 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Header() http.Header {
16144 if c.header_ == nil {
16145 c.header_ = make(http.Header)
16146 }
16147 return c.header_
16148 }
16149
16150 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
16151 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16152 if c.ifNoneMatch_ != "" {
16153 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16154 }
16155 var body io.Reader = nil
16156 c.urlParams_.Set("alt", alt)
16157 c.urlParams_.Set("prettyPrint", "false")
16158 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
16159 urls += "?" + c.urlParams_.Encode()
16160 req, err := http.NewRequest("GET", urls, body)
16161 if err != nil {
16162 return nil, err
16163 }
16164 req.Header = reqHeaders
16165 googleapi.Expand(req.URL, map[string]string{
16166 "resource": c.resource,
16167 })
16168 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16169 }
16170
16171
16172
16173
16174
16175
16176
16177 func (c *ProjectsLocationsGovernanceRulesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
16178 gensupport.SetOptions(c.urlParams_, opts...)
16179 res, err := c.doRequest("json")
16180 if res != nil && res.StatusCode == http.StatusNotModified {
16181 if res.Body != nil {
16182 res.Body.Close()
16183 }
16184 return nil, gensupport.WrapError(&googleapi.Error{
16185 Code: res.StatusCode,
16186 Header: res.Header,
16187 })
16188 }
16189 if err != nil {
16190 return nil, err
16191 }
16192 defer googleapi.CloseBody(res)
16193 if err := googleapi.CheckResponse(res); err != nil {
16194 return nil, gensupport.WrapError(err)
16195 }
16196 ret := &GoogleIamV1Policy{
16197 ServerResponse: googleapi.ServerResponse{
16198 Header: res.Header,
16199 HTTPStatusCode: res.StatusCode,
16200 },
16201 }
16202 target := &ret
16203 if err := gensupport.DecodeResponse(target, res); err != nil {
16204 return nil, err
16205 }
16206 return ret, nil
16207 }
16208
16209 type ProjectsLocationsGovernanceRulesSetIamPolicyCall struct {
16210 s *Service
16211 resource string
16212 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
16213 urlParams_ gensupport.URLParams
16214 ctx_ context.Context
16215 header_ http.Header
16216 }
16217
16218
16219
16220
16221
16222
16223
16224
16225 func (r *ProjectsLocationsGovernanceRulesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsGovernanceRulesSetIamPolicyCall {
16226 c := &ProjectsLocationsGovernanceRulesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16227 c.resource = resource
16228 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
16229 return c
16230 }
16231
16232
16233
16234
16235 func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGovernanceRulesSetIamPolicyCall {
16236 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16237 return c
16238 }
16239
16240
16241 func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGovernanceRulesSetIamPolicyCall {
16242 c.ctx_ = ctx
16243 return c
16244 }
16245
16246
16247
16248 func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Header() http.Header {
16249 if c.header_ == nil {
16250 c.header_ = make(http.Header)
16251 }
16252 return c.header_
16253 }
16254
16255 func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
16256 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16257 var body io.Reader = nil
16258 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
16259 if err != nil {
16260 return nil, err
16261 }
16262 c.urlParams_.Set("alt", alt)
16263 c.urlParams_.Set("prettyPrint", "false")
16264 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
16265 urls += "?" + c.urlParams_.Encode()
16266 req, err := http.NewRequest("POST", urls, body)
16267 if err != nil {
16268 return nil, err
16269 }
16270 req.Header = reqHeaders
16271 googleapi.Expand(req.URL, map[string]string{
16272 "resource": c.resource,
16273 })
16274 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16275 }
16276
16277
16278
16279
16280
16281
16282
16283 func (c *ProjectsLocationsGovernanceRulesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
16284 gensupport.SetOptions(c.urlParams_, opts...)
16285 res, err := c.doRequest("json")
16286 if res != nil && res.StatusCode == http.StatusNotModified {
16287 if res.Body != nil {
16288 res.Body.Close()
16289 }
16290 return nil, gensupport.WrapError(&googleapi.Error{
16291 Code: res.StatusCode,
16292 Header: res.Header,
16293 })
16294 }
16295 if err != nil {
16296 return nil, err
16297 }
16298 defer googleapi.CloseBody(res)
16299 if err := googleapi.CheckResponse(res); err != nil {
16300 return nil, gensupport.WrapError(err)
16301 }
16302 ret := &GoogleIamV1Policy{
16303 ServerResponse: googleapi.ServerResponse{
16304 Header: res.Header,
16305 HTTPStatusCode: res.StatusCode,
16306 },
16307 }
16308 target := &ret
16309 if err := gensupport.DecodeResponse(target, res); err != nil {
16310 return nil, err
16311 }
16312 return ret, nil
16313 }
16314
16315 type ProjectsLocationsGovernanceRulesTestIamPermissionsCall struct {
16316 s *Service
16317 resource string
16318 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
16319 urlParams_ gensupport.URLParams
16320 ctx_ context.Context
16321 header_ http.Header
16322 }
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334 func (r *ProjectsLocationsGovernanceRulesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsGovernanceRulesTestIamPermissionsCall {
16335 c := &ProjectsLocationsGovernanceRulesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16336 c.resource = resource
16337 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
16338 return c
16339 }
16340
16341
16342
16343
16344 func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGovernanceRulesTestIamPermissionsCall {
16345 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16346 return c
16347 }
16348
16349
16350 func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGovernanceRulesTestIamPermissionsCall {
16351 c.ctx_ = ctx
16352 return c
16353 }
16354
16355
16356
16357 func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Header() http.Header {
16358 if c.header_ == nil {
16359 c.header_ = make(http.Header)
16360 }
16361 return c.header_
16362 }
16363
16364 func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
16365 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16366 var body io.Reader = nil
16367 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
16368 if err != nil {
16369 return nil, err
16370 }
16371 c.urlParams_.Set("alt", alt)
16372 c.urlParams_.Set("prettyPrint", "false")
16373 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
16374 urls += "?" + c.urlParams_.Encode()
16375 req, err := http.NewRequest("POST", urls, body)
16376 if err != nil {
16377 return nil, err
16378 }
16379 req.Header = reqHeaders
16380 googleapi.Expand(req.URL, map[string]string{
16381 "resource": c.resource,
16382 })
16383 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16384 }
16385
16386
16387
16388
16389
16390
16391
16392 func (c *ProjectsLocationsGovernanceRulesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
16393 gensupport.SetOptions(c.urlParams_, opts...)
16394 res, err := c.doRequest("json")
16395 if res != nil && res.StatusCode == http.StatusNotModified {
16396 if res.Body != nil {
16397 res.Body.Close()
16398 }
16399 return nil, gensupport.WrapError(&googleapi.Error{
16400 Code: res.StatusCode,
16401 Header: res.Header,
16402 })
16403 }
16404 if err != nil {
16405 return nil, err
16406 }
16407 defer googleapi.CloseBody(res)
16408 if err := googleapi.CheckResponse(res); err != nil {
16409 return nil, gensupport.WrapError(err)
16410 }
16411 ret := &GoogleIamV1TestIamPermissionsResponse{
16412 ServerResponse: googleapi.ServerResponse{
16413 Header: res.Header,
16414 HTTPStatusCode: res.StatusCode,
16415 },
16416 }
16417 target := &ret
16418 if err := gensupport.DecodeResponse(target, res); err != nil {
16419 return nil, err
16420 }
16421 return ret, nil
16422 }
16423
16424 type ProjectsLocationsLakesCreateCall struct {
16425 s *Service
16426 parent string
16427 googleclouddataplexv1lake *GoogleCloudDataplexV1Lake
16428 urlParams_ gensupport.URLParams
16429 ctx_ context.Context
16430 header_ http.Header
16431 }
16432
16433
16434
16435
16436
16437
16438 func (r *ProjectsLocationsLakesService) Create(parent string, googleclouddataplexv1lake *GoogleCloudDataplexV1Lake) *ProjectsLocationsLakesCreateCall {
16439 c := &ProjectsLocationsLakesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16440 c.parent = parent
16441 c.googleclouddataplexv1lake = googleclouddataplexv1lake
16442 return c
16443 }
16444
16445
16446
16447
16448
16449
16450
16451 func (c *ProjectsLocationsLakesCreateCall) LakeId(lakeId string) *ProjectsLocationsLakesCreateCall {
16452 c.urlParams_.Set("lakeId", lakeId)
16453 return c
16454 }
16455
16456
16457
16458 func (c *ProjectsLocationsLakesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesCreateCall {
16459 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
16460 return c
16461 }
16462
16463
16464
16465
16466 func (c *ProjectsLocationsLakesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesCreateCall {
16467 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16468 return c
16469 }
16470
16471
16472 func (c *ProjectsLocationsLakesCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesCreateCall {
16473 c.ctx_ = ctx
16474 return c
16475 }
16476
16477
16478
16479 func (c *ProjectsLocationsLakesCreateCall) Header() http.Header {
16480 if c.header_ == nil {
16481 c.header_ = make(http.Header)
16482 }
16483 return c.header_
16484 }
16485
16486 func (c *ProjectsLocationsLakesCreateCall) doRequest(alt string) (*http.Response, error) {
16487 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16488 var body io.Reader = nil
16489 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1lake)
16490 if err != nil {
16491 return nil, err
16492 }
16493 c.urlParams_.Set("alt", alt)
16494 c.urlParams_.Set("prettyPrint", "false")
16495 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lakes")
16496 urls += "?" + c.urlParams_.Encode()
16497 req, err := http.NewRequest("POST", urls, body)
16498 if err != nil {
16499 return nil, err
16500 }
16501 req.Header = reqHeaders
16502 googleapi.Expand(req.URL, map[string]string{
16503 "parent": c.parent,
16504 })
16505 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16506 }
16507
16508
16509
16510
16511
16512
16513
16514 func (c *ProjectsLocationsLakesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16515 gensupport.SetOptions(c.urlParams_, opts...)
16516 res, err := c.doRequest("json")
16517 if res != nil && res.StatusCode == http.StatusNotModified {
16518 if res.Body != nil {
16519 res.Body.Close()
16520 }
16521 return nil, gensupport.WrapError(&googleapi.Error{
16522 Code: res.StatusCode,
16523 Header: res.Header,
16524 })
16525 }
16526 if err != nil {
16527 return nil, err
16528 }
16529 defer googleapi.CloseBody(res)
16530 if err := googleapi.CheckResponse(res); err != nil {
16531 return nil, gensupport.WrapError(err)
16532 }
16533 ret := &GoogleLongrunningOperation{
16534 ServerResponse: googleapi.ServerResponse{
16535 Header: res.Header,
16536 HTTPStatusCode: res.StatusCode,
16537 },
16538 }
16539 target := &ret
16540 if err := gensupport.DecodeResponse(target, res); err != nil {
16541 return nil, err
16542 }
16543 return ret, nil
16544 }
16545
16546 type ProjectsLocationsLakesDeleteCall struct {
16547 s *Service
16548 name string
16549 urlParams_ gensupport.URLParams
16550 ctx_ context.Context
16551 header_ http.Header
16552 }
16553
16554
16555
16556
16557
16558
16559 func (r *ProjectsLocationsLakesService) Delete(name string) *ProjectsLocationsLakesDeleteCall {
16560 c := &ProjectsLocationsLakesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16561 c.name = name
16562 return c
16563 }
16564
16565
16566
16567
16568 func (c *ProjectsLocationsLakesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesDeleteCall {
16569 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16570 return c
16571 }
16572
16573
16574 func (c *ProjectsLocationsLakesDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesDeleteCall {
16575 c.ctx_ = ctx
16576 return c
16577 }
16578
16579
16580
16581 func (c *ProjectsLocationsLakesDeleteCall) Header() http.Header {
16582 if c.header_ == nil {
16583 c.header_ = make(http.Header)
16584 }
16585 return c.header_
16586 }
16587
16588 func (c *ProjectsLocationsLakesDeleteCall) doRequest(alt string) (*http.Response, error) {
16589 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16590 var body io.Reader = nil
16591 c.urlParams_.Set("alt", alt)
16592 c.urlParams_.Set("prettyPrint", "false")
16593 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16594 urls += "?" + c.urlParams_.Encode()
16595 req, err := http.NewRequest("DELETE", urls, body)
16596 if err != nil {
16597 return nil, err
16598 }
16599 req.Header = reqHeaders
16600 googleapi.Expand(req.URL, map[string]string{
16601 "name": c.name,
16602 })
16603 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16604 }
16605
16606
16607
16608
16609
16610
16611
16612 func (c *ProjectsLocationsLakesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16613 gensupport.SetOptions(c.urlParams_, opts...)
16614 res, err := c.doRequest("json")
16615 if res != nil && res.StatusCode == http.StatusNotModified {
16616 if res.Body != nil {
16617 res.Body.Close()
16618 }
16619 return nil, gensupport.WrapError(&googleapi.Error{
16620 Code: res.StatusCode,
16621 Header: res.Header,
16622 })
16623 }
16624 if err != nil {
16625 return nil, err
16626 }
16627 defer googleapi.CloseBody(res)
16628 if err := googleapi.CheckResponse(res); err != nil {
16629 return nil, gensupport.WrapError(err)
16630 }
16631 ret := &GoogleLongrunningOperation{
16632 ServerResponse: googleapi.ServerResponse{
16633 Header: res.Header,
16634 HTTPStatusCode: res.StatusCode,
16635 },
16636 }
16637 target := &ret
16638 if err := gensupport.DecodeResponse(target, res); err != nil {
16639 return nil, err
16640 }
16641 return ret, nil
16642 }
16643
16644 type ProjectsLocationsLakesGetCall struct {
16645 s *Service
16646 name string
16647 urlParams_ gensupport.URLParams
16648 ifNoneMatch_ string
16649 ctx_ context.Context
16650 header_ http.Header
16651 }
16652
16653
16654
16655
16656
16657 func (r *ProjectsLocationsLakesService) Get(name string) *ProjectsLocationsLakesGetCall {
16658 c := &ProjectsLocationsLakesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16659 c.name = name
16660 return c
16661 }
16662
16663
16664
16665
16666 func (c *ProjectsLocationsLakesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesGetCall {
16667 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16668 return c
16669 }
16670
16671
16672
16673
16674 func (c *ProjectsLocationsLakesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesGetCall {
16675 c.ifNoneMatch_ = entityTag
16676 return c
16677 }
16678
16679
16680 func (c *ProjectsLocationsLakesGetCall) Context(ctx context.Context) *ProjectsLocationsLakesGetCall {
16681 c.ctx_ = ctx
16682 return c
16683 }
16684
16685
16686
16687 func (c *ProjectsLocationsLakesGetCall) Header() http.Header {
16688 if c.header_ == nil {
16689 c.header_ = make(http.Header)
16690 }
16691 return c.header_
16692 }
16693
16694 func (c *ProjectsLocationsLakesGetCall) doRequest(alt string) (*http.Response, error) {
16695 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16696 if c.ifNoneMatch_ != "" {
16697 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16698 }
16699 var body io.Reader = nil
16700 c.urlParams_.Set("alt", alt)
16701 c.urlParams_.Set("prettyPrint", "false")
16702 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16703 urls += "?" + c.urlParams_.Encode()
16704 req, err := http.NewRequest("GET", urls, body)
16705 if err != nil {
16706 return nil, err
16707 }
16708 req.Header = reqHeaders
16709 googleapi.Expand(req.URL, map[string]string{
16710 "name": c.name,
16711 })
16712 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16713 }
16714
16715
16716
16717
16718
16719
16720
16721 func (c *ProjectsLocationsLakesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Lake, error) {
16722 gensupport.SetOptions(c.urlParams_, opts...)
16723 res, err := c.doRequest("json")
16724 if res != nil && res.StatusCode == http.StatusNotModified {
16725 if res.Body != nil {
16726 res.Body.Close()
16727 }
16728 return nil, gensupport.WrapError(&googleapi.Error{
16729 Code: res.StatusCode,
16730 Header: res.Header,
16731 })
16732 }
16733 if err != nil {
16734 return nil, err
16735 }
16736 defer googleapi.CloseBody(res)
16737 if err := googleapi.CheckResponse(res); err != nil {
16738 return nil, gensupport.WrapError(err)
16739 }
16740 ret := &GoogleCloudDataplexV1Lake{
16741 ServerResponse: googleapi.ServerResponse{
16742 Header: res.Header,
16743 HTTPStatusCode: res.StatusCode,
16744 },
16745 }
16746 target := &ret
16747 if err := gensupport.DecodeResponse(target, res); err != nil {
16748 return nil, err
16749 }
16750 return ret, nil
16751 }
16752
16753 type ProjectsLocationsLakesGetIamPolicyCall struct {
16754 s *Service
16755 resource string
16756 urlParams_ gensupport.URLParams
16757 ifNoneMatch_ string
16758 ctx_ context.Context
16759 header_ http.Header
16760 }
16761
16762
16763
16764
16765
16766
16767
16768 func (r *ProjectsLocationsLakesService) GetIamPolicy(resource string) *ProjectsLocationsLakesGetIamPolicyCall {
16769 c := &ProjectsLocationsLakesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16770 c.resource = resource
16771 return c
16772 }
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786 func (c *ProjectsLocationsLakesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesGetIamPolicyCall {
16787 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
16788 return c
16789 }
16790
16791
16792
16793
16794 func (c *ProjectsLocationsLakesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesGetIamPolicyCall {
16795 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16796 return c
16797 }
16798
16799
16800
16801
16802 func (c *ProjectsLocationsLakesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesGetIamPolicyCall {
16803 c.ifNoneMatch_ = entityTag
16804 return c
16805 }
16806
16807
16808 func (c *ProjectsLocationsLakesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesGetIamPolicyCall {
16809 c.ctx_ = ctx
16810 return c
16811 }
16812
16813
16814
16815 func (c *ProjectsLocationsLakesGetIamPolicyCall) Header() http.Header {
16816 if c.header_ == nil {
16817 c.header_ = make(http.Header)
16818 }
16819 return c.header_
16820 }
16821
16822 func (c *ProjectsLocationsLakesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
16823 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16824 if c.ifNoneMatch_ != "" {
16825 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16826 }
16827 var body io.Reader = nil
16828 c.urlParams_.Set("alt", alt)
16829 c.urlParams_.Set("prettyPrint", "false")
16830 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
16831 urls += "?" + c.urlParams_.Encode()
16832 req, err := http.NewRequest("GET", urls, body)
16833 if err != nil {
16834 return nil, err
16835 }
16836 req.Header = reqHeaders
16837 googleapi.Expand(req.URL, map[string]string{
16838 "resource": c.resource,
16839 })
16840 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16841 }
16842
16843
16844
16845
16846
16847
16848
16849 func (c *ProjectsLocationsLakesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
16850 gensupport.SetOptions(c.urlParams_, opts...)
16851 res, err := c.doRequest("json")
16852 if res != nil && res.StatusCode == http.StatusNotModified {
16853 if res.Body != nil {
16854 res.Body.Close()
16855 }
16856 return nil, gensupport.WrapError(&googleapi.Error{
16857 Code: res.StatusCode,
16858 Header: res.Header,
16859 })
16860 }
16861 if err != nil {
16862 return nil, err
16863 }
16864 defer googleapi.CloseBody(res)
16865 if err := googleapi.CheckResponse(res); err != nil {
16866 return nil, gensupport.WrapError(err)
16867 }
16868 ret := &GoogleIamV1Policy{
16869 ServerResponse: googleapi.ServerResponse{
16870 Header: res.Header,
16871 HTTPStatusCode: res.StatusCode,
16872 },
16873 }
16874 target := &ret
16875 if err := gensupport.DecodeResponse(target, res); err != nil {
16876 return nil, err
16877 }
16878 return ret, nil
16879 }
16880
16881 type ProjectsLocationsLakesListCall struct {
16882 s *Service
16883 parent string
16884 urlParams_ gensupport.URLParams
16885 ifNoneMatch_ string
16886 ctx_ context.Context
16887 header_ http.Header
16888 }
16889
16890
16891
16892
16893
16894
16895 func (r *ProjectsLocationsLakesService) List(parent string) *ProjectsLocationsLakesListCall {
16896 c := &ProjectsLocationsLakesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16897 c.parent = parent
16898 return c
16899 }
16900
16901
16902 func (c *ProjectsLocationsLakesListCall) Filter(filter string) *ProjectsLocationsLakesListCall {
16903 c.urlParams_.Set("filter", filter)
16904 return c
16905 }
16906
16907
16908
16909 func (c *ProjectsLocationsLakesListCall) OrderBy(orderBy string) *ProjectsLocationsLakesListCall {
16910 c.urlParams_.Set("orderBy", orderBy)
16911 return c
16912 }
16913
16914
16915
16916
16917
16918 func (c *ProjectsLocationsLakesListCall) PageSize(pageSize int64) *ProjectsLocationsLakesListCall {
16919 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16920 return c
16921 }
16922
16923
16924
16925
16926
16927 func (c *ProjectsLocationsLakesListCall) PageToken(pageToken string) *ProjectsLocationsLakesListCall {
16928 c.urlParams_.Set("pageToken", pageToken)
16929 return c
16930 }
16931
16932
16933
16934
16935 func (c *ProjectsLocationsLakesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesListCall {
16936 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16937 return c
16938 }
16939
16940
16941
16942
16943 func (c *ProjectsLocationsLakesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesListCall {
16944 c.ifNoneMatch_ = entityTag
16945 return c
16946 }
16947
16948
16949 func (c *ProjectsLocationsLakesListCall) Context(ctx context.Context) *ProjectsLocationsLakesListCall {
16950 c.ctx_ = ctx
16951 return c
16952 }
16953
16954
16955
16956 func (c *ProjectsLocationsLakesListCall) Header() http.Header {
16957 if c.header_ == nil {
16958 c.header_ = make(http.Header)
16959 }
16960 return c.header_
16961 }
16962
16963 func (c *ProjectsLocationsLakesListCall) doRequest(alt string) (*http.Response, error) {
16964 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16965 if c.ifNoneMatch_ != "" {
16966 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16967 }
16968 var body io.Reader = nil
16969 c.urlParams_.Set("alt", alt)
16970 c.urlParams_.Set("prettyPrint", "false")
16971 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lakes")
16972 urls += "?" + c.urlParams_.Encode()
16973 req, err := http.NewRequest("GET", urls, body)
16974 if err != nil {
16975 return nil, err
16976 }
16977 req.Header = reqHeaders
16978 googleapi.Expand(req.URL, map[string]string{
16979 "parent": c.parent,
16980 })
16981 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16982 }
16983
16984
16985
16986
16987
16988
16989
16990 func (c *ProjectsLocationsLakesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListLakesResponse, error) {
16991 gensupport.SetOptions(c.urlParams_, opts...)
16992 res, err := c.doRequest("json")
16993 if res != nil && res.StatusCode == http.StatusNotModified {
16994 if res.Body != nil {
16995 res.Body.Close()
16996 }
16997 return nil, gensupport.WrapError(&googleapi.Error{
16998 Code: res.StatusCode,
16999 Header: res.Header,
17000 })
17001 }
17002 if err != nil {
17003 return nil, err
17004 }
17005 defer googleapi.CloseBody(res)
17006 if err := googleapi.CheckResponse(res); err != nil {
17007 return nil, gensupport.WrapError(err)
17008 }
17009 ret := &GoogleCloudDataplexV1ListLakesResponse{
17010 ServerResponse: googleapi.ServerResponse{
17011 Header: res.Header,
17012 HTTPStatusCode: res.StatusCode,
17013 },
17014 }
17015 target := &ret
17016 if err := gensupport.DecodeResponse(target, res); err != nil {
17017 return nil, err
17018 }
17019 return ret, nil
17020 }
17021
17022
17023
17024
17025 func (c *ProjectsLocationsLakesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListLakesResponse) error) error {
17026 c.ctx_ = ctx
17027 defer c.PageToken(c.urlParams_.Get("pageToken"))
17028 for {
17029 x, err := c.Do()
17030 if err != nil {
17031 return err
17032 }
17033 if err := f(x); err != nil {
17034 return err
17035 }
17036 if x.NextPageToken == "" {
17037 return nil
17038 }
17039 c.PageToken(x.NextPageToken)
17040 }
17041 }
17042
17043 type ProjectsLocationsLakesPatchCall struct {
17044 s *Service
17045 name string
17046 googleclouddataplexv1lake *GoogleCloudDataplexV1Lake
17047 urlParams_ gensupport.URLParams
17048 ctx_ context.Context
17049 header_ http.Header
17050 }
17051
17052
17053
17054
17055
17056 func (r *ProjectsLocationsLakesService) Patch(name string, googleclouddataplexv1lake *GoogleCloudDataplexV1Lake) *ProjectsLocationsLakesPatchCall {
17057 c := &ProjectsLocationsLakesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17058 c.name = name
17059 c.googleclouddataplexv1lake = googleclouddataplexv1lake
17060 return c
17061 }
17062
17063
17064
17065 func (c *ProjectsLocationsLakesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesPatchCall {
17066 c.urlParams_.Set("updateMask", updateMask)
17067 return c
17068 }
17069
17070
17071
17072 func (c *ProjectsLocationsLakesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesPatchCall {
17073 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
17074 return c
17075 }
17076
17077
17078
17079
17080 func (c *ProjectsLocationsLakesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesPatchCall {
17081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17082 return c
17083 }
17084
17085
17086 func (c *ProjectsLocationsLakesPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesPatchCall {
17087 c.ctx_ = ctx
17088 return c
17089 }
17090
17091
17092
17093 func (c *ProjectsLocationsLakesPatchCall) Header() http.Header {
17094 if c.header_ == nil {
17095 c.header_ = make(http.Header)
17096 }
17097 return c.header_
17098 }
17099
17100 func (c *ProjectsLocationsLakesPatchCall) doRequest(alt string) (*http.Response, error) {
17101 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17102 var body io.Reader = nil
17103 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1lake)
17104 if err != nil {
17105 return nil, err
17106 }
17107 c.urlParams_.Set("alt", alt)
17108 c.urlParams_.Set("prettyPrint", "false")
17109 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17110 urls += "?" + c.urlParams_.Encode()
17111 req, err := http.NewRequest("PATCH", urls, body)
17112 if err != nil {
17113 return nil, err
17114 }
17115 req.Header = reqHeaders
17116 googleapi.Expand(req.URL, map[string]string{
17117 "name": c.name,
17118 })
17119 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17120 }
17121
17122
17123
17124
17125
17126
17127
17128 func (c *ProjectsLocationsLakesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17129 gensupport.SetOptions(c.urlParams_, opts...)
17130 res, err := c.doRequest("json")
17131 if res != nil && res.StatusCode == http.StatusNotModified {
17132 if res.Body != nil {
17133 res.Body.Close()
17134 }
17135 return nil, gensupport.WrapError(&googleapi.Error{
17136 Code: res.StatusCode,
17137 Header: res.Header,
17138 })
17139 }
17140 if err != nil {
17141 return nil, err
17142 }
17143 defer googleapi.CloseBody(res)
17144 if err := googleapi.CheckResponse(res); err != nil {
17145 return nil, gensupport.WrapError(err)
17146 }
17147 ret := &GoogleLongrunningOperation{
17148 ServerResponse: googleapi.ServerResponse{
17149 Header: res.Header,
17150 HTTPStatusCode: res.StatusCode,
17151 },
17152 }
17153 target := &ret
17154 if err := gensupport.DecodeResponse(target, res); err != nil {
17155 return nil, err
17156 }
17157 return ret, nil
17158 }
17159
17160 type ProjectsLocationsLakesSetIamPolicyCall struct {
17161 s *Service
17162 resource string
17163 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
17164 urlParams_ gensupport.URLParams
17165 ctx_ context.Context
17166 header_ http.Header
17167 }
17168
17169
17170
17171
17172
17173
17174
17175
17176 func (r *ProjectsLocationsLakesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesSetIamPolicyCall {
17177 c := &ProjectsLocationsLakesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17178 c.resource = resource
17179 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
17180 return c
17181 }
17182
17183
17184
17185
17186 func (c *ProjectsLocationsLakesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesSetIamPolicyCall {
17187 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17188 return c
17189 }
17190
17191
17192 func (c *ProjectsLocationsLakesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesSetIamPolicyCall {
17193 c.ctx_ = ctx
17194 return c
17195 }
17196
17197
17198
17199 func (c *ProjectsLocationsLakesSetIamPolicyCall) Header() http.Header {
17200 if c.header_ == nil {
17201 c.header_ = make(http.Header)
17202 }
17203 return c.header_
17204 }
17205
17206 func (c *ProjectsLocationsLakesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
17207 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17208 var body io.Reader = nil
17209 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
17210 if err != nil {
17211 return nil, err
17212 }
17213 c.urlParams_.Set("alt", alt)
17214 c.urlParams_.Set("prettyPrint", "false")
17215 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
17216 urls += "?" + c.urlParams_.Encode()
17217 req, err := http.NewRequest("POST", urls, body)
17218 if err != nil {
17219 return nil, err
17220 }
17221 req.Header = reqHeaders
17222 googleapi.Expand(req.URL, map[string]string{
17223 "resource": c.resource,
17224 })
17225 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17226 }
17227
17228
17229
17230
17231
17232
17233
17234 func (c *ProjectsLocationsLakesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
17235 gensupport.SetOptions(c.urlParams_, opts...)
17236 res, err := c.doRequest("json")
17237 if res != nil && res.StatusCode == http.StatusNotModified {
17238 if res.Body != nil {
17239 res.Body.Close()
17240 }
17241 return nil, gensupport.WrapError(&googleapi.Error{
17242 Code: res.StatusCode,
17243 Header: res.Header,
17244 })
17245 }
17246 if err != nil {
17247 return nil, err
17248 }
17249 defer googleapi.CloseBody(res)
17250 if err := googleapi.CheckResponse(res); err != nil {
17251 return nil, gensupport.WrapError(err)
17252 }
17253 ret := &GoogleIamV1Policy{
17254 ServerResponse: googleapi.ServerResponse{
17255 Header: res.Header,
17256 HTTPStatusCode: res.StatusCode,
17257 },
17258 }
17259 target := &ret
17260 if err := gensupport.DecodeResponse(target, res); err != nil {
17261 return nil, err
17262 }
17263 return ret, nil
17264 }
17265
17266 type ProjectsLocationsLakesTestIamPermissionsCall struct {
17267 s *Service
17268 resource string
17269 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
17270 urlParams_ gensupport.URLParams
17271 ctx_ context.Context
17272 header_ http.Header
17273 }
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285 func (r *ProjectsLocationsLakesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesTestIamPermissionsCall {
17286 c := &ProjectsLocationsLakesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17287 c.resource = resource
17288 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
17289 return c
17290 }
17291
17292
17293
17294
17295 func (c *ProjectsLocationsLakesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTestIamPermissionsCall {
17296 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17297 return c
17298 }
17299
17300
17301 func (c *ProjectsLocationsLakesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesTestIamPermissionsCall {
17302 c.ctx_ = ctx
17303 return c
17304 }
17305
17306
17307
17308 func (c *ProjectsLocationsLakesTestIamPermissionsCall) Header() http.Header {
17309 if c.header_ == nil {
17310 c.header_ = make(http.Header)
17311 }
17312 return c.header_
17313 }
17314
17315 func (c *ProjectsLocationsLakesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
17316 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17317 var body io.Reader = nil
17318 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
17319 if err != nil {
17320 return nil, err
17321 }
17322 c.urlParams_.Set("alt", alt)
17323 c.urlParams_.Set("prettyPrint", "false")
17324 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
17325 urls += "?" + c.urlParams_.Encode()
17326 req, err := http.NewRequest("POST", urls, body)
17327 if err != nil {
17328 return nil, err
17329 }
17330 req.Header = reqHeaders
17331 googleapi.Expand(req.URL, map[string]string{
17332 "resource": c.resource,
17333 })
17334 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17335 }
17336
17337
17338
17339
17340
17341
17342
17343 func (c *ProjectsLocationsLakesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
17344 gensupport.SetOptions(c.urlParams_, opts...)
17345 res, err := c.doRequest("json")
17346 if res != nil && res.StatusCode == http.StatusNotModified {
17347 if res.Body != nil {
17348 res.Body.Close()
17349 }
17350 return nil, gensupport.WrapError(&googleapi.Error{
17351 Code: res.StatusCode,
17352 Header: res.Header,
17353 })
17354 }
17355 if err != nil {
17356 return nil, err
17357 }
17358 defer googleapi.CloseBody(res)
17359 if err := googleapi.CheckResponse(res); err != nil {
17360 return nil, gensupport.WrapError(err)
17361 }
17362 ret := &GoogleIamV1TestIamPermissionsResponse{
17363 ServerResponse: googleapi.ServerResponse{
17364 Header: res.Header,
17365 HTTPStatusCode: res.StatusCode,
17366 },
17367 }
17368 target := &ret
17369 if err := gensupport.DecodeResponse(target, res); err != nil {
17370 return nil, err
17371 }
17372 return ret, nil
17373 }
17374
17375 type ProjectsLocationsLakesActionsListCall struct {
17376 s *Service
17377 parent string
17378 urlParams_ gensupport.URLParams
17379 ifNoneMatch_ string
17380 ctx_ context.Context
17381 header_ http.Header
17382 }
17383
17384
17385
17386
17387
17388 func (r *ProjectsLocationsLakesActionsService) List(parent string) *ProjectsLocationsLakesActionsListCall {
17389 c := &ProjectsLocationsLakesActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17390 c.parent = parent
17391 return c
17392 }
17393
17394
17395
17396
17397
17398 func (c *ProjectsLocationsLakesActionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesActionsListCall {
17399 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17400 return c
17401 }
17402
17403
17404
17405
17406
17407 func (c *ProjectsLocationsLakesActionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesActionsListCall {
17408 c.urlParams_.Set("pageToken", pageToken)
17409 return c
17410 }
17411
17412
17413
17414
17415 func (c *ProjectsLocationsLakesActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesActionsListCall {
17416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17417 return c
17418 }
17419
17420
17421
17422
17423 func (c *ProjectsLocationsLakesActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesActionsListCall {
17424 c.ifNoneMatch_ = entityTag
17425 return c
17426 }
17427
17428
17429 func (c *ProjectsLocationsLakesActionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesActionsListCall {
17430 c.ctx_ = ctx
17431 return c
17432 }
17433
17434
17435
17436 func (c *ProjectsLocationsLakesActionsListCall) Header() http.Header {
17437 if c.header_ == nil {
17438 c.header_ = make(http.Header)
17439 }
17440 return c.header_
17441 }
17442
17443 func (c *ProjectsLocationsLakesActionsListCall) doRequest(alt string) (*http.Response, error) {
17444 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17445 if c.ifNoneMatch_ != "" {
17446 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17447 }
17448 var body io.Reader = nil
17449 c.urlParams_.Set("alt", alt)
17450 c.urlParams_.Set("prettyPrint", "false")
17451 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/actions")
17452 urls += "?" + c.urlParams_.Encode()
17453 req, err := http.NewRequest("GET", urls, body)
17454 if err != nil {
17455 return nil, err
17456 }
17457 req.Header = reqHeaders
17458 googleapi.Expand(req.URL, map[string]string{
17459 "parent": c.parent,
17460 })
17461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17462 }
17463
17464
17465
17466
17467
17468
17469
17470 func (c *ProjectsLocationsLakesActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListActionsResponse, error) {
17471 gensupport.SetOptions(c.urlParams_, opts...)
17472 res, err := c.doRequest("json")
17473 if res != nil && res.StatusCode == http.StatusNotModified {
17474 if res.Body != nil {
17475 res.Body.Close()
17476 }
17477 return nil, gensupport.WrapError(&googleapi.Error{
17478 Code: res.StatusCode,
17479 Header: res.Header,
17480 })
17481 }
17482 if err != nil {
17483 return nil, err
17484 }
17485 defer googleapi.CloseBody(res)
17486 if err := googleapi.CheckResponse(res); err != nil {
17487 return nil, gensupport.WrapError(err)
17488 }
17489 ret := &GoogleCloudDataplexV1ListActionsResponse{
17490 ServerResponse: googleapi.ServerResponse{
17491 Header: res.Header,
17492 HTTPStatusCode: res.StatusCode,
17493 },
17494 }
17495 target := &ret
17496 if err := gensupport.DecodeResponse(target, res); err != nil {
17497 return nil, err
17498 }
17499 return ret, nil
17500 }
17501
17502
17503
17504
17505 func (c *ProjectsLocationsLakesActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListActionsResponse) error) error {
17506 c.ctx_ = ctx
17507 defer c.PageToken(c.urlParams_.Get("pageToken"))
17508 for {
17509 x, err := c.Do()
17510 if err != nil {
17511 return err
17512 }
17513 if err := f(x); err != nil {
17514 return err
17515 }
17516 if x.NextPageToken == "" {
17517 return nil
17518 }
17519 c.PageToken(x.NextPageToken)
17520 }
17521 }
17522
17523 type ProjectsLocationsLakesContentCreateCall struct {
17524 s *Service
17525 parent string
17526 googleclouddataplexv1content *GoogleCloudDataplexV1Content
17527 urlParams_ gensupport.URLParams
17528 ctx_ context.Context
17529 header_ http.Header
17530 }
17531
17532
17533
17534
17535
17536 func (r *ProjectsLocationsLakesContentService) Create(parent string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentCreateCall {
17537 c := &ProjectsLocationsLakesContentCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17538 c.parent = parent
17539 c.googleclouddataplexv1content = googleclouddataplexv1content
17540 return c
17541 }
17542
17543
17544
17545 func (c *ProjectsLocationsLakesContentCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentCreateCall {
17546 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
17547 return c
17548 }
17549
17550
17551
17552
17553 func (c *ProjectsLocationsLakesContentCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentCreateCall {
17554 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17555 return c
17556 }
17557
17558
17559 func (c *ProjectsLocationsLakesContentCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesContentCreateCall {
17560 c.ctx_ = ctx
17561 return c
17562 }
17563
17564
17565
17566 func (c *ProjectsLocationsLakesContentCreateCall) Header() http.Header {
17567 if c.header_ == nil {
17568 c.header_ = make(http.Header)
17569 }
17570 return c.header_
17571 }
17572
17573 func (c *ProjectsLocationsLakesContentCreateCall) doRequest(alt string) (*http.Response, error) {
17574 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17575 var body io.Reader = nil
17576 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
17577 if err != nil {
17578 return nil, err
17579 }
17580 c.urlParams_.Set("alt", alt)
17581 c.urlParams_.Set("prettyPrint", "false")
17582 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/content")
17583 urls += "?" + c.urlParams_.Encode()
17584 req, err := http.NewRequest("POST", urls, body)
17585 if err != nil {
17586 return nil, err
17587 }
17588 req.Header = reqHeaders
17589 googleapi.Expand(req.URL, map[string]string{
17590 "parent": c.parent,
17591 })
17592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17593 }
17594
17595
17596
17597
17598
17599
17600
17601 func (c *ProjectsLocationsLakesContentCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
17602 gensupport.SetOptions(c.urlParams_, opts...)
17603 res, err := c.doRequest("json")
17604 if res != nil && res.StatusCode == http.StatusNotModified {
17605 if res.Body != nil {
17606 res.Body.Close()
17607 }
17608 return nil, gensupport.WrapError(&googleapi.Error{
17609 Code: res.StatusCode,
17610 Header: res.Header,
17611 })
17612 }
17613 if err != nil {
17614 return nil, err
17615 }
17616 defer googleapi.CloseBody(res)
17617 if err := googleapi.CheckResponse(res); err != nil {
17618 return nil, gensupport.WrapError(err)
17619 }
17620 ret := &GoogleCloudDataplexV1Content{
17621 ServerResponse: googleapi.ServerResponse{
17622 Header: res.Header,
17623 HTTPStatusCode: res.StatusCode,
17624 },
17625 }
17626 target := &ret
17627 if err := gensupport.DecodeResponse(target, res); err != nil {
17628 return nil, err
17629 }
17630 return ret, nil
17631 }
17632
17633 type ProjectsLocationsLakesContentDeleteCall struct {
17634 s *Service
17635 name string
17636 urlParams_ gensupport.URLParams
17637 ctx_ context.Context
17638 header_ http.Header
17639 }
17640
17641
17642
17643
17644
17645
17646 func (r *ProjectsLocationsLakesContentService) Delete(name string) *ProjectsLocationsLakesContentDeleteCall {
17647 c := &ProjectsLocationsLakesContentDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17648 c.name = name
17649 return c
17650 }
17651
17652
17653
17654
17655 func (c *ProjectsLocationsLakesContentDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentDeleteCall {
17656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17657 return c
17658 }
17659
17660
17661 func (c *ProjectsLocationsLakesContentDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesContentDeleteCall {
17662 c.ctx_ = ctx
17663 return c
17664 }
17665
17666
17667
17668 func (c *ProjectsLocationsLakesContentDeleteCall) Header() http.Header {
17669 if c.header_ == nil {
17670 c.header_ = make(http.Header)
17671 }
17672 return c.header_
17673 }
17674
17675 func (c *ProjectsLocationsLakesContentDeleteCall) doRequest(alt string) (*http.Response, error) {
17676 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17677 var body io.Reader = nil
17678 c.urlParams_.Set("alt", alt)
17679 c.urlParams_.Set("prettyPrint", "false")
17680 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17681 urls += "?" + c.urlParams_.Encode()
17682 req, err := http.NewRequest("DELETE", urls, body)
17683 if err != nil {
17684 return nil, err
17685 }
17686 req.Header = reqHeaders
17687 googleapi.Expand(req.URL, map[string]string{
17688 "name": c.name,
17689 })
17690 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17691 }
17692
17693
17694
17695
17696
17697
17698 func (c *ProjectsLocationsLakesContentDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
17699 gensupport.SetOptions(c.urlParams_, opts...)
17700 res, err := c.doRequest("json")
17701 if res != nil && res.StatusCode == http.StatusNotModified {
17702 if res.Body != nil {
17703 res.Body.Close()
17704 }
17705 return nil, gensupport.WrapError(&googleapi.Error{
17706 Code: res.StatusCode,
17707 Header: res.Header,
17708 })
17709 }
17710 if err != nil {
17711 return nil, err
17712 }
17713 defer googleapi.CloseBody(res)
17714 if err := googleapi.CheckResponse(res); err != nil {
17715 return nil, gensupport.WrapError(err)
17716 }
17717 ret := &Empty{
17718 ServerResponse: googleapi.ServerResponse{
17719 Header: res.Header,
17720 HTTPStatusCode: res.StatusCode,
17721 },
17722 }
17723 target := &ret
17724 if err := gensupport.DecodeResponse(target, res); err != nil {
17725 return nil, err
17726 }
17727 return ret, nil
17728 }
17729
17730 type ProjectsLocationsLakesContentGetCall struct {
17731 s *Service
17732 name string
17733 urlParams_ gensupport.URLParams
17734 ifNoneMatch_ string
17735 ctx_ context.Context
17736 header_ http.Header
17737 }
17738
17739
17740
17741
17742
17743
17744 func (r *ProjectsLocationsLakesContentService) Get(name string) *ProjectsLocationsLakesContentGetCall {
17745 c := &ProjectsLocationsLakesContentGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17746 c.name = name
17747 return c
17748 }
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761 func (c *ProjectsLocationsLakesContentGetCall) View(view string) *ProjectsLocationsLakesContentGetCall {
17762 c.urlParams_.Set("view", view)
17763 return c
17764 }
17765
17766
17767
17768
17769 func (c *ProjectsLocationsLakesContentGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentGetCall {
17770 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17771 return c
17772 }
17773
17774
17775
17776
17777 func (c *ProjectsLocationsLakesContentGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentGetCall {
17778 c.ifNoneMatch_ = entityTag
17779 return c
17780 }
17781
17782
17783 func (c *ProjectsLocationsLakesContentGetCall) Context(ctx context.Context) *ProjectsLocationsLakesContentGetCall {
17784 c.ctx_ = ctx
17785 return c
17786 }
17787
17788
17789
17790 func (c *ProjectsLocationsLakesContentGetCall) Header() http.Header {
17791 if c.header_ == nil {
17792 c.header_ = make(http.Header)
17793 }
17794 return c.header_
17795 }
17796
17797 func (c *ProjectsLocationsLakesContentGetCall) doRequest(alt string) (*http.Response, error) {
17798 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17799 if c.ifNoneMatch_ != "" {
17800 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17801 }
17802 var body io.Reader = nil
17803 c.urlParams_.Set("alt", alt)
17804 c.urlParams_.Set("prettyPrint", "false")
17805 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17806 urls += "?" + c.urlParams_.Encode()
17807 req, err := http.NewRequest("GET", urls, body)
17808 if err != nil {
17809 return nil, err
17810 }
17811 req.Header = reqHeaders
17812 googleapi.Expand(req.URL, map[string]string{
17813 "name": c.name,
17814 })
17815 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17816 }
17817
17818
17819
17820
17821
17822
17823
17824 func (c *ProjectsLocationsLakesContentGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
17825 gensupport.SetOptions(c.urlParams_, opts...)
17826 res, err := c.doRequest("json")
17827 if res != nil && res.StatusCode == http.StatusNotModified {
17828 if res.Body != nil {
17829 res.Body.Close()
17830 }
17831 return nil, gensupport.WrapError(&googleapi.Error{
17832 Code: res.StatusCode,
17833 Header: res.Header,
17834 })
17835 }
17836 if err != nil {
17837 return nil, err
17838 }
17839 defer googleapi.CloseBody(res)
17840 if err := googleapi.CheckResponse(res); err != nil {
17841 return nil, gensupport.WrapError(err)
17842 }
17843 ret := &GoogleCloudDataplexV1Content{
17844 ServerResponse: googleapi.ServerResponse{
17845 Header: res.Header,
17846 HTTPStatusCode: res.StatusCode,
17847 },
17848 }
17849 target := &ret
17850 if err := gensupport.DecodeResponse(target, res); err != nil {
17851 return nil, err
17852 }
17853 return ret, nil
17854 }
17855
17856 type ProjectsLocationsLakesContentGetIamPolicyCall struct {
17857 s *Service
17858 resource string
17859 urlParams_ gensupport.URLParams
17860 ifNoneMatch_ string
17861 ctx_ context.Context
17862 header_ http.Header
17863 }
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874 func (r *ProjectsLocationsLakesContentService) GetIamPolicy(resource string) *ProjectsLocationsLakesContentGetIamPolicyCall {
17875 c := &ProjectsLocationsLakesContentGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17876 c.resource = resource
17877 return c
17878 }
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesContentGetIamPolicyCall {
17893 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
17894 return c
17895 }
17896
17897
17898
17899
17900 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentGetIamPolicyCall {
17901 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17902 return c
17903 }
17904
17905
17906
17907
17908 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentGetIamPolicyCall {
17909 c.ifNoneMatch_ = entityTag
17910 return c
17911 }
17912
17913
17914 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentGetIamPolicyCall {
17915 c.ctx_ = ctx
17916 return c
17917 }
17918
17919
17920
17921 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Header() http.Header {
17922 if c.header_ == nil {
17923 c.header_ = make(http.Header)
17924 }
17925 return c.header_
17926 }
17927
17928 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
17929 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17930 if c.ifNoneMatch_ != "" {
17931 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17932 }
17933 var body io.Reader = nil
17934 c.urlParams_.Set("alt", alt)
17935 c.urlParams_.Set("prettyPrint", "false")
17936 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
17937 urls += "?" + c.urlParams_.Encode()
17938 req, err := http.NewRequest("GET", urls, body)
17939 if err != nil {
17940 return nil, err
17941 }
17942 req.Header = reqHeaders
17943 googleapi.Expand(req.URL, map[string]string{
17944 "resource": c.resource,
17945 })
17946 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17947 }
17948
17949
17950
17951
17952
17953
17954
17955 func (c *ProjectsLocationsLakesContentGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
17956 gensupport.SetOptions(c.urlParams_, opts...)
17957 res, err := c.doRequest("json")
17958 if res != nil && res.StatusCode == http.StatusNotModified {
17959 if res.Body != nil {
17960 res.Body.Close()
17961 }
17962 return nil, gensupport.WrapError(&googleapi.Error{
17963 Code: res.StatusCode,
17964 Header: res.Header,
17965 })
17966 }
17967 if err != nil {
17968 return nil, err
17969 }
17970 defer googleapi.CloseBody(res)
17971 if err := googleapi.CheckResponse(res); err != nil {
17972 return nil, gensupport.WrapError(err)
17973 }
17974 ret := &GoogleIamV1Policy{
17975 ServerResponse: googleapi.ServerResponse{
17976 Header: res.Header,
17977 HTTPStatusCode: res.StatusCode,
17978 },
17979 }
17980 target := &ret
17981 if err := gensupport.DecodeResponse(target, res); err != nil {
17982 return nil, err
17983 }
17984 return ret, nil
17985 }
17986
17987 type ProjectsLocationsLakesContentListCall struct {
17988 s *Service
17989 parent string
17990 urlParams_ gensupport.URLParams
17991 ifNoneMatch_ string
17992 ctx_ context.Context
17993 header_ http.Header
17994 }
17995
17996
17997
17998
17999
18000 func (r *ProjectsLocationsLakesContentService) List(parent string) *ProjectsLocationsLakesContentListCall {
18001 c := &ProjectsLocationsLakesContentListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18002 c.parent = parent
18003 return c
18004 }
18005
18006
18007
18008
18009
18010 func (c *ProjectsLocationsLakesContentListCall) Filter(filter string) *ProjectsLocationsLakesContentListCall {
18011 c.urlParams_.Set("filter", filter)
18012 return c
18013 }
18014
18015
18016
18017
18018
18019 func (c *ProjectsLocationsLakesContentListCall) PageSize(pageSize int64) *ProjectsLocationsLakesContentListCall {
18020 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18021 return c
18022 }
18023
18024
18025
18026
18027
18028 func (c *ProjectsLocationsLakesContentListCall) PageToken(pageToken string) *ProjectsLocationsLakesContentListCall {
18029 c.urlParams_.Set("pageToken", pageToken)
18030 return c
18031 }
18032
18033
18034
18035
18036 func (c *ProjectsLocationsLakesContentListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentListCall {
18037 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18038 return c
18039 }
18040
18041
18042
18043
18044 func (c *ProjectsLocationsLakesContentListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentListCall {
18045 c.ifNoneMatch_ = entityTag
18046 return c
18047 }
18048
18049
18050 func (c *ProjectsLocationsLakesContentListCall) Context(ctx context.Context) *ProjectsLocationsLakesContentListCall {
18051 c.ctx_ = ctx
18052 return c
18053 }
18054
18055
18056
18057 func (c *ProjectsLocationsLakesContentListCall) Header() http.Header {
18058 if c.header_ == nil {
18059 c.header_ = make(http.Header)
18060 }
18061 return c.header_
18062 }
18063
18064 func (c *ProjectsLocationsLakesContentListCall) doRequest(alt string) (*http.Response, error) {
18065 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18066 if c.ifNoneMatch_ != "" {
18067 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18068 }
18069 var body io.Reader = nil
18070 c.urlParams_.Set("alt", alt)
18071 c.urlParams_.Set("prettyPrint", "false")
18072 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/content")
18073 urls += "?" + c.urlParams_.Encode()
18074 req, err := http.NewRequest("GET", urls, body)
18075 if err != nil {
18076 return nil, err
18077 }
18078 req.Header = reqHeaders
18079 googleapi.Expand(req.URL, map[string]string{
18080 "parent": c.parent,
18081 })
18082 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18083 }
18084
18085
18086
18087
18088
18089
18090
18091 func (c *ProjectsLocationsLakesContentListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListContentResponse, error) {
18092 gensupport.SetOptions(c.urlParams_, opts...)
18093 res, err := c.doRequest("json")
18094 if res != nil && res.StatusCode == http.StatusNotModified {
18095 if res.Body != nil {
18096 res.Body.Close()
18097 }
18098 return nil, gensupport.WrapError(&googleapi.Error{
18099 Code: res.StatusCode,
18100 Header: res.Header,
18101 })
18102 }
18103 if err != nil {
18104 return nil, err
18105 }
18106 defer googleapi.CloseBody(res)
18107 if err := googleapi.CheckResponse(res); err != nil {
18108 return nil, gensupport.WrapError(err)
18109 }
18110 ret := &GoogleCloudDataplexV1ListContentResponse{
18111 ServerResponse: googleapi.ServerResponse{
18112 Header: res.Header,
18113 HTTPStatusCode: res.StatusCode,
18114 },
18115 }
18116 target := &ret
18117 if err := gensupport.DecodeResponse(target, res); err != nil {
18118 return nil, err
18119 }
18120 return ret, nil
18121 }
18122
18123
18124
18125
18126 func (c *ProjectsLocationsLakesContentListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListContentResponse) error) error {
18127 c.ctx_ = ctx
18128 defer c.PageToken(c.urlParams_.Get("pageToken"))
18129 for {
18130 x, err := c.Do()
18131 if err != nil {
18132 return err
18133 }
18134 if err := f(x); err != nil {
18135 return err
18136 }
18137 if x.NextPageToken == "" {
18138 return nil
18139 }
18140 c.PageToken(x.NextPageToken)
18141 }
18142 }
18143
18144 type ProjectsLocationsLakesContentPatchCall struct {
18145 s *Service
18146 name string
18147 googleclouddataplexv1content *GoogleCloudDataplexV1Content
18148 urlParams_ gensupport.URLParams
18149 ctx_ context.Context
18150 header_ http.Header
18151 }
18152
18153
18154
18155
18156
18157
18158 func (r *ProjectsLocationsLakesContentService) Patch(name string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentPatchCall {
18159 c := &ProjectsLocationsLakesContentPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18160 c.name = name
18161 c.googleclouddataplexv1content = googleclouddataplexv1content
18162 return c
18163 }
18164
18165
18166
18167 func (c *ProjectsLocationsLakesContentPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesContentPatchCall {
18168 c.urlParams_.Set("updateMask", updateMask)
18169 return c
18170 }
18171
18172
18173
18174 func (c *ProjectsLocationsLakesContentPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentPatchCall {
18175 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
18176 return c
18177 }
18178
18179
18180
18181
18182 func (c *ProjectsLocationsLakesContentPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentPatchCall {
18183 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18184 return c
18185 }
18186
18187
18188 func (c *ProjectsLocationsLakesContentPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesContentPatchCall {
18189 c.ctx_ = ctx
18190 return c
18191 }
18192
18193
18194
18195 func (c *ProjectsLocationsLakesContentPatchCall) Header() http.Header {
18196 if c.header_ == nil {
18197 c.header_ = make(http.Header)
18198 }
18199 return c.header_
18200 }
18201
18202 func (c *ProjectsLocationsLakesContentPatchCall) doRequest(alt string) (*http.Response, error) {
18203 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18204 var body io.Reader = nil
18205 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
18206 if err != nil {
18207 return nil, err
18208 }
18209 c.urlParams_.Set("alt", alt)
18210 c.urlParams_.Set("prettyPrint", "false")
18211 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18212 urls += "?" + c.urlParams_.Encode()
18213 req, err := http.NewRequest("PATCH", urls, body)
18214 if err != nil {
18215 return nil, err
18216 }
18217 req.Header = reqHeaders
18218 googleapi.Expand(req.URL, map[string]string{
18219 "name": c.name,
18220 })
18221 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18222 }
18223
18224
18225
18226
18227
18228
18229
18230 func (c *ProjectsLocationsLakesContentPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
18231 gensupport.SetOptions(c.urlParams_, opts...)
18232 res, err := c.doRequest("json")
18233 if res != nil && res.StatusCode == http.StatusNotModified {
18234 if res.Body != nil {
18235 res.Body.Close()
18236 }
18237 return nil, gensupport.WrapError(&googleapi.Error{
18238 Code: res.StatusCode,
18239 Header: res.Header,
18240 })
18241 }
18242 if err != nil {
18243 return nil, err
18244 }
18245 defer googleapi.CloseBody(res)
18246 if err := googleapi.CheckResponse(res); err != nil {
18247 return nil, gensupport.WrapError(err)
18248 }
18249 ret := &GoogleCloudDataplexV1Content{
18250 ServerResponse: googleapi.ServerResponse{
18251 Header: res.Header,
18252 HTTPStatusCode: res.StatusCode,
18253 },
18254 }
18255 target := &ret
18256 if err := gensupport.DecodeResponse(target, res); err != nil {
18257 return nil, err
18258 }
18259 return ret, nil
18260 }
18261
18262 type ProjectsLocationsLakesContentSetIamPolicyCall struct {
18263 s *Service
18264 resource string
18265 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
18266 urlParams_ gensupport.URLParams
18267 ctx_ context.Context
18268 header_ http.Header
18269 }
18270
18271
18272
18273
18274
18275
18276
18277
18278 func (r *ProjectsLocationsLakesContentService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesContentSetIamPolicyCall {
18279 c := &ProjectsLocationsLakesContentSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18280 c.resource = resource
18281 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
18282 return c
18283 }
18284
18285
18286
18287
18288 func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentSetIamPolicyCall {
18289 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18290 return c
18291 }
18292
18293
18294 func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentSetIamPolicyCall {
18295 c.ctx_ = ctx
18296 return c
18297 }
18298
18299
18300
18301 func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Header() http.Header {
18302 if c.header_ == nil {
18303 c.header_ = make(http.Header)
18304 }
18305 return c.header_
18306 }
18307
18308 func (c *ProjectsLocationsLakesContentSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
18309 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18310 var body io.Reader = nil
18311 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
18312 if err != nil {
18313 return nil, err
18314 }
18315 c.urlParams_.Set("alt", alt)
18316 c.urlParams_.Set("prettyPrint", "false")
18317 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
18318 urls += "?" + c.urlParams_.Encode()
18319 req, err := http.NewRequest("POST", urls, body)
18320 if err != nil {
18321 return nil, err
18322 }
18323 req.Header = reqHeaders
18324 googleapi.Expand(req.URL, map[string]string{
18325 "resource": c.resource,
18326 })
18327 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18328 }
18329
18330
18331
18332
18333
18334
18335
18336 func (c *ProjectsLocationsLakesContentSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
18337 gensupport.SetOptions(c.urlParams_, opts...)
18338 res, err := c.doRequest("json")
18339 if res != nil && res.StatusCode == http.StatusNotModified {
18340 if res.Body != nil {
18341 res.Body.Close()
18342 }
18343 return nil, gensupport.WrapError(&googleapi.Error{
18344 Code: res.StatusCode,
18345 Header: res.Header,
18346 })
18347 }
18348 if err != nil {
18349 return nil, err
18350 }
18351 defer googleapi.CloseBody(res)
18352 if err := googleapi.CheckResponse(res); err != nil {
18353 return nil, gensupport.WrapError(err)
18354 }
18355 ret := &GoogleIamV1Policy{
18356 ServerResponse: googleapi.ServerResponse{
18357 Header: res.Header,
18358 HTTPStatusCode: res.StatusCode,
18359 },
18360 }
18361 target := &ret
18362 if err := gensupport.DecodeResponse(target, res); err != nil {
18363 return nil, err
18364 }
18365 return ret, nil
18366 }
18367
18368 type ProjectsLocationsLakesContentTestIamPermissionsCall struct {
18369 s *Service
18370 resource string
18371 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
18372 urlParams_ gensupport.URLParams
18373 ctx_ context.Context
18374 header_ http.Header
18375 }
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388 func (r *ProjectsLocationsLakesContentService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesContentTestIamPermissionsCall {
18389 c := &ProjectsLocationsLakesContentTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18390 c.resource = resource
18391 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
18392 return c
18393 }
18394
18395
18396
18397
18398 func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentTestIamPermissionsCall {
18399 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18400 return c
18401 }
18402
18403
18404 func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesContentTestIamPermissionsCall {
18405 c.ctx_ = ctx
18406 return c
18407 }
18408
18409
18410
18411 func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Header() http.Header {
18412 if c.header_ == nil {
18413 c.header_ = make(http.Header)
18414 }
18415 return c.header_
18416 }
18417
18418 func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
18419 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18420 var body io.Reader = nil
18421 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
18422 if err != nil {
18423 return nil, err
18424 }
18425 c.urlParams_.Set("alt", alt)
18426 c.urlParams_.Set("prettyPrint", "false")
18427 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
18428 urls += "?" + c.urlParams_.Encode()
18429 req, err := http.NewRequest("POST", urls, body)
18430 if err != nil {
18431 return nil, err
18432 }
18433 req.Header = reqHeaders
18434 googleapi.Expand(req.URL, map[string]string{
18435 "resource": c.resource,
18436 })
18437 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18438 }
18439
18440
18441
18442
18443
18444
18445
18446 func (c *ProjectsLocationsLakesContentTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
18447 gensupport.SetOptions(c.urlParams_, opts...)
18448 res, err := c.doRequest("json")
18449 if res != nil && res.StatusCode == http.StatusNotModified {
18450 if res.Body != nil {
18451 res.Body.Close()
18452 }
18453 return nil, gensupport.WrapError(&googleapi.Error{
18454 Code: res.StatusCode,
18455 Header: res.Header,
18456 })
18457 }
18458 if err != nil {
18459 return nil, err
18460 }
18461 defer googleapi.CloseBody(res)
18462 if err := googleapi.CheckResponse(res); err != nil {
18463 return nil, gensupport.WrapError(err)
18464 }
18465 ret := &GoogleIamV1TestIamPermissionsResponse{
18466 ServerResponse: googleapi.ServerResponse{
18467 Header: res.Header,
18468 HTTPStatusCode: res.StatusCode,
18469 },
18470 }
18471 target := &ret
18472 if err := gensupport.DecodeResponse(target, res); err != nil {
18473 return nil, err
18474 }
18475 return ret, nil
18476 }
18477
18478 type ProjectsLocationsLakesContentitemsCreateCall struct {
18479 s *Service
18480 parent string
18481 googleclouddataplexv1content *GoogleCloudDataplexV1Content
18482 urlParams_ gensupport.URLParams
18483 ctx_ context.Context
18484 header_ http.Header
18485 }
18486
18487
18488
18489
18490
18491 func (r *ProjectsLocationsLakesContentitemsService) Create(parent string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentitemsCreateCall {
18492 c := &ProjectsLocationsLakesContentitemsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18493 c.parent = parent
18494 c.googleclouddataplexv1content = googleclouddataplexv1content
18495 return c
18496 }
18497
18498
18499
18500 func (c *ProjectsLocationsLakesContentitemsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentitemsCreateCall {
18501 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
18502 return c
18503 }
18504
18505
18506
18507
18508 func (c *ProjectsLocationsLakesContentitemsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsCreateCall {
18509 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18510 return c
18511 }
18512
18513
18514 func (c *ProjectsLocationsLakesContentitemsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsCreateCall {
18515 c.ctx_ = ctx
18516 return c
18517 }
18518
18519
18520
18521 func (c *ProjectsLocationsLakesContentitemsCreateCall) Header() http.Header {
18522 if c.header_ == nil {
18523 c.header_ = make(http.Header)
18524 }
18525 return c.header_
18526 }
18527
18528 func (c *ProjectsLocationsLakesContentitemsCreateCall) doRequest(alt string) (*http.Response, error) {
18529 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18530 var body io.Reader = nil
18531 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
18532 if err != nil {
18533 return nil, err
18534 }
18535 c.urlParams_.Set("alt", alt)
18536 c.urlParams_.Set("prettyPrint", "false")
18537 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contentitems")
18538 urls += "?" + c.urlParams_.Encode()
18539 req, err := http.NewRequest("POST", urls, body)
18540 if err != nil {
18541 return nil, err
18542 }
18543 req.Header = reqHeaders
18544 googleapi.Expand(req.URL, map[string]string{
18545 "parent": c.parent,
18546 })
18547 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18548 }
18549
18550
18551
18552
18553
18554
18555
18556 func (c *ProjectsLocationsLakesContentitemsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
18557 gensupport.SetOptions(c.urlParams_, opts...)
18558 res, err := c.doRequest("json")
18559 if res != nil && res.StatusCode == http.StatusNotModified {
18560 if res.Body != nil {
18561 res.Body.Close()
18562 }
18563 return nil, gensupport.WrapError(&googleapi.Error{
18564 Code: res.StatusCode,
18565 Header: res.Header,
18566 })
18567 }
18568 if err != nil {
18569 return nil, err
18570 }
18571 defer googleapi.CloseBody(res)
18572 if err := googleapi.CheckResponse(res); err != nil {
18573 return nil, gensupport.WrapError(err)
18574 }
18575 ret := &GoogleCloudDataplexV1Content{
18576 ServerResponse: googleapi.ServerResponse{
18577 Header: res.Header,
18578 HTTPStatusCode: res.StatusCode,
18579 },
18580 }
18581 target := &ret
18582 if err := gensupport.DecodeResponse(target, res); err != nil {
18583 return nil, err
18584 }
18585 return ret, nil
18586 }
18587
18588 type ProjectsLocationsLakesContentitemsDeleteCall struct {
18589 s *Service
18590 name string
18591 urlParams_ gensupport.URLParams
18592 ctx_ context.Context
18593 header_ http.Header
18594 }
18595
18596
18597
18598
18599
18600
18601 func (r *ProjectsLocationsLakesContentitemsService) Delete(name string) *ProjectsLocationsLakesContentitemsDeleteCall {
18602 c := &ProjectsLocationsLakesContentitemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18603 c.name = name
18604 return c
18605 }
18606
18607
18608
18609
18610 func (c *ProjectsLocationsLakesContentitemsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsDeleteCall {
18611 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18612 return c
18613 }
18614
18615
18616 func (c *ProjectsLocationsLakesContentitemsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsDeleteCall {
18617 c.ctx_ = ctx
18618 return c
18619 }
18620
18621
18622
18623 func (c *ProjectsLocationsLakesContentitemsDeleteCall) Header() http.Header {
18624 if c.header_ == nil {
18625 c.header_ = make(http.Header)
18626 }
18627 return c.header_
18628 }
18629
18630 func (c *ProjectsLocationsLakesContentitemsDeleteCall) doRequest(alt string) (*http.Response, error) {
18631 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18632 var body io.Reader = nil
18633 c.urlParams_.Set("alt", alt)
18634 c.urlParams_.Set("prettyPrint", "false")
18635 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18636 urls += "?" + c.urlParams_.Encode()
18637 req, err := http.NewRequest("DELETE", urls, body)
18638 if err != nil {
18639 return nil, err
18640 }
18641 req.Header = reqHeaders
18642 googleapi.Expand(req.URL, map[string]string{
18643 "name": c.name,
18644 })
18645 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18646 }
18647
18648
18649
18650
18651
18652
18653 func (c *ProjectsLocationsLakesContentitemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
18654 gensupport.SetOptions(c.urlParams_, opts...)
18655 res, err := c.doRequest("json")
18656 if res != nil && res.StatusCode == http.StatusNotModified {
18657 if res.Body != nil {
18658 res.Body.Close()
18659 }
18660 return nil, gensupport.WrapError(&googleapi.Error{
18661 Code: res.StatusCode,
18662 Header: res.Header,
18663 })
18664 }
18665 if err != nil {
18666 return nil, err
18667 }
18668 defer googleapi.CloseBody(res)
18669 if err := googleapi.CheckResponse(res); err != nil {
18670 return nil, gensupport.WrapError(err)
18671 }
18672 ret := &Empty{
18673 ServerResponse: googleapi.ServerResponse{
18674 Header: res.Header,
18675 HTTPStatusCode: res.StatusCode,
18676 },
18677 }
18678 target := &ret
18679 if err := gensupport.DecodeResponse(target, res); err != nil {
18680 return nil, err
18681 }
18682 return ret, nil
18683 }
18684
18685 type ProjectsLocationsLakesContentitemsGetCall struct {
18686 s *Service
18687 name string
18688 urlParams_ gensupport.URLParams
18689 ifNoneMatch_ string
18690 ctx_ context.Context
18691 header_ http.Header
18692 }
18693
18694
18695
18696
18697
18698
18699 func (r *ProjectsLocationsLakesContentitemsService) Get(name string) *ProjectsLocationsLakesContentitemsGetCall {
18700 c := &ProjectsLocationsLakesContentitemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18701 c.name = name
18702 return c
18703 }
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716 func (c *ProjectsLocationsLakesContentitemsGetCall) View(view string) *ProjectsLocationsLakesContentitemsGetCall {
18717 c.urlParams_.Set("view", view)
18718 return c
18719 }
18720
18721
18722
18723
18724 func (c *ProjectsLocationsLakesContentitemsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsGetCall {
18725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18726 return c
18727 }
18728
18729
18730
18731
18732 func (c *ProjectsLocationsLakesContentitemsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentitemsGetCall {
18733 c.ifNoneMatch_ = entityTag
18734 return c
18735 }
18736
18737
18738 func (c *ProjectsLocationsLakesContentitemsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsGetCall {
18739 c.ctx_ = ctx
18740 return c
18741 }
18742
18743
18744
18745 func (c *ProjectsLocationsLakesContentitemsGetCall) Header() http.Header {
18746 if c.header_ == nil {
18747 c.header_ = make(http.Header)
18748 }
18749 return c.header_
18750 }
18751
18752 func (c *ProjectsLocationsLakesContentitemsGetCall) doRequest(alt string) (*http.Response, error) {
18753 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18754 if c.ifNoneMatch_ != "" {
18755 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18756 }
18757 var body io.Reader = nil
18758 c.urlParams_.Set("alt", alt)
18759 c.urlParams_.Set("prettyPrint", "false")
18760 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18761 urls += "?" + c.urlParams_.Encode()
18762 req, err := http.NewRequest("GET", urls, body)
18763 if err != nil {
18764 return nil, err
18765 }
18766 req.Header = reqHeaders
18767 googleapi.Expand(req.URL, map[string]string{
18768 "name": c.name,
18769 })
18770 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18771 }
18772
18773
18774
18775
18776
18777
18778
18779 func (c *ProjectsLocationsLakesContentitemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
18780 gensupport.SetOptions(c.urlParams_, opts...)
18781 res, err := c.doRequest("json")
18782 if res != nil && res.StatusCode == http.StatusNotModified {
18783 if res.Body != nil {
18784 res.Body.Close()
18785 }
18786 return nil, gensupport.WrapError(&googleapi.Error{
18787 Code: res.StatusCode,
18788 Header: res.Header,
18789 })
18790 }
18791 if err != nil {
18792 return nil, err
18793 }
18794 defer googleapi.CloseBody(res)
18795 if err := googleapi.CheckResponse(res); err != nil {
18796 return nil, gensupport.WrapError(err)
18797 }
18798 ret := &GoogleCloudDataplexV1Content{
18799 ServerResponse: googleapi.ServerResponse{
18800 Header: res.Header,
18801 HTTPStatusCode: res.StatusCode,
18802 },
18803 }
18804 target := &ret
18805 if err := gensupport.DecodeResponse(target, res); err != nil {
18806 return nil, err
18807 }
18808 return ret, nil
18809 }
18810
18811 type ProjectsLocationsLakesContentitemsGetIamPolicyCall struct {
18812 s *Service
18813 resource string
18814 urlParams_ gensupport.URLParams
18815 ifNoneMatch_ string
18816 ctx_ context.Context
18817 header_ http.Header
18818 }
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829 func (r *ProjectsLocationsLakesContentitemsService) GetIamPolicy(resource string) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
18830 c := &ProjectsLocationsLakesContentitemsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18831 c.resource = resource
18832 return c
18833 }
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
18848 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
18849 return c
18850 }
18851
18852
18853
18854
18855 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
18856 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18857 return c
18858 }
18859
18860
18861
18862
18863 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
18864 c.ifNoneMatch_ = entityTag
18865 return c
18866 }
18867
18868
18869 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsGetIamPolicyCall {
18870 c.ctx_ = ctx
18871 return c
18872 }
18873
18874
18875
18876 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Header() http.Header {
18877 if c.header_ == nil {
18878 c.header_ = make(http.Header)
18879 }
18880 return c.header_
18881 }
18882
18883 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
18884 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18885 if c.ifNoneMatch_ != "" {
18886 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18887 }
18888 var body io.Reader = nil
18889 c.urlParams_.Set("alt", alt)
18890 c.urlParams_.Set("prettyPrint", "false")
18891 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
18892 urls += "?" + c.urlParams_.Encode()
18893 req, err := http.NewRequest("GET", urls, body)
18894 if err != nil {
18895 return nil, err
18896 }
18897 req.Header = reqHeaders
18898 googleapi.Expand(req.URL, map[string]string{
18899 "resource": c.resource,
18900 })
18901 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18902 }
18903
18904
18905
18906
18907
18908
18909
18910 func (c *ProjectsLocationsLakesContentitemsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
18911 gensupport.SetOptions(c.urlParams_, opts...)
18912 res, err := c.doRequest("json")
18913 if res != nil && res.StatusCode == http.StatusNotModified {
18914 if res.Body != nil {
18915 res.Body.Close()
18916 }
18917 return nil, gensupport.WrapError(&googleapi.Error{
18918 Code: res.StatusCode,
18919 Header: res.Header,
18920 })
18921 }
18922 if err != nil {
18923 return nil, err
18924 }
18925 defer googleapi.CloseBody(res)
18926 if err := googleapi.CheckResponse(res); err != nil {
18927 return nil, gensupport.WrapError(err)
18928 }
18929 ret := &GoogleIamV1Policy{
18930 ServerResponse: googleapi.ServerResponse{
18931 Header: res.Header,
18932 HTTPStatusCode: res.StatusCode,
18933 },
18934 }
18935 target := &ret
18936 if err := gensupport.DecodeResponse(target, res); err != nil {
18937 return nil, err
18938 }
18939 return ret, nil
18940 }
18941
18942 type ProjectsLocationsLakesContentitemsListCall struct {
18943 s *Service
18944 parent string
18945 urlParams_ gensupport.URLParams
18946 ifNoneMatch_ string
18947 ctx_ context.Context
18948 header_ http.Header
18949 }
18950
18951
18952
18953
18954
18955 func (r *ProjectsLocationsLakesContentitemsService) List(parent string) *ProjectsLocationsLakesContentitemsListCall {
18956 c := &ProjectsLocationsLakesContentitemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18957 c.parent = parent
18958 return c
18959 }
18960
18961
18962
18963
18964
18965 func (c *ProjectsLocationsLakesContentitemsListCall) Filter(filter string) *ProjectsLocationsLakesContentitemsListCall {
18966 c.urlParams_.Set("filter", filter)
18967 return c
18968 }
18969
18970
18971
18972
18973
18974 func (c *ProjectsLocationsLakesContentitemsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesContentitemsListCall {
18975 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18976 return c
18977 }
18978
18979
18980
18981
18982
18983 func (c *ProjectsLocationsLakesContentitemsListCall) PageToken(pageToken string) *ProjectsLocationsLakesContentitemsListCall {
18984 c.urlParams_.Set("pageToken", pageToken)
18985 return c
18986 }
18987
18988
18989
18990
18991 func (c *ProjectsLocationsLakesContentitemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsListCall {
18992 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18993 return c
18994 }
18995
18996
18997
18998
18999 func (c *ProjectsLocationsLakesContentitemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesContentitemsListCall {
19000 c.ifNoneMatch_ = entityTag
19001 return c
19002 }
19003
19004
19005 func (c *ProjectsLocationsLakesContentitemsListCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsListCall {
19006 c.ctx_ = ctx
19007 return c
19008 }
19009
19010
19011
19012 func (c *ProjectsLocationsLakesContentitemsListCall) Header() http.Header {
19013 if c.header_ == nil {
19014 c.header_ = make(http.Header)
19015 }
19016 return c.header_
19017 }
19018
19019 func (c *ProjectsLocationsLakesContentitemsListCall) doRequest(alt string) (*http.Response, error) {
19020 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19021 if c.ifNoneMatch_ != "" {
19022 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19023 }
19024 var body io.Reader = nil
19025 c.urlParams_.Set("alt", alt)
19026 c.urlParams_.Set("prettyPrint", "false")
19027 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contentitems")
19028 urls += "?" + c.urlParams_.Encode()
19029 req, err := http.NewRequest("GET", urls, body)
19030 if err != nil {
19031 return nil, err
19032 }
19033 req.Header = reqHeaders
19034 googleapi.Expand(req.URL, map[string]string{
19035 "parent": c.parent,
19036 })
19037 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19038 }
19039
19040
19041
19042
19043
19044
19045
19046 func (c *ProjectsLocationsLakesContentitemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListContentResponse, error) {
19047 gensupport.SetOptions(c.urlParams_, opts...)
19048 res, err := c.doRequest("json")
19049 if res != nil && res.StatusCode == http.StatusNotModified {
19050 if res.Body != nil {
19051 res.Body.Close()
19052 }
19053 return nil, gensupport.WrapError(&googleapi.Error{
19054 Code: res.StatusCode,
19055 Header: res.Header,
19056 })
19057 }
19058 if err != nil {
19059 return nil, err
19060 }
19061 defer googleapi.CloseBody(res)
19062 if err := googleapi.CheckResponse(res); err != nil {
19063 return nil, gensupport.WrapError(err)
19064 }
19065 ret := &GoogleCloudDataplexV1ListContentResponse{
19066 ServerResponse: googleapi.ServerResponse{
19067 Header: res.Header,
19068 HTTPStatusCode: res.StatusCode,
19069 },
19070 }
19071 target := &ret
19072 if err := gensupport.DecodeResponse(target, res); err != nil {
19073 return nil, err
19074 }
19075 return ret, nil
19076 }
19077
19078
19079
19080
19081 func (c *ProjectsLocationsLakesContentitemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListContentResponse) error) error {
19082 c.ctx_ = ctx
19083 defer c.PageToken(c.urlParams_.Get("pageToken"))
19084 for {
19085 x, err := c.Do()
19086 if err != nil {
19087 return err
19088 }
19089 if err := f(x); err != nil {
19090 return err
19091 }
19092 if x.NextPageToken == "" {
19093 return nil
19094 }
19095 c.PageToken(x.NextPageToken)
19096 }
19097 }
19098
19099 type ProjectsLocationsLakesContentitemsPatchCall struct {
19100 s *Service
19101 name string
19102 googleclouddataplexv1content *GoogleCloudDataplexV1Content
19103 urlParams_ gensupport.URLParams
19104 ctx_ context.Context
19105 header_ http.Header
19106 }
19107
19108
19109
19110
19111
19112
19113 func (r *ProjectsLocationsLakesContentitemsService) Patch(name string, googleclouddataplexv1content *GoogleCloudDataplexV1Content) *ProjectsLocationsLakesContentitemsPatchCall {
19114 c := &ProjectsLocationsLakesContentitemsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19115 c.name = name
19116 c.googleclouddataplexv1content = googleclouddataplexv1content
19117 return c
19118 }
19119
19120
19121
19122 func (c *ProjectsLocationsLakesContentitemsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesContentitemsPatchCall {
19123 c.urlParams_.Set("updateMask", updateMask)
19124 return c
19125 }
19126
19127
19128
19129 func (c *ProjectsLocationsLakesContentitemsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesContentitemsPatchCall {
19130 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
19131 return c
19132 }
19133
19134
19135
19136
19137 func (c *ProjectsLocationsLakesContentitemsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsPatchCall {
19138 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19139 return c
19140 }
19141
19142
19143 func (c *ProjectsLocationsLakesContentitemsPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsPatchCall {
19144 c.ctx_ = ctx
19145 return c
19146 }
19147
19148
19149
19150 func (c *ProjectsLocationsLakesContentitemsPatchCall) Header() http.Header {
19151 if c.header_ == nil {
19152 c.header_ = make(http.Header)
19153 }
19154 return c.header_
19155 }
19156
19157 func (c *ProjectsLocationsLakesContentitemsPatchCall) doRequest(alt string) (*http.Response, error) {
19158 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19159 var body io.Reader = nil
19160 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1content)
19161 if err != nil {
19162 return nil, err
19163 }
19164 c.urlParams_.Set("alt", alt)
19165 c.urlParams_.Set("prettyPrint", "false")
19166 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19167 urls += "?" + c.urlParams_.Encode()
19168 req, err := http.NewRequest("PATCH", urls, body)
19169 if err != nil {
19170 return nil, err
19171 }
19172 req.Header = reqHeaders
19173 googleapi.Expand(req.URL, map[string]string{
19174 "name": c.name,
19175 })
19176 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19177 }
19178
19179
19180
19181
19182
19183
19184
19185 func (c *ProjectsLocationsLakesContentitemsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Content, error) {
19186 gensupport.SetOptions(c.urlParams_, opts...)
19187 res, err := c.doRequest("json")
19188 if res != nil && res.StatusCode == http.StatusNotModified {
19189 if res.Body != nil {
19190 res.Body.Close()
19191 }
19192 return nil, gensupport.WrapError(&googleapi.Error{
19193 Code: res.StatusCode,
19194 Header: res.Header,
19195 })
19196 }
19197 if err != nil {
19198 return nil, err
19199 }
19200 defer googleapi.CloseBody(res)
19201 if err := googleapi.CheckResponse(res); err != nil {
19202 return nil, gensupport.WrapError(err)
19203 }
19204 ret := &GoogleCloudDataplexV1Content{
19205 ServerResponse: googleapi.ServerResponse{
19206 Header: res.Header,
19207 HTTPStatusCode: res.StatusCode,
19208 },
19209 }
19210 target := &ret
19211 if err := gensupport.DecodeResponse(target, res); err != nil {
19212 return nil, err
19213 }
19214 return ret, nil
19215 }
19216
19217 type ProjectsLocationsLakesContentitemsSetIamPolicyCall struct {
19218 s *Service
19219 resource string
19220 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
19221 urlParams_ gensupport.URLParams
19222 ctx_ context.Context
19223 header_ http.Header
19224 }
19225
19226
19227
19228
19229
19230
19231
19232
19233 func (r *ProjectsLocationsLakesContentitemsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesContentitemsSetIamPolicyCall {
19234 c := &ProjectsLocationsLakesContentitemsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19235 c.resource = resource
19236 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
19237 return c
19238 }
19239
19240
19241
19242
19243 func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsSetIamPolicyCall {
19244 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19245 return c
19246 }
19247
19248
19249 func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsSetIamPolicyCall {
19250 c.ctx_ = ctx
19251 return c
19252 }
19253
19254
19255
19256 func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Header() http.Header {
19257 if c.header_ == nil {
19258 c.header_ = make(http.Header)
19259 }
19260 return c.header_
19261 }
19262
19263 func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
19264 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19265 var body io.Reader = nil
19266 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
19267 if err != nil {
19268 return nil, err
19269 }
19270 c.urlParams_.Set("alt", alt)
19271 c.urlParams_.Set("prettyPrint", "false")
19272 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
19273 urls += "?" + c.urlParams_.Encode()
19274 req, err := http.NewRequest("POST", urls, body)
19275 if err != nil {
19276 return nil, err
19277 }
19278 req.Header = reqHeaders
19279 googleapi.Expand(req.URL, map[string]string{
19280 "resource": c.resource,
19281 })
19282 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19283 }
19284
19285
19286
19287
19288
19289
19290
19291 func (c *ProjectsLocationsLakesContentitemsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
19292 gensupport.SetOptions(c.urlParams_, opts...)
19293 res, err := c.doRequest("json")
19294 if res != nil && res.StatusCode == http.StatusNotModified {
19295 if res.Body != nil {
19296 res.Body.Close()
19297 }
19298 return nil, gensupport.WrapError(&googleapi.Error{
19299 Code: res.StatusCode,
19300 Header: res.Header,
19301 })
19302 }
19303 if err != nil {
19304 return nil, err
19305 }
19306 defer googleapi.CloseBody(res)
19307 if err := googleapi.CheckResponse(res); err != nil {
19308 return nil, gensupport.WrapError(err)
19309 }
19310 ret := &GoogleIamV1Policy{
19311 ServerResponse: googleapi.ServerResponse{
19312 Header: res.Header,
19313 HTTPStatusCode: res.StatusCode,
19314 },
19315 }
19316 target := &ret
19317 if err := gensupport.DecodeResponse(target, res); err != nil {
19318 return nil, err
19319 }
19320 return ret, nil
19321 }
19322
19323 type ProjectsLocationsLakesContentitemsTestIamPermissionsCall struct {
19324 s *Service
19325 resource string
19326 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
19327 urlParams_ gensupport.URLParams
19328 ctx_ context.Context
19329 header_ http.Header
19330 }
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343 func (r *ProjectsLocationsLakesContentitemsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesContentitemsTestIamPermissionsCall {
19344 c := &ProjectsLocationsLakesContentitemsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19345 c.resource = resource
19346 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
19347 return c
19348 }
19349
19350
19351
19352
19353 func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesContentitemsTestIamPermissionsCall {
19354 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19355 return c
19356 }
19357
19358
19359 func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesContentitemsTestIamPermissionsCall {
19360 c.ctx_ = ctx
19361 return c
19362 }
19363
19364
19365
19366 func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Header() http.Header {
19367 if c.header_ == nil {
19368 c.header_ = make(http.Header)
19369 }
19370 return c.header_
19371 }
19372
19373 func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
19374 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19375 var body io.Reader = nil
19376 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
19377 if err != nil {
19378 return nil, err
19379 }
19380 c.urlParams_.Set("alt", alt)
19381 c.urlParams_.Set("prettyPrint", "false")
19382 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
19383 urls += "?" + c.urlParams_.Encode()
19384 req, err := http.NewRequest("POST", urls, body)
19385 if err != nil {
19386 return nil, err
19387 }
19388 req.Header = reqHeaders
19389 googleapi.Expand(req.URL, map[string]string{
19390 "resource": c.resource,
19391 })
19392 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19393 }
19394
19395
19396
19397
19398
19399
19400
19401 func (c *ProjectsLocationsLakesContentitemsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
19402 gensupport.SetOptions(c.urlParams_, opts...)
19403 res, err := c.doRequest("json")
19404 if res != nil && res.StatusCode == http.StatusNotModified {
19405 if res.Body != nil {
19406 res.Body.Close()
19407 }
19408 return nil, gensupport.WrapError(&googleapi.Error{
19409 Code: res.StatusCode,
19410 Header: res.Header,
19411 })
19412 }
19413 if err != nil {
19414 return nil, err
19415 }
19416 defer googleapi.CloseBody(res)
19417 if err := googleapi.CheckResponse(res); err != nil {
19418 return nil, gensupport.WrapError(err)
19419 }
19420 ret := &GoogleIamV1TestIamPermissionsResponse{
19421 ServerResponse: googleapi.ServerResponse{
19422 Header: res.Header,
19423 HTTPStatusCode: res.StatusCode,
19424 },
19425 }
19426 target := &ret
19427 if err := gensupport.DecodeResponse(target, res); err != nil {
19428 return nil, err
19429 }
19430 return ret, nil
19431 }
19432
19433 type ProjectsLocationsLakesEnvironmentsCreateCall struct {
19434 s *Service
19435 parent string
19436 googleclouddataplexv1environment *GoogleCloudDataplexV1Environment
19437 urlParams_ gensupport.URLParams
19438 ctx_ context.Context
19439 header_ http.Header
19440 }
19441
19442
19443
19444
19445
19446 func (r *ProjectsLocationsLakesEnvironmentsService) Create(parent string, googleclouddataplexv1environment *GoogleCloudDataplexV1Environment) *ProjectsLocationsLakesEnvironmentsCreateCall {
19447 c := &ProjectsLocationsLakesEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19448 c.parent = parent
19449 c.googleclouddataplexv1environment = googleclouddataplexv1environment
19450 return c
19451 }
19452
19453
19454
19455
19456
19457 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsLakesEnvironmentsCreateCall {
19458 c.urlParams_.Set("environmentId", environmentId)
19459 return c
19460 }
19461
19462
19463
19464 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesEnvironmentsCreateCall {
19465 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
19466 return c
19467 }
19468
19469
19470
19471
19472 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsCreateCall {
19473 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19474 return c
19475 }
19476
19477
19478 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsCreateCall {
19479 c.ctx_ = ctx
19480 return c
19481 }
19482
19483
19484
19485 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Header() http.Header {
19486 if c.header_ == nil {
19487 c.header_ = make(http.Header)
19488 }
19489 return c.header_
19490 }
19491
19492 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
19493 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19494 var body io.Reader = nil
19495 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1environment)
19496 if err != nil {
19497 return nil, err
19498 }
19499 c.urlParams_.Set("alt", alt)
19500 c.urlParams_.Set("prettyPrint", "false")
19501 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
19502 urls += "?" + c.urlParams_.Encode()
19503 req, err := http.NewRequest("POST", urls, body)
19504 if err != nil {
19505 return nil, err
19506 }
19507 req.Header = reqHeaders
19508 googleapi.Expand(req.URL, map[string]string{
19509 "parent": c.parent,
19510 })
19511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19512 }
19513
19514
19515
19516
19517
19518
19519
19520 func (c *ProjectsLocationsLakesEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19521 gensupport.SetOptions(c.urlParams_, opts...)
19522 res, err := c.doRequest("json")
19523 if res != nil && res.StatusCode == http.StatusNotModified {
19524 if res.Body != nil {
19525 res.Body.Close()
19526 }
19527 return nil, gensupport.WrapError(&googleapi.Error{
19528 Code: res.StatusCode,
19529 Header: res.Header,
19530 })
19531 }
19532 if err != nil {
19533 return nil, err
19534 }
19535 defer googleapi.CloseBody(res)
19536 if err := googleapi.CheckResponse(res); err != nil {
19537 return nil, gensupport.WrapError(err)
19538 }
19539 ret := &GoogleLongrunningOperation{
19540 ServerResponse: googleapi.ServerResponse{
19541 Header: res.Header,
19542 HTTPStatusCode: res.StatusCode,
19543 },
19544 }
19545 target := &ret
19546 if err := gensupport.DecodeResponse(target, res); err != nil {
19547 return nil, err
19548 }
19549 return ret, nil
19550 }
19551
19552 type ProjectsLocationsLakesEnvironmentsDeleteCall struct {
19553 s *Service
19554 name string
19555 urlParams_ gensupport.URLParams
19556 ctx_ context.Context
19557 header_ http.Header
19558 }
19559
19560
19561
19562
19563
19564
19565
19566 func (r *ProjectsLocationsLakesEnvironmentsService) Delete(name string) *ProjectsLocationsLakesEnvironmentsDeleteCall {
19567 c := &ProjectsLocationsLakesEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19568 c.name = name
19569 return c
19570 }
19571
19572
19573
19574
19575 func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsDeleteCall {
19576 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19577 return c
19578 }
19579
19580
19581 func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsDeleteCall {
19582 c.ctx_ = ctx
19583 return c
19584 }
19585
19586
19587
19588 func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Header() http.Header {
19589 if c.header_ == nil {
19590 c.header_ = make(http.Header)
19591 }
19592 return c.header_
19593 }
19594
19595 func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
19596 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19597 var body io.Reader = nil
19598 c.urlParams_.Set("alt", alt)
19599 c.urlParams_.Set("prettyPrint", "false")
19600 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19601 urls += "?" + c.urlParams_.Encode()
19602 req, err := http.NewRequest("DELETE", urls, body)
19603 if err != nil {
19604 return nil, err
19605 }
19606 req.Header = reqHeaders
19607 googleapi.Expand(req.URL, map[string]string{
19608 "name": c.name,
19609 })
19610 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19611 }
19612
19613
19614
19615
19616
19617
19618
19619 func (c *ProjectsLocationsLakesEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19620 gensupport.SetOptions(c.urlParams_, opts...)
19621 res, err := c.doRequest("json")
19622 if res != nil && res.StatusCode == http.StatusNotModified {
19623 if res.Body != nil {
19624 res.Body.Close()
19625 }
19626 return nil, gensupport.WrapError(&googleapi.Error{
19627 Code: res.StatusCode,
19628 Header: res.Header,
19629 })
19630 }
19631 if err != nil {
19632 return nil, err
19633 }
19634 defer googleapi.CloseBody(res)
19635 if err := googleapi.CheckResponse(res); err != nil {
19636 return nil, gensupport.WrapError(err)
19637 }
19638 ret := &GoogleLongrunningOperation{
19639 ServerResponse: googleapi.ServerResponse{
19640 Header: res.Header,
19641 HTTPStatusCode: res.StatusCode,
19642 },
19643 }
19644 target := &ret
19645 if err := gensupport.DecodeResponse(target, res); err != nil {
19646 return nil, err
19647 }
19648 return ret, nil
19649 }
19650
19651 type ProjectsLocationsLakesEnvironmentsGetCall struct {
19652 s *Service
19653 name string
19654 urlParams_ gensupport.URLParams
19655 ifNoneMatch_ string
19656 ctx_ context.Context
19657 header_ http.Header
19658 }
19659
19660
19661
19662
19663
19664
19665 func (r *ProjectsLocationsLakesEnvironmentsService) Get(name string) *ProjectsLocationsLakesEnvironmentsGetCall {
19666 c := &ProjectsLocationsLakesEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19667 c.name = name
19668 return c
19669 }
19670
19671
19672
19673
19674 func (c *ProjectsLocationsLakesEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsGetCall {
19675 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19676 return c
19677 }
19678
19679
19680
19681
19682 func (c *ProjectsLocationsLakesEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsGetCall {
19683 c.ifNoneMatch_ = entityTag
19684 return c
19685 }
19686
19687
19688 func (c *ProjectsLocationsLakesEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsGetCall {
19689 c.ctx_ = ctx
19690 return c
19691 }
19692
19693
19694
19695 func (c *ProjectsLocationsLakesEnvironmentsGetCall) Header() http.Header {
19696 if c.header_ == nil {
19697 c.header_ = make(http.Header)
19698 }
19699 return c.header_
19700 }
19701
19702 func (c *ProjectsLocationsLakesEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
19703 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19704 if c.ifNoneMatch_ != "" {
19705 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19706 }
19707 var body io.Reader = nil
19708 c.urlParams_.Set("alt", alt)
19709 c.urlParams_.Set("prettyPrint", "false")
19710 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19711 urls += "?" + c.urlParams_.Encode()
19712 req, err := http.NewRequest("GET", urls, body)
19713 if err != nil {
19714 return nil, err
19715 }
19716 req.Header = reqHeaders
19717 googleapi.Expand(req.URL, map[string]string{
19718 "name": c.name,
19719 })
19720 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19721 }
19722
19723
19724
19725
19726
19727
19728
19729 func (c *ProjectsLocationsLakesEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Environment, error) {
19730 gensupport.SetOptions(c.urlParams_, opts...)
19731 res, err := c.doRequest("json")
19732 if res != nil && res.StatusCode == http.StatusNotModified {
19733 if res.Body != nil {
19734 res.Body.Close()
19735 }
19736 return nil, gensupport.WrapError(&googleapi.Error{
19737 Code: res.StatusCode,
19738 Header: res.Header,
19739 })
19740 }
19741 if err != nil {
19742 return nil, err
19743 }
19744 defer googleapi.CloseBody(res)
19745 if err := googleapi.CheckResponse(res); err != nil {
19746 return nil, gensupport.WrapError(err)
19747 }
19748 ret := &GoogleCloudDataplexV1Environment{
19749 ServerResponse: googleapi.ServerResponse{
19750 Header: res.Header,
19751 HTTPStatusCode: res.StatusCode,
19752 },
19753 }
19754 target := &ret
19755 if err := gensupport.DecodeResponse(target, res); err != nil {
19756 return nil, err
19757 }
19758 return ret, nil
19759 }
19760
19761 type ProjectsLocationsLakesEnvironmentsGetIamPolicyCall struct {
19762 s *Service
19763 resource string
19764 urlParams_ gensupport.URLParams
19765 ifNoneMatch_ string
19766 ctx_ context.Context
19767 header_ http.Header
19768 }
19769
19770
19771
19772
19773
19774
19775
19776 func (r *ProjectsLocationsLakesEnvironmentsService) GetIamPolicy(resource string) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
19777 c := &ProjectsLocationsLakesEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19778 c.resource = resource
19779 return c
19780 }
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
19795 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
19796 return c
19797 }
19798
19799
19800
19801
19802 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
19803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19804 return c
19805 }
19806
19807
19808
19809
19810 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
19811 c.ifNoneMatch_ = entityTag
19812 return c
19813 }
19814
19815
19816 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall {
19817 c.ctx_ = ctx
19818 return c
19819 }
19820
19821
19822
19823 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Header() http.Header {
19824 if c.header_ == nil {
19825 c.header_ = make(http.Header)
19826 }
19827 return c.header_
19828 }
19829
19830 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
19831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19832 if c.ifNoneMatch_ != "" {
19833 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19834 }
19835 var body io.Reader = nil
19836 c.urlParams_.Set("alt", alt)
19837 c.urlParams_.Set("prettyPrint", "false")
19838 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
19839 urls += "?" + c.urlParams_.Encode()
19840 req, err := http.NewRequest("GET", urls, body)
19841 if err != nil {
19842 return nil, err
19843 }
19844 req.Header = reqHeaders
19845 googleapi.Expand(req.URL, map[string]string{
19846 "resource": c.resource,
19847 })
19848 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19849 }
19850
19851
19852
19853
19854
19855
19856
19857 func (c *ProjectsLocationsLakesEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
19858 gensupport.SetOptions(c.urlParams_, opts...)
19859 res, err := c.doRequest("json")
19860 if res != nil && res.StatusCode == http.StatusNotModified {
19861 if res.Body != nil {
19862 res.Body.Close()
19863 }
19864 return nil, gensupport.WrapError(&googleapi.Error{
19865 Code: res.StatusCode,
19866 Header: res.Header,
19867 })
19868 }
19869 if err != nil {
19870 return nil, err
19871 }
19872 defer googleapi.CloseBody(res)
19873 if err := googleapi.CheckResponse(res); err != nil {
19874 return nil, gensupport.WrapError(err)
19875 }
19876 ret := &GoogleIamV1Policy{
19877 ServerResponse: googleapi.ServerResponse{
19878 Header: res.Header,
19879 HTTPStatusCode: res.StatusCode,
19880 },
19881 }
19882 target := &ret
19883 if err := gensupport.DecodeResponse(target, res); err != nil {
19884 return nil, err
19885 }
19886 return ret, nil
19887 }
19888
19889 type ProjectsLocationsLakesEnvironmentsListCall struct {
19890 s *Service
19891 parent string
19892 urlParams_ gensupport.URLParams
19893 ifNoneMatch_ string
19894 ctx_ context.Context
19895 header_ http.Header
19896 }
19897
19898
19899
19900
19901
19902 func (r *ProjectsLocationsLakesEnvironmentsService) List(parent string) *ProjectsLocationsLakesEnvironmentsListCall {
19903 c := &ProjectsLocationsLakesEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19904 c.parent = parent
19905 return c
19906 }
19907
19908
19909 func (c *ProjectsLocationsLakesEnvironmentsListCall) Filter(filter string) *ProjectsLocationsLakesEnvironmentsListCall {
19910 c.urlParams_.Set("filter", filter)
19911 return c
19912 }
19913
19914
19915
19916 func (c *ProjectsLocationsLakesEnvironmentsListCall) OrderBy(orderBy string) *ProjectsLocationsLakesEnvironmentsListCall {
19917 c.urlParams_.Set("orderBy", orderBy)
19918 return c
19919 }
19920
19921
19922
19923
19924
19925 func (c *ProjectsLocationsLakesEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesEnvironmentsListCall {
19926 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19927 return c
19928 }
19929
19930
19931
19932
19933
19934 func (c *ProjectsLocationsLakesEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsLakesEnvironmentsListCall {
19935 c.urlParams_.Set("pageToken", pageToken)
19936 return c
19937 }
19938
19939
19940
19941
19942 func (c *ProjectsLocationsLakesEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsListCall {
19943 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19944 return c
19945 }
19946
19947
19948
19949
19950 func (c *ProjectsLocationsLakesEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsListCall {
19951 c.ifNoneMatch_ = entityTag
19952 return c
19953 }
19954
19955
19956 func (c *ProjectsLocationsLakesEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsListCall {
19957 c.ctx_ = ctx
19958 return c
19959 }
19960
19961
19962
19963 func (c *ProjectsLocationsLakesEnvironmentsListCall) Header() http.Header {
19964 if c.header_ == nil {
19965 c.header_ = make(http.Header)
19966 }
19967 return c.header_
19968 }
19969
19970 func (c *ProjectsLocationsLakesEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
19971 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19972 if c.ifNoneMatch_ != "" {
19973 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19974 }
19975 var body io.Reader = nil
19976 c.urlParams_.Set("alt", alt)
19977 c.urlParams_.Set("prettyPrint", "false")
19978 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
19979 urls += "?" + c.urlParams_.Encode()
19980 req, err := http.NewRequest("GET", urls, body)
19981 if err != nil {
19982 return nil, err
19983 }
19984 req.Header = reqHeaders
19985 googleapi.Expand(req.URL, map[string]string{
19986 "parent": c.parent,
19987 })
19988 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19989 }
19990
19991
19992
19993
19994
19995
19996
19997 func (c *ProjectsLocationsLakesEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEnvironmentsResponse, error) {
19998 gensupport.SetOptions(c.urlParams_, opts...)
19999 res, err := c.doRequest("json")
20000 if res != nil && res.StatusCode == http.StatusNotModified {
20001 if res.Body != nil {
20002 res.Body.Close()
20003 }
20004 return nil, gensupport.WrapError(&googleapi.Error{
20005 Code: res.StatusCode,
20006 Header: res.Header,
20007 })
20008 }
20009 if err != nil {
20010 return nil, err
20011 }
20012 defer googleapi.CloseBody(res)
20013 if err := googleapi.CheckResponse(res); err != nil {
20014 return nil, gensupport.WrapError(err)
20015 }
20016 ret := &GoogleCloudDataplexV1ListEnvironmentsResponse{
20017 ServerResponse: googleapi.ServerResponse{
20018 Header: res.Header,
20019 HTTPStatusCode: res.StatusCode,
20020 },
20021 }
20022 target := &ret
20023 if err := gensupport.DecodeResponse(target, res); err != nil {
20024 return nil, err
20025 }
20026 return ret, nil
20027 }
20028
20029
20030
20031
20032 func (c *ProjectsLocationsLakesEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEnvironmentsResponse) error) error {
20033 c.ctx_ = ctx
20034 defer c.PageToken(c.urlParams_.Get("pageToken"))
20035 for {
20036 x, err := c.Do()
20037 if err != nil {
20038 return err
20039 }
20040 if err := f(x); err != nil {
20041 return err
20042 }
20043 if x.NextPageToken == "" {
20044 return nil
20045 }
20046 c.PageToken(x.NextPageToken)
20047 }
20048 }
20049
20050 type ProjectsLocationsLakesEnvironmentsPatchCall struct {
20051 s *Service
20052 name string
20053 googleclouddataplexv1environment *GoogleCloudDataplexV1Environment
20054 urlParams_ gensupport.URLParams
20055 ctx_ context.Context
20056 header_ http.Header
20057 }
20058
20059
20060
20061
20062
20063
20064
20065 func (r *ProjectsLocationsLakesEnvironmentsService) Patch(name string, googleclouddataplexv1environment *GoogleCloudDataplexV1Environment) *ProjectsLocationsLakesEnvironmentsPatchCall {
20066 c := &ProjectsLocationsLakesEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20067 c.name = name
20068 c.googleclouddataplexv1environment = googleclouddataplexv1environment
20069 return c
20070 }
20071
20072
20073
20074 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesEnvironmentsPatchCall {
20075 c.urlParams_.Set("updateMask", updateMask)
20076 return c
20077 }
20078
20079
20080
20081 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesEnvironmentsPatchCall {
20082 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
20083 return c
20084 }
20085
20086
20087
20088
20089 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsPatchCall {
20090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20091 return c
20092 }
20093
20094
20095 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsPatchCall {
20096 c.ctx_ = ctx
20097 return c
20098 }
20099
20100
20101
20102 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Header() http.Header {
20103 if c.header_ == nil {
20104 c.header_ = make(http.Header)
20105 }
20106 return c.header_
20107 }
20108
20109 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
20110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20111 var body io.Reader = nil
20112 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1environment)
20113 if err != nil {
20114 return nil, err
20115 }
20116 c.urlParams_.Set("alt", alt)
20117 c.urlParams_.Set("prettyPrint", "false")
20118 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20119 urls += "?" + c.urlParams_.Encode()
20120 req, err := http.NewRequest("PATCH", urls, body)
20121 if err != nil {
20122 return nil, err
20123 }
20124 req.Header = reqHeaders
20125 googleapi.Expand(req.URL, map[string]string{
20126 "name": c.name,
20127 })
20128 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20129 }
20130
20131
20132
20133
20134
20135
20136
20137 func (c *ProjectsLocationsLakesEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20138 gensupport.SetOptions(c.urlParams_, opts...)
20139 res, err := c.doRequest("json")
20140 if res != nil && res.StatusCode == http.StatusNotModified {
20141 if res.Body != nil {
20142 res.Body.Close()
20143 }
20144 return nil, gensupport.WrapError(&googleapi.Error{
20145 Code: res.StatusCode,
20146 Header: res.Header,
20147 })
20148 }
20149 if err != nil {
20150 return nil, err
20151 }
20152 defer googleapi.CloseBody(res)
20153 if err := googleapi.CheckResponse(res); err != nil {
20154 return nil, gensupport.WrapError(err)
20155 }
20156 ret := &GoogleLongrunningOperation{
20157 ServerResponse: googleapi.ServerResponse{
20158 Header: res.Header,
20159 HTTPStatusCode: res.StatusCode,
20160 },
20161 }
20162 target := &ret
20163 if err := gensupport.DecodeResponse(target, res); err != nil {
20164 return nil, err
20165 }
20166 return ret, nil
20167 }
20168
20169 type ProjectsLocationsLakesEnvironmentsSetIamPolicyCall struct {
20170 s *Service
20171 resource string
20172 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
20173 urlParams_ gensupport.URLParams
20174 ctx_ context.Context
20175 header_ http.Header
20176 }
20177
20178
20179
20180
20181
20182
20183
20184
20185 func (r *ProjectsLocationsLakesEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall {
20186 c := &ProjectsLocationsLakesEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20187 c.resource = resource
20188 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
20189 return c
20190 }
20191
20192
20193
20194
20195 func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall {
20196 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20197 return c
20198 }
20199
20200
20201 func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall {
20202 c.ctx_ = ctx
20203 return c
20204 }
20205
20206
20207
20208 func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Header() http.Header {
20209 if c.header_ == nil {
20210 c.header_ = make(http.Header)
20211 }
20212 return c.header_
20213 }
20214
20215 func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
20216 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20217 var body io.Reader = nil
20218 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
20219 if err != nil {
20220 return nil, err
20221 }
20222 c.urlParams_.Set("alt", alt)
20223 c.urlParams_.Set("prettyPrint", "false")
20224 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
20225 urls += "?" + c.urlParams_.Encode()
20226 req, err := http.NewRequest("POST", urls, body)
20227 if err != nil {
20228 return nil, err
20229 }
20230 req.Header = reqHeaders
20231 googleapi.Expand(req.URL, map[string]string{
20232 "resource": c.resource,
20233 })
20234 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20235 }
20236
20237
20238
20239
20240
20241
20242
20243 func (c *ProjectsLocationsLakesEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
20244 gensupport.SetOptions(c.urlParams_, opts...)
20245 res, err := c.doRequest("json")
20246 if res != nil && res.StatusCode == http.StatusNotModified {
20247 if res.Body != nil {
20248 res.Body.Close()
20249 }
20250 return nil, gensupport.WrapError(&googleapi.Error{
20251 Code: res.StatusCode,
20252 Header: res.Header,
20253 })
20254 }
20255 if err != nil {
20256 return nil, err
20257 }
20258 defer googleapi.CloseBody(res)
20259 if err := googleapi.CheckResponse(res); err != nil {
20260 return nil, gensupport.WrapError(err)
20261 }
20262 ret := &GoogleIamV1Policy{
20263 ServerResponse: googleapi.ServerResponse{
20264 Header: res.Header,
20265 HTTPStatusCode: res.StatusCode,
20266 },
20267 }
20268 target := &ret
20269 if err := gensupport.DecodeResponse(target, res); err != nil {
20270 return nil, err
20271 }
20272 return ret, nil
20273 }
20274
20275 type ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall struct {
20276 s *Service
20277 resource string
20278 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
20279 urlParams_ gensupport.URLParams
20280 ctx_ context.Context
20281 header_ http.Header
20282 }
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294 func (r *ProjectsLocationsLakesEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall {
20295 c := &ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20296 c.resource = resource
20297 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
20298 return c
20299 }
20300
20301
20302
20303
20304 func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall {
20305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20306 return c
20307 }
20308
20309
20310 func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall {
20311 c.ctx_ = ctx
20312 return c
20313 }
20314
20315
20316
20317 func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Header() http.Header {
20318 if c.header_ == nil {
20319 c.header_ = make(http.Header)
20320 }
20321 return c.header_
20322 }
20323
20324 func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
20325 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20326 var body io.Reader = nil
20327 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
20328 if err != nil {
20329 return nil, err
20330 }
20331 c.urlParams_.Set("alt", alt)
20332 c.urlParams_.Set("prettyPrint", "false")
20333 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
20334 urls += "?" + c.urlParams_.Encode()
20335 req, err := http.NewRequest("POST", urls, body)
20336 if err != nil {
20337 return nil, err
20338 }
20339 req.Header = reqHeaders
20340 googleapi.Expand(req.URL, map[string]string{
20341 "resource": c.resource,
20342 })
20343 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20344 }
20345
20346
20347
20348
20349
20350
20351
20352 func (c *ProjectsLocationsLakesEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
20353 gensupport.SetOptions(c.urlParams_, opts...)
20354 res, err := c.doRequest("json")
20355 if res != nil && res.StatusCode == http.StatusNotModified {
20356 if res.Body != nil {
20357 res.Body.Close()
20358 }
20359 return nil, gensupport.WrapError(&googleapi.Error{
20360 Code: res.StatusCode,
20361 Header: res.Header,
20362 })
20363 }
20364 if err != nil {
20365 return nil, err
20366 }
20367 defer googleapi.CloseBody(res)
20368 if err := googleapi.CheckResponse(res); err != nil {
20369 return nil, gensupport.WrapError(err)
20370 }
20371 ret := &GoogleIamV1TestIamPermissionsResponse{
20372 ServerResponse: googleapi.ServerResponse{
20373 Header: res.Header,
20374 HTTPStatusCode: res.StatusCode,
20375 },
20376 }
20377 target := &ret
20378 if err := gensupport.DecodeResponse(target, res); err != nil {
20379 return nil, err
20380 }
20381 return ret, nil
20382 }
20383
20384 type ProjectsLocationsLakesEnvironmentsSessionsListCall struct {
20385 s *Service
20386 parent string
20387 urlParams_ gensupport.URLParams
20388 ifNoneMatch_ string
20389 ctx_ context.Context
20390 header_ http.Header
20391 }
20392
20393
20394
20395
20396
20397
20398 func (r *ProjectsLocationsLakesEnvironmentsSessionsService) List(parent string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20399 c := &ProjectsLocationsLakesEnvironmentsSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20400 c.parent = parent
20401 return c
20402 }
20403
20404
20405
20406
20407
20408
20409
20410
20411 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Filter(filter string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20412 c.urlParams_.Set("filter", filter)
20413 return c
20414 }
20415
20416
20417
20418
20419
20420 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20421 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20422 return c
20423 }
20424
20425
20426
20427
20428
20429 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20430 c.urlParams_.Set("pageToken", pageToken)
20431 return c
20432 }
20433
20434
20435
20436
20437 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20438 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20439 return c
20440 }
20441
20442
20443
20444
20445 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20446 c.ifNoneMatch_ = entityTag
20447 return c
20448 }
20449
20450
20451 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesEnvironmentsSessionsListCall {
20452 c.ctx_ = ctx
20453 return c
20454 }
20455
20456
20457
20458 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Header() http.Header {
20459 if c.header_ == nil {
20460 c.header_ = make(http.Header)
20461 }
20462 return c.header_
20463 }
20464
20465 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) doRequest(alt string) (*http.Response, error) {
20466 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20467 if c.ifNoneMatch_ != "" {
20468 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20469 }
20470 var body io.Reader = nil
20471 c.urlParams_.Set("alt", alt)
20472 c.urlParams_.Set("prettyPrint", "false")
20473 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sessions")
20474 urls += "?" + c.urlParams_.Encode()
20475 req, err := http.NewRequest("GET", urls, body)
20476 if err != nil {
20477 return nil, err
20478 }
20479 req.Header = reqHeaders
20480 googleapi.Expand(req.URL, map[string]string{
20481 "parent": c.parent,
20482 })
20483 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20484 }
20485
20486
20487
20488
20489
20490
20491
20492 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListSessionsResponse, error) {
20493 gensupport.SetOptions(c.urlParams_, opts...)
20494 res, err := c.doRequest("json")
20495 if res != nil && res.StatusCode == http.StatusNotModified {
20496 if res.Body != nil {
20497 res.Body.Close()
20498 }
20499 return nil, gensupport.WrapError(&googleapi.Error{
20500 Code: res.StatusCode,
20501 Header: res.Header,
20502 })
20503 }
20504 if err != nil {
20505 return nil, err
20506 }
20507 defer googleapi.CloseBody(res)
20508 if err := googleapi.CheckResponse(res); err != nil {
20509 return nil, gensupport.WrapError(err)
20510 }
20511 ret := &GoogleCloudDataplexV1ListSessionsResponse{
20512 ServerResponse: googleapi.ServerResponse{
20513 Header: res.Header,
20514 HTTPStatusCode: res.StatusCode,
20515 },
20516 }
20517 target := &ret
20518 if err := gensupport.DecodeResponse(target, res); err != nil {
20519 return nil, err
20520 }
20521 return ret, nil
20522 }
20523
20524
20525
20526
20527 func (c *ProjectsLocationsLakesEnvironmentsSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListSessionsResponse) error) error {
20528 c.ctx_ = ctx
20529 defer c.PageToken(c.urlParams_.Get("pageToken"))
20530 for {
20531 x, err := c.Do()
20532 if err != nil {
20533 return err
20534 }
20535 if err := f(x); err != nil {
20536 return err
20537 }
20538 if x.NextPageToken == "" {
20539 return nil
20540 }
20541 c.PageToken(x.NextPageToken)
20542 }
20543 }
20544
20545 type ProjectsLocationsLakesTasksCreateCall struct {
20546 s *Service
20547 parent string
20548 googleclouddataplexv1task *GoogleCloudDataplexV1Task
20549 urlParams_ gensupport.URLParams
20550 ctx_ context.Context
20551 header_ http.Header
20552 }
20553
20554
20555
20556
20557
20558 func (r *ProjectsLocationsLakesTasksService) Create(parent string, googleclouddataplexv1task *GoogleCloudDataplexV1Task) *ProjectsLocationsLakesTasksCreateCall {
20559 c := &ProjectsLocationsLakesTasksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20560 c.parent = parent
20561 c.googleclouddataplexv1task = googleclouddataplexv1task
20562 return c
20563 }
20564
20565
20566 func (c *ProjectsLocationsLakesTasksCreateCall) TaskId(taskId string) *ProjectsLocationsLakesTasksCreateCall {
20567 c.urlParams_.Set("taskId", taskId)
20568 return c
20569 }
20570
20571
20572
20573 func (c *ProjectsLocationsLakesTasksCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesTasksCreateCall {
20574 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
20575 return c
20576 }
20577
20578
20579
20580
20581 func (c *ProjectsLocationsLakesTasksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksCreateCall {
20582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20583 return c
20584 }
20585
20586
20587 func (c *ProjectsLocationsLakesTasksCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksCreateCall {
20588 c.ctx_ = ctx
20589 return c
20590 }
20591
20592
20593
20594 func (c *ProjectsLocationsLakesTasksCreateCall) Header() http.Header {
20595 if c.header_ == nil {
20596 c.header_ = make(http.Header)
20597 }
20598 return c.header_
20599 }
20600
20601 func (c *ProjectsLocationsLakesTasksCreateCall) doRequest(alt string) (*http.Response, error) {
20602 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20603 var body io.Reader = nil
20604 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1task)
20605 if err != nil {
20606 return nil, err
20607 }
20608 c.urlParams_.Set("alt", alt)
20609 c.urlParams_.Set("prettyPrint", "false")
20610 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tasks")
20611 urls += "?" + c.urlParams_.Encode()
20612 req, err := http.NewRequest("POST", urls, body)
20613 if err != nil {
20614 return nil, err
20615 }
20616 req.Header = reqHeaders
20617 googleapi.Expand(req.URL, map[string]string{
20618 "parent": c.parent,
20619 })
20620 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20621 }
20622
20623
20624
20625
20626
20627
20628
20629 func (c *ProjectsLocationsLakesTasksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20630 gensupport.SetOptions(c.urlParams_, opts...)
20631 res, err := c.doRequest("json")
20632 if res != nil && res.StatusCode == http.StatusNotModified {
20633 if res.Body != nil {
20634 res.Body.Close()
20635 }
20636 return nil, gensupport.WrapError(&googleapi.Error{
20637 Code: res.StatusCode,
20638 Header: res.Header,
20639 })
20640 }
20641 if err != nil {
20642 return nil, err
20643 }
20644 defer googleapi.CloseBody(res)
20645 if err := googleapi.CheckResponse(res); err != nil {
20646 return nil, gensupport.WrapError(err)
20647 }
20648 ret := &GoogleLongrunningOperation{
20649 ServerResponse: googleapi.ServerResponse{
20650 Header: res.Header,
20651 HTTPStatusCode: res.StatusCode,
20652 },
20653 }
20654 target := &ret
20655 if err := gensupport.DecodeResponse(target, res); err != nil {
20656 return nil, err
20657 }
20658 return ret, nil
20659 }
20660
20661 type ProjectsLocationsLakesTasksDeleteCall struct {
20662 s *Service
20663 name string
20664 urlParams_ gensupport.URLParams
20665 ctx_ context.Context
20666 header_ http.Header
20667 }
20668
20669
20670
20671
20672
20673
20674 func (r *ProjectsLocationsLakesTasksService) Delete(name string) *ProjectsLocationsLakesTasksDeleteCall {
20675 c := &ProjectsLocationsLakesTasksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20676 c.name = name
20677 return c
20678 }
20679
20680
20681
20682
20683 func (c *ProjectsLocationsLakesTasksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksDeleteCall {
20684 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20685 return c
20686 }
20687
20688
20689 func (c *ProjectsLocationsLakesTasksDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksDeleteCall {
20690 c.ctx_ = ctx
20691 return c
20692 }
20693
20694
20695
20696 func (c *ProjectsLocationsLakesTasksDeleteCall) Header() http.Header {
20697 if c.header_ == nil {
20698 c.header_ = make(http.Header)
20699 }
20700 return c.header_
20701 }
20702
20703 func (c *ProjectsLocationsLakesTasksDeleteCall) doRequest(alt string) (*http.Response, error) {
20704 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20705 var body io.Reader = nil
20706 c.urlParams_.Set("alt", alt)
20707 c.urlParams_.Set("prettyPrint", "false")
20708 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20709 urls += "?" + c.urlParams_.Encode()
20710 req, err := http.NewRequest("DELETE", urls, body)
20711 if err != nil {
20712 return nil, err
20713 }
20714 req.Header = reqHeaders
20715 googleapi.Expand(req.URL, map[string]string{
20716 "name": c.name,
20717 })
20718 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20719 }
20720
20721
20722
20723
20724
20725
20726
20727 func (c *ProjectsLocationsLakesTasksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20728 gensupport.SetOptions(c.urlParams_, opts...)
20729 res, err := c.doRequest("json")
20730 if res != nil && res.StatusCode == http.StatusNotModified {
20731 if res.Body != nil {
20732 res.Body.Close()
20733 }
20734 return nil, gensupport.WrapError(&googleapi.Error{
20735 Code: res.StatusCode,
20736 Header: res.Header,
20737 })
20738 }
20739 if err != nil {
20740 return nil, err
20741 }
20742 defer googleapi.CloseBody(res)
20743 if err := googleapi.CheckResponse(res); err != nil {
20744 return nil, gensupport.WrapError(err)
20745 }
20746 ret := &GoogleLongrunningOperation{
20747 ServerResponse: googleapi.ServerResponse{
20748 Header: res.Header,
20749 HTTPStatusCode: res.StatusCode,
20750 },
20751 }
20752 target := &ret
20753 if err := gensupport.DecodeResponse(target, res); err != nil {
20754 return nil, err
20755 }
20756 return ret, nil
20757 }
20758
20759 type ProjectsLocationsLakesTasksGetCall struct {
20760 s *Service
20761 name string
20762 urlParams_ gensupport.URLParams
20763 ifNoneMatch_ string
20764 ctx_ context.Context
20765 header_ http.Header
20766 }
20767
20768
20769
20770
20771
20772
20773 func (r *ProjectsLocationsLakesTasksService) Get(name string) *ProjectsLocationsLakesTasksGetCall {
20774 c := &ProjectsLocationsLakesTasksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20775 c.name = name
20776 return c
20777 }
20778
20779
20780
20781
20782 func (c *ProjectsLocationsLakesTasksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksGetCall {
20783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20784 return c
20785 }
20786
20787
20788
20789
20790 func (c *ProjectsLocationsLakesTasksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksGetCall {
20791 c.ifNoneMatch_ = entityTag
20792 return c
20793 }
20794
20795
20796 func (c *ProjectsLocationsLakesTasksGetCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksGetCall {
20797 c.ctx_ = ctx
20798 return c
20799 }
20800
20801
20802
20803 func (c *ProjectsLocationsLakesTasksGetCall) Header() http.Header {
20804 if c.header_ == nil {
20805 c.header_ = make(http.Header)
20806 }
20807 return c.header_
20808 }
20809
20810 func (c *ProjectsLocationsLakesTasksGetCall) doRequest(alt string) (*http.Response, error) {
20811 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20812 if c.ifNoneMatch_ != "" {
20813 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20814 }
20815 var body io.Reader = nil
20816 c.urlParams_.Set("alt", alt)
20817 c.urlParams_.Set("prettyPrint", "false")
20818 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20819 urls += "?" + c.urlParams_.Encode()
20820 req, err := http.NewRequest("GET", urls, body)
20821 if err != nil {
20822 return nil, err
20823 }
20824 req.Header = reqHeaders
20825 googleapi.Expand(req.URL, map[string]string{
20826 "name": c.name,
20827 })
20828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20829 }
20830
20831
20832
20833
20834
20835
20836
20837 func (c *ProjectsLocationsLakesTasksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Task, error) {
20838 gensupport.SetOptions(c.urlParams_, opts...)
20839 res, err := c.doRequest("json")
20840 if res != nil && res.StatusCode == http.StatusNotModified {
20841 if res.Body != nil {
20842 res.Body.Close()
20843 }
20844 return nil, gensupport.WrapError(&googleapi.Error{
20845 Code: res.StatusCode,
20846 Header: res.Header,
20847 })
20848 }
20849 if err != nil {
20850 return nil, err
20851 }
20852 defer googleapi.CloseBody(res)
20853 if err := googleapi.CheckResponse(res); err != nil {
20854 return nil, gensupport.WrapError(err)
20855 }
20856 ret := &GoogleCloudDataplexV1Task{
20857 ServerResponse: googleapi.ServerResponse{
20858 Header: res.Header,
20859 HTTPStatusCode: res.StatusCode,
20860 },
20861 }
20862 target := &ret
20863 if err := gensupport.DecodeResponse(target, res); err != nil {
20864 return nil, err
20865 }
20866 return ret, nil
20867 }
20868
20869 type ProjectsLocationsLakesTasksGetIamPolicyCall struct {
20870 s *Service
20871 resource string
20872 urlParams_ gensupport.URLParams
20873 ifNoneMatch_ string
20874 ctx_ context.Context
20875 header_ http.Header
20876 }
20877
20878
20879
20880
20881
20882
20883
20884 func (r *ProjectsLocationsLakesTasksService) GetIamPolicy(resource string) *ProjectsLocationsLakesTasksGetIamPolicyCall {
20885 c := &ProjectsLocationsLakesTasksGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20886 c.resource = resource
20887 return c
20888 }
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesTasksGetIamPolicyCall {
20903 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
20904 return c
20905 }
20906
20907
20908
20909
20910 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksGetIamPolicyCall {
20911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20912 return c
20913 }
20914
20915
20916
20917
20918 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksGetIamPolicyCall {
20919 c.ifNoneMatch_ = entityTag
20920 return c
20921 }
20922
20923
20924 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksGetIamPolicyCall {
20925 c.ctx_ = ctx
20926 return c
20927 }
20928
20929
20930
20931 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Header() http.Header {
20932 if c.header_ == nil {
20933 c.header_ = make(http.Header)
20934 }
20935 return c.header_
20936 }
20937
20938 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
20939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20940 if c.ifNoneMatch_ != "" {
20941 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20942 }
20943 var body io.Reader = nil
20944 c.urlParams_.Set("alt", alt)
20945 c.urlParams_.Set("prettyPrint", "false")
20946 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
20947 urls += "?" + c.urlParams_.Encode()
20948 req, err := http.NewRequest("GET", urls, body)
20949 if err != nil {
20950 return nil, err
20951 }
20952 req.Header = reqHeaders
20953 googleapi.Expand(req.URL, map[string]string{
20954 "resource": c.resource,
20955 })
20956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20957 }
20958
20959
20960
20961
20962
20963
20964
20965 func (c *ProjectsLocationsLakesTasksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
20966 gensupport.SetOptions(c.urlParams_, opts...)
20967 res, err := c.doRequest("json")
20968 if res != nil && res.StatusCode == http.StatusNotModified {
20969 if res.Body != nil {
20970 res.Body.Close()
20971 }
20972 return nil, gensupport.WrapError(&googleapi.Error{
20973 Code: res.StatusCode,
20974 Header: res.Header,
20975 })
20976 }
20977 if err != nil {
20978 return nil, err
20979 }
20980 defer googleapi.CloseBody(res)
20981 if err := googleapi.CheckResponse(res); err != nil {
20982 return nil, gensupport.WrapError(err)
20983 }
20984 ret := &GoogleIamV1Policy{
20985 ServerResponse: googleapi.ServerResponse{
20986 Header: res.Header,
20987 HTTPStatusCode: res.StatusCode,
20988 },
20989 }
20990 target := &ret
20991 if err := gensupport.DecodeResponse(target, res); err != nil {
20992 return nil, err
20993 }
20994 return ret, nil
20995 }
20996
20997 type ProjectsLocationsLakesTasksListCall struct {
20998 s *Service
20999 parent string
21000 urlParams_ gensupport.URLParams
21001 ifNoneMatch_ string
21002 ctx_ context.Context
21003 header_ http.Header
21004 }
21005
21006
21007
21008
21009
21010 func (r *ProjectsLocationsLakesTasksService) List(parent string) *ProjectsLocationsLakesTasksListCall {
21011 c := &ProjectsLocationsLakesTasksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21012 c.parent = parent
21013 return c
21014 }
21015
21016
21017 func (c *ProjectsLocationsLakesTasksListCall) Filter(filter string) *ProjectsLocationsLakesTasksListCall {
21018 c.urlParams_.Set("filter", filter)
21019 return c
21020 }
21021
21022
21023
21024 func (c *ProjectsLocationsLakesTasksListCall) OrderBy(orderBy string) *ProjectsLocationsLakesTasksListCall {
21025 c.urlParams_.Set("orderBy", orderBy)
21026 return c
21027 }
21028
21029
21030
21031
21032
21033 func (c *ProjectsLocationsLakesTasksListCall) PageSize(pageSize int64) *ProjectsLocationsLakesTasksListCall {
21034 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21035 return c
21036 }
21037
21038
21039
21040
21041
21042 func (c *ProjectsLocationsLakesTasksListCall) PageToken(pageToken string) *ProjectsLocationsLakesTasksListCall {
21043 c.urlParams_.Set("pageToken", pageToken)
21044 return c
21045 }
21046
21047
21048
21049
21050 func (c *ProjectsLocationsLakesTasksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksListCall {
21051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21052 return c
21053 }
21054
21055
21056
21057
21058 func (c *ProjectsLocationsLakesTasksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksListCall {
21059 c.ifNoneMatch_ = entityTag
21060 return c
21061 }
21062
21063
21064 func (c *ProjectsLocationsLakesTasksListCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksListCall {
21065 c.ctx_ = ctx
21066 return c
21067 }
21068
21069
21070
21071 func (c *ProjectsLocationsLakesTasksListCall) Header() http.Header {
21072 if c.header_ == nil {
21073 c.header_ = make(http.Header)
21074 }
21075 return c.header_
21076 }
21077
21078 func (c *ProjectsLocationsLakesTasksListCall) doRequest(alt string) (*http.Response, error) {
21079 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21080 if c.ifNoneMatch_ != "" {
21081 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21082 }
21083 var body io.Reader = nil
21084 c.urlParams_.Set("alt", alt)
21085 c.urlParams_.Set("prettyPrint", "false")
21086 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tasks")
21087 urls += "?" + c.urlParams_.Encode()
21088 req, err := http.NewRequest("GET", urls, body)
21089 if err != nil {
21090 return nil, err
21091 }
21092 req.Header = reqHeaders
21093 googleapi.Expand(req.URL, map[string]string{
21094 "parent": c.parent,
21095 })
21096 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21097 }
21098
21099
21100
21101
21102
21103
21104
21105 func (c *ProjectsLocationsLakesTasksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListTasksResponse, error) {
21106 gensupport.SetOptions(c.urlParams_, opts...)
21107 res, err := c.doRequest("json")
21108 if res != nil && res.StatusCode == http.StatusNotModified {
21109 if res.Body != nil {
21110 res.Body.Close()
21111 }
21112 return nil, gensupport.WrapError(&googleapi.Error{
21113 Code: res.StatusCode,
21114 Header: res.Header,
21115 })
21116 }
21117 if err != nil {
21118 return nil, err
21119 }
21120 defer googleapi.CloseBody(res)
21121 if err := googleapi.CheckResponse(res); err != nil {
21122 return nil, gensupport.WrapError(err)
21123 }
21124 ret := &GoogleCloudDataplexV1ListTasksResponse{
21125 ServerResponse: googleapi.ServerResponse{
21126 Header: res.Header,
21127 HTTPStatusCode: res.StatusCode,
21128 },
21129 }
21130 target := &ret
21131 if err := gensupport.DecodeResponse(target, res); err != nil {
21132 return nil, err
21133 }
21134 return ret, nil
21135 }
21136
21137
21138
21139
21140 func (c *ProjectsLocationsLakesTasksListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListTasksResponse) error) error {
21141 c.ctx_ = ctx
21142 defer c.PageToken(c.urlParams_.Get("pageToken"))
21143 for {
21144 x, err := c.Do()
21145 if err != nil {
21146 return err
21147 }
21148 if err := f(x); err != nil {
21149 return err
21150 }
21151 if x.NextPageToken == "" {
21152 return nil
21153 }
21154 c.PageToken(x.NextPageToken)
21155 }
21156 }
21157
21158 type ProjectsLocationsLakesTasksPatchCall struct {
21159 s *Service
21160 name string
21161 googleclouddataplexv1task *GoogleCloudDataplexV1Task
21162 urlParams_ gensupport.URLParams
21163 ctx_ context.Context
21164 header_ http.Header
21165 }
21166
21167
21168
21169
21170
21171
21172 func (r *ProjectsLocationsLakesTasksService) Patch(name string, googleclouddataplexv1task *GoogleCloudDataplexV1Task) *ProjectsLocationsLakesTasksPatchCall {
21173 c := &ProjectsLocationsLakesTasksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21174 c.name = name
21175 c.googleclouddataplexv1task = googleclouddataplexv1task
21176 return c
21177 }
21178
21179
21180
21181 func (c *ProjectsLocationsLakesTasksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesTasksPatchCall {
21182 c.urlParams_.Set("updateMask", updateMask)
21183 return c
21184 }
21185
21186
21187
21188 func (c *ProjectsLocationsLakesTasksPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesTasksPatchCall {
21189 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
21190 return c
21191 }
21192
21193
21194
21195
21196 func (c *ProjectsLocationsLakesTasksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksPatchCall {
21197 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21198 return c
21199 }
21200
21201
21202 func (c *ProjectsLocationsLakesTasksPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksPatchCall {
21203 c.ctx_ = ctx
21204 return c
21205 }
21206
21207
21208
21209 func (c *ProjectsLocationsLakesTasksPatchCall) Header() http.Header {
21210 if c.header_ == nil {
21211 c.header_ = make(http.Header)
21212 }
21213 return c.header_
21214 }
21215
21216 func (c *ProjectsLocationsLakesTasksPatchCall) doRequest(alt string) (*http.Response, error) {
21217 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21218 var body io.Reader = nil
21219 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1task)
21220 if err != nil {
21221 return nil, err
21222 }
21223 c.urlParams_.Set("alt", alt)
21224 c.urlParams_.Set("prettyPrint", "false")
21225 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21226 urls += "?" + c.urlParams_.Encode()
21227 req, err := http.NewRequest("PATCH", urls, body)
21228 if err != nil {
21229 return nil, err
21230 }
21231 req.Header = reqHeaders
21232 googleapi.Expand(req.URL, map[string]string{
21233 "name": c.name,
21234 })
21235 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21236 }
21237
21238
21239
21240
21241
21242
21243
21244 func (c *ProjectsLocationsLakesTasksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21245 gensupport.SetOptions(c.urlParams_, opts...)
21246 res, err := c.doRequest("json")
21247 if res != nil && res.StatusCode == http.StatusNotModified {
21248 if res.Body != nil {
21249 res.Body.Close()
21250 }
21251 return nil, gensupport.WrapError(&googleapi.Error{
21252 Code: res.StatusCode,
21253 Header: res.Header,
21254 })
21255 }
21256 if err != nil {
21257 return nil, err
21258 }
21259 defer googleapi.CloseBody(res)
21260 if err := googleapi.CheckResponse(res); err != nil {
21261 return nil, gensupport.WrapError(err)
21262 }
21263 ret := &GoogleLongrunningOperation{
21264 ServerResponse: googleapi.ServerResponse{
21265 Header: res.Header,
21266 HTTPStatusCode: res.StatusCode,
21267 },
21268 }
21269 target := &ret
21270 if err := gensupport.DecodeResponse(target, res); err != nil {
21271 return nil, err
21272 }
21273 return ret, nil
21274 }
21275
21276 type ProjectsLocationsLakesTasksRunCall struct {
21277 s *Service
21278 name string
21279 googleclouddataplexv1runtaskrequest *GoogleCloudDataplexV1RunTaskRequest
21280 urlParams_ gensupport.URLParams
21281 ctx_ context.Context
21282 header_ http.Header
21283 }
21284
21285
21286
21287
21288
21289
21290 func (r *ProjectsLocationsLakesTasksService) Run(name string, googleclouddataplexv1runtaskrequest *GoogleCloudDataplexV1RunTaskRequest) *ProjectsLocationsLakesTasksRunCall {
21291 c := &ProjectsLocationsLakesTasksRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21292 c.name = name
21293 c.googleclouddataplexv1runtaskrequest = googleclouddataplexv1runtaskrequest
21294 return c
21295 }
21296
21297
21298
21299
21300 func (c *ProjectsLocationsLakesTasksRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksRunCall {
21301 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21302 return c
21303 }
21304
21305
21306 func (c *ProjectsLocationsLakesTasksRunCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksRunCall {
21307 c.ctx_ = ctx
21308 return c
21309 }
21310
21311
21312
21313 func (c *ProjectsLocationsLakesTasksRunCall) Header() http.Header {
21314 if c.header_ == nil {
21315 c.header_ = make(http.Header)
21316 }
21317 return c.header_
21318 }
21319
21320 func (c *ProjectsLocationsLakesTasksRunCall) doRequest(alt string) (*http.Response, error) {
21321 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21322 var body io.Reader = nil
21323 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1runtaskrequest)
21324 if err != nil {
21325 return nil, err
21326 }
21327 c.urlParams_.Set("alt", alt)
21328 c.urlParams_.Set("prettyPrint", "false")
21329 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
21330 urls += "?" + c.urlParams_.Encode()
21331 req, err := http.NewRequest("POST", urls, body)
21332 if err != nil {
21333 return nil, err
21334 }
21335 req.Header = reqHeaders
21336 googleapi.Expand(req.URL, map[string]string{
21337 "name": c.name,
21338 })
21339 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21340 }
21341
21342
21343
21344
21345
21346
21347
21348 func (c *ProjectsLocationsLakesTasksRunCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1RunTaskResponse, error) {
21349 gensupport.SetOptions(c.urlParams_, opts...)
21350 res, err := c.doRequest("json")
21351 if res != nil && res.StatusCode == http.StatusNotModified {
21352 if res.Body != nil {
21353 res.Body.Close()
21354 }
21355 return nil, gensupport.WrapError(&googleapi.Error{
21356 Code: res.StatusCode,
21357 Header: res.Header,
21358 })
21359 }
21360 if err != nil {
21361 return nil, err
21362 }
21363 defer googleapi.CloseBody(res)
21364 if err := googleapi.CheckResponse(res); err != nil {
21365 return nil, gensupport.WrapError(err)
21366 }
21367 ret := &GoogleCloudDataplexV1RunTaskResponse{
21368 ServerResponse: googleapi.ServerResponse{
21369 Header: res.Header,
21370 HTTPStatusCode: res.StatusCode,
21371 },
21372 }
21373 target := &ret
21374 if err := gensupport.DecodeResponse(target, res); err != nil {
21375 return nil, err
21376 }
21377 return ret, nil
21378 }
21379
21380 type ProjectsLocationsLakesTasksSetIamPolicyCall struct {
21381 s *Service
21382 resource string
21383 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
21384 urlParams_ gensupport.URLParams
21385 ctx_ context.Context
21386 header_ http.Header
21387 }
21388
21389
21390
21391
21392
21393
21394
21395
21396 func (r *ProjectsLocationsLakesTasksService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesTasksSetIamPolicyCall {
21397 c := &ProjectsLocationsLakesTasksSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21398 c.resource = resource
21399 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
21400 return c
21401 }
21402
21403
21404
21405
21406 func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksSetIamPolicyCall {
21407 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21408 return c
21409 }
21410
21411
21412 func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksSetIamPolicyCall {
21413 c.ctx_ = ctx
21414 return c
21415 }
21416
21417
21418
21419 func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Header() http.Header {
21420 if c.header_ == nil {
21421 c.header_ = make(http.Header)
21422 }
21423 return c.header_
21424 }
21425
21426 func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
21427 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21428 var body io.Reader = nil
21429 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
21430 if err != nil {
21431 return nil, err
21432 }
21433 c.urlParams_.Set("alt", alt)
21434 c.urlParams_.Set("prettyPrint", "false")
21435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
21436 urls += "?" + c.urlParams_.Encode()
21437 req, err := http.NewRequest("POST", urls, body)
21438 if err != nil {
21439 return nil, err
21440 }
21441 req.Header = reqHeaders
21442 googleapi.Expand(req.URL, map[string]string{
21443 "resource": c.resource,
21444 })
21445 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21446 }
21447
21448
21449
21450
21451
21452
21453
21454 func (c *ProjectsLocationsLakesTasksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
21455 gensupport.SetOptions(c.urlParams_, opts...)
21456 res, err := c.doRequest("json")
21457 if res != nil && res.StatusCode == http.StatusNotModified {
21458 if res.Body != nil {
21459 res.Body.Close()
21460 }
21461 return nil, gensupport.WrapError(&googleapi.Error{
21462 Code: res.StatusCode,
21463 Header: res.Header,
21464 })
21465 }
21466 if err != nil {
21467 return nil, err
21468 }
21469 defer googleapi.CloseBody(res)
21470 if err := googleapi.CheckResponse(res); err != nil {
21471 return nil, gensupport.WrapError(err)
21472 }
21473 ret := &GoogleIamV1Policy{
21474 ServerResponse: googleapi.ServerResponse{
21475 Header: res.Header,
21476 HTTPStatusCode: res.StatusCode,
21477 },
21478 }
21479 target := &ret
21480 if err := gensupport.DecodeResponse(target, res); err != nil {
21481 return nil, err
21482 }
21483 return ret, nil
21484 }
21485
21486 type ProjectsLocationsLakesTasksTestIamPermissionsCall struct {
21487 s *Service
21488 resource string
21489 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
21490 urlParams_ gensupport.URLParams
21491 ctx_ context.Context
21492 header_ http.Header
21493 }
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505 func (r *ProjectsLocationsLakesTasksService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesTasksTestIamPermissionsCall {
21506 c := &ProjectsLocationsLakesTasksTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21507 c.resource = resource
21508 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
21509 return c
21510 }
21511
21512
21513
21514
21515 func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksTestIamPermissionsCall {
21516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21517 return c
21518 }
21519
21520
21521 func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksTestIamPermissionsCall {
21522 c.ctx_ = ctx
21523 return c
21524 }
21525
21526
21527
21528 func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Header() http.Header {
21529 if c.header_ == nil {
21530 c.header_ = make(http.Header)
21531 }
21532 return c.header_
21533 }
21534
21535 func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
21536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21537 var body io.Reader = nil
21538 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
21539 if err != nil {
21540 return nil, err
21541 }
21542 c.urlParams_.Set("alt", alt)
21543 c.urlParams_.Set("prettyPrint", "false")
21544 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
21545 urls += "?" + c.urlParams_.Encode()
21546 req, err := http.NewRequest("POST", urls, body)
21547 if err != nil {
21548 return nil, err
21549 }
21550 req.Header = reqHeaders
21551 googleapi.Expand(req.URL, map[string]string{
21552 "resource": c.resource,
21553 })
21554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21555 }
21556
21557
21558
21559
21560
21561
21562
21563 func (c *ProjectsLocationsLakesTasksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
21564 gensupport.SetOptions(c.urlParams_, opts...)
21565 res, err := c.doRequest("json")
21566 if res != nil && res.StatusCode == http.StatusNotModified {
21567 if res.Body != nil {
21568 res.Body.Close()
21569 }
21570 return nil, gensupport.WrapError(&googleapi.Error{
21571 Code: res.StatusCode,
21572 Header: res.Header,
21573 })
21574 }
21575 if err != nil {
21576 return nil, err
21577 }
21578 defer googleapi.CloseBody(res)
21579 if err := googleapi.CheckResponse(res); err != nil {
21580 return nil, gensupport.WrapError(err)
21581 }
21582 ret := &GoogleIamV1TestIamPermissionsResponse{
21583 ServerResponse: googleapi.ServerResponse{
21584 Header: res.Header,
21585 HTTPStatusCode: res.StatusCode,
21586 },
21587 }
21588 target := &ret
21589 if err := gensupport.DecodeResponse(target, res); err != nil {
21590 return nil, err
21591 }
21592 return ret, nil
21593 }
21594
21595 type ProjectsLocationsLakesTasksJobsCancelCall struct {
21596 s *Service
21597 name string
21598 googleclouddataplexv1canceljobrequest *GoogleCloudDataplexV1CancelJobRequest
21599 urlParams_ gensupport.URLParams
21600 ctx_ context.Context
21601 header_ http.Header
21602 }
21603
21604
21605
21606
21607
21608
21609 func (r *ProjectsLocationsLakesTasksJobsService) Cancel(name string, googleclouddataplexv1canceljobrequest *GoogleCloudDataplexV1CancelJobRequest) *ProjectsLocationsLakesTasksJobsCancelCall {
21610 c := &ProjectsLocationsLakesTasksJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21611 c.name = name
21612 c.googleclouddataplexv1canceljobrequest = googleclouddataplexv1canceljobrequest
21613 return c
21614 }
21615
21616
21617
21618
21619 func (c *ProjectsLocationsLakesTasksJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksJobsCancelCall {
21620 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21621 return c
21622 }
21623
21624
21625 func (c *ProjectsLocationsLakesTasksJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksJobsCancelCall {
21626 c.ctx_ = ctx
21627 return c
21628 }
21629
21630
21631
21632 func (c *ProjectsLocationsLakesTasksJobsCancelCall) Header() http.Header {
21633 if c.header_ == nil {
21634 c.header_ = make(http.Header)
21635 }
21636 return c.header_
21637 }
21638
21639 func (c *ProjectsLocationsLakesTasksJobsCancelCall) doRequest(alt string) (*http.Response, error) {
21640 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21641 var body io.Reader = nil
21642 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1canceljobrequest)
21643 if err != nil {
21644 return nil, err
21645 }
21646 c.urlParams_.Set("alt", alt)
21647 c.urlParams_.Set("prettyPrint", "false")
21648 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
21649 urls += "?" + c.urlParams_.Encode()
21650 req, err := http.NewRequest("POST", urls, body)
21651 if err != nil {
21652 return nil, err
21653 }
21654 req.Header = reqHeaders
21655 googleapi.Expand(req.URL, map[string]string{
21656 "name": c.name,
21657 })
21658 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21659 }
21660
21661
21662
21663
21664
21665
21666 func (c *ProjectsLocationsLakesTasksJobsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
21667 gensupport.SetOptions(c.urlParams_, opts...)
21668 res, err := c.doRequest("json")
21669 if res != nil && res.StatusCode == http.StatusNotModified {
21670 if res.Body != nil {
21671 res.Body.Close()
21672 }
21673 return nil, gensupport.WrapError(&googleapi.Error{
21674 Code: res.StatusCode,
21675 Header: res.Header,
21676 })
21677 }
21678 if err != nil {
21679 return nil, err
21680 }
21681 defer googleapi.CloseBody(res)
21682 if err := googleapi.CheckResponse(res); err != nil {
21683 return nil, gensupport.WrapError(err)
21684 }
21685 ret := &Empty{
21686 ServerResponse: googleapi.ServerResponse{
21687 Header: res.Header,
21688 HTTPStatusCode: res.StatusCode,
21689 },
21690 }
21691 target := &ret
21692 if err := gensupport.DecodeResponse(target, res); err != nil {
21693 return nil, err
21694 }
21695 return ret, nil
21696 }
21697
21698 type ProjectsLocationsLakesTasksJobsGetCall struct {
21699 s *Service
21700 name string
21701 urlParams_ gensupport.URLParams
21702 ifNoneMatch_ string
21703 ctx_ context.Context
21704 header_ http.Header
21705 }
21706
21707
21708
21709
21710
21711
21712 func (r *ProjectsLocationsLakesTasksJobsService) Get(name string) *ProjectsLocationsLakesTasksJobsGetCall {
21713 c := &ProjectsLocationsLakesTasksJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21714 c.name = name
21715 return c
21716 }
21717
21718
21719
21720
21721 func (c *ProjectsLocationsLakesTasksJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksJobsGetCall {
21722 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21723 return c
21724 }
21725
21726
21727
21728
21729 func (c *ProjectsLocationsLakesTasksJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksJobsGetCall {
21730 c.ifNoneMatch_ = entityTag
21731 return c
21732 }
21733
21734
21735 func (c *ProjectsLocationsLakesTasksJobsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksJobsGetCall {
21736 c.ctx_ = ctx
21737 return c
21738 }
21739
21740
21741
21742 func (c *ProjectsLocationsLakesTasksJobsGetCall) Header() http.Header {
21743 if c.header_ == nil {
21744 c.header_ = make(http.Header)
21745 }
21746 return c.header_
21747 }
21748
21749 func (c *ProjectsLocationsLakesTasksJobsGetCall) doRequest(alt string) (*http.Response, error) {
21750 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21751 if c.ifNoneMatch_ != "" {
21752 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21753 }
21754 var body io.Reader = nil
21755 c.urlParams_.Set("alt", alt)
21756 c.urlParams_.Set("prettyPrint", "false")
21757 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21758 urls += "?" + c.urlParams_.Encode()
21759 req, err := http.NewRequest("GET", urls, body)
21760 if err != nil {
21761 return nil, err
21762 }
21763 req.Header = reqHeaders
21764 googleapi.Expand(req.URL, map[string]string{
21765 "name": c.name,
21766 })
21767 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21768 }
21769
21770
21771
21772
21773
21774
21775
21776 func (c *ProjectsLocationsLakesTasksJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Job, error) {
21777 gensupport.SetOptions(c.urlParams_, opts...)
21778 res, err := c.doRequest("json")
21779 if res != nil && res.StatusCode == http.StatusNotModified {
21780 if res.Body != nil {
21781 res.Body.Close()
21782 }
21783 return nil, gensupport.WrapError(&googleapi.Error{
21784 Code: res.StatusCode,
21785 Header: res.Header,
21786 })
21787 }
21788 if err != nil {
21789 return nil, err
21790 }
21791 defer googleapi.CloseBody(res)
21792 if err := googleapi.CheckResponse(res); err != nil {
21793 return nil, gensupport.WrapError(err)
21794 }
21795 ret := &GoogleCloudDataplexV1Job{
21796 ServerResponse: googleapi.ServerResponse{
21797 Header: res.Header,
21798 HTTPStatusCode: res.StatusCode,
21799 },
21800 }
21801 target := &ret
21802 if err := gensupport.DecodeResponse(target, res); err != nil {
21803 return nil, err
21804 }
21805 return ret, nil
21806 }
21807
21808 type ProjectsLocationsLakesTasksJobsListCall struct {
21809 s *Service
21810 parent string
21811 urlParams_ gensupport.URLParams
21812 ifNoneMatch_ string
21813 ctx_ context.Context
21814 header_ http.Header
21815 }
21816
21817
21818
21819
21820
21821
21822 func (r *ProjectsLocationsLakesTasksJobsService) List(parent string) *ProjectsLocationsLakesTasksJobsListCall {
21823 c := &ProjectsLocationsLakesTasksJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21824 c.parent = parent
21825 return c
21826 }
21827
21828
21829
21830
21831
21832 func (c *ProjectsLocationsLakesTasksJobsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesTasksJobsListCall {
21833 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21834 return c
21835 }
21836
21837
21838
21839
21840
21841 func (c *ProjectsLocationsLakesTasksJobsListCall) PageToken(pageToken string) *ProjectsLocationsLakesTasksJobsListCall {
21842 c.urlParams_.Set("pageToken", pageToken)
21843 return c
21844 }
21845
21846
21847
21848
21849 func (c *ProjectsLocationsLakesTasksJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesTasksJobsListCall {
21850 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21851 return c
21852 }
21853
21854
21855
21856
21857 func (c *ProjectsLocationsLakesTasksJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesTasksJobsListCall {
21858 c.ifNoneMatch_ = entityTag
21859 return c
21860 }
21861
21862
21863 func (c *ProjectsLocationsLakesTasksJobsListCall) Context(ctx context.Context) *ProjectsLocationsLakesTasksJobsListCall {
21864 c.ctx_ = ctx
21865 return c
21866 }
21867
21868
21869
21870 func (c *ProjectsLocationsLakesTasksJobsListCall) Header() http.Header {
21871 if c.header_ == nil {
21872 c.header_ = make(http.Header)
21873 }
21874 return c.header_
21875 }
21876
21877 func (c *ProjectsLocationsLakesTasksJobsListCall) doRequest(alt string) (*http.Response, error) {
21878 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21879 if c.ifNoneMatch_ != "" {
21880 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21881 }
21882 var body io.Reader = nil
21883 c.urlParams_.Set("alt", alt)
21884 c.urlParams_.Set("prettyPrint", "false")
21885 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/jobs")
21886 urls += "?" + c.urlParams_.Encode()
21887 req, err := http.NewRequest("GET", urls, body)
21888 if err != nil {
21889 return nil, err
21890 }
21891 req.Header = reqHeaders
21892 googleapi.Expand(req.URL, map[string]string{
21893 "parent": c.parent,
21894 })
21895 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21896 }
21897
21898
21899
21900
21901
21902
21903
21904 func (c *ProjectsLocationsLakesTasksJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListJobsResponse, error) {
21905 gensupport.SetOptions(c.urlParams_, opts...)
21906 res, err := c.doRequest("json")
21907 if res != nil && res.StatusCode == http.StatusNotModified {
21908 if res.Body != nil {
21909 res.Body.Close()
21910 }
21911 return nil, gensupport.WrapError(&googleapi.Error{
21912 Code: res.StatusCode,
21913 Header: res.Header,
21914 })
21915 }
21916 if err != nil {
21917 return nil, err
21918 }
21919 defer googleapi.CloseBody(res)
21920 if err := googleapi.CheckResponse(res); err != nil {
21921 return nil, gensupport.WrapError(err)
21922 }
21923 ret := &GoogleCloudDataplexV1ListJobsResponse{
21924 ServerResponse: googleapi.ServerResponse{
21925 Header: res.Header,
21926 HTTPStatusCode: res.StatusCode,
21927 },
21928 }
21929 target := &ret
21930 if err := gensupport.DecodeResponse(target, res); err != nil {
21931 return nil, err
21932 }
21933 return ret, nil
21934 }
21935
21936
21937
21938
21939 func (c *ProjectsLocationsLakesTasksJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListJobsResponse) error) error {
21940 c.ctx_ = ctx
21941 defer c.PageToken(c.urlParams_.Get("pageToken"))
21942 for {
21943 x, err := c.Do()
21944 if err != nil {
21945 return err
21946 }
21947 if err := f(x); err != nil {
21948 return err
21949 }
21950 if x.NextPageToken == "" {
21951 return nil
21952 }
21953 c.PageToken(x.NextPageToken)
21954 }
21955 }
21956
21957 type ProjectsLocationsLakesZonesCreateCall struct {
21958 s *Service
21959 parent string
21960 googleclouddataplexv1zone *GoogleCloudDataplexV1Zone
21961 urlParams_ gensupport.URLParams
21962 ctx_ context.Context
21963 header_ http.Header
21964 }
21965
21966
21967
21968
21969
21970 func (r *ProjectsLocationsLakesZonesService) Create(parent string, googleclouddataplexv1zone *GoogleCloudDataplexV1Zone) *ProjectsLocationsLakesZonesCreateCall {
21971 c := &ProjectsLocationsLakesZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21972 c.parent = parent
21973 c.googleclouddataplexv1zone = googleclouddataplexv1zone
21974 return c
21975 }
21976
21977
21978
21979 func (c *ProjectsLocationsLakesZonesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesCreateCall {
21980 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
21981 return c
21982 }
21983
21984
21985
21986
21987
21988
21989
21990
21991 func (c *ProjectsLocationsLakesZonesCreateCall) ZoneId(zoneId string) *ProjectsLocationsLakesZonesCreateCall {
21992 c.urlParams_.Set("zoneId", zoneId)
21993 return c
21994 }
21995
21996
21997
21998
21999 func (c *ProjectsLocationsLakesZonesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesCreateCall {
22000 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22001 return c
22002 }
22003
22004
22005 func (c *ProjectsLocationsLakesZonesCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesCreateCall {
22006 c.ctx_ = ctx
22007 return c
22008 }
22009
22010
22011
22012 func (c *ProjectsLocationsLakesZonesCreateCall) Header() http.Header {
22013 if c.header_ == nil {
22014 c.header_ = make(http.Header)
22015 }
22016 return c.header_
22017 }
22018
22019 func (c *ProjectsLocationsLakesZonesCreateCall) doRequest(alt string) (*http.Response, error) {
22020 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22021 var body io.Reader = nil
22022 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1zone)
22023 if err != nil {
22024 return nil, err
22025 }
22026 c.urlParams_.Set("alt", alt)
22027 c.urlParams_.Set("prettyPrint", "false")
22028 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/zones")
22029 urls += "?" + c.urlParams_.Encode()
22030 req, err := http.NewRequest("POST", urls, body)
22031 if err != nil {
22032 return nil, err
22033 }
22034 req.Header = reqHeaders
22035 googleapi.Expand(req.URL, map[string]string{
22036 "parent": c.parent,
22037 })
22038 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22039 }
22040
22041
22042
22043
22044
22045
22046
22047 func (c *ProjectsLocationsLakesZonesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22048 gensupport.SetOptions(c.urlParams_, opts...)
22049 res, err := c.doRequest("json")
22050 if res != nil && res.StatusCode == http.StatusNotModified {
22051 if res.Body != nil {
22052 res.Body.Close()
22053 }
22054 return nil, gensupport.WrapError(&googleapi.Error{
22055 Code: res.StatusCode,
22056 Header: res.Header,
22057 })
22058 }
22059 if err != nil {
22060 return nil, err
22061 }
22062 defer googleapi.CloseBody(res)
22063 if err := googleapi.CheckResponse(res); err != nil {
22064 return nil, gensupport.WrapError(err)
22065 }
22066 ret := &GoogleLongrunningOperation{
22067 ServerResponse: googleapi.ServerResponse{
22068 Header: res.Header,
22069 HTTPStatusCode: res.StatusCode,
22070 },
22071 }
22072 target := &ret
22073 if err := gensupport.DecodeResponse(target, res); err != nil {
22074 return nil, err
22075 }
22076 return ret, nil
22077 }
22078
22079 type ProjectsLocationsLakesZonesDeleteCall struct {
22080 s *Service
22081 name string
22082 urlParams_ gensupport.URLParams
22083 ctx_ context.Context
22084 header_ http.Header
22085 }
22086
22087
22088
22089
22090
22091
22092
22093 func (r *ProjectsLocationsLakesZonesService) Delete(name string) *ProjectsLocationsLakesZonesDeleteCall {
22094 c := &ProjectsLocationsLakesZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22095 c.name = name
22096 return c
22097 }
22098
22099
22100
22101
22102 func (c *ProjectsLocationsLakesZonesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesDeleteCall {
22103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22104 return c
22105 }
22106
22107
22108 func (c *ProjectsLocationsLakesZonesDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesDeleteCall {
22109 c.ctx_ = ctx
22110 return c
22111 }
22112
22113
22114
22115 func (c *ProjectsLocationsLakesZonesDeleteCall) Header() http.Header {
22116 if c.header_ == nil {
22117 c.header_ = make(http.Header)
22118 }
22119 return c.header_
22120 }
22121
22122 func (c *ProjectsLocationsLakesZonesDeleteCall) doRequest(alt string) (*http.Response, error) {
22123 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22124 var body io.Reader = nil
22125 c.urlParams_.Set("alt", alt)
22126 c.urlParams_.Set("prettyPrint", "false")
22127 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22128 urls += "?" + c.urlParams_.Encode()
22129 req, err := http.NewRequest("DELETE", urls, body)
22130 if err != nil {
22131 return nil, err
22132 }
22133 req.Header = reqHeaders
22134 googleapi.Expand(req.URL, map[string]string{
22135 "name": c.name,
22136 })
22137 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22138 }
22139
22140
22141
22142
22143
22144
22145
22146 func (c *ProjectsLocationsLakesZonesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22147 gensupport.SetOptions(c.urlParams_, opts...)
22148 res, err := c.doRequest("json")
22149 if res != nil && res.StatusCode == http.StatusNotModified {
22150 if res.Body != nil {
22151 res.Body.Close()
22152 }
22153 return nil, gensupport.WrapError(&googleapi.Error{
22154 Code: res.StatusCode,
22155 Header: res.Header,
22156 })
22157 }
22158 if err != nil {
22159 return nil, err
22160 }
22161 defer googleapi.CloseBody(res)
22162 if err := googleapi.CheckResponse(res); err != nil {
22163 return nil, gensupport.WrapError(err)
22164 }
22165 ret := &GoogleLongrunningOperation{
22166 ServerResponse: googleapi.ServerResponse{
22167 Header: res.Header,
22168 HTTPStatusCode: res.StatusCode,
22169 },
22170 }
22171 target := &ret
22172 if err := gensupport.DecodeResponse(target, res); err != nil {
22173 return nil, err
22174 }
22175 return ret, nil
22176 }
22177
22178 type ProjectsLocationsLakesZonesGetCall struct {
22179 s *Service
22180 name string
22181 urlParams_ gensupport.URLParams
22182 ifNoneMatch_ string
22183 ctx_ context.Context
22184 header_ http.Header
22185 }
22186
22187
22188
22189
22190
22191
22192 func (r *ProjectsLocationsLakesZonesService) Get(name string) *ProjectsLocationsLakesZonesGetCall {
22193 c := &ProjectsLocationsLakesZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22194 c.name = name
22195 return c
22196 }
22197
22198
22199
22200
22201 func (c *ProjectsLocationsLakesZonesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesGetCall {
22202 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22203 return c
22204 }
22205
22206
22207
22208
22209 func (c *ProjectsLocationsLakesZonesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesGetCall {
22210 c.ifNoneMatch_ = entityTag
22211 return c
22212 }
22213
22214
22215 func (c *ProjectsLocationsLakesZonesGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesGetCall {
22216 c.ctx_ = ctx
22217 return c
22218 }
22219
22220
22221
22222 func (c *ProjectsLocationsLakesZonesGetCall) Header() http.Header {
22223 if c.header_ == nil {
22224 c.header_ = make(http.Header)
22225 }
22226 return c.header_
22227 }
22228
22229 func (c *ProjectsLocationsLakesZonesGetCall) doRequest(alt string) (*http.Response, error) {
22230 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22231 if c.ifNoneMatch_ != "" {
22232 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22233 }
22234 var body io.Reader = nil
22235 c.urlParams_.Set("alt", alt)
22236 c.urlParams_.Set("prettyPrint", "false")
22237 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22238 urls += "?" + c.urlParams_.Encode()
22239 req, err := http.NewRequest("GET", urls, body)
22240 if err != nil {
22241 return nil, err
22242 }
22243 req.Header = reqHeaders
22244 googleapi.Expand(req.URL, map[string]string{
22245 "name": c.name,
22246 })
22247 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22248 }
22249
22250
22251
22252
22253
22254
22255
22256 func (c *ProjectsLocationsLakesZonesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Zone, error) {
22257 gensupport.SetOptions(c.urlParams_, opts...)
22258 res, err := c.doRequest("json")
22259 if res != nil && res.StatusCode == http.StatusNotModified {
22260 if res.Body != nil {
22261 res.Body.Close()
22262 }
22263 return nil, gensupport.WrapError(&googleapi.Error{
22264 Code: res.StatusCode,
22265 Header: res.Header,
22266 })
22267 }
22268 if err != nil {
22269 return nil, err
22270 }
22271 defer googleapi.CloseBody(res)
22272 if err := googleapi.CheckResponse(res); err != nil {
22273 return nil, gensupport.WrapError(err)
22274 }
22275 ret := &GoogleCloudDataplexV1Zone{
22276 ServerResponse: googleapi.ServerResponse{
22277 Header: res.Header,
22278 HTTPStatusCode: res.StatusCode,
22279 },
22280 }
22281 target := &ret
22282 if err := gensupport.DecodeResponse(target, res); err != nil {
22283 return nil, err
22284 }
22285 return ret, nil
22286 }
22287
22288 type ProjectsLocationsLakesZonesGetIamPolicyCall struct {
22289 s *Service
22290 resource string
22291 urlParams_ gensupport.URLParams
22292 ifNoneMatch_ string
22293 ctx_ context.Context
22294 header_ http.Header
22295 }
22296
22297
22298
22299
22300
22301
22302
22303 func (r *ProjectsLocationsLakesZonesService) GetIamPolicy(resource string) *ProjectsLocationsLakesZonesGetIamPolicyCall {
22304 c := &ProjectsLocationsLakesZonesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22305 c.resource = resource
22306 return c
22307 }
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesZonesGetIamPolicyCall {
22322 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
22323 return c
22324 }
22325
22326
22327
22328
22329 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesGetIamPolicyCall {
22330 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22331 return c
22332 }
22333
22334
22335
22336
22337 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesGetIamPolicyCall {
22338 c.ifNoneMatch_ = entityTag
22339 return c
22340 }
22341
22342
22343 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesGetIamPolicyCall {
22344 c.ctx_ = ctx
22345 return c
22346 }
22347
22348
22349
22350 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Header() http.Header {
22351 if c.header_ == nil {
22352 c.header_ = make(http.Header)
22353 }
22354 return c.header_
22355 }
22356
22357 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
22358 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22359 if c.ifNoneMatch_ != "" {
22360 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22361 }
22362 var body io.Reader = nil
22363 c.urlParams_.Set("alt", alt)
22364 c.urlParams_.Set("prettyPrint", "false")
22365 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
22366 urls += "?" + c.urlParams_.Encode()
22367 req, err := http.NewRequest("GET", urls, body)
22368 if err != nil {
22369 return nil, err
22370 }
22371 req.Header = reqHeaders
22372 googleapi.Expand(req.URL, map[string]string{
22373 "resource": c.resource,
22374 })
22375 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22376 }
22377
22378
22379
22380
22381
22382
22383
22384 func (c *ProjectsLocationsLakesZonesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
22385 gensupport.SetOptions(c.urlParams_, opts...)
22386 res, err := c.doRequest("json")
22387 if res != nil && res.StatusCode == http.StatusNotModified {
22388 if res.Body != nil {
22389 res.Body.Close()
22390 }
22391 return nil, gensupport.WrapError(&googleapi.Error{
22392 Code: res.StatusCode,
22393 Header: res.Header,
22394 })
22395 }
22396 if err != nil {
22397 return nil, err
22398 }
22399 defer googleapi.CloseBody(res)
22400 if err := googleapi.CheckResponse(res); err != nil {
22401 return nil, gensupport.WrapError(err)
22402 }
22403 ret := &GoogleIamV1Policy{
22404 ServerResponse: googleapi.ServerResponse{
22405 Header: res.Header,
22406 HTTPStatusCode: res.StatusCode,
22407 },
22408 }
22409 target := &ret
22410 if err := gensupport.DecodeResponse(target, res); err != nil {
22411 return nil, err
22412 }
22413 return ret, nil
22414 }
22415
22416 type ProjectsLocationsLakesZonesListCall struct {
22417 s *Service
22418 parent string
22419 urlParams_ gensupport.URLParams
22420 ifNoneMatch_ string
22421 ctx_ context.Context
22422 header_ http.Header
22423 }
22424
22425
22426
22427
22428
22429 func (r *ProjectsLocationsLakesZonesService) List(parent string) *ProjectsLocationsLakesZonesListCall {
22430 c := &ProjectsLocationsLakesZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22431 c.parent = parent
22432 return c
22433 }
22434
22435
22436 func (c *ProjectsLocationsLakesZonesListCall) Filter(filter string) *ProjectsLocationsLakesZonesListCall {
22437 c.urlParams_.Set("filter", filter)
22438 return c
22439 }
22440
22441
22442
22443 func (c *ProjectsLocationsLakesZonesListCall) OrderBy(orderBy string) *ProjectsLocationsLakesZonesListCall {
22444 c.urlParams_.Set("orderBy", orderBy)
22445 return c
22446 }
22447
22448
22449
22450
22451
22452 func (c *ProjectsLocationsLakesZonesListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesListCall {
22453 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22454 return c
22455 }
22456
22457
22458
22459
22460
22461 func (c *ProjectsLocationsLakesZonesListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesListCall {
22462 c.urlParams_.Set("pageToken", pageToken)
22463 return c
22464 }
22465
22466
22467
22468
22469 func (c *ProjectsLocationsLakesZonesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesListCall {
22470 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22471 return c
22472 }
22473
22474
22475
22476
22477 func (c *ProjectsLocationsLakesZonesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesListCall {
22478 c.ifNoneMatch_ = entityTag
22479 return c
22480 }
22481
22482
22483 func (c *ProjectsLocationsLakesZonesListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesListCall {
22484 c.ctx_ = ctx
22485 return c
22486 }
22487
22488
22489
22490 func (c *ProjectsLocationsLakesZonesListCall) Header() http.Header {
22491 if c.header_ == nil {
22492 c.header_ = make(http.Header)
22493 }
22494 return c.header_
22495 }
22496
22497 func (c *ProjectsLocationsLakesZonesListCall) doRequest(alt string) (*http.Response, error) {
22498 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22499 if c.ifNoneMatch_ != "" {
22500 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22501 }
22502 var body io.Reader = nil
22503 c.urlParams_.Set("alt", alt)
22504 c.urlParams_.Set("prettyPrint", "false")
22505 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/zones")
22506 urls += "?" + c.urlParams_.Encode()
22507 req, err := http.NewRequest("GET", urls, body)
22508 if err != nil {
22509 return nil, err
22510 }
22511 req.Header = reqHeaders
22512 googleapi.Expand(req.URL, map[string]string{
22513 "parent": c.parent,
22514 })
22515 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22516 }
22517
22518
22519
22520
22521
22522
22523
22524 func (c *ProjectsLocationsLakesZonesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListZonesResponse, error) {
22525 gensupport.SetOptions(c.urlParams_, opts...)
22526 res, err := c.doRequest("json")
22527 if res != nil && res.StatusCode == http.StatusNotModified {
22528 if res.Body != nil {
22529 res.Body.Close()
22530 }
22531 return nil, gensupport.WrapError(&googleapi.Error{
22532 Code: res.StatusCode,
22533 Header: res.Header,
22534 })
22535 }
22536 if err != nil {
22537 return nil, err
22538 }
22539 defer googleapi.CloseBody(res)
22540 if err := googleapi.CheckResponse(res); err != nil {
22541 return nil, gensupport.WrapError(err)
22542 }
22543 ret := &GoogleCloudDataplexV1ListZonesResponse{
22544 ServerResponse: googleapi.ServerResponse{
22545 Header: res.Header,
22546 HTTPStatusCode: res.StatusCode,
22547 },
22548 }
22549 target := &ret
22550 if err := gensupport.DecodeResponse(target, res); err != nil {
22551 return nil, err
22552 }
22553 return ret, nil
22554 }
22555
22556
22557
22558
22559 func (c *ProjectsLocationsLakesZonesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListZonesResponse) error) error {
22560 c.ctx_ = ctx
22561 defer c.PageToken(c.urlParams_.Get("pageToken"))
22562 for {
22563 x, err := c.Do()
22564 if err != nil {
22565 return err
22566 }
22567 if err := f(x); err != nil {
22568 return err
22569 }
22570 if x.NextPageToken == "" {
22571 return nil
22572 }
22573 c.PageToken(x.NextPageToken)
22574 }
22575 }
22576
22577 type ProjectsLocationsLakesZonesPatchCall struct {
22578 s *Service
22579 name string
22580 googleclouddataplexv1zone *GoogleCloudDataplexV1Zone
22581 urlParams_ gensupport.URLParams
22582 ctx_ context.Context
22583 header_ http.Header
22584 }
22585
22586
22587
22588
22589
22590
22591 func (r *ProjectsLocationsLakesZonesService) Patch(name string, googleclouddataplexv1zone *GoogleCloudDataplexV1Zone) *ProjectsLocationsLakesZonesPatchCall {
22592 c := &ProjectsLocationsLakesZonesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22593 c.name = name
22594 c.googleclouddataplexv1zone = googleclouddataplexv1zone
22595 return c
22596 }
22597
22598
22599
22600 func (c *ProjectsLocationsLakesZonesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesZonesPatchCall {
22601 c.urlParams_.Set("updateMask", updateMask)
22602 return c
22603 }
22604
22605
22606
22607 func (c *ProjectsLocationsLakesZonesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesPatchCall {
22608 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
22609 return c
22610 }
22611
22612
22613
22614
22615 func (c *ProjectsLocationsLakesZonesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesPatchCall {
22616 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22617 return c
22618 }
22619
22620
22621 func (c *ProjectsLocationsLakesZonesPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesPatchCall {
22622 c.ctx_ = ctx
22623 return c
22624 }
22625
22626
22627
22628 func (c *ProjectsLocationsLakesZonesPatchCall) Header() http.Header {
22629 if c.header_ == nil {
22630 c.header_ = make(http.Header)
22631 }
22632 return c.header_
22633 }
22634
22635 func (c *ProjectsLocationsLakesZonesPatchCall) doRequest(alt string) (*http.Response, error) {
22636 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22637 var body io.Reader = nil
22638 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1zone)
22639 if err != nil {
22640 return nil, err
22641 }
22642 c.urlParams_.Set("alt", alt)
22643 c.urlParams_.Set("prettyPrint", "false")
22644 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22645 urls += "?" + c.urlParams_.Encode()
22646 req, err := http.NewRequest("PATCH", urls, body)
22647 if err != nil {
22648 return nil, err
22649 }
22650 req.Header = reqHeaders
22651 googleapi.Expand(req.URL, map[string]string{
22652 "name": c.name,
22653 })
22654 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22655 }
22656
22657
22658
22659
22660
22661
22662
22663 func (c *ProjectsLocationsLakesZonesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22664 gensupport.SetOptions(c.urlParams_, opts...)
22665 res, err := c.doRequest("json")
22666 if res != nil && res.StatusCode == http.StatusNotModified {
22667 if res.Body != nil {
22668 res.Body.Close()
22669 }
22670 return nil, gensupport.WrapError(&googleapi.Error{
22671 Code: res.StatusCode,
22672 Header: res.Header,
22673 })
22674 }
22675 if err != nil {
22676 return nil, err
22677 }
22678 defer googleapi.CloseBody(res)
22679 if err := googleapi.CheckResponse(res); err != nil {
22680 return nil, gensupport.WrapError(err)
22681 }
22682 ret := &GoogleLongrunningOperation{
22683 ServerResponse: googleapi.ServerResponse{
22684 Header: res.Header,
22685 HTTPStatusCode: res.StatusCode,
22686 },
22687 }
22688 target := &ret
22689 if err := gensupport.DecodeResponse(target, res); err != nil {
22690 return nil, err
22691 }
22692 return ret, nil
22693 }
22694
22695 type ProjectsLocationsLakesZonesSetIamPolicyCall struct {
22696 s *Service
22697 resource string
22698 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
22699 urlParams_ gensupport.URLParams
22700 ctx_ context.Context
22701 header_ http.Header
22702 }
22703
22704
22705
22706
22707
22708
22709
22710
22711 func (r *ProjectsLocationsLakesZonesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesZonesSetIamPolicyCall {
22712 c := &ProjectsLocationsLakesZonesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22713 c.resource = resource
22714 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
22715 return c
22716 }
22717
22718
22719
22720
22721 func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesSetIamPolicyCall {
22722 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22723 return c
22724 }
22725
22726
22727 func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesSetIamPolicyCall {
22728 c.ctx_ = ctx
22729 return c
22730 }
22731
22732
22733
22734 func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Header() http.Header {
22735 if c.header_ == nil {
22736 c.header_ = make(http.Header)
22737 }
22738 return c.header_
22739 }
22740
22741 func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
22742 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22743 var body io.Reader = nil
22744 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
22745 if err != nil {
22746 return nil, err
22747 }
22748 c.urlParams_.Set("alt", alt)
22749 c.urlParams_.Set("prettyPrint", "false")
22750 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
22751 urls += "?" + c.urlParams_.Encode()
22752 req, err := http.NewRequest("POST", urls, body)
22753 if err != nil {
22754 return nil, err
22755 }
22756 req.Header = reqHeaders
22757 googleapi.Expand(req.URL, map[string]string{
22758 "resource": c.resource,
22759 })
22760 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22761 }
22762
22763
22764
22765
22766
22767
22768
22769 func (c *ProjectsLocationsLakesZonesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
22770 gensupport.SetOptions(c.urlParams_, opts...)
22771 res, err := c.doRequest("json")
22772 if res != nil && res.StatusCode == http.StatusNotModified {
22773 if res.Body != nil {
22774 res.Body.Close()
22775 }
22776 return nil, gensupport.WrapError(&googleapi.Error{
22777 Code: res.StatusCode,
22778 Header: res.Header,
22779 })
22780 }
22781 if err != nil {
22782 return nil, err
22783 }
22784 defer googleapi.CloseBody(res)
22785 if err := googleapi.CheckResponse(res); err != nil {
22786 return nil, gensupport.WrapError(err)
22787 }
22788 ret := &GoogleIamV1Policy{
22789 ServerResponse: googleapi.ServerResponse{
22790 Header: res.Header,
22791 HTTPStatusCode: res.StatusCode,
22792 },
22793 }
22794 target := &ret
22795 if err := gensupport.DecodeResponse(target, res); err != nil {
22796 return nil, err
22797 }
22798 return ret, nil
22799 }
22800
22801 type ProjectsLocationsLakesZonesTestIamPermissionsCall struct {
22802 s *Service
22803 resource string
22804 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
22805 urlParams_ gensupport.URLParams
22806 ctx_ context.Context
22807 header_ http.Header
22808 }
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820 func (r *ProjectsLocationsLakesZonesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesZonesTestIamPermissionsCall {
22821 c := &ProjectsLocationsLakesZonesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22822 c.resource = resource
22823 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
22824 return c
22825 }
22826
22827
22828
22829
22830 func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesTestIamPermissionsCall {
22831 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22832 return c
22833 }
22834
22835
22836 func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesTestIamPermissionsCall {
22837 c.ctx_ = ctx
22838 return c
22839 }
22840
22841
22842
22843 func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Header() http.Header {
22844 if c.header_ == nil {
22845 c.header_ = make(http.Header)
22846 }
22847 return c.header_
22848 }
22849
22850 func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
22851 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22852 var body io.Reader = nil
22853 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
22854 if err != nil {
22855 return nil, err
22856 }
22857 c.urlParams_.Set("alt", alt)
22858 c.urlParams_.Set("prettyPrint", "false")
22859 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
22860 urls += "?" + c.urlParams_.Encode()
22861 req, err := http.NewRequest("POST", urls, body)
22862 if err != nil {
22863 return nil, err
22864 }
22865 req.Header = reqHeaders
22866 googleapi.Expand(req.URL, map[string]string{
22867 "resource": c.resource,
22868 })
22869 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22870 }
22871
22872
22873
22874
22875
22876
22877
22878 func (c *ProjectsLocationsLakesZonesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
22879 gensupport.SetOptions(c.urlParams_, opts...)
22880 res, err := c.doRequest("json")
22881 if res != nil && res.StatusCode == http.StatusNotModified {
22882 if res.Body != nil {
22883 res.Body.Close()
22884 }
22885 return nil, gensupport.WrapError(&googleapi.Error{
22886 Code: res.StatusCode,
22887 Header: res.Header,
22888 })
22889 }
22890 if err != nil {
22891 return nil, err
22892 }
22893 defer googleapi.CloseBody(res)
22894 if err := googleapi.CheckResponse(res); err != nil {
22895 return nil, gensupport.WrapError(err)
22896 }
22897 ret := &GoogleIamV1TestIamPermissionsResponse{
22898 ServerResponse: googleapi.ServerResponse{
22899 Header: res.Header,
22900 HTTPStatusCode: res.StatusCode,
22901 },
22902 }
22903 target := &ret
22904 if err := gensupport.DecodeResponse(target, res); err != nil {
22905 return nil, err
22906 }
22907 return ret, nil
22908 }
22909
22910 type ProjectsLocationsLakesZonesActionsListCall struct {
22911 s *Service
22912 parent string
22913 urlParams_ gensupport.URLParams
22914 ifNoneMatch_ string
22915 ctx_ context.Context
22916 header_ http.Header
22917 }
22918
22919
22920
22921
22922
22923
22924 func (r *ProjectsLocationsLakesZonesActionsService) List(parent string) *ProjectsLocationsLakesZonesActionsListCall {
22925 c := &ProjectsLocationsLakesZonesActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22926 c.parent = parent
22927 return c
22928 }
22929
22930
22931
22932
22933
22934 func (c *ProjectsLocationsLakesZonesActionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesActionsListCall {
22935 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22936 return c
22937 }
22938
22939
22940
22941
22942
22943 func (c *ProjectsLocationsLakesZonesActionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesActionsListCall {
22944 c.urlParams_.Set("pageToken", pageToken)
22945 return c
22946 }
22947
22948
22949
22950
22951 func (c *ProjectsLocationsLakesZonesActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesActionsListCall {
22952 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22953 return c
22954 }
22955
22956
22957
22958
22959 func (c *ProjectsLocationsLakesZonesActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesActionsListCall {
22960 c.ifNoneMatch_ = entityTag
22961 return c
22962 }
22963
22964
22965 func (c *ProjectsLocationsLakesZonesActionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesActionsListCall {
22966 c.ctx_ = ctx
22967 return c
22968 }
22969
22970
22971
22972 func (c *ProjectsLocationsLakesZonesActionsListCall) Header() http.Header {
22973 if c.header_ == nil {
22974 c.header_ = make(http.Header)
22975 }
22976 return c.header_
22977 }
22978
22979 func (c *ProjectsLocationsLakesZonesActionsListCall) doRequest(alt string) (*http.Response, error) {
22980 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22981 if c.ifNoneMatch_ != "" {
22982 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22983 }
22984 var body io.Reader = nil
22985 c.urlParams_.Set("alt", alt)
22986 c.urlParams_.Set("prettyPrint", "false")
22987 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/actions")
22988 urls += "?" + c.urlParams_.Encode()
22989 req, err := http.NewRequest("GET", urls, body)
22990 if err != nil {
22991 return nil, err
22992 }
22993 req.Header = reqHeaders
22994 googleapi.Expand(req.URL, map[string]string{
22995 "parent": c.parent,
22996 })
22997 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22998 }
22999
23000
23001
23002
23003
23004
23005
23006 func (c *ProjectsLocationsLakesZonesActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListActionsResponse, error) {
23007 gensupport.SetOptions(c.urlParams_, opts...)
23008 res, err := c.doRequest("json")
23009 if res != nil && res.StatusCode == http.StatusNotModified {
23010 if res.Body != nil {
23011 res.Body.Close()
23012 }
23013 return nil, gensupport.WrapError(&googleapi.Error{
23014 Code: res.StatusCode,
23015 Header: res.Header,
23016 })
23017 }
23018 if err != nil {
23019 return nil, err
23020 }
23021 defer googleapi.CloseBody(res)
23022 if err := googleapi.CheckResponse(res); err != nil {
23023 return nil, gensupport.WrapError(err)
23024 }
23025 ret := &GoogleCloudDataplexV1ListActionsResponse{
23026 ServerResponse: googleapi.ServerResponse{
23027 Header: res.Header,
23028 HTTPStatusCode: res.StatusCode,
23029 },
23030 }
23031 target := &ret
23032 if err := gensupport.DecodeResponse(target, res); err != nil {
23033 return nil, err
23034 }
23035 return ret, nil
23036 }
23037
23038
23039
23040
23041 func (c *ProjectsLocationsLakesZonesActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListActionsResponse) error) error {
23042 c.ctx_ = ctx
23043 defer c.PageToken(c.urlParams_.Get("pageToken"))
23044 for {
23045 x, err := c.Do()
23046 if err != nil {
23047 return err
23048 }
23049 if err := f(x); err != nil {
23050 return err
23051 }
23052 if x.NextPageToken == "" {
23053 return nil
23054 }
23055 c.PageToken(x.NextPageToken)
23056 }
23057 }
23058
23059 type ProjectsLocationsLakesZonesAssetsCreateCall struct {
23060 s *Service
23061 parent string
23062 googleclouddataplexv1asset *GoogleCloudDataplexV1Asset
23063 urlParams_ gensupport.URLParams
23064 ctx_ context.Context
23065 header_ http.Header
23066 }
23067
23068
23069
23070
23071
23072
23073 func (r *ProjectsLocationsLakesZonesAssetsService) Create(parent string, googleclouddataplexv1asset *GoogleCloudDataplexV1Asset) *ProjectsLocationsLakesZonesAssetsCreateCall {
23074 c := &ProjectsLocationsLakesZonesAssetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23075 c.parent = parent
23076 c.googleclouddataplexv1asset = googleclouddataplexv1asset
23077 return c
23078 }
23079
23080
23081
23082
23083
23084
23085
23086 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) AssetId(assetId string) *ProjectsLocationsLakesZonesAssetsCreateCall {
23087 c.urlParams_.Set("assetId", assetId)
23088 return c
23089 }
23090
23091
23092
23093 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesAssetsCreateCall {
23094 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
23095 return c
23096 }
23097
23098
23099
23100
23101 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsCreateCall {
23102 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23103 return c
23104 }
23105
23106
23107 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsCreateCall {
23108 c.ctx_ = ctx
23109 return c
23110 }
23111
23112
23113
23114 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Header() http.Header {
23115 if c.header_ == nil {
23116 c.header_ = make(http.Header)
23117 }
23118 return c.header_
23119 }
23120
23121 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) doRequest(alt string) (*http.Response, error) {
23122 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23123 var body io.Reader = nil
23124 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1asset)
23125 if err != nil {
23126 return nil, err
23127 }
23128 c.urlParams_.Set("alt", alt)
23129 c.urlParams_.Set("prettyPrint", "false")
23130 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets")
23131 urls += "?" + c.urlParams_.Encode()
23132 req, err := http.NewRequest("POST", urls, body)
23133 if err != nil {
23134 return nil, err
23135 }
23136 req.Header = reqHeaders
23137 googleapi.Expand(req.URL, map[string]string{
23138 "parent": c.parent,
23139 })
23140 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23141 }
23142
23143
23144
23145
23146
23147
23148
23149 func (c *ProjectsLocationsLakesZonesAssetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23150 gensupport.SetOptions(c.urlParams_, opts...)
23151 res, err := c.doRequest("json")
23152 if res != nil && res.StatusCode == http.StatusNotModified {
23153 if res.Body != nil {
23154 res.Body.Close()
23155 }
23156 return nil, gensupport.WrapError(&googleapi.Error{
23157 Code: res.StatusCode,
23158 Header: res.Header,
23159 })
23160 }
23161 if err != nil {
23162 return nil, err
23163 }
23164 defer googleapi.CloseBody(res)
23165 if err := googleapi.CheckResponse(res); err != nil {
23166 return nil, gensupport.WrapError(err)
23167 }
23168 ret := &GoogleLongrunningOperation{
23169 ServerResponse: googleapi.ServerResponse{
23170 Header: res.Header,
23171 HTTPStatusCode: res.StatusCode,
23172 },
23173 }
23174 target := &ret
23175 if err := gensupport.DecodeResponse(target, res); err != nil {
23176 return nil, err
23177 }
23178 return ret, nil
23179 }
23180
23181 type ProjectsLocationsLakesZonesAssetsDeleteCall struct {
23182 s *Service
23183 name string
23184 urlParams_ gensupport.URLParams
23185 ctx_ context.Context
23186 header_ http.Header
23187 }
23188
23189
23190
23191
23192
23193
23194
23195 func (r *ProjectsLocationsLakesZonesAssetsService) Delete(name string) *ProjectsLocationsLakesZonesAssetsDeleteCall {
23196 c := &ProjectsLocationsLakesZonesAssetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23197 c.name = name
23198 return c
23199 }
23200
23201
23202
23203
23204 func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsDeleteCall {
23205 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23206 return c
23207 }
23208
23209
23210 func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsDeleteCall {
23211 c.ctx_ = ctx
23212 return c
23213 }
23214
23215
23216
23217 func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Header() http.Header {
23218 if c.header_ == nil {
23219 c.header_ = make(http.Header)
23220 }
23221 return c.header_
23222 }
23223
23224 func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) doRequest(alt string) (*http.Response, error) {
23225 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23226 var body io.Reader = nil
23227 c.urlParams_.Set("alt", alt)
23228 c.urlParams_.Set("prettyPrint", "false")
23229 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23230 urls += "?" + c.urlParams_.Encode()
23231 req, err := http.NewRequest("DELETE", urls, body)
23232 if err != nil {
23233 return nil, err
23234 }
23235 req.Header = reqHeaders
23236 googleapi.Expand(req.URL, map[string]string{
23237 "name": c.name,
23238 })
23239 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23240 }
23241
23242
23243
23244
23245
23246
23247
23248 func (c *ProjectsLocationsLakesZonesAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23249 gensupport.SetOptions(c.urlParams_, opts...)
23250 res, err := c.doRequest("json")
23251 if res != nil && res.StatusCode == http.StatusNotModified {
23252 if res.Body != nil {
23253 res.Body.Close()
23254 }
23255 return nil, gensupport.WrapError(&googleapi.Error{
23256 Code: res.StatusCode,
23257 Header: res.Header,
23258 })
23259 }
23260 if err != nil {
23261 return nil, err
23262 }
23263 defer googleapi.CloseBody(res)
23264 if err := googleapi.CheckResponse(res); err != nil {
23265 return nil, gensupport.WrapError(err)
23266 }
23267 ret := &GoogleLongrunningOperation{
23268 ServerResponse: googleapi.ServerResponse{
23269 Header: res.Header,
23270 HTTPStatusCode: res.StatusCode,
23271 },
23272 }
23273 target := &ret
23274 if err := gensupport.DecodeResponse(target, res); err != nil {
23275 return nil, err
23276 }
23277 return ret, nil
23278 }
23279
23280 type ProjectsLocationsLakesZonesAssetsGetCall struct {
23281 s *Service
23282 name string
23283 urlParams_ gensupport.URLParams
23284 ifNoneMatch_ string
23285 ctx_ context.Context
23286 header_ http.Header
23287 }
23288
23289
23290
23291
23292
23293
23294 func (r *ProjectsLocationsLakesZonesAssetsService) Get(name string) *ProjectsLocationsLakesZonesAssetsGetCall {
23295 c := &ProjectsLocationsLakesZonesAssetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23296 c.name = name
23297 return c
23298 }
23299
23300
23301
23302
23303 func (c *ProjectsLocationsLakesZonesAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsGetCall {
23304 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23305 return c
23306 }
23307
23308
23309
23310
23311 func (c *ProjectsLocationsLakesZonesAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsGetCall {
23312 c.ifNoneMatch_ = entityTag
23313 return c
23314 }
23315
23316
23317 func (c *ProjectsLocationsLakesZonesAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsGetCall {
23318 c.ctx_ = ctx
23319 return c
23320 }
23321
23322
23323
23324 func (c *ProjectsLocationsLakesZonesAssetsGetCall) Header() http.Header {
23325 if c.header_ == nil {
23326 c.header_ = make(http.Header)
23327 }
23328 return c.header_
23329 }
23330
23331 func (c *ProjectsLocationsLakesZonesAssetsGetCall) doRequest(alt string) (*http.Response, error) {
23332 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23333 if c.ifNoneMatch_ != "" {
23334 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23335 }
23336 var body io.Reader = nil
23337 c.urlParams_.Set("alt", alt)
23338 c.urlParams_.Set("prettyPrint", "false")
23339 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23340 urls += "?" + c.urlParams_.Encode()
23341 req, err := http.NewRequest("GET", urls, body)
23342 if err != nil {
23343 return nil, err
23344 }
23345 req.Header = reqHeaders
23346 googleapi.Expand(req.URL, map[string]string{
23347 "name": c.name,
23348 })
23349 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23350 }
23351
23352
23353
23354
23355
23356
23357
23358 func (c *ProjectsLocationsLakesZonesAssetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Asset, error) {
23359 gensupport.SetOptions(c.urlParams_, opts...)
23360 res, err := c.doRequest("json")
23361 if res != nil && res.StatusCode == http.StatusNotModified {
23362 if res.Body != nil {
23363 res.Body.Close()
23364 }
23365 return nil, gensupport.WrapError(&googleapi.Error{
23366 Code: res.StatusCode,
23367 Header: res.Header,
23368 })
23369 }
23370 if err != nil {
23371 return nil, err
23372 }
23373 defer googleapi.CloseBody(res)
23374 if err := googleapi.CheckResponse(res); err != nil {
23375 return nil, gensupport.WrapError(err)
23376 }
23377 ret := &GoogleCloudDataplexV1Asset{
23378 ServerResponse: googleapi.ServerResponse{
23379 Header: res.Header,
23380 HTTPStatusCode: res.StatusCode,
23381 },
23382 }
23383 target := &ret
23384 if err := gensupport.DecodeResponse(target, res); err != nil {
23385 return nil, err
23386 }
23387 return ret, nil
23388 }
23389
23390 type ProjectsLocationsLakesZonesAssetsGetIamPolicyCall struct {
23391 s *Service
23392 resource string
23393 urlParams_ gensupport.URLParams
23394 ifNoneMatch_ string
23395 ctx_ context.Context
23396 header_ http.Header
23397 }
23398
23399
23400
23401
23402
23403
23404
23405 func (r *ProjectsLocationsLakesZonesAssetsService) GetIamPolicy(resource string) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
23406 c := &ProjectsLocationsLakesZonesAssetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23407 c.resource = resource
23408 return c
23409 }
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
23424 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
23425 return c
23426 }
23427
23428
23429
23430
23431 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
23432 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23433 return c
23434 }
23435
23436
23437
23438
23439 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
23440 c.ifNoneMatch_ = entityTag
23441 return c
23442 }
23443
23444
23445 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall {
23446 c.ctx_ = ctx
23447 return c
23448 }
23449
23450
23451
23452 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Header() http.Header {
23453 if c.header_ == nil {
23454 c.header_ = make(http.Header)
23455 }
23456 return c.header_
23457 }
23458
23459 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
23460 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23461 if c.ifNoneMatch_ != "" {
23462 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23463 }
23464 var body io.Reader = nil
23465 c.urlParams_.Set("alt", alt)
23466 c.urlParams_.Set("prettyPrint", "false")
23467 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
23468 urls += "?" + c.urlParams_.Encode()
23469 req, err := http.NewRequest("GET", urls, body)
23470 if err != nil {
23471 return nil, err
23472 }
23473 req.Header = reqHeaders
23474 googleapi.Expand(req.URL, map[string]string{
23475 "resource": c.resource,
23476 })
23477 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23478 }
23479
23480
23481
23482
23483
23484
23485
23486 func (c *ProjectsLocationsLakesZonesAssetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
23487 gensupport.SetOptions(c.urlParams_, opts...)
23488 res, err := c.doRequest("json")
23489 if res != nil && res.StatusCode == http.StatusNotModified {
23490 if res.Body != nil {
23491 res.Body.Close()
23492 }
23493 return nil, gensupport.WrapError(&googleapi.Error{
23494 Code: res.StatusCode,
23495 Header: res.Header,
23496 })
23497 }
23498 if err != nil {
23499 return nil, err
23500 }
23501 defer googleapi.CloseBody(res)
23502 if err := googleapi.CheckResponse(res); err != nil {
23503 return nil, gensupport.WrapError(err)
23504 }
23505 ret := &GoogleIamV1Policy{
23506 ServerResponse: googleapi.ServerResponse{
23507 Header: res.Header,
23508 HTTPStatusCode: res.StatusCode,
23509 },
23510 }
23511 target := &ret
23512 if err := gensupport.DecodeResponse(target, res); err != nil {
23513 return nil, err
23514 }
23515 return ret, nil
23516 }
23517
23518 type ProjectsLocationsLakesZonesAssetsListCall struct {
23519 s *Service
23520 parent string
23521 urlParams_ gensupport.URLParams
23522 ifNoneMatch_ string
23523 ctx_ context.Context
23524 header_ http.Header
23525 }
23526
23527
23528
23529
23530
23531
23532 func (r *ProjectsLocationsLakesZonesAssetsService) List(parent string) *ProjectsLocationsLakesZonesAssetsListCall {
23533 c := &ProjectsLocationsLakesZonesAssetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23534 c.parent = parent
23535 return c
23536 }
23537
23538
23539 func (c *ProjectsLocationsLakesZonesAssetsListCall) Filter(filter string) *ProjectsLocationsLakesZonesAssetsListCall {
23540 c.urlParams_.Set("filter", filter)
23541 return c
23542 }
23543
23544
23545
23546 func (c *ProjectsLocationsLakesZonesAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsLakesZonesAssetsListCall {
23547 c.urlParams_.Set("orderBy", orderBy)
23548 return c
23549 }
23550
23551
23552
23553
23554
23555 func (c *ProjectsLocationsLakesZonesAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesAssetsListCall {
23556 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23557 return c
23558 }
23559
23560
23561
23562
23563
23564 func (c *ProjectsLocationsLakesZonesAssetsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesAssetsListCall {
23565 c.urlParams_.Set("pageToken", pageToken)
23566 return c
23567 }
23568
23569
23570
23571
23572 func (c *ProjectsLocationsLakesZonesAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsListCall {
23573 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23574 return c
23575 }
23576
23577
23578
23579
23580 func (c *ProjectsLocationsLakesZonesAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsListCall {
23581 c.ifNoneMatch_ = entityTag
23582 return c
23583 }
23584
23585
23586 func (c *ProjectsLocationsLakesZonesAssetsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsListCall {
23587 c.ctx_ = ctx
23588 return c
23589 }
23590
23591
23592
23593 func (c *ProjectsLocationsLakesZonesAssetsListCall) Header() http.Header {
23594 if c.header_ == nil {
23595 c.header_ = make(http.Header)
23596 }
23597 return c.header_
23598 }
23599
23600 func (c *ProjectsLocationsLakesZonesAssetsListCall) doRequest(alt string) (*http.Response, error) {
23601 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23602 if c.ifNoneMatch_ != "" {
23603 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23604 }
23605 var body io.Reader = nil
23606 c.urlParams_.Set("alt", alt)
23607 c.urlParams_.Set("prettyPrint", "false")
23608 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/assets")
23609 urls += "?" + c.urlParams_.Encode()
23610 req, err := http.NewRequest("GET", urls, body)
23611 if err != nil {
23612 return nil, err
23613 }
23614 req.Header = reqHeaders
23615 googleapi.Expand(req.URL, map[string]string{
23616 "parent": c.parent,
23617 })
23618 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23619 }
23620
23621
23622
23623
23624
23625
23626
23627 func (c *ProjectsLocationsLakesZonesAssetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListAssetsResponse, error) {
23628 gensupport.SetOptions(c.urlParams_, opts...)
23629 res, err := c.doRequest("json")
23630 if res != nil && res.StatusCode == http.StatusNotModified {
23631 if res.Body != nil {
23632 res.Body.Close()
23633 }
23634 return nil, gensupport.WrapError(&googleapi.Error{
23635 Code: res.StatusCode,
23636 Header: res.Header,
23637 })
23638 }
23639 if err != nil {
23640 return nil, err
23641 }
23642 defer googleapi.CloseBody(res)
23643 if err := googleapi.CheckResponse(res); err != nil {
23644 return nil, gensupport.WrapError(err)
23645 }
23646 ret := &GoogleCloudDataplexV1ListAssetsResponse{
23647 ServerResponse: googleapi.ServerResponse{
23648 Header: res.Header,
23649 HTTPStatusCode: res.StatusCode,
23650 },
23651 }
23652 target := &ret
23653 if err := gensupport.DecodeResponse(target, res); err != nil {
23654 return nil, err
23655 }
23656 return ret, nil
23657 }
23658
23659
23660
23661
23662 func (c *ProjectsLocationsLakesZonesAssetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListAssetsResponse) error) error {
23663 c.ctx_ = ctx
23664 defer c.PageToken(c.urlParams_.Get("pageToken"))
23665 for {
23666 x, err := c.Do()
23667 if err != nil {
23668 return err
23669 }
23670 if err := f(x); err != nil {
23671 return err
23672 }
23673 if x.NextPageToken == "" {
23674 return nil
23675 }
23676 c.PageToken(x.NextPageToken)
23677 }
23678 }
23679
23680 type ProjectsLocationsLakesZonesAssetsPatchCall struct {
23681 s *Service
23682 name string
23683 googleclouddataplexv1asset *GoogleCloudDataplexV1Asset
23684 urlParams_ gensupport.URLParams
23685 ctx_ context.Context
23686 header_ http.Header
23687 }
23688
23689
23690
23691
23692
23693
23694 func (r *ProjectsLocationsLakesZonesAssetsService) Patch(name string, googleclouddataplexv1asset *GoogleCloudDataplexV1Asset) *ProjectsLocationsLakesZonesAssetsPatchCall {
23695 c := &ProjectsLocationsLakesZonesAssetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23696 c.name = name
23697 c.googleclouddataplexv1asset = googleclouddataplexv1asset
23698 return c
23699 }
23700
23701
23702
23703 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLakesZonesAssetsPatchCall {
23704 c.urlParams_.Set("updateMask", updateMask)
23705 return c
23706 }
23707
23708
23709
23710 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesAssetsPatchCall {
23711 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
23712 return c
23713 }
23714
23715
23716
23717
23718 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsPatchCall {
23719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23720 return c
23721 }
23722
23723
23724 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsPatchCall {
23725 c.ctx_ = ctx
23726 return c
23727 }
23728
23729
23730
23731 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Header() http.Header {
23732 if c.header_ == nil {
23733 c.header_ = make(http.Header)
23734 }
23735 return c.header_
23736 }
23737
23738 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) doRequest(alt string) (*http.Response, error) {
23739 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23740 var body io.Reader = nil
23741 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1asset)
23742 if err != nil {
23743 return nil, err
23744 }
23745 c.urlParams_.Set("alt", alt)
23746 c.urlParams_.Set("prettyPrint", "false")
23747 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23748 urls += "?" + c.urlParams_.Encode()
23749 req, err := http.NewRequest("PATCH", urls, body)
23750 if err != nil {
23751 return nil, err
23752 }
23753 req.Header = reqHeaders
23754 googleapi.Expand(req.URL, map[string]string{
23755 "name": c.name,
23756 })
23757 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23758 }
23759
23760
23761
23762
23763
23764
23765
23766 func (c *ProjectsLocationsLakesZonesAssetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23767 gensupport.SetOptions(c.urlParams_, opts...)
23768 res, err := c.doRequest("json")
23769 if res != nil && res.StatusCode == http.StatusNotModified {
23770 if res.Body != nil {
23771 res.Body.Close()
23772 }
23773 return nil, gensupport.WrapError(&googleapi.Error{
23774 Code: res.StatusCode,
23775 Header: res.Header,
23776 })
23777 }
23778 if err != nil {
23779 return nil, err
23780 }
23781 defer googleapi.CloseBody(res)
23782 if err := googleapi.CheckResponse(res); err != nil {
23783 return nil, gensupport.WrapError(err)
23784 }
23785 ret := &GoogleLongrunningOperation{
23786 ServerResponse: googleapi.ServerResponse{
23787 Header: res.Header,
23788 HTTPStatusCode: res.StatusCode,
23789 },
23790 }
23791 target := &ret
23792 if err := gensupport.DecodeResponse(target, res); err != nil {
23793 return nil, err
23794 }
23795 return ret, nil
23796 }
23797
23798 type ProjectsLocationsLakesZonesAssetsSetIamPolicyCall struct {
23799 s *Service
23800 resource string
23801 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
23802 urlParams_ gensupport.URLParams
23803 ctx_ context.Context
23804 header_ http.Header
23805 }
23806
23807
23808
23809
23810
23811
23812
23813
23814 func (r *ProjectsLocationsLakesZonesAssetsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall {
23815 c := &ProjectsLocationsLakesZonesAssetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23816 c.resource = resource
23817 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
23818 return c
23819 }
23820
23821
23822
23823
23824 func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall {
23825 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23826 return c
23827 }
23828
23829
23830 func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall {
23831 c.ctx_ = ctx
23832 return c
23833 }
23834
23835
23836
23837 func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Header() http.Header {
23838 if c.header_ == nil {
23839 c.header_ = make(http.Header)
23840 }
23841 return c.header_
23842 }
23843
23844 func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
23845 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23846 var body io.Reader = nil
23847 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
23848 if err != nil {
23849 return nil, err
23850 }
23851 c.urlParams_.Set("alt", alt)
23852 c.urlParams_.Set("prettyPrint", "false")
23853 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
23854 urls += "?" + c.urlParams_.Encode()
23855 req, err := http.NewRequest("POST", urls, body)
23856 if err != nil {
23857 return nil, err
23858 }
23859 req.Header = reqHeaders
23860 googleapi.Expand(req.URL, map[string]string{
23861 "resource": c.resource,
23862 })
23863 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23864 }
23865
23866
23867
23868
23869
23870
23871
23872 func (c *ProjectsLocationsLakesZonesAssetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
23873 gensupport.SetOptions(c.urlParams_, opts...)
23874 res, err := c.doRequest("json")
23875 if res != nil && res.StatusCode == http.StatusNotModified {
23876 if res.Body != nil {
23877 res.Body.Close()
23878 }
23879 return nil, gensupport.WrapError(&googleapi.Error{
23880 Code: res.StatusCode,
23881 Header: res.Header,
23882 })
23883 }
23884 if err != nil {
23885 return nil, err
23886 }
23887 defer googleapi.CloseBody(res)
23888 if err := googleapi.CheckResponse(res); err != nil {
23889 return nil, gensupport.WrapError(err)
23890 }
23891 ret := &GoogleIamV1Policy{
23892 ServerResponse: googleapi.ServerResponse{
23893 Header: res.Header,
23894 HTTPStatusCode: res.StatusCode,
23895 },
23896 }
23897 target := &ret
23898 if err := gensupport.DecodeResponse(target, res); err != nil {
23899 return nil, err
23900 }
23901 return ret, nil
23902 }
23903
23904 type ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall struct {
23905 s *Service
23906 resource string
23907 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
23908 urlParams_ gensupport.URLParams
23909 ctx_ context.Context
23910 header_ http.Header
23911 }
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923 func (r *ProjectsLocationsLakesZonesAssetsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall {
23924 c := &ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23925 c.resource = resource
23926 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
23927 return c
23928 }
23929
23930
23931
23932
23933 func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall {
23934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23935 return c
23936 }
23937
23938
23939 func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall {
23940 c.ctx_ = ctx
23941 return c
23942 }
23943
23944
23945
23946 func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Header() http.Header {
23947 if c.header_ == nil {
23948 c.header_ = make(http.Header)
23949 }
23950 return c.header_
23951 }
23952
23953 func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
23954 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23955 var body io.Reader = nil
23956 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
23957 if err != nil {
23958 return nil, err
23959 }
23960 c.urlParams_.Set("alt", alt)
23961 c.urlParams_.Set("prettyPrint", "false")
23962 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
23963 urls += "?" + c.urlParams_.Encode()
23964 req, err := http.NewRequest("POST", urls, body)
23965 if err != nil {
23966 return nil, err
23967 }
23968 req.Header = reqHeaders
23969 googleapi.Expand(req.URL, map[string]string{
23970 "resource": c.resource,
23971 })
23972 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23973 }
23974
23975
23976
23977
23978
23979
23980
23981 func (c *ProjectsLocationsLakesZonesAssetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
23982 gensupport.SetOptions(c.urlParams_, opts...)
23983 res, err := c.doRequest("json")
23984 if res != nil && res.StatusCode == http.StatusNotModified {
23985 if res.Body != nil {
23986 res.Body.Close()
23987 }
23988 return nil, gensupport.WrapError(&googleapi.Error{
23989 Code: res.StatusCode,
23990 Header: res.Header,
23991 })
23992 }
23993 if err != nil {
23994 return nil, err
23995 }
23996 defer googleapi.CloseBody(res)
23997 if err := googleapi.CheckResponse(res); err != nil {
23998 return nil, gensupport.WrapError(err)
23999 }
24000 ret := &GoogleIamV1TestIamPermissionsResponse{
24001 ServerResponse: googleapi.ServerResponse{
24002 Header: res.Header,
24003 HTTPStatusCode: res.StatusCode,
24004 },
24005 }
24006 target := &ret
24007 if err := gensupport.DecodeResponse(target, res); err != nil {
24008 return nil, err
24009 }
24010 return ret, nil
24011 }
24012
24013 type ProjectsLocationsLakesZonesAssetsActionsListCall struct {
24014 s *Service
24015 parent string
24016 urlParams_ gensupport.URLParams
24017 ifNoneMatch_ string
24018 ctx_ context.Context
24019 header_ http.Header
24020 }
24021
24022
24023
24024
24025
24026
24027 func (r *ProjectsLocationsLakesZonesAssetsActionsService) List(parent string) *ProjectsLocationsLakesZonesAssetsActionsListCall {
24028 c := &ProjectsLocationsLakesZonesAssetsActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24029 c.parent = parent
24030 return c
24031 }
24032
24033
24034
24035
24036
24037 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesAssetsActionsListCall {
24038 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24039 return c
24040 }
24041
24042
24043
24044
24045
24046 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesAssetsActionsListCall {
24047 c.urlParams_.Set("pageToken", pageToken)
24048 return c
24049 }
24050
24051
24052
24053
24054 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesAssetsActionsListCall {
24055 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24056 return c
24057 }
24058
24059
24060
24061
24062 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesAssetsActionsListCall {
24063 c.ifNoneMatch_ = entityTag
24064 return c
24065 }
24066
24067
24068 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesAssetsActionsListCall {
24069 c.ctx_ = ctx
24070 return c
24071 }
24072
24073
24074
24075 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Header() http.Header {
24076 if c.header_ == nil {
24077 c.header_ = make(http.Header)
24078 }
24079 return c.header_
24080 }
24081
24082 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) doRequest(alt string) (*http.Response, error) {
24083 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24084 if c.ifNoneMatch_ != "" {
24085 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24086 }
24087 var body io.Reader = nil
24088 c.urlParams_.Set("alt", alt)
24089 c.urlParams_.Set("prettyPrint", "false")
24090 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/actions")
24091 urls += "?" + c.urlParams_.Encode()
24092 req, err := http.NewRequest("GET", urls, body)
24093 if err != nil {
24094 return nil, err
24095 }
24096 req.Header = reqHeaders
24097 googleapi.Expand(req.URL, map[string]string{
24098 "parent": c.parent,
24099 })
24100 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24101 }
24102
24103
24104
24105
24106
24107
24108
24109 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListActionsResponse, error) {
24110 gensupport.SetOptions(c.urlParams_, opts...)
24111 res, err := c.doRequest("json")
24112 if res != nil && res.StatusCode == http.StatusNotModified {
24113 if res.Body != nil {
24114 res.Body.Close()
24115 }
24116 return nil, gensupport.WrapError(&googleapi.Error{
24117 Code: res.StatusCode,
24118 Header: res.Header,
24119 })
24120 }
24121 if err != nil {
24122 return nil, err
24123 }
24124 defer googleapi.CloseBody(res)
24125 if err := googleapi.CheckResponse(res); err != nil {
24126 return nil, gensupport.WrapError(err)
24127 }
24128 ret := &GoogleCloudDataplexV1ListActionsResponse{
24129 ServerResponse: googleapi.ServerResponse{
24130 Header: res.Header,
24131 HTTPStatusCode: res.StatusCode,
24132 },
24133 }
24134 target := &ret
24135 if err := gensupport.DecodeResponse(target, res); err != nil {
24136 return nil, err
24137 }
24138 return ret, nil
24139 }
24140
24141
24142
24143
24144 func (c *ProjectsLocationsLakesZonesAssetsActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListActionsResponse) error) error {
24145 c.ctx_ = ctx
24146 defer c.PageToken(c.urlParams_.Get("pageToken"))
24147 for {
24148 x, err := c.Do()
24149 if err != nil {
24150 return err
24151 }
24152 if err := f(x); err != nil {
24153 return err
24154 }
24155 if x.NextPageToken == "" {
24156 return nil
24157 }
24158 c.PageToken(x.NextPageToken)
24159 }
24160 }
24161
24162 type ProjectsLocationsLakesZonesEntitiesCreateCall struct {
24163 s *Service
24164 parent string
24165 googleclouddataplexv1entity *GoogleCloudDataplexV1Entity
24166 urlParams_ gensupport.URLParams
24167 ctx_ context.Context
24168 header_ http.Header
24169 }
24170
24171
24172
24173
24174
24175
24176 func (r *ProjectsLocationsLakesZonesEntitiesService) Create(parent string, googleclouddataplexv1entity *GoogleCloudDataplexV1Entity) *ProjectsLocationsLakesZonesEntitiesCreateCall {
24177 c := &ProjectsLocationsLakesZonesEntitiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24178 c.parent = parent
24179 c.googleclouddataplexv1entity = googleclouddataplexv1entity
24180 return c
24181 }
24182
24183
24184
24185 func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesEntitiesCreateCall {
24186 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
24187 return c
24188 }
24189
24190
24191
24192
24193 func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesCreateCall {
24194 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24195 return c
24196 }
24197
24198
24199 func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesCreateCall {
24200 c.ctx_ = ctx
24201 return c
24202 }
24203
24204
24205
24206 func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Header() http.Header {
24207 if c.header_ == nil {
24208 c.header_ = make(http.Header)
24209 }
24210 return c.header_
24211 }
24212
24213 func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) doRequest(alt string) (*http.Response, error) {
24214 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24215 var body io.Reader = nil
24216 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entity)
24217 if err != nil {
24218 return nil, err
24219 }
24220 c.urlParams_.Set("alt", alt)
24221 c.urlParams_.Set("prettyPrint", "false")
24222 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entities")
24223 urls += "?" + c.urlParams_.Encode()
24224 req, err := http.NewRequest("POST", urls, body)
24225 if err != nil {
24226 return nil, err
24227 }
24228 req.Header = reqHeaders
24229 googleapi.Expand(req.URL, map[string]string{
24230 "parent": c.parent,
24231 })
24232 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24233 }
24234
24235
24236
24237
24238
24239
24240
24241 func (c *ProjectsLocationsLakesZonesEntitiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entity, error) {
24242 gensupport.SetOptions(c.urlParams_, opts...)
24243 res, err := c.doRequest("json")
24244 if res != nil && res.StatusCode == http.StatusNotModified {
24245 if res.Body != nil {
24246 res.Body.Close()
24247 }
24248 return nil, gensupport.WrapError(&googleapi.Error{
24249 Code: res.StatusCode,
24250 Header: res.Header,
24251 })
24252 }
24253 if err != nil {
24254 return nil, err
24255 }
24256 defer googleapi.CloseBody(res)
24257 if err := googleapi.CheckResponse(res); err != nil {
24258 return nil, gensupport.WrapError(err)
24259 }
24260 ret := &GoogleCloudDataplexV1Entity{
24261 ServerResponse: googleapi.ServerResponse{
24262 Header: res.Header,
24263 HTTPStatusCode: res.StatusCode,
24264 },
24265 }
24266 target := &ret
24267 if err := gensupport.DecodeResponse(target, res); err != nil {
24268 return nil, err
24269 }
24270 return ret, nil
24271 }
24272
24273 type ProjectsLocationsLakesZonesEntitiesDeleteCall struct {
24274 s *Service
24275 name string
24276 urlParams_ gensupport.URLParams
24277 ctx_ context.Context
24278 header_ http.Header
24279 }
24280
24281
24282
24283
24284
24285
24286 func (r *ProjectsLocationsLakesZonesEntitiesService) Delete(name string) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
24287 c := &ProjectsLocationsLakesZonesEntitiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24288 c.name = name
24289 return c
24290 }
24291
24292
24293
24294 func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Etag(etag string) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
24295 c.urlParams_.Set("etag", etag)
24296 return c
24297 }
24298
24299
24300
24301
24302 func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
24303 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24304 return c
24305 }
24306
24307
24308 func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesDeleteCall {
24309 c.ctx_ = ctx
24310 return c
24311 }
24312
24313
24314
24315 func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Header() http.Header {
24316 if c.header_ == nil {
24317 c.header_ = make(http.Header)
24318 }
24319 return c.header_
24320 }
24321
24322 func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) doRequest(alt string) (*http.Response, error) {
24323 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24324 var body io.Reader = nil
24325 c.urlParams_.Set("alt", alt)
24326 c.urlParams_.Set("prettyPrint", "false")
24327 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24328 urls += "?" + c.urlParams_.Encode()
24329 req, err := http.NewRequest("DELETE", urls, body)
24330 if err != nil {
24331 return nil, err
24332 }
24333 req.Header = reqHeaders
24334 googleapi.Expand(req.URL, map[string]string{
24335 "name": c.name,
24336 })
24337 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24338 }
24339
24340
24341
24342
24343
24344
24345 func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
24346 gensupport.SetOptions(c.urlParams_, opts...)
24347 res, err := c.doRequest("json")
24348 if res != nil && res.StatusCode == http.StatusNotModified {
24349 if res.Body != nil {
24350 res.Body.Close()
24351 }
24352 return nil, gensupport.WrapError(&googleapi.Error{
24353 Code: res.StatusCode,
24354 Header: res.Header,
24355 })
24356 }
24357 if err != nil {
24358 return nil, err
24359 }
24360 defer googleapi.CloseBody(res)
24361 if err := googleapi.CheckResponse(res); err != nil {
24362 return nil, gensupport.WrapError(err)
24363 }
24364 ret := &Empty{
24365 ServerResponse: googleapi.ServerResponse{
24366 Header: res.Header,
24367 HTTPStatusCode: res.StatusCode,
24368 },
24369 }
24370 target := &ret
24371 if err := gensupport.DecodeResponse(target, res); err != nil {
24372 return nil, err
24373 }
24374 return ret, nil
24375 }
24376
24377 type ProjectsLocationsLakesZonesEntitiesGetCall struct {
24378 s *Service
24379 name string
24380 urlParams_ gensupport.URLParams
24381 ifNoneMatch_ string
24382 ctx_ context.Context
24383 header_ http.Header
24384 }
24385
24386
24387
24388
24389
24390
24391 func (r *ProjectsLocationsLakesZonesEntitiesService) Get(name string) *ProjectsLocationsLakesZonesEntitiesGetCall {
24392 c := &ProjectsLocationsLakesZonesEntitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24393 c.name = name
24394 return c
24395 }
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) View(view string) *ProjectsLocationsLakesZonesEntitiesGetCall {
24409 c.urlParams_.Set("view", view)
24410 return c
24411 }
24412
24413
24414
24415
24416 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesGetCall {
24417 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24418 return c
24419 }
24420
24421
24422
24423
24424 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesGetCall {
24425 c.ifNoneMatch_ = entityTag
24426 return c
24427 }
24428
24429
24430 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesGetCall {
24431 c.ctx_ = ctx
24432 return c
24433 }
24434
24435
24436
24437 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Header() http.Header {
24438 if c.header_ == nil {
24439 c.header_ = make(http.Header)
24440 }
24441 return c.header_
24442 }
24443
24444 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) doRequest(alt string) (*http.Response, error) {
24445 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24446 if c.ifNoneMatch_ != "" {
24447 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24448 }
24449 var body io.Reader = nil
24450 c.urlParams_.Set("alt", alt)
24451 c.urlParams_.Set("prettyPrint", "false")
24452 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24453 urls += "?" + c.urlParams_.Encode()
24454 req, err := http.NewRequest("GET", urls, body)
24455 if err != nil {
24456 return nil, err
24457 }
24458 req.Header = reqHeaders
24459 googleapi.Expand(req.URL, map[string]string{
24460 "name": c.name,
24461 })
24462 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24463 }
24464
24465
24466
24467
24468
24469
24470
24471 func (c *ProjectsLocationsLakesZonesEntitiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entity, error) {
24472 gensupport.SetOptions(c.urlParams_, opts...)
24473 res, err := c.doRequest("json")
24474 if res != nil && res.StatusCode == http.StatusNotModified {
24475 if res.Body != nil {
24476 res.Body.Close()
24477 }
24478 return nil, gensupport.WrapError(&googleapi.Error{
24479 Code: res.StatusCode,
24480 Header: res.Header,
24481 })
24482 }
24483 if err != nil {
24484 return nil, err
24485 }
24486 defer googleapi.CloseBody(res)
24487 if err := googleapi.CheckResponse(res); err != nil {
24488 return nil, gensupport.WrapError(err)
24489 }
24490 ret := &GoogleCloudDataplexV1Entity{
24491 ServerResponse: googleapi.ServerResponse{
24492 Header: res.Header,
24493 HTTPStatusCode: res.StatusCode,
24494 },
24495 }
24496 target := &ret
24497 if err := gensupport.DecodeResponse(target, res); err != nil {
24498 return nil, err
24499 }
24500 return ret, nil
24501 }
24502
24503 type ProjectsLocationsLakesZonesEntitiesListCall struct {
24504 s *Service
24505 parent string
24506 urlParams_ gensupport.URLParams
24507 ifNoneMatch_ string
24508 ctx_ context.Context
24509 header_ http.Header
24510 }
24511
24512
24513
24514
24515
24516
24517 func (r *ProjectsLocationsLakesZonesEntitiesService) List(parent string) *ProjectsLocationsLakesZonesEntitiesListCall {
24518 c := &ProjectsLocationsLakesZonesEntitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24519 c.parent = parent
24520 return c
24521 }
24522
24523
24524
24525
24526
24527
24528
24529 func (c *ProjectsLocationsLakesZonesEntitiesListCall) Filter(filter string) *ProjectsLocationsLakesZonesEntitiesListCall {
24530 c.urlParams_.Set("filter", filter)
24531 return c
24532 }
24533
24534
24535
24536
24537
24538 func (c *ProjectsLocationsLakesZonesEntitiesListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesEntitiesListCall {
24539 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24540 return c
24541 }
24542
24543
24544
24545
24546
24547 func (c *ProjectsLocationsLakesZonesEntitiesListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesEntitiesListCall {
24548 c.urlParams_.Set("pageToken", pageToken)
24549 return c
24550 }
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563 func (c *ProjectsLocationsLakesZonesEntitiesListCall) View(view string) *ProjectsLocationsLakesZonesEntitiesListCall {
24564 c.urlParams_.Set("view", view)
24565 return c
24566 }
24567
24568
24569
24570
24571 func (c *ProjectsLocationsLakesZonesEntitiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesListCall {
24572 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24573 return c
24574 }
24575
24576
24577
24578
24579 func (c *ProjectsLocationsLakesZonesEntitiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesListCall {
24580 c.ifNoneMatch_ = entityTag
24581 return c
24582 }
24583
24584
24585 func (c *ProjectsLocationsLakesZonesEntitiesListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesListCall {
24586 c.ctx_ = ctx
24587 return c
24588 }
24589
24590
24591
24592 func (c *ProjectsLocationsLakesZonesEntitiesListCall) Header() http.Header {
24593 if c.header_ == nil {
24594 c.header_ = make(http.Header)
24595 }
24596 return c.header_
24597 }
24598
24599 func (c *ProjectsLocationsLakesZonesEntitiesListCall) doRequest(alt string) (*http.Response, error) {
24600 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24601 if c.ifNoneMatch_ != "" {
24602 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24603 }
24604 var body io.Reader = nil
24605 c.urlParams_.Set("alt", alt)
24606 c.urlParams_.Set("prettyPrint", "false")
24607 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entities")
24608 urls += "?" + c.urlParams_.Encode()
24609 req, err := http.NewRequest("GET", urls, body)
24610 if err != nil {
24611 return nil, err
24612 }
24613 req.Header = reqHeaders
24614 googleapi.Expand(req.URL, map[string]string{
24615 "parent": c.parent,
24616 })
24617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24618 }
24619
24620
24621
24622
24623
24624
24625
24626 func (c *ProjectsLocationsLakesZonesEntitiesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEntitiesResponse, error) {
24627 gensupport.SetOptions(c.urlParams_, opts...)
24628 res, err := c.doRequest("json")
24629 if res != nil && res.StatusCode == http.StatusNotModified {
24630 if res.Body != nil {
24631 res.Body.Close()
24632 }
24633 return nil, gensupport.WrapError(&googleapi.Error{
24634 Code: res.StatusCode,
24635 Header: res.Header,
24636 })
24637 }
24638 if err != nil {
24639 return nil, err
24640 }
24641 defer googleapi.CloseBody(res)
24642 if err := googleapi.CheckResponse(res); err != nil {
24643 return nil, gensupport.WrapError(err)
24644 }
24645 ret := &GoogleCloudDataplexV1ListEntitiesResponse{
24646 ServerResponse: googleapi.ServerResponse{
24647 Header: res.Header,
24648 HTTPStatusCode: res.StatusCode,
24649 },
24650 }
24651 target := &ret
24652 if err := gensupport.DecodeResponse(target, res); err != nil {
24653 return nil, err
24654 }
24655 return ret, nil
24656 }
24657
24658
24659
24660
24661 func (c *ProjectsLocationsLakesZonesEntitiesListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEntitiesResponse) error) error {
24662 c.ctx_ = ctx
24663 defer c.PageToken(c.urlParams_.Get("pageToken"))
24664 for {
24665 x, err := c.Do()
24666 if err != nil {
24667 return err
24668 }
24669 if err := f(x); err != nil {
24670 return err
24671 }
24672 if x.NextPageToken == "" {
24673 return nil
24674 }
24675 c.PageToken(x.NextPageToken)
24676 }
24677 }
24678
24679 type ProjectsLocationsLakesZonesEntitiesUpdateCall struct {
24680 s *Service
24681 name string
24682 googleclouddataplexv1entity *GoogleCloudDataplexV1Entity
24683 urlParams_ gensupport.URLParams
24684 ctx_ context.Context
24685 header_ http.Header
24686 }
24687
24688
24689
24690
24691
24692
24693 func (r *ProjectsLocationsLakesZonesEntitiesService) Update(name string, googleclouddataplexv1entity *GoogleCloudDataplexV1Entity) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
24694 c := &ProjectsLocationsLakesZonesEntitiesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24695 c.name = name
24696 c.googleclouddataplexv1entity = googleclouddataplexv1entity
24697 return c
24698 }
24699
24700
24701
24702 func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
24703 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
24704 return c
24705 }
24706
24707
24708
24709
24710 func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
24711 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24712 return c
24713 }
24714
24715
24716 func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesUpdateCall {
24717 c.ctx_ = ctx
24718 return c
24719 }
24720
24721
24722
24723 func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Header() http.Header {
24724 if c.header_ == nil {
24725 c.header_ = make(http.Header)
24726 }
24727 return c.header_
24728 }
24729
24730 func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) doRequest(alt string) (*http.Response, error) {
24731 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24732 var body io.Reader = nil
24733 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1entity)
24734 if err != nil {
24735 return nil, err
24736 }
24737 c.urlParams_.Set("alt", alt)
24738 c.urlParams_.Set("prettyPrint", "false")
24739 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24740 urls += "?" + c.urlParams_.Encode()
24741 req, err := http.NewRequest("PUT", urls, body)
24742 if err != nil {
24743 return nil, err
24744 }
24745 req.Header = reqHeaders
24746 googleapi.Expand(req.URL, map[string]string{
24747 "name": c.name,
24748 })
24749 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24750 }
24751
24752
24753
24754
24755
24756
24757
24758 func (c *ProjectsLocationsLakesZonesEntitiesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Entity, error) {
24759 gensupport.SetOptions(c.urlParams_, opts...)
24760 res, err := c.doRequest("json")
24761 if res != nil && res.StatusCode == http.StatusNotModified {
24762 if res.Body != nil {
24763 res.Body.Close()
24764 }
24765 return nil, gensupport.WrapError(&googleapi.Error{
24766 Code: res.StatusCode,
24767 Header: res.Header,
24768 })
24769 }
24770 if err != nil {
24771 return nil, err
24772 }
24773 defer googleapi.CloseBody(res)
24774 if err := googleapi.CheckResponse(res); err != nil {
24775 return nil, gensupport.WrapError(err)
24776 }
24777 ret := &GoogleCloudDataplexV1Entity{
24778 ServerResponse: googleapi.ServerResponse{
24779 Header: res.Header,
24780 HTTPStatusCode: res.StatusCode,
24781 },
24782 }
24783 target := &ret
24784 if err := gensupport.DecodeResponse(target, res); err != nil {
24785 return nil, err
24786 }
24787 return ret, nil
24788 }
24789
24790 type ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall struct {
24791 s *Service
24792 parent string
24793 googleclouddataplexv1partition *GoogleCloudDataplexV1Partition
24794 urlParams_ gensupport.URLParams
24795 ctx_ context.Context
24796 header_ http.Header
24797 }
24798
24799
24800
24801
24802
24803
24804 func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Create(parent string, googleclouddataplexv1partition *GoogleCloudDataplexV1Partition) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
24805 c := &ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24806 c.parent = parent
24807 c.googleclouddataplexv1partition = googleclouddataplexv1partition
24808 return c
24809 }
24810
24811
24812
24813 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
24814 c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
24815 return c
24816 }
24817
24818
24819
24820
24821 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
24822 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24823 return c
24824 }
24825
24826
24827 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall {
24828 c.ctx_ = ctx
24829 return c
24830 }
24831
24832
24833
24834 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Header() http.Header {
24835 if c.header_ == nil {
24836 c.header_ = make(http.Header)
24837 }
24838 return c.header_
24839 }
24840
24841 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) doRequest(alt string) (*http.Response, error) {
24842 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24843 var body io.Reader = nil
24844 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddataplexv1partition)
24845 if err != nil {
24846 return nil, err
24847 }
24848 c.urlParams_.Set("alt", alt)
24849 c.urlParams_.Set("prettyPrint", "false")
24850 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/partitions")
24851 urls += "?" + c.urlParams_.Encode()
24852 req, err := http.NewRequest("POST", urls, body)
24853 if err != nil {
24854 return nil, err
24855 }
24856 req.Header = reqHeaders
24857 googleapi.Expand(req.URL, map[string]string{
24858 "parent": c.parent,
24859 })
24860 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24861 }
24862
24863
24864
24865
24866
24867
24868
24869 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Partition, error) {
24870 gensupport.SetOptions(c.urlParams_, opts...)
24871 res, err := c.doRequest("json")
24872 if res != nil && res.StatusCode == http.StatusNotModified {
24873 if res.Body != nil {
24874 res.Body.Close()
24875 }
24876 return nil, gensupport.WrapError(&googleapi.Error{
24877 Code: res.StatusCode,
24878 Header: res.Header,
24879 })
24880 }
24881 if err != nil {
24882 return nil, err
24883 }
24884 defer googleapi.CloseBody(res)
24885 if err := googleapi.CheckResponse(res); err != nil {
24886 return nil, gensupport.WrapError(err)
24887 }
24888 ret := &GoogleCloudDataplexV1Partition{
24889 ServerResponse: googleapi.ServerResponse{
24890 Header: res.Header,
24891 HTTPStatusCode: res.StatusCode,
24892 },
24893 }
24894 target := &ret
24895 if err := gensupport.DecodeResponse(target, res); err != nil {
24896 return nil, err
24897 }
24898 return ret, nil
24899 }
24900
24901 type ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall struct {
24902 s *Service
24903 name string
24904 urlParams_ gensupport.URLParams
24905 ctx_ context.Context
24906 header_ http.Header
24907 }
24908
24909
24910
24911
24912
24913
24914
24915
24916 func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Delete(name string) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
24917 c := &ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24918 c.name = name
24919 return c
24920 }
24921
24922
24923
24924 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Etag(etag string) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
24925 c.urlParams_.Set("etag", etag)
24926 return c
24927 }
24928
24929
24930
24931
24932 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
24933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24934 return c
24935 }
24936
24937
24938 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall {
24939 c.ctx_ = ctx
24940 return c
24941 }
24942
24943
24944
24945 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Header() http.Header {
24946 if c.header_ == nil {
24947 c.header_ = make(http.Header)
24948 }
24949 return c.header_
24950 }
24951
24952 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) doRequest(alt string) (*http.Response, error) {
24953 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24954 var body io.Reader = nil
24955 c.urlParams_.Set("alt", alt)
24956 c.urlParams_.Set("prettyPrint", "false")
24957 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24958 urls += "?" + c.urlParams_.Encode()
24959 req, err := http.NewRequest("DELETE", urls, body)
24960 if err != nil {
24961 return nil, err
24962 }
24963 req.Header = reqHeaders
24964 googleapi.Expand(req.URL, map[string]string{
24965 "name": c.name,
24966 })
24967 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24968 }
24969
24970
24971
24972
24973
24974
24975 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
24976 gensupport.SetOptions(c.urlParams_, opts...)
24977 res, err := c.doRequest("json")
24978 if res != nil && res.StatusCode == http.StatusNotModified {
24979 if res.Body != nil {
24980 res.Body.Close()
24981 }
24982 return nil, gensupport.WrapError(&googleapi.Error{
24983 Code: res.StatusCode,
24984 Header: res.Header,
24985 })
24986 }
24987 if err != nil {
24988 return nil, err
24989 }
24990 defer googleapi.CloseBody(res)
24991 if err := googleapi.CheckResponse(res); err != nil {
24992 return nil, gensupport.WrapError(err)
24993 }
24994 ret := &Empty{
24995 ServerResponse: googleapi.ServerResponse{
24996 Header: res.Header,
24997 HTTPStatusCode: res.StatusCode,
24998 },
24999 }
25000 target := &ret
25001 if err := gensupport.DecodeResponse(target, res); err != nil {
25002 return nil, err
25003 }
25004 return ret, nil
25005 }
25006
25007 type ProjectsLocationsLakesZonesEntitiesPartitionsGetCall struct {
25008 s *Service
25009 name string
25010 urlParams_ gensupport.URLParams
25011 ifNoneMatch_ string
25012 ctx_ context.Context
25013 header_ http.Header
25014 }
25015
25016
25017
25018
25019
25020
25021
25022
25023 func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Get(name string) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
25024 c := &ProjectsLocationsLakesZonesEntitiesPartitionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25025 c.name = name
25026 return c
25027 }
25028
25029
25030
25031
25032 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
25033 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25034 return c
25035 }
25036
25037
25038
25039
25040 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
25041 c.ifNoneMatch_ = entityTag
25042 return c
25043 }
25044
25045
25046 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall {
25047 c.ctx_ = ctx
25048 return c
25049 }
25050
25051
25052
25053 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Header() http.Header {
25054 if c.header_ == nil {
25055 c.header_ = make(http.Header)
25056 }
25057 return c.header_
25058 }
25059
25060 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) doRequest(alt string) (*http.Response, error) {
25061 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25062 if c.ifNoneMatch_ != "" {
25063 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25064 }
25065 var body io.Reader = nil
25066 c.urlParams_.Set("alt", alt)
25067 c.urlParams_.Set("prettyPrint", "false")
25068 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25069 urls += "?" + c.urlParams_.Encode()
25070 req, err := http.NewRequest("GET", urls, body)
25071 if err != nil {
25072 return nil, err
25073 }
25074 req.Header = reqHeaders
25075 googleapi.Expand(req.URL, map[string]string{
25076 "name": c.name,
25077 })
25078 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25079 }
25080
25081
25082
25083
25084
25085
25086
25087 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1Partition, error) {
25088 gensupport.SetOptions(c.urlParams_, opts...)
25089 res, err := c.doRequest("json")
25090 if res != nil && res.StatusCode == http.StatusNotModified {
25091 if res.Body != nil {
25092 res.Body.Close()
25093 }
25094 return nil, gensupport.WrapError(&googleapi.Error{
25095 Code: res.StatusCode,
25096 Header: res.Header,
25097 })
25098 }
25099 if err != nil {
25100 return nil, err
25101 }
25102 defer googleapi.CloseBody(res)
25103 if err := googleapi.CheckResponse(res); err != nil {
25104 return nil, gensupport.WrapError(err)
25105 }
25106 ret := &GoogleCloudDataplexV1Partition{
25107 ServerResponse: googleapi.ServerResponse{
25108 Header: res.Header,
25109 HTTPStatusCode: res.StatusCode,
25110 },
25111 }
25112 target := &ret
25113 if err := gensupport.DecodeResponse(target, res); err != nil {
25114 return nil, err
25115 }
25116 return ret, nil
25117 }
25118
25119 type ProjectsLocationsLakesZonesEntitiesPartitionsListCall struct {
25120 s *Service
25121 parent string
25122 urlParams_ gensupport.URLParams
25123 ifNoneMatch_ string
25124 ctx_ context.Context
25125 header_ http.Header
25126 }
25127
25128
25129
25130
25131
25132
25133 func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) List(parent string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25134 c := &ProjectsLocationsLakesZonesEntitiesPartitionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25135 c.parent = parent
25136 return c
25137 }
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Filter(filter string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25150 c.urlParams_.Set("filter", filter)
25151 return c
25152 }
25153
25154
25155
25156
25157
25158 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) PageSize(pageSize int64) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25159 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25160 return c
25161 }
25162
25163
25164
25165
25166
25167 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) PageToken(pageToken string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25168 c.urlParams_.Set("pageToken", pageToken)
25169 return c
25170 }
25171
25172
25173
25174
25175 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25177 return c
25178 }
25179
25180
25181
25182
25183 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25184 c.ifNoneMatch_ = entityTag
25185 return c
25186 }
25187
25188
25189 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Context(ctx context.Context) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall {
25190 c.ctx_ = ctx
25191 return c
25192 }
25193
25194
25195
25196 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Header() http.Header {
25197 if c.header_ == nil {
25198 c.header_ = make(http.Header)
25199 }
25200 return c.header_
25201 }
25202
25203 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) doRequest(alt string) (*http.Response, error) {
25204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25205 if c.ifNoneMatch_ != "" {
25206 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25207 }
25208 var body io.Reader = nil
25209 c.urlParams_.Set("alt", alt)
25210 c.urlParams_.Set("prettyPrint", "false")
25211 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/partitions")
25212 urls += "?" + c.urlParams_.Encode()
25213 req, err := http.NewRequest("GET", urls, body)
25214 if err != nil {
25215 return nil, err
25216 }
25217 req.Header = reqHeaders
25218 googleapi.Expand(req.URL, map[string]string{
25219 "parent": c.parent,
25220 })
25221 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25222 }
25223
25224
25225
25226
25227
25228
25229
25230 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListPartitionsResponse, error) {
25231 gensupport.SetOptions(c.urlParams_, opts...)
25232 res, err := c.doRequest("json")
25233 if res != nil && res.StatusCode == http.StatusNotModified {
25234 if res.Body != nil {
25235 res.Body.Close()
25236 }
25237 return nil, gensupport.WrapError(&googleapi.Error{
25238 Code: res.StatusCode,
25239 Header: res.Header,
25240 })
25241 }
25242 if err != nil {
25243 return nil, err
25244 }
25245 defer googleapi.CloseBody(res)
25246 if err := googleapi.CheckResponse(res); err != nil {
25247 return nil, gensupport.WrapError(err)
25248 }
25249 ret := &GoogleCloudDataplexV1ListPartitionsResponse{
25250 ServerResponse: googleapi.ServerResponse{
25251 Header: res.Header,
25252 HTTPStatusCode: res.StatusCode,
25253 },
25254 }
25255 target := &ret
25256 if err := gensupport.DecodeResponse(target, res); err != nil {
25257 return nil, err
25258 }
25259 return ret, nil
25260 }
25261
25262
25263
25264
25265 func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListPartitionsResponse) error) error {
25266 c.ctx_ = ctx
25267 defer c.PageToken(c.urlParams_.Get("pageToken"))
25268 for {
25269 x, err := c.Do()
25270 if err != nil {
25271 return err
25272 }
25273 if err := f(x); err != nil {
25274 return err
25275 }
25276 if x.NextPageToken == "" {
25277 return nil
25278 }
25279 c.PageToken(x.NextPageToken)
25280 }
25281 }
25282
25283 type ProjectsLocationsOperationsCancelCall struct {
25284 s *Service
25285 name string
25286 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
25287 urlParams_ gensupport.URLParams
25288 ctx_ context.Context
25289 header_ http.Header
25290 }
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303 func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
25304 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25305 c.name = name
25306 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
25307 return c
25308 }
25309
25310
25311
25312
25313 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
25314 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25315 return c
25316 }
25317
25318
25319 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
25320 c.ctx_ = ctx
25321 return c
25322 }
25323
25324
25325
25326 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
25327 if c.header_ == nil {
25328 c.header_ = make(http.Header)
25329 }
25330 return c.header_
25331 }
25332
25333 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
25334 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25335 var body io.Reader = nil
25336 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
25337 if err != nil {
25338 return nil, err
25339 }
25340 c.urlParams_.Set("alt", alt)
25341 c.urlParams_.Set("prettyPrint", "false")
25342 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
25343 urls += "?" + c.urlParams_.Encode()
25344 req, err := http.NewRequest("POST", urls, body)
25345 if err != nil {
25346 return nil, err
25347 }
25348 req.Header = reqHeaders
25349 googleapi.Expand(req.URL, map[string]string{
25350 "name": c.name,
25351 })
25352 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25353 }
25354
25355
25356
25357
25358
25359
25360 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
25361 gensupport.SetOptions(c.urlParams_, opts...)
25362 res, err := c.doRequest("json")
25363 if res != nil && res.StatusCode == http.StatusNotModified {
25364 if res.Body != nil {
25365 res.Body.Close()
25366 }
25367 return nil, gensupport.WrapError(&googleapi.Error{
25368 Code: res.StatusCode,
25369 Header: res.Header,
25370 })
25371 }
25372 if err != nil {
25373 return nil, err
25374 }
25375 defer googleapi.CloseBody(res)
25376 if err := googleapi.CheckResponse(res); err != nil {
25377 return nil, gensupport.WrapError(err)
25378 }
25379 ret := &Empty{
25380 ServerResponse: googleapi.ServerResponse{
25381 Header: res.Header,
25382 HTTPStatusCode: res.StatusCode,
25383 },
25384 }
25385 target := &ret
25386 if err := gensupport.DecodeResponse(target, res); err != nil {
25387 return nil, err
25388 }
25389 return ret, nil
25390 }
25391
25392 type ProjectsLocationsOperationsDeleteCall struct {
25393 s *Service
25394 name string
25395 urlParams_ gensupport.URLParams
25396 ctx_ context.Context
25397 header_ http.Header
25398 }
25399
25400
25401
25402
25403
25404
25405
25406 func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
25407 c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25408 c.name = name
25409 return c
25410 }
25411
25412
25413
25414
25415 func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
25416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25417 return c
25418 }
25419
25420
25421 func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
25422 c.ctx_ = ctx
25423 return c
25424 }
25425
25426
25427
25428 func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
25429 if c.header_ == nil {
25430 c.header_ = make(http.Header)
25431 }
25432 return c.header_
25433 }
25434
25435 func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
25436 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25437 var body io.Reader = nil
25438 c.urlParams_.Set("alt", alt)
25439 c.urlParams_.Set("prettyPrint", "false")
25440 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25441 urls += "?" + c.urlParams_.Encode()
25442 req, err := http.NewRequest("DELETE", urls, body)
25443 if err != nil {
25444 return nil, err
25445 }
25446 req.Header = reqHeaders
25447 googleapi.Expand(req.URL, map[string]string{
25448 "name": c.name,
25449 })
25450 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25451 }
25452
25453
25454
25455
25456
25457
25458 func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
25459 gensupport.SetOptions(c.urlParams_, opts...)
25460 res, err := c.doRequest("json")
25461 if res != nil && res.StatusCode == http.StatusNotModified {
25462 if res.Body != nil {
25463 res.Body.Close()
25464 }
25465 return nil, gensupport.WrapError(&googleapi.Error{
25466 Code: res.StatusCode,
25467 Header: res.Header,
25468 })
25469 }
25470 if err != nil {
25471 return nil, err
25472 }
25473 defer googleapi.CloseBody(res)
25474 if err := googleapi.CheckResponse(res); err != nil {
25475 return nil, gensupport.WrapError(err)
25476 }
25477 ret := &Empty{
25478 ServerResponse: googleapi.ServerResponse{
25479 Header: res.Header,
25480 HTTPStatusCode: res.StatusCode,
25481 },
25482 }
25483 target := &ret
25484 if err := gensupport.DecodeResponse(target, res); err != nil {
25485 return nil, err
25486 }
25487 return ret, nil
25488 }
25489
25490 type ProjectsLocationsOperationsGetCall struct {
25491 s *Service
25492 name string
25493 urlParams_ gensupport.URLParams
25494 ifNoneMatch_ string
25495 ctx_ context.Context
25496 header_ http.Header
25497 }
25498
25499
25500
25501
25502
25503
25504 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
25505 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25506 c.name = name
25507 return c
25508 }
25509
25510
25511
25512
25513 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
25514 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25515 return c
25516 }
25517
25518
25519
25520
25521 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
25522 c.ifNoneMatch_ = entityTag
25523 return c
25524 }
25525
25526
25527 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
25528 c.ctx_ = ctx
25529 return c
25530 }
25531
25532
25533
25534 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
25535 if c.header_ == nil {
25536 c.header_ = make(http.Header)
25537 }
25538 return c.header_
25539 }
25540
25541 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
25542 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25543 if c.ifNoneMatch_ != "" {
25544 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25545 }
25546 var body io.Reader = nil
25547 c.urlParams_.Set("alt", alt)
25548 c.urlParams_.Set("prettyPrint", "false")
25549 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25550 urls += "?" + c.urlParams_.Encode()
25551 req, err := http.NewRequest("GET", urls, body)
25552 if err != nil {
25553 return nil, err
25554 }
25555 req.Header = reqHeaders
25556 googleapi.Expand(req.URL, map[string]string{
25557 "name": c.name,
25558 })
25559 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25560 }
25561
25562
25563
25564
25565
25566
25567
25568 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25569 gensupport.SetOptions(c.urlParams_, opts...)
25570 res, err := c.doRequest("json")
25571 if res != nil && res.StatusCode == http.StatusNotModified {
25572 if res.Body != nil {
25573 res.Body.Close()
25574 }
25575 return nil, gensupport.WrapError(&googleapi.Error{
25576 Code: res.StatusCode,
25577 Header: res.Header,
25578 })
25579 }
25580 if err != nil {
25581 return nil, err
25582 }
25583 defer googleapi.CloseBody(res)
25584 if err := googleapi.CheckResponse(res); err != nil {
25585 return nil, gensupport.WrapError(err)
25586 }
25587 ret := &GoogleLongrunningOperation{
25588 ServerResponse: googleapi.ServerResponse{
25589 Header: res.Header,
25590 HTTPStatusCode: res.StatusCode,
25591 },
25592 }
25593 target := &ret
25594 if err := gensupport.DecodeResponse(target, res); err != nil {
25595 return nil, err
25596 }
25597 return ret, nil
25598 }
25599
25600 type ProjectsLocationsOperationsListCall struct {
25601 s *Service
25602 name string
25603 urlParams_ gensupport.URLParams
25604 ifNoneMatch_ string
25605 ctx_ context.Context
25606 header_ http.Header
25607 }
25608
25609
25610
25611
25612
25613 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
25614 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25615 c.name = name
25616 return c
25617 }
25618
25619
25620 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
25621 c.urlParams_.Set("filter", filter)
25622 return c
25623 }
25624
25625
25626
25627 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
25628 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25629 return c
25630 }
25631
25632
25633
25634 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
25635 c.urlParams_.Set("pageToken", pageToken)
25636 return c
25637 }
25638
25639
25640
25641
25642 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
25643 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25644 return c
25645 }
25646
25647
25648
25649
25650 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
25651 c.ifNoneMatch_ = entityTag
25652 return c
25653 }
25654
25655
25656 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
25657 c.ctx_ = ctx
25658 return c
25659 }
25660
25661
25662
25663 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
25664 if c.header_ == nil {
25665 c.header_ = make(http.Header)
25666 }
25667 return c.header_
25668 }
25669
25670 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
25671 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25672 if c.ifNoneMatch_ != "" {
25673 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25674 }
25675 var body io.Reader = nil
25676 c.urlParams_.Set("alt", alt)
25677 c.urlParams_.Set("prettyPrint", "false")
25678 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
25679 urls += "?" + c.urlParams_.Encode()
25680 req, err := http.NewRequest("GET", urls, body)
25681 if err != nil {
25682 return nil, err
25683 }
25684 req.Header = reqHeaders
25685 googleapi.Expand(req.URL, map[string]string{
25686 "name": c.name,
25687 })
25688 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25689 }
25690
25691
25692
25693
25694
25695
25696
25697 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
25698 gensupport.SetOptions(c.urlParams_, opts...)
25699 res, err := c.doRequest("json")
25700 if res != nil && res.StatusCode == http.StatusNotModified {
25701 if res.Body != nil {
25702 res.Body.Close()
25703 }
25704 return nil, gensupport.WrapError(&googleapi.Error{
25705 Code: res.StatusCode,
25706 Header: res.Header,
25707 })
25708 }
25709 if err != nil {
25710 return nil, err
25711 }
25712 defer googleapi.CloseBody(res)
25713 if err := googleapi.CheckResponse(res); err != nil {
25714 return nil, gensupport.WrapError(err)
25715 }
25716 ret := &GoogleLongrunningListOperationsResponse{
25717 ServerResponse: googleapi.ServerResponse{
25718 Header: res.Header,
25719 HTTPStatusCode: res.StatusCode,
25720 },
25721 }
25722 target := &ret
25723 if err := gensupport.DecodeResponse(target, res); err != nil {
25724 return nil, err
25725 }
25726 return ret, nil
25727 }
25728
25729
25730
25731
25732 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
25733 c.ctx_ = ctx
25734 defer c.PageToken(c.urlParams_.Get("pageToken"))
25735 for {
25736 x, err := c.Do()
25737 if err != nil {
25738 return err
25739 }
25740 if err := f(x); err != nil {
25741 return err
25742 }
25743 if x.NextPageToken == "" {
25744 return nil
25745 }
25746 c.PageToken(x.NextPageToken)
25747 }
25748 }
25749
View as plain text