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 datacatalog
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 = "datacatalog:v1"
90 const apiName = "datacatalog"
91 const apiVersion = "v1"
92 const basePath = "https://datacatalog.googleapis.com/"
93 const basePathTemplate = "https://datacatalog.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://datacatalog.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.Catalog = NewCatalogService(s)
139 s.Entries = NewEntriesService(s)
140 s.Projects = NewProjectsService(s)
141 return s, nil
142 }
143
144 type Service struct {
145 client *http.Client
146 BasePath string
147 UserAgent string
148
149 Catalog *CatalogService
150
151 Entries *EntriesService
152
153 Projects *ProjectsService
154 }
155
156 func (s *Service) userAgent() string {
157 if s.UserAgent == "" {
158 return googleapi.UserAgent
159 }
160 return googleapi.UserAgent + " " + s.UserAgent
161 }
162
163 func NewCatalogService(s *Service) *CatalogService {
164 rs := &CatalogService{s: s}
165 return rs
166 }
167
168 type CatalogService struct {
169 s *Service
170 }
171
172 func NewEntriesService(s *Service) *EntriesService {
173 rs := &EntriesService{s: s}
174 return rs
175 }
176
177 type EntriesService struct {
178 s *Service
179 }
180
181 func NewProjectsService(s *Service) *ProjectsService {
182 rs := &ProjectsService{s: s}
183 rs.Locations = NewProjectsLocationsService(s)
184 return rs
185 }
186
187 type ProjectsService struct {
188 s *Service
189
190 Locations *ProjectsLocationsService
191 }
192
193 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
194 rs := &ProjectsLocationsService{s: s}
195 rs.EntryGroups = NewProjectsLocationsEntryGroupsService(s)
196 rs.Operations = NewProjectsLocationsOperationsService(s)
197 rs.TagTemplates = NewProjectsLocationsTagTemplatesService(s)
198 rs.Taxonomies = NewProjectsLocationsTaxonomiesService(s)
199 return rs
200 }
201
202 type ProjectsLocationsService struct {
203 s *Service
204
205 EntryGroups *ProjectsLocationsEntryGroupsService
206
207 Operations *ProjectsLocationsOperationsService
208
209 TagTemplates *ProjectsLocationsTagTemplatesService
210
211 Taxonomies *ProjectsLocationsTaxonomiesService
212 }
213
214 func NewProjectsLocationsEntryGroupsService(s *Service) *ProjectsLocationsEntryGroupsService {
215 rs := &ProjectsLocationsEntryGroupsService{s: s}
216 rs.Entries = NewProjectsLocationsEntryGroupsEntriesService(s)
217 rs.Tags = NewProjectsLocationsEntryGroupsTagsService(s)
218 return rs
219 }
220
221 type ProjectsLocationsEntryGroupsService struct {
222 s *Service
223
224 Entries *ProjectsLocationsEntryGroupsEntriesService
225
226 Tags *ProjectsLocationsEntryGroupsTagsService
227 }
228
229 func NewProjectsLocationsEntryGroupsEntriesService(s *Service) *ProjectsLocationsEntryGroupsEntriesService {
230 rs := &ProjectsLocationsEntryGroupsEntriesService{s: s}
231 rs.Tags = NewProjectsLocationsEntryGroupsEntriesTagsService(s)
232 return rs
233 }
234
235 type ProjectsLocationsEntryGroupsEntriesService struct {
236 s *Service
237
238 Tags *ProjectsLocationsEntryGroupsEntriesTagsService
239 }
240
241 func NewProjectsLocationsEntryGroupsEntriesTagsService(s *Service) *ProjectsLocationsEntryGroupsEntriesTagsService {
242 rs := &ProjectsLocationsEntryGroupsEntriesTagsService{s: s}
243 return rs
244 }
245
246 type ProjectsLocationsEntryGroupsEntriesTagsService struct {
247 s *Service
248 }
249
250 func NewProjectsLocationsEntryGroupsTagsService(s *Service) *ProjectsLocationsEntryGroupsTagsService {
251 rs := &ProjectsLocationsEntryGroupsTagsService{s: s}
252 return rs
253 }
254
255 type ProjectsLocationsEntryGroupsTagsService struct {
256 s *Service
257 }
258
259 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
260 rs := &ProjectsLocationsOperationsService{s: s}
261 return rs
262 }
263
264 type ProjectsLocationsOperationsService struct {
265 s *Service
266 }
267
268 func NewProjectsLocationsTagTemplatesService(s *Service) *ProjectsLocationsTagTemplatesService {
269 rs := &ProjectsLocationsTagTemplatesService{s: s}
270 rs.Fields = NewProjectsLocationsTagTemplatesFieldsService(s)
271 return rs
272 }
273
274 type ProjectsLocationsTagTemplatesService struct {
275 s *Service
276
277 Fields *ProjectsLocationsTagTemplatesFieldsService
278 }
279
280 func NewProjectsLocationsTagTemplatesFieldsService(s *Service) *ProjectsLocationsTagTemplatesFieldsService {
281 rs := &ProjectsLocationsTagTemplatesFieldsService{s: s}
282 rs.EnumValues = NewProjectsLocationsTagTemplatesFieldsEnumValuesService(s)
283 return rs
284 }
285
286 type ProjectsLocationsTagTemplatesFieldsService struct {
287 s *Service
288
289 EnumValues *ProjectsLocationsTagTemplatesFieldsEnumValuesService
290 }
291
292 func NewProjectsLocationsTagTemplatesFieldsEnumValuesService(s *Service) *ProjectsLocationsTagTemplatesFieldsEnumValuesService {
293 rs := &ProjectsLocationsTagTemplatesFieldsEnumValuesService{s: s}
294 return rs
295 }
296
297 type ProjectsLocationsTagTemplatesFieldsEnumValuesService struct {
298 s *Service
299 }
300
301 func NewProjectsLocationsTaxonomiesService(s *Service) *ProjectsLocationsTaxonomiesService {
302 rs := &ProjectsLocationsTaxonomiesService{s: s}
303 rs.PolicyTags = NewProjectsLocationsTaxonomiesPolicyTagsService(s)
304 return rs
305 }
306
307 type ProjectsLocationsTaxonomiesService struct {
308 s *Service
309
310 PolicyTags *ProjectsLocationsTaxonomiesPolicyTagsService
311 }
312
313 func NewProjectsLocationsTaxonomiesPolicyTagsService(s *Service) *ProjectsLocationsTaxonomiesPolicyTagsService {
314 rs := &ProjectsLocationsTaxonomiesPolicyTagsService{s: s}
315 return rs
316 }
317
318 type ProjectsLocationsTaxonomiesPolicyTagsService struct {
319 s *Service
320 }
321
322
323 type Binding struct {
324
325
326
327
328
329
330
331
332 Condition *Expr `json:"condition,omitempty"`
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395 Members []string `json:"members,omitempty"`
396
397
398
399
400
401
402 Role string `json:"role,omitempty"`
403
404
405
406
407
408 ForceSendFields []string `json:"-"`
409
410
411
412
413 NullFields []string `json:"-"`
414 }
415
416 func (s *Binding) MarshalJSON() ([]byte, error) {
417 type NoMethod Binding
418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
419 }
420
421
422
423
424
425 type Empty struct {
426
427 googleapi.ServerResponse `json:"-"`
428 }
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446 type Expr struct {
447
448
449 Description string `json:"description,omitempty"`
450
451
452 Expression string `json:"expression,omitempty"`
453
454
455 Location string `json:"location,omitempty"`
456
457
458
459 Title string `json:"title,omitempty"`
460
461
462
463
464
465 ForceSendFields []string `json:"-"`
466
467
468
469
470 NullFields []string `json:"-"`
471 }
472
473 func (s *Expr) MarshalJSON() ([]byte, error) {
474 type NoMethod Expr
475 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
476 }
477
478
479 type GetIamPolicyRequest struct {
480
481
482 Options *GetPolicyOptions `json:"options,omitempty"`
483
484
485
486
487
488 ForceSendFields []string `json:"-"`
489
490
491
492
493 NullFields []string `json:"-"`
494 }
495
496 func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
497 type NoMethod GetIamPolicyRequest
498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
499 }
500
501
502 type GetPolicyOptions struct {
503
504
505
506
507
508
509
510
511
512
513
514 RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
515
516
517
518
519
520 ForceSendFields []string `json:"-"`
521
522
523
524
525 NullFields []string `json:"-"`
526 }
527
528 func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) {
529 type NoMethod GetPolicyOptions
530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
531 }
532
533
534
535 type GoogleCloudDatacatalogV1BigQueryConnectionSpec struct {
536
537 CloudSql *GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec `json:"cloudSql,omitempty"`
538
539
540
541
542
543 ConnectionType string `json:"connectionType,omitempty"`
544
545
546 HasCredential bool `json:"hasCredential,omitempty"`
547
548
549
550
551
552 ForceSendFields []string `json:"-"`
553
554
555
556
557 NullFields []string `json:"-"`
558 }
559
560 func (s *GoogleCloudDatacatalogV1BigQueryConnectionSpec) MarshalJSON() ([]byte, error) {
561 type NoMethod GoogleCloudDatacatalogV1BigQueryConnectionSpec
562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
563 }
564
565
566
567
568
569 type GoogleCloudDatacatalogV1BigQueryDateShardedSpec struct {
570
571
572
573
574 Dataset string `json:"dataset,omitempty"`
575
576
577 LatestShardResource string `json:"latestShardResource,omitempty"`
578
579 ShardCount int64 `json:"shardCount,omitempty,string"`
580
581
582
583 TablePrefix string `json:"tablePrefix,omitempty"`
584
585
586
587
588
589 ForceSendFields []string `json:"-"`
590
591
592
593
594 NullFields []string `json:"-"`
595 }
596
597 func (s *GoogleCloudDatacatalogV1BigQueryDateShardedSpec) MarshalJSON() ([]byte, error) {
598 type NoMethod GoogleCloudDatacatalogV1BigQueryDateShardedSpec
599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
600 }
601
602
603
604 type GoogleCloudDatacatalogV1BigQueryRoutineSpec struct {
605
606 ImportedLibraries []string `json:"importedLibraries,omitempty"`
607
608
609
610
611
612 ForceSendFields []string `json:"-"`
613
614
615
616
617 NullFields []string `json:"-"`
618 }
619
620 func (s *GoogleCloudDatacatalogV1BigQueryRoutineSpec) MarshalJSON() ([]byte, error) {
621 type NoMethod GoogleCloudDatacatalogV1BigQueryRoutineSpec
622 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
623 }
624
625
626 type GoogleCloudDatacatalogV1BigQueryTableSpec struct {
627
628
629
630
631
632
633
634 TableSourceType string `json:"tableSourceType,omitempty"`
635
636
637 TableSpec *GoogleCloudDatacatalogV1TableSpec `json:"tableSpec,omitempty"`
638
639
640 ViewSpec *GoogleCloudDatacatalogV1ViewSpec `json:"viewSpec,omitempty"`
641
642
643
644
645
646 ForceSendFields []string `json:"-"`
647
648
649
650
651 NullFields []string `json:"-"`
652 }
653
654 func (s *GoogleCloudDatacatalogV1BigQueryTableSpec) MarshalJSON() ([]byte, error) {
655 type NoMethod GoogleCloudDatacatalogV1BigQueryTableSpec
656 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
657 }
658
659
660 type GoogleCloudDatacatalogV1BusinessContext struct {
661
662 Contacts *GoogleCloudDatacatalogV1Contacts `json:"contacts,omitempty"`
663
664 EntryOverview *GoogleCloudDatacatalogV1EntryOverview `json:"entryOverview,omitempty"`
665
666
667
668
669
670 ForceSendFields []string `json:"-"`
671
672
673
674
675 NullFields []string `json:"-"`
676 }
677
678 func (s *GoogleCloudDatacatalogV1BusinessContext) MarshalJSON() ([]byte, error) {
679 type NoMethod GoogleCloudDatacatalogV1BusinessContext
680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
681 }
682
683
684
685
686 type GoogleCloudDatacatalogV1CloudBigtableInstanceSpec struct {
687
688 CloudBigtableClusterSpecs []*GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec `json:"cloudBigtableClusterSpecs,omitempty"`
689
690
691
692
693
694 ForceSendFields []string `json:"-"`
695
696
697
698
699 NullFields []string `json:"-"`
700 }
701
702 func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec) MarshalJSON() ([]byte, error) {
703 type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpec
704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
705 }
706
707
708
709 type GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec struct {
710
711 DisplayName string `json:"displayName,omitempty"`
712
713 LinkedResource string `json:"linkedResource,omitempty"`
714
715 Location string `json:"location,omitempty"`
716
717 Type string `json:"type,omitempty"`
718
719
720
721
722
723 ForceSendFields []string `json:"-"`
724
725
726
727
728 NullFields []string `json:"-"`
729 }
730
731 func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec) MarshalJSON() ([]byte, error) {
732 type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec
733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
734 }
735
736
737
738
739 type GoogleCloudDatacatalogV1CloudBigtableSystemSpec struct {
740
741
742 InstanceDisplayName string `json:"instanceDisplayName,omitempty"`
743
744
745
746
747
748 ForceSendFields []string `json:"-"`
749
750
751
752
753 NullFields []string `json:"-"`
754 }
755
756 func (s *GoogleCloudDatacatalogV1CloudBigtableSystemSpec) MarshalJSON() ([]byte, error) {
757 type NoMethod GoogleCloudDatacatalogV1CloudBigtableSystemSpec
758 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
759 }
760
761
762
763 type GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec struct {
764
765 Database string `json:"database,omitempty"`
766
767
768 InstanceId string `json:"instanceId,omitempty"`
769
770
771
772
773
774
775 Type string `json:"type,omitempty"`
776
777
778
779
780
781 ForceSendFields []string `json:"-"`
782
783
784
785
786 NullFields []string `json:"-"`
787 }
788
789 func (s *GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec) MarshalJSON() ([]byte, error) {
790 type NoMethod GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec
791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
792 }
793
794
795
796 type GoogleCloudDatacatalogV1ColumnSchema struct {
797
798
799 Column string `json:"column,omitempty"`
800
801 DefaultValue string `json:"defaultValue,omitempty"`
802
803
804
805 Description string `json:"description,omitempty"`
806
807
808 GcRule string `json:"gcRule,omitempty"`
809
810
811
812
813
814
815
816
817 HighestIndexingType string `json:"highestIndexingType,omitempty"`
818
819 LookerColumnSpec *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec `json:"lookerColumnSpec,omitempty"`
820
821
822
823 Mode string `json:"mode,omitempty"`
824
825 OrdinalPosition int64 `json:"ordinalPosition,omitempty"`
826
827
828
829
830 RangeElementType *GoogleCloudDatacatalogV1ColumnSchemaFieldElementType `json:"rangeElementType,omitempty"`
831
832
833 Subcolumns []*GoogleCloudDatacatalogV1ColumnSchema `json:"subcolumns,omitempty"`
834
835
836 Type string `json:"type,omitempty"`
837
838
839
840
841
842 ForceSendFields []string `json:"-"`
843
844
845
846
847 NullFields []string `json:"-"`
848 }
849
850 func (s *GoogleCloudDatacatalogV1ColumnSchema) MarshalJSON() ([]byte, error) {
851 type NoMethod GoogleCloudDatacatalogV1ColumnSchema
852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
853 }
854
855
856
857 type GoogleCloudDatacatalogV1ColumnSchemaFieldElementType struct {
858
859 Type string `json:"type,omitempty"`
860
861
862
863
864
865 ForceSendFields []string `json:"-"`
866
867
868
869
870 NullFields []string `json:"-"`
871 }
872
873 func (s *GoogleCloudDatacatalogV1ColumnSchemaFieldElementType) MarshalJSON() ([]byte, error) {
874 type NoMethod GoogleCloudDatacatalogV1ColumnSchemaFieldElementType
875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
876 }
877
878
879
880 type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct {
881
882
883
884
885
886
887
888
889
890 Type string `json:"type,omitempty"`
891
892
893
894
895
896 ForceSendFields []string `json:"-"`
897
898
899
900
901 NullFields []string `json:"-"`
902 }
903
904 func (s *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec) MarshalJSON() ([]byte, error) {
905 type NoMethod GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec
906 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
907 }
908
909
910
911 type GoogleCloudDatacatalogV1CommonUsageStats struct {
912
913 ViewCount int64 `json:"viewCount,omitempty,string"`
914
915
916
917
918
919 ForceSendFields []string `json:"-"`
920
921
922
923
924 NullFields []string `json:"-"`
925 }
926
927 func (s *GoogleCloudDatacatalogV1CommonUsageStats) MarshalJSON() ([]byte, error) {
928 type NoMethod GoogleCloudDatacatalogV1CommonUsageStats
929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
930 }
931
932
933 type GoogleCloudDatacatalogV1Contacts struct {
934
935 People []*GoogleCloudDatacatalogV1ContactsPerson `json:"people,omitempty"`
936
937
938 googleapi.ServerResponse `json:"-"`
939
940
941
942
943
944 ForceSendFields []string `json:"-"`
945
946
947
948
949 NullFields []string `json:"-"`
950 }
951
952 func (s *GoogleCloudDatacatalogV1Contacts) MarshalJSON() ([]byte, error) {
953 type NoMethod GoogleCloudDatacatalogV1Contacts
954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
955 }
956
957
958 type GoogleCloudDatacatalogV1ContactsPerson struct {
959
960 Designation string `json:"designation,omitempty"`
961
962
963 Email string `json:"email,omitempty"`
964
965
966
967
968
969 ForceSendFields []string `json:"-"`
970
971
972
973
974 NullFields []string `json:"-"`
975 }
976
977 func (s *GoogleCloudDatacatalogV1ContactsPerson) MarshalJSON() ([]byte, error) {
978 type NoMethod GoogleCloudDatacatalogV1ContactsPerson
979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
980 }
981
982
983
984 type GoogleCloudDatacatalogV1CrossRegionalSource struct {
985
986 Taxonomy string `json:"taxonomy,omitempty"`
987
988
989
990
991
992 ForceSendFields []string `json:"-"`
993
994
995
996
997 NullFields []string `json:"-"`
998 }
999
1000 func (s *GoogleCloudDatacatalogV1CrossRegionalSource) MarshalJSON() ([]byte, error) {
1001 type NoMethod GoogleCloudDatacatalogV1CrossRegionalSource
1002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1003 }
1004
1005
1006 type GoogleCloudDatacatalogV1DataSource struct {
1007
1008
1009
1010 Resource string `json:"resource,omitempty"`
1011
1012
1013
1014
1015
1016
1017 Service string `json:"service,omitempty"`
1018
1019 SourceEntry string `json:"sourceEntry,omitempty"`
1020
1021 StorageProperties *GoogleCloudDatacatalogV1StorageProperties `json:"storageProperties,omitempty"`
1022
1023
1024
1025
1026
1027 ForceSendFields []string `json:"-"`
1028
1029
1030
1031
1032 NullFields []string `json:"-"`
1033 }
1034
1035 func (s *GoogleCloudDatacatalogV1DataSource) MarshalJSON() ([]byte, error) {
1036 type NoMethod GoogleCloudDatacatalogV1DataSource
1037 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1038 }
1039
1040
1041
1042
1043
1044 type GoogleCloudDatacatalogV1DataSourceConnectionSpec struct {
1045
1046
1047 BigqueryConnectionSpec *GoogleCloudDatacatalogV1BigQueryConnectionSpec `json:"bigqueryConnectionSpec,omitempty"`
1048
1049
1050
1051
1052
1053 ForceSendFields []string `json:"-"`
1054
1055
1056
1057
1058 NullFields []string `json:"-"`
1059 }
1060
1061 func (s *GoogleCloudDatacatalogV1DataSourceConnectionSpec) MarshalJSON() ([]byte, error) {
1062 type NoMethod GoogleCloudDatacatalogV1DataSourceConnectionSpec
1063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1064 }
1065
1066
1067
1068 type GoogleCloudDatacatalogV1DatabaseTableSpec struct {
1069
1070
1071 DatabaseViewSpec *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec `json:"databaseViewSpec,omitempty"`
1072
1073
1074 DataplexTable *GoogleCloudDatacatalogV1DataplexTableSpec `json:"dataplexTable,omitempty"`
1075
1076
1077
1078
1079
1080
1081 Type string `json:"type,omitempty"`
1082
1083
1084
1085
1086
1087 ForceSendFields []string `json:"-"`
1088
1089
1090
1091
1092 NullFields []string `json:"-"`
1093 }
1094
1095 func (s *GoogleCloudDatacatalogV1DatabaseTableSpec) MarshalJSON() ([]byte, error) {
1096 type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpec
1097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1098 }
1099
1100
1101
1102 type GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec struct {
1103
1104 BaseTable string `json:"baseTable,omitempty"`
1105
1106 SqlQuery string `json:"sqlQuery,omitempty"`
1107
1108
1109
1110
1111
1112
1113 ViewType string `json:"viewType,omitempty"`
1114
1115
1116
1117
1118
1119 ForceSendFields []string `json:"-"`
1120
1121
1122
1123
1124 NullFields []string `json:"-"`
1125 }
1126
1127 func (s *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec) MarshalJSON() ([]byte, error) {
1128 type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec
1129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1130 }
1131
1132
1133
1134
1135
1136
1137
1138 type GoogleCloudDatacatalogV1DataplexExternalTable struct {
1139
1140
1141 DataCatalogEntry string `json:"dataCatalogEntry,omitempty"`
1142
1143 FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
1144
1145 GoogleCloudResource string `json:"googleCloudResource,omitempty"`
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159 System string `json:"system,omitempty"`
1160
1161
1162
1163
1164
1165 ForceSendFields []string `json:"-"`
1166
1167
1168
1169
1170 NullFields []string `json:"-"`
1171 }
1172
1173 func (s *GoogleCloudDatacatalogV1DataplexExternalTable) MarshalJSON() ([]byte, error) {
1174 type NoMethod GoogleCloudDatacatalogV1DataplexExternalTable
1175 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1176 }
1177
1178
1179
1180 type GoogleCloudDatacatalogV1DataplexFilesetSpec struct {
1181
1182 DataplexSpec *GoogleCloudDatacatalogV1DataplexSpec `json:"dataplexSpec,omitempty"`
1183
1184
1185
1186
1187
1188 ForceSendFields []string `json:"-"`
1189
1190
1191
1192
1193 NullFields []string `json:"-"`
1194 }
1195
1196 func (s *GoogleCloudDatacatalogV1DataplexFilesetSpec) MarshalJSON() ([]byte, error) {
1197 type NoMethod GoogleCloudDatacatalogV1DataplexFilesetSpec
1198 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1199 }
1200
1201
1202 type GoogleCloudDatacatalogV1DataplexSpec struct {
1203
1204
1205
1206 Asset string `json:"asset,omitempty"`
1207
1208 CompressionFormat string `json:"compressionFormat,omitempty"`
1209
1210 DataFormat *GoogleCloudDatacatalogV1PhysicalSchema `json:"dataFormat,omitempty"`
1211
1212
1213
1214 ProjectId string `json:"projectId,omitempty"`
1215
1216
1217
1218
1219
1220 ForceSendFields []string `json:"-"`
1221
1222
1223
1224
1225 NullFields []string `json:"-"`
1226 }
1227
1228 func (s *GoogleCloudDatacatalogV1DataplexSpec) MarshalJSON() ([]byte, error) {
1229 type NoMethod GoogleCloudDatacatalogV1DataplexSpec
1230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1231 }
1232
1233
1234
1235 type GoogleCloudDatacatalogV1DataplexTableSpec struct {
1236
1237 DataplexSpec *GoogleCloudDatacatalogV1DataplexSpec `json:"dataplexSpec,omitempty"`
1238
1239
1240
1241 ExternalTables []*GoogleCloudDatacatalogV1DataplexExternalTable `json:"externalTables,omitempty"`
1242
1243 UserManaged bool `json:"userManaged,omitempty"`
1244
1245
1246
1247
1248
1249 ForceSendFields []string `json:"-"`
1250
1251
1252
1253
1254 NullFields []string `json:"-"`
1255 }
1256
1257 func (s *GoogleCloudDatacatalogV1DataplexTableSpec) MarshalJSON() ([]byte, error) {
1258 type NoMethod GoogleCloudDatacatalogV1DataplexTableSpec
1259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1260 }
1261
1262
1263
1264 type GoogleCloudDatacatalogV1DatasetSpec struct {
1265
1266 VertexDatasetSpec *GoogleCloudDatacatalogV1VertexDatasetSpec `json:"vertexDatasetSpec,omitempty"`
1267
1268
1269
1270
1271
1272 ForceSendFields []string `json:"-"`
1273
1274
1275
1276
1277 NullFields []string `json:"-"`
1278 }
1279
1280 func (s *GoogleCloudDatacatalogV1DatasetSpec) MarshalJSON() ([]byte, error) {
1281 type NoMethod GoogleCloudDatacatalogV1DatasetSpec
1282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1283 }
1284
1285
1286
1287 type GoogleCloudDatacatalogV1DumpItem struct {
1288
1289 TaggedEntry *GoogleCloudDatacatalogV1TaggedEntry `json:"taggedEntry,omitempty"`
1290
1291
1292
1293
1294
1295 ForceSendFields []string `json:"-"`
1296
1297
1298
1299
1300 NullFields []string `json:"-"`
1301 }
1302
1303 func (s *GoogleCloudDatacatalogV1DumpItem) MarshalJSON() ([]byte, error) {
1304 type NoMethod GoogleCloudDatacatalogV1DumpItem
1305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1306 }
1307
1308
1309
1310
1311
1312
1313
1314
1315 type GoogleCloudDatacatalogV1Entry struct {
1316
1317
1318
1319
1320 BigqueryDateShardedSpec *GoogleCloudDatacatalogV1BigQueryDateShardedSpec `json:"bigqueryDateShardedSpec,omitempty"`
1321
1322
1323 BigqueryTableSpec *GoogleCloudDatacatalogV1BigQueryTableSpec `json:"bigqueryTableSpec,omitempty"`
1324
1325
1326 BusinessContext *GoogleCloudDatacatalogV1BusinessContext `json:"businessContext,omitempty"`
1327
1328
1329 CloudBigtableSystemSpec *GoogleCloudDatacatalogV1CloudBigtableSystemSpec `json:"cloudBigtableSystemSpec,omitempty"`
1330
1331 DataSource *GoogleCloudDatacatalogV1DataSource `json:"dataSource,omitempty"`
1332
1333
1334 DataSourceConnectionSpec *GoogleCloudDatacatalogV1DataSourceConnectionSpec `json:"dataSourceConnectionSpec,omitempty"`
1335
1336
1337 DatabaseTableSpec *GoogleCloudDatacatalogV1DatabaseTableSpec `json:"databaseTableSpec,omitempty"`
1338
1339 DatasetSpec *GoogleCloudDatacatalogV1DatasetSpec `json:"datasetSpec,omitempty"`
1340
1341
1342
1343
1344
1345 Description string `json:"description,omitempty"`
1346
1347
1348 DisplayName string `json:"displayName,omitempty"`
1349
1350 FeatureOnlineStoreSpec *GoogleCloudDatacatalogV1FeatureOnlineStoreSpec `json:"featureOnlineStoreSpec,omitempty"`
1351
1352
1353 FilesetSpec *GoogleCloudDatacatalogV1FilesetSpec `json:"filesetSpec,omitempty"`
1354
1355
1356
1357
1358
1359 FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
1360
1361
1362 GcsFilesetSpec *GoogleCloudDatacatalogV1GcsFilesetSpec `json:"gcsFilesetSpec,omitempty"`
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377 IntegratedSystem string `json:"integratedSystem,omitempty"`
1378
1379
1380
1381 Labels map[string]string `json:"labels,omitempty"`
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393 LinkedResource string `json:"linkedResource,omitempty"`
1394
1395
1396 LookerSystemSpec *GoogleCloudDatacatalogV1LookerSystemSpec `json:"lookerSystemSpec,omitempty"`
1397
1398 ModelSpec *GoogleCloudDatacatalogV1ModelSpec `json:"modelSpec,omitempty"`
1399
1400
1401
1402 Name string `json:"name,omitempty"`
1403
1404
1405 PersonalDetails *GoogleCloudDatacatalogV1PersonalDetails `json:"personalDetails,omitempty"`
1406
1407
1408 RoutineSpec *GoogleCloudDatacatalogV1RoutineSpec `json:"routineSpec,omitempty"`
1409
1410
1411 Schema *GoogleCloudDatacatalogV1Schema `json:"schema,omitempty"`
1412
1413 ServiceSpec *GoogleCloudDatacatalogV1ServiceSpec `json:"serviceSpec,omitempty"`
1414
1415
1416
1417
1418 SourceSystemTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"sourceSystemTimestamps,omitempty"`
1419
1420
1421
1422 SqlDatabaseSystemSpec *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec `json:"sqlDatabaseSystemSpec,omitempty"`
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455 Type string `json:"type,omitempty"`
1456
1457 UsageSignal *GoogleCloudDatacatalogV1UsageSignal `json:"usageSignal,omitempty"`
1458
1459
1460
1461
1462
1463 UserSpecifiedSystem string `json:"userSpecifiedSystem,omitempty"`
1464
1465
1466
1467
1468
1469
1470
1471
1472 UserSpecifiedType string `json:"userSpecifiedType,omitempty"`
1473
1474
1475 googleapi.ServerResponse `json:"-"`
1476
1477
1478
1479
1480
1481 ForceSendFields []string `json:"-"`
1482
1483
1484
1485
1486 NullFields []string `json:"-"`
1487 }
1488
1489 func (s *GoogleCloudDatacatalogV1Entry) MarshalJSON() ([]byte, error) {
1490 type NoMethod GoogleCloudDatacatalogV1Entry
1491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1492 }
1493
1494
1495
1496
1497 type GoogleCloudDatacatalogV1EntryGroup struct {
1498
1499
1500 DataCatalogTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"dataCatalogTimestamps,omitempty"`
1501
1502
1503
1504 Description string `json:"description,omitempty"`
1505
1506
1507 DisplayName string `json:"displayName,omitempty"`
1508
1509
1510
1511 Name string `json:"name,omitempty"`
1512
1513
1514 googleapi.ServerResponse `json:"-"`
1515
1516
1517
1518
1519
1520 ForceSendFields []string `json:"-"`
1521
1522
1523
1524
1525 NullFields []string `json:"-"`
1526 }
1527
1528 func (s *GoogleCloudDatacatalogV1EntryGroup) MarshalJSON() ([]byte, error) {
1529 type NoMethod GoogleCloudDatacatalogV1EntryGroup
1530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1531 }
1532
1533
1534
1535 type GoogleCloudDatacatalogV1EntryOverview struct {
1536
1537
1538
1539
1540 Overview string `json:"overview,omitempty"`
1541
1542
1543 googleapi.ServerResponse `json:"-"`
1544
1545
1546
1547
1548
1549 ForceSendFields []string `json:"-"`
1550
1551
1552
1553
1554 NullFields []string `json:"-"`
1555 }
1556
1557 func (s *GoogleCloudDatacatalogV1EntryOverview) MarshalJSON() ([]byte, error) {
1558 type NoMethod GoogleCloudDatacatalogV1EntryOverview
1559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1560 }
1561
1562
1563
1564 type GoogleCloudDatacatalogV1ExportTaxonomiesResponse struct {
1565
1566 Taxonomies []*GoogleCloudDatacatalogV1SerializedTaxonomy `json:"taxonomies,omitempty"`
1567
1568
1569 googleapi.ServerResponse `json:"-"`
1570
1571
1572
1573
1574
1575 ForceSendFields []string `json:"-"`
1576
1577
1578
1579
1580 NullFields []string `json:"-"`
1581 }
1582
1583 func (s *GoogleCloudDatacatalogV1ExportTaxonomiesResponse) MarshalJSON() ([]byte, error) {
1584 type NoMethod GoogleCloudDatacatalogV1ExportTaxonomiesResponse
1585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1586 }
1587
1588
1589
1590 type GoogleCloudDatacatalogV1FeatureOnlineStoreSpec struct {
1591
1592
1593
1594
1595
1596
1597
1598 StorageType string `json:"storageType,omitempty"`
1599
1600
1601
1602
1603
1604 ForceSendFields []string `json:"-"`
1605
1606
1607
1608
1609 NullFields []string `json:"-"`
1610 }
1611
1612 func (s *GoogleCloudDatacatalogV1FeatureOnlineStoreSpec) MarshalJSON() ([]byte, error) {
1613 type NoMethod GoogleCloudDatacatalogV1FeatureOnlineStoreSpec
1614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1615 }
1616
1617 type GoogleCloudDatacatalogV1FieldType struct {
1618
1619 EnumType *GoogleCloudDatacatalogV1FieldTypeEnumType `json:"enumType,omitempty"`
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629 PrimitiveType string `json:"primitiveType,omitempty"`
1630
1631
1632
1633
1634
1635 ForceSendFields []string `json:"-"`
1636
1637
1638
1639
1640 NullFields []string `json:"-"`
1641 }
1642
1643 func (s *GoogleCloudDatacatalogV1FieldType) MarshalJSON() ([]byte, error) {
1644 type NoMethod GoogleCloudDatacatalogV1FieldType
1645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1646 }
1647
1648 type GoogleCloudDatacatalogV1FieldTypeEnumType struct {
1649
1650
1651
1652
1653
1654
1655 AllowedValues []*GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue `json:"allowedValues,omitempty"`
1656
1657
1658
1659
1660
1661 ForceSendFields []string `json:"-"`
1662
1663
1664
1665
1666 NullFields []string `json:"-"`
1667 }
1668
1669 func (s *GoogleCloudDatacatalogV1FieldTypeEnumType) MarshalJSON() ([]byte, error) {
1670 type NoMethod GoogleCloudDatacatalogV1FieldTypeEnumType
1671 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1672 }
1673
1674 type GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue struct {
1675
1676
1677
1678
1679 DisplayName string `json:"displayName,omitempty"`
1680
1681
1682
1683
1684
1685 ForceSendFields []string `json:"-"`
1686
1687
1688
1689
1690 NullFields []string `json:"-"`
1691 }
1692
1693 func (s *GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue) MarshalJSON() ([]byte, error) {
1694 type NoMethod GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue
1695 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1696 }
1697
1698
1699
1700 type GoogleCloudDatacatalogV1FilesetSpec struct {
1701
1702
1703 DataplexFileset *GoogleCloudDatacatalogV1DataplexFilesetSpec `json:"dataplexFileset,omitempty"`
1704
1705
1706
1707
1708
1709 ForceSendFields []string `json:"-"`
1710
1711
1712
1713
1714 NullFields []string `json:"-"`
1715 }
1716
1717 func (s *GoogleCloudDatacatalogV1FilesetSpec) MarshalJSON() ([]byte, error) {
1718 type NoMethod GoogleCloudDatacatalogV1FilesetSpec
1719 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1720 }
1721
1722
1723
1724 type GoogleCloudDatacatalogV1GcsFileSpec struct {
1725
1726 FilePath string `json:"filePath,omitempty"`
1727
1728
1729 GcsTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"gcsTimestamps,omitempty"`
1730
1731 SizeBytes int64 `json:"sizeBytes,omitempty,string"`
1732
1733
1734
1735
1736
1737 ForceSendFields []string `json:"-"`
1738
1739
1740
1741
1742 NullFields []string `json:"-"`
1743 }
1744
1745 func (s *GoogleCloudDatacatalogV1GcsFileSpec) MarshalJSON() ([]byte, error) {
1746 type NoMethod GoogleCloudDatacatalogV1GcsFileSpec
1747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1748 }
1749
1750
1751
1752 type GoogleCloudDatacatalogV1GcsFilesetSpec struct {
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770 FilePatterns []string `json:"filePatterns,omitempty"`
1771
1772
1773 SampleGcsFileSpecs []*GoogleCloudDatacatalogV1GcsFileSpec `json:"sampleGcsFileSpecs,omitempty"`
1774
1775
1776
1777
1778
1779 ForceSendFields []string `json:"-"`
1780
1781
1782
1783
1784 NullFields []string `json:"-"`
1785 }
1786
1787 func (s *GoogleCloudDatacatalogV1GcsFilesetSpec) MarshalJSON() ([]byte, error) {
1788 type NoMethod GoogleCloudDatacatalogV1GcsFilesetSpec
1789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1790 }
1791
1792
1793
1794 type GoogleCloudDatacatalogV1ImportEntriesMetadata struct {
1795
1796
1797
1798
1799 Errors []*Status `json:"errors,omitempty"`
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809 State string `json:"state,omitempty"`
1810
1811
1812
1813
1814
1815 ForceSendFields []string `json:"-"`
1816
1817
1818
1819
1820 NullFields []string `json:"-"`
1821 }
1822
1823 func (s *GoogleCloudDatacatalogV1ImportEntriesMetadata) MarshalJSON() ([]byte, error) {
1824 type NoMethod GoogleCloudDatacatalogV1ImportEntriesMetadata
1825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1826 }
1827
1828
1829
1830 type GoogleCloudDatacatalogV1ImportEntriesRequest struct {
1831
1832
1833 GcsBucketPath string `json:"gcsBucketPath,omitempty"`
1834
1835
1836 JobId string `json:"jobId,omitempty"`
1837
1838
1839
1840
1841
1842 ForceSendFields []string `json:"-"`
1843
1844
1845
1846
1847 NullFields []string `json:"-"`
1848 }
1849
1850 func (s *GoogleCloudDatacatalogV1ImportEntriesRequest) MarshalJSON() ([]byte, error) {
1851 type NoMethod GoogleCloudDatacatalogV1ImportEntriesRequest
1852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1853 }
1854
1855
1856
1857 type GoogleCloudDatacatalogV1ImportEntriesResponse struct {
1858
1859
1860 DeletedEntriesCount int64 `json:"deletedEntriesCount,omitempty,string"`
1861
1862
1863 UpsertedEntriesCount int64 `json:"upsertedEntriesCount,omitempty,string"`
1864
1865
1866
1867
1868
1869 ForceSendFields []string `json:"-"`
1870
1871
1872
1873
1874 NullFields []string `json:"-"`
1875 }
1876
1877 func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, error) {
1878 type NoMethod GoogleCloudDatacatalogV1ImportEntriesResponse
1879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1880 }
1881
1882
1883
1884 type GoogleCloudDatacatalogV1ImportTaxonomiesRequest struct {
1885
1886 CrossRegionalSource *GoogleCloudDatacatalogV1CrossRegionalSource `json:"crossRegionalSource,omitempty"`
1887
1888 InlineSource *GoogleCloudDatacatalogV1InlineSource `json:"inlineSource,omitempty"`
1889
1890
1891
1892
1893
1894 ForceSendFields []string `json:"-"`
1895
1896
1897
1898
1899 NullFields []string `json:"-"`
1900 }
1901
1902 func (s *GoogleCloudDatacatalogV1ImportTaxonomiesRequest) MarshalJSON() ([]byte, error) {
1903 type NoMethod GoogleCloudDatacatalogV1ImportTaxonomiesRequest
1904 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1905 }
1906
1907
1908
1909 type GoogleCloudDatacatalogV1ImportTaxonomiesResponse struct {
1910
1911 Taxonomies []*GoogleCloudDatacatalogV1Taxonomy `json:"taxonomies,omitempty"`
1912
1913
1914 googleapi.ServerResponse `json:"-"`
1915
1916
1917
1918
1919
1920 ForceSendFields []string `json:"-"`
1921
1922
1923
1924
1925 NullFields []string `json:"-"`
1926 }
1927
1928 func (s *GoogleCloudDatacatalogV1ImportTaxonomiesResponse) MarshalJSON() ([]byte, error) {
1929 type NoMethod GoogleCloudDatacatalogV1ImportTaxonomiesResponse
1930 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1931 }
1932
1933
1934
1935 type GoogleCloudDatacatalogV1InlineSource struct {
1936
1937 Taxonomies []*GoogleCloudDatacatalogV1SerializedTaxonomy `json:"taxonomies,omitempty"`
1938
1939
1940
1941
1942
1943 ForceSendFields []string `json:"-"`
1944
1945
1946
1947
1948 NullFields []string `json:"-"`
1949 }
1950
1951 func (s *GoogleCloudDatacatalogV1InlineSource) MarshalJSON() ([]byte, error) {
1952 type NoMethod GoogleCloudDatacatalogV1InlineSource
1953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1954 }
1955
1956
1957
1958 type GoogleCloudDatacatalogV1ListEntriesResponse struct {
1959
1960 Entries []*GoogleCloudDatacatalogV1Entry `json:"entries,omitempty"`
1961
1962
1963 NextPageToken string `json:"nextPageToken,omitempty"`
1964
1965
1966 googleapi.ServerResponse `json:"-"`
1967
1968
1969
1970
1971
1972 ForceSendFields []string `json:"-"`
1973
1974
1975
1976
1977 NullFields []string `json:"-"`
1978 }
1979
1980 func (s *GoogleCloudDatacatalogV1ListEntriesResponse) MarshalJSON() ([]byte, error) {
1981 type NoMethod GoogleCloudDatacatalogV1ListEntriesResponse
1982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1983 }
1984
1985
1986
1987 type GoogleCloudDatacatalogV1ListEntryGroupsResponse struct {
1988
1989 EntryGroups []*GoogleCloudDatacatalogV1EntryGroup `json:"entryGroups,omitempty"`
1990
1991
1992 NextPageToken string `json:"nextPageToken,omitempty"`
1993
1994
1995 googleapi.ServerResponse `json:"-"`
1996
1997
1998
1999
2000
2001 ForceSendFields []string `json:"-"`
2002
2003
2004
2005
2006 NullFields []string `json:"-"`
2007 }
2008
2009 func (s *GoogleCloudDatacatalogV1ListEntryGroupsResponse) MarshalJSON() ([]byte, error) {
2010 type NoMethod GoogleCloudDatacatalogV1ListEntryGroupsResponse
2011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2012 }
2013
2014
2015
2016 type GoogleCloudDatacatalogV1ListPolicyTagsResponse struct {
2017
2018
2019 NextPageToken string `json:"nextPageToken,omitempty"`
2020
2021 PolicyTags []*GoogleCloudDatacatalogV1PolicyTag `json:"policyTags,omitempty"`
2022
2023
2024 googleapi.ServerResponse `json:"-"`
2025
2026
2027
2028
2029
2030 ForceSendFields []string `json:"-"`
2031
2032
2033
2034
2035 NullFields []string `json:"-"`
2036 }
2037
2038 func (s *GoogleCloudDatacatalogV1ListPolicyTagsResponse) MarshalJSON() ([]byte, error) {
2039 type NoMethod GoogleCloudDatacatalogV1ListPolicyTagsResponse
2040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2041 }
2042
2043
2044 type GoogleCloudDatacatalogV1ListTagsResponse struct {
2045
2046
2047 NextPageToken string `json:"nextPageToken,omitempty"`
2048
2049 Tags []*GoogleCloudDatacatalogV1Tag `json:"tags,omitempty"`
2050
2051
2052 googleapi.ServerResponse `json:"-"`
2053
2054
2055
2056
2057
2058 ForceSendFields []string `json:"-"`
2059
2060
2061
2062
2063 NullFields []string `json:"-"`
2064 }
2065
2066 func (s *GoogleCloudDatacatalogV1ListTagsResponse) MarshalJSON() ([]byte, error) {
2067 type NoMethod GoogleCloudDatacatalogV1ListTagsResponse
2068 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2069 }
2070
2071
2072
2073 type GoogleCloudDatacatalogV1ListTaxonomiesResponse struct {
2074
2075
2076 NextPageToken string `json:"nextPageToken,omitempty"`
2077
2078 Taxonomies []*GoogleCloudDatacatalogV1Taxonomy `json:"taxonomies,omitempty"`
2079
2080
2081 googleapi.ServerResponse `json:"-"`
2082
2083
2084
2085
2086
2087 ForceSendFields []string `json:"-"`
2088
2089
2090
2091
2092 NullFields []string `json:"-"`
2093 }
2094
2095 func (s *GoogleCloudDatacatalogV1ListTaxonomiesResponse) MarshalJSON() ([]byte, error) {
2096 type NoMethod GoogleCloudDatacatalogV1ListTaxonomiesResponse
2097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2098 }
2099
2100
2101
2102 type GoogleCloudDatacatalogV1LookerSystemSpec struct {
2103
2104
2105 ParentInstanceDisplayName string `json:"parentInstanceDisplayName,omitempty"`
2106
2107
2108 ParentInstanceId string `json:"parentInstanceId,omitempty"`
2109
2110
2111 ParentModelDisplayName string `json:"parentModelDisplayName,omitempty"`
2112
2113 ParentModelId string `json:"parentModelId,omitempty"`
2114
2115 ParentViewDisplayName string `json:"parentViewDisplayName,omitempty"`
2116
2117 ParentViewId string `json:"parentViewId,omitempty"`
2118
2119
2120
2121
2122
2123 ForceSendFields []string `json:"-"`
2124
2125
2126
2127
2128 NullFields []string `json:"-"`
2129 }
2130
2131 func (s *GoogleCloudDatacatalogV1LookerSystemSpec) MarshalJSON() ([]byte, error) {
2132 type NoMethod GoogleCloudDatacatalogV1LookerSystemSpec
2133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2134 }
2135
2136
2137
2138 type GoogleCloudDatacatalogV1ModelSpec struct {
2139
2140 VertexModelSpec *GoogleCloudDatacatalogV1VertexModelSpec `json:"vertexModelSpec,omitempty"`
2141
2142
2143
2144
2145
2146 ForceSendFields []string `json:"-"`
2147
2148
2149
2150
2151 NullFields []string `json:"-"`
2152 }
2153
2154 func (s *GoogleCloudDatacatalogV1ModelSpec) MarshalJSON() ([]byte, error) {
2155 type NoMethod GoogleCloudDatacatalogV1ModelSpec
2156 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2157 }
2158
2159
2160
2161 type GoogleCloudDatacatalogV1ModifyEntryContactsRequest struct {
2162
2163 Contacts *GoogleCloudDatacatalogV1Contacts `json:"contacts,omitempty"`
2164
2165
2166
2167
2168
2169 ForceSendFields []string `json:"-"`
2170
2171
2172
2173
2174 NullFields []string `json:"-"`
2175 }
2176
2177 func (s *GoogleCloudDatacatalogV1ModifyEntryContactsRequest) MarshalJSON() ([]byte, error) {
2178 type NoMethod GoogleCloudDatacatalogV1ModifyEntryContactsRequest
2179 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2180 }
2181
2182
2183
2184 type GoogleCloudDatacatalogV1ModifyEntryOverviewRequest struct {
2185
2186 EntryOverview *GoogleCloudDatacatalogV1EntryOverview `json:"entryOverview,omitempty"`
2187
2188
2189
2190
2191
2192 ForceSendFields []string `json:"-"`
2193
2194
2195
2196
2197 NullFields []string `json:"-"`
2198 }
2199
2200 func (s *GoogleCloudDatacatalogV1ModifyEntryOverviewRequest) MarshalJSON() ([]byte, error) {
2201 type NoMethod GoogleCloudDatacatalogV1ModifyEntryOverviewRequest
2202 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2203 }
2204
2205
2206
2207 type GoogleCloudDatacatalogV1PersonalDetails struct {
2208
2209 StarTime string `json:"starTime,omitempty"`
2210
2211 Starred bool `json:"starred,omitempty"`
2212
2213
2214
2215
2216
2217 ForceSendFields []string `json:"-"`
2218
2219
2220
2221
2222 NullFields []string `json:"-"`
2223 }
2224
2225 func (s *GoogleCloudDatacatalogV1PersonalDetails) MarshalJSON() ([]byte, error) {
2226 type NoMethod GoogleCloudDatacatalogV1PersonalDetails
2227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2228 }
2229
2230
2231
2232
2233 type GoogleCloudDatacatalogV1PhysicalSchema struct {
2234
2235 Avro *GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema `json:"avro,omitempty"`
2236
2237 Csv *GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema `json:"csv,omitempty"`
2238
2239 Orc *GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema `json:"orc,omitempty"`
2240
2241 Parquet *GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema `json:"parquet,omitempty"`
2242
2243 Protobuf *GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema `json:"protobuf,omitempty"`
2244
2245 Thrift *GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema `json:"thrift,omitempty"`
2246
2247
2248
2249
2250
2251 ForceSendFields []string `json:"-"`
2252
2253
2254
2255
2256 NullFields []string `json:"-"`
2257 }
2258
2259 func (s *GoogleCloudDatacatalogV1PhysicalSchema) MarshalJSON() ([]byte, error) {
2260 type NoMethod GoogleCloudDatacatalogV1PhysicalSchema
2261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2262 }
2263
2264
2265
2266 type GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema struct {
2267
2268 Text string `json:"text,omitempty"`
2269
2270
2271
2272
2273
2274 ForceSendFields []string `json:"-"`
2275
2276
2277
2278
2279 NullFields []string `json:"-"`
2280 }
2281
2282 func (s *GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema) MarshalJSON() ([]byte, error) {
2283 type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema
2284 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2285 }
2286
2287
2288
2289 type GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema struct {
2290 }
2291
2292
2293
2294 type GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema struct {
2295 }
2296
2297
2298
2299 type GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema struct {
2300 }
2301
2302
2303
2304 type GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema struct {
2305
2306 Text string `json:"text,omitempty"`
2307
2308
2309
2310
2311
2312 ForceSendFields []string `json:"-"`
2313
2314
2315
2316
2317 NullFields []string `json:"-"`
2318 }
2319
2320 func (s *GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema) MarshalJSON() ([]byte, error) {
2321 type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema
2322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2323 }
2324
2325
2326 type GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema struct {
2327
2328 Text string `json:"text,omitempty"`
2329
2330
2331
2332
2333
2334 ForceSendFields []string `json:"-"`
2335
2336
2337
2338
2339 NullFields []string `json:"-"`
2340 }
2341
2342 func (s *GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema) MarshalJSON() ([]byte, error) {
2343 type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema
2344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2345 }
2346
2347
2348
2349
2350
2351 type GoogleCloudDatacatalogV1PolicyTag struct {
2352
2353
2354 ChildPolicyTags []string `json:"childPolicyTags,omitempty"`
2355
2356
2357
2358
2359 Description string `json:"description,omitempty"`
2360
2361
2362
2363
2364 DisplayName string `json:"displayName,omitempty"`
2365
2366
2367 Name string `json:"name,omitempty"`
2368
2369
2370
2371
2372
2373 ParentPolicyTag string `json:"parentPolicyTag,omitempty"`
2374
2375
2376 googleapi.ServerResponse `json:"-"`
2377
2378
2379
2380
2381
2382 ForceSendFields []string `json:"-"`
2383
2384
2385
2386
2387 NullFields []string `json:"-"`
2388 }
2389
2390 func (s *GoogleCloudDatacatalogV1PolicyTag) MarshalJSON() ([]byte, error) {
2391 type NoMethod GoogleCloudDatacatalogV1PolicyTag
2392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2393 }
2394
2395
2396
2397 type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct {
2398
2399
2400 Errors map[string]Status `json:"errors,omitempty"`
2401
2402
2403
2404
2405
2406
2407
2408
2409 State string `json:"state,omitempty"`
2410
2411
2412
2413
2414
2415 ForceSendFields []string `json:"-"`
2416
2417
2418
2419
2420 NullFields []string `json:"-"`
2421 }
2422
2423 func (s *GoogleCloudDatacatalogV1ReconcileTagsMetadata) MarshalJSON() ([]byte, error) {
2424 type NoMethod GoogleCloudDatacatalogV1ReconcileTagsMetadata
2425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2426 }
2427
2428
2429
2430 type GoogleCloudDatacatalogV1ReconcileTagsRequest struct {
2431
2432
2433
2434 ForceDeleteMissing bool `json:"forceDeleteMissing,omitempty"`
2435
2436
2437 TagTemplate string `json:"tagTemplate,omitempty"`
2438
2439
2440
2441 Tags []*GoogleCloudDatacatalogV1Tag `json:"tags,omitempty"`
2442
2443
2444
2445
2446
2447 ForceSendFields []string `json:"-"`
2448
2449
2450
2451
2452 NullFields []string `json:"-"`
2453 }
2454
2455 func (s *GoogleCloudDatacatalogV1ReconcileTagsRequest) MarshalJSON() ([]byte, error) {
2456 type NoMethod GoogleCloudDatacatalogV1ReconcileTagsRequest
2457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2458 }
2459
2460
2461
2462 type GoogleCloudDatacatalogV1ReconcileTagsResponse struct {
2463
2464 CreatedTagsCount int64 `json:"createdTagsCount,omitempty,string"`
2465
2466 DeletedTagsCount int64 `json:"deletedTagsCount,omitempty,string"`
2467
2468 UpdatedTagsCount int64 `json:"updatedTagsCount,omitempty,string"`
2469
2470
2471
2472
2473
2474 ForceSendFields []string `json:"-"`
2475
2476
2477
2478
2479 NullFields []string `json:"-"`
2480 }
2481
2482 func (s *GoogleCloudDatacatalogV1ReconcileTagsResponse) MarshalJSON() ([]byte, error) {
2483 type NoMethod GoogleCloudDatacatalogV1ReconcileTagsResponse
2484 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2485 }
2486
2487
2488
2489 type GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest struct {
2490
2491
2492 NewEnumValueDisplayName string `json:"newEnumValueDisplayName,omitempty"`
2493
2494
2495
2496
2497
2498 ForceSendFields []string `json:"-"`
2499
2500
2501
2502
2503 NullFields []string `json:"-"`
2504 }
2505
2506 func (s *GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest) MarshalJSON() ([]byte, error) {
2507 type NoMethod GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
2508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2509 }
2510
2511
2512
2513 type GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest struct {
2514
2515
2516 NewTagTemplateFieldId string `json:"newTagTemplateFieldId,omitempty"`
2517
2518
2519
2520
2521
2522 ForceSendFields []string `json:"-"`
2523
2524
2525
2526
2527 NullFields []string `json:"-"`
2528 }
2529
2530 func (s *GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest) MarshalJSON() ([]byte, error) {
2531 type NoMethod GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest
2532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2533 }
2534
2535
2536
2537 type GoogleCloudDatacatalogV1ReplaceTaxonomyRequest struct {
2538
2539
2540 SerializedTaxonomy *GoogleCloudDatacatalogV1SerializedTaxonomy `json:"serializedTaxonomy,omitempty"`
2541
2542
2543
2544
2545
2546 ForceSendFields []string `json:"-"`
2547
2548
2549
2550
2551 NullFields []string `json:"-"`
2552 }
2553
2554 func (s *GoogleCloudDatacatalogV1ReplaceTaxonomyRequest) MarshalJSON() ([]byte, error) {
2555 type NoMethod GoogleCloudDatacatalogV1ReplaceTaxonomyRequest
2556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2557 }
2558
2559
2560
2561 type GoogleCloudDatacatalogV1RoutineSpec struct {
2562
2563 BigqueryRoutineSpec *GoogleCloudDatacatalogV1BigQueryRoutineSpec `json:"bigqueryRoutineSpec,omitempty"`
2564
2565 DefinitionBody string `json:"definitionBody,omitempty"`
2566
2567
2568
2569 Language string `json:"language,omitempty"`
2570
2571
2572 ReturnType string `json:"returnType,omitempty"`
2573
2574 RoutineArguments []*GoogleCloudDatacatalogV1RoutineSpecArgument `json:"routineArguments,omitempty"`
2575
2576
2577
2578
2579
2580
2581 RoutineType string `json:"routineType,omitempty"`
2582
2583
2584
2585
2586
2587 ForceSendFields []string `json:"-"`
2588
2589
2590
2591
2592 NullFields []string `json:"-"`
2593 }
2594
2595 func (s *GoogleCloudDatacatalogV1RoutineSpec) MarshalJSON() ([]byte, error) {
2596 type NoMethod GoogleCloudDatacatalogV1RoutineSpec
2597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2598 }
2599
2600
2601
2602 type GoogleCloudDatacatalogV1RoutineSpecArgument struct {
2603
2604
2605
2606
2607
2608
2609
2610 Mode string `json:"mode,omitempty"`
2611
2612
2613 Name string `json:"name,omitempty"`
2614
2615
2616 Type string `json:"type,omitempty"`
2617
2618
2619
2620
2621
2622 ForceSendFields []string `json:"-"`
2623
2624
2625
2626
2627 NullFields []string `json:"-"`
2628 }
2629
2630 func (s *GoogleCloudDatacatalogV1RoutineSpecArgument) MarshalJSON() ([]byte, error) {
2631 type NoMethod GoogleCloudDatacatalogV1RoutineSpecArgument
2632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2633 }
2634
2635
2636
2637 type GoogleCloudDatacatalogV1Schema struct {
2638
2639
2640
2641 Columns []*GoogleCloudDatacatalogV1ColumnSchema `json:"columns,omitempty"`
2642
2643
2644
2645
2646
2647 ForceSendFields []string `json:"-"`
2648
2649
2650
2651
2652 NullFields []string `json:"-"`
2653 }
2654
2655 func (s *GoogleCloudDatacatalogV1Schema) MarshalJSON() ([]byte, error) {
2656 type NoMethod GoogleCloudDatacatalogV1Schema
2657 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2658 }
2659
2660
2661
2662 type GoogleCloudDatacatalogV1SearchCatalogRequest struct {
2663
2664
2665
2666
2667
2668
2669 AdminSearch bool `json:"adminSearch,omitempty"`
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680 OrderBy string `json:"orderBy,omitempty"`
2681
2682
2683
2684 PageSize int64 `json:"pageSize,omitempty"`
2685
2686
2687
2688
2689 PageToken string `json:"pageToken,omitempty"`
2690
2691
2692
2693
2694
2695
2696 Query string `json:"query,omitempty"`
2697
2698
2699
2700
2701 Scope *GoogleCloudDatacatalogV1SearchCatalogRequestScope `json:"scope,omitempty"`
2702
2703
2704
2705
2706
2707 ForceSendFields []string `json:"-"`
2708
2709
2710
2711
2712 NullFields []string `json:"-"`
2713 }
2714
2715 func (s *GoogleCloudDatacatalogV1SearchCatalogRequest) MarshalJSON() ([]byte, error) {
2716 type NoMethod GoogleCloudDatacatalogV1SearchCatalogRequest
2717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2718 }
2719
2720
2721
2722 type GoogleCloudDatacatalogV1SearchCatalogRequestScope struct {
2723
2724
2725
2726 IncludeGcpPublicDatasets bool `json:"includeGcpPublicDatasets,omitempty"`
2727
2728
2729
2730 IncludeOrgIds []string `json:"includeOrgIds,omitempty"`
2731
2732
2733
2734 IncludeProjectIds []string `json:"includeProjectIds,omitempty"`
2735
2736
2737 IncludePublicTagTemplates bool `json:"includePublicTagTemplates,omitempty"`
2738
2739
2740
2741
2742
2743
2744
2745
2746 RestrictedLocations []string `json:"restrictedLocations,omitempty"`
2747
2748
2749 StarredOnly bool `json:"starredOnly,omitempty"`
2750
2751
2752
2753
2754
2755 ForceSendFields []string `json:"-"`
2756
2757
2758
2759
2760 NullFields []string `json:"-"`
2761 }
2762
2763 func (s *GoogleCloudDatacatalogV1SearchCatalogRequestScope) MarshalJSON() ([]byte, error) {
2764 type NoMethod GoogleCloudDatacatalogV1SearchCatalogRequestScope
2765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2766 }
2767
2768
2769
2770 type GoogleCloudDatacatalogV1SearchCatalogResponse struct {
2771
2772
2773 NextPageToken string `json:"nextPageToken,omitempty"`
2774
2775 Results []*GoogleCloudDatacatalogV1SearchCatalogResult `json:"results,omitempty"`
2776
2777 TotalSize int64 `json:"totalSize,omitempty"`
2778
2779
2780
2781
2782 Unreachable []string `json:"unreachable,omitempty"`
2783
2784
2785 googleapi.ServerResponse `json:"-"`
2786
2787
2788
2789
2790
2791 ForceSendFields []string `json:"-"`
2792
2793
2794
2795
2796 NullFields []string `json:"-"`
2797 }
2798
2799 func (s *GoogleCloudDatacatalogV1SearchCatalogResponse) MarshalJSON() ([]byte, error) {
2800 type NoMethod GoogleCloudDatacatalogV1SearchCatalogResponse
2801 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2802 }
2803
2804
2805
2806
2807 type GoogleCloudDatacatalogV1SearchCatalogResult struct {
2808
2809
2810 Description string `json:"description,omitempty"`
2811
2812 DisplayName string `json:"displayName,omitempty"`
2813
2814
2815
2816
2817
2818
2819
2820 FullyQualifiedName string `json:"fullyQualifiedName,omitempty"`
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836 IntegratedSystem string `json:"integratedSystem,omitempty"`
2837
2838
2839
2840
2841
2842 LinkedResource string `json:"linkedResource,omitempty"`
2843
2844
2845 ModifyTime string `json:"modifyTime,omitempty"`
2846
2847
2848
2849
2850 RelativeResourceName string `json:"relativeResourceName,omitempty"`
2851
2852
2853
2854 SearchResultSubtype string `json:"searchResultSubtype,omitempty"`
2855
2856
2857
2858
2859
2860
2861
2862
2863 SearchResultType string `json:"searchResultType,omitempty"`
2864
2865
2866 UserSpecifiedSystem string `json:"userSpecifiedSystem,omitempty"`
2867
2868
2869
2870
2871
2872 ForceSendFields []string `json:"-"`
2873
2874
2875
2876
2877 NullFields []string `json:"-"`
2878 }
2879
2880 func (s *GoogleCloudDatacatalogV1SearchCatalogResult) MarshalJSON() ([]byte, error) {
2881 type NoMethod GoogleCloudDatacatalogV1SearchCatalogResult
2882 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2883 }
2884
2885
2886
2887 type GoogleCloudDatacatalogV1SerializedPolicyTag struct {
2888
2889 ChildPolicyTags []*GoogleCloudDatacatalogV1SerializedPolicyTag `json:"childPolicyTags,omitempty"`
2890
2891
2892 Description string `json:"description,omitempty"`
2893
2894
2895 DisplayName string `json:"displayName,omitempty"`
2896
2897
2898 PolicyTag string `json:"policyTag,omitempty"`
2899
2900
2901
2902
2903
2904 ForceSendFields []string `json:"-"`
2905
2906
2907
2908
2909 NullFields []string `json:"-"`
2910 }
2911
2912 func (s *GoogleCloudDatacatalogV1SerializedPolicyTag) MarshalJSON() ([]byte, error) {
2913 type NoMethod GoogleCloudDatacatalogV1SerializedPolicyTag
2914 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2915 }
2916
2917
2918
2919
2920 type GoogleCloudDatacatalogV1SerializedTaxonomy struct {
2921
2922
2923
2924
2925
2926
2927
2928 ActivatedPolicyTypes []string `json:"activatedPolicyTypes,omitempty"`
2929
2930
2931 Description string `json:"description,omitempty"`
2932
2933
2934 DisplayName string `json:"displayName,omitempty"`
2935
2936 PolicyTags []*GoogleCloudDatacatalogV1SerializedPolicyTag `json:"policyTags,omitempty"`
2937
2938
2939
2940
2941
2942 ForceSendFields []string `json:"-"`
2943
2944
2945
2946
2947 NullFields []string `json:"-"`
2948 }
2949
2950 func (s *GoogleCloudDatacatalogV1SerializedTaxonomy) MarshalJSON() ([]byte, error) {
2951 type NoMethod GoogleCloudDatacatalogV1SerializedTaxonomy
2952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2953 }
2954
2955
2956
2957 type GoogleCloudDatacatalogV1ServiceSpec struct {
2958
2959
2960 CloudBigtableInstanceSpec *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec `json:"cloudBigtableInstanceSpec,omitempty"`
2961
2962
2963
2964
2965
2966 ForceSendFields []string `json:"-"`
2967
2968
2969
2970
2971 NullFields []string `json:"-"`
2972 }
2973
2974 func (s *GoogleCloudDatacatalogV1ServiceSpec) MarshalJSON() ([]byte, error) {
2975 type NoMethod GoogleCloudDatacatalogV1ServiceSpec
2976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2977 }
2978
2979
2980
2981 type GoogleCloudDatacatalogV1SqlDatabaseSystemSpec struct {
2982
2983 DatabaseVersion string `json:"databaseVersion,omitempty"`
2984
2985
2986
2987 InstanceHost string `json:"instanceHost,omitempty"`
2988
2989
2990
2991 SqlEngine string `json:"sqlEngine,omitempty"`
2992
2993
2994
2995
2996
2997 ForceSendFields []string `json:"-"`
2998
2999
3000
3001
3002 NullFields []string `json:"-"`
3003 }
3004
3005 func (s *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec) MarshalJSON() ([]byte, error) {
3006 type NoMethod GoogleCloudDatacatalogV1SqlDatabaseSystemSpec
3007 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3008 }
3009
3010
3011 type GoogleCloudDatacatalogV1StarEntryRequest struct {
3012 }
3013
3014
3015
3016 type GoogleCloudDatacatalogV1StarEntryResponse struct {
3017
3018 googleapi.ServerResponse `json:"-"`
3019 }
3020
3021
3022
3023 type GoogleCloudDatacatalogV1StorageProperties struct {
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036 FilePattern []string `json:"filePattern,omitempty"`
3037
3038 FileType string `json:"fileType,omitempty"`
3039
3040
3041
3042
3043
3044 ForceSendFields []string `json:"-"`
3045
3046
3047
3048
3049 NullFields []string `json:"-"`
3050 }
3051
3052 func (s *GoogleCloudDatacatalogV1StorageProperties) MarshalJSON() ([]byte, error) {
3053 type NoMethod GoogleCloudDatacatalogV1StorageProperties
3054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3055 }
3056
3057
3058
3059 type GoogleCloudDatacatalogV1SystemTimestamps struct {
3060
3061 CreateTime string `json:"createTime,omitempty"`
3062
3063
3064 ExpireTime string `json:"expireTime,omitempty"`
3065
3066
3067
3068
3069 UpdateTime string `json:"updateTime,omitempty"`
3070
3071
3072
3073
3074
3075 ForceSendFields []string `json:"-"`
3076
3077
3078
3079
3080 NullFields []string `json:"-"`
3081 }
3082
3083 func (s *GoogleCloudDatacatalogV1SystemTimestamps) MarshalJSON() ([]byte, error) {
3084 type NoMethod GoogleCloudDatacatalogV1SystemTimestamps
3085 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3086 }
3087
3088
3089 type GoogleCloudDatacatalogV1TableSpec struct {
3090
3091
3092
3093
3094
3095 GroupedEntry string `json:"groupedEntry,omitempty"`
3096
3097
3098
3099
3100
3101 ForceSendFields []string `json:"-"`
3102
3103
3104
3105
3106 NullFields []string `json:"-"`
3107 }
3108
3109 func (s *GoogleCloudDatacatalogV1TableSpec) MarshalJSON() ([]byte, error) {
3110 type NoMethod GoogleCloudDatacatalogV1TableSpec
3111 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3112 }
3113
3114
3115
3116
3117
3118
3119 type GoogleCloudDatacatalogV1Tag struct {
3120
3121
3122
3123
3124 Column string `json:"column,omitempty"`
3125
3126
3127
3128 Fields map[string]GoogleCloudDatacatalogV1TagField `json:"fields,omitempty"`
3129
3130
3131
3132 Name string `json:"name,omitempty"`
3133
3134
3135
3136
3137 Template string `json:"template,omitempty"`
3138
3139 TemplateDisplayName string `json:"templateDisplayName,omitempty"`
3140
3141
3142 googleapi.ServerResponse `json:"-"`
3143
3144
3145
3146
3147
3148 ForceSendFields []string `json:"-"`
3149
3150
3151
3152
3153 NullFields []string `json:"-"`
3154 }
3155
3156 func (s *GoogleCloudDatacatalogV1Tag) MarshalJSON() ([]byte, error) {
3157 type NoMethod GoogleCloudDatacatalogV1Tag
3158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3159 }
3160
3161
3162
3163 type GoogleCloudDatacatalogV1TagField struct {
3164
3165 BoolValue bool `json:"boolValue,omitempty"`
3166
3167 DisplayName string `json:"displayName,omitempty"`
3168
3169 DoubleValue float64 `json:"doubleValue,omitempty"`
3170
3171
3172 EnumValue *GoogleCloudDatacatalogV1TagFieldEnumValue `json:"enumValue,omitempty"`
3173
3174
3175
3176
3177 Order int64 `json:"order,omitempty"`
3178
3179
3180
3181 RichtextValue string `json:"richtextValue,omitempty"`
3182
3183
3184 StringValue string `json:"stringValue,omitempty"`
3185
3186 TimestampValue string `json:"timestampValue,omitempty"`
3187
3188
3189
3190
3191
3192 ForceSendFields []string `json:"-"`
3193
3194
3195
3196
3197 NullFields []string `json:"-"`
3198 }
3199
3200 func (s *GoogleCloudDatacatalogV1TagField) MarshalJSON() ([]byte, error) {
3201 type NoMethod GoogleCloudDatacatalogV1TagField
3202 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3203 }
3204
3205 func (s *GoogleCloudDatacatalogV1TagField) UnmarshalJSON(data []byte) error {
3206 type NoMethod GoogleCloudDatacatalogV1TagField
3207 var s1 struct {
3208 DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
3209 *NoMethod
3210 }
3211 s1.NoMethod = (*NoMethod)(s)
3212 if err := json.Unmarshal(data, &s1); err != nil {
3213 return err
3214 }
3215 s.DoubleValue = float64(s1.DoubleValue)
3216 return nil
3217 }
3218
3219
3220 type GoogleCloudDatacatalogV1TagFieldEnumValue struct {
3221
3222 DisplayName string `json:"displayName,omitempty"`
3223
3224
3225
3226
3227
3228 ForceSendFields []string `json:"-"`
3229
3230
3231
3232
3233 NullFields []string `json:"-"`
3234 }
3235
3236 func (s *GoogleCloudDatacatalogV1TagFieldEnumValue) MarshalJSON() ([]byte, error) {
3237 type NoMethod GoogleCloudDatacatalogV1TagFieldEnumValue
3238 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3239 }
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249 type GoogleCloudDatacatalogV1TagTemplate struct {
3250
3251
3252
3253
3254
3255
3256
3257 DataplexTransferStatus string `json:"dataplexTransferStatus,omitempty"`
3258
3259
3260
3261
3262 DisplayName string `json:"displayName,omitempty"`
3263
3264
3265
3266
3267
3268
3269
3270 Fields map[string]GoogleCloudDatacatalogV1TagTemplateField `json:"fields,omitempty"`
3271
3272
3273
3274
3275 IsPubliclyReadable bool `json:"isPubliclyReadable,omitempty"`
3276
3277
3278
3279 Name string `json:"name,omitempty"`
3280
3281
3282 googleapi.ServerResponse `json:"-"`
3283
3284
3285
3286
3287
3288 ForceSendFields []string `json:"-"`
3289
3290
3291
3292
3293 NullFields []string `json:"-"`
3294 }
3295
3296 func (s *GoogleCloudDatacatalogV1TagTemplate) MarshalJSON() ([]byte, error) {
3297 type NoMethod GoogleCloudDatacatalogV1TagTemplate
3298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3299 }
3300
3301
3302
3303 type GoogleCloudDatacatalogV1TagTemplateField struct {
3304
3305 Description string `json:"description,omitempty"`
3306
3307
3308
3309
3310 DisplayName string `json:"displayName,omitempty"`
3311
3312 IsRequired bool `json:"isRequired,omitempty"`
3313
3314
3315
3316
3317
3318
3319
3320 Name string `json:"name,omitempty"`
3321
3322
3323
3324
3325 Order int64 `json:"order,omitempty"`
3326
3327 Type *GoogleCloudDatacatalogV1FieldType `json:"type,omitempty"`
3328
3329
3330 googleapi.ServerResponse `json:"-"`
3331
3332
3333
3334
3335
3336 ForceSendFields []string `json:"-"`
3337
3338
3339
3340
3341 NullFields []string `json:"-"`
3342 }
3343
3344 func (s *GoogleCloudDatacatalogV1TagTemplateField) MarshalJSON() ([]byte, error) {
3345 type NoMethod GoogleCloudDatacatalogV1TagTemplateField
3346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3347 }
3348
3349
3350
3351 type GoogleCloudDatacatalogV1TaggedEntry struct {
3352
3353
3354 AbsentTags []*GoogleCloudDatacatalogV1Tag `json:"absentTags,omitempty"`
3355
3356
3357 PresentTags []*GoogleCloudDatacatalogV1Tag `json:"presentTags,omitempty"`
3358
3359 V1Entry *GoogleCloudDatacatalogV1Entry `json:"v1Entry,omitempty"`
3360
3361
3362
3363
3364
3365 ForceSendFields []string `json:"-"`
3366
3367
3368
3369
3370 NullFields []string `json:"-"`
3371 }
3372
3373 func (s *GoogleCloudDatacatalogV1TaggedEntry) MarshalJSON() ([]byte, error) {
3374 type NoMethod GoogleCloudDatacatalogV1TaggedEntry
3375 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3376 }
3377
3378
3379
3380
3381
3382
3383
3384 type GoogleCloudDatacatalogV1Taxonomy struct {
3385
3386
3387
3388
3389
3390
3391
3392 ActivatedPolicyTypes []string `json:"activatedPolicyTypes,omitempty"`
3393
3394
3395
3396
3397 Description string `json:"description,omitempty"`
3398
3399
3400
3401
3402 DisplayName string `json:"displayName,omitempty"`
3403
3404
3405 Name string `json:"name,omitempty"`
3406
3407 PolicyTagCount int64 `json:"policyTagCount,omitempty"`
3408
3409
3410
3411 Service *GoogleCloudDatacatalogV1TaxonomyService `json:"service,omitempty"`
3412
3413
3414 TaxonomyTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"taxonomyTimestamps,omitempty"`
3415
3416
3417 googleapi.ServerResponse `json:"-"`
3418
3419
3420
3421
3422
3423 ForceSendFields []string `json:"-"`
3424
3425
3426
3427
3428 NullFields []string `json:"-"`
3429 }
3430
3431 func (s *GoogleCloudDatacatalogV1Taxonomy) MarshalJSON() ([]byte, error) {
3432 type NoMethod GoogleCloudDatacatalogV1Taxonomy
3433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3434 }
3435
3436
3437 type GoogleCloudDatacatalogV1TaxonomyService struct {
3438
3439 Identity string `json:"identity,omitempty"`
3440
3441
3442
3443
3444
3445
3446 Name string `json:"name,omitempty"`
3447
3448
3449
3450
3451
3452 ForceSendFields []string `json:"-"`
3453
3454
3455
3456
3457 NullFields []string `json:"-"`
3458 }
3459
3460 func (s *GoogleCloudDatacatalogV1TaxonomyService) MarshalJSON() ([]byte, error) {
3461 type NoMethod GoogleCloudDatacatalogV1TaxonomyService
3462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3463 }
3464
3465
3466 type GoogleCloudDatacatalogV1UnstarEntryRequest struct {
3467 }
3468
3469
3470
3471 type GoogleCloudDatacatalogV1UnstarEntryResponse struct {
3472
3473 googleapi.ServerResponse `json:"-"`
3474 }
3475
3476
3477
3478
3479 type GoogleCloudDatacatalogV1UsageSignal struct {
3480
3481
3482
3483 CommonUsageWithinTimeRange map[string]GoogleCloudDatacatalogV1CommonUsageStats `json:"commonUsageWithinTimeRange,omitempty"`
3484
3485 FavoriteCount int64 `json:"favoriteCount,omitempty,string"`
3486
3487 UpdateTime string `json:"updateTime,omitempty"`
3488
3489
3490
3491 UsageWithinTimeRange map[string]GoogleCloudDatacatalogV1UsageStats `json:"usageWithinTimeRange,omitempty"`
3492
3493
3494
3495
3496
3497 ForceSendFields []string `json:"-"`
3498
3499
3500
3501
3502 NullFields []string `json:"-"`
3503 }
3504
3505 func (s *GoogleCloudDatacatalogV1UsageSignal) MarshalJSON() ([]byte, error) {
3506 type NoMethod GoogleCloudDatacatalogV1UsageSignal
3507 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3508 }
3509
3510
3511
3512
3513
3514
3515
3516 type GoogleCloudDatacatalogV1UsageStats struct {
3517
3518
3519 TotalCancellations float64 `json:"totalCancellations,omitempty"`
3520
3521 TotalCompletions float64 `json:"totalCompletions,omitempty"`
3522
3523
3524 TotalExecutionTimeForCompletionsMillis float64 `json:"totalExecutionTimeForCompletionsMillis,omitempty"`
3525
3526 TotalFailures float64 `json:"totalFailures,omitempty"`
3527
3528
3529
3530
3531
3532 ForceSendFields []string `json:"-"`
3533
3534
3535
3536
3537 NullFields []string `json:"-"`
3538 }
3539
3540 func (s *GoogleCloudDatacatalogV1UsageStats) MarshalJSON() ([]byte, error) {
3541 type NoMethod GoogleCloudDatacatalogV1UsageStats
3542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3543 }
3544
3545 func (s *GoogleCloudDatacatalogV1UsageStats) UnmarshalJSON(data []byte) error {
3546 type NoMethod GoogleCloudDatacatalogV1UsageStats
3547 var s1 struct {
3548 TotalCancellations gensupport.JSONFloat64 `json:"totalCancellations"`
3549 TotalCompletions gensupport.JSONFloat64 `json:"totalCompletions"`
3550 TotalExecutionTimeForCompletionsMillis gensupport.JSONFloat64 `json:"totalExecutionTimeForCompletionsMillis"`
3551 TotalFailures gensupport.JSONFloat64 `json:"totalFailures"`
3552 *NoMethod
3553 }
3554 s1.NoMethod = (*NoMethod)(s)
3555 if err := json.Unmarshal(data, &s1); err != nil {
3556 return err
3557 }
3558 s.TotalCancellations = float64(s1.TotalCancellations)
3559 s.TotalCompletions = float64(s1.TotalCompletions)
3560 s.TotalExecutionTimeForCompletionsMillis = float64(s1.TotalExecutionTimeForCompletionsMillis)
3561 s.TotalFailures = float64(s1.TotalFailures)
3562 return nil
3563 }
3564
3565
3566
3567 type GoogleCloudDatacatalogV1VertexDatasetSpec struct {
3568
3569
3570 DataItemCount int64 `json:"dataItemCount,omitempty,string"`
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593 DataType string `json:"dataType,omitempty"`
3594
3595
3596
3597
3598
3599 ForceSendFields []string `json:"-"`
3600
3601
3602
3603
3604 NullFields []string `json:"-"`
3605 }
3606
3607 func (s *GoogleCloudDatacatalogV1VertexDatasetSpec) MarshalJSON() ([]byte, error) {
3608 type NoMethod GoogleCloudDatacatalogV1VertexDatasetSpec
3609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3610 }
3611
3612
3613
3614 type GoogleCloudDatacatalogV1VertexModelSourceInfo struct {
3615
3616
3617 Copy bool `json:"copy,omitempty"`
3618
3619
3620
3621
3622
3623
3624
3625
3626 SourceType string `json:"sourceType,omitempty"`
3627
3628
3629
3630
3631
3632 ForceSendFields []string `json:"-"`
3633
3634
3635
3636
3637 NullFields []string `json:"-"`
3638 }
3639
3640 func (s *GoogleCloudDatacatalogV1VertexModelSourceInfo) MarshalJSON() ([]byte, error) {
3641 type NoMethod GoogleCloudDatacatalogV1VertexModelSourceInfo
3642 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3643 }
3644
3645
3646
3647 type GoogleCloudDatacatalogV1VertexModelSpec struct {
3648
3649
3650 ContainerImageUri string `json:"containerImageUri,omitempty"`
3651
3652
3653 VersionAliases []string `json:"versionAliases,omitempty"`
3654
3655 VersionDescription string `json:"versionDescription,omitempty"`
3656
3657 VersionId string `json:"versionId,omitempty"`
3658
3659 VertexModelSourceInfo *GoogleCloudDatacatalogV1VertexModelSourceInfo `json:"vertexModelSourceInfo,omitempty"`
3660
3661
3662
3663
3664
3665 ForceSendFields []string `json:"-"`
3666
3667
3668
3669
3670 NullFields []string `json:"-"`
3671 }
3672
3673 func (s *GoogleCloudDatacatalogV1VertexModelSpec) MarshalJSON() ([]byte, error) {
3674 type NoMethod GoogleCloudDatacatalogV1VertexModelSpec
3675 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3676 }
3677
3678
3679 type GoogleCloudDatacatalogV1ViewSpec struct {
3680
3681 ViewQuery string `json:"viewQuery,omitempty"`
3682
3683
3684
3685
3686
3687 ForceSendFields []string `json:"-"`
3688
3689
3690
3691
3692 NullFields []string `json:"-"`
3693 }
3694
3695 func (s *GoogleCloudDatacatalogV1ViewSpec) MarshalJSON() ([]byte, error) {
3696 type NoMethod GoogleCloudDatacatalogV1ViewSpec
3697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3698 }
3699
3700
3701 type ListOperationsResponse struct {
3702
3703 NextPageToken string `json:"nextPageToken,omitempty"`
3704
3705
3706 Operations []*Operation `json:"operations,omitempty"`
3707
3708
3709 googleapi.ServerResponse `json:"-"`
3710
3711
3712
3713
3714
3715 ForceSendFields []string `json:"-"`
3716
3717
3718
3719
3720 NullFields []string `json:"-"`
3721 }
3722
3723 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
3724 type NoMethod ListOperationsResponse
3725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3726 }
3727
3728
3729
3730 type Operation struct {
3731
3732
3733
3734 Done bool `json:"done,omitempty"`
3735
3736 Error *Status `json:"error,omitempty"`
3737
3738
3739
3740
3741 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3742
3743
3744
3745 Name string `json:"name,omitempty"`
3746
3747
3748
3749
3750
3751
3752
3753 Response googleapi.RawMessage `json:"response,omitempty"`
3754
3755
3756 googleapi.ServerResponse `json:"-"`
3757
3758
3759
3760
3761
3762 ForceSendFields []string `json:"-"`
3763
3764
3765
3766
3767 NullFields []string `json:"-"`
3768 }
3769
3770 func (s *Operation) MarshalJSON() ([]byte, error) {
3771 type NoMethod Operation
3772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3773 }
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805 type Policy struct {
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815 Bindings []*Binding `json:"bindings,omitempty"`
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827 Etag string `json:"etag,omitempty"`
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843 Version int64 `json:"version,omitempty"`
3844
3845
3846 googleapi.ServerResponse `json:"-"`
3847
3848
3849
3850
3851
3852 ForceSendFields []string `json:"-"`
3853
3854
3855
3856
3857 NullFields []string `json:"-"`
3858 }
3859
3860 func (s *Policy) MarshalJSON() ([]byte, error) {
3861 type NoMethod Policy
3862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3863 }
3864
3865
3866 type SetIamPolicyRequest struct {
3867
3868
3869
3870
3871 Policy *Policy `json:"policy,omitempty"`
3872
3873
3874
3875
3876
3877 ForceSendFields []string `json:"-"`
3878
3879
3880
3881
3882 NullFields []string `json:"-"`
3883 }
3884
3885 func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
3886 type NoMethod SetIamPolicyRequest
3887 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3888 }
3889
3890
3891
3892
3893
3894
3895
3896 type Status struct {
3897
3898 Code int64 `json:"code,omitempty"`
3899
3900
3901 Details []googleapi.RawMessage `json:"details,omitempty"`
3902
3903
3904
3905 Message string `json:"message,omitempty"`
3906
3907
3908
3909
3910
3911 ForceSendFields []string `json:"-"`
3912
3913
3914
3915
3916 NullFields []string `json:"-"`
3917 }
3918
3919 func (s *Status) MarshalJSON() ([]byte, error) {
3920 type NoMethod Status
3921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3922 }
3923
3924
3925 type TestIamPermissionsRequest struct {
3926
3927
3928
3929
3930 Permissions []string `json:"permissions,omitempty"`
3931
3932
3933
3934
3935
3936 ForceSendFields []string `json:"-"`
3937
3938
3939
3940
3941 NullFields []string `json:"-"`
3942 }
3943
3944 func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
3945 type NoMethod TestIamPermissionsRequest
3946 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3947 }
3948
3949
3950
3951 type TestIamPermissionsResponse struct {
3952
3953
3954 Permissions []string `json:"permissions,omitempty"`
3955
3956
3957 googleapi.ServerResponse `json:"-"`
3958
3959
3960
3961
3962
3963 ForceSendFields []string `json:"-"`
3964
3965
3966
3967
3968 NullFields []string `json:"-"`
3969 }
3970
3971 func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
3972 type NoMethod TestIamPermissionsResponse
3973 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3974 }
3975
3976 type CatalogSearchCall struct {
3977 s *Service
3978 googleclouddatacatalogv1searchcatalogrequest *GoogleCloudDatacatalogV1SearchCatalogRequest
3979 urlParams_ gensupport.URLParams
3980 ctx_ context.Context
3981 header_ http.Header
3982 }
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 func (r *CatalogService) Search(googleclouddatacatalogv1searchcatalogrequest *GoogleCloudDatacatalogV1SearchCatalogRequest) *CatalogSearchCall {
3995 c := &CatalogSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3996 c.googleclouddatacatalogv1searchcatalogrequest = googleclouddatacatalogv1searchcatalogrequest
3997 return c
3998 }
3999
4000
4001
4002
4003 func (c *CatalogSearchCall) Fields(s ...googleapi.Field) *CatalogSearchCall {
4004 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4005 return c
4006 }
4007
4008
4009 func (c *CatalogSearchCall) Context(ctx context.Context) *CatalogSearchCall {
4010 c.ctx_ = ctx
4011 return c
4012 }
4013
4014
4015
4016 func (c *CatalogSearchCall) Header() http.Header {
4017 if c.header_ == nil {
4018 c.header_ = make(http.Header)
4019 }
4020 return c.header_
4021 }
4022
4023 func (c *CatalogSearchCall) doRequest(alt string) (*http.Response, error) {
4024 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4025 var body io.Reader = nil
4026 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1searchcatalogrequest)
4027 if err != nil {
4028 return nil, err
4029 }
4030 c.urlParams_.Set("alt", alt)
4031 c.urlParams_.Set("prettyPrint", "false")
4032 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/catalog:search")
4033 urls += "?" + c.urlParams_.Encode()
4034 req, err := http.NewRequest("POST", urls, body)
4035 if err != nil {
4036 return nil, err
4037 }
4038 req.Header = reqHeaders
4039 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4040 }
4041
4042
4043
4044
4045
4046
4047
4048 func (c *CatalogSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1SearchCatalogResponse, error) {
4049 gensupport.SetOptions(c.urlParams_, opts...)
4050 res, err := c.doRequest("json")
4051 if res != nil && res.StatusCode == http.StatusNotModified {
4052 if res.Body != nil {
4053 res.Body.Close()
4054 }
4055 return nil, gensupport.WrapError(&googleapi.Error{
4056 Code: res.StatusCode,
4057 Header: res.Header,
4058 })
4059 }
4060 if err != nil {
4061 return nil, err
4062 }
4063 defer googleapi.CloseBody(res)
4064 if err := googleapi.CheckResponse(res); err != nil {
4065 return nil, gensupport.WrapError(err)
4066 }
4067 ret := &GoogleCloudDatacatalogV1SearchCatalogResponse{
4068 ServerResponse: googleapi.ServerResponse{
4069 Header: res.Header,
4070 HTTPStatusCode: res.StatusCode,
4071 },
4072 }
4073 target := &ret
4074 if err := gensupport.DecodeResponse(target, res); err != nil {
4075 return nil, err
4076 }
4077 return ret, nil
4078 }
4079
4080
4081
4082
4083 func (c *CatalogSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1SearchCatalogResponse) error) error {
4084 c.ctx_ = ctx
4085 defer func(pt string) { c.googleclouddatacatalogv1searchcatalogrequest.PageToken = pt }(c.googleclouddatacatalogv1searchcatalogrequest.PageToken)
4086 for {
4087 x, err := c.Do()
4088 if err != nil {
4089 return err
4090 }
4091 if err := f(x); err != nil {
4092 return err
4093 }
4094 if x.NextPageToken == "" {
4095 return nil
4096 }
4097 c.googleclouddatacatalogv1searchcatalogrequest.PageToken = x.NextPageToken
4098 }
4099 }
4100
4101 type EntriesLookupCall struct {
4102 s *Service
4103 urlParams_ gensupport.URLParams
4104 ifNoneMatch_ string
4105 ctx_ context.Context
4106 header_ http.Header
4107 }
4108
4109
4110
4111 func (r *EntriesService) Lookup() *EntriesLookupCall {
4112 c := &EntriesLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4113 return c
4114 }
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126 func (c *EntriesLookupCall) FullyQualifiedName(fullyQualifiedName string) *EntriesLookupCall {
4127 c.urlParams_.Set("fullyQualifiedName", fullyQualifiedName)
4128 return c
4129 }
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139 func (c *EntriesLookupCall) LinkedResource(linkedResource string) *EntriesLookupCall {
4140 c.urlParams_.Set("linkedResource", linkedResource)
4141 return c
4142 }
4143
4144
4145
4146
4147
4148 func (c *EntriesLookupCall) Location(location string) *EntriesLookupCall {
4149 c.urlParams_.Set("location", location)
4150 return c
4151 }
4152
4153
4154
4155
4156
4157 func (c *EntriesLookupCall) Project(project string) *EntriesLookupCall {
4158 c.urlParams_.Set("project", project)
4159 return c
4160 }
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172 func (c *EntriesLookupCall) SqlResource(sqlResource string) *EntriesLookupCall {
4173 c.urlParams_.Set("sqlResource", sqlResource)
4174 return c
4175 }
4176
4177
4178
4179
4180 func (c *EntriesLookupCall) Fields(s ...googleapi.Field) *EntriesLookupCall {
4181 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4182 return c
4183 }
4184
4185
4186
4187
4188 func (c *EntriesLookupCall) IfNoneMatch(entityTag string) *EntriesLookupCall {
4189 c.ifNoneMatch_ = entityTag
4190 return c
4191 }
4192
4193
4194 func (c *EntriesLookupCall) Context(ctx context.Context) *EntriesLookupCall {
4195 c.ctx_ = ctx
4196 return c
4197 }
4198
4199
4200
4201 func (c *EntriesLookupCall) Header() http.Header {
4202 if c.header_ == nil {
4203 c.header_ = make(http.Header)
4204 }
4205 return c.header_
4206 }
4207
4208 func (c *EntriesLookupCall) doRequest(alt string) (*http.Response, error) {
4209 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4210 if c.ifNoneMatch_ != "" {
4211 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4212 }
4213 var body io.Reader = nil
4214 c.urlParams_.Set("alt", alt)
4215 c.urlParams_.Set("prettyPrint", "false")
4216 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/entries:lookup")
4217 urls += "?" + c.urlParams_.Encode()
4218 req, err := http.NewRequest("GET", urls, body)
4219 if err != nil {
4220 return nil, err
4221 }
4222 req.Header = reqHeaders
4223 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4224 }
4225
4226
4227
4228
4229
4230
4231
4232 func (c *EntriesLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
4233 gensupport.SetOptions(c.urlParams_, opts...)
4234 res, err := c.doRequest("json")
4235 if res != nil && res.StatusCode == http.StatusNotModified {
4236 if res.Body != nil {
4237 res.Body.Close()
4238 }
4239 return nil, gensupport.WrapError(&googleapi.Error{
4240 Code: res.StatusCode,
4241 Header: res.Header,
4242 })
4243 }
4244 if err != nil {
4245 return nil, err
4246 }
4247 defer googleapi.CloseBody(res)
4248 if err := googleapi.CheckResponse(res); err != nil {
4249 return nil, gensupport.WrapError(err)
4250 }
4251 ret := &GoogleCloudDatacatalogV1Entry{
4252 ServerResponse: googleapi.ServerResponse{
4253 Header: res.Header,
4254 HTTPStatusCode: res.StatusCode,
4255 },
4256 }
4257 target := &ret
4258 if err := gensupport.DecodeResponse(target, res); err != nil {
4259 return nil, err
4260 }
4261 return ret, nil
4262 }
4263
4264 type ProjectsLocationsEntryGroupsCreateCall struct {
4265 s *Service
4266 parent string
4267 googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup
4268 urlParams_ gensupport.URLParams
4269 ctx_ context.Context
4270 header_ http.Header
4271 }
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293 func (r *ProjectsLocationsEntryGroupsService) Create(parent string, googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup) *ProjectsLocationsEntryGroupsCreateCall {
4294 c := &ProjectsLocationsEntryGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4295 c.parent = parent
4296 c.googleclouddatacatalogv1entrygroup = googleclouddatacatalogv1entrygroup
4297 return c
4298 }
4299
4300
4301
4302
4303
4304 func (c *ProjectsLocationsEntryGroupsCreateCall) EntryGroupId(entryGroupId string) *ProjectsLocationsEntryGroupsCreateCall {
4305 c.urlParams_.Set("entryGroupId", entryGroupId)
4306 return c
4307 }
4308
4309
4310
4311
4312 func (c *ProjectsLocationsEntryGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsCreateCall {
4313 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4314 return c
4315 }
4316
4317
4318 func (c *ProjectsLocationsEntryGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsCreateCall {
4319 c.ctx_ = ctx
4320 return c
4321 }
4322
4323
4324
4325 func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header {
4326 if c.header_ == nil {
4327 c.header_ = make(http.Header)
4328 }
4329 return c.header_
4330 }
4331
4332 func (c *ProjectsLocationsEntryGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
4333 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4334 var body io.Reader = nil
4335 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entrygroup)
4336 if err != nil {
4337 return nil, err
4338 }
4339 c.urlParams_.Set("alt", alt)
4340 c.urlParams_.Set("prettyPrint", "false")
4341 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
4342 urls += "?" + c.urlParams_.Encode()
4343 req, err := http.NewRequest("POST", urls, body)
4344 if err != nil {
4345 return nil, err
4346 }
4347 req.Header = reqHeaders
4348 googleapi.Expand(req.URL, map[string]string{
4349 "parent": c.parent,
4350 })
4351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4352 }
4353
4354
4355
4356
4357
4358
4359
4360 func (c *ProjectsLocationsEntryGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryGroup, error) {
4361 gensupport.SetOptions(c.urlParams_, opts...)
4362 res, err := c.doRequest("json")
4363 if res != nil && res.StatusCode == http.StatusNotModified {
4364 if res.Body != nil {
4365 res.Body.Close()
4366 }
4367 return nil, gensupport.WrapError(&googleapi.Error{
4368 Code: res.StatusCode,
4369 Header: res.Header,
4370 })
4371 }
4372 if err != nil {
4373 return nil, err
4374 }
4375 defer googleapi.CloseBody(res)
4376 if err := googleapi.CheckResponse(res); err != nil {
4377 return nil, gensupport.WrapError(err)
4378 }
4379 ret := &GoogleCloudDatacatalogV1EntryGroup{
4380 ServerResponse: googleapi.ServerResponse{
4381 Header: res.Header,
4382 HTTPStatusCode: res.StatusCode,
4383 },
4384 }
4385 target := &ret
4386 if err := gensupport.DecodeResponse(target, res); err != nil {
4387 return nil, err
4388 }
4389 return ret, nil
4390 }
4391
4392 type ProjectsLocationsEntryGroupsDeleteCall struct {
4393 s *Service
4394 name string
4395 urlParams_ gensupport.URLParams
4396 ctx_ context.Context
4397 header_ http.Header
4398 }
4399
4400
4401
4402
4403
4404
4405
4406 func (r *ProjectsLocationsEntryGroupsService) Delete(name string) *ProjectsLocationsEntryGroupsDeleteCall {
4407 c := &ProjectsLocationsEntryGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4408 c.name = name
4409 return c
4410 }
4411
4412
4413
4414 func (c *ProjectsLocationsEntryGroupsDeleteCall) Force(force bool) *ProjectsLocationsEntryGroupsDeleteCall {
4415 c.urlParams_.Set("force", fmt.Sprint(force))
4416 return c
4417 }
4418
4419
4420
4421
4422 func (c *ProjectsLocationsEntryGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsDeleteCall {
4423 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4424 return c
4425 }
4426
4427
4428 func (c *ProjectsLocationsEntryGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsDeleteCall {
4429 c.ctx_ = ctx
4430 return c
4431 }
4432
4433
4434
4435 func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header {
4436 if c.header_ == nil {
4437 c.header_ = make(http.Header)
4438 }
4439 return c.header_
4440 }
4441
4442 func (c *ProjectsLocationsEntryGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
4443 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4444 var body io.Reader = nil
4445 c.urlParams_.Set("alt", alt)
4446 c.urlParams_.Set("prettyPrint", "false")
4447 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4448 urls += "?" + c.urlParams_.Encode()
4449 req, err := http.NewRequest("DELETE", urls, body)
4450 if err != nil {
4451 return nil, err
4452 }
4453 req.Header = reqHeaders
4454 googleapi.Expand(req.URL, map[string]string{
4455 "name": c.name,
4456 })
4457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4458 }
4459
4460
4461
4462
4463
4464
4465 func (c *ProjectsLocationsEntryGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
4466 gensupport.SetOptions(c.urlParams_, opts...)
4467 res, err := c.doRequest("json")
4468 if res != nil && res.StatusCode == http.StatusNotModified {
4469 if res.Body != nil {
4470 res.Body.Close()
4471 }
4472 return nil, gensupport.WrapError(&googleapi.Error{
4473 Code: res.StatusCode,
4474 Header: res.Header,
4475 })
4476 }
4477 if err != nil {
4478 return nil, err
4479 }
4480 defer googleapi.CloseBody(res)
4481 if err := googleapi.CheckResponse(res); err != nil {
4482 return nil, gensupport.WrapError(err)
4483 }
4484 ret := &Empty{
4485 ServerResponse: googleapi.ServerResponse{
4486 Header: res.Header,
4487 HTTPStatusCode: res.StatusCode,
4488 },
4489 }
4490 target := &ret
4491 if err := gensupport.DecodeResponse(target, res); err != nil {
4492 return nil, err
4493 }
4494 return ret, nil
4495 }
4496
4497 type ProjectsLocationsEntryGroupsGetCall struct {
4498 s *Service
4499 name string
4500 urlParams_ gensupport.URLParams
4501 ifNoneMatch_ string
4502 ctx_ context.Context
4503 header_ http.Header
4504 }
4505
4506
4507
4508
4509 func (r *ProjectsLocationsEntryGroupsService) Get(name string) *ProjectsLocationsEntryGroupsGetCall {
4510 c := &ProjectsLocationsEntryGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4511 c.name = name
4512 return c
4513 }
4514
4515
4516
4517 func (c *ProjectsLocationsEntryGroupsGetCall) ReadMask(readMask string) *ProjectsLocationsEntryGroupsGetCall {
4518 c.urlParams_.Set("readMask", readMask)
4519 return c
4520 }
4521
4522
4523
4524
4525 func (c *ProjectsLocationsEntryGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetCall {
4526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4527 return c
4528 }
4529
4530
4531
4532
4533 func (c *ProjectsLocationsEntryGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetCall {
4534 c.ifNoneMatch_ = entityTag
4535 return c
4536 }
4537
4538
4539 func (c *ProjectsLocationsEntryGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetCall {
4540 c.ctx_ = ctx
4541 return c
4542 }
4543
4544
4545
4546 func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header {
4547 if c.header_ == nil {
4548 c.header_ = make(http.Header)
4549 }
4550 return c.header_
4551 }
4552
4553 func (c *ProjectsLocationsEntryGroupsGetCall) doRequest(alt string) (*http.Response, error) {
4554 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4555 if c.ifNoneMatch_ != "" {
4556 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4557 }
4558 var body io.Reader = nil
4559 c.urlParams_.Set("alt", alt)
4560 c.urlParams_.Set("prettyPrint", "false")
4561 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4562 urls += "?" + c.urlParams_.Encode()
4563 req, err := http.NewRequest("GET", urls, body)
4564 if err != nil {
4565 return nil, err
4566 }
4567 req.Header = reqHeaders
4568 googleapi.Expand(req.URL, map[string]string{
4569 "name": c.name,
4570 })
4571 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4572 }
4573
4574
4575
4576
4577
4578
4579
4580 func (c *ProjectsLocationsEntryGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryGroup, error) {
4581 gensupport.SetOptions(c.urlParams_, opts...)
4582 res, err := c.doRequest("json")
4583 if res != nil && res.StatusCode == http.StatusNotModified {
4584 if res.Body != nil {
4585 res.Body.Close()
4586 }
4587 return nil, gensupport.WrapError(&googleapi.Error{
4588 Code: res.StatusCode,
4589 Header: res.Header,
4590 })
4591 }
4592 if err != nil {
4593 return nil, err
4594 }
4595 defer googleapi.CloseBody(res)
4596 if err := googleapi.CheckResponse(res); err != nil {
4597 return nil, gensupport.WrapError(err)
4598 }
4599 ret := &GoogleCloudDatacatalogV1EntryGroup{
4600 ServerResponse: googleapi.ServerResponse{
4601 Header: res.Header,
4602 HTTPStatusCode: res.StatusCode,
4603 },
4604 }
4605 target := &ret
4606 if err := gensupport.DecodeResponse(target, res); err != nil {
4607 return nil, err
4608 }
4609 return ret, nil
4610 }
4611
4612 type ProjectsLocationsEntryGroupsGetIamPolicyCall struct {
4613 s *Service
4614 resource string
4615 getiampolicyrequest *GetIamPolicyRequest
4616 urlParams_ gensupport.URLParams
4617 ctx_ context.Context
4618 header_ http.Header
4619 }
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634 func (r *ProjectsLocationsEntryGroupsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
4635 c := &ProjectsLocationsEntryGroupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4636 c.resource = resource
4637 c.getiampolicyrequest = getiampolicyrequest
4638 return c
4639 }
4640
4641
4642
4643
4644 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
4645 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4646 return c
4647 }
4648
4649
4650 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetIamPolicyCall {
4651 c.ctx_ = ctx
4652 return c
4653 }
4654
4655
4656
4657 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header {
4658 if c.header_ == nil {
4659 c.header_ = make(http.Header)
4660 }
4661 return c.header_
4662 }
4663
4664 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
4665 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4666 var body io.Reader = nil
4667 body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
4668 if err != nil {
4669 return nil, err
4670 }
4671 c.urlParams_.Set("alt", alt)
4672 c.urlParams_.Set("prettyPrint", "false")
4673 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
4674 urls += "?" + c.urlParams_.Encode()
4675 req, err := http.NewRequest("POST", urls, body)
4676 if err != nil {
4677 return nil, err
4678 }
4679 req.Header = reqHeaders
4680 googleapi.Expand(req.URL, map[string]string{
4681 "resource": c.resource,
4682 })
4683 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4684 }
4685
4686
4687
4688
4689
4690
4691 func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
4692 gensupport.SetOptions(c.urlParams_, opts...)
4693 res, err := c.doRequest("json")
4694 if res != nil && res.StatusCode == http.StatusNotModified {
4695 if res.Body != nil {
4696 res.Body.Close()
4697 }
4698 return nil, gensupport.WrapError(&googleapi.Error{
4699 Code: res.StatusCode,
4700 Header: res.Header,
4701 })
4702 }
4703 if err != nil {
4704 return nil, err
4705 }
4706 defer googleapi.CloseBody(res)
4707 if err := googleapi.CheckResponse(res); err != nil {
4708 return nil, gensupport.WrapError(err)
4709 }
4710 ret := &Policy{
4711 ServerResponse: googleapi.ServerResponse{
4712 Header: res.Header,
4713 HTTPStatusCode: res.StatusCode,
4714 },
4715 }
4716 target := &ret
4717 if err := gensupport.DecodeResponse(target, res); err != nil {
4718 return nil, err
4719 }
4720 return ret, nil
4721 }
4722
4723 type ProjectsLocationsEntryGroupsListCall struct {
4724 s *Service
4725 parent string
4726 urlParams_ gensupport.URLParams
4727 ifNoneMatch_ string
4728 ctx_ context.Context
4729 header_ http.Header
4730 }
4731
4732
4733
4734
4735
4736 func (r *ProjectsLocationsEntryGroupsService) List(parent string) *ProjectsLocationsEntryGroupsListCall {
4737 c := &ProjectsLocationsEntryGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4738 c.parent = parent
4739 return c
4740 }
4741
4742
4743
4744
4745 func (c *ProjectsLocationsEntryGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsListCall {
4746 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4747 return c
4748 }
4749
4750
4751
4752 func (c *ProjectsLocationsEntryGroupsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsListCall {
4753 c.urlParams_.Set("pageToken", pageToken)
4754 return c
4755 }
4756
4757
4758
4759
4760 func (c *ProjectsLocationsEntryGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsListCall {
4761 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4762 return c
4763 }
4764
4765
4766
4767
4768 func (c *ProjectsLocationsEntryGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsListCall {
4769 c.ifNoneMatch_ = entityTag
4770 return c
4771 }
4772
4773
4774 func (c *ProjectsLocationsEntryGroupsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsListCall {
4775 c.ctx_ = ctx
4776 return c
4777 }
4778
4779
4780
4781 func (c *ProjectsLocationsEntryGroupsListCall) Header() http.Header {
4782 if c.header_ == nil {
4783 c.header_ = make(http.Header)
4784 }
4785 return c.header_
4786 }
4787
4788 func (c *ProjectsLocationsEntryGroupsListCall) doRequest(alt string) (*http.Response, error) {
4789 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4790 if c.ifNoneMatch_ != "" {
4791 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4792 }
4793 var body io.Reader = nil
4794 c.urlParams_.Set("alt", alt)
4795 c.urlParams_.Set("prettyPrint", "false")
4796 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entryGroups")
4797 urls += "?" + c.urlParams_.Encode()
4798 req, err := http.NewRequest("GET", urls, body)
4799 if err != nil {
4800 return nil, err
4801 }
4802 req.Header = reqHeaders
4803 googleapi.Expand(req.URL, map[string]string{
4804 "parent": c.parent,
4805 })
4806 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4807 }
4808
4809
4810
4811
4812
4813
4814
4815 func (c *ProjectsLocationsEntryGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListEntryGroupsResponse, error) {
4816 gensupport.SetOptions(c.urlParams_, opts...)
4817 res, err := c.doRequest("json")
4818 if res != nil && res.StatusCode == http.StatusNotModified {
4819 if res.Body != nil {
4820 res.Body.Close()
4821 }
4822 return nil, gensupport.WrapError(&googleapi.Error{
4823 Code: res.StatusCode,
4824 Header: res.Header,
4825 })
4826 }
4827 if err != nil {
4828 return nil, err
4829 }
4830 defer googleapi.CloseBody(res)
4831 if err := googleapi.CheckResponse(res); err != nil {
4832 return nil, gensupport.WrapError(err)
4833 }
4834 ret := &GoogleCloudDatacatalogV1ListEntryGroupsResponse{
4835 ServerResponse: googleapi.ServerResponse{
4836 Header: res.Header,
4837 HTTPStatusCode: res.StatusCode,
4838 },
4839 }
4840 target := &ret
4841 if err := gensupport.DecodeResponse(target, res); err != nil {
4842 return nil, err
4843 }
4844 return ret, nil
4845 }
4846
4847
4848
4849
4850 func (c *ProjectsLocationsEntryGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListEntryGroupsResponse) error) error {
4851 c.ctx_ = ctx
4852 defer c.PageToken(c.urlParams_.Get("pageToken"))
4853 for {
4854 x, err := c.Do()
4855 if err != nil {
4856 return err
4857 }
4858 if err := f(x); err != nil {
4859 return err
4860 }
4861 if x.NextPageToken == "" {
4862 return nil
4863 }
4864 c.PageToken(x.NextPageToken)
4865 }
4866 }
4867
4868 type ProjectsLocationsEntryGroupsPatchCall struct {
4869 s *Service
4870 name string
4871 googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup
4872 urlParams_ gensupport.URLParams
4873 ctx_ context.Context
4874 header_ http.Header
4875 }
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885 func (r *ProjectsLocationsEntryGroupsService) Patch(name string, googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup) *ProjectsLocationsEntryGroupsPatchCall {
4886 c := &ProjectsLocationsEntryGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4887 c.name = name
4888 c.googleclouddatacatalogv1entrygroup = googleclouddatacatalogv1entrygroup
4889 return c
4890 }
4891
4892
4893
4894
4895
4896 func (c *ProjectsLocationsEntryGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsPatchCall {
4897 c.urlParams_.Set("updateMask", updateMask)
4898 return c
4899 }
4900
4901
4902
4903
4904 func (c *ProjectsLocationsEntryGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsPatchCall {
4905 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4906 return c
4907 }
4908
4909
4910 func (c *ProjectsLocationsEntryGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsPatchCall {
4911 c.ctx_ = ctx
4912 return c
4913 }
4914
4915
4916
4917 func (c *ProjectsLocationsEntryGroupsPatchCall) Header() http.Header {
4918 if c.header_ == nil {
4919 c.header_ = make(http.Header)
4920 }
4921 return c.header_
4922 }
4923
4924 func (c *ProjectsLocationsEntryGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
4925 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4926 var body io.Reader = nil
4927 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entrygroup)
4928 if err != nil {
4929 return nil, err
4930 }
4931 c.urlParams_.Set("alt", alt)
4932 c.urlParams_.Set("prettyPrint", "false")
4933 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
4934 urls += "?" + c.urlParams_.Encode()
4935 req, err := http.NewRequest("PATCH", urls, body)
4936 if err != nil {
4937 return nil, err
4938 }
4939 req.Header = reqHeaders
4940 googleapi.Expand(req.URL, map[string]string{
4941 "name": c.name,
4942 })
4943 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4944 }
4945
4946
4947
4948
4949
4950
4951
4952 func (c *ProjectsLocationsEntryGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryGroup, error) {
4953 gensupport.SetOptions(c.urlParams_, opts...)
4954 res, err := c.doRequest("json")
4955 if res != nil && res.StatusCode == http.StatusNotModified {
4956 if res.Body != nil {
4957 res.Body.Close()
4958 }
4959 return nil, gensupport.WrapError(&googleapi.Error{
4960 Code: res.StatusCode,
4961 Header: res.Header,
4962 })
4963 }
4964 if err != nil {
4965 return nil, err
4966 }
4967 defer googleapi.CloseBody(res)
4968 if err := googleapi.CheckResponse(res); err != nil {
4969 return nil, gensupport.WrapError(err)
4970 }
4971 ret := &GoogleCloudDatacatalogV1EntryGroup{
4972 ServerResponse: googleapi.ServerResponse{
4973 Header: res.Header,
4974 HTTPStatusCode: res.StatusCode,
4975 },
4976 }
4977 target := &ret
4978 if err := gensupport.DecodeResponse(target, res); err != nil {
4979 return nil, err
4980 }
4981 return ret, nil
4982 }
4983
4984 type ProjectsLocationsEntryGroupsSetIamPolicyCall struct {
4985 s *Service
4986 resource string
4987 setiampolicyrequest *SetIamPolicyRequest
4988 urlParams_ gensupport.URLParams
4989 ctx_ context.Context
4990 header_ http.Header
4991 }
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 func (r *ProjectsLocationsEntryGroupsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
5006 c := &ProjectsLocationsEntryGroupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5007 c.resource = resource
5008 c.setiampolicyrequest = setiampolicyrequest
5009 return c
5010 }
5011
5012
5013
5014
5015 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
5016 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5017 return c
5018 }
5019
5020
5021 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsSetIamPolicyCall {
5022 c.ctx_ = ctx
5023 return c
5024 }
5025
5026
5027
5028 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header {
5029 if c.header_ == nil {
5030 c.header_ = make(http.Header)
5031 }
5032 return c.header_
5033 }
5034
5035 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
5036 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5037 var body io.Reader = nil
5038 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
5039 if err != nil {
5040 return nil, err
5041 }
5042 c.urlParams_.Set("alt", alt)
5043 c.urlParams_.Set("prettyPrint", "false")
5044 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
5045 urls += "?" + c.urlParams_.Encode()
5046 req, err := http.NewRequest("POST", urls, body)
5047 if err != nil {
5048 return nil, err
5049 }
5050 req.Header = reqHeaders
5051 googleapi.Expand(req.URL, map[string]string{
5052 "resource": c.resource,
5053 })
5054 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5055 }
5056
5057
5058
5059
5060
5061
5062 func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
5063 gensupport.SetOptions(c.urlParams_, opts...)
5064 res, err := c.doRequest("json")
5065 if res != nil && res.StatusCode == http.StatusNotModified {
5066 if res.Body != nil {
5067 res.Body.Close()
5068 }
5069 return nil, gensupport.WrapError(&googleapi.Error{
5070 Code: res.StatusCode,
5071 Header: res.Header,
5072 })
5073 }
5074 if err != nil {
5075 return nil, err
5076 }
5077 defer googleapi.CloseBody(res)
5078 if err := googleapi.CheckResponse(res); err != nil {
5079 return nil, gensupport.WrapError(err)
5080 }
5081 ret := &Policy{
5082 ServerResponse: googleapi.ServerResponse{
5083 Header: res.Header,
5084 HTTPStatusCode: res.StatusCode,
5085 },
5086 }
5087 target := &ret
5088 if err := gensupport.DecodeResponse(target, res); err != nil {
5089 return nil, err
5090 }
5091 return ret, nil
5092 }
5093
5094 type ProjectsLocationsEntryGroupsTestIamPermissionsCall struct {
5095 s *Service
5096 resource string
5097 testiampermissionsrequest *TestIamPermissionsRequest
5098 urlParams_ gensupport.URLParams
5099 ctx_ context.Context
5100 header_ http.Header
5101 }
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 func (r *ProjectsLocationsEntryGroupsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
5116 c := &ProjectsLocationsEntryGroupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5117 c.resource = resource
5118 c.testiampermissionsrequest = testiampermissionsrequest
5119 return c
5120 }
5121
5122
5123
5124
5125 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
5126 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5127 return c
5128 }
5129
5130
5131 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTestIamPermissionsCall {
5132 c.ctx_ = ctx
5133 return c
5134 }
5135
5136
5137
5138 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Header {
5139 if c.header_ == nil {
5140 c.header_ = make(http.Header)
5141 }
5142 return c.header_
5143 }
5144
5145 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
5146 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5147 var body io.Reader = nil
5148 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
5149 if err != nil {
5150 return nil, err
5151 }
5152 c.urlParams_.Set("alt", alt)
5153 c.urlParams_.Set("prettyPrint", "false")
5154 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
5155 urls += "?" + c.urlParams_.Encode()
5156 req, err := http.NewRequest("POST", urls, body)
5157 if err != nil {
5158 return nil, err
5159 }
5160 req.Header = reqHeaders
5161 googleapi.Expand(req.URL, map[string]string{
5162 "resource": c.resource,
5163 })
5164 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5165 }
5166
5167
5168
5169
5170
5171
5172
5173 func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
5174 gensupport.SetOptions(c.urlParams_, opts...)
5175 res, err := c.doRequest("json")
5176 if res != nil && res.StatusCode == http.StatusNotModified {
5177 if res.Body != nil {
5178 res.Body.Close()
5179 }
5180 return nil, gensupport.WrapError(&googleapi.Error{
5181 Code: res.StatusCode,
5182 Header: res.Header,
5183 })
5184 }
5185 if err != nil {
5186 return nil, err
5187 }
5188 defer googleapi.CloseBody(res)
5189 if err := googleapi.CheckResponse(res); err != nil {
5190 return nil, gensupport.WrapError(err)
5191 }
5192 ret := &TestIamPermissionsResponse{
5193 ServerResponse: googleapi.ServerResponse{
5194 Header: res.Header,
5195 HTTPStatusCode: res.StatusCode,
5196 },
5197 }
5198 target := &ret
5199 if err := gensupport.DecodeResponse(target, res); err != nil {
5200 return nil, err
5201 }
5202 return ret, nil
5203 }
5204
5205 type ProjectsLocationsEntryGroupsEntriesCreateCall struct {
5206 s *Service
5207 parent string
5208 googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry
5209 urlParams_ gensupport.URLParams
5210 ctx_ context.Context
5211 header_ http.Header
5212 }
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226 func (r *ProjectsLocationsEntryGroupsEntriesService) Create(parent string, googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry) *ProjectsLocationsEntryGroupsEntriesCreateCall {
5227 c := &ProjectsLocationsEntryGroupsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5228 c.parent = parent
5229 c.googleclouddatacatalogv1entry = googleclouddatacatalogv1entry
5230 return c
5231 }
5232
5233
5234
5235
5236 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId(entryId string) *ProjectsLocationsEntryGroupsEntriesCreateCall {
5237 c.urlParams_.Set("entryId", entryId)
5238 return c
5239 }
5240
5241
5242
5243
5244 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesCreateCall {
5245 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5246 return c
5247 }
5248
5249
5250 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesCreateCall {
5251 c.ctx_ = ctx
5252 return c
5253 }
5254
5255
5256
5257 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header {
5258 if c.header_ == nil {
5259 c.header_ = make(http.Header)
5260 }
5261 return c.header_
5262 }
5263
5264 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
5265 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5266 var body io.Reader = nil
5267 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entry)
5268 if err != nil {
5269 return nil, err
5270 }
5271 c.urlParams_.Set("alt", alt)
5272 c.urlParams_.Set("prettyPrint", "false")
5273 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
5274 urls += "?" + c.urlParams_.Encode()
5275 req, err := http.NewRequest("POST", urls, body)
5276 if err != nil {
5277 return nil, err
5278 }
5279 req.Header = reqHeaders
5280 googleapi.Expand(req.URL, map[string]string{
5281 "parent": c.parent,
5282 })
5283 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5284 }
5285
5286
5287
5288
5289
5290
5291
5292 func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
5293 gensupport.SetOptions(c.urlParams_, opts...)
5294 res, err := c.doRequest("json")
5295 if res != nil && res.StatusCode == http.StatusNotModified {
5296 if res.Body != nil {
5297 res.Body.Close()
5298 }
5299 return nil, gensupport.WrapError(&googleapi.Error{
5300 Code: res.StatusCode,
5301 Header: res.Header,
5302 })
5303 }
5304 if err != nil {
5305 return nil, err
5306 }
5307 defer googleapi.CloseBody(res)
5308 if err := googleapi.CheckResponse(res); err != nil {
5309 return nil, gensupport.WrapError(err)
5310 }
5311 ret := &GoogleCloudDatacatalogV1Entry{
5312 ServerResponse: googleapi.ServerResponse{
5313 Header: res.Header,
5314 HTTPStatusCode: res.StatusCode,
5315 },
5316 }
5317 target := &ret
5318 if err := gensupport.DecodeResponse(target, res); err != nil {
5319 return nil, err
5320 }
5321 return ret, nil
5322 }
5323
5324 type ProjectsLocationsEntryGroupsEntriesDeleteCall struct {
5325 s *Service
5326 name string
5327 urlParams_ gensupport.URLParams
5328 ctx_ context.Context
5329 header_ http.Header
5330 }
5331
5332
5333
5334
5335
5336
5337
5338
5339 func (r *ProjectsLocationsEntryGroupsEntriesService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
5340 c := &ProjectsLocationsEntryGroupsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5341 c.name = name
5342 return c
5343 }
5344
5345
5346
5347
5348 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
5349 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5350 return c
5351 }
5352
5353
5354 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesDeleteCall {
5355 c.ctx_ = ctx
5356 return c
5357 }
5358
5359
5360
5361 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header {
5362 if c.header_ == nil {
5363 c.header_ = make(http.Header)
5364 }
5365 return c.header_
5366 }
5367
5368 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
5369 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5370 var body io.Reader = nil
5371 c.urlParams_.Set("alt", alt)
5372 c.urlParams_.Set("prettyPrint", "false")
5373 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5374 urls += "?" + c.urlParams_.Encode()
5375 req, err := http.NewRequest("DELETE", urls, body)
5376 if err != nil {
5377 return nil, err
5378 }
5379 req.Header = reqHeaders
5380 googleapi.Expand(req.URL, map[string]string{
5381 "name": c.name,
5382 })
5383 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5384 }
5385
5386
5387
5388
5389
5390
5391 func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
5392 gensupport.SetOptions(c.urlParams_, opts...)
5393 res, err := c.doRequest("json")
5394 if res != nil && res.StatusCode == http.StatusNotModified {
5395 if res.Body != nil {
5396 res.Body.Close()
5397 }
5398 return nil, gensupport.WrapError(&googleapi.Error{
5399 Code: res.StatusCode,
5400 Header: res.Header,
5401 })
5402 }
5403 if err != nil {
5404 return nil, err
5405 }
5406 defer googleapi.CloseBody(res)
5407 if err := googleapi.CheckResponse(res); err != nil {
5408 return nil, gensupport.WrapError(err)
5409 }
5410 ret := &Empty{
5411 ServerResponse: googleapi.ServerResponse{
5412 Header: res.Header,
5413 HTTPStatusCode: res.StatusCode,
5414 },
5415 }
5416 target := &ret
5417 if err := gensupport.DecodeResponse(target, res); err != nil {
5418 return nil, err
5419 }
5420 return ret, nil
5421 }
5422
5423 type ProjectsLocationsEntryGroupsEntriesGetCall struct {
5424 s *Service
5425 name string
5426 urlParams_ gensupport.URLParams
5427 ifNoneMatch_ string
5428 ctx_ context.Context
5429 header_ http.Header
5430 }
5431
5432
5433
5434
5435 func (r *ProjectsLocationsEntryGroupsEntriesService) Get(name string) *ProjectsLocationsEntryGroupsEntriesGetCall {
5436 c := &ProjectsLocationsEntryGroupsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5437 c.name = name
5438 return c
5439 }
5440
5441
5442
5443
5444 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetCall {
5445 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5446 return c
5447 }
5448
5449
5450
5451
5452 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesGetCall {
5453 c.ifNoneMatch_ = entityTag
5454 return c
5455 }
5456
5457
5458 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetCall {
5459 c.ctx_ = ctx
5460 return c
5461 }
5462
5463
5464
5465 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header {
5466 if c.header_ == nil {
5467 c.header_ = make(http.Header)
5468 }
5469 return c.header_
5470 }
5471
5472 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
5473 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5474 if c.ifNoneMatch_ != "" {
5475 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5476 }
5477 var body io.Reader = nil
5478 c.urlParams_.Set("alt", alt)
5479 c.urlParams_.Set("prettyPrint", "false")
5480 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5481 urls += "?" + c.urlParams_.Encode()
5482 req, err := http.NewRequest("GET", urls, body)
5483 if err != nil {
5484 return nil, err
5485 }
5486 req.Header = reqHeaders
5487 googleapi.Expand(req.URL, map[string]string{
5488 "name": c.name,
5489 })
5490 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5491 }
5492
5493
5494
5495
5496
5497
5498
5499 func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
5500 gensupport.SetOptions(c.urlParams_, opts...)
5501 res, err := c.doRequest("json")
5502 if res != nil && res.StatusCode == http.StatusNotModified {
5503 if res.Body != nil {
5504 res.Body.Close()
5505 }
5506 return nil, gensupport.WrapError(&googleapi.Error{
5507 Code: res.StatusCode,
5508 Header: res.Header,
5509 })
5510 }
5511 if err != nil {
5512 return nil, err
5513 }
5514 defer googleapi.CloseBody(res)
5515 if err := googleapi.CheckResponse(res); err != nil {
5516 return nil, gensupport.WrapError(err)
5517 }
5518 ret := &GoogleCloudDatacatalogV1Entry{
5519 ServerResponse: googleapi.ServerResponse{
5520 Header: res.Header,
5521 HTTPStatusCode: res.StatusCode,
5522 },
5523 }
5524 target := &ret
5525 if err := gensupport.DecodeResponse(target, res); err != nil {
5526 return nil, err
5527 }
5528 return ret, nil
5529 }
5530
5531 type ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall struct {
5532 s *Service
5533 resource string
5534 getiampolicyrequest *GetIamPolicyRequest
5535 urlParams_ gensupport.URLParams
5536 ctx_ context.Context
5537 header_ http.Header
5538 }
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 func (r *ProjectsLocationsEntryGroupsEntriesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall {
5554 c := &ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5555 c.resource = resource
5556 c.getiampolicyrequest = getiampolicyrequest
5557 return c
5558 }
5559
5560
5561
5562
5563 func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall {
5564 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5565 return c
5566 }
5567
5568
5569 func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall {
5570 c.ctx_ = ctx
5571 return c
5572 }
5573
5574
5575
5576 func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Header() http.Header {
5577 if c.header_ == nil {
5578 c.header_ = make(http.Header)
5579 }
5580 return c.header_
5581 }
5582
5583 func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
5584 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5585 var body io.Reader = nil
5586 body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
5587 if err != nil {
5588 return nil, err
5589 }
5590 c.urlParams_.Set("alt", alt)
5591 c.urlParams_.Set("prettyPrint", "false")
5592 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
5593 urls += "?" + c.urlParams_.Encode()
5594 req, err := http.NewRequest("POST", urls, body)
5595 if err != nil {
5596 return nil, err
5597 }
5598 req.Header = reqHeaders
5599 googleapi.Expand(req.URL, map[string]string{
5600 "resource": c.resource,
5601 })
5602 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5603 }
5604
5605
5606
5607
5608
5609
5610 func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
5611 gensupport.SetOptions(c.urlParams_, opts...)
5612 res, err := c.doRequest("json")
5613 if res != nil && res.StatusCode == http.StatusNotModified {
5614 if res.Body != nil {
5615 res.Body.Close()
5616 }
5617 return nil, gensupport.WrapError(&googleapi.Error{
5618 Code: res.StatusCode,
5619 Header: res.Header,
5620 })
5621 }
5622 if err != nil {
5623 return nil, err
5624 }
5625 defer googleapi.CloseBody(res)
5626 if err := googleapi.CheckResponse(res); err != nil {
5627 return nil, gensupport.WrapError(err)
5628 }
5629 ret := &Policy{
5630 ServerResponse: googleapi.ServerResponse{
5631 Header: res.Header,
5632 HTTPStatusCode: res.StatusCode,
5633 },
5634 }
5635 target := &ret
5636 if err := gensupport.DecodeResponse(target, res); err != nil {
5637 return nil, err
5638 }
5639 return ret, nil
5640 }
5641
5642 type ProjectsLocationsEntryGroupsEntriesImportCall struct {
5643 s *Service
5644 parent string
5645 googleclouddatacatalogv1importentriesrequest *GoogleCloudDatacatalogV1ImportEntriesRequest
5646 urlParams_ gensupport.URLParams
5647 ctx_ context.Context
5648 header_ http.Header
5649 }
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 func (r *ProjectsLocationsEntryGroupsEntriesService) Import(parent string, googleclouddatacatalogv1importentriesrequest *GoogleCloudDatacatalogV1ImportEntriesRequest) *ProjectsLocationsEntryGroupsEntriesImportCall {
5663 c := &ProjectsLocationsEntryGroupsEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5664 c.parent = parent
5665 c.googleclouddatacatalogv1importentriesrequest = googleclouddatacatalogv1importentriesrequest
5666 return c
5667 }
5668
5669
5670
5671
5672 func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesImportCall {
5673 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5674 return c
5675 }
5676
5677
5678 func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesImportCall {
5679 c.ctx_ = ctx
5680 return c
5681 }
5682
5683
5684
5685 func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Header() http.Header {
5686 if c.header_ == nil {
5687 c.header_ = make(http.Header)
5688 }
5689 return c.header_
5690 }
5691
5692 func (c *ProjectsLocationsEntryGroupsEntriesImportCall) doRequest(alt string) (*http.Response, error) {
5693 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5694 var body io.Reader = nil
5695 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1importentriesrequest)
5696 if err != nil {
5697 return nil, err
5698 }
5699 c.urlParams_.Set("alt", alt)
5700 c.urlParams_.Set("prettyPrint", "false")
5701 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries:import")
5702 urls += "?" + c.urlParams_.Encode()
5703 req, err := http.NewRequest("POST", urls, body)
5704 if err != nil {
5705 return nil, err
5706 }
5707 req.Header = reqHeaders
5708 googleapi.Expand(req.URL, map[string]string{
5709 "parent": c.parent,
5710 })
5711 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5712 }
5713
5714
5715
5716
5717
5718
5719 func (c *ProjectsLocationsEntryGroupsEntriesImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5720 gensupport.SetOptions(c.urlParams_, opts...)
5721 res, err := c.doRequest("json")
5722 if res != nil && res.StatusCode == http.StatusNotModified {
5723 if res.Body != nil {
5724 res.Body.Close()
5725 }
5726 return nil, gensupport.WrapError(&googleapi.Error{
5727 Code: res.StatusCode,
5728 Header: res.Header,
5729 })
5730 }
5731 if err != nil {
5732 return nil, err
5733 }
5734 defer googleapi.CloseBody(res)
5735 if err := googleapi.CheckResponse(res); err != nil {
5736 return nil, gensupport.WrapError(err)
5737 }
5738 ret := &Operation{
5739 ServerResponse: googleapi.ServerResponse{
5740 Header: res.Header,
5741 HTTPStatusCode: res.StatusCode,
5742 },
5743 }
5744 target := &ret
5745 if err := gensupport.DecodeResponse(target, res); err != nil {
5746 return nil, err
5747 }
5748 return ret, nil
5749 }
5750
5751 type ProjectsLocationsEntryGroupsEntriesListCall struct {
5752 s *Service
5753 parent string
5754 urlParams_ gensupport.URLParams
5755 ifNoneMatch_ string
5756 ctx_ context.Context
5757 header_ http.Header
5758 }
5759
5760
5761
5762
5763
5764
5765
5766 func (r *ProjectsLocationsEntryGroupsEntriesService) List(parent string) *ProjectsLocationsEntryGroupsEntriesListCall {
5767 c := &ProjectsLocationsEntryGroupsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5768 c.parent = parent
5769 return c
5770 }
5771
5772
5773
5774
5775 func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesListCall {
5776 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5777 return c
5778 }
5779
5780
5781
5782 func (c *ProjectsLocationsEntryGroupsEntriesListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesListCall {
5783 c.urlParams_.Set("pageToken", pageToken)
5784 return c
5785 }
5786
5787
5788
5789
5790
5791 func (c *ProjectsLocationsEntryGroupsEntriesListCall) ReadMask(readMask string) *ProjectsLocationsEntryGroupsEntriesListCall {
5792 c.urlParams_.Set("readMask", readMask)
5793 return c
5794 }
5795
5796
5797
5798
5799 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesListCall {
5800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5801 return c
5802 }
5803
5804
5805
5806
5807 func (c *ProjectsLocationsEntryGroupsEntriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesListCall {
5808 c.ifNoneMatch_ = entityTag
5809 return c
5810 }
5811
5812
5813 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesListCall {
5814 c.ctx_ = ctx
5815 return c
5816 }
5817
5818
5819
5820 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Header() http.Header {
5821 if c.header_ == nil {
5822 c.header_ = make(http.Header)
5823 }
5824 return c.header_
5825 }
5826
5827 func (c *ProjectsLocationsEntryGroupsEntriesListCall) doRequest(alt string) (*http.Response, error) {
5828 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5829 if c.ifNoneMatch_ != "" {
5830 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5831 }
5832 var body io.Reader = nil
5833 c.urlParams_.Set("alt", alt)
5834 c.urlParams_.Set("prettyPrint", "false")
5835 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
5836 urls += "?" + c.urlParams_.Encode()
5837 req, err := http.NewRequest("GET", urls, body)
5838 if err != nil {
5839 return nil, err
5840 }
5841 req.Header = reqHeaders
5842 googleapi.Expand(req.URL, map[string]string{
5843 "parent": c.parent,
5844 })
5845 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5846 }
5847
5848
5849
5850
5851
5852
5853
5854 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListEntriesResponse, error) {
5855 gensupport.SetOptions(c.urlParams_, opts...)
5856 res, err := c.doRequest("json")
5857 if res != nil && res.StatusCode == http.StatusNotModified {
5858 if res.Body != nil {
5859 res.Body.Close()
5860 }
5861 return nil, gensupport.WrapError(&googleapi.Error{
5862 Code: res.StatusCode,
5863 Header: res.Header,
5864 })
5865 }
5866 if err != nil {
5867 return nil, err
5868 }
5869 defer googleapi.CloseBody(res)
5870 if err := googleapi.CheckResponse(res); err != nil {
5871 return nil, gensupport.WrapError(err)
5872 }
5873 ret := &GoogleCloudDatacatalogV1ListEntriesResponse{
5874 ServerResponse: googleapi.ServerResponse{
5875 Header: res.Header,
5876 HTTPStatusCode: res.StatusCode,
5877 },
5878 }
5879 target := &ret
5880 if err := gensupport.DecodeResponse(target, res); err != nil {
5881 return nil, err
5882 }
5883 return ret, nil
5884 }
5885
5886
5887
5888
5889 func (c *ProjectsLocationsEntryGroupsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListEntriesResponse) error) error {
5890 c.ctx_ = ctx
5891 defer c.PageToken(c.urlParams_.Get("pageToken"))
5892 for {
5893 x, err := c.Do()
5894 if err != nil {
5895 return err
5896 }
5897 if err := f(x); err != nil {
5898 return err
5899 }
5900 if x.NextPageToken == "" {
5901 return nil
5902 }
5903 c.PageToken(x.NextPageToken)
5904 }
5905 }
5906
5907 type ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall struct {
5908 s *Service
5909 name string
5910 googleclouddatacatalogv1modifyentrycontactsrequest *GoogleCloudDatacatalogV1ModifyEntryContactsRequest
5911 urlParams_ gensupport.URLParams
5912 ctx_ context.Context
5913 header_ http.Header
5914 }
5915
5916
5917
5918
5919
5920
5921
5922 func (r *ProjectsLocationsEntryGroupsEntriesService) ModifyEntryContacts(name string, googleclouddatacatalogv1modifyentrycontactsrequest *GoogleCloudDatacatalogV1ModifyEntryContactsRequest) *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall {
5923 c := &ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5924 c.name = name
5925 c.googleclouddatacatalogv1modifyentrycontactsrequest = googleclouddatacatalogv1modifyentrycontactsrequest
5926 return c
5927 }
5928
5929
5930
5931
5932 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall {
5933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5934 return c
5935 }
5936
5937
5938 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall {
5939 c.ctx_ = ctx
5940 return c
5941 }
5942
5943
5944
5945 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Header() http.Header {
5946 if c.header_ == nil {
5947 c.header_ = make(http.Header)
5948 }
5949 return c.header_
5950 }
5951
5952 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) doRequest(alt string) (*http.Response, error) {
5953 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5954 var body io.Reader = nil
5955 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1modifyentrycontactsrequest)
5956 if err != nil {
5957 return nil, err
5958 }
5959 c.urlParams_.Set("alt", alt)
5960 c.urlParams_.Set("prettyPrint", "false")
5961 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:modifyEntryContacts")
5962 urls += "?" + c.urlParams_.Encode()
5963 req, err := http.NewRequest("POST", urls, body)
5964 if err != nil {
5965 return nil, err
5966 }
5967 req.Header = reqHeaders
5968 googleapi.Expand(req.URL, map[string]string{
5969 "name": c.name,
5970 })
5971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5972 }
5973
5974
5975
5976
5977
5978
5979
5980 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryContactsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Contacts, error) {
5981 gensupport.SetOptions(c.urlParams_, opts...)
5982 res, err := c.doRequest("json")
5983 if res != nil && res.StatusCode == http.StatusNotModified {
5984 if res.Body != nil {
5985 res.Body.Close()
5986 }
5987 return nil, gensupport.WrapError(&googleapi.Error{
5988 Code: res.StatusCode,
5989 Header: res.Header,
5990 })
5991 }
5992 if err != nil {
5993 return nil, err
5994 }
5995 defer googleapi.CloseBody(res)
5996 if err := googleapi.CheckResponse(res); err != nil {
5997 return nil, gensupport.WrapError(err)
5998 }
5999 ret := &GoogleCloudDatacatalogV1Contacts{
6000 ServerResponse: googleapi.ServerResponse{
6001 Header: res.Header,
6002 HTTPStatusCode: res.StatusCode,
6003 },
6004 }
6005 target := &ret
6006 if err := gensupport.DecodeResponse(target, res); err != nil {
6007 return nil, err
6008 }
6009 return ret, nil
6010 }
6011
6012 type ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall struct {
6013 s *Service
6014 name string
6015 googleclouddatacatalogv1modifyentryoverviewrequest *GoogleCloudDatacatalogV1ModifyEntryOverviewRequest
6016 urlParams_ gensupport.URLParams
6017 ctx_ context.Context
6018 header_ http.Header
6019 }
6020
6021
6022
6023
6024
6025
6026
6027 func (r *ProjectsLocationsEntryGroupsEntriesService) ModifyEntryOverview(name string, googleclouddatacatalogv1modifyentryoverviewrequest *GoogleCloudDatacatalogV1ModifyEntryOverviewRequest) *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall {
6028 c := &ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6029 c.name = name
6030 c.googleclouddatacatalogv1modifyentryoverviewrequest = googleclouddatacatalogv1modifyentryoverviewrequest
6031 return c
6032 }
6033
6034
6035
6036
6037 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall {
6038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6039 return c
6040 }
6041
6042
6043 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall {
6044 c.ctx_ = ctx
6045 return c
6046 }
6047
6048
6049
6050 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Header() http.Header {
6051 if c.header_ == nil {
6052 c.header_ = make(http.Header)
6053 }
6054 return c.header_
6055 }
6056
6057 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) doRequest(alt string) (*http.Response, error) {
6058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6059 var body io.Reader = nil
6060 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1modifyentryoverviewrequest)
6061 if err != nil {
6062 return nil, err
6063 }
6064 c.urlParams_.Set("alt", alt)
6065 c.urlParams_.Set("prettyPrint", "false")
6066 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:modifyEntryOverview")
6067 urls += "?" + c.urlParams_.Encode()
6068 req, err := http.NewRequest("POST", urls, body)
6069 if err != nil {
6070 return nil, err
6071 }
6072 req.Header = reqHeaders
6073 googleapi.Expand(req.URL, map[string]string{
6074 "name": c.name,
6075 })
6076 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6077 }
6078
6079
6080
6081
6082
6083
6084
6085 func (c *ProjectsLocationsEntryGroupsEntriesModifyEntryOverviewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1EntryOverview, error) {
6086 gensupport.SetOptions(c.urlParams_, opts...)
6087 res, err := c.doRequest("json")
6088 if res != nil && res.StatusCode == http.StatusNotModified {
6089 if res.Body != nil {
6090 res.Body.Close()
6091 }
6092 return nil, gensupport.WrapError(&googleapi.Error{
6093 Code: res.StatusCode,
6094 Header: res.Header,
6095 })
6096 }
6097 if err != nil {
6098 return nil, err
6099 }
6100 defer googleapi.CloseBody(res)
6101 if err := googleapi.CheckResponse(res); err != nil {
6102 return nil, gensupport.WrapError(err)
6103 }
6104 ret := &GoogleCloudDatacatalogV1EntryOverview{
6105 ServerResponse: googleapi.ServerResponse{
6106 Header: res.Header,
6107 HTTPStatusCode: res.StatusCode,
6108 },
6109 }
6110 target := &ret
6111 if err := gensupport.DecodeResponse(target, res); err != nil {
6112 return nil, err
6113 }
6114 return ret, nil
6115 }
6116
6117 type ProjectsLocationsEntryGroupsEntriesPatchCall struct {
6118 s *Service
6119 name string
6120 googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry
6121 urlParams_ gensupport.URLParams
6122 ctx_ context.Context
6123 header_ http.Header
6124 }
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry) *ProjectsLocationsEntryGroupsEntriesPatchCall {
6135 c := &ProjectsLocationsEntryGroupsEntriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6136 c.name = name
6137 c.googleclouddatacatalogv1entry = googleclouddatacatalogv1entry
6138 return c
6139 }
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesPatchCall {
6152 c.urlParams_.Set("updateMask", updateMask)
6153 return c
6154 }
6155
6156
6157
6158
6159 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesPatchCall {
6160 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6161 return c
6162 }
6163
6164
6165 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesPatchCall {
6166 c.ctx_ = ctx
6167 return c
6168 }
6169
6170
6171
6172 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header {
6173 if c.header_ == nil {
6174 c.header_ = make(http.Header)
6175 }
6176 return c.header_
6177 }
6178
6179 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) doRequest(alt string) (*http.Response, error) {
6180 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6181 var body io.Reader = nil
6182 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1entry)
6183 if err != nil {
6184 return nil, err
6185 }
6186 c.urlParams_.Set("alt", alt)
6187 c.urlParams_.Set("prettyPrint", "false")
6188 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6189 urls += "?" + c.urlParams_.Encode()
6190 req, err := http.NewRequest("PATCH", urls, body)
6191 if err != nil {
6192 return nil, err
6193 }
6194 req.Header = reqHeaders
6195 googleapi.Expand(req.URL, map[string]string{
6196 "name": c.name,
6197 })
6198 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6199 }
6200
6201
6202
6203
6204
6205
6206
6207 func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Entry, error) {
6208 gensupport.SetOptions(c.urlParams_, opts...)
6209 res, err := c.doRequest("json")
6210 if res != nil && res.StatusCode == http.StatusNotModified {
6211 if res.Body != nil {
6212 res.Body.Close()
6213 }
6214 return nil, gensupport.WrapError(&googleapi.Error{
6215 Code: res.StatusCode,
6216 Header: res.Header,
6217 })
6218 }
6219 if err != nil {
6220 return nil, err
6221 }
6222 defer googleapi.CloseBody(res)
6223 if err := googleapi.CheckResponse(res); err != nil {
6224 return nil, gensupport.WrapError(err)
6225 }
6226 ret := &GoogleCloudDatacatalogV1Entry{
6227 ServerResponse: googleapi.ServerResponse{
6228 Header: res.Header,
6229 HTTPStatusCode: res.StatusCode,
6230 },
6231 }
6232 target := &ret
6233 if err := gensupport.DecodeResponse(target, res); err != nil {
6234 return nil, err
6235 }
6236 return ret, nil
6237 }
6238
6239 type ProjectsLocationsEntryGroupsEntriesStarCall struct {
6240 s *Service
6241 name string
6242 googleclouddatacatalogv1starentryrequest *GoogleCloudDatacatalogV1StarEntryRequest
6243 urlParams_ gensupport.URLParams
6244 ctx_ context.Context
6245 header_ http.Header
6246 }
6247
6248
6249
6250
6251
6252 func (r *ProjectsLocationsEntryGroupsEntriesService) Star(name string, googleclouddatacatalogv1starentryrequest *GoogleCloudDatacatalogV1StarEntryRequest) *ProjectsLocationsEntryGroupsEntriesStarCall {
6253 c := &ProjectsLocationsEntryGroupsEntriesStarCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6254 c.name = name
6255 c.googleclouddatacatalogv1starentryrequest = googleclouddatacatalogv1starentryrequest
6256 return c
6257 }
6258
6259
6260
6261
6262 func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesStarCall {
6263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6264 return c
6265 }
6266
6267
6268 func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesStarCall {
6269 c.ctx_ = ctx
6270 return c
6271 }
6272
6273
6274
6275 func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Header() http.Header {
6276 if c.header_ == nil {
6277 c.header_ = make(http.Header)
6278 }
6279 return c.header_
6280 }
6281
6282 func (c *ProjectsLocationsEntryGroupsEntriesStarCall) doRequest(alt string) (*http.Response, error) {
6283 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6284 var body io.Reader = nil
6285 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1starentryrequest)
6286 if err != nil {
6287 return nil, err
6288 }
6289 c.urlParams_.Set("alt", alt)
6290 c.urlParams_.Set("prettyPrint", "false")
6291 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:star")
6292 urls += "?" + c.urlParams_.Encode()
6293 req, err := http.NewRequest("POST", urls, body)
6294 if err != nil {
6295 return nil, err
6296 }
6297 req.Header = reqHeaders
6298 googleapi.Expand(req.URL, map[string]string{
6299 "name": c.name,
6300 })
6301 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6302 }
6303
6304
6305
6306
6307
6308
6309
6310 func (c *ProjectsLocationsEntryGroupsEntriesStarCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1StarEntryResponse, error) {
6311 gensupport.SetOptions(c.urlParams_, opts...)
6312 res, err := c.doRequest("json")
6313 if res != nil && res.StatusCode == http.StatusNotModified {
6314 if res.Body != nil {
6315 res.Body.Close()
6316 }
6317 return nil, gensupport.WrapError(&googleapi.Error{
6318 Code: res.StatusCode,
6319 Header: res.Header,
6320 })
6321 }
6322 if err != nil {
6323 return nil, err
6324 }
6325 defer googleapi.CloseBody(res)
6326 if err := googleapi.CheckResponse(res); err != nil {
6327 return nil, gensupport.WrapError(err)
6328 }
6329 ret := &GoogleCloudDatacatalogV1StarEntryResponse{
6330 ServerResponse: googleapi.ServerResponse{
6331 Header: res.Header,
6332 HTTPStatusCode: res.StatusCode,
6333 },
6334 }
6335 target := &ret
6336 if err := gensupport.DecodeResponse(target, res); err != nil {
6337 return nil, err
6338 }
6339 return ret, nil
6340 }
6341
6342 type ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall struct {
6343 s *Service
6344 resource string
6345 testiampermissionsrequest *TestIamPermissionsRequest
6346 urlParams_ gensupport.URLParams
6347 ctx_ context.Context
6348 header_ http.Header
6349 }
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363 func (r *ProjectsLocationsEntryGroupsEntriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall {
6364 c := &ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6365 c.resource = resource
6366 c.testiampermissionsrequest = testiampermissionsrequest
6367 return c
6368 }
6369
6370
6371
6372
6373 func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall {
6374 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6375 return c
6376 }
6377
6378
6379 func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall {
6380 c.ctx_ = ctx
6381 return c
6382 }
6383
6384
6385
6386 func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Header() http.Header {
6387 if c.header_ == nil {
6388 c.header_ = make(http.Header)
6389 }
6390 return c.header_
6391 }
6392
6393 func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
6394 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6395 var body io.Reader = nil
6396 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
6397 if err != nil {
6398 return nil, err
6399 }
6400 c.urlParams_.Set("alt", alt)
6401 c.urlParams_.Set("prettyPrint", "false")
6402 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
6403 urls += "?" + c.urlParams_.Encode()
6404 req, err := http.NewRequest("POST", urls, body)
6405 if err != nil {
6406 return nil, err
6407 }
6408 req.Header = reqHeaders
6409 googleapi.Expand(req.URL, map[string]string{
6410 "resource": c.resource,
6411 })
6412 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6413 }
6414
6415
6416
6417
6418
6419
6420
6421 func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
6422 gensupport.SetOptions(c.urlParams_, opts...)
6423 res, err := c.doRequest("json")
6424 if res != nil && res.StatusCode == http.StatusNotModified {
6425 if res.Body != nil {
6426 res.Body.Close()
6427 }
6428 return nil, gensupport.WrapError(&googleapi.Error{
6429 Code: res.StatusCode,
6430 Header: res.Header,
6431 })
6432 }
6433 if err != nil {
6434 return nil, err
6435 }
6436 defer googleapi.CloseBody(res)
6437 if err := googleapi.CheckResponse(res); err != nil {
6438 return nil, gensupport.WrapError(err)
6439 }
6440 ret := &TestIamPermissionsResponse{
6441 ServerResponse: googleapi.ServerResponse{
6442 Header: res.Header,
6443 HTTPStatusCode: res.StatusCode,
6444 },
6445 }
6446 target := &ret
6447 if err := gensupport.DecodeResponse(target, res); err != nil {
6448 return nil, err
6449 }
6450 return ret, nil
6451 }
6452
6453 type ProjectsLocationsEntryGroupsEntriesUnstarCall struct {
6454 s *Service
6455 name string
6456 googleclouddatacatalogv1unstarentryrequest *GoogleCloudDatacatalogV1UnstarEntryRequest
6457 urlParams_ gensupport.URLParams
6458 ctx_ context.Context
6459 header_ http.Header
6460 }
6461
6462
6463
6464
6465
6466 func (r *ProjectsLocationsEntryGroupsEntriesService) Unstar(name string, googleclouddatacatalogv1unstarentryrequest *GoogleCloudDatacatalogV1UnstarEntryRequest) *ProjectsLocationsEntryGroupsEntriesUnstarCall {
6467 c := &ProjectsLocationsEntryGroupsEntriesUnstarCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6468 c.name = name
6469 c.googleclouddatacatalogv1unstarentryrequest = googleclouddatacatalogv1unstarentryrequest
6470 return c
6471 }
6472
6473
6474
6475
6476 func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesUnstarCall {
6477 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6478 return c
6479 }
6480
6481
6482 func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesUnstarCall {
6483 c.ctx_ = ctx
6484 return c
6485 }
6486
6487
6488
6489 func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Header() http.Header {
6490 if c.header_ == nil {
6491 c.header_ = make(http.Header)
6492 }
6493 return c.header_
6494 }
6495
6496 func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) doRequest(alt string) (*http.Response, error) {
6497 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6498 var body io.Reader = nil
6499 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1unstarentryrequest)
6500 if err != nil {
6501 return nil, err
6502 }
6503 c.urlParams_.Set("alt", alt)
6504 c.urlParams_.Set("prettyPrint", "false")
6505 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:unstar")
6506 urls += "?" + c.urlParams_.Encode()
6507 req, err := http.NewRequest("POST", urls, body)
6508 if err != nil {
6509 return nil, err
6510 }
6511 req.Header = reqHeaders
6512 googleapi.Expand(req.URL, map[string]string{
6513 "name": c.name,
6514 })
6515 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6516 }
6517
6518
6519
6520
6521
6522
6523
6524 func (c *ProjectsLocationsEntryGroupsEntriesUnstarCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1UnstarEntryResponse, error) {
6525 gensupport.SetOptions(c.urlParams_, opts...)
6526 res, err := c.doRequest("json")
6527 if res != nil && res.StatusCode == http.StatusNotModified {
6528 if res.Body != nil {
6529 res.Body.Close()
6530 }
6531 return nil, gensupport.WrapError(&googleapi.Error{
6532 Code: res.StatusCode,
6533 Header: res.Header,
6534 })
6535 }
6536 if err != nil {
6537 return nil, err
6538 }
6539 defer googleapi.CloseBody(res)
6540 if err := googleapi.CheckResponse(res); err != nil {
6541 return nil, gensupport.WrapError(err)
6542 }
6543 ret := &GoogleCloudDatacatalogV1UnstarEntryResponse{
6544 ServerResponse: googleapi.ServerResponse{
6545 Header: res.Header,
6546 HTTPStatusCode: res.StatusCode,
6547 },
6548 }
6549 target := &ret
6550 if err := gensupport.DecodeResponse(target, res); err != nil {
6551 return nil, err
6552 }
6553 return ret, nil
6554 }
6555
6556 type ProjectsLocationsEntryGroupsEntriesTagsCreateCall struct {
6557 s *Service
6558 parent string
6559 googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
6560 urlParams_ gensupport.URLParams
6561 ctx_ context.Context
6562 header_ http.Header
6563 }
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578 func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Create(parent string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall {
6579 c := &ProjectsLocationsEntryGroupsEntriesTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6580 c.parent = parent
6581 c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
6582 return c
6583 }
6584
6585
6586
6587
6588 func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall {
6589 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6590 return c
6591 }
6592
6593
6594 func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall {
6595 c.ctx_ = ctx
6596 return c
6597 }
6598
6599
6600
6601 func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Header() http.Header {
6602 if c.header_ == nil {
6603 c.header_ = make(http.Header)
6604 }
6605 return c.header_
6606 }
6607
6608 func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) doRequest(alt string) (*http.Response, error) {
6609 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6610 var body io.Reader = nil
6611 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
6612 if err != nil {
6613 return nil, err
6614 }
6615 c.urlParams_.Set("alt", alt)
6616 c.urlParams_.Set("prettyPrint", "false")
6617 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
6618 urls += "?" + c.urlParams_.Encode()
6619 req, err := http.NewRequest("POST", urls, body)
6620 if err != nil {
6621 return nil, err
6622 }
6623 req.Header = reqHeaders
6624 googleapi.Expand(req.URL, map[string]string{
6625 "parent": c.parent,
6626 })
6627 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6628 }
6629
6630
6631
6632
6633
6634
6635
6636 func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
6637 gensupport.SetOptions(c.urlParams_, opts...)
6638 res, err := c.doRequest("json")
6639 if res != nil && res.StatusCode == http.StatusNotModified {
6640 if res.Body != nil {
6641 res.Body.Close()
6642 }
6643 return nil, gensupport.WrapError(&googleapi.Error{
6644 Code: res.StatusCode,
6645 Header: res.Header,
6646 })
6647 }
6648 if err != nil {
6649 return nil, err
6650 }
6651 defer googleapi.CloseBody(res)
6652 if err := googleapi.CheckResponse(res); err != nil {
6653 return nil, gensupport.WrapError(err)
6654 }
6655 ret := &GoogleCloudDatacatalogV1Tag{
6656 ServerResponse: googleapi.ServerResponse{
6657 Header: res.Header,
6658 HTTPStatusCode: res.StatusCode,
6659 },
6660 }
6661 target := &ret
6662 if err := gensupport.DecodeResponse(target, res); err != nil {
6663 return nil, err
6664 }
6665 return ret, nil
6666 }
6667
6668 type ProjectsLocationsEntryGroupsEntriesTagsDeleteCall struct {
6669 s *Service
6670 name string
6671 urlParams_ gensupport.URLParams
6672 ctx_ context.Context
6673 header_ http.Header
6674 }
6675
6676
6677
6678
6679 func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall {
6680 c := &ProjectsLocationsEntryGroupsEntriesTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6681 c.name = name
6682 return c
6683 }
6684
6685
6686
6687
6688 func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall {
6689 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6690 return c
6691 }
6692
6693
6694 func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall {
6695 c.ctx_ = ctx
6696 return c
6697 }
6698
6699
6700
6701 func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Header() http.Header {
6702 if c.header_ == nil {
6703 c.header_ = make(http.Header)
6704 }
6705 return c.header_
6706 }
6707
6708 func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
6709 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6710 var body io.Reader = nil
6711 c.urlParams_.Set("alt", alt)
6712 c.urlParams_.Set("prettyPrint", "false")
6713 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6714 urls += "?" + c.urlParams_.Encode()
6715 req, err := http.NewRequest("DELETE", urls, body)
6716 if err != nil {
6717 return nil, err
6718 }
6719 req.Header = reqHeaders
6720 googleapi.Expand(req.URL, map[string]string{
6721 "name": c.name,
6722 })
6723 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6724 }
6725
6726
6727
6728
6729
6730
6731 func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6732 gensupport.SetOptions(c.urlParams_, opts...)
6733 res, err := c.doRequest("json")
6734 if res != nil && res.StatusCode == http.StatusNotModified {
6735 if res.Body != nil {
6736 res.Body.Close()
6737 }
6738 return nil, gensupport.WrapError(&googleapi.Error{
6739 Code: res.StatusCode,
6740 Header: res.Header,
6741 })
6742 }
6743 if err != nil {
6744 return nil, err
6745 }
6746 defer googleapi.CloseBody(res)
6747 if err := googleapi.CheckResponse(res); err != nil {
6748 return nil, gensupport.WrapError(err)
6749 }
6750 ret := &Empty{
6751 ServerResponse: googleapi.ServerResponse{
6752 Header: res.Header,
6753 HTTPStatusCode: res.StatusCode,
6754 },
6755 }
6756 target := &ret
6757 if err := gensupport.DecodeResponse(target, res); err != nil {
6758 return nil, err
6759 }
6760 return ret, nil
6761 }
6762
6763 type ProjectsLocationsEntryGroupsEntriesTagsListCall struct {
6764 s *Service
6765 parent string
6766 urlParams_ gensupport.URLParams
6767 ifNoneMatch_ string
6768 ctx_ context.Context
6769 header_ http.Header
6770 }
6771
6772
6773
6774
6775
6776
6777
6778 func (r *ProjectsLocationsEntryGroupsEntriesTagsService) List(parent string) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
6779 c := &ProjectsLocationsEntryGroupsEntriesTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6780 c.parent = parent
6781 return c
6782 }
6783
6784
6785
6786 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
6787 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6788 return c
6789 }
6790
6791
6792
6793 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
6794 c.urlParams_.Set("pageToken", pageToken)
6795 return c
6796 }
6797
6798
6799
6800
6801 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
6802 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6803 return c
6804 }
6805
6806
6807
6808
6809 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
6810 c.ifNoneMatch_ = entityTag
6811 return c
6812 }
6813
6814
6815 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsListCall {
6816 c.ctx_ = ctx
6817 return c
6818 }
6819
6820
6821
6822 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Header() http.Header {
6823 if c.header_ == nil {
6824 c.header_ = make(http.Header)
6825 }
6826 return c.header_
6827 }
6828
6829 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) doRequest(alt string) (*http.Response, error) {
6830 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6831 if c.ifNoneMatch_ != "" {
6832 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6833 }
6834 var body io.Reader = nil
6835 c.urlParams_.Set("alt", alt)
6836 c.urlParams_.Set("prettyPrint", "false")
6837 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
6838 urls += "?" + c.urlParams_.Encode()
6839 req, err := http.NewRequest("GET", urls, body)
6840 if err != nil {
6841 return nil, err
6842 }
6843 req.Header = reqHeaders
6844 googleapi.Expand(req.URL, map[string]string{
6845 "parent": c.parent,
6846 })
6847 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6848 }
6849
6850
6851
6852
6853
6854
6855
6856 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListTagsResponse, error) {
6857 gensupport.SetOptions(c.urlParams_, opts...)
6858 res, err := c.doRequest("json")
6859 if res != nil && res.StatusCode == http.StatusNotModified {
6860 if res.Body != nil {
6861 res.Body.Close()
6862 }
6863 return nil, gensupport.WrapError(&googleapi.Error{
6864 Code: res.StatusCode,
6865 Header: res.Header,
6866 })
6867 }
6868 if err != nil {
6869 return nil, err
6870 }
6871 defer googleapi.CloseBody(res)
6872 if err := googleapi.CheckResponse(res); err != nil {
6873 return nil, gensupport.WrapError(err)
6874 }
6875 ret := &GoogleCloudDatacatalogV1ListTagsResponse{
6876 ServerResponse: googleapi.ServerResponse{
6877 Header: res.Header,
6878 HTTPStatusCode: res.StatusCode,
6879 },
6880 }
6881 target := &ret
6882 if err := gensupport.DecodeResponse(target, res); err != nil {
6883 return nil, err
6884 }
6885 return ret, nil
6886 }
6887
6888
6889
6890
6891 func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListTagsResponse) error) error {
6892 c.ctx_ = ctx
6893 defer c.PageToken(c.urlParams_.Get("pageToken"))
6894 for {
6895 x, err := c.Do()
6896 if err != nil {
6897 return err
6898 }
6899 if err := f(x); err != nil {
6900 return err
6901 }
6902 if x.NextPageToken == "" {
6903 return nil
6904 }
6905 c.PageToken(x.NextPageToken)
6906 }
6907 }
6908
6909 type ProjectsLocationsEntryGroupsEntriesTagsPatchCall struct {
6910 s *Service
6911 nameid string
6912 googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
6913 urlParams_ gensupport.URLParams
6914 ctx_ context.Context
6915 header_ http.Header
6916 }
6917
6918
6919
6920
6921
6922
6923 func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Patch(nameid string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
6924 c := &ProjectsLocationsEntryGroupsEntriesTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6925 c.nameid = nameid
6926 c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
6927 return c
6928 }
6929
6930
6931
6932
6933
6934
6935 func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
6936 c.urlParams_.Set("updateMask", updateMask)
6937 return c
6938 }
6939
6940
6941
6942
6943 func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
6944 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6945 return c
6946 }
6947
6948
6949 func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall {
6950 c.ctx_ = ctx
6951 return c
6952 }
6953
6954
6955
6956 func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Header() http.Header {
6957 if c.header_ == nil {
6958 c.header_ = make(http.Header)
6959 }
6960 return c.header_
6961 }
6962
6963 func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) doRequest(alt string) (*http.Response, error) {
6964 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6965 var body io.Reader = nil
6966 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
6967 if err != nil {
6968 return nil, err
6969 }
6970 c.urlParams_.Set("alt", alt)
6971 c.urlParams_.Set("prettyPrint", "false")
6972 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6973 urls += "?" + c.urlParams_.Encode()
6974 req, err := http.NewRequest("PATCH", urls, body)
6975 if err != nil {
6976 return nil, err
6977 }
6978 req.Header = reqHeaders
6979 googleapi.Expand(req.URL, map[string]string{
6980 "name": c.nameid,
6981 })
6982 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6983 }
6984
6985
6986
6987
6988
6989
6990
6991 func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
6992 gensupport.SetOptions(c.urlParams_, opts...)
6993 res, err := c.doRequest("json")
6994 if res != nil && res.StatusCode == http.StatusNotModified {
6995 if res.Body != nil {
6996 res.Body.Close()
6997 }
6998 return nil, gensupport.WrapError(&googleapi.Error{
6999 Code: res.StatusCode,
7000 Header: res.Header,
7001 })
7002 }
7003 if err != nil {
7004 return nil, err
7005 }
7006 defer googleapi.CloseBody(res)
7007 if err := googleapi.CheckResponse(res); err != nil {
7008 return nil, gensupport.WrapError(err)
7009 }
7010 ret := &GoogleCloudDatacatalogV1Tag{
7011 ServerResponse: googleapi.ServerResponse{
7012 Header: res.Header,
7013 HTTPStatusCode: res.StatusCode,
7014 },
7015 }
7016 target := &ret
7017 if err := gensupport.DecodeResponse(target, res); err != nil {
7018 return nil, err
7019 }
7020 return ret, nil
7021 }
7022
7023 type ProjectsLocationsEntryGroupsEntriesTagsReconcileCall struct {
7024 s *Service
7025 parent string
7026 googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest
7027 urlParams_ gensupport.URLParams
7028 ctx_ context.Context
7029 header_ http.Header
7030 }
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Reconcile(parent string, googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall {
7041 c := &ProjectsLocationsEntryGroupsEntriesTagsReconcileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7042 c.parent = parent
7043 c.googleclouddatacatalogv1reconciletagsrequest = googleclouddatacatalogv1reconciletagsrequest
7044 return c
7045 }
7046
7047
7048
7049
7050 func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall {
7051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7052 return c
7053 }
7054
7055
7056 func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall {
7057 c.ctx_ = ctx
7058 return c
7059 }
7060
7061
7062
7063 func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Header() http.Header {
7064 if c.header_ == nil {
7065 c.header_ = make(http.Header)
7066 }
7067 return c.header_
7068 }
7069
7070 func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) doRequest(alt string) (*http.Response, error) {
7071 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7072 var body io.Reader = nil
7073 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1reconciletagsrequest)
7074 if err != nil {
7075 return nil, err
7076 }
7077 c.urlParams_.Set("alt", alt)
7078 c.urlParams_.Set("prettyPrint", "false")
7079 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags:reconcile")
7080 urls += "?" + c.urlParams_.Encode()
7081 req, err := http.NewRequest("POST", urls, body)
7082 if err != nil {
7083 return nil, err
7084 }
7085 req.Header = reqHeaders
7086 googleapi.Expand(req.URL, map[string]string{
7087 "parent": c.parent,
7088 })
7089 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7090 }
7091
7092
7093
7094
7095
7096
7097 func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7098 gensupport.SetOptions(c.urlParams_, opts...)
7099 res, err := c.doRequest("json")
7100 if res != nil && res.StatusCode == http.StatusNotModified {
7101 if res.Body != nil {
7102 res.Body.Close()
7103 }
7104 return nil, gensupport.WrapError(&googleapi.Error{
7105 Code: res.StatusCode,
7106 Header: res.Header,
7107 })
7108 }
7109 if err != nil {
7110 return nil, err
7111 }
7112 defer googleapi.CloseBody(res)
7113 if err := googleapi.CheckResponse(res); err != nil {
7114 return nil, gensupport.WrapError(err)
7115 }
7116 ret := &Operation{
7117 ServerResponse: googleapi.ServerResponse{
7118 Header: res.Header,
7119 HTTPStatusCode: res.StatusCode,
7120 },
7121 }
7122 target := &ret
7123 if err := gensupport.DecodeResponse(target, res); err != nil {
7124 return nil, err
7125 }
7126 return ret, nil
7127 }
7128
7129 type ProjectsLocationsEntryGroupsTagsCreateCall struct {
7130 s *Service
7131 parent string
7132 googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
7133 urlParams_ gensupport.URLParams
7134 ctx_ context.Context
7135 header_ http.Header
7136 }
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 func (r *ProjectsLocationsEntryGroupsTagsService) Create(parent string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsTagsCreateCall {
7152 c := &ProjectsLocationsEntryGroupsTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7153 c.parent = parent
7154 c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
7155 return c
7156 }
7157
7158
7159
7160
7161 func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsCreateCall {
7162 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7163 return c
7164 }
7165
7166
7167 func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsCreateCall {
7168 c.ctx_ = ctx
7169 return c
7170 }
7171
7172
7173
7174 func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Header() http.Header {
7175 if c.header_ == nil {
7176 c.header_ = make(http.Header)
7177 }
7178 return c.header_
7179 }
7180
7181 func (c *ProjectsLocationsEntryGroupsTagsCreateCall) doRequest(alt string) (*http.Response, error) {
7182 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7183 var body io.Reader = nil
7184 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
7185 if err != nil {
7186 return nil, err
7187 }
7188 c.urlParams_.Set("alt", alt)
7189 c.urlParams_.Set("prettyPrint", "false")
7190 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
7191 urls += "?" + c.urlParams_.Encode()
7192 req, err := http.NewRequest("POST", urls, body)
7193 if err != nil {
7194 return nil, err
7195 }
7196 req.Header = reqHeaders
7197 googleapi.Expand(req.URL, map[string]string{
7198 "parent": c.parent,
7199 })
7200 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7201 }
7202
7203
7204
7205
7206
7207
7208
7209 func (c *ProjectsLocationsEntryGroupsTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
7210 gensupport.SetOptions(c.urlParams_, opts...)
7211 res, err := c.doRequest("json")
7212 if res != nil && res.StatusCode == http.StatusNotModified {
7213 if res.Body != nil {
7214 res.Body.Close()
7215 }
7216 return nil, gensupport.WrapError(&googleapi.Error{
7217 Code: res.StatusCode,
7218 Header: res.Header,
7219 })
7220 }
7221 if err != nil {
7222 return nil, err
7223 }
7224 defer googleapi.CloseBody(res)
7225 if err := googleapi.CheckResponse(res); err != nil {
7226 return nil, gensupport.WrapError(err)
7227 }
7228 ret := &GoogleCloudDatacatalogV1Tag{
7229 ServerResponse: googleapi.ServerResponse{
7230 Header: res.Header,
7231 HTTPStatusCode: res.StatusCode,
7232 },
7233 }
7234 target := &ret
7235 if err := gensupport.DecodeResponse(target, res); err != nil {
7236 return nil, err
7237 }
7238 return ret, nil
7239 }
7240
7241 type ProjectsLocationsEntryGroupsTagsDeleteCall struct {
7242 s *Service
7243 name string
7244 urlParams_ gensupport.URLParams
7245 ctx_ context.Context
7246 header_ http.Header
7247 }
7248
7249
7250
7251
7252 func (r *ProjectsLocationsEntryGroupsTagsService) Delete(name string) *ProjectsLocationsEntryGroupsTagsDeleteCall {
7253 c := &ProjectsLocationsEntryGroupsTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7254 c.name = name
7255 return c
7256 }
7257
7258
7259
7260
7261 func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsDeleteCall {
7262 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7263 return c
7264 }
7265
7266
7267 func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsDeleteCall {
7268 c.ctx_ = ctx
7269 return c
7270 }
7271
7272
7273
7274 func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Header() http.Header {
7275 if c.header_ == nil {
7276 c.header_ = make(http.Header)
7277 }
7278 return c.header_
7279 }
7280
7281 func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
7282 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7283 var body io.Reader = nil
7284 c.urlParams_.Set("alt", alt)
7285 c.urlParams_.Set("prettyPrint", "false")
7286 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7287 urls += "?" + c.urlParams_.Encode()
7288 req, err := http.NewRequest("DELETE", urls, body)
7289 if err != nil {
7290 return nil, err
7291 }
7292 req.Header = reqHeaders
7293 googleapi.Expand(req.URL, map[string]string{
7294 "name": c.name,
7295 })
7296 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7297 }
7298
7299
7300
7301
7302
7303
7304 func (c *ProjectsLocationsEntryGroupsTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7305 gensupport.SetOptions(c.urlParams_, opts...)
7306 res, err := c.doRequest("json")
7307 if res != nil && res.StatusCode == http.StatusNotModified {
7308 if res.Body != nil {
7309 res.Body.Close()
7310 }
7311 return nil, gensupport.WrapError(&googleapi.Error{
7312 Code: res.StatusCode,
7313 Header: res.Header,
7314 })
7315 }
7316 if err != nil {
7317 return nil, err
7318 }
7319 defer googleapi.CloseBody(res)
7320 if err := googleapi.CheckResponse(res); err != nil {
7321 return nil, gensupport.WrapError(err)
7322 }
7323 ret := &Empty{
7324 ServerResponse: googleapi.ServerResponse{
7325 Header: res.Header,
7326 HTTPStatusCode: res.StatusCode,
7327 },
7328 }
7329 target := &ret
7330 if err := gensupport.DecodeResponse(target, res); err != nil {
7331 return nil, err
7332 }
7333 return ret, nil
7334 }
7335
7336 type ProjectsLocationsEntryGroupsTagsListCall struct {
7337 s *Service
7338 parent string
7339 urlParams_ gensupport.URLParams
7340 ifNoneMatch_ string
7341 ctx_ context.Context
7342 header_ http.Header
7343 }
7344
7345
7346
7347
7348
7349
7350
7351 func (r *ProjectsLocationsEntryGroupsTagsService) List(parent string) *ProjectsLocationsEntryGroupsTagsListCall {
7352 c := &ProjectsLocationsEntryGroupsTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7353 c.parent = parent
7354 return c
7355 }
7356
7357
7358
7359 func (c *ProjectsLocationsEntryGroupsTagsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsTagsListCall {
7360 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7361 return c
7362 }
7363
7364
7365
7366 func (c *ProjectsLocationsEntryGroupsTagsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsTagsListCall {
7367 c.urlParams_.Set("pageToken", pageToken)
7368 return c
7369 }
7370
7371
7372
7373
7374 func (c *ProjectsLocationsEntryGroupsTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsListCall {
7375 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7376 return c
7377 }
7378
7379
7380
7381
7382 func (c *ProjectsLocationsEntryGroupsTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsTagsListCall {
7383 c.ifNoneMatch_ = entityTag
7384 return c
7385 }
7386
7387
7388 func (c *ProjectsLocationsEntryGroupsTagsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsListCall {
7389 c.ctx_ = ctx
7390 return c
7391 }
7392
7393
7394
7395 func (c *ProjectsLocationsEntryGroupsTagsListCall) Header() http.Header {
7396 if c.header_ == nil {
7397 c.header_ = make(http.Header)
7398 }
7399 return c.header_
7400 }
7401
7402 func (c *ProjectsLocationsEntryGroupsTagsListCall) doRequest(alt string) (*http.Response, error) {
7403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7404 if c.ifNoneMatch_ != "" {
7405 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7406 }
7407 var body io.Reader = nil
7408 c.urlParams_.Set("alt", alt)
7409 c.urlParams_.Set("prettyPrint", "false")
7410 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags")
7411 urls += "?" + c.urlParams_.Encode()
7412 req, err := http.NewRequest("GET", urls, body)
7413 if err != nil {
7414 return nil, err
7415 }
7416 req.Header = reqHeaders
7417 googleapi.Expand(req.URL, map[string]string{
7418 "parent": c.parent,
7419 })
7420 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7421 }
7422
7423
7424
7425
7426
7427
7428
7429 func (c *ProjectsLocationsEntryGroupsTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListTagsResponse, error) {
7430 gensupport.SetOptions(c.urlParams_, opts...)
7431 res, err := c.doRequest("json")
7432 if res != nil && res.StatusCode == http.StatusNotModified {
7433 if res.Body != nil {
7434 res.Body.Close()
7435 }
7436 return nil, gensupport.WrapError(&googleapi.Error{
7437 Code: res.StatusCode,
7438 Header: res.Header,
7439 })
7440 }
7441 if err != nil {
7442 return nil, err
7443 }
7444 defer googleapi.CloseBody(res)
7445 if err := googleapi.CheckResponse(res); err != nil {
7446 return nil, gensupport.WrapError(err)
7447 }
7448 ret := &GoogleCloudDatacatalogV1ListTagsResponse{
7449 ServerResponse: googleapi.ServerResponse{
7450 Header: res.Header,
7451 HTTPStatusCode: res.StatusCode,
7452 },
7453 }
7454 target := &ret
7455 if err := gensupport.DecodeResponse(target, res); err != nil {
7456 return nil, err
7457 }
7458 return ret, nil
7459 }
7460
7461
7462
7463
7464 func (c *ProjectsLocationsEntryGroupsTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListTagsResponse) error) error {
7465 c.ctx_ = ctx
7466 defer c.PageToken(c.urlParams_.Get("pageToken"))
7467 for {
7468 x, err := c.Do()
7469 if err != nil {
7470 return err
7471 }
7472 if err := f(x); err != nil {
7473 return err
7474 }
7475 if x.NextPageToken == "" {
7476 return nil
7477 }
7478 c.PageToken(x.NextPageToken)
7479 }
7480 }
7481
7482 type ProjectsLocationsEntryGroupsTagsPatchCall struct {
7483 s *Service
7484 nameid string
7485 googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag
7486 urlParams_ gensupport.URLParams
7487 ctx_ context.Context
7488 header_ http.Header
7489 }
7490
7491
7492
7493
7494
7495
7496 func (r *ProjectsLocationsEntryGroupsTagsService) Patch(nameid string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsTagsPatchCall {
7497 c := &ProjectsLocationsEntryGroupsTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7498 c.nameid = nameid
7499 c.googleclouddatacatalogv1tag = googleclouddatacatalogv1tag
7500 return c
7501 }
7502
7503
7504
7505
7506
7507
7508 func (c *ProjectsLocationsEntryGroupsTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsTagsPatchCall {
7509 c.urlParams_.Set("updateMask", updateMask)
7510 return c
7511 }
7512
7513
7514
7515
7516 func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTagsPatchCall {
7517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7518 return c
7519 }
7520
7521
7522 func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTagsPatchCall {
7523 c.ctx_ = ctx
7524 return c
7525 }
7526
7527
7528
7529 func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Header() http.Header {
7530 if c.header_ == nil {
7531 c.header_ = make(http.Header)
7532 }
7533 return c.header_
7534 }
7535
7536 func (c *ProjectsLocationsEntryGroupsTagsPatchCall) doRequest(alt string) (*http.Response, error) {
7537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7538 var body io.Reader = nil
7539 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tag)
7540 if err != nil {
7541 return nil, err
7542 }
7543 c.urlParams_.Set("alt", alt)
7544 c.urlParams_.Set("prettyPrint", "false")
7545 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7546 urls += "?" + c.urlParams_.Encode()
7547 req, err := http.NewRequest("PATCH", urls, body)
7548 if err != nil {
7549 return nil, err
7550 }
7551 req.Header = reqHeaders
7552 googleapi.Expand(req.URL, map[string]string{
7553 "name": c.nameid,
7554 })
7555 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7556 }
7557
7558
7559
7560
7561
7562
7563
7564 func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Tag, error) {
7565 gensupport.SetOptions(c.urlParams_, opts...)
7566 res, err := c.doRequest("json")
7567 if res != nil && res.StatusCode == http.StatusNotModified {
7568 if res.Body != nil {
7569 res.Body.Close()
7570 }
7571 return nil, gensupport.WrapError(&googleapi.Error{
7572 Code: res.StatusCode,
7573 Header: res.Header,
7574 })
7575 }
7576 if err != nil {
7577 return nil, err
7578 }
7579 defer googleapi.CloseBody(res)
7580 if err := googleapi.CheckResponse(res); err != nil {
7581 return nil, gensupport.WrapError(err)
7582 }
7583 ret := &GoogleCloudDatacatalogV1Tag{
7584 ServerResponse: googleapi.ServerResponse{
7585 Header: res.Header,
7586 HTTPStatusCode: res.StatusCode,
7587 },
7588 }
7589 target := &ret
7590 if err := gensupport.DecodeResponse(target, res); err != nil {
7591 return nil, err
7592 }
7593 return ret, nil
7594 }
7595
7596 type ProjectsLocationsOperationsCancelCall struct {
7597 s *Service
7598 name string
7599 urlParams_ gensupport.URLParams
7600 ctx_ context.Context
7601 header_ http.Header
7602 }
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
7616 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7617 c.name = name
7618 return c
7619 }
7620
7621
7622
7623
7624 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
7625 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7626 return c
7627 }
7628
7629
7630 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
7631 c.ctx_ = ctx
7632 return c
7633 }
7634
7635
7636
7637 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
7638 if c.header_ == nil {
7639 c.header_ = make(http.Header)
7640 }
7641 return c.header_
7642 }
7643
7644 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
7645 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7646 var body io.Reader = nil
7647 c.urlParams_.Set("alt", alt)
7648 c.urlParams_.Set("prettyPrint", "false")
7649 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
7650 urls += "?" + c.urlParams_.Encode()
7651 req, err := http.NewRequest("POST", urls, body)
7652 if err != nil {
7653 return nil, err
7654 }
7655 req.Header = reqHeaders
7656 googleapi.Expand(req.URL, map[string]string{
7657 "name": c.name,
7658 })
7659 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7660 }
7661
7662
7663
7664
7665
7666
7667 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7668 gensupport.SetOptions(c.urlParams_, opts...)
7669 res, err := c.doRequest("json")
7670 if res != nil && res.StatusCode == http.StatusNotModified {
7671 if res.Body != nil {
7672 res.Body.Close()
7673 }
7674 return nil, gensupport.WrapError(&googleapi.Error{
7675 Code: res.StatusCode,
7676 Header: res.Header,
7677 })
7678 }
7679 if err != nil {
7680 return nil, err
7681 }
7682 defer googleapi.CloseBody(res)
7683 if err := googleapi.CheckResponse(res); err != nil {
7684 return nil, gensupport.WrapError(err)
7685 }
7686 ret := &Empty{
7687 ServerResponse: googleapi.ServerResponse{
7688 Header: res.Header,
7689 HTTPStatusCode: res.StatusCode,
7690 },
7691 }
7692 target := &ret
7693 if err := gensupport.DecodeResponse(target, res); err != nil {
7694 return nil, err
7695 }
7696 return ret, nil
7697 }
7698
7699 type ProjectsLocationsOperationsDeleteCall struct {
7700 s *Service
7701 name string
7702 urlParams_ gensupport.URLParams
7703 ctx_ context.Context
7704 header_ http.Header
7705 }
7706
7707
7708
7709
7710
7711
7712
7713 func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
7714 c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7715 c.name = name
7716 return c
7717 }
7718
7719
7720
7721
7722 func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
7723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7724 return c
7725 }
7726
7727
7728 func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
7729 c.ctx_ = ctx
7730 return c
7731 }
7732
7733
7734
7735 func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
7736 if c.header_ == nil {
7737 c.header_ = make(http.Header)
7738 }
7739 return c.header_
7740 }
7741
7742 func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
7743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7744 var body io.Reader = nil
7745 c.urlParams_.Set("alt", alt)
7746 c.urlParams_.Set("prettyPrint", "false")
7747 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7748 urls += "?" + c.urlParams_.Encode()
7749 req, err := http.NewRequest("DELETE", urls, body)
7750 if err != nil {
7751 return nil, err
7752 }
7753 req.Header = reqHeaders
7754 googleapi.Expand(req.URL, map[string]string{
7755 "name": c.name,
7756 })
7757 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7758 }
7759
7760
7761
7762
7763
7764
7765 func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7766 gensupport.SetOptions(c.urlParams_, opts...)
7767 res, err := c.doRequest("json")
7768 if res != nil && res.StatusCode == http.StatusNotModified {
7769 if res.Body != nil {
7770 res.Body.Close()
7771 }
7772 return nil, gensupport.WrapError(&googleapi.Error{
7773 Code: res.StatusCode,
7774 Header: res.Header,
7775 })
7776 }
7777 if err != nil {
7778 return nil, err
7779 }
7780 defer googleapi.CloseBody(res)
7781 if err := googleapi.CheckResponse(res); err != nil {
7782 return nil, gensupport.WrapError(err)
7783 }
7784 ret := &Empty{
7785 ServerResponse: googleapi.ServerResponse{
7786 Header: res.Header,
7787 HTTPStatusCode: res.StatusCode,
7788 },
7789 }
7790 target := &ret
7791 if err := gensupport.DecodeResponse(target, res); err != nil {
7792 return nil, err
7793 }
7794 return ret, nil
7795 }
7796
7797 type ProjectsLocationsOperationsGetCall struct {
7798 s *Service
7799 name string
7800 urlParams_ gensupport.URLParams
7801 ifNoneMatch_ string
7802 ctx_ context.Context
7803 header_ http.Header
7804 }
7805
7806
7807
7808
7809
7810
7811 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
7812 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7813 c.name = name
7814 return c
7815 }
7816
7817
7818
7819
7820 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
7821 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7822 return c
7823 }
7824
7825
7826
7827
7828 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
7829 c.ifNoneMatch_ = entityTag
7830 return c
7831 }
7832
7833
7834 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
7835 c.ctx_ = ctx
7836 return c
7837 }
7838
7839
7840
7841 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
7842 if c.header_ == nil {
7843 c.header_ = make(http.Header)
7844 }
7845 return c.header_
7846 }
7847
7848 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
7849 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7850 if c.ifNoneMatch_ != "" {
7851 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7852 }
7853 var body io.Reader = nil
7854 c.urlParams_.Set("alt", alt)
7855 c.urlParams_.Set("prettyPrint", "false")
7856 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7857 urls += "?" + c.urlParams_.Encode()
7858 req, err := http.NewRequest("GET", urls, body)
7859 if err != nil {
7860 return nil, err
7861 }
7862 req.Header = reqHeaders
7863 googleapi.Expand(req.URL, map[string]string{
7864 "name": c.name,
7865 })
7866 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7867 }
7868
7869
7870
7871
7872
7873
7874 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7875 gensupport.SetOptions(c.urlParams_, opts...)
7876 res, err := c.doRequest("json")
7877 if res != nil && res.StatusCode == http.StatusNotModified {
7878 if res.Body != nil {
7879 res.Body.Close()
7880 }
7881 return nil, gensupport.WrapError(&googleapi.Error{
7882 Code: res.StatusCode,
7883 Header: res.Header,
7884 })
7885 }
7886 if err != nil {
7887 return nil, err
7888 }
7889 defer googleapi.CloseBody(res)
7890 if err := googleapi.CheckResponse(res); err != nil {
7891 return nil, gensupport.WrapError(err)
7892 }
7893 ret := &Operation{
7894 ServerResponse: googleapi.ServerResponse{
7895 Header: res.Header,
7896 HTTPStatusCode: res.StatusCode,
7897 },
7898 }
7899 target := &ret
7900 if err := gensupport.DecodeResponse(target, res); err != nil {
7901 return nil, err
7902 }
7903 return ret, nil
7904 }
7905
7906 type ProjectsLocationsOperationsListCall struct {
7907 s *Service
7908 name string
7909 urlParams_ gensupport.URLParams
7910 ifNoneMatch_ string
7911 ctx_ context.Context
7912 header_ http.Header
7913 }
7914
7915
7916
7917
7918
7919 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
7920 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7921 c.name = name
7922 return c
7923 }
7924
7925
7926 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
7927 c.urlParams_.Set("filter", filter)
7928 return c
7929 }
7930
7931
7932
7933 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
7934 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7935 return c
7936 }
7937
7938
7939
7940 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
7941 c.urlParams_.Set("pageToken", pageToken)
7942 return c
7943 }
7944
7945
7946
7947
7948 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
7949 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7950 return c
7951 }
7952
7953
7954
7955
7956 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
7957 c.ifNoneMatch_ = entityTag
7958 return c
7959 }
7960
7961
7962 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
7963 c.ctx_ = ctx
7964 return c
7965 }
7966
7967
7968
7969 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
7970 if c.header_ == nil {
7971 c.header_ = make(http.Header)
7972 }
7973 return c.header_
7974 }
7975
7976 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
7977 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7978 if c.ifNoneMatch_ != "" {
7979 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7980 }
7981 var body io.Reader = nil
7982 c.urlParams_.Set("alt", alt)
7983 c.urlParams_.Set("prettyPrint", "false")
7984 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
7985 urls += "?" + c.urlParams_.Encode()
7986 req, err := http.NewRequest("GET", urls, body)
7987 if err != nil {
7988 return nil, err
7989 }
7990 req.Header = reqHeaders
7991 googleapi.Expand(req.URL, map[string]string{
7992 "name": c.name,
7993 })
7994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7995 }
7996
7997
7998
7999
8000
8001
8002
8003 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
8004 gensupport.SetOptions(c.urlParams_, opts...)
8005 res, err := c.doRequest("json")
8006 if res != nil && res.StatusCode == http.StatusNotModified {
8007 if res.Body != nil {
8008 res.Body.Close()
8009 }
8010 return nil, gensupport.WrapError(&googleapi.Error{
8011 Code: res.StatusCode,
8012 Header: res.Header,
8013 })
8014 }
8015 if err != nil {
8016 return nil, err
8017 }
8018 defer googleapi.CloseBody(res)
8019 if err := googleapi.CheckResponse(res); err != nil {
8020 return nil, gensupport.WrapError(err)
8021 }
8022 ret := &ListOperationsResponse{
8023 ServerResponse: googleapi.ServerResponse{
8024 Header: res.Header,
8025 HTTPStatusCode: res.StatusCode,
8026 },
8027 }
8028 target := &ret
8029 if err := gensupport.DecodeResponse(target, res); err != nil {
8030 return nil, err
8031 }
8032 return ret, nil
8033 }
8034
8035
8036
8037
8038 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
8039 c.ctx_ = ctx
8040 defer c.PageToken(c.urlParams_.Get("pageToken"))
8041 for {
8042 x, err := c.Do()
8043 if err != nil {
8044 return err
8045 }
8046 if err := f(x); err != nil {
8047 return err
8048 }
8049 if x.NextPageToken == "" {
8050 return nil
8051 }
8052 c.PageToken(x.NextPageToken)
8053 }
8054 }
8055
8056 type ProjectsLocationsTagTemplatesCreateCall struct {
8057 s *Service
8058 parent string
8059 googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate
8060 urlParams_ gensupport.URLParams
8061 ctx_ context.Context
8062 header_ http.Header
8063 }
8064
8065
8066
8067
8068
8069
8070
8071
8072 func (r *ProjectsLocationsTagTemplatesService) Create(parent string, googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate) *ProjectsLocationsTagTemplatesCreateCall {
8073 c := &ProjectsLocationsTagTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8074 c.parent = parent
8075 c.googleclouddatacatalogv1tagtemplate = googleclouddatacatalogv1tagtemplate
8076 return c
8077 }
8078
8079
8080
8081
8082
8083 func (c *ProjectsLocationsTagTemplatesCreateCall) TagTemplateId(tagTemplateId string) *ProjectsLocationsTagTemplatesCreateCall {
8084 c.urlParams_.Set("tagTemplateId", tagTemplateId)
8085 return c
8086 }
8087
8088
8089
8090
8091 func (c *ProjectsLocationsTagTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesCreateCall {
8092 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8093 return c
8094 }
8095
8096
8097 func (c *ProjectsLocationsTagTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesCreateCall {
8098 c.ctx_ = ctx
8099 return c
8100 }
8101
8102
8103
8104 func (c *ProjectsLocationsTagTemplatesCreateCall) Header() http.Header {
8105 if c.header_ == nil {
8106 c.header_ = make(http.Header)
8107 }
8108 return c.header_
8109 }
8110
8111 func (c *ProjectsLocationsTagTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
8112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8113 var body io.Reader = nil
8114 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplate)
8115 if err != nil {
8116 return nil, err
8117 }
8118 c.urlParams_.Set("alt", alt)
8119 c.urlParams_.Set("prettyPrint", "false")
8120 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tagTemplates")
8121 urls += "?" + c.urlParams_.Encode()
8122 req, err := http.NewRequest("POST", urls, body)
8123 if err != nil {
8124 return nil, err
8125 }
8126 req.Header = reqHeaders
8127 googleapi.Expand(req.URL, map[string]string{
8128 "parent": c.parent,
8129 })
8130 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8131 }
8132
8133
8134
8135
8136
8137
8138
8139 func (c *ProjectsLocationsTagTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplate, error) {
8140 gensupport.SetOptions(c.urlParams_, opts...)
8141 res, err := c.doRequest("json")
8142 if res != nil && res.StatusCode == http.StatusNotModified {
8143 if res.Body != nil {
8144 res.Body.Close()
8145 }
8146 return nil, gensupport.WrapError(&googleapi.Error{
8147 Code: res.StatusCode,
8148 Header: res.Header,
8149 })
8150 }
8151 if err != nil {
8152 return nil, err
8153 }
8154 defer googleapi.CloseBody(res)
8155 if err := googleapi.CheckResponse(res); err != nil {
8156 return nil, gensupport.WrapError(err)
8157 }
8158 ret := &GoogleCloudDatacatalogV1TagTemplate{
8159 ServerResponse: googleapi.ServerResponse{
8160 Header: res.Header,
8161 HTTPStatusCode: res.StatusCode,
8162 },
8163 }
8164 target := &ret
8165 if err := gensupport.DecodeResponse(target, res); err != nil {
8166 return nil, err
8167 }
8168 return ret, nil
8169 }
8170
8171 type ProjectsLocationsTagTemplatesDeleteCall struct {
8172 s *Service
8173 name string
8174 urlParams_ gensupport.URLParams
8175 ctx_ context.Context
8176 header_ http.Header
8177 }
8178
8179
8180
8181
8182
8183
8184
8185 func (r *ProjectsLocationsTagTemplatesService) Delete(name string) *ProjectsLocationsTagTemplatesDeleteCall {
8186 c := &ProjectsLocationsTagTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8187 c.name = name
8188 return c
8189 }
8190
8191
8192
8193 func (c *ProjectsLocationsTagTemplatesDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesDeleteCall {
8194 c.urlParams_.Set("force", fmt.Sprint(force))
8195 return c
8196 }
8197
8198
8199
8200
8201 func (c *ProjectsLocationsTagTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesDeleteCall {
8202 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8203 return c
8204 }
8205
8206
8207 func (c *ProjectsLocationsTagTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesDeleteCall {
8208 c.ctx_ = ctx
8209 return c
8210 }
8211
8212
8213
8214 func (c *ProjectsLocationsTagTemplatesDeleteCall) Header() http.Header {
8215 if c.header_ == nil {
8216 c.header_ = make(http.Header)
8217 }
8218 return c.header_
8219 }
8220
8221 func (c *ProjectsLocationsTagTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
8222 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8223 var body io.Reader = nil
8224 c.urlParams_.Set("alt", alt)
8225 c.urlParams_.Set("prettyPrint", "false")
8226 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8227 urls += "?" + c.urlParams_.Encode()
8228 req, err := http.NewRequest("DELETE", urls, body)
8229 if err != nil {
8230 return nil, err
8231 }
8232 req.Header = reqHeaders
8233 googleapi.Expand(req.URL, map[string]string{
8234 "name": c.name,
8235 })
8236 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8237 }
8238
8239
8240
8241
8242
8243
8244 func (c *ProjectsLocationsTagTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
8245 gensupport.SetOptions(c.urlParams_, opts...)
8246 res, err := c.doRequest("json")
8247 if res != nil && res.StatusCode == http.StatusNotModified {
8248 if res.Body != nil {
8249 res.Body.Close()
8250 }
8251 return nil, gensupport.WrapError(&googleapi.Error{
8252 Code: res.StatusCode,
8253 Header: res.Header,
8254 })
8255 }
8256 if err != nil {
8257 return nil, err
8258 }
8259 defer googleapi.CloseBody(res)
8260 if err := googleapi.CheckResponse(res); err != nil {
8261 return nil, gensupport.WrapError(err)
8262 }
8263 ret := &Empty{
8264 ServerResponse: googleapi.ServerResponse{
8265 Header: res.Header,
8266 HTTPStatusCode: res.StatusCode,
8267 },
8268 }
8269 target := &ret
8270 if err := gensupport.DecodeResponse(target, res); err != nil {
8271 return nil, err
8272 }
8273 return ret, nil
8274 }
8275
8276 type ProjectsLocationsTagTemplatesGetCall struct {
8277 s *Service
8278 name string
8279 urlParams_ gensupport.URLParams
8280 ifNoneMatch_ string
8281 ctx_ context.Context
8282 header_ http.Header
8283 }
8284
8285
8286
8287
8288 func (r *ProjectsLocationsTagTemplatesService) Get(name string) *ProjectsLocationsTagTemplatesGetCall {
8289 c := &ProjectsLocationsTagTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8290 c.name = name
8291 return c
8292 }
8293
8294
8295
8296
8297 func (c *ProjectsLocationsTagTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetCall {
8298 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8299 return c
8300 }
8301
8302
8303
8304
8305 func (c *ProjectsLocationsTagTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTagTemplatesGetCall {
8306 c.ifNoneMatch_ = entityTag
8307 return c
8308 }
8309
8310
8311 func (c *ProjectsLocationsTagTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetCall {
8312 c.ctx_ = ctx
8313 return c
8314 }
8315
8316
8317
8318 func (c *ProjectsLocationsTagTemplatesGetCall) Header() http.Header {
8319 if c.header_ == nil {
8320 c.header_ = make(http.Header)
8321 }
8322 return c.header_
8323 }
8324
8325 func (c *ProjectsLocationsTagTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
8326 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8327 if c.ifNoneMatch_ != "" {
8328 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8329 }
8330 var body io.Reader = nil
8331 c.urlParams_.Set("alt", alt)
8332 c.urlParams_.Set("prettyPrint", "false")
8333 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8334 urls += "?" + c.urlParams_.Encode()
8335 req, err := http.NewRequest("GET", urls, body)
8336 if err != nil {
8337 return nil, err
8338 }
8339 req.Header = reqHeaders
8340 googleapi.Expand(req.URL, map[string]string{
8341 "name": c.name,
8342 })
8343 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8344 }
8345
8346
8347
8348
8349
8350
8351
8352 func (c *ProjectsLocationsTagTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplate, error) {
8353 gensupport.SetOptions(c.urlParams_, opts...)
8354 res, err := c.doRequest("json")
8355 if res != nil && res.StatusCode == http.StatusNotModified {
8356 if res.Body != nil {
8357 res.Body.Close()
8358 }
8359 return nil, gensupport.WrapError(&googleapi.Error{
8360 Code: res.StatusCode,
8361 Header: res.Header,
8362 })
8363 }
8364 if err != nil {
8365 return nil, err
8366 }
8367 defer googleapi.CloseBody(res)
8368 if err := googleapi.CheckResponse(res); err != nil {
8369 return nil, gensupport.WrapError(err)
8370 }
8371 ret := &GoogleCloudDatacatalogV1TagTemplate{
8372 ServerResponse: googleapi.ServerResponse{
8373 Header: res.Header,
8374 HTTPStatusCode: res.StatusCode,
8375 },
8376 }
8377 target := &ret
8378 if err := gensupport.DecodeResponse(target, res); err != nil {
8379 return nil, err
8380 }
8381 return ret, nil
8382 }
8383
8384 type ProjectsLocationsTagTemplatesGetIamPolicyCall struct {
8385 s *Service
8386 resource string
8387 getiampolicyrequest *GetIamPolicyRequest
8388 urlParams_ gensupport.URLParams
8389 ctx_ context.Context
8390 header_ http.Header
8391 }
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406 func (r *ProjectsLocationsTagTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTagTemplatesGetIamPolicyCall {
8407 c := &ProjectsLocationsTagTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8408 c.resource = resource
8409 c.getiampolicyrequest = getiampolicyrequest
8410 return c
8411 }
8412
8413
8414
8415
8416 func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetIamPolicyCall {
8417 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8418 return c
8419 }
8420
8421
8422 func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetIamPolicyCall {
8423 c.ctx_ = ctx
8424 return c
8425 }
8426
8427
8428
8429 func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Header() http.Header {
8430 if c.header_ == nil {
8431 c.header_ = make(http.Header)
8432 }
8433 return c.header_
8434 }
8435
8436 func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8437 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8438 var body io.Reader = nil
8439 body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
8440 if err != nil {
8441 return nil, err
8442 }
8443 c.urlParams_.Set("alt", alt)
8444 c.urlParams_.Set("prettyPrint", "false")
8445 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
8446 urls += "?" + c.urlParams_.Encode()
8447 req, err := http.NewRequest("POST", urls, body)
8448 if err != nil {
8449 return nil, err
8450 }
8451 req.Header = reqHeaders
8452 googleapi.Expand(req.URL, map[string]string{
8453 "resource": c.resource,
8454 })
8455 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8456 }
8457
8458
8459
8460
8461
8462
8463 func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8464 gensupport.SetOptions(c.urlParams_, opts...)
8465 res, err := c.doRequest("json")
8466 if res != nil && res.StatusCode == http.StatusNotModified {
8467 if res.Body != nil {
8468 res.Body.Close()
8469 }
8470 return nil, gensupport.WrapError(&googleapi.Error{
8471 Code: res.StatusCode,
8472 Header: res.Header,
8473 })
8474 }
8475 if err != nil {
8476 return nil, err
8477 }
8478 defer googleapi.CloseBody(res)
8479 if err := googleapi.CheckResponse(res); err != nil {
8480 return nil, gensupport.WrapError(err)
8481 }
8482 ret := &Policy{
8483 ServerResponse: googleapi.ServerResponse{
8484 Header: res.Header,
8485 HTTPStatusCode: res.StatusCode,
8486 },
8487 }
8488 target := &ret
8489 if err := gensupport.DecodeResponse(target, res); err != nil {
8490 return nil, err
8491 }
8492 return ret, nil
8493 }
8494
8495 type ProjectsLocationsTagTemplatesPatchCall struct {
8496 s *Service
8497 name string
8498 googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate
8499 urlParams_ gensupport.URLParams
8500 ctx_ context.Context
8501 header_ http.Header
8502 }
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 func (r *ProjectsLocationsTagTemplatesService) Patch(name string, googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate) *ProjectsLocationsTagTemplatesPatchCall {
8515 c := &ProjectsLocationsTagTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8516 c.name = name
8517 c.googleclouddatacatalogv1tagtemplate = googleclouddatacatalogv1tagtemplate
8518 return c
8519 }
8520
8521
8522
8523
8524
8525
8526
8527
8528 func (c *ProjectsLocationsTagTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesPatchCall {
8529 c.urlParams_.Set("updateMask", updateMask)
8530 return c
8531 }
8532
8533
8534
8535
8536 func (c *ProjectsLocationsTagTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesPatchCall {
8537 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8538 return c
8539 }
8540
8541
8542 func (c *ProjectsLocationsTagTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesPatchCall {
8543 c.ctx_ = ctx
8544 return c
8545 }
8546
8547
8548
8549 func (c *ProjectsLocationsTagTemplatesPatchCall) Header() http.Header {
8550 if c.header_ == nil {
8551 c.header_ = make(http.Header)
8552 }
8553 return c.header_
8554 }
8555
8556 func (c *ProjectsLocationsTagTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
8557 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8558 var body io.Reader = nil
8559 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplate)
8560 if err != nil {
8561 return nil, err
8562 }
8563 c.urlParams_.Set("alt", alt)
8564 c.urlParams_.Set("prettyPrint", "false")
8565 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8566 urls += "?" + c.urlParams_.Encode()
8567 req, err := http.NewRequest("PATCH", urls, body)
8568 if err != nil {
8569 return nil, err
8570 }
8571 req.Header = reqHeaders
8572 googleapi.Expand(req.URL, map[string]string{
8573 "name": c.name,
8574 })
8575 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8576 }
8577
8578
8579
8580
8581
8582
8583
8584 func (c *ProjectsLocationsTagTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplate, error) {
8585 gensupport.SetOptions(c.urlParams_, opts...)
8586 res, err := c.doRequest("json")
8587 if res != nil && res.StatusCode == http.StatusNotModified {
8588 if res.Body != nil {
8589 res.Body.Close()
8590 }
8591 return nil, gensupport.WrapError(&googleapi.Error{
8592 Code: res.StatusCode,
8593 Header: res.Header,
8594 })
8595 }
8596 if err != nil {
8597 return nil, err
8598 }
8599 defer googleapi.CloseBody(res)
8600 if err := googleapi.CheckResponse(res); err != nil {
8601 return nil, gensupport.WrapError(err)
8602 }
8603 ret := &GoogleCloudDatacatalogV1TagTemplate{
8604 ServerResponse: googleapi.ServerResponse{
8605 Header: res.Header,
8606 HTTPStatusCode: res.StatusCode,
8607 },
8608 }
8609 target := &ret
8610 if err := gensupport.DecodeResponse(target, res); err != nil {
8611 return nil, err
8612 }
8613 return ret, nil
8614 }
8615
8616 type ProjectsLocationsTagTemplatesSetIamPolicyCall struct {
8617 s *Service
8618 resource string
8619 setiampolicyrequest *SetIamPolicyRequest
8620 urlParams_ gensupport.URLParams
8621 ctx_ context.Context
8622 header_ http.Header
8623 }
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637 func (r *ProjectsLocationsTagTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTagTemplatesSetIamPolicyCall {
8638 c := &ProjectsLocationsTagTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8639 c.resource = resource
8640 c.setiampolicyrequest = setiampolicyrequest
8641 return c
8642 }
8643
8644
8645
8646
8647 func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesSetIamPolicyCall {
8648 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8649 return c
8650 }
8651
8652
8653 func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesSetIamPolicyCall {
8654 c.ctx_ = ctx
8655 return c
8656 }
8657
8658
8659
8660 func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Header() http.Header {
8661 if c.header_ == nil {
8662 c.header_ = make(http.Header)
8663 }
8664 return c.header_
8665 }
8666
8667 func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8668 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8669 var body io.Reader = nil
8670 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
8671 if err != nil {
8672 return nil, err
8673 }
8674 c.urlParams_.Set("alt", alt)
8675 c.urlParams_.Set("prettyPrint", "false")
8676 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
8677 urls += "?" + c.urlParams_.Encode()
8678 req, err := http.NewRequest("POST", urls, body)
8679 if err != nil {
8680 return nil, err
8681 }
8682 req.Header = reqHeaders
8683 googleapi.Expand(req.URL, map[string]string{
8684 "resource": c.resource,
8685 })
8686 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8687 }
8688
8689
8690
8691
8692
8693
8694 func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8695 gensupport.SetOptions(c.urlParams_, opts...)
8696 res, err := c.doRequest("json")
8697 if res != nil && res.StatusCode == http.StatusNotModified {
8698 if res.Body != nil {
8699 res.Body.Close()
8700 }
8701 return nil, gensupport.WrapError(&googleapi.Error{
8702 Code: res.StatusCode,
8703 Header: res.Header,
8704 })
8705 }
8706 if err != nil {
8707 return nil, err
8708 }
8709 defer googleapi.CloseBody(res)
8710 if err := googleapi.CheckResponse(res); err != nil {
8711 return nil, gensupport.WrapError(err)
8712 }
8713 ret := &Policy{
8714 ServerResponse: googleapi.ServerResponse{
8715 Header: res.Header,
8716 HTTPStatusCode: res.StatusCode,
8717 },
8718 }
8719 target := &ret
8720 if err := gensupport.DecodeResponse(target, res); err != nil {
8721 return nil, err
8722 }
8723 return ret, nil
8724 }
8725
8726 type ProjectsLocationsTagTemplatesTestIamPermissionsCall struct {
8727 s *Service
8728 resource string
8729 testiampermissionsrequest *TestIamPermissionsRequest
8730 urlParams_ gensupport.URLParams
8731 ctx_ context.Context
8732 header_ http.Header
8733 }
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747 func (r *ProjectsLocationsTagTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTagTemplatesTestIamPermissionsCall {
8748 c := &ProjectsLocationsTagTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8749 c.resource = resource
8750 c.testiampermissionsrequest = testiampermissionsrequest
8751 return c
8752 }
8753
8754
8755
8756
8757 func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesTestIamPermissionsCall {
8758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8759 return c
8760 }
8761
8762
8763 func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesTestIamPermissionsCall {
8764 c.ctx_ = ctx
8765 return c
8766 }
8767
8768
8769
8770 func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Header() http.Header {
8771 if c.header_ == nil {
8772 c.header_ = make(http.Header)
8773 }
8774 return c.header_
8775 }
8776
8777 func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
8778 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8779 var body io.Reader = nil
8780 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
8781 if err != nil {
8782 return nil, err
8783 }
8784 c.urlParams_.Set("alt", alt)
8785 c.urlParams_.Set("prettyPrint", "false")
8786 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
8787 urls += "?" + c.urlParams_.Encode()
8788 req, err := http.NewRequest("POST", urls, body)
8789 if err != nil {
8790 return nil, err
8791 }
8792 req.Header = reqHeaders
8793 googleapi.Expand(req.URL, map[string]string{
8794 "resource": c.resource,
8795 })
8796 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8797 }
8798
8799
8800
8801
8802
8803
8804
8805 func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
8806 gensupport.SetOptions(c.urlParams_, opts...)
8807 res, err := c.doRequest("json")
8808 if res != nil && res.StatusCode == http.StatusNotModified {
8809 if res.Body != nil {
8810 res.Body.Close()
8811 }
8812 return nil, gensupport.WrapError(&googleapi.Error{
8813 Code: res.StatusCode,
8814 Header: res.Header,
8815 })
8816 }
8817 if err != nil {
8818 return nil, err
8819 }
8820 defer googleapi.CloseBody(res)
8821 if err := googleapi.CheckResponse(res); err != nil {
8822 return nil, gensupport.WrapError(err)
8823 }
8824 ret := &TestIamPermissionsResponse{
8825 ServerResponse: googleapi.ServerResponse{
8826 Header: res.Header,
8827 HTTPStatusCode: res.StatusCode,
8828 },
8829 }
8830 target := &ret
8831 if err := gensupport.DecodeResponse(target, res); err != nil {
8832 return nil, err
8833 }
8834 return ret, nil
8835 }
8836
8837 type ProjectsLocationsTagTemplatesFieldsCreateCall struct {
8838 s *Service
8839 parent string
8840 googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField
8841 urlParams_ gensupport.URLParams
8842 ctx_ context.Context
8843 header_ http.Header
8844 }
8845
8846
8847
8848
8849
8850
8851
8852
8853 func (r *ProjectsLocationsTagTemplatesFieldsService) Create(parent string, googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField) *ProjectsLocationsTagTemplatesFieldsCreateCall {
8854 c := &ProjectsLocationsTagTemplatesFieldsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8855 c.parent = parent
8856 c.googleclouddatacatalogv1tagtemplatefield = googleclouddatacatalogv1tagtemplatefield
8857 return c
8858 }
8859
8860
8861
8862
8863
8864
8865
8866 func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) TagTemplateFieldId(tagTemplateFieldId string) *ProjectsLocationsTagTemplatesFieldsCreateCall {
8867 c.urlParams_.Set("tagTemplateFieldId", tagTemplateFieldId)
8868 return c
8869 }
8870
8871
8872
8873
8874 func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsCreateCall {
8875 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8876 return c
8877 }
8878
8879
8880 func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsCreateCall {
8881 c.ctx_ = ctx
8882 return c
8883 }
8884
8885
8886
8887 func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Header() http.Header {
8888 if c.header_ == nil {
8889 c.header_ = make(http.Header)
8890 }
8891 return c.header_
8892 }
8893
8894 func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) doRequest(alt string) (*http.Response, error) {
8895 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8896 var body io.Reader = nil
8897 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplatefield)
8898 if err != nil {
8899 return nil, err
8900 }
8901 c.urlParams_.Set("alt", alt)
8902 c.urlParams_.Set("prettyPrint", "false")
8903 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fields")
8904 urls += "?" + c.urlParams_.Encode()
8905 req, err := http.NewRequest("POST", urls, body)
8906 if err != nil {
8907 return nil, err
8908 }
8909 req.Header = reqHeaders
8910 googleapi.Expand(req.URL, map[string]string{
8911 "parent": c.parent,
8912 })
8913 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8914 }
8915
8916
8917
8918
8919
8920
8921
8922 func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
8923 gensupport.SetOptions(c.urlParams_, opts...)
8924 res, err := c.doRequest("json")
8925 if res != nil && res.StatusCode == http.StatusNotModified {
8926 if res.Body != nil {
8927 res.Body.Close()
8928 }
8929 return nil, gensupport.WrapError(&googleapi.Error{
8930 Code: res.StatusCode,
8931 Header: res.Header,
8932 })
8933 }
8934 if err != nil {
8935 return nil, err
8936 }
8937 defer googleapi.CloseBody(res)
8938 if err := googleapi.CheckResponse(res); err != nil {
8939 return nil, gensupport.WrapError(err)
8940 }
8941 ret := &GoogleCloudDatacatalogV1TagTemplateField{
8942 ServerResponse: googleapi.ServerResponse{
8943 Header: res.Header,
8944 HTTPStatusCode: res.StatusCode,
8945 },
8946 }
8947 target := &ret
8948 if err := gensupport.DecodeResponse(target, res); err != nil {
8949 return nil, err
8950 }
8951 return ret, nil
8952 }
8953
8954 type ProjectsLocationsTagTemplatesFieldsDeleteCall struct {
8955 s *Service
8956 name string
8957 urlParams_ gensupport.URLParams
8958 ctx_ context.Context
8959 header_ http.Header
8960 }
8961
8962
8963
8964
8965
8966
8967
8968
8969 func (r *ProjectsLocationsTagTemplatesFieldsService) Delete(name string) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
8970 c := &ProjectsLocationsTagTemplatesFieldsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8971 c.name = name
8972 return c
8973 }
8974
8975
8976
8977
8978 func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
8979 c.urlParams_.Set("force", fmt.Sprint(force))
8980 return c
8981 }
8982
8983
8984
8985
8986 func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
8987 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8988 return c
8989 }
8990
8991
8992 func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsDeleteCall {
8993 c.ctx_ = ctx
8994 return c
8995 }
8996
8997
8998
8999 func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Header() http.Header {
9000 if c.header_ == nil {
9001 c.header_ = make(http.Header)
9002 }
9003 return c.header_
9004 }
9005
9006 func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) doRequest(alt string) (*http.Response, error) {
9007 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9008 var body io.Reader = nil
9009 c.urlParams_.Set("alt", alt)
9010 c.urlParams_.Set("prettyPrint", "false")
9011 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9012 urls += "?" + c.urlParams_.Encode()
9013 req, err := http.NewRequest("DELETE", urls, body)
9014 if err != nil {
9015 return nil, err
9016 }
9017 req.Header = reqHeaders
9018 googleapi.Expand(req.URL, map[string]string{
9019 "name": c.name,
9020 })
9021 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9022 }
9023
9024
9025
9026
9027
9028
9029 func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
9030 gensupport.SetOptions(c.urlParams_, opts...)
9031 res, err := c.doRequest("json")
9032 if res != nil && res.StatusCode == http.StatusNotModified {
9033 if res.Body != nil {
9034 res.Body.Close()
9035 }
9036 return nil, gensupport.WrapError(&googleapi.Error{
9037 Code: res.StatusCode,
9038 Header: res.Header,
9039 })
9040 }
9041 if err != nil {
9042 return nil, err
9043 }
9044 defer googleapi.CloseBody(res)
9045 if err := googleapi.CheckResponse(res); err != nil {
9046 return nil, gensupport.WrapError(err)
9047 }
9048 ret := &Empty{
9049 ServerResponse: googleapi.ServerResponse{
9050 Header: res.Header,
9051 HTTPStatusCode: res.StatusCode,
9052 },
9053 }
9054 target := &ret
9055 if err := gensupport.DecodeResponse(target, res); err != nil {
9056 return nil, err
9057 }
9058 return ret, nil
9059 }
9060
9061 type ProjectsLocationsTagTemplatesFieldsPatchCall struct {
9062 s *Service
9063 name string
9064 googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField
9065 urlParams_ gensupport.URLParams
9066 ctx_ context.Context
9067 header_ http.Header
9068 }
9069
9070
9071
9072
9073
9074
9075
9076
9077 func (r *ProjectsLocationsTagTemplatesFieldsService) Patch(name string, googleclouddatacatalogv1tagtemplatefield *GoogleCloudDatacatalogV1TagTemplateField) *ProjectsLocationsTagTemplatesFieldsPatchCall {
9078 c := &ProjectsLocationsTagTemplatesFieldsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9079 c.name = name
9080 c.googleclouddatacatalogv1tagtemplatefield = googleclouddatacatalogv1tagtemplatefield
9081 return c
9082 }
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesFieldsPatchCall {
9095 c.urlParams_.Set("updateMask", updateMask)
9096 return c
9097 }
9098
9099
9100
9101
9102 func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsPatchCall {
9103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9104 return c
9105 }
9106
9107
9108 func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsPatchCall {
9109 c.ctx_ = ctx
9110 return c
9111 }
9112
9113
9114
9115 func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Header() http.Header {
9116 if c.header_ == nil {
9117 c.header_ = make(http.Header)
9118 }
9119 return c.header_
9120 }
9121
9122 func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) doRequest(alt string) (*http.Response, error) {
9123 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9124 var body io.Reader = nil
9125 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1tagtemplatefield)
9126 if err != nil {
9127 return nil, err
9128 }
9129 c.urlParams_.Set("alt", alt)
9130 c.urlParams_.Set("prettyPrint", "false")
9131 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9132 urls += "?" + c.urlParams_.Encode()
9133 req, err := http.NewRequest("PATCH", urls, body)
9134 if err != nil {
9135 return nil, err
9136 }
9137 req.Header = reqHeaders
9138 googleapi.Expand(req.URL, map[string]string{
9139 "name": c.name,
9140 })
9141 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9142 }
9143
9144
9145
9146
9147
9148
9149
9150 func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
9151 gensupport.SetOptions(c.urlParams_, opts...)
9152 res, err := c.doRequest("json")
9153 if res != nil && res.StatusCode == http.StatusNotModified {
9154 if res.Body != nil {
9155 res.Body.Close()
9156 }
9157 return nil, gensupport.WrapError(&googleapi.Error{
9158 Code: res.StatusCode,
9159 Header: res.Header,
9160 })
9161 }
9162 if err != nil {
9163 return nil, err
9164 }
9165 defer googleapi.CloseBody(res)
9166 if err := googleapi.CheckResponse(res); err != nil {
9167 return nil, gensupport.WrapError(err)
9168 }
9169 ret := &GoogleCloudDatacatalogV1TagTemplateField{
9170 ServerResponse: googleapi.ServerResponse{
9171 Header: res.Header,
9172 HTTPStatusCode: res.StatusCode,
9173 },
9174 }
9175 target := &ret
9176 if err := gensupport.DecodeResponse(target, res); err != nil {
9177 return nil, err
9178 }
9179 return ret, nil
9180 }
9181
9182 type ProjectsLocationsTagTemplatesFieldsRenameCall struct {
9183 s *Service
9184 name string
9185 googleclouddatacatalogv1renametagtemplatefieldrequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest
9186 urlParams_ gensupport.URLParams
9187 ctx_ context.Context
9188 header_ http.Header
9189 }
9190
9191
9192
9193
9194
9195
9196
9197 func (r *ProjectsLocationsTagTemplatesFieldsService) Rename(name string, googleclouddatacatalogv1renametagtemplatefieldrequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest) *ProjectsLocationsTagTemplatesFieldsRenameCall {
9198 c := &ProjectsLocationsTagTemplatesFieldsRenameCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9199 c.name = name
9200 c.googleclouddatacatalogv1renametagtemplatefieldrequest = googleclouddatacatalogv1renametagtemplatefieldrequest
9201 return c
9202 }
9203
9204
9205
9206
9207 func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsRenameCall {
9208 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9209 return c
9210 }
9211
9212
9213 func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsRenameCall {
9214 c.ctx_ = ctx
9215 return c
9216 }
9217
9218
9219
9220 func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Header() http.Header {
9221 if c.header_ == nil {
9222 c.header_ = make(http.Header)
9223 }
9224 return c.header_
9225 }
9226
9227 func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) doRequest(alt string) (*http.Response, error) {
9228 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9229 var body io.Reader = nil
9230 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1renametagtemplatefieldrequest)
9231 if err != nil {
9232 return nil, err
9233 }
9234 c.urlParams_.Set("alt", alt)
9235 c.urlParams_.Set("prettyPrint", "false")
9236 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rename")
9237 urls += "?" + c.urlParams_.Encode()
9238 req, err := http.NewRequest("POST", urls, body)
9239 if err != nil {
9240 return nil, err
9241 }
9242 req.Header = reqHeaders
9243 googleapi.Expand(req.URL, map[string]string{
9244 "name": c.name,
9245 })
9246 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9247 }
9248
9249
9250
9251
9252
9253
9254
9255 func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
9256 gensupport.SetOptions(c.urlParams_, opts...)
9257 res, err := c.doRequest("json")
9258 if res != nil && res.StatusCode == http.StatusNotModified {
9259 if res.Body != nil {
9260 res.Body.Close()
9261 }
9262 return nil, gensupport.WrapError(&googleapi.Error{
9263 Code: res.StatusCode,
9264 Header: res.Header,
9265 })
9266 }
9267 if err != nil {
9268 return nil, err
9269 }
9270 defer googleapi.CloseBody(res)
9271 if err := googleapi.CheckResponse(res); err != nil {
9272 return nil, gensupport.WrapError(err)
9273 }
9274 ret := &GoogleCloudDatacatalogV1TagTemplateField{
9275 ServerResponse: googleapi.ServerResponse{
9276 Header: res.Header,
9277 HTTPStatusCode: res.StatusCode,
9278 },
9279 }
9280 target := &ret
9281 if err := gensupport.DecodeResponse(target, res); err != nil {
9282 return nil, err
9283 }
9284 return ret, nil
9285 }
9286
9287 type ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall struct {
9288 s *Service
9289 name string
9290 googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
9291 urlParams_ gensupport.URLParams
9292 ctx_ context.Context
9293 header_ http.Header
9294 }
9295
9296
9297
9298
9299
9300 func (r *ProjectsLocationsTagTemplatesFieldsEnumValuesService) Rename(name string, googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest *GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest) *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall {
9301 c := &ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9302 c.name = name
9303 c.googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest = googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest
9304 return c
9305 }
9306
9307
9308
9309
9310 func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall {
9311 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9312 return c
9313 }
9314
9315
9316 func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall {
9317 c.ctx_ = ctx
9318 return c
9319 }
9320
9321
9322
9323 func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Header() http.Header {
9324 if c.header_ == nil {
9325 c.header_ = make(http.Header)
9326 }
9327 return c.header_
9328 }
9329
9330 func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) doRequest(alt string) (*http.Response, error) {
9331 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9332 var body io.Reader = nil
9333 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1renametagtemplatefieldenumvaluerequest)
9334 if err != nil {
9335 return nil, err
9336 }
9337 c.urlParams_.Set("alt", alt)
9338 c.urlParams_.Set("prettyPrint", "false")
9339 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rename")
9340 urls += "?" + c.urlParams_.Encode()
9341 req, err := http.NewRequest("POST", urls, body)
9342 if err != nil {
9343 return nil, err
9344 }
9345 req.Header = reqHeaders
9346 googleapi.Expand(req.URL, map[string]string{
9347 "name": c.name,
9348 })
9349 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9350 }
9351
9352
9353
9354
9355
9356
9357
9358 func (c *ProjectsLocationsTagTemplatesFieldsEnumValuesRenameCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1TagTemplateField, error) {
9359 gensupport.SetOptions(c.urlParams_, opts...)
9360 res, err := c.doRequest("json")
9361 if res != nil && res.StatusCode == http.StatusNotModified {
9362 if res.Body != nil {
9363 res.Body.Close()
9364 }
9365 return nil, gensupport.WrapError(&googleapi.Error{
9366 Code: res.StatusCode,
9367 Header: res.Header,
9368 })
9369 }
9370 if err != nil {
9371 return nil, err
9372 }
9373 defer googleapi.CloseBody(res)
9374 if err := googleapi.CheckResponse(res); err != nil {
9375 return nil, gensupport.WrapError(err)
9376 }
9377 ret := &GoogleCloudDatacatalogV1TagTemplateField{
9378 ServerResponse: googleapi.ServerResponse{
9379 Header: res.Header,
9380 HTTPStatusCode: res.StatusCode,
9381 },
9382 }
9383 target := &ret
9384 if err := gensupport.DecodeResponse(target, res); err != nil {
9385 return nil, err
9386 }
9387 return ret, nil
9388 }
9389
9390 type ProjectsLocationsTaxonomiesCreateCall struct {
9391 s *Service
9392 parent string
9393 googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy
9394 urlParams_ gensupport.URLParams
9395 ctx_ context.Context
9396 header_ http.Header
9397 }
9398
9399
9400
9401
9402
9403 func (r *ProjectsLocationsTaxonomiesService) Create(parent string, googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy) *ProjectsLocationsTaxonomiesCreateCall {
9404 c := &ProjectsLocationsTaxonomiesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9405 c.parent = parent
9406 c.googleclouddatacatalogv1taxonomy = googleclouddatacatalogv1taxonomy
9407 return c
9408 }
9409
9410
9411
9412
9413 func (c *ProjectsLocationsTaxonomiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesCreateCall {
9414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9415 return c
9416 }
9417
9418
9419 func (c *ProjectsLocationsTaxonomiesCreateCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesCreateCall {
9420 c.ctx_ = ctx
9421 return c
9422 }
9423
9424
9425
9426 func (c *ProjectsLocationsTaxonomiesCreateCall) Header() http.Header {
9427 if c.header_ == nil {
9428 c.header_ = make(http.Header)
9429 }
9430 return c.header_
9431 }
9432
9433 func (c *ProjectsLocationsTaxonomiesCreateCall) doRequest(alt string) (*http.Response, error) {
9434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9435 var body io.Reader = nil
9436 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1taxonomy)
9437 if err != nil {
9438 return nil, err
9439 }
9440 c.urlParams_.Set("alt", alt)
9441 c.urlParams_.Set("prettyPrint", "false")
9442 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies")
9443 urls += "?" + c.urlParams_.Encode()
9444 req, err := http.NewRequest("POST", urls, body)
9445 if err != nil {
9446 return nil, err
9447 }
9448 req.Header = reqHeaders
9449 googleapi.Expand(req.URL, map[string]string{
9450 "parent": c.parent,
9451 })
9452 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9453 }
9454
9455
9456
9457
9458
9459
9460
9461 func (c *ProjectsLocationsTaxonomiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
9462 gensupport.SetOptions(c.urlParams_, opts...)
9463 res, err := c.doRequest("json")
9464 if res != nil && res.StatusCode == http.StatusNotModified {
9465 if res.Body != nil {
9466 res.Body.Close()
9467 }
9468 return nil, gensupport.WrapError(&googleapi.Error{
9469 Code: res.StatusCode,
9470 Header: res.Header,
9471 })
9472 }
9473 if err != nil {
9474 return nil, err
9475 }
9476 defer googleapi.CloseBody(res)
9477 if err := googleapi.CheckResponse(res); err != nil {
9478 return nil, gensupport.WrapError(err)
9479 }
9480 ret := &GoogleCloudDatacatalogV1Taxonomy{
9481 ServerResponse: googleapi.ServerResponse{
9482 Header: res.Header,
9483 HTTPStatusCode: res.StatusCode,
9484 },
9485 }
9486 target := &ret
9487 if err := gensupport.DecodeResponse(target, res); err != nil {
9488 return nil, err
9489 }
9490 return ret, nil
9491 }
9492
9493 type ProjectsLocationsTaxonomiesDeleteCall struct {
9494 s *Service
9495 name string
9496 urlParams_ gensupport.URLParams
9497 ctx_ context.Context
9498 header_ http.Header
9499 }
9500
9501
9502
9503
9504
9505
9506
9507 func (r *ProjectsLocationsTaxonomiesService) Delete(name string) *ProjectsLocationsTaxonomiesDeleteCall {
9508 c := &ProjectsLocationsTaxonomiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9509 c.name = name
9510 return c
9511 }
9512
9513
9514
9515
9516 func (c *ProjectsLocationsTaxonomiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesDeleteCall {
9517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9518 return c
9519 }
9520
9521
9522 func (c *ProjectsLocationsTaxonomiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesDeleteCall {
9523 c.ctx_ = ctx
9524 return c
9525 }
9526
9527
9528
9529 func (c *ProjectsLocationsTaxonomiesDeleteCall) Header() http.Header {
9530 if c.header_ == nil {
9531 c.header_ = make(http.Header)
9532 }
9533 return c.header_
9534 }
9535
9536 func (c *ProjectsLocationsTaxonomiesDeleteCall) doRequest(alt string) (*http.Response, error) {
9537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9538 var body io.Reader = nil
9539 c.urlParams_.Set("alt", alt)
9540 c.urlParams_.Set("prettyPrint", "false")
9541 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9542 urls += "?" + c.urlParams_.Encode()
9543 req, err := http.NewRequest("DELETE", urls, body)
9544 if err != nil {
9545 return nil, err
9546 }
9547 req.Header = reqHeaders
9548 googleapi.Expand(req.URL, map[string]string{
9549 "name": c.name,
9550 })
9551 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9552 }
9553
9554
9555
9556
9557
9558
9559 func (c *ProjectsLocationsTaxonomiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
9560 gensupport.SetOptions(c.urlParams_, opts...)
9561 res, err := c.doRequest("json")
9562 if res != nil && res.StatusCode == http.StatusNotModified {
9563 if res.Body != nil {
9564 res.Body.Close()
9565 }
9566 return nil, gensupport.WrapError(&googleapi.Error{
9567 Code: res.StatusCode,
9568 Header: res.Header,
9569 })
9570 }
9571 if err != nil {
9572 return nil, err
9573 }
9574 defer googleapi.CloseBody(res)
9575 if err := googleapi.CheckResponse(res); err != nil {
9576 return nil, gensupport.WrapError(err)
9577 }
9578 ret := &Empty{
9579 ServerResponse: googleapi.ServerResponse{
9580 Header: res.Header,
9581 HTTPStatusCode: res.StatusCode,
9582 },
9583 }
9584 target := &ret
9585 if err := gensupport.DecodeResponse(target, res); err != nil {
9586 return nil, err
9587 }
9588 return ret, nil
9589 }
9590
9591 type ProjectsLocationsTaxonomiesExportCall struct {
9592 s *Service
9593 parent string
9594 urlParams_ gensupport.URLParams
9595 ifNoneMatch_ string
9596 ctx_ context.Context
9597 header_ http.Header
9598 }
9599
9600
9601
9602
9603
9604
9605
9606
9607 func (r *ProjectsLocationsTaxonomiesService) Export(parent string) *ProjectsLocationsTaxonomiesExportCall {
9608 c := &ProjectsLocationsTaxonomiesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9609 c.parent = parent
9610 return c
9611 }
9612
9613
9614
9615
9616 func (c *ProjectsLocationsTaxonomiesExportCall) SerializedTaxonomies(serializedTaxonomies bool) *ProjectsLocationsTaxonomiesExportCall {
9617 c.urlParams_.Set("serializedTaxonomies", fmt.Sprint(serializedTaxonomies))
9618 return c
9619 }
9620
9621
9622
9623 func (c *ProjectsLocationsTaxonomiesExportCall) Taxonomies(taxonomies ...string) *ProjectsLocationsTaxonomiesExportCall {
9624 c.urlParams_.SetMulti("taxonomies", append([]string{}, taxonomies...))
9625 return c
9626 }
9627
9628
9629
9630
9631 func (c *ProjectsLocationsTaxonomiesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesExportCall {
9632 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9633 return c
9634 }
9635
9636
9637
9638
9639 func (c *ProjectsLocationsTaxonomiesExportCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesExportCall {
9640 c.ifNoneMatch_ = entityTag
9641 return c
9642 }
9643
9644
9645 func (c *ProjectsLocationsTaxonomiesExportCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesExportCall {
9646 c.ctx_ = ctx
9647 return c
9648 }
9649
9650
9651
9652 func (c *ProjectsLocationsTaxonomiesExportCall) Header() http.Header {
9653 if c.header_ == nil {
9654 c.header_ = make(http.Header)
9655 }
9656 return c.header_
9657 }
9658
9659 func (c *ProjectsLocationsTaxonomiesExportCall) doRequest(alt string) (*http.Response, error) {
9660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9661 if c.ifNoneMatch_ != "" {
9662 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9663 }
9664 var body io.Reader = nil
9665 c.urlParams_.Set("alt", alt)
9666 c.urlParams_.Set("prettyPrint", "false")
9667 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies:export")
9668 urls += "?" + c.urlParams_.Encode()
9669 req, err := http.NewRequest("GET", urls, body)
9670 if err != nil {
9671 return nil, err
9672 }
9673 req.Header = reqHeaders
9674 googleapi.Expand(req.URL, map[string]string{
9675 "parent": c.parent,
9676 })
9677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9678 }
9679
9680
9681
9682
9683
9684
9685
9686 func (c *ProjectsLocationsTaxonomiesExportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ExportTaxonomiesResponse, error) {
9687 gensupport.SetOptions(c.urlParams_, opts...)
9688 res, err := c.doRequest("json")
9689 if res != nil && res.StatusCode == http.StatusNotModified {
9690 if res.Body != nil {
9691 res.Body.Close()
9692 }
9693 return nil, gensupport.WrapError(&googleapi.Error{
9694 Code: res.StatusCode,
9695 Header: res.Header,
9696 })
9697 }
9698 if err != nil {
9699 return nil, err
9700 }
9701 defer googleapi.CloseBody(res)
9702 if err := googleapi.CheckResponse(res); err != nil {
9703 return nil, gensupport.WrapError(err)
9704 }
9705 ret := &GoogleCloudDatacatalogV1ExportTaxonomiesResponse{
9706 ServerResponse: googleapi.ServerResponse{
9707 Header: res.Header,
9708 HTTPStatusCode: res.StatusCode,
9709 },
9710 }
9711 target := &ret
9712 if err := gensupport.DecodeResponse(target, res); err != nil {
9713 return nil, err
9714 }
9715 return ret, nil
9716 }
9717
9718 type ProjectsLocationsTaxonomiesGetCall struct {
9719 s *Service
9720 name string
9721 urlParams_ gensupport.URLParams
9722 ifNoneMatch_ string
9723 ctx_ context.Context
9724 header_ http.Header
9725 }
9726
9727
9728
9729
9730 func (r *ProjectsLocationsTaxonomiesService) Get(name string) *ProjectsLocationsTaxonomiesGetCall {
9731 c := &ProjectsLocationsTaxonomiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9732 c.name = name
9733 return c
9734 }
9735
9736
9737
9738
9739 func (c *ProjectsLocationsTaxonomiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesGetCall {
9740 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9741 return c
9742 }
9743
9744
9745
9746
9747 func (c *ProjectsLocationsTaxonomiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesGetCall {
9748 c.ifNoneMatch_ = entityTag
9749 return c
9750 }
9751
9752
9753 func (c *ProjectsLocationsTaxonomiesGetCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesGetCall {
9754 c.ctx_ = ctx
9755 return c
9756 }
9757
9758
9759
9760 func (c *ProjectsLocationsTaxonomiesGetCall) Header() http.Header {
9761 if c.header_ == nil {
9762 c.header_ = make(http.Header)
9763 }
9764 return c.header_
9765 }
9766
9767 func (c *ProjectsLocationsTaxonomiesGetCall) doRequest(alt string) (*http.Response, error) {
9768 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9769 if c.ifNoneMatch_ != "" {
9770 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9771 }
9772 var body io.Reader = nil
9773 c.urlParams_.Set("alt", alt)
9774 c.urlParams_.Set("prettyPrint", "false")
9775 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9776 urls += "?" + c.urlParams_.Encode()
9777 req, err := http.NewRequest("GET", urls, body)
9778 if err != nil {
9779 return nil, err
9780 }
9781 req.Header = reqHeaders
9782 googleapi.Expand(req.URL, map[string]string{
9783 "name": c.name,
9784 })
9785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9786 }
9787
9788
9789
9790
9791
9792
9793
9794 func (c *ProjectsLocationsTaxonomiesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
9795 gensupport.SetOptions(c.urlParams_, opts...)
9796 res, err := c.doRequest("json")
9797 if res != nil && res.StatusCode == http.StatusNotModified {
9798 if res.Body != nil {
9799 res.Body.Close()
9800 }
9801 return nil, gensupport.WrapError(&googleapi.Error{
9802 Code: res.StatusCode,
9803 Header: res.Header,
9804 })
9805 }
9806 if err != nil {
9807 return nil, err
9808 }
9809 defer googleapi.CloseBody(res)
9810 if err := googleapi.CheckResponse(res); err != nil {
9811 return nil, gensupport.WrapError(err)
9812 }
9813 ret := &GoogleCloudDatacatalogV1Taxonomy{
9814 ServerResponse: googleapi.ServerResponse{
9815 Header: res.Header,
9816 HTTPStatusCode: res.StatusCode,
9817 },
9818 }
9819 target := &ret
9820 if err := gensupport.DecodeResponse(target, res); err != nil {
9821 return nil, err
9822 }
9823 return ret, nil
9824 }
9825
9826 type ProjectsLocationsTaxonomiesGetIamPolicyCall struct {
9827 s *Service
9828 resource string
9829 getiampolicyrequest *GetIamPolicyRequest
9830 urlParams_ gensupport.URLParams
9831 ctx_ context.Context
9832 header_ http.Header
9833 }
9834
9835
9836
9837
9838
9839
9840 func (r *ProjectsLocationsTaxonomiesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTaxonomiesGetIamPolicyCall {
9841 c := &ProjectsLocationsTaxonomiesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9842 c.resource = resource
9843 c.getiampolicyrequest = getiampolicyrequest
9844 return c
9845 }
9846
9847
9848
9849
9850 func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesGetIamPolicyCall {
9851 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9852 return c
9853 }
9854
9855
9856 func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesGetIamPolicyCall {
9857 c.ctx_ = ctx
9858 return c
9859 }
9860
9861
9862
9863 func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Header() http.Header {
9864 if c.header_ == nil {
9865 c.header_ = make(http.Header)
9866 }
9867 return c.header_
9868 }
9869
9870 func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
9871 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9872 var body io.Reader = nil
9873 body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
9874 if err != nil {
9875 return nil, err
9876 }
9877 c.urlParams_.Set("alt", alt)
9878 c.urlParams_.Set("prettyPrint", "false")
9879 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
9880 urls += "?" + c.urlParams_.Encode()
9881 req, err := http.NewRequest("POST", urls, body)
9882 if err != nil {
9883 return nil, err
9884 }
9885 req.Header = reqHeaders
9886 googleapi.Expand(req.URL, map[string]string{
9887 "resource": c.resource,
9888 })
9889 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9890 }
9891
9892
9893
9894
9895
9896
9897 func (c *ProjectsLocationsTaxonomiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
9898 gensupport.SetOptions(c.urlParams_, opts...)
9899 res, err := c.doRequest("json")
9900 if res != nil && res.StatusCode == http.StatusNotModified {
9901 if res.Body != nil {
9902 res.Body.Close()
9903 }
9904 return nil, gensupport.WrapError(&googleapi.Error{
9905 Code: res.StatusCode,
9906 Header: res.Header,
9907 })
9908 }
9909 if err != nil {
9910 return nil, err
9911 }
9912 defer googleapi.CloseBody(res)
9913 if err := googleapi.CheckResponse(res); err != nil {
9914 return nil, gensupport.WrapError(err)
9915 }
9916 ret := &Policy{
9917 ServerResponse: googleapi.ServerResponse{
9918 Header: res.Header,
9919 HTTPStatusCode: res.StatusCode,
9920 },
9921 }
9922 target := &ret
9923 if err := gensupport.DecodeResponse(target, res); err != nil {
9924 return nil, err
9925 }
9926 return ret, nil
9927 }
9928
9929 type ProjectsLocationsTaxonomiesImportCall struct {
9930 s *Service
9931 parent string
9932 googleclouddatacatalogv1importtaxonomiesrequest *GoogleCloudDatacatalogV1ImportTaxonomiesRequest
9933 urlParams_ gensupport.URLParams
9934 ctx_ context.Context
9935 header_ http.Header
9936 }
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946 func (r *ProjectsLocationsTaxonomiesService) Import(parent string, googleclouddatacatalogv1importtaxonomiesrequest *GoogleCloudDatacatalogV1ImportTaxonomiesRequest) *ProjectsLocationsTaxonomiesImportCall {
9947 c := &ProjectsLocationsTaxonomiesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9948 c.parent = parent
9949 c.googleclouddatacatalogv1importtaxonomiesrequest = googleclouddatacatalogv1importtaxonomiesrequest
9950 return c
9951 }
9952
9953
9954
9955
9956 func (c *ProjectsLocationsTaxonomiesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesImportCall {
9957 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9958 return c
9959 }
9960
9961
9962 func (c *ProjectsLocationsTaxonomiesImportCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesImportCall {
9963 c.ctx_ = ctx
9964 return c
9965 }
9966
9967
9968
9969 func (c *ProjectsLocationsTaxonomiesImportCall) Header() http.Header {
9970 if c.header_ == nil {
9971 c.header_ = make(http.Header)
9972 }
9973 return c.header_
9974 }
9975
9976 func (c *ProjectsLocationsTaxonomiesImportCall) doRequest(alt string) (*http.Response, error) {
9977 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9978 var body io.Reader = nil
9979 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1importtaxonomiesrequest)
9980 if err != nil {
9981 return nil, err
9982 }
9983 c.urlParams_.Set("alt", alt)
9984 c.urlParams_.Set("prettyPrint", "false")
9985 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies:import")
9986 urls += "?" + c.urlParams_.Encode()
9987 req, err := http.NewRequest("POST", urls, body)
9988 if err != nil {
9989 return nil, err
9990 }
9991 req.Header = reqHeaders
9992 googleapi.Expand(req.URL, map[string]string{
9993 "parent": c.parent,
9994 })
9995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9996 }
9997
9998
9999
10000
10001
10002
10003
10004 func (c *ProjectsLocationsTaxonomiesImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ImportTaxonomiesResponse, error) {
10005 gensupport.SetOptions(c.urlParams_, opts...)
10006 res, err := c.doRequest("json")
10007 if res != nil && res.StatusCode == http.StatusNotModified {
10008 if res.Body != nil {
10009 res.Body.Close()
10010 }
10011 return nil, gensupport.WrapError(&googleapi.Error{
10012 Code: res.StatusCode,
10013 Header: res.Header,
10014 })
10015 }
10016 if err != nil {
10017 return nil, err
10018 }
10019 defer googleapi.CloseBody(res)
10020 if err := googleapi.CheckResponse(res); err != nil {
10021 return nil, gensupport.WrapError(err)
10022 }
10023 ret := &GoogleCloudDatacatalogV1ImportTaxonomiesResponse{
10024 ServerResponse: googleapi.ServerResponse{
10025 Header: res.Header,
10026 HTTPStatusCode: res.StatusCode,
10027 },
10028 }
10029 target := &ret
10030 if err := gensupport.DecodeResponse(target, res); err != nil {
10031 return nil, err
10032 }
10033 return ret, nil
10034 }
10035
10036 type ProjectsLocationsTaxonomiesListCall struct {
10037 s *Service
10038 parent string
10039 urlParams_ gensupport.URLParams
10040 ifNoneMatch_ string
10041 ctx_ context.Context
10042 header_ http.Header
10043 }
10044
10045
10046
10047
10048
10049 func (r *ProjectsLocationsTaxonomiesService) List(parent string) *ProjectsLocationsTaxonomiesListCall {
10050 c := &ProjectsLocationsTaxonomiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10051 c.parent = parent
10052 return c
10053 }
10054
10055
10056
10057 func (c *ProjectsLocationsTaxonomiesListCall) Filter(filter string) *ProjectsLocationsTaxonomiesListCall {
10058 c.urlParams_.Set("filter", filter)
10059 return c
10060 }
10061
10062
10063
10064
10065 func (c *ProjectsLocationsTaxonomiesListCall) PageSize(pageSize int64) *ProjectsLocationsTaxonomiesListCall {
10066 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10067 return c
10068 }
10069
10070
10071
10072
10073 func (c *ProjectsLocationsTaxonomiesListCall) PageToken(pageToken string) *ProjectsLocationsTaxonomiesListCall {
10074 c.urlParams_.Set("pageToken", pageToken)
10075 return c
10076 }
10077
10078
10079
10080
10081 func (c *ProjectsLocationsTaxonomiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesListCall {
10082 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10083 return c
10084 }
10085
10086
10087
10088
10089 func (c *ProjectsLocationsTaxonomiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesListCall {
10090 c.ifNoneMatch_ = entityTag
10091 return c
10092 }
10093
10094
10095 func (c *ProjectsLocationsTaxonomiesListCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesListCall {
10096 c.ctx_ = ctx
10097 return c
10098 }
10099
10100
10101
10102 func (c *ProjectsLocationsTaxonomiesListCall) Header() http.Header {
10103 if c.header_ == nil {
10104 c.header_ = make(http.Header)
10105 }
10106 return c.header_
10107 }
10108
10109 func (c *ProjectsLocationsTaxonomiesListCall) doRequest(alt string) (*http.Response, error) {
10110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10111 if c.ifNoneMatch_ != "" {
10112 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10113 }
10114 var body io.Reader = nil
10115 c.urlParams_.Set("alt", alt)
10116 c.urlParams_.Set("prettyPrint", "false")
10117 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/taxonomies")
10118 urls += "?" + c.urlParams_.Encode()
10119 req, err := http.NewRequest("GET", urls, body)
10120 if err != nil {
10121 return nil, err
10122 }
10123 req.Header = reqHeaders
10124 googleapi.Expand(req.URL, map[string]string{
10125 "parent": c.parent,
10126 })
10127 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10128 }
10129
10130
10131
10132
10133
10134
10135
10136 func (c *ProjectsLocationsTaxonomiesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListTaxonomiesResponse, error) {
10137 gensupport.SetOptions(c.urlParams_, opts...)
10138 res, err := c.doRequest("json")
10139 if res != nil && res.StatusCode == http.StatusNotModified {
10140 if res.Body != nil {
10141 res.Body.Close()
10142 }
10143 return nil, gensupport.WrapError(&googleapi.Error{
10144 Code: res.StatusCode,
10145 Header: res.Header,
10146 })
10147 }
10148 if err != nil {
10149 return nil, err
10150 }
10151 defer googleapi.CloseBody(res)
10152 if err := googleapi.CheckResponse(res); err != nil {
10153 return nil, gensupport.WrapError(err)
10154 }
10155 ret := &GoogleCloudDatacatalogV1ListTaxonomiesResponse{
10156 ServerResponse: googleapi.ServerResponse{
10157 Header: res.Header,
10158 HTTPStatusCode: res.StatusCode,
10159 },
10160 }
10161 target := &ret
10162 if err := gensupport.DecodeResponse(target, res); err != nil {
10163 return nil, err
10164 }
10165 return ret, nil
10166 }
10167
10168
10169
10170
10171 func (c *ProjectsLocationsTaxonomiesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListTaxonomiesResponse) error) error {
10172 c.ctx_ = ctx
10173 defer c.PageToken(c.urlParams_.Get("pageToken"))
10174 for {
10175 x, err := c.Do()
10176 if err != nil {
10177 return err
10178 }
10179 if err := f(x); err != nil {
10180 return err
10181 }
10182 if x.NextPageToken == "" {
10183 return nil
10184 }
10185 c.PageToken(x.NextPageToken)
10186 }
10187 }
10188
10189 type ProjectsLocationsTaxonomiesPatchCall struct {
10190 s *Service
10191 name string
10192 googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy
10193 urlParams_ gensupport.URLParams
10194 ctx_ context.Context
10195 header_ http.Header
10196 }
10197
10198
10199
10200
10201
10202
10203 func (r *ProjectsLocationsTaxonomiesService) Patch(name string, googleclouddatacatalogv1taxonomy *GoogleCloudDatacatalogV1Taxonomy) *ProjectsLocationsTaxonomiesPatchCall {
10204 c := &ProjectsLocationsTaxonomiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10205 c.name = name
10206 c.googleclouddatacatalogv1taxonomy = googleclouddatacatalogv1taxonomy
10207 return c
10208 }
10209
10210
10211
10212
10213
10214 func (c *ProjectsLocationsTaxonomiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTaxonomiesPatchCall {
10215 c.urlParams_.Set("updateMask", updateMask)
10216 return c
10217 }
10218
10219
10220
10221
10222 func (c *ProjectsLocationsTaxonomiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPatchCall {
10223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10224 return c
10225 }
10226
10227
10228 func (c *ProjectsLocationsTaxonomiesPatchCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPatchCall {
10229 c.ctx_ = ctx
10230 return c
10231 }
10232
10233
10234
10235 func (c *ProjectsLocationsTaxonomiesPatchCall) Header() http.Header {
10236 if c.header_ == nil {
10237 c.header_ = make(http.Header)
10238 }
10239 return c.header_
10240 }
10241
10242 func (c *ProjectsLocationsTaxonomiesPatchCall) doRequest(alt string) (*http.Response, error) {
10243 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10244 var body io.Reader = nil
10245 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1taxonomy)
10246 if err != nil {
10247 return nil, err
10248 }
10249 c.urlParams_.Set("alt", alt)
10250 c.urlParams_.Set("prettyPrint", "false")
10251 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10252 urls += "?" + c.urlParams_.Encode()
10253 req, err := http.NewRequest("PATCH", urls, body)
10254 if err != nil {
10255 return nil, err
10256 }
10257 req.Header = reqHeaders
10258 googleapi.Expand(req.URL, map[string]string{
10259 "name": c.name,
10260 })
10261 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10262 }
10263
10264
10265
10266
10267
10268
10269
10270 func (c *ProjectsLocationsTaxonomiesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
10271 gensupport.SetOptions(c.urlParams_, opts...)
10272 res, err := c.doRequest("json")
10273 if res != nil && res.StatusCode == http.StatusNotModified {
10274 if res.Body != nil {
10275 res.Body.Close()
10276 }
10277 return nil, gensupport.WrapError(&googleapi.Error{
10278 Code: res.StatusCode,
10279 Header: res.Header,
10280 })
10281 }
10282 if err != nil {
10283 return nil, err
10284 }
10285 defer googleapi.CloseBody(res)
10286 if err := googleapi.CheckResponse(res); err != nil {
10287 return nil, gensupport.WrapError(err)
10288 }
10289 ret := &GoogleCloudDatacatalogV1Taxonomy{
10290 ServerResponse: googleapi.ServerResponse{
10291 Header: res.Header,
10292 HTTPStatusCode: res.StatusCode,
10293 },
10294 }
10295 target := &ret
10296 if err := gensupport.DecodeResponse(target, res); err != nil {
10297 return nil, err
10298 }
10299 return ret, nil
10300 }
10301
10302 type ProjectsLocationsTaxonomiesReplaceCall struct {
10303 s *Service
10304 name string
10305 googleclouddatacatalogv1replacetaxonomyrequest *GoogleCloudDatacatalogV1ReplaceTaxonomyRequest
10306 urlParams_ gensupport.URLParams
10307 ctx_ context.Context
10308 header_ http.Header
10309 }
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 func (r *ProjectsLocationsTaxonomiesService) Replace(name string, googleclouddatacatalogv1replacetaxonomyrequest *GoogleCloudDatacatalogV1ReplaceTaxonomyRequest) *ProjectsLocationsTaxonomiesReplaceCall {
10321 c := &ProjectsLocationsTaxonomiesReplaceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10322 c.name = name
10323 c.googleclouddatacatalogv1replacetaxonomyrequest = googleclouddatacatalogv1replacetaxonomyrequest
10324 return c
10325 }
10326
10327
10328
10329
10330 func (c *ProjectsLocationsTaxonomiesReplaceCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesReplaceCall {
10331 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10332 return c
10333 }
10334
10335
10336 func (c *ProjectsLocationsTaxonomiesReplaceCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesReplaceCall {
10337 c.ctx_ = ctx
10338 return c
10339 }
10340
10341
10342
10343 func (c *ProjectsLocationsTaxonomiesReplaceCall) Header() http.Header {
10344 if c.header_ == nil {
10345 c.header_ = make(http.Header)
10346 }
10347 return c.header_
10348 }
10349
10350 func (c *ProjectsLocationsTaxonomiesReplaceCall) doRequest(alt string) (*http.Response, error) {
10351 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10352 var body io.Reader = nil
10353 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1replacetaxonomyrequest)
10354 if err != nil {
10355 return nil, err
10356 }
10357 c.urlParams_.Set("alt", alt)
10358 c.urlParams_.Set("prettyPrint", "false")
10359 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:replace")
10360 urls += "?" + c.urlParams_.Encode()
10361 req, err := http.NewRequest("POST", urls, body)
10362 if err != nil {
10363 return nil, err
10364 }
10365 req.Header = reqHeaders
10366 googleapi.Expand(req.URL, map[string]string{
10367 "name": c.name,
10368 })
10369 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10370 }
10371
10372
10373
10374
10375
10376
10377
10378 func (c *ProjectsLocationsTaxonomiesReplaceCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1Taxonomy, error) {
10379 gensupport.SetOptions(c.urlParams_, opts...)
10380 res, err := c.doRequest("json")
10381 if res != nil && res.StatusCode == http.StatusNotModified {
10382 if res.Body != nil {
10383 res.Body.Close()
10384 }
10385 return nil, gensupport.WrapError(&googleapi.Error{
10386 Code: res.StatusCode,
10387 Header: res.Header,
10388 })
10389 }
10390 if err != nil {
10391 return nil, err
10392 }
10393 defer googleapi.CloseBody(res)
10394 if err := googleapi.CheckResponse(res); err != nil {
10395 return nil, gensupport.WrapError(err)
10396 }
10397 ret := &GoogleCloudDatacatalogV1Taxonomy{
10398 ServerResponse: googleapi.ServerResponse{
10399 Header: res.Header,
10400 HTTPStatusCode: res.StatusCode,
10401 },
10402 }
10403 target := &ret
10404 if err := gensupport.DecodeResponse(target, res); err != nil {
10405 return nil, err
10406 }
10407 return ret, nil
10408 }
10409
10410 type ProjectsLocationsTaxonomiesSetIamPolicyCall struct {
10411 s *Service
10412 resource string
10413 setiampolicyrequest *SetIamPolicyRequest
10414 urlParams_ gensupport.URLParams
10415 ctx_ context.Context
10416 header_ http.Header
10417 }
10418
10419
10420
10421
10422
10423
10424 func (r *ProjectsLocationsTaxonomiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTaxonomiesSetIamPolicyCall {
10425 c := &ProjectsLocationsTaxonomiesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10426 c.resource = resource
10427 c.setiampolicyrequest = setiampolicyrequest
10428 return c
10429 }
10430
10431
10432
10433
10434 func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesSetIamPolicyCall {
10435 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10436 return c
10437 }
10438
10439
10440 func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesSetIamPolicyCall {
10441 c.ctx_ = ctx
10442 return c
10443 }
10444
10445
10446
10447 func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) Header() http.Header {
10448 if c.header_ == nil {
10449 c.header_ = make(http.Header)
10450 }
10451 return c.header_
10452 }
10453
10454 func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
10455 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10456 var body io.Reader = nil
10457 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
10458 if err != nil {
10459 return nil, err
10460 }
10461 c.urlParams_.Set("alt", alt)
10462 c.urlParams_.Set("prettyPrint", "false")
10463 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
10464 urls += "?" + c.urlParams_.Encode()
10465 req, err := http.NewRequest("POST", urls, body)
10466 if err != nil {
10467 return nil, err
10468 }
10469 req.Header = reqHeaders
10470 googleapi.Expand(req.URL, map[string]string{
10471 "resource": c.resource,
10472 })
10473 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10474 }
10475
10476
10477
10478
10479
10480
10481 func (c *ProjectsLocationsTaxonomiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
10482 gensupport.SetOptions(c.urlParams_, opts...)
10483 res, err := c.doRequest("json")
10484 if res != nil && res.StatusCode == http.StatusNotModified {
10485 if res.Body != nil {
10486 res.Body.Close()
10487 }
10488 return nil, gensupport.WrapError(&googleapi.Error{
10489 Code: res.StatusCode,
10490 Header: res.Header,
10491 })
10492 }
10493 if err != nil {
10494 return nil, err
10495 }
10496 defer googleapi.CloseBody(res)
10497 if err := googleapi.CheckResponse(res); err != nil {
10498 return nil, gensupport.WrapError(err)
10499 }
10500 ret := &Policy{
10501 ServerResponse: googleapi.ServerResponse{
10502 Header: res.Header,
10503 HTTPStatusCode: res.StatusCode,
10504 },
10505 }
10506 target := &ret
10507 if err := gensupport.DecodeResponse(target, res); err != nil {
10508 return nil, err
10509 }
10510 return ret, nil
10511 }
10512
10513 type ProjectsLocationsTaxonomiesTestIamPermissionsCall struct {
10514 s *Service
10515 resource string
10516 testiampermissionsrequest *TestIamPermissionsRequest
10517 urlParams_ gensupport.URLParams
10518 ctx_ context.Context
10519 header_ http.Header
10520 }
10521
10522
10523
10524
10525
10526
10527
10528
10529 func (r *ProjectsLocationsTaxonomiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTaxonomiesTestIamPermissionsCall {
10530 c := &ProjectsLocationsTaxonomiesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10531 c.resource = resource
10532 c.testiampermissionsrequest = testiampermissionsrequest
10533 return c
10534 }
10535
10536
10537
10538
10539 func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesTestIamPermissionsCall {
10540 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10541 return c
10542 }
10543
10544
10545 func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesTestIamPermissionsCall {
10546 c.ctx_ = ctx
10547 return c
10548 }
10549
10550
10551
10552 func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Header() http.Header {
10553 if c.header_ == nil {
10554 c.header_ = make(http.Header)
10555 }
10556 return c.header_
10557 }
10558
10559 func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
10560 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10561 var body io.Reader = nil
10562 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
10563 if err != nil {
10564 return nil, err
10565 }
10566 c.urlParams_.Set("alt", alt)
10567 c.urlParams_.Set("prettyPrint", "false")
10568 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
10569 urls += "?" + c.urlParams_.Encode()
10570 req, err := http.NewRequest("POST", urls, body)
10571 if err != nil {
10572 return nil, err
10573 }
10574 req.Header = reqHeaders
10575 googleapi.Expand(req.URL, map[string]string{
10576 "resource": c.resource,
10577 })
10578 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10579 }
10580
10581
10582
10583
10584
10585
10586
10587 func (c *ProjectsLocationsTaxonomiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
10588 gensupport.SetOptions(c.urlParams_, opts...)
10589 res, err := c.doRequest("json")
10590 if res != nil && res.StatusCode == http.StatusNotModified {
10591 if res.Body != nil {
10592 res.Body.Close()
10593 }
10594 return nil, gensupport.WrapError(&googleapi.Error{
10595 Code: res.StatusCode,
10596 Header: res.Header,
10597 })
10598 }
10599 if err != nil {
10600 return nil, err
10601 }
10602 defer googleapi.CloseBody(res)
10603 if err := googleapi.CheckResponse(res); err != nil {
10604 return nil, gensupport.WrapError(err)
10605 }
10606 ret := &TestIamPermissionsResponse{
10607 ServerResponse: googleapi.ServerResponse{
10608 Header: res.Header,
10609 HTTPStatusCode: res.StatusCode,
10610 },
10611 }
10612 target := &ret
10613 if err := gensupport.DecodeResponse(target, res); err != nil {
10614 return nil, err
10615 }
10616 return ret, nil
10617 }
10618
10619 type ProjectsLocationsTaxonomiesPolicyTagsCreateCall struct {
10620 s *Service
10621 parent string
10622 googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag
10623 urlParams_ gensupport.URLParams
10624 ctx_ context.Context
10625 header_ http.Header
10626 }
10627
10628
10629
10630
10631 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Create(parent string, googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag) *ProjectsLocationsTaxonomiesPolicyTagsCreateCall {
10632 c := &ProjectsLocationsTaxonomiesPolicyTagsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10633 c.parent = parent
10634 c.googleclouddatacatalogv1policytag = googleclouddatacatalogv1policytag
10635 return c
10636 }
10637
10638
10639
10640
10641 func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsCreateCall {
10642 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10643 return c
10644 }
10645
10646
10647 func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsCreateCall {
10648 c.ctx_ = ctx
10649 return c
10650 }
10651
10652
10653
10654 func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Header() http.Header {
10655 if c.header_ == nil {
10656 c.header_ = make(http.Header)
10657 }
10658 return c.header_
10659 }
10660
10661 func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) doRequest(alt string) (*http.Response, error) {
10662 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10663 var body io.Reader = nil
10664 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1policytag)
10665 if err != nil {
10666 return nil, err
10667 }
10668 c.urlParams_.Set("alt", alt)
10669 c.urlParams_.Set("prettyPrint", "false")
10670 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/policyTags")
10671 urls += "?" + c.urlParams_.Encode()
10672 req, err := http.NewRequest("POST", urls, body)
10673 if err != nil {
10674 return nil, err
10675 }
10676 req.Header = reqHeaders
10677 googleapi.Expand(req.URL, map[string]string{
10678 "parent": c.parent,
10679 })
10680 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10681 }
10682
10683
10684
10685
10686
10687
10688
10689 func (c *ProjectsLocationsTaxonomiesPolicyTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1PolicyTag, error) {
10690 gensupport.SetOptions(c.urlParams_, opts...)
10691 res, err := c.doRequest("json")
10692 if res != nil && res.StatusCode == http.StatusNotModified {
10693 if res.Body != nil {
10694 res.Body.Close()
10695 }
10696 return nil, gensupport.WrapError(&googleapi.Error{
10697 Code: res.StatusCode,
10698 Header: res.Header,
10699 })
10700 }
10701 if err != nil {
10702 return nil, err
10703 }
10704 defer googleapi.CloseBody(res)
10705 if err := googleapi.CheckResponse(res); err != nil {
10706 return nil, gensupport.WrapError(err)
10707 }
10708 ret := &GoogleCloudDatacatalogV1PolicyTag{
10709 ServerResponse: googleapi.ServerResponse{
10710 Header: res.Header,
10711 HTTPStatusCode: res.StatusCode,
10712 },
10713 }
10714 target := &ret
10715 if err := gensupport.DecodeResponse(target, res); err != nil {
10716 return nil, err
10717 }
10718 return ret, nil
10719 }
10720
10721 type ProjectsLocationsTaxonomiesPolicyTagsDeleteCall struct {
10722 s *Service
10723 name string
10724 urlParams_ gensupport.URLParams
10725 ctx_ context.Context
10726 header_ http.Header
10727 }
10728
10729
10730
10731
10732
10733
10734
10735
10736 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Delete(name string) *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall {
10737 c := &ProjectsLocationsTaxonomiesPolicyTagsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10738 c.name = name
10739 return c
10740 }
10741
10742
10743
10744
10745 func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall {
10746 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10747 return c
10748 }
10749
10750
10751 func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall {
10752 c.ctx_ = ctx
10753 return c
10754 }
10755
10756
10757
10758 func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Header() http.Header {
10759 if c.header_ == nil {
10760 c.header_ = make(http.Header)
10761 }
10762 return c.header_
10763 }
10764
10765 func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) doRequest(alt string) (*http.Response, error) {
10766 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10767 var body io.Reader = nil
10768 c.urlParams_.Set("alt", alt)
10769 c.urlParams_.Set("prettyPrint", "false")
10770 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10771 urls += "?" + c.urlParams_.Encode()
10772 req, err := http.NewRequest("DELETE", urls, body)
10773 if err != nil {
10774 return nil, err
10775 }
10776 req.Header = reqHeaders
10777 googleapi.Expand(req.URL, map[string]string{
10778 "name": c.name,
10779 })
10780 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10781 }
10782
10783
10784
10785
10786
10787
10788 func (c *ProjectsLocationsTaxonomiesPolicyTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10789 gensupport.SetOptions(c.urlParams_, opts...)
10790 res, err := c.doRequest("json")
10791 if res != nil && res.StatusCode == http.StatusNotModified {
10792 if res.Body != nil {
10793 res.Body.Close()
10794 }
10795 return nil, gensupport.WrapError(&googleapi.Error{
10796 Code: res.StatusCode,
10797 Header: res.Header,
10798 })
10799 }
10800 if err != nil {
10801 return nil, err
10802 }
10803 defer googleapi.CloseBody(res)
10804 if err := googleapi.CheckResponse(res); err != nil {
10805 return nil, gensupport.WrapError(err)
10806 }
10807 ret := &Empty{
10808 ServerResponse: googleapi.ServerResponse{
10809 Header: res.Header,
10810 HTTPStatusCode: res.StatusCode,
10811 },
10812 }
10813 target := &ret
10814 if err := gensupport.DecodeResponse(target, res); err != nil {
10815 return nil, err
10816 }
10817 return ret, nil
10818 }
10819
10820 type ProjectsLocationsTaxonomiesPolicyTagsGetCall struct {
10821 s *Service
10822 name string
10823 urlParams_ gensupport.URLParams
10824 ifNoneMatch_ string
10825 ctx_ context.Context
10826 header_ http.Header
10827 }
10828
10829
10830
10831
10832 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Get(name string) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
10833 c := &ProjectsLocationsTaxonomiesPolicyTagsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10834 c.name = name
10835 return c
10836 }
10837
10838
10839
10840
10841 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
10842 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10843 return c
10844 }
10845
10846
10847
10848
10849 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
10850 c.ifNoneMatch_ = entityTag
10851 return c
10852 }
10853
10854
10855 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsGetCall {
10856 c.ctx_ = ctx
10857 return c
10858 }
10859
10860
10861
10862 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Header() http.Header {
10863 if c.header_ == nil {
10864 c.header_ = make(http.Header)
10865 }
10866 return c.header_
10867 }
10868
10869 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) doRequest(alt string) (*http.Response, error) {
10870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10871 if c.ifNoneMatch_ != "" {
10872 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10873 }
10874 var body io.Reader = nil
10875 c.urlParams_.Set("alt", alt)
10876 c.urlParams_.Set("prettyPrint", "false")
10877 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10878 urls += "?" + c.urlParams_.Encode()
10879 req, err := http.NewRequest("GET", urls, body)
10880 if err != nil {
10881 return nil, err
10882 }
10883 req.Header = reqHeaders
10884 googleapi.Expand(req.URL, map[string]string{
10885 "name": c.name,
10886 })
10887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10888 }
10889
10890
10891
10892
10893
10894
10895
10896 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1PolicyTag, error) {
10897 gensupport.SetOptions(c.urlParams_, opts...)
10898 res, err := c.doRequest("json")
10899 if res != nil && res.StatusCode == http.StatusNotModified {
10900 if res.Body != nil {
10901 res.Body.Close()
10902 }
10903 return nil, gensupport.WrapError(&googleapi.Error{
10904 Code: res.StatusCode,
10905 Header: res.Header,
10906 })
10907 }
10908 if err != nil {
10909 return nil, err
10910 }
10911 defer googleapi.CloseBody(res)
10912 if err := googleapi.CheckResponse(res); err != nil {
10913 return nil, gensupport.WrapError(err)
10914 }
10915 ret := &GoogleCloudDatacatalogV1PolicyTag{
10916 ServerResponse: googleapi.ServerResponse{
10917 Header: res.Header,
10918 HTTPStatusCode: res.StatusCode,
10919 },
10920 }
10921 target := &ret
10922 if err := gensupport.DecodeResponse(target, res); err != nil {
10923 return nil, err
10924 }
10925 return ret, nil
10926 }
10927
10928 type ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall struct {
10929 s *Service
10930 resource string
10931 getiampolicyrequest *GetIamPolicyRequest
10932 urlParams_ gensupport.URLParams
10933 ctx_ context.Context
10934 header_ http.Header
10935 }
10936
10937
10938
10939
10940
10941
10942 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall {
10943 c := &ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10944 c.resource = resource
10945 c.getiampolicyrequest = getiampolicyrequest
10946 return c
10947 }
10948
10949
10950
10951
10952 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall {
10953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10954 return c
10955 }
10956
10957
10958 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall {
10959 c.ctx_ = ctx
10960 return c
10961 }
10962
10963
10964
10965 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Header() http.Header {
10966 if c.header_ == nil {
10967 c.header_ = make(http.Header)
10968 }
10969 return c.header_
10970 }
10971
10972 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
10973 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10974 var body io.Reader = nil
10975 body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
10976 if err != nil {
10977 return nil, err
10978 }
10979 c.urlParams_.Set("alt", alt)
10980 c.urlParams_.Set("prettyPrint", "false")
10981 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
10982 urls += "?" + c.urlParams_.Encode()
10983 req, err := http.NewRequest("POST", urls, body)
10984 if err != nil {
10985 return nil, err
10986 }
10987 req.Header = reqHeaders
10988 googleapi.Expand(req.URL, map[string]string{
10989 "resource": c.resource,
10990 })
10991 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10992 }
10993
10994
10995
10996
10997
10998
10999 func (c *ProjectsLocationsTaxonomiesPolicyTagsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
11000 gensupport.SetOptions(c.urlParams_, opts...)
11001 res, err := c.doRequest("json")
11002 if res != nil && res.StatusCode == http.StatusNotModified {
11003 if res.Body != nil {
11004 res.Body.Close()
11005 }
11006 return nil, gensupport.WrapError(&googleapi.Error{
11007 Code: res.StatusCode,
11008 Header: res.Header,
11009 })
11010 }
11011 if err != nil {
11012 return nil, err
11013 }
11014 defer googleapi.CloseBody(res)
11015 if err := googleapi.CheckResponse(res); err != nil {
11016 return nil, gensupport.WrapError(err)
11017 }
11018 ret := &Policy{
11019 ServerResponse: googleapi.ServerResponse{
11020 Header: res.Header,
11021 HTTPStatusCode: res.StatusCode,
11022 },
11023 }
11024 target := &ret
11025 if err := gensupport.DecodeResponse(target, res); err != nil {
11026 return nil, err
11027 }
11028 return ret, nil
11029 }
11030
11031 type ProjectsLocationsTaxonomiesPolicyTagsListCall struct {
11032 s *Service
11033 parent string
11034 urlParams_ gensupport.URLParams
11035 ifNoneMatch_ string
11036 ctx_ context.Context
11037 header_ http.Header
11038 }
11039
11040
11041
11042
11043 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) List(parent string) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
11044 c := &ProjectsLocationsTaxonomiesPolicyTagsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11045 c.parent = parent
11046 return c
11047 }
11048
11049
11050
11051
11052 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) PageSize(pageSize int64) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
11053 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11054 return c
11055 }
11056
11057
11058
11059
11060 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) PageToken(pageToken string) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
11061 c.urlParams_.Set("pageToken", pageToken)
11062 return c
11063 }
11064
11065
11066
11067
11068 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
11069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11070 return c
11071 }
11072
11073
11074
11075
11076 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
11077 c.ifNoneMatch_ = entityTag
11078 return c
11079 }
11080
11081
11082 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsListCall {
11083 c.ctx_ = ctx
11084 return c
11085 }
11086
11087
11088
11089 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Header() http.Header {
11090 if c.header_ == nil {
11091 c.header_ = make(http.Header)
11092 }
11093 return c.header_
11094 }
11095
11096 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) doRequest(alt string) (*http.Response, error) {
11097 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11098 if c.ifNoneMatch_ != "" {
11099 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11100 }
11101 var body io.Reader = nil
11102 c.urlParams_.Set("alt", alt)
11103 c.urlParams_.Set("prettyPrint", "false")
11104 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/policyTags")
11105 urls += "?" + c.urlParams_.Encode()
11106 req, err := http.NewRequest("GET", urls, body)
11107 if err != nil {
11108 return nil, err
11109 }
11110 req.Header = reqHeaders
11111 googleapi.Expand(req.URL, map[string]string{
11112 "parent": c.parent,
11113 })
11114 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11115 }
11116
11117
11118
11119
11120
11121
11122
11123 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1ListPolicyTagsResponse, error) {
11124 gensupport.SetOptions(c.urlParams_, opts...)
11125 res, err := c.doRequest("json")
11126 if res != nil && res.StatusCode == http.StatusNotModified {
11127 if res.Body != nil {
11128 res.Body.Close()
11129 }
11130 return nil, gensupport.WrapError(&googleapi.Error{
11131 Code: res.StatusCode,
11132 Header: res.Header,
11133 })
11134 }
11135 if err != nil {
11136 return nil, err
11137 }
11138 defer googleapi.CloseBody(res)
11139 if err := googleapi.CheckResponse(res); err != nil {
11140 return nil, gensupport.WrapError(err)
11141 }
11142 ret := &GoogleCloudDatacatalogV1ListPolicyTagsResponse{
11143 ServerResponse: googleapi.ServerResponse{
11144 Header: res.Header,
11145 HTTPStatusCode: res.StatusCode,
11146 },
11147 }
11148 target := &ret
11149 if err := gensupport.DecodeResponse(target, res); err != nil {
11150 return nil, err
11151 }
11152 return ret, nil
11153 }
11154
11155
11156
11157
11158 func (c *ProjectsLocationsTaxonomiesPolicyTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1ListPolicyTagsResponse) error) error {
11159 c.ctx_ = ctx
11160 defer c.PageToken(c.urlParams_.Get("pageToken"))
11161 for {
11162 x, err := c.Do()
11163 if err != nil {
11164 return err
11165 }
11166 if err := f(x); err != nil {
11167 return err
11168 }
11169 if x.NextPageToken == "" {
11170 return nil
11171 }
11172 c.PageToken(x.NextPageToken)
11173 }
11174 }
11175
11176 type ProjectsLocationsTaxonomiesPolicyTagsPatchCall struct {
11177 s *Service
11178 name string
11179 googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag
11180 urlParams_ gensupport.URLParams
11181 ctx_ context.Context
11182 header_ http.Header
11183 }
11184
11185
11186
11187
11188
11189
11190 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) Patch(name string, googleclouddatacatalogv1policytag *GoogleCloudDatacatalogV1PolicyTag) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
11191 c := &ProjectsLocationsTaxonomiesPolicyTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11192 c.name = name
11193 c.googleclouddatacatalogv1policytag = googleclouddatacatalogv1policytag
11194 return c
11195 }
11196
11197
11198
11199
11200
11201
11202 func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
11203 c.urlParams_.Set("updateMask", updateMask)
11204 return c
11205 }
11206
11207
11208
11209
11210 func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
11211 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11212 return c
11213 }
11214
11215
11216 func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsPatchCall {
11217 c.ctx_ = ctx
11218 return c
11219 }
11220
11221
11222
11223 func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Header() http.Header {
11224 if c.header_ == nil {
11225 c.header_ = make(http.Header)
11226 }
11227 return c.header_
11228 }
11229
11230 func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) doRequest(alt string) (*http.Response, error) {
11231 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11232 var body io.Reader = nil
11233 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1policytag)
11234 if err != nil {
11235 return nil, err
11236 }
11237 c.urlParams_.Set("alt", alt)
11238 c.urlParams_.Set("prettyPrint", "false")
11239 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11240 urls += "?" + c.urlParams_.Encode()
11241 req, err := http.NewRequest("PATCH", urls, body)
11242 if err != nil {
11243 return nil, err
11244 }
11245 req.Header = reqHeaders
11246 googleapi.Expand(req.URL, map[string]string{
11247 "name": c.name,
11248 })
11249 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11250 }
11251
11252
11253
11254
11255
11256
11257
11258 func (c *ProjectsLocationsTaxonomiesPolicyTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1PolicyTag, error) {
11259 gensupport.SetOptions(c.urlParams_, opts...)
11260 res, err := c.doRequest("json")
11261 if res != nil && res.StatusCode == http.StatusNotModified {
11262 if res.Body != nil {
11263 res.Body.Close()
11264 }
11265 return nil, gensupport.WrapError(&googleapi.Error{
11266 Code: res.StatusCode,
11267 Header: res.Header,
11268 })
11269 }
11270 if err != nil {
11271 return nil, err
11272 }
11273 defer googleapi.CloseBody(res)
11274 if err := googleapi.CheckResponse(res); err != nil {
11275 return nil, gensupport.WrapError(err)
11276 }
11277 ret := &GoogleCloudDatacatalogV1PolicyTag{
11278 ServerResponse: googleapi.ServerResponse{
11279 Header: res.Header,
11280 HTTPStatusCode: res.StatusCode,
11281 },
11282 }
11283 target := &ret
11284 if err := gensupport.DecodeResponse(target, res); err != nil {
11285 return nil, err
11286 }
11287 return ret, nil
11288 }
11289
11290 type ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall struct {
11291 s *Service
11292 resource string
11293 setiampolicyrequest *SetIamPolicyRequest
11294 urlParams_ gensupport.URLParams
11295 ctx_ context.Context
11296 header_ http.Header
11297 }
11298
11299
11300
11301
11302
11303
11304 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall {
11305 c := &ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11306 c.resource = resource
11307 c.setiampolicyrequest = setiampolicyrequest
11308 return c
11309 }
11310
11311
11312
11313
11314 func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall {
11315 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11316 return c
11317 }
11318
11319
11320 func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall {
11321 c.ctx_ = ctx
11322 return c
11323 }
11324
11325
11326
11327 func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Header() http.Header {
11328 if c.header_ == nil {
11329 c.header_ = make(http.Header)
11330 }
11331 return c.header_
11332 }
11333
11334 func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
11335 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11336 var body io.Reader = nil
11337 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
11338 if err != nil {
11339 return nil, err
11340 }
11341 c.urlParams_.Set("alt", alt)
11342 c.urlParams_.Set("prettyPrint", "false")
11343 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
11344 urls += "?" + c.urlParams_.Encode()
11345 req, err := http.NewRequest("POST", urls, body)
11346 if err != nil {
11347 return nil, err
11348 }
11349 req.Header = reqHeaders
11350 googleapi.Expand(req.URL, map[string]string{
11351 "resource": c.resource,
11352 })
11353 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11354 }
11355
11356
11357
11358
11359
11360
11361 func (c *ProjectsLocationsTaxonomiesPolicyTagsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
11362 gensupport.SetOptions(c.urlParams_, opts...)
11363 res, err := c.doRequest("json")
11364 if res != nil && res.StatusCode == http.StatusNotModified {
11365 if res.Body != nil {
11366 res.Body.Close()
11367 }
11368 return nil, gensupport.WrapError(&googleapi.Error{
11369 Code: res.StatusCode,
11370 Header: res.Header,
11371 })
11372 }
11373 if err != nil {
11374 return nil, err
11375 }
11376 defer googleapi.CloseBody(res)
11377 if err := googleapi.CheckResponse(res); err != nil {
11378 return nil, gensupport.WrapError(err)
11379 }
11380 ret := &Policy{
11381 ServerResponse: googleapi.ServerResponse{
11382 Header: res.Header,
11383 HTTPStatusCode: res.StatusCode,
11384 },
11385 }
11386 target := &ret
11387 if err := gensupport.DecodeResponse(target, res); err != nil {
11388 return nil, err
11389 }
11390 return ret, nil
11391 }
11392
11393 type ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall struct {
11394 s *Service
11395 resource string
11396 testiampermissionsrequest *TestIamPermissionsRequest
11397 urlParams_ gensupport.URLParams
11398 ctx_ context.Context
11399 header_ http.Header
11400 }
11401
11402
11403
11404
11405
11406
11407
11408
11409 func (r *ProjectsLocationsTaxonomiesPolicyTagsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall {
11410 c := &ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11411 c.resource = resource
11412 c.testiampermissionsrequest = testiampermissionsrequest
11413 return c
11414 }
11415
11416
11417
11418
11419 func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall {
11420 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11421 return c
11422 }
11423
11424
11425 func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall {
11426 c.ctx_ = ctx
11427 return c
11428 }
11429
11430
11431
11432 func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Header() http.Header {
11433 if c.header_ == nil {
11434 c.header_ = make(http.Header)
11435 }
11436 return c.header_
11437 }
11438
11439 func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
11440 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11441 var body io.Reader = nil
11442 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
11443 if err != nil {
11444 return nil, err
11445 }
11446 c.urlParams_.Set("alt", alt)
11447 c.urlParams_.Set("prettyPrint", "false")
11448 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
11449 urls += "?" + c.urlParams_.Encode()
11450 req, err := http.NewRequest("POST", urls, body)
11451 if err != nil {
11452 return nil, err
11453 }
11454 req.Header = reqHeaders
11455 googleapi.Expand(req.URL, map[string]string{
11456 "resource": c.resource,
11457 })
11458 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11459 }
11460
11461
11462
11463
11464
11465
11466
11467 func (c *ProjectsLocationsTaxonomiesPolicyTagsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
11468 gensupport.SetOptions(c.urlParams_, opts...)
11469 res, err := c.doRequest("json")
11470 if res != nil && res.StatusCode == http.StatusNotModified {
11471 if res.Body != nil {
11472 res.Body.Close()
11473 }
11474 return nil, gensupport.WrapError(&googleapi.Error{
11475 Code: res.StatusCode,
11476 Header: res.Header,
11477 })
11478 }
11479 if err != nil {
11480 return nil, err
11481 }
11482 defer googleapi.CloseBody(res)
11483 if err := googleapi.CheckResponse(res); err != nil {
11484 return nil, gensupport.WrapError(err)
11485 }
11486 ret := &TestIamPermissionsResponse{
11487 ServerResponse: googleapi.ServerResponse{
11488 Header: res.Header,
11489 HTTPStatusCode: res.StatusCode,
11490 },
11491 }
11492 target := &ret
11493 if err := gensupport.DecodeResponse(target, res); err != nil {
11494 return nil, err
11495 }
11496 return ret, nil
11497 }
11498
View as plain text