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 package healthcare
39
40 import (
41 "bytes"
42 "context"
43 "encoding/json"
44 "errors"
45 "fmt"
46 "io"
47 "net/http"
48 "net/url"
49 "strconv"
50 "strings"
51
52 googleapi "google.golang.org/api/googleapi"
53 gensupport "google.golang.org/api/internal/gensupport"
54 option "google.golang.org/api/option"
55 htransport "google.golang.org/api/transport/http"
56 )
57
58
59
60 var _ = bytes.NewBuffer
61 var _ = strconv.Itoa
62 var _ = fmt.Sprintf
63 var _ = json.NewDecoder
64 var _ = io.Copy
65 var _ = url.Parse
66 var _ = gensupport.MarshalJSON
67 var _ = googleapi.Version
68 var _ = errors.New
69 var _ = strings.Replace
70 var _ = context.Canceled
71
72 const apiId = "healthcare:v1alpha"
73 const apiName = "healthcare"
74 const apiVersion = "v1alpha"
75 const basePath = "https://healthcare.googleapis.com/"
76
77
78 const (
79
80 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
81 )
82
83
84 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
85 scopesOption := option.WithScopes(
86 "https://www.googleapis.com/auth/cloud-platform",
87 )
88
89 opts = append([]option.ClientOption{scopesOption}, opts...)
90 client, endpoint, err := htransport.NewClient(ctx, opts...)
91 if err != nil {
92 return nil, err
93 }
94 s, err := New(client)
95 if err != nil {
96 return nil, err
97 }
98 if endpoint != "" {
99 s.BasePath = endpoint
100 }
101 return s, nil
102 }
103
104
105
106
107
108
109 func New(client *http.Client) (*Service, error) {
110 if client == nil {
111 return nil, errors.New("client is nil")
112 }
113 s := &Service{client: client, BasePath: basePath}
114 s.Projects = NewProjectsService(s)
115 return s, nil
116 }
117
118 type Service struct {
119 client *http.Client
120 BasePath string
121 UserAgent string
122
123 Projects *ProjectsService
124 }
125
126 func (s *Service) userAgent() string {
127 if s.UserAgent == "" {
128 return googleapi.UserAgent
129 }
130 return googleapi.UserAgent + " " + s.UserAgent
131 }
132
133 func NewProjectsService(s *Service) *ProjectsService {
134 rs := &ProjectsService{s: s}
135 rs.Locations = NewProjectsLocationsService(s)
136 return rs
137 }
138
139 type ProjectsService struct {
140 s *Service
141
142 Locations *ProjectsLocationsService
143 }
144
145 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
146 rs := &ProjectsLocationsService{s: s}
147 rs.Datasets = NewProjectsLocationsDatasetsService(s)
148 return rs
149 }
150
151 type ProjectsLocationsService struct {
152 s *Service
153
154 Datasets *ProjectsLocationsDatasetsService
155 }
156
157 func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsService {
158 rs := &ProjectsLocationsDatasetsService{s: s}
159 rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s)
160 rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s)
161 rs.Operations = NewProjectsLocationsDatasetsOperationsService(s)
162 return rs
163 }
164
165 type ProjectsLocationsDatasetsService struct {
166 s *Service
167
168 DicomStores *ProjectsLocationsDatasetsDicomStoresService
169
170 Hl7V2Stores *ProjectsLocationsDatasetsHl7V2StoresService
171
172 Operations *ProjectsLocationsDatasetsOperationsService
173 }
174
175 func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService {
176 rs := &ProjectsLocationsDatasetsDicomStoresService{s: s}
177 return rs
178 }
179
180 type ProjectsLocationsDatasetsDicomStoresService struct {
181 s *Service
182 }
183
184 func NewProjectsLocationsDatasetsHl7V2StoresService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresService {
185 rs := &ProjectsLocationsDatasetsHl7V2StoresService{s: s}
186 return rs
187 }
188
189 type ProjectsLocationsDatasetsHl7V2StoresService struct {
190 s *Service
191 }
192
193 func NewProjectsLocationsDatasetsOperationsService(s *Service) *ProjectsLocationsDatasetsOperationsService {
194 rs := &ProjectsLocationsDatasetsOperationsService{s: s}
195 return rs
196 }
197
198 type ProjectsLocationsDatasetsOperationsService struct {
199 s *Service
200 }
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259 type AuditConfig struct {
260
261
262 AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
263
264
265
266
267
268
269 Service string `json:"service,omitempty"`
270
271
272
273
274
275
276
277 ForceSendFields []string `json:"-"`
278
279
280
281
282
283
284
285
286 NullFields []string `json:"-"`
287 }
288
289 func (s *AuditConfig) MarshalJSON() ([]byte, error) {
290 type NoMethod AuditConfig
291 raw := NoMethod(*s)
292 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
293 }
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316 type AuditLogConfig struct {
317
318
319
320
321 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
322
323
324
325
326
327
328
329
330 LogType string `json:"logType,omitempty"`
331
332
333
334
335
336
337
338 ForceSendFields []string `json:"-"`
339
340
341
342
343
344
345
346
347 NullFields []string `json:"-"`
348 }
349
350 func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
351 type NoMethod AuditLogConfig
352 raw := NoMethod(*s)
353 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
354 }
355
356
357 type Binding struct {
358
359
360
361
362
363
364 Condition *Expr `json:"condition,omitempty"`
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399 Members []string `json:"members,omitempty"`
400
401
402
403 Role string `json:"role,omitempty"`
404
405
406
407
408
409
410
411 ForceSendFields []string `json:"-"`
412
413
414
415
416
417
418
419 NullFields []string `json:"-"`
420 }
421
422 func (s *Binding) MarshalJSON() ([]byte, error) {
423 type NoMethod Binding
424 raw := NoMethod(*s)
425 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
426 }
427
428
429
430
431
432
433 type Expr struct {
434
435
436
437 Description string `json:"description,omitempty"`
438
439
440
441
442
443
444
445 Expression string `json:"expression,omitempty"`
446
447
448
449
450 Location string `json:"location,omitempty"`
451
452
453
454
455
456
457 Title string `json:"title,omitempty"`
458
459
460
461
462
463
464
465 ForceSendFields []string `json:"-"`
466
467
468
469
470
471
472
473 NullFields []string `json:"-"`
474 }
475
476 func (s *Expr) MarshalJSON() ([]byte, error) {
477 type NoMethod Expr
478 raw := NoMethod(*s)
479 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
480 }
481
482
483
484 type ListLocationsResponse struct {
485
486
487 Locations []*Location `json:"locations,omitempty"`
488
489
490 NextPageToken string `json:"nextPageToken,omitempty"`
491
492
493
494 googleapi.ServerResponse `json:"-"`
495
496
497
498
499
500
501
502 ForceSendFields []string `json:"-"`
503
504
505
506
507
508
509
510 NullFields []string `json:"-"`
511 }
512
513 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
514 type NoMethod ListLocationsResponse
515 raw := NoMethod(*s)
516 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
517 }
518
519
520
521 type ListOperationsResponse struct {
522
523 NextPageToken string `json:"nextPageToken,omitempty"`
524
525
526
527 Operations []*Operation `json:"operations,omitempty"`
528
529
530
531 googleapi.ServerResponse `json:"-"`
532
533
534
535
536
537
538
539 ForceSendFields []string `json:"-"`
540
541
542
543
544
545
546
547 NullFields []string `json:"-"`
548 }
549
550 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
551 type NoMethod ListOperationsResponse
552 raw := NoMethod(*s)
553 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
554 }
555
556
557 type Location struct {
558
559
560
561 DisplayName string `json:"displayName,omitempty"`
562
563
564
565
566 Labels map[string]string `json:"labels,omitempty"`
567
568
569
570 LocationId string `json:"locationId,omitempty"`
571
572
573
574
575 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
576
577
578
579
580 Name string `json:"name,omitempty"`
581
582
583
584 googleapi.ServerResponse `json:"-"`
585
586
587
588
589
590
591
592 ForceSendFields []string `json:"-"`
593
594
595
596
597
598
599
600 NullFields []string `json:"-"`
601 }
602
603 func (s *Location) MarshalJSON() ([]byte, error) {
604 type NoMethod Location
605 raw := NoMethod(*s)
606 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
607 }
608
609
610
611
612 type Operation struct {
613
614
615
616
617
618 Done bool `json:"done,omitempty"`
619
620
621
622 Error *Status `json:"error,omitempty"`
623
624
625
626
627
628
629
630
631 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
632
633
634
635
636
637
638 Name string `json:"name,omitempty"`
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655 Response googleapi.RawMessage `json:"response,omitempty"`
656
657
658
659 googleapi.ServerResponse `json:"-"`
660
661
662
663
664
665
666
667 ForceSendFields []string `json:"-"`
668
669
670
671
672
673
674
675 NullFields []string `json:"-"`
676 }
677
678 func (s *Operation) MarshalJSON() ([]byte, error) {
679 type NoMethod Operation
680 raw := NoMethod(*s)
681 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
682 }
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733 type Policy struct {
734
735
736 AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
737
738
739
740 Bindings []*Binding `json:"bindings,omitempty"`
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760 Etag string `json:"etag,omitempty"`
761
762
763 Version int64 `json:"version,omitempty"`
764
765
766
767 googleapi.ServerResponse `json:"-"`
768
769
770
771
772
773
774
775 ForceSendFields []string `json:"-"`
776
777
778
779
780
781
782
783 NullFields []string `json:"-"`
784 }
785
786 func (s *Policy) MarshalJSON() ([]byte, error) {
787 type NoMethod Policy
788 raw := NoMethod(*s)
789 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
790 }
791
792
793 type SetIamPolicyRequest struct {
794
795
796
797
798
799
800 Policy *Policy `json:"policy,omitempty"`
801
802
803
804
805
806
807
808
809 UpdateMask string `json:"updateMask,omitempty"`
810
811
812
813
814
815
816
817 ForceSendFields []string `json:"-"`
818
819
820
821
822
823
824
825 NullFields []string `json:"-"`
826 }
827
828 func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
829 type NoMethod SetIamPolicyRequest
830 raw := NoMethod(*s)
831 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
832 }
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925 type Status struct {
926
927
928 Code int64 `json:"code,omitempty"`
929
930
931
932
933 Details []googleapi.RawMessage `json:"details,omitempty"`
934
935
936
937
938
939
940 Message string `json:"message,omitempty"`
941
942
943
944
945
946
947
948 ForceSendFields []string `json:"-"`
949
950
951
952
953
954
955
956 NullFields []string `json:"-"`
957 }
958
959 func (s *Status) MarshalJSON() ([]byte, error) {
960 type NoMethod Status
961 raw := NoMethod(*s)
962 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
963 }
964
965
966
967 type TestIamPermissionsRequest struct {
968
969
970
971
972
973
974
975 Permissions []string `json:"permissions,omitempty"`
976
977
978
979
980
981
982
983 ForceSendFields []string `json:"-"`
984
985
986
987
988
989
990
991 NullFields []string `json:"-"`
992 }
993
994 func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
995 type NoMethod TestIamPermissionsRequest
996 raw := NoMethod(*s)
997 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
998 }
999
1000
1001
1002 type TestIamPermissionsResponse struct {
1003
1004
1005
1006 Permissions []string `json:"permissions,omitempty"`
1007
1008
1009
1010 googleapi.ServerResponse `json:"-"`
1011
1012
1013
1014
1015
1016
1017
1018 ForceSendFields []string `json:"-"`
1019
1020
1021
1022
1023
1024
1025
1026 NullFields []string `json:"-"`
1027 }
1028
1029 func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
1030 type NoMethod TestIamPermissionsResponse
1031 raw := NoMethod(*s)
1032 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1033 }
1034
1035
1036
1037 type ProjectsLocationsGetCall struct {
1038 s *Service
1039 name string
1040 urlParams_ gensupport.URLParams
1041 ifNoneMatch_ string
1042 ctx_ context.Context
1043 header_ http.Header
1044 }
1045
1046
1047 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
1048 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1049 c.name = name
1050 return c
1051 }
1052
1053
1054
1055
1056 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
1057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1058 return c
1059 }
1060
1061
1062
1063
1064
1065
1066 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
1067 c.ifNoneMatch_ = entityTag
1068 return c
1069 }
1070
1071
1072
1073
1074 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
1075 c.ctx_ = ctx
1076 return c
1077 }
1078
1079
1080
1081 func (c *ProjectsLocationsGetCall) Header() http.Header {
1082 if c.header_ == nil {
1083 c.header_ = make(http.Header)
1084 }
1085 return c.header_
1086 }
1087
1088 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
1089 reqHeaders := make(http.Header)
1090 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
1091 for k, v := range c.header_ {
1092 reqHeaders[k] = v
1093 }
1094 reqHeaders.Set("User-Agent", c.s.userAgent())
1095 if c.ifNoneMatch_ != "" {
1096 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1097 }
1098 var body io.Reader = nil
1099 c.urlParams_.Set("alt", alt)
1100 c.urlParams_.Set("prettyPrint", "false")
1101 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
1102 urls += "?" + c.urlParams_.Encode()
1103 req, err := http.NewRequest("GET", urls, body)
1104 if err != nil {
1105 return nil, err
1106 }
1107 req.Header = reqHeaders
1108 googleapi.Expand(req.URL, map[string]string{
1109 "name": c.name,
1110 })
1111 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1112 }
1113
1114
1115
1116
1117
1118
1119
1120
1121 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
1122 gensupport.SetOptions(c.urlParams_, opts...)
1123 res, err := c.doRequest("json")
1124 if res != nil && res.StatusCode == http.StatusNotModified {
1125 if res.Body != nil {
1126 res.Body.Close()
1127 }
1128 return nil, &googleapi.Error{
1129 Code: res.StatusCode,
1130 Header: res.Header,
1131 }
1132 }
1133 if err != nil {
1134 return nil, err
1135 }
1136 defer googleapi.CloseBody(res)
1137 if err := googleapi.CheckResponse(res); err != nil {
1138 return nil, err
1139 }
1140 ret := &Location{
1141 ServerResponse: googleapi.ServerResponse{
1142 Header: res.Header,
1143 HTTPStatusCode: res.StatusCode,
1144 },
1145 }
1146 target := &ret
1147 if err := gensupport.DecodeResponse(target, res); err != nil {
1148 return nil, err
1149 }
1150 return ret, nil
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177 }
1178
1179
1180
1181 type ProjectsLocationsListCall struct {
1182 s *Service
1183 name string
1184 urlParams_ gensupport.URLParams
1185 ifNoneMatch_ string
1186 ctx_ context.Context
1187 header_ http.Header
1188 }
1189
1190
1191
1192 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
1193 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1194 c.name = name
1195 return c
1196 }
1197
1198
1199
1200 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
1201 c.urlParams_.Set("filter", filter)
1202 return c
1203 }
1204
1205
1206
1207 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
1208 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
1209 return c
1210 }
1211
1212
1213
1214 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
1215 c.urlParams_.Set("pageToken", pageToken)
1216 return c
1217 }
1218
1219
1220
1221
1222 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
1223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1224 return c
1225 }
1226
1227
1228
1229
1230
1231
1232 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
1233 c.ifNoneMatch_ = entityTag
1234 return c
1235 }
1236
1237
1238
1239
1240 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
1241 c.ctx_ = ctx
1242 return c
1243 }
1244
1245
1246
1247 func (c *ProjectsLocationsListCall) Header() http.Header {
1248 if c.header_ == nil {
1249 c.header_ = make(http.Header)
1250 }
1251 return c.header_
1252 }
1253
1254 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
1255 reqHeaders := make(http.Header)
1256 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
1257 for k, v := range c.header_ {
1258 reqHeaders[k] = v
1259 }
1260 reqHeaders.Set("User-Agent", c.s.userAgent())
1261 if c.ifNoneMatch_ != "" {
1262 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1263 }
1264 var body io.Reader = nil
1265 c.urlParams_.Set("alt", alt)
1266 c.urlParams_.Set("prettyPrint", "false")
1267 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/locations")
1268 urls += "?" + c.urlParams_.Encode()
1269 req, err := http.NewRequest("GET", urls, body)
1270 if err != nil {
1271 return nil, err
1272 }
1273 req.Header = reqHeaders
1274 googleapi.Expand(req.URL, map[string]string{
1275 "name": c.name,
1276 })
1277 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1278 }
1279
1280
1281
1282
1283
1284
1285
1286
1287 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
1288 gensupport.SetOptions(c.urlParams_, opts...)
1289 res, err := c.doRequest("json")
1290 if res != nil && res.StatusCode == http.StatusNotModified {
1291 if res.Body != nil {
1292 res.Body.Close()
1293 }
1294 return nil, &googleapi.Error{
1295 Code: res.StatusCode,
1296 Header: res.Header,
1297 }
1298 }
1299 if err != nil {
1300 return nil, err
1301 }
1302 defer googleapi.CloseBody(res)
1303 if err := googleapi.CheckResponse(res); err != nil {
1304 return nil, err
1305 }
1306 ret := &ListLocationsResponse{
1307 ServerResponse: googleapi.ServerResponse{
1308 Header: res.Header,
1309 HTTPStatusCode: res.StatusCode,
1310 },
1311 }
1312 target := &ret
1313 if err := gensupport.DecodeResponse(target, res); err != nil {
1314 return nil, err
1315 }
1316 return ret, nil
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359 }
1360
1361
1362
1363
1364 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
1365 c.ctx_ = ctx
1366 defer c.PageToken(c.urlParams_.Get("pageToken"))
1367 for {
1368 x, err := c.Do()
1369 if err != nil {
1370 return err
1371 }
1372 if err := f(x); err != nil {
1373 return err
1374 }
1375 if x.NextPageToken == "" {
1376 return nil
1377 }
1378 c.PageToken(x.NextPageToken)
1379 }
1380 }
1381
1382
1383
1384 type ProjectsLocationsDatasetsGetIamPolicyCall struct {
1385 s *Service
1386 resource string
1387 urlParams_ gensupport.URLParams
1388 ifNoneMatch_ string
1389 ctx_ context.Context
1390 header_ http.Header
1391 }
1392
1393
1394
1395
1396
1397 func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall {
1398 c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1399 c.resource = resource
1400 return c
1401 }
1402
1403
1404
1405
1406 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall {
1407 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1408 return c
1409 }
1410
1411
1412
1413
1414
1415
1416 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall {
1417 c.ifNoneMatch_ = entityTag
1418 return c
1419 }
1420
1421
1422
1423
1424 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall {
1425 c.ctx_ = ctx
1426 return c
1427 }
1428
1429
1430
1431 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header {
1432 if c.header_ == nil {
1433 c.header_ = make(http.Header)
1434 }
1435 return c.header_
1436 }
1437
1438 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
1439 reqHeaders := make(http.Header)
1440 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
1441 for k, v := range c.header_ {
1442 reqHeaders[k] = v
1443 }
1444 reqHeaders.Set("User-Agent", c.s.userAgent())
1445 if c.ifNoneMatch_ != "" {
1446 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1447 }
1448 var body io.Reader = nil
1449 c.urlParams_.Set("alt", alt)
1450 c.urlParams_.Set("prettyPrint", "false")
1451 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy")
1452 urls += "?" + c.urlParams_.Encode()
1453 req, err := http.NewRequest("GET", urls, body)
1454 if err != nil {
1455 return nil, err
1456 }
1457 req.Header = reqHeaders
1458 googleapi.Expand(req.URL, map[string]string{
1459 "resource": c.resource,
1460 })
1461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1462 }
1463
1464
1465
1466
1467
1468
1469
1470
1471 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
1472 gensupport.SetOptions(c.urlParams_, opts...)
1473 res, err := c.doRequest("json")
1474 if res != nil && res.StatusCode == http.StatusNotModified {
1475 if res.Body != nil {
1476 res.Body.Close()
1477 }
1478 return nil, &googleapi.Error{
1479 Code: res.StatusCode,
1480 Header: res.Header,
1481 }
1482 }
1483 if err != nil {
1484 return nil, err
1485 }
1486 defer googleapi.CloseBody(res)
1487 if err := googleapi.CheckResponse(res); err != nil {
1488 return nil, err
1489 }
1490 ret := &Policy{
1491 ServerResponse: googleapi.ServerResponse{
1492 Header: res.Header,
1493 HTTPStatusCode: res.StatusCode,
1494 },
1495 }
1496 target := &ret
1497 if err := gensupport.DecodeResponse(target, res); err != nil {
1498 return nil, err
1499 }
1500 return ret, nil
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 }
1528
1529
1530
1531 type ProjectsLocationsDatasetsSetIamPolicyCall struct {
1532 s *Service
1533 resource string
1534 setiampolicyrequest *SetIamPolicyRequest
1535 urlParams_ gensupport.URLParams
1536 ctx_ context.Context
1537 header_ http.Header
1538 }
1539
1540
1541
1542
1543 func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall {
1544 c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1545 c.resource = resource
1546 c.setiampolicyrequest = setiampolicyrequest
1547 return c
1548 }
1549
1550
1551
1552
1553 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall {
1554 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1555 return c
1556 }
1557
1558
1559
1560
1561 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall {
1562 c.ctx_ = ctx
1563 return c
1564 }
1565
1566
1567
1568 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header {
1569 if c.header_ == nil {
1570 c.header_ = make(http.Header)
1571 }
1572 return c.header_
1573 }
1574
1575 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
1576 reqHeaders := make(http.Header)
1577 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
1578 for k, v := range c.header_ {
1579 reqHeaders[k] = v
1580 }
1581 reqHeaders.Set("User-Agent", c.s.userAgent())
1582 var body io.Reader = nil
1583 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
1584 if err != nil {
1585 return nil, err
1586 }
1587 reqHeaders.Set("Content-Type", "application/json")
1588 c.urlParams_.Set("alt", alt)
1589 c.urlParams_.Set("prettyPrint", "false")
1590 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy")
1591 urls += "?" + c.urlParams_.Encode()
1592 req, err := http.NewRequest("POST", urls, body)
1593 if err != nil {
1594 return nil, err
1595 }
1596 req.Header = reqHeaders
1597 googleapi.Expand(req.URL, map[string]string{
1598 "resource": c.resource,
1599 })
1600 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1601 }
1602
1603
1604
1605
1606
1607
1608
1609
1610 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
1611 gensupport.SetOptions(c.urlParams_, opts...)
1612 res, err := c.doRequest("json")
1613 if res != nil && res.StatusCode == http.StatusNotModified {
1614 if res.Body != nil {
1615 res.Body.Close()
1616 }
1617 return nil, &googleapi.Error{
1618 Code: res.StatusCode,
1619 Header: res.Header,
1620 }
1621 }
1622 if err != nil {
1623 return nil, err
1624 }
1625 defer googleapi.CloseBody(res)
1626 if err := googleapi.CheckResponse(res); err != nil {
1627 return nil, err
1628 }
1629 ret := &Policy{
1630 ServerResponse: googleapi.ServerResponse{
1631 Header: res.Header,
1632 HTTPStatusCode: res.StatusCode,
1633 },
1634 }
1635 target := &ret
1636 if err := gensupport.DecodeResponse(target, res); err != nil {
1637 return nil, err
1638 }
1639 return ret, nil
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669 }
1670
1671
1672
1673 type ProjectsLocationsDatasetsTestIamPermissionsCall struct {
1674 s *Service
1675 resource string
1676 testiampermissionsrequest *TestIamPermissionsRequest
1677 urlParams_ gensupport.URLParams
1678 ctx_ context.Context
1679 header_ http.Header
1680 }
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693 func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall {
1694 c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1695 c.resource = resource
1696 c.testiampermissionsrequest = testiampermissionsrequest
1697 return c
1698 }
1699
1700
1701
1702
1703 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall {
1704 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1705 return c
1706 }
1707
1708
1709
1710
1711 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall {
1712 c.ctx_ = ctx
1713 return c
1714 }
1715
1716
1717
1718 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header {
1719 if c.header_ == nil {
1720 c.header_ = make(http.Header)
1721 }
1722 return c.header_
1723 }
1724
1725 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
1726 reqHeaders := make(http.Header)
1727 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
1728 for k, v := range c.header_ {
1729 reqHeaders[k] = v
1730 }
1731 reqHeaders.Set("User-Agent", c.s.userAgent())
1732 var body io.Reader = nil
1733 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
1734 if err != nil {
1735 return nil, err
1736 }
1737 reqHeaders.Set("Content-Type", "application/json")
1738 c.urlParams_.Set("alt", alt)
1739 c.urlParams_.Set("prettyPrint", "false")
1740 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions")
1741 urls += "?" + c.urlParams_.Encode()
1742 req, err := http.NewRequest("POST", urls, body)
1743 if err != nil {
1744 return nil, err
1745 }
1746 req.Header = reqHeaders
1747 googleapi.Expand(req.URL, map[string]string{
1748 "resource": c.resource,
1749 })
1750 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1751 }
1752
1753
1754
1755
1756
1757
1758
1759
1760 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
1761 gensupport.SetOptions(c.urlParams_, opts...)
1762 res, err := c.doRequest("json")
1763 if res != nil && res.StatusCode == http.StatusNotModified {
1764 if res.Body != nil {
1765 res.Body.Close()
1766 }
1767 return nil, &googleapi.Error{
1768 Code: res.StatusCode,
1769 Header: res.Header,
1770 }
1771 }
1772 if err != nil {
1773 return nil, err
1774 }
1775 defer googleapi.CloseBody(res)
1776 if err := googleapi.CheckResponse(res); err != nil {
1777 return nil, err
1778 }
1779 ret := &TestIamPermissionsResponse{
1780 ServerResponse: googleapi.ServerResponse{
1781 Header: res.Header,
1782 HTTPStatusCode: res.StatusCode,
1783 },
1784 }
1785 target := &ret
1786 if err := gensupport.DecodeResponse(target, res); err != nil {
1787 return nil, err
1788 }
1789 return ret, nil
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819 }
1820
1821
1822
1823 type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct {
1824 s *Service
1825 resource string
1826 urlParams_ gensupport.URLParams
1827 ifNoneMatch_ string
1828 ctx_ context.Context
1829 header_ http.Header
1830 }
1831
1832
1833
1834
1835
1836 func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
1837 c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1838 c.resource = resource
1839 return c
1840 }
1841
1842
1843
1844
1845 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
1846 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1847 return c
1848 }
1849
1850
1851
1852
1853
1854
1855 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
1856 c.ifNoneMatch_ = entityTag
1857 return c
1858 }
1859
1860
1861
1862
1863 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
1864 c.ctx_ = ctx
1865 return c
1866 }
1867
1868
1869
1870 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header {
1871 if c.header_ == nil {
1872 c.header_ = make(http.Header)
1873 }
1874 return c.header_
1875 }
1876
1877 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
1878 reqHeaders := make(http.Header)
1879 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
1880 for k, v := range c.header_ {
1881 reqHeaders[k] = v
1882 }
1883 reqHeaders.Set("User-Agent", c.s.userAgent())
1884 if c.ifNoneMatch_ != "" {
1885 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
1886 }
1887 var body io.Reader = nil
1888 c.urlParams_.Set("alt", alt)
1889 c.urlParams_.Set("prettyPrint", "false")
1890 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy")
1891 urls += "?" + c.urlParams_.Encode()
1892 req, err := http.NewRequest("GET", urls, body)
1893 if err != nil {
1894 return nil, err
1895 }
1896 req.Header = reqHeaders
1897 googleapi.Expand(req.URL, map[string]string{
1898 "resource": c.resource,
1899 })
1900 return gensupport.SendRequest(c.ctx_, c.s.client, req)
1901 }
1902
1903
1904
1905
1906
1907
1908
1909
1910 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
1911 gensupport.SetOptions(c.urlParams_, opts...)
1912 res, err := c.doRequest("json")
1913 if res != nil && res.StatusCode == http.StatusNotModified {
1914 if res.Body != nil {
1915 res.Body.Close()
1916 }
1917 return nil, &googleapi.Error{
1918 Code: res.StatusCode,
1919 Header: res.Header,
1920 }
1921 }
1922 if err != nil {
1923 return nil, err
1924 }
1925 defer googleapi.CloseBody(res)
1926 if err := googleapi.CheckResponse(res); err != nil {
1927 return nil, err
1928 }
1929 ret := &Policy{
1930 ServerResponse: googleapi.ServerResponse{
1931 Header: res.Header,
1932 HTTPStatusCode: res.StatusCode,
1933 },
1934 }
1935 target := &ret
1936 if err := gensupport.DecodeResponse(target, res); err != nil {
1937 return nil, err
1938 }
1939 return ret, nil
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966 }
1967
1968
1969
1970 type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct {
1971 s *Service
1972 resource string
1973 setiampolicyrequest *SetIamPolicyRequest
1974 urlParams_ gensupport.URLParams
1975 ctx_ context.Context
1976 header_ http.Header
1977 }
1978
1979
1980
1981
1982 func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
1983 c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
1984 c.resource = resource
1985 c.setiampolicyrequest = setiampolicyrequest
1986 return c
1987 }
1988
1989
1990
1991
1992 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
1993 c.urlParams_.Set("fields", googleapi.CombineFields(s))
1994 return c
1995 }
1996
1997
1998
1999
2000 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
2001 c.ctx_ = ctx
2002 return c
2003 }
2004
2005
2006
2007 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header {
2008 if c.header_ == nil {
2009 c.header_ = make(http.Header)
2010 }
2011 return c.header_
2012 }
2013
2014 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
2015 reqHeaders := make(http.Header)
2016 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2017 for k, v := range c.header_ {
2018 reqHeaders[k] = v
2019 }
2020 reqHeaders.Set("User-Agent", c.s.userAgent())
2021 var body io.Reader = nil
2022 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
2023 if err != nil {
2024 return nil, err
2025 }
2026 reqHeaders.Set("Content-Type", "application/json")
2027 c.urlParams_.Set("alt", alt)
2028 c.urlParams_.Set("prettyPrint", "false")
2029 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy")
2030 urls += "?" + c.urlParams_.Encode()
2031 req, err := http.NewRequest("POST", urls, body)
2032 if err != nil {
2033 return nil, err
2034 }
2035 req.Header = reqHeaders
2036 googleapi.Expand(req.URL, map[string]string{
2037 "resource": c.resource,
2038 })
2039 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2040 }
2041
2042
2043
2044
2045
2046
2047
2048
2049 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
2050 gensupport.SetOptions(c.urlParams_, opts...)
2051 res, err := c.doRequest("json")
2052 if res != nil && res.StatusCode == http.StatusNotModified {
2053 if res.Body != nil {
2054 res.Body.Close()
2055 }
2056 return nil, &googleapi.Error{
2057 Code: res.StatusCode,
2058 Header: res.Header,
2059 }
2060 }
2061 if err != nil {
2062 return nil, err
2063 }
2064 defer googleapi.CloseBody(res)
2065 if err := googleapi.CheckResponse(res); err != nil {
2066 return nil, err
2067 }
2068 ret := &Policy{
2069 ServerResponse: googleapi.ServerResponse{
2070 Header: res.Header,
2071 HTTPStatusCode: res.StatusCode,
2072 },
2073 }
2074 target := &ret
2075 if err := gensupport.DecodeResponse(target, res); err != nil {
2076 return nil, err
2077 }
2078 return ret, nil
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108 }
2109
2110
2111
2112 type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct {
2113 s *Service
2114 resource string
2115 testiampermissionsrequest *TestIamPermissionsRequest
2116 urlParams_ gensupport.URLParams
2117 ctx_ context.Context
2118 header_ http.Header
2119 }
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132 func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
2133 c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2134 c.resource = resource
2135 c.testiampermissionsrequest = testiampermissionsrequest
2136 return c
2137 }
2138
2139
2140
2141
2142 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
2143 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2144 return c
2145 }
2146
2147
2148
2149
2150 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
2151 c.ctx_ = ctx
2152 return c
2153 }
2154
2155
2156
2157 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header {
2158 if c.header_ == nil {
2159 c.header_ = make(http.Header)
2160 }
2161 return c.header_
2162 }
2163
2164 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
2165 reqHeaders := make(http.Header)
2166 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2167 for k, v := range c.header_ {
2168 reqHeaders[k] = v
2169 }
2170 reqHeaders.Set("User-Agent", c.s.userAgent())
2171 var body io.Reader = nil
2172 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
2173 if err != nil {
2174 return nil, err
2175 }
2176 reqHeaders.Set("Content-Type", "application/json")
2177 c.urlParams_.Set("alt", alt)
2178 c.urlParams_.Set("prettyPrint", "false")
2179 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions")
2180 urls += "?" + c.urlParams_.Encode()
2181 req, err := http.NewRequest("POST", urls, body)
2182 if err != nil {
2183 return nil, err
2184 }
2185 req.Header = reqHeaders
2186 googleapi.Expand(req.URL, map[string]string{
2187 "resource": c.resource,
2188 })
2189 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2190 }
2191
2192
2193
2194
2195
2196
2197
2198
2199 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
2200 gensupport.SetOptions(c.urlParams_, opts...)
2201 res, err := c.doRequest("json")
2202 if res != nil && res.StatusCode == http.StatusNotModified {
2203 if res.Body != nil {
2204 res.Body.Close()
2205 }
2206 return nil, &googleapi.Error{
2207 Code: res.StatusCode,
2208 Header: res.Header,
2209 }
2210 }
2211 if err != nil {
2212 return nil, err
2213 }
2214 defer googleapi.CloseBody(res)
2215 if err := googleapi.CheckResponse(res); err != nil {
2216 return nil, err
2217 }
2218 ret := &TestIamPermissionsResponse{
2219 ServerResponse: googleapi.ServerResponse{
2220 Header: res.Header,
2221 HTTPStatusCode: res.StatusCode,
2222 },
2223 }
2224 target := &ret
2225 if err := gensupport.DecodeResponse(target, res); err != nil {
2226 return nil, err
2227 }
2228 return ret, nil
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258 }
2259
2260
2261
2262 type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct {
2263 s *Service
2264 resource string
2265 urlParams_ gensupport.URLParams
2266 ifNoneMatch_ string
2267 ctx_ context.Context
2268 header_ http.Header
2269 }
2270
2271
2272
2273
2274
2275 func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
2276 c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2277 c.resource = resource
2278 return c
2279 }
2280
2281
2282
2283
2284 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
2285 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2286 return c
2287 }
2288
2289
2290
2291
2292
2293
2294 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
2295 c.ifNoneMatch_ = entityTag
2296 return c
2297 }
2298
2299
2300
2301
2302 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
2303 c.ctx_ = ctx
2304 return c
2305 }
2306
2307
2308
2309 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header {
2310 if c.header_ == nil {
2311 c.header_ = make(http.Header)
2312 }
2313 return c.header_
2314 }
2315
2316 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
2317 reqHeaders := make(http.Header)
2318 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2319 for k, v := range c.header_ {
2320 reqHeaders[k] = v
2321 }
2322 reqHeaders.Set("User-Agent", c.s.userAgent())
2323 if c.ifNoneMatch_ != "" {
2324 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2325 }
2326 var body io.Reader = nil
2327 c.urlParams_.Set("alt", alt)
2328 c.urlParams_.Set("prettyPrint", "false")
2329 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:getIamPolicy")
2330 urls += "?" + c.urlParams_.Encode()
2331 req, err := http.NewRequest("GET", urls, body)
2332 if err != nil {
2333 return nil, err
2334 }
2335 req.Header = reqHeaders
2336 googleapi.Expand(req.URL, map[string]string{
2337 "resource": c.resource,
2338 })
2339 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2340 }
2341
2342
2343
2344
2345
2346
2347
2348
2349 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
2350 gensupport.SetOptions(c.urlParams_, opts...)
2351 res, err := c.doRequest("json")
2352 if res != nil && res.StatusCode == http.StatusNotModified {
2353 if res.Body != nil {
2354 res.Body.Close()
2355 }
2356 return nil, &googleapi.Error{
2357 Code: res.StatusCode,
2358 Header: res.Header,
2359 }
2360 }
2361 if err != nil {
2362 return nil, err
2363 }
2364 defer googleapi.CloseBody(res)
2365 if err := googleapi.CheckResponse(res); err != nil {
2366 return nil, err
2367 }
2368 ret := &Policy{
2369 ServerResponse: googleapi.ServerResponse{
2370 Header: res.Header,
2371 HTTPStatusCode: res.StatusCode,
2372 },
2373 }
2374 target := &ret
2375 if err := gensupport.DecodeResponse(target, res); err != nil {
2376 return nil, err
2377 }
2378 return ret, nil
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405 }
2406
2407
2408
2409 type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct {
2410 s *Service
2411 resource string
2412 setiampolicyrequest *SetIamPolicyRequest
2413 urlParams_ gensupport.URLParams
2414 ctx_ context.Context
2415 header_ http.Header
2416 }
2417
2418
2419
2420
2421 func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
2422 c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2423 c.resource = resource
2424 c.setiampolicyrequest = setiampolicyrequest
2425 return c
2426 }
2427
2428
2429
2430
2431 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
2432 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2433 return c
2434 }
2435
2436
2437
2438
2439 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
2440 c.ctx_ = ctx
2441 return c
2442 }
2443
2444
2445
2446 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header {
2447 if c.header_ == nil {
2448 c.header_ = make(http.Header)
2449 }
2450 return c.header_
2451 }
2452
2453 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
2454 reqHeaders := make(http.Header)
2455 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2456 for k, v := range c.header_ {
2457 reqHeaders[k] = v
2458 }
2459 reqHeaders.Set("User-Agent", c.s.userAgent())
2460 var body io.Reader = nil
2461 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
2462 if err != nil {
2463 return nil, err
2464 }
2465 reqHeaders.Set("Content-Type", "application/json")
2466 c.urlParams_.Set("alt", alt)
2467 c.urlParams_.Set("prettyPrint", "false")
2468 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:setIamPolicy")
2469 urls += "?" + c.urlParams_.Encode()
2470 req, err := http.NewRequest("POST", urls, body)
2471 if err != nil {
2472 return nil, err
2473 }
2474 req.Header = reqHeaders
2475 googleapi.Expand(req.URL, map[string]string{
2476 "resource": c.resource,
2477 })
2478 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2479 }
2480
2481
2482
2483
2484
2485
2486
2487
2488 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
2489 gensupport.SetOptions(c.urlParams_, opts...)
2490 res, err := c.doRequest("json")
2491 if res != nil && res.StatusCode == http.StatusNotModified {
2492 if res.Body != nil {
2493 res.Body.Close()
2494 }
2495 return nil, &googleapi.Error{
2496 Code: res.StatusCode,
2497 Header: res.Header,
2498 }
2499 }
2500 if err != nil {
2501 return nil, err
2502 }
2503 defer googleapi.CloseBody(res)
2504 if err := googleapi.CheckResponse(res); err != nil {
2505 return nil, err
2506 }
2507 ret := &Policy{
2508 ServerResponse: googleapi.ServerResponse{
2509 Header: res.Header,
2510 HTTPStatusCode: res.StatusCode,
2511 },
2512 }
2513 target := &ret
2514 if err := gensupport.DecodeResponse(target, res); err != nil {
2515 return nil, err
2516 }
2517 return ret, nil
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547 }
2548
2549
2550
2551 type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct {
2552 s *Service
2553 resource string
2554 testiampermissionsrequest *TestIamPermissionsRequest
2555 urlParams_ gensupport.URLParams
2556 ctx_ context.Context
2557 header_ http.Header
2558 }
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571 func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
2572 c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2573 c.resource = resource
2574 c.testiampermissionsrequest = testiampermissionsrequest
2575 return c
2576 }
2577
2578
2579
2580
2581 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
2582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2583 return c
2584 }
2585
2586
2587
2588
2589 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
2590 c.ctx_ = ctx
2591 return c
2592 }
2593
2594
2595
2596 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header {
2597 if c.header_ == nil {
2598 c.header_ = make(http.Header)
2599 }
2600 return c.header_
2601 }
2602
2603 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
2604 reqHeaders := make(http.Header)
2605 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2606 for k, v := range c.header_ {
2607 reqHeaders[k] = v
2608 }
2609 reqHeaders.Set("User-Agent", c.s.userAgent())
2610 var body io.Reader = nil
2611 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
2612 if err != nil {
2613 return nil, err
2614 }
2615 reqHeaders.Set("Content-Type", "application/json")
2616 c.urlParams_.Set("alt", alt)
2617 c.urlParams_.Set("prettyPrint", "false")
2618 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+resource}:testIamPermissions")
2619 urls += "?" + c.urlParams_.Encode()
2620 req, err := http.NewRequest("POST", urls, body)
2621 if err != nil {
2622 return nil, err
2623 }
2624 req.Header = reqHeaders
2625 googleapi.Expand(req.URL, map[string]string{
2626 "resource": c.resource,
2627 })
2628 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2629 }
2630
2631
2632
2633
2634
2635
2636
2637
2638 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
2639 gensupport.SetOptions(c.urlParams_, opts...)
2640 res, err := c.doRequest("json")
2641 if res != nil && res.StatusCode == http.StatusNotModified {
2642 if res.Body != nil {
2643 res.Body.Close()
2644 }
2645 return nil, &googleapi.Error{
2646 Code: res.StatusCode,
2647 Header: res.Header,
2648 }
2649 }
2650 if err != nil {
2651 return nil, err
2652 }
2653 defer googleapi.CloseBody(res)
2654 if err := googleapi.CheckResponse(res); err != nil {
2655 return nil, err
2656 }
2657 ret := &TestIamPermissionsResponse{
2658 ServerResponse: googleapi.ServerResponse{
2659 Header: res.Header,
2660 HTTPStatusCode: res.StatusCode,
2661 },
2662 }
2663 target := &ret
2664 if err := gensupport.DecodeResponse(target, res); err != nil {
2665 return nil, err
2666 }
2667 return ret, nil
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697 }
2698
2699
2700
2701 type ProjectsLocationsDatasetsOperationsGetCall struct {
2702 s *Service
2703 name string
2704 urlParams_ gensupport.URLParams
2705 ifNoneMatch_ string
2706 ctx_ context.Context
2707 header_ http.Header
2708 }
2709
2710
2711
2712
2713
2714
2715 func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall {
2716 c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2717 c.name = name
2718 return c
2719 }
2720
2721
2722
2723
2724 func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall {
2725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2726 return c
2727 }
2728
2729
2730
2731
2732
2733
2734 func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall {
2735 c.ifNoneMatch_ = entityTag
2736 return c
2737 }
2738
2739
2740
2741
2742 func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall {
2743 c.ctx_ = ctx
2744 return c
2745 }
2746
2747
2748
2749 func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header {
2750 if c.header_ == nil {
2751 c.header_ = make(http.Header)
2752 }
2753 return c.header_
2754 }
2755
2756 func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
2757 reqHeaders := make(http.Header)
2758 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2759 for k, v := range c.header_ {
2760 reqHeaders[k] = v
2761 }
2762 reqHeaders.Set("User-Agent", c.s.userAgent())
2763 if c.ifNoneMatch_ != "" {
2764 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2765 }
2766 var body io.Reader = nil
2767 c.urlParams_.Set("alt", alt)
2768 c.urlParams_.Set("prettyPrint", "false")
2769 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
2770 urls += "?" + c.urlParams_.Encode()
2771 req, err := http.NewRequest("GET", urls, body)
2772 if err != nil {
2773 return nil, err
2774 }
2775 req.Header = reqHeaders
2776 googleapi.Expand(req.URL, map[string]string{
2777 "name": c.name,
2778 })
2779 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2780 }
2781
2782
2783
2784
2785
2786
2787
2788
2789 func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
2790 gensupport.SetOptions(c.urlParams_, opts...)
2791 res, err := c.doRequest("json")
2792 if res != nil && res.StatusCode == http.StatusNotModified {
2793 if res.Body != nil {
2794 res.Body.Close()
2795 }
2796 return nil, &googleapi.Error{
2797 Code: res.StatusCode,
2798 Header: res.Header,
2799 }
2800 }
2801 if err != nil {
2802 return nil, err
2803 }
2804 defer googleapi.CloseBody(res)
2805 if err := googleapi.CheckResponse(res); err != nil {
2806 return nil, err
2807 }
2808 ret := &Operation{
2809 ServerResponse: googleapi.ServerResponse{
2810 Header: res.Header,
2811 HTTPStatusCode: res.StatusCode,
2812 },
2813 }
2814 target := &ret
2815 if err := gensupport.DecodeResponse(target, res); err != nil {
2816 return nil, err
2817 }
2818 return ret, nil
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845 }
2846
2847
2848
2849 type ProjectsLocationsDatasetsOperationsListCall struct {
2850 s *Service
2851 name string
2852 urlParams_ gensupport.URLParams
2853 ifNoneMatch_ string
2854 ctx_ context.Context
2855 header_ http.Header
2856 }
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875 func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall {
2876 c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
2877 c.name = name
2878 return c
2879 }
2880
2881
2882
2883 func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall {
2884 c.urlParams_.Set("filter", filter)
2885 return c
2886 }
2887
2888
2889
2890 func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall {
2891 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
2892 return c
2893 }
2894
2895
2896
2897 func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall {
2898 c.urlParams_.Set("pageToken", pageToken)
2899 return c
2900 }
2901
2902
2903
2904
2905 func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall {
2906 c.urlParams_.Set("fields", googleapi.CombineFields(s))
2907 return c
2908 }
2909
2910
2911
2912
2913
2914
2915 func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall {
2916 c.ifNoneMatch_ = entityTag
2917 return c
2918 }
2919
2920
2921
2922
2923 func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall {
2924 c.ctx_ = ctx
2925 return c
2926 }
2927
2928
2929
2930 func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header {
2931 if c.header_ == nil {
2932 c.header_ = make(http.Header)
2933 }
2934 return c.header_
2935 }
2936
2937 func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) {
2938 reqHeaders := make(http.Header)
2939 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
2940 for k, v := range c.header_ {
2941 reqHeaders[k] = v
2942 }
2943 reqHeaders.Set("User-Agent", c.s.userAgent())
2944 if c.ifNoneMatch_ != "" {
2945 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
2946 }
2947 var body io.Reader = nil
2948 c.urlParams_.Set("alt", alt)
2949 c.urlParams_.Set("prettyPrint", "false")
2950 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
2951 urls += "?" + c.urlParams_.Encode()
2952 req, err := http.NewRequest("GET", urls, body)
2953 if err != nil {
2954 return nil, err
2955 }
2956 req.Header = reqHeaders
2957 googleapi.Expand(req.URL, map[string]string{
2958 "name": c.name,
2959 })
2960 return gensupport.SendRequest(c.ctx_, c.s.client, req)
2961 }
2962
2963
2964
2965
2966
2967
2968
2969
2970 func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
2971 gensupport.SetOptions(c.urlParams_, opts...)
2972 res, err := c.doRequest("json")
2973 if res != nil && res.StatusCode == http.StatusNotModified {
2974 if res.Body != nil {
2975 res.Body.Close()
2976 }
2977 return nil, &googleapi.Error{
2978 Code: res.StatusCode,
2979 Header: res.Header,
2980 }
2981 }
2982 if err != nil {
2983 return nil, err
2984 }
2985 defer googleapi.CloseBody(res)
2986 if err := googleapi.CheckResponse(res); err != nil {
2987 return nil, err
2988 }
2989 ret := &ListOperationsResponse{
2990 ServerResponse: googleapi.ServerResponse{
2991 Header: res.Header,
2992 HTTPStatusCode: res.StatusCode,
2993 },
2994 }
2995 target := &ret
2996 if err := gensupport.DecodeResponse(target, res); err != nil {
2997 return nil, err
2998 }
2999 return ret, nil
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042 }
3043
3044
3045
3046
3047 func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
3048 c.ctx_ = ctx
3049 defer c.PageToken(c.urlParams_.Get("pageToken"))
3050 for {
3051 x, err := c.Do()
3052 if err != nil {
3053 return err
3054 }
3055 if err := f(x); err != nil {
3056 return err
3057 }
3058 if x.NextPageToken == "" {
3059 return nil
3060 }
3061 c.PageToken(x.NextPageToken)
3062 }
3063 }
3064
View as plain text