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