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:v1alpha2"
73 const apiName = "healthcare"
74 const apiVersion = "v1alpha2"
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.AnnotationStores = NewProjectsLocationsDatasetsAnnotationStoresService(s)
160 rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s)
161 rs.FhirStores = NewProjectsLocationsDatasetsFhirStoresService(s)
162 rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s)
163 rs.Operations = NewProjectsLocationsDatasetsOperationsService(s)
164 return rs
165 }
166
167 type ProjectsLocationsDatasetsService struct {
168 s *Service
169
170 AnnotationStores *ProjectsLocationsDatasetsAnnotationStoresService
171
172 DicomStores *ProjectsLocationsDatasetsDicomStoresService
173
174 FhirStores *ProjectsLocationsDatasetsFhirStoresService
175
176 Hl7V2Stores *ProjectsLocationsDatasetsHl7V2StoresService
177
178 Operations *ProjectsLocationsDatasetsOperationsService
179 }
180
181 func NewProjectsLocationsDatasetsAnnotationStoresService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresService {
182 rs := &ProjectsLocationsDatasetsAnnotationStoresService{s: s}
183 rs.Annotations = NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s)
184 return rs
185 }
186
187 type ProjectsLocationsDatasetsAnnotationStoresService struct {
188 s *Service
189
190 Annotations *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService
191 }
192
193 func NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService {
194 rs := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsService{s: s}
195 return rs
196 }
197
198 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsService struct {
199 s *Service
200 }
201
202 func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService {
203 rs := &ProjectsLocationsDatasetsDicomStoresService{s: s}
204 rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s)
205 return rs
206 }
207
208 type ProjectsLocationsDatasetsDicomStoresService struct {
209 s *Service
210
211 DicomWeb *ProjectsLocationsDatasetsDicomStoresDicomWebService
212 }
213
214 func NewProjectsLocationsDatasetsDicomStoresDicomWebService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebService {
215 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebService{s: s}
216 rs.Studies = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s)
217 return rs
218 }
219
220 type ProjectsLocationsDatasetsDicomStoresDicomWebService struct {
221 s *Service
222
223 Studies *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService
224 }
225
226 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService {
227 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService{s: s}
228 rs.Series = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s)
229 return rs
230 }
231
232 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService struct {
233 s *Service
234
235 Series *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService
236 }
237
238 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService {
239 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService{s: s}
240 rs.Instances = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s)
241 return rs
242 }
243
244 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService struct {
245 s *Service
246
247 Instances *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService
248 }
249
250 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService {
251 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService{s: s}
252 rs.Frames = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService(s)
253 return rs
254 }
255
256 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService struct {
257 s *Service
258
259 Frames *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService
260 }
261
262 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService {
263 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService{s: s}
264 return rs
265 }
266
267 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService struct {
268 s *Service
269 }
270
271 func NewProjectsLocationsDatasetsFhirStoresService(s *Service) *ProjectsLocationsDatasetsFhirStoresService {
272 rs := &ProjectsLocationsDatasetsFhirStoresService{s: s}
273 rs.Fhir = NewProjectsLocationsDatasetsFhirStoresFhirService(s)
274 return rs
275 }
276
277 type ProjectsLocationsDatasetsFhirStoresService struct {
278 s *Service
279
280 Fhir *ProjectsLocationsDatasetsFhirStoresFhirService
281 }
282
283 func NewProjectsLocationsDatasetsFhirStoresFhirService(s *Service) *ProjectsLocationsDatasetsFhirStoresFhirService {
284 rs := &ProjectsLocationsDatasetsFhirStoresFhirService{s: s}
285 return rs
286 }
287
288 type ProjectsLocationsDatasetsFhirStoresFhirService struct {
289 s *Service
290 }
291
292 func NewProjectsLocationsDatasetsHl7V2StoresService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresService {
293 rs := &ProjectsLocationsDatasetsHl7V2StoresService{s: s}
294 rs.Messages = NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s)
295 return rs
296 }
297
298 type ProjectsLocationsDatasetsHl7V2StoresService struct {
299 s *Service
300
301 Messages *ProjectsLocationsDatasetsHl7V2StoresMessagesService
302 }
303
304 func NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresMessagesService {
305 rs := &ProjectsLocationsDatasetsHl7V2StoresMessagesService{s: s}
306 return rs
307 }
308
309 type ProjectsLocationsDatasetsHl7V2StoresMessagesService struct {
310 s *Service
311 }
312
313 func NewProjectsLocationsDatasetsOperationsService(s *Service) *ProjectsLocationsDatasetsOperationsService {
314 rs := &ProjectsLocationsDatasetsOperationsService{s: s}
315 return rs
316 }
317
318 type ProjectsLocationsDatasetsOperationsService struct {
319 s *Service
320 }
321
322
323 type Annotation struct {
324
325 AnnotationSource *AnnotationSource `json:"annotationSource,omitempty"`
326
327
328 ImageAnnotation *ImageAnnotation `json:"imageAnnotation,omitempty"`
329
330
331
332
333
334
335 Name string `json:"name,omitempty"`
336
337
338
339 ResourceAnnotation *ResourceAnnotation `json:"resourceAnnotation,omitempty"`
340
341
342
343 TextAnnotation *SensitiveTextAnnotation `json:"textAnnotation,omitempty"`
344
345
346
347 googleapi.ServerResponse `json:"-"`
348
349
350
351
352
353
354
355 ForceSendFields []string `json:"-"`
356
357
358
359
360
361
362
363
364 NullFields []string `json:"-"`
365 }
366
367 func (s *Annotation) MarshalJSON() ([]byte, error) {
368 type NoMethod Annotation
369 raw := NoMethod(*s)
370 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
371 }
372
373
374
375 type AnnotationSource struct {
376
377 CloudHealthcareSource *CloudHealthcareSource `json:"cloudHealthcareSource,omitempty"`
378
379
380
381
382
383
384
385
386 ForceSendFields []string `json:"-"`
387
388
389
390
391
392
393
394
395 NullFields []string `json:"-"`
396 }
397
398 func (s *AnnotationSource) MarshalJSON() ([]byte, error) {
399 type NoMethod AnnotationSource
400 raw := NoMethod(*s)
401 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
402 }
403
404
405
406
407 type AnnotationStore struct {
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424 Labels map[string]string `json:"labels,omitempty"`
425
426
427
428
429
430 Name string `json:"name,omitempty"`
431
432
433
434 googleapi.ServerResponse `json:"-"`
435
436
437
438
439
440
441
442 ForceSendFields []string `json:"-"`
443
444
445
446
447
448
449
450 NullFields []string `json:"-"`
451 }
452
453 func (s *AnnotationStore) MarshalJSON() ([]byte, error) {
454 type NoMethod AnnotationStore
455 raw := NoMethod(*s)
456 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
457 }
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516 type AuditConfig struct {
517
518
519 AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
520
521
522
523
524
525
526 Service string `json:"service,omitempty"`
527
528
529
530
531
532
533
534 ForceSendFields []string `json:"-"`
535
536
537
538
539
540
541
542
543 NullFields []string `json:"-"`
544 }
545
546 func (s *AuditConfig) MarshalJSON() ([]byte, error) {
547 type NoMethod AuditConfig
548 raw := NoMethod(*s)
549 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
550 }
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573 type AuditLogConfig struct {
574
575
576
577
578 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
579
580
581
582
583
584
585
586
587 LogType string `json:"logType,omitempty"`
588
589
590
591
592
593
594
595 ForceSendFields []string `json:"-"`
596
597
598
599
600
601
602
603
604 NullFields []string `json:"-"`
605 }
606
607 func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
608 type NoMethod AuditLogConfig
609 raw := NoMethod(*s)
610 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
611 }
612
613
614 type Binding struct {
615
616
617
618
619
620
621 Condition *Expr `json:"condition,omitempty"`
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656 Members []string `json:"members,omitempty"`
657
658
659
660 Role string `json:"role,omitempty"`
661
662
663
664
665
666
667
668 ForceSendFields []string `json:"-"`
669
670
671
672
673
674
675
676 NullFields []string `json:"-"`
677 }
678
679 func (s *Binding) MarshalJSON() ([]byte, error) {
680 type NoMethod Binding
681 raw := NoMethod(*s)
682 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
683 }
684
685
686 type BoundingPoly struct {
687 Label string `json:"label,omitempty"`
688
689 Vertices []*Vertex `json:"vertices,omitempty"`
690
691
692
693
694
695
696
697 ForceSendFields []string `json:"-"`
698
699
700
701
702
703
704
705 NullFields []string `json:"-"`
706 }
707
708 func (s *BoundingPoly) MarshalJSON() ([]byte, error) {
709 type NoMethod BoundingPoly
710 raw := NoMethod(*s)
711 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
712 }
713
714
715
716 type CharacterMaskConfig struct {
717
718
719 MaskingCharacter string `json:"maskingCharacter,omitempty"`
720
721
722
723
724
725
726
727 ForceSendFields []string `json:"-"`
728
729
730
731
732
733
734
735
736 NullFields []string `json:"-"`
737 }
738
739 func (s *CharacterMaskConfig) MarshalJSON() ([]byte, error) {
740 type NoMethod CharacterMaskConfig
741 raw := NoMethod(*s)
742 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
743 }
744
745
746 type CloudHealthcareSource struct {
747
748 Name string `json:"name,omitempty"`
749
750
751
752
753
754
755
756 ForceSendFields []string `json:"-"`
757
758
759
760
761
762
763
764 NullFields []string `json:"-"`
765 }
766
767 func (s *CloudHealthcareSource) MarshalJSON() ([]byte, error) {
768 type NoMethod CloudHealthcareSource
769 raw := NoMethod(*s)
770 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
771 }
772
773
774 type CreateMessageRequest struct {
775
776 Message *Message `json:"message,omitempty"`
777
778
779
780
781
782
783
784 ForceSendFields []string `json:"-"`
785
786
787
788
789
790
791
792 NullFields []string `json:"-"`
793 }
794
795 func (s *CreateMessageRequest) MarshalJSON() ([]byte, error) {
796 type NoMethod CreateMessageRequest
797 raw := NoMethod(*s)
798 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
799 }
800
801
802
803
804
805
806 type CryptoHashConfig struct {
807
808
809
810
811
812 CryptoKey string `json:"cryptoKey,omitempty"`
813
814
815
816
817
818
819
820 ForceSendFields []string `json:"-"`
821
822
823
824
825
826
827
828 NullFields []string `json:"-"`
829 }
830
831 func (s *CryptoHashConfig) MarshalJSON() ([]byte, error) {
832 type NoMethod CryptoHashConfig
833 raw := NoMethod(*s)
834 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
835 }
836
837
838
839
840
841
842
843
844 type Dataset struct {
845
846
847
848
849 Name string `json:"name,omitempty"`
850
851
852
853
854
855
856
857
858 TimeZone string `json:"timeZone,omitempty"`
859
860
861
862 googleapi.ServerResponse `json:"-"`
863
864
865
866
867
868
869
870 ForceSendFields []string `json:"-"`
871
872
873
874
875
876
877
878 NullFields []string `json:"-"`
879 }
880
881 func (s *Dataset) MarshalJSON() ([]byte, error) {
882 type NoMethod Dataset
883 raw := NoMethod(*s)
884 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
885 }
886
887
888
889
890 type DateShiftConfig struct {
891
892
893
894
895
896
897
898 CryptoKey string `json:"cryptoKey,omitempty"`
899
900
901
902
903
904
905
906 ForceSendFields []string `json:"-"`
907
908
909
910
911
912
913
914 NullFields []string `json:"-"`
915 }
916
917 func (s *DateShiftConfig) MarshalJSON() ([]byte, error) {
918 type NoMethod DateShiftConfig
919 raw := NoMethod(*s)
920 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
921 }
922
923
924
925
926
927
928
929
930 type DeidentifyConfig struct {
931
932 Dicom *DicomConfig `json:"dicom,omitempty"`
933
934
935 Fhir *FhirConfig `json:"fhir,omitempty"`
936
937
938
939 Image *ImageConfig `json:"image,omitempty"`
940
941
942 Text *TextConfig `json:"text,omitempty"`
943
944
945
946
947
948
949
950 ForceSendFields []string `json:"-"`
951
952
953
954
955
956
957
958 NullFields []string `json:"-"`
959 }
960
961 func (s *DeidentifyConfig) MarshalJSON() ([]byte, error) {
962 type NoMethod DeidentifyConfig
963 raw := NoMethod(*s)
964 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
965 }
966
967
968
969 type DeidentifyDatasetRequest struct {
970
971 Config *DeidentifyConfig `json:"config,omitempty"`
972
973
974
975
976
977
978
979
980
981
982
983
984 DestinationDataset string `json:"destinationDataset,omitempty"`
985
986
987
988
989
990
991
992 ForceSendFields []string `json:"-"`
993
994
995
996
997
998
999
1000 NullFields []string `json:"-"`
1001 }
1002
1003 func (s *DeidentifyDatasetRequest) MarshalJSON() ([]byte, error) {
1004 type NoMethod DeidentifyDatasetRequest
1005 raw := NoMethod(*s)
1006 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1007 }
1008
1009
1010
1011 type DeidentifyErrorDetails struct {
1012
1013 FailureResourceCount int64 `json:"failureResourceCount,omitempty,string"`
1014
1015
1016 FailureStoreCount int64 `json:"failureStoreCount,omitempty,string"`
1017
1018
1019 SuccessResourceCount int64 `json:"successResourceCount,omitempty,string"`
1020
1021
1022 SuccessStoreCount int64 `json:"successStoreCount,omitempty,string"`
1023
1024
1025
1026
1027
1028
1029
1030
1031 ForceSendFields []string `json:"-"`
1032
1033
1034
1035
1036
1037
1038
1039
1040 NullFields []string `json:"-"`
1041 }
1042
1043 func (s *DeidentifyErrorDetails) MarshalJSON() ([]byte, error) {
1044 type NoMethod DeidentifyErrorDetails
1045 raw := NoMethod(*s)
1046 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1047 }
1048
1049
1050
1051 type DeidentifySummary struct {
1052
1053 SuccessResourceCount int64 `json:"successResourceCount,omitempty,string"`
1054
1055
1056 SuccessStoreCount int64 `json:"successStoreCount,omitempty,string"`
1057
1058
1059
1060
1061
1062
1063
1064
1065 ForceSendFields []string `json:"-"`
1066
1067
1068
1069
1070
1071
1072
1073
1074 NullFields []string `json:"-"`
1075 }
1076
1077 func (s *DeidentifySummary) MarshalJSON() ([]byte, error) {
1078 type NoMethod DeidentifySummary
1079 raw := NoMethod(*s)
1080 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1081 }
1082
1083
1084
1085 type Detail struct {
1086 Findings []*Finding `json:"findings,omitempty"`
1087
1088
1089
1090
1091
1092
1093
1094 ForceSendFields []string `json:"-"`
1095
1096
1097
1098
1099
1100
1101
1102 NullFields []string `json:"-"`
1103 }
1104
1105 func (s *Detail) MarshalJSON() ([]byte, error) {
1106 type NoMethod Detail
1107 raw := NoMethod(*s)
1108 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1109 }
1110
1111
1112
1113 type DicomConfig struct {
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135 FilterProfile string `json:"filterProfile,omitempty"`
1136
1137
1138 KeepList *TagFilterList `json:"keepList,omitempty"`
1139
1140
1141 RemoveList *TagFilterList `json:"removeList,omitempty"`
1142
1143
1144
1145
1146
1147
1148
1149 ForceSendFields []string `json:"-"`
1150
1151
1152
1153
1154
1155
1156
1157 NullFields []string `json:"-"`
1158 }
1159
1160 func (s *DicomConfig) MarshalJSON() ([]byte, error) {
1161 type NoMethod DicomConfig
1162 raw := NoMethod(*s)
1163 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1164 }
1165
1166
1167 type DicomStore struct {
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184 Labels map[string]string `json:"labels,omitempty"`
1185
1186
1187
1188
1189
1190 Name string `json:"name,omitempty"`
1191
1192
1193
1194
1195 NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
1196
1197
1198
1199 googleapi.ServerResponse `json:"-"`
1200
1201
1202
1203
1204
1205
1206
1207 ForceSendFields []string `json:"-"`
1208
1209
1210
1211
1212
1213
1214
1215 NullFields []string `json:"-"`
1216 }
1217
1218 func (s *DicomStore) MarshalJSON() ([]byte, error) {
1219 type NoMethod DicomStore
1220 raw := NoMethod(*s)
1221 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1222 }
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238 type Empty struct {
1239
1240
1241 googleapi.ServerResponse `json:"-"`
1242 }
1243
1244
1245
1246
1247
1248
1249 type ErrorDetail struct {
1250
1251 Error *Status `json:"error,omitempty"`
1252
1253
1254 Resource string `json:"resource,omitempty"`
1255
1256
1257
1258
1259
1260
1261
1262 ForceSendFields []string `json:"-"`
1263
1264
1265
1266
1267
1268
1269
1270 NullFields []string `json:"-"`
1271 }
1272
1273 func (s *ErrorDetail) MarshalJSON() ([]byte, error) {
1274 type NoMethod ErrorDetail
1275 raw := NoMethod(*s)
1276 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1277 }
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288 type ExportDicomDataRequest struct {
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298 BigqueryDestination *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
1299
1300
1301
1302
1303
1304
1305 GcsDestination *GoogleCloudHealthcareV1alpha2DicomGcsDestination `json:"gcsDestination,omitempty"`
1306
1307
1308
1309
1310
1311
1312
1313 ForceSendFields []string `json:"-"`
1314
1315
1316
1317
1318
1319
1320
1321
1322 NullFields []string `json:"-"`
1323 }
1324
1325 func (s *ExportDicomDataRequest) MarshalJSON() ([]byte, error) {
1326 type NoMethod ExportDicomDataRequest
1327 raw := NoMethod(*s)
1328 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1329 }
1330
1331
1332 type ExportResourcesRequest struct {
1333
1334
1335
1336
1337
1338
1339
1340 BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354 GcsDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination `json:"gcsDestination,omitempty"`
1355
1356
1357
1358
1359
1360
1361
1362 ForceSendFields []string `json:"-"`
1363
1364
1365
1366
1367
1368
1369
1370
1371 NullFields []string `json:"-"`
1372 }
1373
1374 func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) {
1375 type NoMethod ExportResourcesRequest
1376 raw := NoMethod(*s)
1377 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1378 }
1379
1380
1381
1382
1383
1384
1385 type Expr struct {
1386
1387
1388
1389 Description string `json:"description,omitempty"`
1390
1391
1392
1393
1394
1395
1396
1397 Expression string `json:"expression,omitempty"`
1398
1399
1400
1401
1402 Location string `json:"location,omitempty"`
1403
1404
1405
1406
1407
1408
1409 Title string `json:"title,omitempty"`
1410
1411
1412
1413
1414
1415
1416
1417 ForceSendFields []string `json:"-"`
1418
1419
1420
1421
1422
1423
1424
1425 NullFields []string `json:"-"`
1426 }
1427
1428 func (s *Expr) MarshalJSON() ([]byte, error) {
1429 type NoMethod Expr
1430 raw := NoMethod(*s)
1431 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1432 }
1433
1434
1435
1436 type FhirConfig struct {
1437
1438
1439
1440
1441
1442 FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"`
1443
1444
1445
1446
1447
1448
1449
1450 ForceSendFields []string `json:"-"`
1451
1452
1453
1454
1455
1456
1457
1458
1459 NullFields []string `json:"-"`
1460 }
1461
1462 func (s *FhirConfig) MarshalJSON() ([]byte, error) {
1463 type NoMethod FhirConfig
1464 raw := NoMethod(*s)
1465 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1466 }
1467
1468
1469 type FhirStore struct {
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485 DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"`
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499 DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"`
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510 EnableHistoryImport bool `json:"enableHistoryImport,omitempty"`
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530 EnableUpdateCreate bool `json:"enableUpdateCreate,omitempty"`
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548 Labels map[string]string `json:"labels,omitempty"`
1549
1550
1551
1552
1553
1554 Name string `json:"name,omitempty"`
1555
1556
1557
1558
1559
1560
1561
1562
1563 NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586 StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"`
1587
1588
1589
1590
1591 SubscriptionConfig *SubscriptionConfig `json:"subscriptionConfig,omitempty"`
1592
1593
1594
1595
1596 ValidationConfig *ValidationConfig `json:"validationConfig,omitempty"`
1597
1598
1599
1600 googleapi.ServerResponse `json:"-"`
1601
1602
1603
1604
1605
1606
1607
1608
1609 ForceSendFields []string `json:"-"`
1610
1611
1612
1613
1614
1615
1616
1617
1618 NullFields []string `json:"-"`
1619 }
1620
1621 func (s *FhirStore) MarshalJSON() ([]byte, error) {
1622 type NoMethod FhirStore
1623 raw := NoMethod(*s)
1624 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1625 }
1626
1627
1628
1629
1630 type FieldMetadata struct {
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641 Action string `json:"action,omitempty"`
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658 Paths []string `json:"paths,omitempty"`
1659
1660
1661
1662
1663
1664
1665
1666 ForceSendFields []string `json:"-"`
1667
1668
1669
1670
1671
1672
1673
1674 NullFields []string `json:"-"`
1675 }
1676
1677 func (s *FieldMetadata) MarshalJSON() ([]byte, error) {
1678 type NoMethod FieldMetadata
1679 raw := NoMethod(*s)
1680 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1681 }
1682
1683 type Finding struct {
1684
1685 End int64 `json:"end,omitempty,string"`
1686
1687
1688
1689
1690 InfoType string `json:"infoType,omitempty"`
1691
1692
1693 Start int64 `json:"start,omitempty,string"`
1694
1695
1696
1697
1698
1699
1700
1701 ForceSendFields []string `json:"-"`
1702
1703
1704
1705
1706
1707
1708
1709 NullFields []string `json:"-"`
1710 }
1711
1712 func (s *Finding) MarshalJSON() ([]byte, error) {
1713 type NoMethod Finding
1714 raw := NoMethod(*s)
1715 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1716 }
1717
1718
1719 type GetIamPolicyRequest struct {
1720
1721
1722
1723 Options *GetPolicyOptions `json:"options,omitempty"`
1724
1725
1726
1727
1728
1729
1730
1731 ForceSendFields []string `json:"-"`
1732
1733
1734
1735
1736
1737
1738
1739 NullFields []string `json:"-"`
1740 }
1741
1742 func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
1743 type NoMethod GetIamPolicyRequest
1744 raw := NoMethod(*s)
1745 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1746 }
1747
1748
1749 type GetPolicyOptions struct {
1750
1751
1752
1753
1754
1755
1756 RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
1757
1758
1759
1760
1761
1762
1763
1764
1765 ForceSendFields []string `json:"-"`
1766
1767
1768
1769
1770
1771
1772
1773
1774 NullFields []string `json:"-"`
1775 }
1776
1777 func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) {
1778 type NoMethod GetPolicyOptions
1779 raw := NoMethod(*s)
1780 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1781 }
1782
1783
1784
1785 type GoogleCloudHealthcareV1alpha2DicomBigQueryDestination struct {
1786
1787
1788
1789
1790
1791
1792
1793 Force bool `json:"force,omitempty"`
1794
1795
1796
1797
1798 TableUri string `json:"tableUri,omitempty"`
1799
1800
1801
1802
1803
1804
1805
1806 ForceSendFields []string `json:"-"`
1807
1808
1809
1810
1811
1812
1813
1814 NullFields []string `json:"-"`
1815 }
1816
1817 func (s *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination) MarshalJSON() ([]byte, error) {
1818 type NoMethod GoogleCloudHealthcareV1alpha2DicomBigQueryDestination
1819 raw := NoMethod(*s)
1820 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1821 }
1822
1823
1824
1825
1826
1827 type GoogleCloudHealthcareV1alpha2DicomGcsDestination struct {
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848 MimeType string `json:"mimeType,omitempty"`
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861 UriPrefix string `json:"uriPrefix,omitempty"`
1862
1863
1864
1865
1866
1867
1868
1869 ForceSendFields []string `json:"-"`
1870
1871
1872
1873
1874
1875
1876
1877 NullFields []string `json:"-"`
1878 }
1879
1880 func (s *GoogleCloudHealthcareV1alpha2DicomGcsDestination) MarshalJSON() ([]byte, error) {
1881 type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsDestination
1882 raw := NoMethod(*s)
1883 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1884 }
1885
1886
1887
1888 type GoogleCloudHealthcareV1alpha2DicomGcsSource struct {
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912 Uri string `json:"uri,omitempty"`
1913
1914
1915
1916
1917
1918
1919
1920 ForceSendFields []string `json:"-"`
1921
1922
1923
1924
1925
1926
1927
1928 NullFields []string `json:"-"`
1929 }
1930
1931 func (s *GoogleCloudHealthcareV1alpha2DicomGcsSource) MarshalJSON() ([]byte, error) {
1932 type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsSource
1933 raw := NoMethod(*s)
1934 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1935 }
1936
1937
1938
1939 type GoogleCloudHealthcareV1alpha2FhirBigQueryDestination struct {
1940
1941
1942
1943 DatasetUri string `json:"datasetUri,omitempty"`
1944
1945
1946 SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"`
1947
1948
1949
1950
1951
1952
1953
1954 ForceSendFields []string `json:"-"`
1955
1956
1957
1958
1959
1960
1961
1962 NullFields []string `json:"-"`
1963 }
1964
1965 func (s *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination) MarshalJSON() ([]byte, error) {
1966 type NoMethod GoogleCloudHealthcareV1alpha2FhirBigQueryDestination
1967 raw := NoMethod(*s)
1968 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1969 }
1970
1971
1972
1973
1974
1975
1976
1977
1978 type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails struct {
1979
1980 ErrorCount int64 `json:"errorCount,omitempty,string"`
1981
1982
1983
1984
1985
1986
1987
1988 FhirStore string `json:"fhirStore,omitempty"`
1989
1990
1991
1992
1993 ResourceCount int64 `json:"resourceCount,omitempty,string"`
1994
1995
1996 SuccessCount int64 `json:"successCount,omitempty,string"`
1997
1998
1999
2000
2001
2002
2003
2004 ForceSendFields []string `json:"-"`
2005
2006
2007
2008
2009
2010
2011
2012 NullFields []string `json:"-"`
2013 }
2014
2015 func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails) MarshalJSON() ([]byte, error) {
2016 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails
2017 raw := NoMethod(*s)
2018 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2019 }
2020
2021
2022
2023
2024
2025
2026
2027 type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse struct {
2028
2029
2030
2031
2032
2033
2034 FhirStore string `json:"fhirStore,omitempty"`
2035
2036
2037
2038 ResourceCount int64 `json:"resourceCount,omitempty,string"`
2039
2040
2041
2042
2043
2044
2045
2046 ForceSendFields []string `json:"-"`
2047
2048
2049
2050
2051
2052
2053
2054 NullFields []string `json:"-"`
2055 }
2056
2057 func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse) MarshalJSON() ([]byte, error) {
2058 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse
2059 raw := NoMethod(*s)
2060 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2061 }
2062
2063
2064
2065 type GoogleCloudHealthcareV1alpha2FhirRestGcsDestination struct {
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075 UriPrefix string `json:"uriPrefix,omitempty"`
2076
2077
2078
2079
2080
2081
2082
2083 ForceSendFields []string `json:"-"`
2084
2085
2086
2087
2088
2089
2090
2091 NullFields []string `json:"-"`
2092 }
2093
2094 func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination) MarshalJSON() ([]byte, error) {
2095 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsDestination
2096 raw := NoMethod(*s)
2097 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2098 }
2099
2100
2101
2102 type GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination struct {
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112 UriPrefix string `json:"uriPrefix,omitempty"`
2113
2114
2115
2116
2117
2118
2119
2120 ForceSendFields []string `json:"-"`
2121
2122
2123
2124
2125
2126
2127
2128 NullFields []string `json:"-"`
2129 }
2130
2131 func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination) MarshalJSON() ([]byte, error) {
2132 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination
2133 raw := NoMethod(*s)
2134 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2135 }
2136
2137
2138
2139 type GoogleCloudHealthcareV1alpha2FhirRestGcsSource struct {
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166 Uri string `json:"uri,omitempty"`
2167
2168
2169
2170
2171
2172
2173
2174 ForceSendFields []string `json:"-"`
2175
2176
2177
2178
2179
2180
2181
2182 NullFields []string `json:"-"`
2183 }
2184
2185 func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsSource) MarshalJSON() ([]byte, error) {
2186 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsSource
2187 raw := NoMethod(*s)
2188 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2189 }
2190
2191
2192
2193
2194
2195
2196
2197
2198 type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails struct {
2199
2200 ErrorCount int64 `json:"errorCount,omitempty,string"`
2201
2202
2203
2204
2205
2206
2207
2208 FhirStore string `json:"fhirStore,omitempty"`
2209
2210
2211
2212
2213 InputSize int64 `json:"inputSize,omitempty,string"`
2214
2215
2216 SuccessCount int64 `json:"successCount,omitempty,string"`
2217
2218
2219
2220
2221
2222
2223
2224 ForceSendFields []string `json:"-"`
2225
2226
2227
2228
2229
2230
2231
2232 NullFields []string `json:"-"`
2233 }
2234
2235 func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails) MarshalJSON() ([]byte, error) {
2236 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails
2237 raw := NoMethod(*s)
2238 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2239 }
2240
2241
2242
2243
2244
2245
2246
2247 type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse struct {
2248
2249
2250
2251
2252
2253
2254 FhirStore string `json:"fhirStore,omitempty"`
2255
2256
2257 InputSize int64 `json:"inputSize,omitempty,string"`
2258
2259
2260
2261
2262
2263
2264
2265 ForceSendFields []string `json:"-"`
2266
2267
2268
2269
2270
2271
2272
2273 NullFields []string `json:"-"`
2274 }
2275
2276 func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse) MarshalJSON() ([]byte, error) {
2277 type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse
2278 raw := NoMethod(*s)
2279 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2280 }
2281
2282
2283 type Hl7V2Store struct {
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300 Labels map[string]string `json:"labels,omitempty"`
2301
2302
2303
2304
2305
2306 Name string `json:"name,omitempty"`
2307
2308
2309
2310
2311
2312
2313 NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
2314
2315
2316
2317
2318 ParserConfig *ParserConfig `json:"parserConfig,omitempty"`
2319
2320
2321
2322 googleapi.ServerResponse `json:"-"`
2323
2324
2325
2326
2327
2328
2329
2330 ForceSendFields []string `json:"-"`
2331
2332
2333
2334
2335
2336
2337
2338 NullFields []string `json:"-"`
2339 }
2340
2341 func (s *Hl7V2Store) MarshalJSON() ([]byte, error) {
2342 type NoMethod Hl7V2Store
2343 raw := NoMethod(*s)
2344 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2345 }
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394 type HttpBody struct {
2395
2396
2397 ContentType string `json:"contentType,omitempty"`
2398
2399
2400 Data string `json:"data,omitempty"`
2401
2402
2403
2404
2405 Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
2406
2407
2408
2409 googleapi.ServerResponse `json:"-"`
2410
2411
2412
2413
2414
2415
2416
2417 ForceSendFields []string `json:"-"`
2418
2419
2420
2421
2422
2423
2424
2425 NullFields []string `json:"-"`
2426 }
2427
2428 func (s *HttpBody) MarshalJSON() ([]byte, error) {
2429 type NoMethod HttpBody
2430 raw := NoMethod(*s)
2431 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2432 }
2433
2434
2435 type ImageAnnotation struct {
2436
2437
2438 BoundingPolys []*BoundingPoly `json:"boundingPolys,omitempty"`
2439
2440
2441
2442
2443
2444
2445
2446 ForceSendFields []string `json:"-"`
2447
2448
2449
2450
2451
2452
2453
2454 NullFields []string `json:"-"`
2455 }
2456
2457 func (s *ImageAnnotation) MarshalJSON() ([]byte, error) {
2458 type NoMethod ImageAnnotation
2459 raw := NoMethod(*s)
2460 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2461 }
2462
2463
2464
2465 type ImageConfig struct {
2466
2467
2468
2469
2470
2471
2472
2473
2474 TextRedactionMode string `json:"textRedactionMode,omitempty"`
2475
2476
2477
2478
2479
2480
2481
2482 ForceSendFields []string `json:"-"`
2483
2484
2485
2486
2487
2488
2489
2490
2491 NullFields []string `json:"-"`
2492 }
2493
2494 func (s *ImageConfig) MarshalJSON() ([]byte, error) {
2495 type NoMethod ImageConfig
2496 raw := NoMethod(*s)
2497 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2498 }
2499
2500
2501
2502 type ImportDicomDataErrorDetails struct {
2503
2504
2505
2506
2507
2508 SampleErrors []*ErrorDetail `json:"sampleErrors,omitempty"`
2509
2510
2511
2512
2513
2514
2515
2516 ForceSendFields []string `json:"-"`
2517
2518
2519
2520
2521
2522
2523
2524 NullFields []string `json:"-"`
2525 }
2526
2527 func (s *ImportDicomDataErrorDetails) MarshalJSON() ([]byte, error) {
2528 type NoMethod ImportDicomDataErrorDetails
2529 raw := NoMethod(*s)
2530 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2531 }
2532
2533
2534
2535
2536
2537
2538
2539
2540 type ImportDicomDataRequest struct {
2541
2542
2543
2544
2545
2546
2547 GcsSource *GoogleCloudHealthcareV1alpha2DicomGcsSource `json:"gcsSource,omitempty"`
2548
2549
2550
2551
2552
2553
2554
2555 ForceSendFields []string `json:"-"`
2556
2557
2558
2559
2560
2561
2562
2563 NullFields []string `json:"-"`
2564 }
2565
2566 func (s *ImportDicomDataRequest) MarshalJSON() ([]byte, error) {
2567 type NoMethod ImportDicomDataRequest
2568 raw := NoMethod(*s)
2569 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2570 }
2571
2572
2573 type ImportResourcesRequest struct {
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594 ContentStructure string `json:"contentStructure,omitempty"`
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606 GcsErrorDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination `json:"gcsErrorDestination,omitempty"`
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618 GcsSource *GoogleCloudHealthcareV1alpha2FhirRestGcsSource `json:"gcsSource,omitempty"`
2619
2620
2621
2622
2623
2624
2625
2626 ForceSendFields []string `json:"-"`
2627
2628
2629
2630
2631
2632
2633
2634
2635 NullFields []string `json:"-"`
2636 }
2637
2638 func (s *ImportResourcesRequest) MarshalJSON() ([]byte, error) {
2639 type NoMethod ImportResourcesRequest
2640 raw := NoMethod(*s)
2641 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2642 }
2643
2644
2645
2646
2647 type InfoTypeTransformation struct {
2648
2649 CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
2650
2651
2652 CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
2653
2654
2655 DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
2656
2657
2658
2659
2660 InfoTypes []string `json:"infoTypes,omitempty"`
2661
2662
2663 RedactConfig *RedactConfig `json:"redactConfig,omitempty"`
2664
2665
2666 ReplaceWithInfoTypeConfig *ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
2667
2668
2669
2670
2671
2672
2673
2674 ForceSendFields []string `json:"-"`
2675
2676
2677
2678
2679
2680
2681
2682
2683 NullFields []string `json:"-"`
2684 }
2685
2686 func (s *InfoTypeTransformation) MarshalJSON() ([]byte, error) {
2687 type NoMethod InfoTypeTransformation
2688 raw := NoMethod(*s)
2689 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2690 }
2691
2692
2693
2694 type IngestMessageRequest struct {
2695
2696 Message *Message `json:"message,omitempty"`
2697
2698
2699
2700
2701
2702
2703
2704 ForceSendFields []string `json:"-"`
2705
2706
2707
2708
2709
2710
2711
2712 NullFields []string `json:"-"`
2713 }
2714
2715 func (s *IngestMessageRequest) MarshalJSON() ([]byte, error) {
2716 type NoMethod IngestMessageRequest
2717 raw := NoMethod(*s)
2718 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2719 }
2720
2721
2722
2723
2724 type IngestMessageResponse struct {
2725
2726 Hl7Ack string `json:"hl7Ack,omitempty"`
2727
2728
2729 Message *Message `json:"message,omitempty"`
2730
2731
2732
2733 googleapi.ServerResponse `json:"-"`
2734
2735
2736
2737
2738
2739
2740
2741 ForceSendFields []string `json:"-"`
2742
2743
2744
2745
2746
2747
2748
2749 NullFields []string `json:"-"`
2750 }
2751
2752 func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) {
2753 type NoMethod IngestMessageResponse
2754 raw := NoMethod(*s)
2755 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2756 }
2757
2758
2759
2760 type ListAnnotationStoresResponse struct {
2761
2762
2763
2764 AnnotationStores []*AnnotationStore `json:"annotationStores,omitempty"`
2765
2766
2767
2768
2769 NextPageToken string `json:"nextPageToken,omitempty"`
2770
2771
2772
2773 googleapi.ServerResponse `json:"-"`
2774
2775
2776
2777
2778
2779
2780
2781 ForceSendFields []string `json:"-"`
2782
2783
2784
2785
2786
2787
2788
2789
2790 NullFields []string `json:"-"`
2791 }
2792
2793 func (s *ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) {
2794 type NoMethod ListAnnotationStoresResponse
2795 raw := NoMethod(*s)
2796 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2797 }
2798
2799
2800
2801
2802 type ListAnnotationsResponse struct {
2803
2804
2805
2806 Annotations []string `json:"annotations,omitempty"`
2807
2808
2809
2810
2811 NextPageToken string `json:"nextPageToken,omitempty"`
2812
2813
2814
2815 googleapi.ServerResponse `json:"-"`
2816
2817
2818
2819
2820
2821
2822
2823 ForceSendFields []string `json:"-"`
2824
2825
2826
2827
2828
2829
2830
2831 NullFields []string `json:"-"`
2832 }
2833
2834 func (s *ListAnnotationsResponse) MarshalJSON() ([]byte, error) {
2835 type NoMethod ListAnnotationsResponse
2836 raw := NoMethod(*s)
2837 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2838 }
2839
2840
2841 type ListDatasetsResponse struct {
2842
2843 Datasets []*Dataset `json:"datasets,omitempty"`
2844
2845
2846
2847
2848 NextPageToken string `json:"nextPageToken,omitempty"`
2849
2850
2851
2852 googleapi.ServerResponse `json:"-"`
2853
2854
2855
2856
2857
2858
2859
2860 ForceSendFields []string `json:"-"`
2861
2862
2863
2864
2865
2866
2867
2868 NullFields []string `json:"-"`
2869 }
2870
2871 func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
2872 type NoMethod ListDatasetsResponse
2873 raw := NoMethod(*s)
2874 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2875 }
2876
2877
2878 type ListDicomStoresResponse struct {
2879
2880
2881
2882 DicomStores []*DicomStore `json:"dicomStores,omitempty"`
2883
2884
2885
2886
2887 NextPageToken string `json:"nextPageToken,omitempty"`
2888
2889
2890
2891 googleapi.ServerResponse `json:"-"`
2892
2893
2894
2895
2896
2897
2898
2899 ForceSendFields []string `json:"-"`
2900
2901
2902
2903
2904
2905
2906
2907 NullFields []string `json:"-"`
2908 }
2909
2910 func (s *ListDicomStoresResponse) MarshalJSON() ([]byte, error) {
2911 type NoMethod ListDicomStoresResponse
2912 raw := NoMethod(*s)
2913 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2914 }
2915
2916
2917 type ListFhirStoresResponse struct {
2918
2919
2920
2921 FhirStores []*FhirStore `json:"fhirStores,omitempty"`
2922
2923
2924
2925
2926 NextPageToken string `json:"nextPageToken,omitempty"`
2927
2928
2929
2930 googleapi.ServerResponse `json:"-"`
2931
2932
2933
2934
2935
2936
2937
2938 ForceSendFields []string `json:"-"`
2939
2940
2941
2942
2943
2944
2945
2946 NullFields []string `json:"-"`
2947 }
2948
2949 func (s *ListFhirStoresResponse) MarshalJSON() ([]byte, error) {
2950 type NoMethod ListFhirStoresResponse
2951 raw := NoMethod(*s)
2952 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2953 }
2954
2955
2956 type ListHl7V2StoresResponse struct {
2957
2958
2959
2960 Hl7V2Stores []*Hl7V2Store `json:"hl7V2Stores,omitempty"`
2961
2962
2963
2964
2965 NextPageToken string `json:"nextPageToken,omitempty"`
2966
2967
2968
2969 googleapi.ServerResponse `json:"-"`
2970
2971
2972
2973
2974
2975
2976
2977 ForceSendFields []string `json:"-"`
2978
2979
2980
2981
2982
2983
2984
2985 NullFields []string `json:"-"`
2986 }
2987
2988 func (s *ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) {
2989 type NoMethod ListHl7V2StoresResponse
2990 raw := NoMethod(*s)
2991 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2992 }
2993
2994
2995
2996 type ListLocationsResponse struct {
2997
2998
2999 Locations []*Location `json:"locations,omitempty"`
3000
3001
3002 NextPageToken string `json:"nextPageToken,omitempty"`
3003
3004
3005
3006 googleapi.ServerResponse `json:"-"`
3007
3008
3009
3010
3011
3012
3013
3014 ForceSendFields []string `json:"-"`
3015
3016
3017
3018
3019
3020
3021
3022 NullFields []string `json:"-"`
3023 }
3024
3025 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
3026 type NoMethod ListLocationsResponse
3027 raw := NoMethod(*s)
3028 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3029 }
3030
3031
3032
3033 type ListMessagesResponse struct {
3034
3035
3036
3037 Messages []string `json:"messages,omitempty"`
3038
3039
3040
3041
3042 NextPageToken string `json:"nextPageToken,omitempty"`
3043
3044
3045
3046 googleapi.ServerResponse `json:"-"`
3047
3048
3049
3050
3051
3052
3053
3054 ForceSendFields []string `json:"-"`
3055
3056
3057
3058
3059
3060
3061
3062 NullFields []string `json:"-"`
3063 }
3064
3065 func (s *ListMessagesResponse) MarshalJSON() ([]byte, error) {
3066 type NoMethod ListMessagesResponse
3067 raw := NoMethod(*s)
3068 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3069 }
3070
3071
3072
3073 type ListOperationsResponse struct {
3074
3075 NextPageToken string `json:"nextPageToken,omitempty"`
3076
3077
3078
3079 Operations []*Operation `json:"operations,omitempty"`
3080
3081
3082
3083 googleapi.ServerResponse `json:"-"`
3084
3085
3086
3087
3088
3089
3090
3091 ForceSendFields []string `json:"-"`
3092
3093
3094
3095
3096
3097
3098
3099 NullFields []string `json:"-"`
3100 }
3101
3102 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
3103 type NoMethod ListOperationsResponse
3104 raw := NoMethod(*s)
3105 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3106 }
3107
3108
3109 type Location struct {
3110
3111
3112
3113 DisplayName string `json:"displayName,omitempty"`
3114
3115
3116
3117
3118 Labels map[string]string `json:"labels,omitempty"`
3119
3120
3121
3122 LocationId string `json:"locationId,omitempty"`
3123
3124
3125
3126
3127 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3128
3129
3130
3131
3132 Name string `json:"name,omitempty"`
3133
3134
3135
3136 googleapi.ServerResponse `json:"-"`
3137
3138
3139
3140
3141
3142
3143
3144 ForceSendFields []string `json:"-"`
3145
3146
3147
3148
3149
3150
3151
3152 NullFields []string `json:"-"`
3153 }
3154
3155 func (s *Location) MarshalJSON() ([]byte, error) {
3156 type NoMethod Location
3157 raw := NoMethod(*s)
3158 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3159 }
3160
3161
3162
3163
3164
3165 type Message struct {
3166
3167
3168 CreateTime string `json:"createTime,omitempty"`
3169
3170
3171 Data string `json:"data,omitempty"`
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189 Labels map[string]string `json:"labels,omitempty"`
3190
3191
3192
3193 MessageType string `json:"messageType,omitempty"`
3194
3195
3196
3197
3198
3199
3200 Name string `json:"name,omitempty"`
3201
3202
3203 ParsedData *ParsedData `json:"parsedData,omitempty"`
3204
3205
3206
3207
3208 PatientIds []*PatientId `json:"patientIds,omitempty"`
3209
3210
3211 SendFacility string `json:"sendFacility,omitempty"`
3212
3213
3214
3215 SendTime string `json:"sendTime,omitempty"`
3216
3217
3218
3219 googleapi.ServerResponse `json:"-"`
3220
3221
3222
3223
3224
3225
3226
3227 ForceSendFields []string `json:"-"`
3228
3229
3230
3231
3232
3233
3234
3235 NullFields []string `json:"-"`
3236 }
3237
3238 func (s *Message) MarshalJSON() ([]byte, error) {
3239 type NoMethod Message
3240 raw := NoMethod(*s)
3241 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3242 }
3243
3244
3245
3246 type NotificationConfig struct {
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269 PubsubTopic string `json:"pubsubTopic,omitempty"`
3270
3271
3272
3273
3274
3275
3276
3277 ForceSendFields []string `json:"-"`
3278
3279
3280
3281
3282
3283
3284
3285 NullFields []string `json:"-"`
3286 }
3287
3288 func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
3289 type NoMethod NotificationConfig
3290 raw := NoMethod(*s)
3291 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3292 }
3293
3294
3295
3296
3297 type Operation struct {
3298
3299
3300
3301
3302
3303 Done bool `json:"done,omitempty"`
3304
3305
3306
3307 Error *Status `json:"error,omitempty"`
3308
3309
3310
3311
3312
3313
3314
3315
3316 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3317
3318
3319
3320
3321
3322
3323
3324 Name string `json:"name,omitempty"`
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341 Response googleapi.RawMessage `json:"response,omitempty"`
3342
3343
3344
3345 googleapi.ServerResponse `json:"-"`
3346
3347
3348
3349
3350
3351
3352
3353 ForceSendFields []string `json:"-"`
3354
3355
3356
3357
3358
3359
3360
3361 NullFields []string `json:"-"`
3362 }
3363
3364 func (s *Operation) MarshalJSON() ([]byte, error) {
3365 type NoMethod Operation
3366 raw := NoMethod(*s)
3367 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3368 }
3369
3370
3371
3372
3373 type OperationMetadata struct {
3374
3375
3376 ApiMethodName string `json:"apiMethodName,omitempty"`
3377
3378 Counter *ProgressCounter `json:"counter,omitempty"`
3379
3380
3381 CreateTime string `json:"createTime,omitempty"`
3382
3383
3384 EndTime string `json:"endTime,omitempty"`
3385
3386
3387
3388
3389
3390
3391
3392 ForceSendFields []string `json:"-"`
3393
3394
3395
3396
3397
3398
3399
3400 NullFields []string `json:"-"`
3401 }
3402
3403 func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
3404 type NoMethod OperationMetadata
3405 raw := NoMethod(*s)
3406 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3407 }
3408
3409
3410 type ParsedData struct {
3411 Segments []*Segment `json:"segments,omitempty"`
3412
3413
3414
3415
3416
3417
3418
3419 ForceSendFields []string `json:"-"`
3420
3421
3422
3423
3424
3425
3426
3427 NullFields []string `json:"-"`
3428 }
3429
3430 func (s *ParsedData) MarshalJSON() ([]byte, error) {
3431 type NoMethod ParsedData
3432 raw := NoMethod(*s)
3433 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3434 }
3435
3436
3437
3438
3439 type ParserConfig struct {
3440
3441
3442 AllowNullHeader bool `json:"allowNullHeader,omitempty"`
3443
3444
3445
3446
3447
3448
3449 SegmentTerminator string `json:"segmentTerminator,omitempty"`
3450
3451
3452
3453
3454
3455
3456
3457 ForceSendFields []string `json:"-"`
3458
3459
3460
3461
3462
3463
3464
3465
3466 NullFields []string `json:"-"`
3467 }
3468
3469 func (s *ParserConfig) MarshalJSON() ([]byte, error) {
3470 type NoMethod ParserConfig
3471 raw := NoMethod(*s)
3472 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3473 }
3474
3475
3476 type PatientId struct {
3477
3478 Type string `json:"type,omitempty"`
3479
3480
3481 Value string `json:"value,omitempty"`
3482
3483
3484
3485
3486
3487
3488
3489 ForceSendFields []string `json:"-"`
3490
3491
3492
3493
3494
3495
3496
3497 NullFields []string `json:"-"`
3498 }
3499
3500 func (s *PatientId) MarshalJSON() ([]byte, error) {
3501 type NoMethod PatientId
3502 raw := NoMethod(*s)
3503 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3504 }
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555 type Policy struct {
3556
3557
3558 AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
3559
3560
3561
3562 Bindings []*Binding `json:"bindings,omitempty"`
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582 Etag string `json:"etag,omitempty"`
3583
3584
3585 Version int64 `json:"version,omitempty"`
3586
3587
3588
3589 googleapi.ServerResponse `json:"-"`
3590
3591
3592
3593
3594
3595
3596
3597 ForceSendFields []string `json:"-"`
3598
3599
3600
3601
3602
3603
3604
3605 NullFields []string `json:"-"`
3606 }
3607
3608 func (s *Policy) MarshalJSON() ([]byte, error) {
3609 type NoMethod Policy
3610 raw := NoMethod(*s)
3611 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3612 }
3613
3614
3615
3616 type ProgressCounter struct {
3617
3618 Failure int64 `json:"failure,omitempty,string"`
3619
3620
3621 Pending int64 `json:"pending,omitempty,string"`
3622
3623
3624 Success int64 `json:"success,omitempty,string"`
3625
3626
3627
3628
3629
3630
3631
3632 ForceSendFields []string `json:"-"`
3633
3634
3635
3636
3637
3638
3639
3640 NullFields []string `json:"-"`
3641 }
3642
3643 func (s *ProgressCounter) MarshalJSON() ([]byte, error) {
3644 type NoMethod ProgressCounter
3645 raw := NoMethod(*s)
3646 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3647 }
3648
3649
3650
3651
3652 type RedactConfig struct {
3653 }
3654
3655
3656
3657
3658
3659
3660 type ReplaceWithInfoTypeConfig struct {
3661 }
3662
3663
3664 type ResourceAnnotation struct {
3665 Label string `json:"label,omitempty"`
3666
3667
3668
3669
3670
3671
3672
3673 ForceSendFields []string `json:"-"`
3674
3675
3676
3677
3678
3679
3680
3681 NullFields []string `json:"-"`
3682 }
3683
3684 func (s *ResourceAnnotation) MarshalJSON() ([]byte, error) {
3685 type NoMethod ResourceAnnotation
3686 raw := NoMethod(*s)
3687 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3688 }
3689
3690
3691
3692
3693 type SchemaConfig struct {
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703 RecursiveStructureDepth int64 `json:"recursiveStructureDepth,omitempty,string"`
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717 SchemaType string `json:"schemaType,omitempty"`
3718
3719
3720
3721
3722
3723
3724
3725
3726 ForceSendFields []string `json:"-"`
3727
3728
3729
3730
3731
3732
3733
3734
3735 NullFields []string `json:"-"`
3736 }
3737
3738 func (s *SchemaConfig) MarshalJSON() ([]byte, error) {
3739 type NoMethod SchemaConfig
3740 raw := NoMethod(*s)
3741 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3742 }
3743
3744
3745
3746 type SearchResourcesRequest struct {
3747
3748
3749
3750
3751
3752
3753
3754
3755 ResourceType string `json:"resourceType,omitempty"`
3756
3757
3758
3759
3760
3761
3762
3763 ForceSendFields []string `json:"-"`
3764
3765
3766
3767
3768
3769
3770
3771 NullFields []string `json:"-"`
3772 }
3773
3774 func (s *SearchResourcesRequest) MarshalJSON() ([]byte, error) {
3775 type NoMethod SearchResourcesRequest
3776 raw := NoMethod(*s)
3777 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3778 }
3779
3780
3781 type Segment struct {
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798 Fields map[string]string `json:"fields,omitempty"`
3799
3800
3801
3802 SegmentId string `json:"segmentId,omitempty"`
3803
3804
3805
3806
3807 SetId string `json:"setId,omitempty"`
3808
3809
3810
3811
3812
3813
3814
3815 ForceSendFields []string `json:"-"`
3816
3817
3818
3819
3820
3821
3822
3823 NullFields []string `json:"-"`
3824 }
3825
3826 func (s *Segment) MarshalJSON() ([]byte, error) {
3827 type NoMethod Segment
3828 raw := NoMethod(*s)
3829 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3830 }
3831
3832
3833
3834 type SensitiveTextAnnotation struct {
3835
3836
3837
3838
3839 Details map[string]Detail `json:"details,omitempty"`
3840
3841
3842
3843
3844
3845
3846
3847 ForceSendFields []string `json:"-"`
3848
3849
3850
3851
3852
3853
3854
3855 NullFields []string `json:"-"`
3856 }
3857
3858 func (s *SensitiveTextAnnotation) MarshalJSON() ([]byte, error) {
3859 type NoMethod SensitiveTextAnnotation
3860 raw := NoMethod(*s)
3861 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3862 }
3863
3864
3865 type SetIamPolicyRequest struct {
3866
3867
3868
3869
3870
3871
3872 Policy *Policy `json:"policy,omitempty"`
3873
3874
3875
3876
3877
3878
3879
3880
3881 UpdateMask string `json:"updateMask,omitempty"`
3882
3883
3884
3885
3886
3887
3888
3889 ForceSendFields []string `json:"-"`
3890
3891
3892
3893
3894
3895
3896
3897 NullFields []string `json:"-"`
3898 }
3899
3900 func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
3901 type NoMethod SetIamPolicyRequest
3902 raw := NoMethod(*s)
3903 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3904 }
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918 type Status struct {
3919
3920
3921 Code int64 `json:"code,omitempty"`
3922
3923
3924
3925
3926 Details []googleapi.RawMessage `json:"details,omitempty"`
3927
3928
3929
3930
3931
3932
3933 Message string `json:"message,omitempty"`
3934
3935
3936
3937
3938
3939
3940
3941 ForceSendFields []string `json:"-"`
3942
3943
3944
3945
3946
3947
3948
3949 NullFields []string `json:"-"`
3950 }
3951
3952 func (s *Status) MarshalJSON() ([]byte, error) {
3953 type NoMethod Status
3954 raw := NoMethod(*s)
3955 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3956 }
3957
3958
3959
3960 type StreamConfig struct {
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 ResourceTypes []string `json:"resourceTypes,omitempty"`
3983
3984
3985
3986
3987
3988
3989
3990 ForceSendFields []string `json:"-"`
3991
3992
3993
3994
3995
3996
3997
3998
3999 NullFields []string `json:"-"`
4000 }
4001
4002 func (s *StreamConfig) MarshalJSON() ([]byte, error) {
4003 type NoMethod StreamConfig
4004 raw := NoMethod(*s)
4005 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4006 }
4007
4008
4009
4010
4011 type SubscriptionConfig struct {
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030 AllowedRestHookEndpoints []*SubscriptionRestHookEndpoint `json:"allowedRestHookEndpoints,omitempty"`
4031
4032
4033
4034
4035
4036
4037
4038
4039 ForceSendFields []string `json:"-"`
4040
4041
4042
4043
4044
4045
4046
4047
4048 NullFields []string `json:"-"`
4049 }
4050
4051 func (s *SubscriptionConfig) MarshalJSON() ([]byte, error) {
4052 type NoMethod SubscriptionConfig
4053 raw := NoMethod(*s)
4054 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4055 }
4056
4057
4058
4059 type SubscriptionRestHookEndpoint struct {
4060
4061
4062
4063
4064
4065 AllowResourcePayload bool `json:"allowResourcePayload,omitempty"`
4066
4067
4068
4069
4070 Endpoint string `json:"endpoint,omitempty"`
4071
4072
4073
4074
4075
4076
4077
4078
4079 ForceSendFields []string `json:"-"`
4080
4081
4082
4083
4084
4085
4086
4087
4088 NullFields []string `json:"-"`
4089 }
4090
4091 func (s *SubscriptionRestHookEndpoint) MarshalJSON() ([]byte, error) {
4092 type NoMethod SubscriptionRestHookEndpoint
4093 raw := NoMethod(*s)
4094 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4095 }
4096
4097
4098 type TagFilterList struct {
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108 Tags []string `json:"tags,omitempty"`
4109
4110
4111
4112
4113
4114
4115
4116 ForceSendFields []string `json:"-"`
4117
4118
4119
4120
4121
4122
4123
4124 NullFields []string `json:"-"`
4125 }
4126
4127 func (s *TagFilterList) MarshalJSON() ([]byte, error) {
4128 type NoMethod TagFilterList
4129 raw := NoMethod(*s)
4130 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4131 }
4132
4133
4134
4135 type TestIamPermissionsRequest struct {
4136
4137
4138
4139
4140
4141
4142
4143 Permissions []string `json:"permissions,omitempty"`
4144
4145
4146
4147
4148
4149
4150
4151 ForceSendFields []string `json:"-"`
4152
4153
4154
4155
4156
4157
4158
4159 NullFields []string `json:"-"`
4160 }
4161
4162 func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
4163 type NoMethod TestIamPermissionsRequest
4164 raw := NoMethod(*s)
4165 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4166 }
4167
4168
4169
4170 type TestIamPermissionsResponse struct {
4171
4172
4173
4174 Permissions []string `json:"permissions,omitempty"`
4175
4176
4177
4178 googleapi.ServerResponse `json:"-"`
4179
4180
4181
4182
4183
4184
4185
4186 ForceSendFields []string `json:"-"`
4187
4188
4189
4190
4191
4192
4193
4194 NullFields []string `json:"-"`
4195 }
4196
4197 func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
4198 type NoMethod TestIamPermissionsResponse
4199 raw := NoMethod(*s)
4200 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4201 }
4202
4203 type TextConfig struct {
4204
4205 Transformations []*InfoTypeTransformation `json:"transformations,omitempty"`
4206
4207
4208
4209
4210
4211
4212
4213 ForceSendFields []string `json:"-"`
4214
4215
4216
4217
4218
4219
4220
4221
4222 NullFields []string `json:"-"`
4223 }
4224
4225 func (s *TextConfig) MarshalJSON() ([]byte, error) {
4226 type NoMethod TextConfig
4227 raw := NoMethod(*s)
4228 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4229 }
4230
4231
4232
4233 type ValidationConfig struct {
4234
4235
4236
4237
4238
4239 DisableProfileValidation bool `json:"disableProfileValidation,omitempty"`
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256 EnabledImplementationGuides []string `json:"enabledImplementationGuides,omitempty"`
4257
4258
4259
4260
4261
4262
4263
4264
4265 ForceSendFields []string `json:"-"`
4266
4267
4268
4269
4270
4271
4272
4273
4274 NullFields []string `json:"-"`
4275 }
4276
4277 func (s *ValidationConfig) MarshalJSON() ([]byte, error) {
4278 type NoMethod ValidationConfig
4279 raw := NoMethod(*s)
4280 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4281 }
4282
4283
4284 type Vertex struct {
4285
4286 X float64 `json:"x,omitempty"`
4287
4288
4289 Y float64 `json:"y,omitempty"`
4290
4291
4292
4293
4294
4295
4296
4297 ForceSendFields []string `json:"-"`
4298
4299
4300
4301
4302
4303
4304
4305 NullFields []string `json:"-"`
4306 }
4307
4308 func (s *Vertex) MarshalJSON() ([]byte, error) {
4309 type NoMethod Vertex
4310 raw := NoMethod(*s)
4311 return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4312 }
4313
4314 func (s *Vertex) UnmarshalJSON(data []byte) error {
4315 type NoMethod Vertex
4316 var s1 struct {
4317 X gensupport.JSONFloat64 `json:"x"`
4318 Y gensupport.JSONFloat64 `json:"y"`
4319 *NoMethod
4320 }
4321 s1.NoMethod = (*NoMethod)(s)
4322 if err := json.Unmarshal(data, &s1); err != nil {
4323 return err
4324 }
4325 s.X = float64(s1.X)
4326 s.Y = float64(s1.Y)
4327 return nil
4328 }
4329
4330
4331
4332 type ProjectsLocationsGetCall struct {
4333 s *Service
4334 name string
4335 urlParams_ gensupport.URLParams
4336 ifNoneMatch_ string
4337 ctx_ context.Context
4338 header_ http.Header
4339 }
4340
4341
4342 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
4343 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4344 c.name = name
4345 return c
4346 }
4347
4348
4349
4350
4351 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
4352 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4353 return c
4354 }
4355
4356
4357
4358
4359
4360
4361 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
4362 c.ifNoneMatch_ = entityTag
4363 return c
4364 }
4365
4366
4367
4368
4369 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
4370 c.ctx_ = ctx
4371 return c
4372 }
4373
4374
4375
4376 func (c *ProjectsLocationsGetCall) Header() http.Header {
4377 if c.header_ == nil {
4378 c.header_ = make(http.Header)
4379 }
4380 return c.header_
4381 }
4382
4383 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
4384 reqHeaders := make(http.Header)
4385 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4386 for k, v := range c.header_ {
4387 reqHeaders[k] = v
4388 }
4389 reqHeaders.Set("User-Agent", c.s.userAgent())
4390 if c.ifNoneMatch_ != "" {
4391 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4392 }
4393 var body io.Reader = nil
4394 c.urlParams_.Set("alt", alt)
4395 c.urlParams_.Set("prettyPrint", "false")
4396 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
4397 urls += "?" + c.urlParams_.Encode()
4398 req, err := http.NewRequest("GET", urls, body)
4399 if err != nil {
4400 return nil, err
4401 }
4402 req.Header = reqHeaders
4403 googleapi.Expand(req.URL, map[string]string{
4404 "name": c.name,
4405 })
4406 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4407 }
4408
4409
4410
4411
4412
4413
4414
4415
4416 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
4417 gensupport.SetOptions(c.urlParams_, opts...)
4418 res, err := c.doRequest("json")
4419 if res != nil && res.StatusCode == http.StatusNotModified {
4420 if res.Body != nil {
4421 res.Body.Close()
4422 }
4423 return nil, &googleapi.Error{
4424 Code: res.StatusCode,
4425 Header: res.Header,
4426 }
4427 }
4428 if err != nil {
4429 return nil, err
4430 }
4431 defer googleapi.CloseBody(res)
4432 if err := googleapi.CheckResponse(res); err != nil {
4433 return nil, err
4434 }
4435 ret := &Location{
4436 ServerResponse: googleapi.ServerResponse{
4437 Header: res.Header,
4438 HTTPStatusCode: res.StatusCode,
4439 },
4440 }
4441 target := &ret
4442 if err := gensupport.DecodeResponse(target, res); err != nil {
4443 return nil, err
4444 }
4445 return ret, nil
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472 }
4473
4474
4475
4476 type ProjectsLocationsListCall struct {
4477 s *Service
4478 name string
4479 urlParams_ gensupport.URLParams
4480 ifNoneMatch_ string
4481 ctx_ context.Context
4482 header_ http.Header
4483 }
4484
4485
4486
4487 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
4488 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4489 c.name = name
4490 return c
4491 }
4492
4493
4494
4495 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
4496 c.urlParams_.Set("filter", filter)
4497 return c
4498 }
4499
4500
4501
4502 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
4503 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4504 return c
4505 }
4506
4507
4508
4509 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
4510 c.urlParams_.Set("pageToken", pageToken)
4511 return c
4512 }
4513
4514
4515
4516
4517 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
4518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4519 return c
4520 }
4521
4522
4523
4524
4525
4526
4527 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
4528 c.ifNoneMatch_ = entityTag
4529 return c
4530 }
4531
4532
4533
4534
4535 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
4536 c.ctx_ = ctx
4537 return c
4538 }
4539
4540
4541
4542 func (c *ProjectsLocationsListCall) Header() http.Header {
4543 if c.header_ == nil {
4544 c.header_ = make(http.Header)
4545 }
4546 return c.header_
4547 }
4548
4549 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
4550 reqHeaders := make(http.Header)
4551 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4552 for k, v := range c.header_ {
4553 reqHeaders[k] = v
4554 }
4555 reqHeaders.Set("User-Agent", c.s.userAgent())
4556 if c.ifNoneMatch_ != "" {
4557 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4558 }
4559 var body io.Reader = nil
4560 c.urlParams_.Set("alt", alt)
4561 c.urlParams_.Set("prettyPrint", "false")
4562 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/locations")
4563 urls += "?" + c.urlParams_.Encode()
4564 req, err := http.NewRequest("GET", urls, body)
4565 if err != nil {
4566 return nil, err
4567 }
4568 req.Header = reqHeaders
4569 googleapi.Expand(req.URL, map[string]string{
4570 "name": c.name,
4571 })
4572 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4573 }
4574
4575
4576
4577
4578
4579
4580
4581
4582 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
4583 gensupport.SetOptions(c.urlParams_, opts...)
4584 res, err := c.doRequest("json")
4585 if res != nil && res.StatusCode == http.StatusNotModified {
4586 if res.Body != nil {
4587 res.Body.Close()
4588 }
4589 return nil, &googleapi.Error{
4590 Code: res.StatusCode,
4591 Header: res.Header,
4592 }
4593 }
4594 if err != nil {
4595 return nil, err
4596 }
4597 defer googleapi.CloseBody(res)
4598 if err := googleapi.CheckResponse(res); err != nil {
4599 return nil, err
4600 }
4601 ret := &ListLocationsResponse{
4602 ServerResponse: googleapi.ServerResponse{
4603 Header: res.Header,
4604 HTTPStatusCode: res.StatusCode,
4605 },
4606 }
4607 target := &ret
4608 if err := gensupport.DecodeResponse(target, res); err != nil {
4609 return nil, err
4610 }
4611 return ret, nil
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 }
4655
4656
4657
4658
4659 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
4660 c.ctx_ = ctx
4661 defer c.PageToken(c.urlParams_.Get("pageToken"))
4662 for {
4663 x, err := c.Do()
4664 if err != nil {
4665 return err
4666 }
4667 if err := f(x); err != nil {
4668 return err
4669 }
4670 if x.NextPageToken == "" {
4671 return nil
4672 }
4673 c.PageToken(x.NextPageToken)
4674 }
4675 }
4676
4677
4678
4679 type ProjectsLocationsDatasetsCreateCall struct {
4680 s *Service
4681 parent string
4682 dataset *Dataset
4683 urlParams_ gensupport.URLParams
4684 ctx_ context.Context
4685 header_ http.Header
4686 }
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Dataset) *ProjectsLocationsDatasetsCreateCall {
4698 c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4699 c.parent = parent
4700 c.dataset = dataset
4701 return c
4702 }
4703
4704
4705
4706
4707
4708 func (c *ProjectsLocationsDatasetsCreateCall) DatasetId(datasetId string) *ProjectsLocationsDatasetsCreateCall {
4709 c.urlParams_.Set("datasetId", datasetId)
4710 return c
4711 }
4712
4713
4714
4715
4716 func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall {
4717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4718 return c
4719 }
4720
4721
4722
4723
4724 func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall {
4725 c.ctx_ = ctx
4726 return c
4727 }
4728
4729
4730
4731 func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header {
4732 if c.header_ == nil {
4733 c.header_ = make(http.Header)
4734 }
4735 return c.header_
4736 }
4737
4738 func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
4739 reqHeaders := make(http.Header)
4740 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4741 for k, v := range c.header_ {
4742 reqHeaders[k] = v
4743 }
4744 reqHeaders.Set("User-Agent", c.s.userAgent())
4745 var body io.Reader = nil
4746 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
4747 if err != nil {
4748 return nil, err
4749 }
4750 reqHeaders.Set("Content-Type", "application/json")
4751 c.urlParams_.Set("alt", alt)
4752 c.urlParams_.Set("prettyPrint", "false")
4753 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets")
4754 urls += "?" + c.urlParams_.Encode()
4755 req, err := http.NewRequest("POST", urls, body)
4756 if err != nil {
4757 return nil, err
4758 }
4759 req.Header = reqHeaders
4760 googleapi.Expand(req.URL, map[string]string{
4761 "parent": c.parent,
4762 })
4763 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4764 }
4765
4766
4767
4768
4769
4770
4771
4772
4773 func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4774 gensupport.SetOptions(c.urlParams_, opts...)
4775 res, err := c.doRequest("json")
4776 if res != nil && res.StatusCode == http.StatusNotModified {
4777 if res.Body != nil {
4778 res.Body.Close()
4779 }
4780 return nil, &googleapi.Error{
4781 Code: res.StatusCode,
4782 Header: res.Header,
4783 }
4784 }
4785 if err != nil {
4786 return nil, err
4787 }
4788 defer googleapi.CloseBody(res)
4789 if err := googleapi.CheckResponse(res); err != nil {
4790 return nil, err
4791 }
4792 ret := &Operation{
4793 ServerResponse: googleapi.ServerResponse{
4794 Header: res.Header,
4795 HTTPStatusCode: res.StatusCode,
4796 },
4797 }
4798 target := &ret
4799 if err := gensupport.DecodeResponse(target, res); err != nil {
4800 return nil, err
4801 }
4802 return ret, nil
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 }
4838
4839
4840
4841 type ProjectsLocationsDatasetsDeidentifyCall struct {
4842 s *Service
4843 sourceDataset string
4844 deidentifydatasetrequest *DeidentifyDatasetRequest
4845 urlParams_ gensupport.URLParams
4846 ctx_ context.Context
4847 header_ http.Header
4848 }
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deidentifydatasetrequest *DeidentifyDatasetRequest) *ProjectsLocationsDatasetsDeidentifyCall {
4863 c := &ProjectsLocationsDatasetsDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4864 c.sourceDataset = sourceDataset
4865 c.deidentifydatasetrequest = deidentifydatasetrequest
4866 return c
4867 }
4868
4869
4870
4871
4872 func (c *ProjectsLocationsDatasetsDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeidentifyCall {
4873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4874 return c
4875 }
4876
4877
4878
4879
4880 func (c *ProjectsLocationsDatasetsDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeidentifyCall {
4881 c.ctx_ = ctx
4882 return c
4883 }
4884
4885
4886
4887 func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header {
4888 if c.header_ == nil {
4889 c.header_ = make(http.Header)
4890 }
4891 return c.header_
4892 }
4893
4894 func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) {
4895 reqHeaders := make(http.Header)
4896 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4897 for k, v := range c.header_ {
4898 reqHeaders[k] = v
4899 }
4900 reqHeaders.Set("User-Agent", c.s.userAgent())
4901 var body io.Reader = nil
4902 body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydatasetrequest)
4903 if err != nil {
4904 return nil, err
4905 }
4906 reqHeaders.Set("Content-Type", "application/json")
4907 c.urlParams_.Set("alt", alt)
4908 c.urlParams_.Set("prettyPrint", "false")
4909 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+sourceDataset}:deidentify")
4910 urls += "?" + c.urlParams_.Encode()
4911 req, err := http.NewRequest("POST", urls, body)
4912 if err != nil {
4913 return nil, err
4914 }
4915 req.Header = reqHeaders
4916 googleapi.Expand(req.URL, map[string]string{
4917 "sourceDataset": c.sourceDataset,
4918 })
4919 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4920 }
4921
4922
4923
4924
4925
4926
4927
4928
4929 func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4930 gensupport.SetOptions(c.urlParams_, opts...)
4931 res, err := c.doRequest("json")
4932 if res != nil && res.StatusCode == http.StatusNotModified {
4933 if res.Body != nil {
4934 res.Body.Close()
4935 }
4936 return nil, &googleapi.Error{
4937 Code: res.StatusCode,
4938 Header: res.Header,
4939 }
4940 }
4941 if err != nil {
4942 return nil, err
4943 }
4944 defer googleapi.CloseBody(res)
4945 if err := googleapi.CheckResponse(res); err != nil {
4946 return nil, err
4947 }
4948 ret := &Operation{
4949 ServerResponse: googleapi.ServerResponse{
4950 Header: res.Header,
4951 HTTPStatusCode: res.StatusCode,
4952 },
4953 }
4954 target := &ret
4955 if err := gensupport.DecodeResponse(target, res); err != nil {
4956 return nil, err
4957 }
4958 return ret, nil
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988 }
4989
4990
4991
4992 type ProjectsLocationsDatasetsDeleteCall struct {
4993 s *Service
4994 name string
4995 urlParams_ gensupport.URLParams
4996 ctx_ context.Context
4997 header_ http.Header
4998 }
4999
5000
5001
5002
5003
5004
5005 func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall {
5006 c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5007 c.name = name
5008 return c
5009 }
5010
5011
5012
5013
5014 func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall {
5015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5016 return c
5017 }
5018
5019
5020
5021
5022 func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall {
5023 c.ctx_ = ctx
5024 return c
5025 }
5026
5027
5028
5029 func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header {
5030 if c.header_ == nil {
5031 c.header_ = make(http.Header)
5032 }
5033 return c.header_
5034 }
5035
5036 func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
5037 reqHeaders := make(http.Header)
5038 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5039 for k, v := range c.header_ {
5040 reqHeaders[k] = v
5041 }
5042 reqHeaders.Set("User-Agent", c.s.userAgent())
5043 var body io.Reader = nil
5044 c.urlParams_.Set("alt", alt)
5045 c.urlParams_.Set("prettyPrint", "false")
5046 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
5047 urls += "?" + c.urlParams_.Encode()
5048 req, err := http.NewRequest("DELETE", urls, body)
5049 if err != nil {
5050 return nil, err
5051 }
5052 req.Header = reqHeaders
5053 googleapi.Expand(req.URL, map[string]string{
5054 "name": c.name,
5055 })
5056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5057 }
5058
5059
5060
5061
5062
5063
5064
5065
5066 func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
5067 gensupport.SetOptions(c.urlParams_, opts...)
5068 res, err := c.doRequest("json")
5069 if res != nil && res.StatusCode == http.StatusNotModified {
5070 if res.Body != nil {
5071 res.Body.Close()
5072 }
5073 return nil, &googleapi.Error{
5074 Code: res.StatusCode,
5075 Header: res.Header,
5076 }
5077 }
5078 if err != nil {
5079 return nil, err
5080 }
5081 defer googleapi.CloseBody(res)
5082 if err := googleapi.CheckResponse(res); err != nil {
5083 return nil, err
5084 }
5085 ret := &Empty{
5086 ServerResponse: googleapi.ServerResponse{
5087 Header: res.Header,
5088 HTTPStatusCode: res.StatusCode,
5089 },
5090 }
5091 target := &ret
5092 if err := gensupport.DecodeResponse(target, res); err != nil {
5093 return nil, err
5094 }
5095 return ret, nil
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 }
5123
5124
5125
5126 type ProjectsLocationsDatasetsGetCall struct {
5127 s *Service
5128 name string
5129 urlParams_ gensupport.URLParams
5130 ifNoneMatch_ string
5131 ctx_ context.Context
5132 header_ http.Header
5133 }
5134
5135
5136 func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall {
5137 c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5138 c.name = name
5139 return c
5140 }
5141
5142
5143
5144
5145 func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall {
5146 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5147 return c
5148 }
5149
5150
5151
5152
5153
5154
5155 func (c *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall {
5156 c.ifNoneMatch_ = entityTag
5157 return c
5158 }
5159
5160
5161
5162
5163 func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall {
5164 c.ctx_ = ctx
5165 return c
5166 }
5167
5168
5169
5170 func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header {
5171 if c.header_ == nil {
5172 c.header_ = make(http.Header)
5173 }
5174 return c.header_
5175 }
5176
5177 func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
5178 reqHeaders := make(http.Header)
5179 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5180 for k, v := range c.header_ {
5181 reqHeaders[k] = v
5182 }
5183 reqHeaders.Set("User-Agent", c.s.userAgent())
5184 if c.ifNoneMatch_ != "" {
5185 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5186 }
5187 var body io.Reader = nil
5188 c.urlParams_.Set("alt", alt)
5189 c.urlParams_.Set("prettyPrint", "false")
5190 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
5191 urls += "?" + c.urlParams_.Encode()
5192 req, err := http.NewRequest("GET", urls, body)
5193 if err != nil {
5194 return nil, err
5195 }
5196 req.Header = reqHeaders
5197 googleapi.Expand(req.URL, map[string]string{
5198 "name": c.name,
5199 })
5200 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5201 }
5202
5203
5204
5205
5206
5207
5208
5209
5210 func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
5211 gensupport.SetOptions(c.urlParams_, opts...)
5212 res, err := c.doRequest("json")
5213 if res != nil && res.StatusCode == http.StatusNotModified {
5214 if res.Body != nil {
5215 res.Body.Close()
5216 }
5217 return nil, &googleapi.Error{
5218 Code: res.StatusCode,
5219 Header: res.Header,
5220 }
5221 }
5222 if err != nil {
5223 return nil, err
5224 }
5225 defer googleapi.CloseBody(res)
5226 if err := googleapi.CheckResponse(res); err != nil {
5227 return nil, err
5228 }
5229 ret := &Dataset{
5230 ServerResponse: googleapi.ServerResponse{
5231 Header: res.Header,
5232 HTTPStatusCode: res.StatusCode,
5233 },
5234 }
5235 target := &ret
5236 if err := gensupport.DecodeResponse(target, res); err != nil {
5237 return nil, err
5238 }
5239 return ret, nil
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266 }
5267
5268
5269
5270 type ProjectsLocationsDatasetsGetIamPolicyCall struct {
5271 s *Service
5272 resource string
5273 urlParams_ gensupport.URLParams
5274 ifNoneMatch_ string
5275 ctx_ context.Context
5276 header_ http.Header
5277 }
5278
5279
5280
5281
5282
5283 func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall {
5284 c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5285 c.resource = resource
5286 return c
5287 }
5288
5289
5290
5291
5292
5293
5294
5295
5296 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsGetIamPolicyCall {
5297 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
5298 return c
5299 }
5300
5301
5302
5303
5304 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall {
5305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5306 return c
5307 }
5308
5309
5310
5311
5312
5313
5314 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall {
5315 c.ifNoneMatch_ = entityTag
5316 return c
5317 }
5318
5319
5320
5321
5322 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall {
5323 c.ctx_ = ctx
5324 return c
5325 }
5326
5327
5328
5329 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header {
5330 if c.header_ == nil {
5331 c.header_ = make(http.Header)
5332 }
5333 return c.header_
5334 }
5335
5336 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
5337 reqHeaders := make(http.Header)
5338 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5339 for k, v := range c.header_ {
5340 reqHeaders[k] = v
5341 }
5342 reqHeaders.Set("User-Agent", c.s.userAgent())
5343 if c.ifNoneMatch_ != "" {
5344 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5345 }
5346 var body io.Reader = nil
5347 c.urlParams_.Set("alt", alt)
5348 c.urlParams_.Set("prettyPrint", "false")
5349 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
5350 urls += "?" + c.urlParams_.Encode()
5351 req, err := http.NewRequest("GET", urls, body)
5352 if err != nil {
5353 return nil, err
5354 }
5355 req.Header = reqHeaders
5356 googleapi.Expand(req.URL, map[string]string{
5357 "resource": c.resource,
5358 })
5359 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5360 }
5361
5362
5363
5364
5365
5366
5367
5368
5369 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
5370 gensupport.SetOptions(c.urlParams_, opts...)
5371 res, err := c.doRequest("json")
5372 if res != nil && res.StatusCode == http.StatusNotModified {
5373 if res.Body != nil {
5374 res.Body.Close()
5375 }
5376 return nil, &googleapi.Error{
5377 Code: res.StatusCode,
5378 Header: res.Header,
5379 }
5380 }
5381 if err != nil {
5382 return nil, err
5383 }
5384 defer googleapi.CloseBody(res)
5385 if err := googleapi.CheckResponse(res); err != nil {
5386 return nil, err
5387 }
5388 ret := &Policy{
5389 ServerResponse: googleapi.ServerResponse{
5390 Header: res.Header,
5391 HTTPStatusCode: res.StatusCode,
5392 },
5393 }
5394 target := &ret
5395 if err := gensupport.DecodeResponse(target, res); err != nil {
5396 return nil, err
5397 }
5398 return ret, nil
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 }
5432
5433
5434
5435 type ProjectsLocationsDatasetsListCall struct {
5436 s *Service
5437 parent string
5438 urlParams_ gensupport.URLParams
5439 ifNoneMatch_ string
5440 ctx_ context.Context
5441 header_ http.Header
5442 }
5443
5444
5445 func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall {
5446 c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5447 c.parent = parent
5448 return c
5449 }
5450
5451
5452
5453
5454 func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall {
5455 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5456 return c
5457 }
5458
5459
5460
5461 func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall {
5462 c.urlParams_.Set("pageToken", pageToken)
5463 return c
5464 }
5465
5466
5467
5468
5469 func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall {
5470 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5471 return c
5472 }
5473
5474
5475
5476
5477
5478
5479 func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall {
5480 c.ifNoneMatch_ = entityTag
5481 return c
5482 }
5483
5484
5485
5486
5487 func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall {
5488 c.ctx_ = ctx
5489 return c
5490 }
5491
5492
5493
5494 func (c *ProjectsLocationsDatasetsListCall) Header() http.Header {
5495 if c.header_ == nil {
5496 c.header_ = make(http.Header)
5497 }
5498 return c.header_
5499 }
5500
5501 func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
5502 reqHeaders := make(http.Header)
5503 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5504 for k, v := range c.header_ {
5505 reqHeaders[k] = v
5506 }
5507 reqHeaders.Set("User-Agent", c.s.userAgent())
5508 if c.ifNoneMatch_ != "" {
5509 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5510 }
5511 var body io.Reader = nil
5512 c.urlParams_.Set("alt", alt)
5513 c.urlParams_.Set("prettyPrint", "false")
5514 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets")
5515 urls += "?" + c.urlParams_.Encode()
5516 req, err := http.NewRequest("GET", urls, body)
5517 if err != nil {
5518 return nil, err
5519 }
5520 req.Header = reqHeaders
5521 googleapi.Expand(req.URL, map[string]string{
5522 "parent": c.parent,
5523 })
5524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5525 }
5526
5527
5528
5529
5530
5531
5532
5533
5534 func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) {
5535 gensupport.SetOptions(c.urlParams_, opts...)
5536 res, err := c.doRequest("json")
5537 if res != nil && res.StatusCode == http.StatusNotModified {
5538 if res.Body != nil {
5539 res.Body.Close()
5540 }
5541 return nil, &googleapi.Error{
5542 Code: res.StatusCode,
5543 Header: res.Header,
5544 }
5545 }
5546 if err != nil {
5547 return nil, err
5548 }
5549 defer googleapi.CloseBody(res)
5550 if err := googleapi.CheckResponse(res); err != nil {
5551 return nil, err
5552 }
5553 ret := &ListDatasetsResponse{
5554 ServerResponse: googleapi.ServerResponse{
5555 Header: res.Header,
5556 HTTPStatusCode: res.StatusCode,
5557 },
5558 }
5559 target := &ret
5560 if err := gensupport.DecodeResponse(target, res); err != nil {
5561 return nil, err
5562 }
5563 return ret, nil
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 }
5602
5603
5604
5605
5606 func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error {
5607 c.ctx_ = ctx
5608 defer c.PageToken(c.urlParams_.Get("pageToken"))
5609 for {
5610 x, err := c.Do()
5611 if err != nil {
5612 return err
5613 }
5614 if err := f(x); err != nil {
5615 return err
5616 }
5617 if x.NextPageToken == "" {
5618 return nil
5619 }
5620 c.PageToken(x.NextPageToken)
5621 }
5622 }
5623
5624
5625
5626 type ProjectsLocationsDatasetsPatchCall struct {
5627 s *Service
5628 name string
5629 dataset *Dataset
5630 urlParams_ gensupport.URLParams
5631 ctx_ context.Context
5632 header_ http.Header
5633 }
5634
5635
5636 func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) *ProjectsLocationsDatasetsPatchCall {
5637 c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5638 c.name = name
5639 c.dataset = dataset
5640 return c
5641 }
5642
5643
5644
5645
5646
5647
5648
5649 func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall {
5650 c.urlParams_.Set("updateMask", updateMask)
5651 return c
5652 }
5653
5654
5655
5656
5657 func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall {
5658 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5659 return c
5660 }
5661
5662
5663
5664
5665 func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall {
5666 c.ctx_ = ctx
5667 return c
5668 }
5669
5670
5671
5672 func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header {
5673 if c.header_ == nil {
5674 c.header_ = make(http.Header)
5675 }
5676 return c.header_
5677 }
5678
5679 func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) {
5680 reqHeaders := make(http.Header)
5681 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5682 for k, v := range c.header_ {
5683 reqHeaders[k] = v
5684 }
5685 reqHeaders.Set("User-Agent", c.s.userAgent())
5686 var body io.Reader = nil
5687 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
5688 if err != nil {
5689 return nil, err
5690 }
5691 reqHeaders.Set("Content-Type", "application/json")
5692 c.urlParams_.Set("alt", alt)
5693 c.urlParams_.Set("prettyPrint", "false")
5694 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
5695 urls += "?" + c.urlParams_.Encode()
5696 req, err := http.NewRequest("PATCH", urls, body)
5697 if err != nil {
5698 return nil, err
5699 }
5700 req.Header = reqHeaders
5701 googleapi.Expand(req.URL, map[string]string{
5702 "name": c.name,
5703 })
5704 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5705 }
5706
5707
5708
5709
5710
5711
5712
5713
5714 func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
5715 gensupport.SetOptions(c.urlParams_, opts...)
5716 res, err := c.doRequest("json")
5717 if res != nil && res.StatusCode == http.StatusNotModified {
5718 if res.Body != nil {
5719 res.Body.Close()
5720 }
5721 return nil, &googleapi.Error{
5722 Code: res.StatusCode,
5723 Header: res.Header,
5724 }
5725 }
5726 if err != nil {
5727 return nil, err
5728 }
5729 defer googleapi.CloseBody(res)
5730 if err := googleapi.CheckResponse(res); err != nil {
5731 return nil, err
5732 }
5733 ret := &Dataset{
5734 ServerResponse: googleapi.ServerResponse{
5735 Header: res.Header,
5736 HTTPStatusCode: res.StatusCode,
5737 },
5738 }
5739 target := &ret
5740 if err := gensupport.DecodeResponse(target, res); err != nil {
5741 return nil, err
5742 }
5743 return ret, nil
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779 }
5780
5781
5782
5783 type ProjectsLocationsDatasetsSetIamPolicyCall struct {
5784 s *Service
5785 resource string
5786 setiampolicyrequest *SetIamPolicyRequest
5787 urlParams_ gensupport.URLParams
5788 ctx_ context.Context
5789 header_ http.Header
5790 }
5791
5792
5793
5794
5795 func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall {
5796 c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5797 c.resource = resource
5798 c.setiampolicyrequest = setiampolicyrequest
5799 return c
5800 }
5801
5802
5803
5804
5805 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall {
5806 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5807 return c
5808 }
5809
5810
5811
5812
5813 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall {
5814 c.ctx_ = ctx
5815 return c
5816 }
5817
5818
5819
5820 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header {
5821 if c.header_ == nil {
5822 c.header_ = make(http.Header)
5823 }
5824 return c.header_
5825 }
5826
5827 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
5828 reqHeaders := make(http.Header)
5829 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5830 for k, v := range c.header_ {
5831 reqHeaders[k] = v
5832 }
5833 reqHeaders.Set("User-Agent", c.s.userAgent())
5834 var body io.Reader = nil
5835 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
5836 if err != nil {
5837 return nil, err
5838 }
5839 reqHeaders.Set("Content-Type", "application/json")
5840 c.urlParams_.Set("alt", alt)
5841 c.urlParams_.Set("prettyPrint", "false")
5842 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
5843 urls += "?" + c.urlParams_.Encode()
5844 req, err := http.NewRequest("POST", urls, body)
5845 if err != nil {
5846 return nil, err
5847 }
5848 req.Header = reqHeaders
5849 googleapi.Expand(req.URL, map[string]string{
5850 "resource": c.resource,
5851 })
5852 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5853 }
5854
5855
5856
5857
5858
5859
5860
5861
5862 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
5863 gensupport.SetOptions(c.urlParams_, opts...)
5864 res, err := c.doRequest("json")
5865 if res != nil && res.StatusCode == http.StatusNotModified {
5866 if res.Body != nil {
5867 res.Body.Close()
5868 }
5869 return nil, &googleapi.Error{
5870 Code: res.StatusCode,
5871 Header: res.Header,
5872 }
5873 }
5874 if err != nil {
5875 return nil, err
5876 }
5877 defer googleapi.CloseBody(res)
5878 if err := googleapi.CheckResponse(res); err != nil {
5879 return nil, err
5880 }
5881 ret := &Policy{
5882 ServerResponse: googleapi.ServerResponse{
5883 Header: res.Header,
5884 HTTPStatusCode: res.StatusCode,
5885 },
5886 }
5887 target := &ret
5888 if err := gensupport.DecodeResponse(target, res); err != nil {
5889 return nil, err
5890 }
5891 return ret, nil
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 }
5922
5923
5924
5925 type ProjectsLocationsDatasetsTestIamPermissionsCall struct {
5926 s *Service
5927 resource string
5928 testiampermissionsrequest *TestIamPermissionsRequest
5929 urlParams_ gensupport.URLParams
5930 ctx_ context.Context
5931 header_ http.Header
5932 }
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall {
5946 c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5947 c.resource = resource
5948 c.testiampermissionsrequest = testiampermissionsrequest
5949 return c
5950 }
5951
5952
5953
5954
5955 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall {
5956 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5957 return c
5958 }
5959
5960
5961
5962
5963 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall {
5964 c.ctx_ = ctx
5965 return c
5966 }
5967
5968
5969
5970 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header {
5971 if c.header_ == nil {
5972 c.header_ = make(http.Header)
5973 }
5974 return c.header_
5975 }
5976
5977 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
5978 reqHeaders := make(http.Header)
5979 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5980 for k, v := range c.header_ {
5981 reqHeaders[k] = v
5982 }
5983 reqHeaders.Set("User-Agent", c.s.userAgent())
5984 var body io.Reader = nil
5985 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
5986 if err != nil {
5987 return nil, err
5988 }
5989 reqHeaders.Set("Content-Type", "application/json")
5990 c.urlParams_.Set("alt", alt)
5991 c.urlParams_.Set("prettyPrint", "false")
5992 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
5993 urls += "?" + c.urlParams_.Encode()
5994 req, err := http.NewRequest("POST", urls, body)
5995 if err != nil {
5996 return nil, err
5997 }
5998 req.Header = reqHeaders
5999 googleapi.Expand(req.URL, map[string]string{
6000 "resource": c.resource,
6001 })
6002 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6003 }
6004
6005
6006
6007
6008
6009
6010
6011
6012 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
6013 gensupport.SetOptions(c.urlParams_, opts...)
6014 res, err := c.doRequest("json")
6015 if res != nil && res.StatusCode == http.StatusNotModified {
6016 if res.Body != nil {
6017 res.Body.Close()
6018 }
6019 return nil, &googleapi.Error{
6020 Code: res.StatusCode,
6021 Header: res.Header,
6022 }
6023 }
6024 if err != nil {
6025 return nil, err
6026 }
6027 defer googleapi.CloseBody(res)
6028 if err := googleapi.CheckResponse(res); err != nil {
6029 return nil, err
6030 }
6031 ret := &TestIamPermissionsResponse{
6032 ServerResponse: googleapi.ServerResponse{
6033 Header: res.Header,
6034 HTTPStatusCode: res.StatusCode,
6035 },
6036 }
6037 target := &ret
6038 if err := gensupport.DecodeResponse(target, res); err != nil {
6039 return nil, err
6040 }
6041 return ret, nil
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 }
6072
6073
6074
6075 type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct {
6076 s *Service
6077 parent string
6078 annotationstore *AnnotationStore
6079 urlParams_ gensupport.URLParams
6080 ctx_ context.Context
6081 header_ http.Header
6082 }
6083
6084
6085 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6086 c := &ProjectsLocationsDatasetsAnnotationStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6087 c.parent = parent
6088 c.annotationstore = annotationstore
6089 return c
6090 }
6091
6092
6093
6094
6095
6096 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) AnnotationStoreId(annotationStoreId string) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6097 c.urlParams_.Set("annotationStoreId", annotationStoreId)
6098 return c
6099 }
6100
6101
6102
6103
6104 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6105 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6106 return c
6107 }
6108
6109
6110
6111
6112 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6113 c.ctx_ = ctx
6114 return c
6115 }
6116
6117
6118
6119 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Header {
6120 if c.header_ == nil {
6121 c.header_ = make(http.Header)
6122 }
6123 return c.header_
6124 }
6125
6126 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) {
6127 reqHeaders := make(http.Header)
6128 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6129 for k, v := range c.header_ {
6130 reqHeaders[k] = v
6131 }
6132 reqHeaders.Set("User-Agent", c.s.userAgent())
6133 var body io.Reader = nil
6134 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
6135 if err != nil {
6136 return nil, err
6137 }
6138 reqHeaders.Set("Content-Type", "application/json")
6139 c.urlParams_.Set("alt", alt)
6140 c.urlParams_.Set("prettyPrint", "false")
6141 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores")
6142 urls += "?" + c.urlParams_.Encode()
6143 req, err := http.NewRequest("POST", urls, body)
6144 if err != nil {
6145 return nil, err
6146 }
6147 req.Header = reqHeaders
6148 googleapi.Expand(req.URL, map[string]string{
6149 "parent": c.parent,
6150 })
6151 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6152 }
6153
6154
6155
6156
6157
6158
6159
6160
6161 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
6162 gensupport.SetOptions(c.urlParams_, opts...)
6163 res, err := c.doRequest("json")
6164 if res != nil && res.StatusCode == http.StatusNotModified {
6165 if res.Body != nil {
6166 res.Body.Close()
6167 }
6168 return nil, &googleapi.Error{
6169 Code: res.StatusCode,
6170 Header: res.Header,
6171 }
6172 }
6173 if err != nil {
6174 return nil, err
6175 }
6176 defer googleapi.CloseBody(res)
6177 if err := googleapi.CheckResponse(res); err != nil {
6178 return nil, err
6179 }
6180 ret := &AnnotationStore{
6181 ServerResponse: googleapi.ServerResponse{
6182 Header: res.Header,
6183 HTTPStatusCode: res.StatusCode,
6184 },
6185 }
6186 target := &ret
6187 if err := gensupport.DecodeResponse(target, res); err != nil {
6188 return nil, err
6189 }
6190 return ret, nil
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 }
6226
6227
6228
6229 type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct {
6230 s *Service
6231 name string
6232 urlParams_ gensupport.URLParams
6233 ctx_ context.Context
6234 header_ http.Header
6235 }
6236
6237
6238
6239
6240 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
6241 c := &ProjectsLocationsDatasetsAnnotationStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6242 c.name = name
6243 return c
6244 }
6245
6246
6247
6248
6249 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
6250 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6251 return c
6252 }
6253
6254
6255
6256
6257 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
6258 c.ctx_ = ctx
6259 return c
6260 }
6261
6262
6263
6264 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Header {
6265 if c.header_ == nil {
6266 c.header_ = make(http.Header)
6267 }
6268 return c.header_
6269 }
6270
6271 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
6272 reqHeaders := make(http.Header)
6273 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6274 for k, v := range c.header_ {
6275 reqHeaders[k] = v
6276 }
6277 reqHeaders.Set("User-Agent", c.s.userAgent())
6278 var body io.Reader = nil
6279 c.urlParams_.Set("alt", alt)
6280 c.urlParams_.Set("prettyPrint", "false")
6281 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
6282 urls += "?" + c.urlParams_.Encode()
6283 req, err := http.NewRequest("DELETE", urls, body)
6284 if err != nil {
6285 return nil, err
6286 }
6287 req.Header = reqHeaders
6288 googleapi.Expand(req.URL, map[string]string{
6289 "name": c.name,
6290 })
6291 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6292 }
6293
6294
6295
6296
6297
6298
6299
6300
6301 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6302 gensupport.SetOptions(c.urlParams_, opts...)
6303 res, err := c.doRequest("json")
6304 if res != nil && res.StatusCode == http.StatusNotModified {
6305 if res.Body != nil {
6306 res.Body.Close()
6307 }
6308 return nil, &googleapi.Error{
6309 Code: res.StatusCode,
6310 Header: res.Header,
6311 }
6312 }
6313 if err != nil {
6314 return nil, err
6315 }
6316 defer googleapi.CloseBody(res)
6317 if err := googleapi.CheckResponse(res); err != nil {
6318 return nil, err
6319 }
6320 ret := &Empty{
6321 ServerResponse: googleapi.ServerResponse{
6322 Header: res.Header,
6323 HTTPStatusCode: res.StatusCode,
6324 },
6325 }
6326 target := &ret
6327 if err := gensupport.DecodeResponse(target, res); err != nil {
6328 return nil, err
6329 }
6330 return ret, nil
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 }
6358
6359
6360
6361 type ProjectsLocationsDatasetsAnnotationStoresGetCall struct {
6362 s *Service
6363 name string
6364 urlParams_ gensupport.URLParams
6365 ifNoneMatch_ string
6366 ctx_ context.Context
6367 header_ http.Header
6368 }
6369
6370
6371
6372
6373 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6374 c := &ProjectsLocationsDatasetsAnnotationStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6375 c.name = name
6376 return c
6377 }
6378
6379
6380
6381
6382 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6384 return c
6385 }
6386
6387
6388
6389
6390
6391
6392 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6393 c.ifNoneMatch_ = entityTag
6394 return c
6395 }
6396
6397
6398
6399
6400 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6401 c.ctx_ = ctx
6402 return c
6403 }
6404
6405
6406
6407 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header {
6408 if c.header_ == nil {
6409 c.header_ = make(http.Header)
6410 }
6411 return c.header_
6412 }
6413
6414 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) {
6415 reqHeaders := make(http.Header)
6416 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6417 for k, v := range c.header_ {
6418 reqHeaders[k] = v
6419 }
6420 reqHeaders.Set("User-Agent", c.s.userAgent())
6421 if c.ifNoneMatch_ != "" {
6422 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6423 }
6424 var body io.Reader = nil
6425 c.urlParams_.Set("alt", alt)
6426 c.urlParams_.Set("prettyPrint", "false")
6427 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
6428 urls += "?" + c.urlParams_.Encode()
6429 req, err := http.NewRequest("GET", urls, body)
6430 if err != nil {
6431 return nil, err
6432 }
6433 req.Header = reqHeaders
6434 googleapi.Expand(req.URL, map[string]string{
6435 "name": c.name,
6436 })
6437 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6438 }
6439
6440
6441
6442
6443
6444
6445
6446
6447 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
6448 gensupport.SetOptions(c.urlParams_, opts...)
6449 res, err := c.doRequest("json")
6450 if res != nil && res.StatusCode == http.StatusNotModified {
6451 if res.Body != nil {
6452 res.Body.Close()
6453 }
6454 return nil, &googleapi.Error{
6455 Code: res.StatusCode,
6456 Header: res.Header,
6457 }
6458 }
6459 if err != nil {
6460 return nil, err
6461 }
6462 defer googleapi.CloseBody(res)
6463 if err := googleapi.CheckResponse(res); err != nil {
6464 return nil, err
6465 }
6466 ret := &AnnotationStore{
6467 ServerResponse: googleapi.ServerResponse{
6468 Header: res.Header,
6469 HTTPStatusCode: res.StatusCode,
6470 },
6471 }
6472 target := &ret
6473 if err := gensupport.DecodeResponse(target, res); err != nil {
6474 return nil, err
6475 }
6476 return ret, nil
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 }
6504
6505
6506
6507 type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct {
6508 s *Service
6509 resource string
6510 getiampolicyrequest *GetIamPolicyRequest
6511 urlParams_ gensupport.URLParams
6512 ctx_ context.Context
6513 header_ http.Header
6514 }
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526 func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
6527 c := &ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6528 c.resource = resource
6529 c.getiampolicyrequest = getiampolicyrequest
6530 return c
6531 }
6532
6533
6534
6535
6536 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
6537 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6538 return c
6539 }
6540
6541
6542
6543
6544 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
6545 c.ctx_ = ctx
6546 return c
6547 }
6548
6549
6550
6551 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() http.Header {
6552 if c.header_ == nil {
6553 c.header_ = make(http.Header)
6554 }
6555 return c.header_
6556 }
6557
6558 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
6559 reqHeaders := make(http.Header)
6560 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6561 for k, v := range c.header_ {
6562 reqHeaders[k] = v
6563 }
6564 reqHeaders.Set("User-Agent", c.s.userAgent())
6565 var body io.Reader = nil
6566 body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
6567 if err != nil {
6568 return nil, err
6569 }
6570 reqHeaders.Set("Content-Type", "application/json")
6571 c.urlParams_.Set("alt", alt)
6572 c.urlParams_.Set("prettyPrint", "false")
6573 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
6574 urls += "?" + c.urlParams_.Encode()
6575 req, err := http.NewRequest("POST", urls, body)
6576 if err != nil {
6577 return nil, err
6578 }
6579 req.Header = reqHeaders
6580 googleapi.Expand(req.URL, map[string]string{
6581 "resource": c.resource,
6582 })
6583 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6584 }
6585
6586
6587
6588
6589
6590
6591
6592
6593 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
6594 gensupport.SetOptions(c.urlParams_, opts...)
6595 res, err := c.doRequest("json")
6596 if res != nil && res.StatusCode == http.StatusNotModified {
6597 if res.Body != nil {
6598 res.Body.Close()
6599 }
6600 return nil, &googleapi.Error{
6601 Code: res.StatusCode,
6602 Header: res.Header,
6603 }
6604 }
6605 if err != nil {
6606 return nil, err
6607 }
6608 defer googleapi.CloseBody(res)
6609 if err := googleapi.CheckResponse(res); err != nil {
6610 return nil, err
6611 }
6612 ret := &Policy{
6613 ServerResponse: googleapi.ServerResponse{
6614 Header: res.Header,
6615 HTTPStatusCode: res.StatusCode,
6616 },
6617 }
6618 target := &ret
6619 if err := gensupport.DecodeResponse(target, res); err != nil {
6620 return nil, err
6621 }
6622 return ret, nil
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 }
6653
6654
6655
6656 type ProjectsLocationsDatasetsAnnotationStoresListCall struct {
6657 s *Service
6658 parent string
6659 urlParams_ gensupport.URLParams
6660 ifNoneMatch_ string
6661 ctx_ context.Context
6662 header_ http.Header
6663 }
6664
6665
6666
6667 func (r *ProjectsLocationsDatasetsAnnotationStoresService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6668 c := &ProjectsLocationsDatasetsAnnotationStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6669 c.parent = parent
6670 return c
6671 }
6672
6673
6674
6675
6676
6677
6678
6679
6680 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6681 c.urlParams_.Set("filter", filter)
6682 return c
6683 }
6684
6685
6686
6687
6688 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6689 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6690 return c
6691 }
6692
6693
6694
6695
6696 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6697 c.urlParams_.Set("pageToken", pageToken)
6698 return c
6699 }
6700
6701
6702
6703
6704 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6705 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6706 return c
6707 }
6708
6709
6710
6711
6712
6713
6714 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6715 c.ifNoneMatch_ = entityTag
6716 return c
6717 }
6718
6719
6720
6721
6722 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6723 c.ctx_ = ctx
6724 return c
6725 }
6726
6727
6728
6729 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header {
6730 if c.header_ == nil {
6731 c.header_ = make(http.Header)
6732 }
6733 return c.header_
6734 }
6735
6736 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) {
6737 reqHeaders := make(http.Header)
6738 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6739 for k, v := range c.header_ {
6740 reqHeaders[k] = v
6741 }
6742 reqHeaders.Set("User-Agent", c.s.userAgent())
6743 if c.ifNoneMatch_ != "" {
6744 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6745 }
6746 var body io.Reader = nil
6747 c.urlParams_.Set("alt", alt)
6748 c.urlParams_.Set("prettyPrint", "false")
6749 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores")
6750 urls += "?" + c.urlParams_.Encode()
6751 req, err := http.NewRequest("GET", urls, body)
6752 if err != nil {
6753 return nil, err
6754 }
6755 req.Header = reqHeaders
6756 googleapi.Expand(req.URL, map[string]string{
6757 "parent": c.parent,
6758 })
6759 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6760 }
6761
6762
6763
6764
6765
6766
6767
6768
6769 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationStoresResponse, error) {
6770 gensupport.SetOptions(c.urlParams_, opts...)
6771 res, err := c.doRequest("json")
6772 if res != nil && res.StatusCode == http.StatusNotModified {
6773 if res.Body != nil {
6774 res.Body.Close()
6775 }
6776 return nil, &googleapi.Error{
6777 Code: res.StatusCode,
6778 Header: res.Header,
6779 }
6780 }
6781 if err != nil {
6782 return nil, err
6783 }
6784 defer googleapi.CloseBody(res)
6785 if err := googleapi.CheckResponse(res); err != nil {
6786 return nil, err
6787 }
6788 ret := &ListAnnotationStoresResponse{
6789 ServerResponse: googleapi.ServerResponse{
6790 Header: res.Header,
6791 HTTPStatusCode: res.StatusCode,
6792 },
6793 }
6794 target := &ret
6795 if err := gensupport.DecodeResponse(target, res); err != nil {
6796 return nil, err
6797 }
6798 return ret, nil
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841 }
6842
6843
6844
6845
6846 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Context, f func(*ListAnnotationStoresResponse) error) error {
6847 c.ctx_ = ctx
6848 defer c.PageToken(c.urlParams_.Get("pageToken"))
6849 for {
6850 x, err := c.Do()
6851 if err != nil {
6852 return err
6853 }
6854 if err := f(x); err != nil {
6855 return err
6856 }
6857 if x.NextPageToken == "" {
6858 return nil
6859 }
6860 c.PageToken(x.NextPageToken)
6861 }
6862 }
6863
6864
6865
6866 type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct {
6867 s *Service
6868 name string
6869 annotationstore *AnnotationStore
6870 urlParams_ gensupport.URLParams
6871 ctx_ context.Context
6872 header_ http.Header
6873 }
6874
6875
6876 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6877 c := &ProjectsLocationsDatasetsAnnotationStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6878 c.name = name
6879 c.annotationstore = annotationstore
6880 return c
6881 }
6882
6883
6884
6885
6886
6887
6888
6889 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6890 c.urlParams_.Set("updateMask", updateMask)
6891 return c
6892 }
6893
6894
6895
6896
6897 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6898 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6899 return c
6900 }
6901
6902
6903
6904
6905 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6906 c.ctx_ = ctx
6907 return c
6908 }
6909
6910
6911
6912 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Header {
6913 if c.header_ == nil {
6914 c.header_ = make(http.Header)
6915 }
6916 return c.header_
6917 }
6918
6919 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) {
6920 reqHeaders := make(http.Header)
6921 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6922 for k, v := range c.header_ {
6923 reqHeaders[k] = v
6924 }
6925 reqHeaders.Set("User-Agent", c.s.userAgent())
6926 var body io.Reader = nil
6927 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
6928 if err != nil {
6929 return nil, err
6930 }
6931 reqHeaders.Set("Content-Type", "application/json")
6932 c.urlParams_.Set("alt", alt)
6933 c.urlParams_.Set("prettyPrint", "false")
6934 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
6935 urls += "?" + c.urlParams_.Encode()
6936 req, err := http.NewRequest("PATCH", urls, body)
6937 if err != nil {
6938 return nil, err
6939 }
6940 req.Header = reqHeaders
6941 googleapi.Expand(req.URL, map[string]string{
6942 "name": c.name,
6943 })
6944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6945 }
6946
6947
6948
6949
6950
6951
6952
6953
6954 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
6955 gensupport.SetOptions(c.urlParams_, opts...)
6956 res, err := c.doRequest("json")
6957 if res != nil && res.StatusCode == http.StatusNotModified {
6958 if res.Body != nil {
6959 res.Body.Close()
6960 }
6961 return nil, &googleapi.Error{
6962 Code: res.StatusCode,
6963 Header: res.Header,
6964 }
6965 }
6966 if err != nil {
6967 return nil, err
6968 }
6969 defer googleapi.CloseBody(res)
6970 if err := googleapi.CheckResponse(res); err != nil {
6971 return nil, err
6972 }
6973 ret := &AnnotationStore{
6974 ServerResponse: googleapi.ServerResponse{
6975 Header: res.Header,
6976 HTTPStatusCode: res.StatusCode,
6977 },
6978 }
6979 target := &ret
6980 if err := gensupport.DecodeResponse(target, res); err != nil {
6981 return nil, err
6982 }
6983 return ret, nil
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019 }
7020
7021
7022
7023 type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct {
7024 s *Service
7025 resource string
7026 setiampolicyrequest *SetIamPolicyRequest
7027 urlParams_ gensupport.URLParams
7028 ctx_ context.Context
7029 header_ http.Header
7030 }
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041 func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
7042 c := &ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7043 c.resource = resource
7044 c.setiampolicyrequest = setiampolicyrequest
7045 return c
7046 }
7047
7048
7049
7050
7051 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
7052 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7053 return c
7054 }
7055
7056
7057
7058
7059 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
7060 c.ctx_ = ctx
7061 return c
7062 }
7063
7064
7065
7066 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() http.Header {
7067 if c.header_ == nil {
7068 c.header_ = make(http.Header)
7069 }
7070 return c.header_
7071 }
7072
7073 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
7074 reqHeaders := make(http.Header)
7075 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7076 for k, v := range c.header_ {
7077 reqHeaders[k] = v
7078 }
7079 reqHeaders.Set("User-Agent", c.s.userAgent())
7080 var body io.Reader = nil
7081 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
7082 if err != nil {
7083 return nil, err
7084 }
7085 reqHeaders.Set("Content-Type", "application/json")
7086 c.urlParams_.Set("alt", alt)
7087 c.urlParams_.Set("prettyPrint", "false")
7088 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
7089 urls += "?" + c.urlParams_.Encode()
7090 req, err := http.NewRequest("POST", urls, body)
7091 if err != nil {
7092 return nil, err
7093 }
7094 req.Header = reqHeaders
7095 googleapi.Expand(req.URL, map[string]string{
7096 "resource": c.resource,
7097 })
7098 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7099 }
7100
7101
7102
7103
7104
7105
7106
7107
7108 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
7109 gensupport.SetOptions(c.urlParams_, opts...)
7110 res, err := c.doRequest("json")
7111 if res != nil && res.StatusCode == http.StatusNotModified {
7112 if res.Body != nil {
7113 res.Body.Close()
7114 }
7115 return nil, &googleapi.Error{
7116 Code: res.StatusCode,
7117 Header: res.Header,
7118 }
7119 }
7120 if err != nil {
7121 return nil, err
7122 }
7123 defer googleapi.CloseBody(res)
7124 if err := googleapi.CheckResponse(res); err != nil {
7125 return nil, err
7126 }
7127 ret := &Policy{
7128 ServerResponse: googleapi.ServerResponse{
7129 Header: res.Header,
7130 HTTPStatusCode: res.StatusCode,
7131 },
7132 }
7133 target := &ret
7134 if err := gensupport.DecodeResponse(target, res); err != nil {
7135 return nil, err
7136 }
7137 return ret, nil
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167 }
7168
7169
7170
7171 type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct {
7172 s *Service
7173 resource string
7174 testiampermissionsrequest *TestIamPermissionsRequest
7175 urlParams_ gensupport.URLParams
7176 ctx_ context.Context
7177 header_ http.Header
7178 }
7179
7180
7181
7182
7183
7184
7185
7186
7187 func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
7188 c := &ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7189 c.resource = resource
7190 c.testiampermissionsrequest = testiampermissionsrequest
7191 return c
7192 }
7193
7194
7195
7196
7197 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
7198 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7199 return c
7200 }
7201
7202
7203
7204
7205 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
7206 c.ctx_ = ctx
7207 return c
7208 }
7209
7210
7211
7212 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header() http.Header {
7213 if c.header_ == nil {
7214 c.header_ = make(http.Header)
7215 }
7216 return c.header_
7217 }
7218
7219 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
7220 reqHeaders := make(http.Header)
7221 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7222 for k, v := range c.header_ {
7223 reqHeaders[k] = v
7224 }
7225 reqHeaders.Set("User-Agent", c.s.userAgent())
7226 var body io.Reader = nil
7227 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
7228 if err != nil {
7229 return nil, err
7230 }
7231 reqHeaders.Set("Content-Type", "application/json")
7232 c.urlParams_.Set("alt", alt)
7233 c.urlParams_.Set("prettyPrint", "false")
7234 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
7235 urls += "?" + c.urlParams_.Encode()
7236 req, err := http.NewRequest("POST", urls, body)
7237 if err != nil {
7238 return nil, err
7239 }
7240 req.Header = reqHeaders
7241 googleapi.Expand(req.URL, map[string]string{
7242 "resource": c.resource,
7243 })
7244 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7245 }
7246
7247
7248
7249
7250
7251
7252
7253
7254 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
7255 gensupport.SetOptions(c.urlParams_, opts...)
7256 res, err := c.doRequest("json")
7257 if res != nil && res.StatusCode == http.StatusNotModified {
7258 if res.Body != nil {
7259 res.Body.Close()
7260 }
7261 return nil, &googleapi.Error{
7262 Code: res.StatusCode,
7263 Header: res.Header,
7264 }
7265 }
7266 if err != nil {
7267 return nil, err
7268 }
7269 defer googleapi.CloseBody(res)
7270 if err := googleapi.CheckResponse(res); err != nil {
7271 return nil, err
7272 }
7273 ret := &TestIamPermissionsResponse{
7274 ServerResponse: googleapi.ServerResponse{
7275 Header: res.Header,
7276 HTTPStatusCode: res.StatusCode,
7277 },
7278 }
7279 target := &ret
7280 if err := gensupport.DecodeResponse(target, res); err != nil {
7281 return nil, err
7282 }
7283 return ret, nil
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313 }
7314
7315
7316
7317 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct {
7318 s *Service
7319 parent string
7320 annotation *Annotation
7321 urlParams_ gensupport.URLParams
7322 ctx_ context.Context
7323 header_ http.Header
7324 }
7325
7326
7327
7328
7329
7330 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(parent string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
7331 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7332 c.parent = parent
7333 c.annotation = annotation
7334 return c
7335 }
7336
7337
7338
7339
7340 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
7341 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7342 return c
7343 }
7344
7345
7346
7347
7348 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
7349 c.ctx_ = ctx
7350 return c
7351 }
7352
7353
7354
7355 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header() http.Header {
7356 if c.header_ == nil {
7357 c.header_ = make(http.Header)
7358 }
7359 return c.header_
7360 }
7361
7362 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) {
7363 reqHeaders := make(http.Header)
7364 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7365 for k, v := range c.header_ {
7366 reqHeaders[k] = v
7367 }
7368 reqHeaders.Set("User-Agent", c.s.userAgent())
7369 var body io.Reader = nil
7370 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
7371 if err != nil {
7372 return nil, err
7373 }
7374 reqHeaders.Set("Content-Type", "application/json")
7375 c.urlParams_.Set("alt", alt)
7376 c.urlParams_.Set("prettyPrint", "false")
7377 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations")
7378 urls += "?" + c.urlParams_.Encode()
7379 req, err := http.NewRequest("POST", urls, body)
7380 if err != nil {
7381 return nil, err
7382 }
7383 req.Header = reqHeaders
7384 googleapi.Expand(req.URL, map[string]string{
7385 "parent": c.parent,
7386 })
7387 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7388 }
7389
7390
7391
7392
7393
7394
7395
7396
7397 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
7398 gensupport.SetOptions(c.urlParams_, opts...)
7399 res, err := c.doRequest("json")
7400 if res != nil && res.StatusCode == http.StatusNotModified {
7401 if res.Body != nil {
7402 res.Body.Close()
7403 }
7404 return nil, &googleapi.Error{
7405 Code: res.StatusCode,
7406 Header: res.Header,
7407 }
7408 }
7409 if err != nil {
7410 return nil, err
7411 }
7412 defer googleapi.CloseBody(res)
7413 if err := googleapi.CheckResponse(res); err != nil {
7414 return nil, err
7415 }
7416 ret := &Annotation{
7417 ServerResponse: googleapi.ServerResponse{
7418 Header: res.Header,
7419 HTTPStatusCode: res.StatusCode,
7420 },
7421 }
7422 target := &ret
7423 if err := gensupport.DecodeResponse(target, res); err != nil {
7424 return nil, err
7425 }
7426 return ret, nil
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 }
7457
7458
7459
7460 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct {
7461 s *Service
7462 name string
7463 urlParams_ gensupport.URLParams
7464 ctx_ context.Context
7465 header_ http.Header
7466 }
7467
7468
7469
7470 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
7471 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7472 c.name = name
7473 return c
7474 }
7475
7476
7477
7478
7479 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
7480 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7481 return c
7482 }
7483
7484
7485
7486
7487 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
7488 c.ctx_ = ctx
7489 return c
7490 }
7491
7492
7493
7494 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header() http.Header {
7495 if c.header_ == nil {
7496 c.header_ = make(http.Header)
7497 }
7498 return c.header_
7499 }
7500
7501 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) {
7502 reqHeaders := make(http.Header)
7503 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7504 for k, v := range c.header_ {
7505 reqHeaders[k] = v
7506 }
7507 reqHeaders.Set("User-Agent", c.s.userAgent())
7508 var body io.Reader = nil
7509 c.urlParams_.Set("alt", alt)
7510 c.urlParams_.Set("prettyPrint", "false")
7511 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
7512 urls += "?" + c.urlParams_.Encode()
7513 req, err := http.NewRequest("DELETE", urls, body)
7514 if err != nil {
7515 return nil, err
7516 }
7517 req.Header = reqHeaders
7518 googleapi.Expand(req.URL, map[string]string{
7519 "name": c.name,
7520 })
7521 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7522 }
7523
7524
7525
7526
7527
7528
7529
7530
7531 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7532 gensupport.SetOptions(c.urlParams_, opts...)
7533 res, err := c.doRequest("json")
7534 if res != nil && res.StatusCode == http.StatusNotModified {
7535 if res.Body != nil {
7536 res.Body.Close()
7537 }
7538 return nil, &googleapi.Error{
7539 Code: res.StatusCode,
7540 Header: res.Header,
7541 }
7542 }
7543 if err != nil {
7544 return nil, err
7545 }
7546 defer googleapi.CloseBody(res)
7547 if err := googleapi.CheckResponse(res); err != nil {
7548 return nil, err
7549 }
7550 ret := &Empty{
7551 ServerResponse: googleapi.ServerResponse{
7552 Header: res.Header,
7553 HTTPStatusCode: res.StatusCode,
7554 },
7555 }
7556 target := &ret
7557 if err := gensupport.DecodeResponse(target, res); err != nil {
7558 return nil, err
7559 }
7560 return ret, nil
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 }
7588
7589
7590
7591 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct {
7592 s *Service
7593 name string
7594 urlParams_ gensupport.URLParams
7595 ifNoneMatch_ string
7596 ctx_ context.Context
7597 header_ http.Header
7598 }
7599
7600
7601 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7602 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7603 c.name = name
7604 return c
7605 }
7606
7607
7608
7609
7610 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7611 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7612 return c
7613 }
7614
7615
7616
7617
7618
7619
7620 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7621 c.ifNoneMatch_ = entityTag
7622 return c
7623 }
7624
7625
7626
7627
7628 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7629 c.ctx_ = ctx
7630 return c
7631 }
7632
7633
7634
7635 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() http.Header {
7636 if c.header_ == nil {
7637 c.header_ = make(http.Header)
7638 }
7639 return c.header_
7640 }
7641
7642 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) {
7643 reqHeaders := make(http.Header)
7644 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7645 for k, v := range c.header_ {
7646 reqHeaders[k] = v
7647 }
7648 reqHeaders.Set("User-Agent", c.s.userAgent())
7649 if c.ifNoneMatch_ != "" {
7650 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7651 }
7652 var body io.Reader = nil
7653 c.urlParams_.Set("alt", alt)
7654 c.urlParams_.Set("prettyPrint", "false")
7655 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
7656 urls += "?" + c.urlParams_.Encode()
7657 req, err := http.NewRequest("GET", urls, body)
7658 if err != nil {
7659 return nil, err
7660 }
7661 req.Header = reqHeaders
7662 googleapi.Expand(req.URL, map[string]string{
7663 "name": c.name,
7664 })
7665 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7666 }
7667
7668
7669
7670
7671
7672
7673
7674
7675 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
7676 gensupport.SetOptions(c.urlParams_, opts...)
7677 res, err := c.doRequest("json")
7678 if res != nil && res.StatusCode == http.StatusNotModified {
7679 if res.Body != nil {
7680 res.Body.Close()
7681 }
7682 return nil, &googleapi.Error{
7683 Code: res.StatusCode,
7684 Header: res.Header,
7685 }
7686 }
7687 if err != nil {
7688 return nil, err
7689 }
7690 defer googleapi.CloseBody(res)
7691 if err := googleapi.CheckResponse(res); err != nil {
7692 return nil, err
7693 }
7694 ret := &Annotation{
7695 ServerResponse: googleapi.ServerResponse{
7696 Header: res.Header,
7697 HTTPStatusCode: res.StatusCode,
7698 },
7699 }
7700 target := &ret
7701 if err := gensupport.DecodeResponse(target, res); err != nil {
7702 return nil, err
7703 }
7704 return ret, nil
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 }
7732
7733
7734
7735 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct {
7736 s *Service
7737 parent string
7738 urlParams_ gensupport.URLParams
7739 ifNoneMatch_ string
7740 ctx_ context.Context
7741 header_ http.Header
7742 }
7743
7744
7745
7746
7747 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7748 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7749 c.parent = parent
7750 return c
7751 }
7752
7753
7754
7755
7756
7757
7758
7759
7760 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7761 c.urlParams_.Set("filter", filter)
7762 return c
7763 }
7764
7765
7766
7767
7768 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7769 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7770 return c
7771 }
7772
7773
7774
7775
7776 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7777 c.urlParams_.Set("pageToken", pageToken)
7778 return c
7779 }
7780
7781
7782
7783
7784 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7786 return c
7787 }
7788
7789
7790
7791
7792
7793
7794 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7795 c.ifNoneMatch_ = entityTag
7796 return c
7797 }
7798
7799
7800
7801
7802 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7803 c.ctx_ = ctx
7804 return c
7805 }
7806
7807
7808
7809 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() http.Header {
7810 if c.header_ == nil {
7811 c.header_ = make(http.Header)
7812 }
7813 return c.header_
7814 }
7815
7816 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) {
7817 reqHeaders := make(http.Header)
7818 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7819 for k, v := range c.header_ {
7820 reqHeaders[k] = v
7821 }
7822 reqHeaders.Set("User-Agent", c.s.userAgent())
7823 if c.ifNoneMatch_ != "" {
7824 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7825 }
7826 var body io.Reader = nil
7827 c.urlParams_.Set("alt", alt)
7828 c.urlParams_.Set("prettyPrint", "false")
7829 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations")
7830 urls += "?" + c.urlParams_.Encode()
7831 req, err := http.NewRequest("GET", urls, body)
7832 if err != nil {
7833 return nil, err
7834 }
7835 req.Header = reqHeaders
7836 googleapi.Expand(req.URL, map[string]string{
7837 "parent": c.parent,
7838 })
7839 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7840 }
7841
7842
7843
7844
7845
7846
7847
7848
7849 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationsResponse, 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, &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, err
7867 }
7868 ret := &ListAnnotationsResponse{
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
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 }
7922
7923
7924
7925
7926 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx context.Context, f func(*ListAnnotationsResponse) error) error {
7927 c.ctx_ = ctx
7928 defer c.PageToken(c.urlParams_.Get("pageToken"))
7929 for {
7930 x, err := c.Do()
7931 if err != nil {
7932 return err
7933 }
7934 if err := f(x); err != nil {
7935 return err
7936 }
7937 if x.NextPageToken == "" {
7938 return nil
7939 }
7940 c.PageToken(x.NextPageToken)
7941 }
7942 }
7943
7944
7945
7946 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct {
7947 s *Service
7948 name string
7949 annotation *Annotation
7950 urlParams_ gensupport.URLParams
7951 ctx_ context.Context
7952 header_ http.Header
7953 }
7954
7955
7956 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7957 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7958 c.name = name
7959 c.annotation = annotation
7960 return c
7961 }
7962
7963
7964
7965
7966
7967
7968
7969 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7970 c.urlParams_.Set("updateMask", updateMask)
7971 return c
7972 }
7973
7974
7975
7976
7977 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7978 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7979 return c
7980 }
7981
7982
7983
7984
7985 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7986 c.ctx_ = ctx
7987 return c
7988 }
7989
7990
7991
7992 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() http.Header {
7993 if c.header_ == nil {
7994 c.header_ = make(http.Header)
7995 }
7996 return c.header_
7997 }
7998
7999 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) {
8000 reqHeaders := make(http.Header)
8001 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8002 for k, v := range c.header_ {
8003 reqHeaders[k] = v
8004 }
8005 reqHeaders.Set("User-Agent", c.s.userAgent())
8006 var body io.Reader = nil
8007 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
8008 if err != nil {
8009 return nil, err
8010 }
8011 reqHeaders.Set("Content-Type", "application/json")
8012 c.urlParams_.Set("alt", alt)
8013 c.urlParams_.Set("prettyPrint", "false")
8014 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
8015 urls += "?" + c.urlParams_.Encode()
8016 req, err := http.NewRequest("PATCH", urls, body)
8017 if err != nil {
8018 return nil, err
8019 }
8020 req.Header = reqHeaders
8021 googleapi.Expand(req.URL, map[string]string{
8022 "name": c.name,
8023 })
8024 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8025 }
8026
8027
8028
8029
8030
8031
8032
8033
8034 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
8035 gensupport.SetOptions(c.urlParams_, opts...)
8036 res, err := c.doRequest("json")
8037 if res != nil && res.StatusCode == http.StatusNotModified {
8038 if res.Body != nil {
8039 res.Body.Close()
8040 }
8041 return nil, &googleapi.Error{
8042 Code: res.StatusCode,
8043 Header: res.Header,
8044 }
8045 }
8046 if err != nil {
8047 return nil, err
8048 }
8049 defer googleapi.CloseBody(res)
8050 if err := googleapi.CheckResponse(res); err != nil {
8051 return nil, err
8052 }
8053 ret := &Annotation{
8054 ServerResponse: googleapi.ServerResponse{
8055 Header: res.Header,
8056 HTTPStatusCode: res.StatusCode,
8057 },
8058 }
8059 target := &ret
8060 if err := gensupport.DecodeResponse(target, res); err != nil {
8061 return nil, err
8062 }
8063 return ret, nil
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099 }
8100
8101
8102
8103 type ProjectsLocationsDatasetsDicomStoresCreateCall struct {
8104 s *Service
8105 parent string
8106 dicomstore *DicomStore
8107 urlParams_ gensupport.URLParams
8108 ctx_ context.Context
8109 header_ http.Header
8110 }
8111
8112
8113 func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8114 c := &ProjectsLocationsDatasetsDicomStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8115 c.parent = parent
8116 c.dicomstore = dicomstore
8117 return c
8118 }
8119
8120
8121
8122
8123 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStoreId string) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8124 c.urlParams_.Set("dicomStoreId", dicomStoreId)
8125 return c
8126 }
8127
8128
8129
8130
8131 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8132 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8133 return c
8134 }
8135
8136
8137
8138
8139 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8140 c.ctx_ = ctx
8141 return c
8142 }
8143
8144
8145
8146 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header {
8147 if c.header_ == nil {
8148 c.header_ = make(http.Header)
8149 }
8150 return c.header_
8151 }
8152
8153 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) {
8154 reqHeaders := make(http.Header)
8155 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8156 for k, v := range c.header_ {
8157 reqHeaders[k] = v
8158 }
8159 reqHeaders.Set("User-Agent", c.s.userAgent())
8160 var body io.Reader = nil
8161 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
8162 if err != nil {
8163 return nil, err
8164 }
8165 reqHeaders.Set("Content-Type", "application/json")
8166 c.urlParams_.Set("alt", alt)
8167 c.urlParams_.Set("prettyPrint", "false")
8168 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores")
8169 urls += "?" + c.urlParams_.Encode()
8170 req, err := http.NewRequest("POST", urls, body)
8171 if err != nil {
8172 return nil, err
8173 }
8174 req.Header = reqHeaders
8175 googleapi.Expand(req.URL, map[string]string{
8176 "parent": c.parent,
8177 })
8178 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8179 }
8180
8181
8182
8183
8184
8185
8186
8187
8188 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
8189 gensupport.SetOptions(c.urlParams_, opts...)
8190 res, err := c.doRequest("json")
8191 if res != nil && res.StatusCode == http.StatusNotModified {
8192 if res.Body != nil {
8193 res.Body.Close()
8194 }
8195 return nil, &googleapi.Error{
8196 Code: res.StatusCode,
8197 Header: res.Header,
8198 }
8199 }
8200 if err != nil {
8201 return nil, err
8202 }
8203 defer googleapi.CloseBody(res)
8204 if err := googleapi.CheckResponse(res); err != nil {
8205 return nil, err
8206 }
8207 ret := &DicomStore{
8208 ServerResponse: googleapi.ServerResponse{
8209 Header: res.Header,
8210 HTTPStatusCode: res.StatusCode,
8211 },
8212 }
8213 target := &ret
8214 if err := gensupport.DecodeResponse(target, res); err != nil {
8215 return nil, err
8216 }
8217 return ret, nil
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 }
8253
8254
8255
8256 type ProjectsLocationsDatasetsDicomStoresDeleteCall struct {
8257 s *Service
8258 name string
8259 urlParams_ gensupport.URLParams
8260 ctx_ context.Context
8261 header_ http.Header
8262 }
8263
8264
8265
8266
8267 func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
8268 c := &ProjectsLocationsDatasetsDicomStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8269 c.name = name
8270 return c
8271 }
8272
8273
8274
8275
8276 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
8277 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8278 return c
8279 }
8280
8281
8282
8283
8284 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
8285 c.ctx_ = ctx
8286 return c
8287 }
8288
8289
8290
8291 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header {
8292 if c.header_ == nil {
8293 c.header_ = make(http.Header)
8294 }
8295 return c.header_
8296 }
8297
8298 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
8299 reqHeaders := make(http.Header)
8300 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8301 for k, v := range c.header_ {
8302 reqHeaders[k] = v
8303 }
8304 reqHeaders.Set("User-Agent", c.s.userAgent())
8305 var body io.Reader = nil
8306 c.urlParams_.Set("alt", alt)
8307 c.urlParams_.Set("prettyPrint", "false")
8308 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
8309 urls += "?" + c.urlParams_.Encode()
8310 req, err := http.NewRequest("DELETE", urls, body)
8311 if err != nil {
8312 return nil, err
8313 }
8314 req.Header = reqHeaders
8315 googleapi.Expand(req.URL, map[string]string{
8316 "name": c.name,
8317 })
8318 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8319 }
8320
8321
8322
8323
8324
8325
8326
8327
8328 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
8329 gensupport.SetOptions(c.urlParams_, opts...)
8330 res, err := c.doRequest("json")
8331 if res != nil && res.StatusCode == http.StatusNotModified {
8332 if res.Body != nil {
8333 res.Body.Close()
8334 }
8335 return nil, &googleapi.Error{
8336 Code: res.StatusCode,
8337 Header: res.Header,
8338 }
8339 }
8340 if err != nil {
8341 return nil, err
8342 }
8343 defer googleapi.CloseBody(res)
8344 if err := googleapi.CheckResponse(res); err != nil {
8345 return nil, err
8346 }
8347 ret := &Empty{
8348 ServerResponse: googleapi.ServerResponse{
8349 Header: res.Header,
8350 HTTPStatusCode: res.StatusCode,
8351 },
8352 }
8353 target := &ret
8354 if err := gensupport.DecodeResponse(target, res); err != nil {
8355 return nil, err
8356 }
8357 return ret, nil
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 }
8385
8386
8387
8388 type ProjectsLocationsDatasetsDicomStoresExportCall struct {
8389 s *Service
8390 name string
8391 exportdicomdatarequest *ExportDicomDataRequest
8392 urlParams_ gensupport.URLParams
8393 ctx_ context.Context
8394 header_ http.Header
8395 }
8396
8397
8398
8399
8400
8401
8402 func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, exportdicomdatarequest *ExportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresExportCall {
8403 c := &ProjectsLocationsDatasetsDicomStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8404 c.name = name
8405 c.exportdicomdatarequest = exportdicomdatarequest
8406 return c
8407 }
8408
8409
8410
8411
8412 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresExportCall {
8413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8414 return c
8415 }
8416
8417
8418
8419
8420 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresExportCall {
8421 c.ctx_ = ctx
8422 return c
8423 }
8424
8425
8426
8427 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header {
8428 if c.header_ == nil {
8429 c.header_ = make(http.Header)
8430 }
8431 return c.header_
8432 }
8433
8434 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) {
8435 reqHeaders := make(http.Header)
8436 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8437 for k, v := range c.header_ {
8438 reqHeaders[k] = v
8439 }
8440 reqHeaders.Set("User-Agent", c.s.userAgent())
8441 var body io.Reader = nil
8442 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportdicomdatarequest)
8443 if err != nil {
8444 return nil, err
8445 }
8446 reqHeaders.Set("Content-Type", "application/json")
8447 c.urlParams_.Set("alt", alt)
8448 c.urlParams_.Set("prettyPrint", "false")
8449 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export")
8450 urls += "?" + c.urlParams_.Encode()
8451 req, err := http.NewRequest("POST", urls, body)
8452 if err != nil {
8453 return nil, err
8454 }
8455 req.Header = reqHeaders
8456 googleapi.Expand(req.URL, map[string]string{
8457 "name": c.name,
8458 })
8459 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8460 }
8461
8462
8463
8464
8465
8466
8467
8468
8469 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8470 gensupport.SetOptions(c.urlParams_, opts...)
8471 res, err := c.doRequest("json")
8472 if res != nil && res.StatusCode == http.StatusNotModified {
8473 if res.Body != nil {
8474 res.Body.Close()
8475 }
8476 return nil, &googleapi.Error{
8477 Code: res.StatusCode,
8478 Header: res.Header,
8479 }
8480 }
8481 if err != nil {
8482 return nil, err
8483 }
8484 defer googleapi.CloseBody(res)
8485 if err := googleapi.CheckResponse(res); err != nil {
8486 return nil, err
8487 }
8488 ret := &Operation{
8489 ServerResponse: googleapi.ServerResponse{
8490 Header: res.Header,
8491 HTTPStatusCode: res.StatusCode,
8492 },
8493 }
8494 target := &ret
8495 if err := gensupport.DecodeResponse(target, res); err != nil {
8496 return nil, err
8497 }
8498 return ret, nil
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528 }
8529
8530
8531
8532 type ProjectsLocationsDatasetsDicomStoresGetCall struct {
8533 s *Service
8534 name string
8535 urlParams_ gensupport.URLParams
8536 ifNoneMatch_ string
8537 ctx_ context.Context
8538 header_ http.Header
8539 }
8540
8541
8542 func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *ProjectsLocationsDatasetsDicomStoresGetCall {
8543 c := &ProjectsLocationsDatasetsDicomStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8544 c.name = name
8545 return c
8546 }
8547
8548
8549
8550
8551 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetCall {
8552 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8553 return c
8554 }
8555
8556
8557
8558
8559
8560
8561 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetCall {
8562 c.ifNoneMatch_ = entityTag
8563 return c
8564 }
8565
8566
8567
8568
8569 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetCall {
8570 c.ctx_ = ctx
8571 return c
8572 }
8573
8574
8575
8576 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header {
8577 if c.header_ == nil {
8578 c.header_ = make(http.Header)
8579 }
8580 return c.header_
8581 }
8582
8583 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) {
8584 reqHeaders := make(http.Header)
8585 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8586 for k, v := range c.header_ {
8587 reqHeaders[k] = v
8588 }
8589 reqHeaders.Set("User-Agent", c.s.userAgent())
8590 if c.ifNoneMatch_ != "" {
8591 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8592 }
8593 var body io.Reader = nil
8594 c.urlParams_.Set("alt", alt)
8595 c.urlParams_.Set("prettyPrint", "false")
8596 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
8597 urls += "?" + c.urlParams_.Encode()
8598 req, err := http.NewRequest("GET", urls, body)
8599 if err != nil {
8600 return nil, err
8601 }
8602 req.Header = reqHeaders
8603 googleapi.Expand(req.URL, map[string]string{
8604 "name": c.name,
8605 })
8606 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8607 }
8608
8609
8610
8611
8612
8613
8614
8615
8616 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
8617 gensupport.SetOptions(c.urlParams_, opts...)
8618 res, err := c.doRequest("json")
8619 if res != nil && res.StatusCode == http.StatusNotModified {
8620 if res.Body != nil {
8621 res.Body.Close()
8622 }
8623 return nil, &googleapi.Error{
8624 Code: res.StatusCode,
8625 Header: res.Header,
8626 }
8627 }
8628 if err != nil {
8629 return nil, err
8630 }
8631 defer googleapi.CloseBody(res)
8632 if err := googleapi.CheckResponse(res); err != nil {
8633 return nil, err
8634 }
8635 ret := &DicomStore{
8636 ServerResponse: googleapi.ServerResponse{
8637 Header: res.Header,
8638 HTTPStatusCode: res.StatusCode,
8639 },
8640 }
8641 target := &ret
8642 if err := gensupport.DecodeResponse(target, res); err != nil {
8643 return nil, err
8644 }
8645 return ret, nil
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672 }
8673
8674
8675
8676 type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct {
8677 s *Service
8678 resource string
8679 urlParams_ gensupport.URLParams
8680 ifNoneMatch_ string
8681 ctx_ context.Context
8682 header_ http.Header
8683 }
8684
8685
8686
8687
8688
8689 func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8690 c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8691 c.resource = resource
8692 return c
8693 }
8694
8695
8696
8697
8698
8699
8700
8701
8702 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8703 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
8704 return c
8705 }
8706
8707
8708
8709
8710 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8711 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8712 return c
8713 }
8714
8715
8716
8717
8718
8719
8720 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8721 c.ifNoneMatch_ = entityTag
8722 return c
8723 }
8724
8725
8726
8727
8728 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8729 c.ctx_ = ctx
8730 return c
8731 }
8732
8733
8734
8735 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header {
8736 if c.header_ == nil {
8737 c.header_ = make(http.Header)
8738 }
8739 return c.header_
8740 }
8741
8742 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8743 reqHeaders := make(http.Header)
8744 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8745 for k, v := range c.header_ {
8746 reqHeaders[k] = v
8747 }
8748 reqHeaders.Set("User-Agent", c.s.userAgent())
8749 if c.ifNoneMatch_ != "" {
8750 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8751 }
8752 var body io.Reader = nil
8753 c.urlParams_.Set("alt", alt)
8754 c.urlParams_.Set("prettyPrint", "false")
8755 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
8756 urls += "?" + c.urlParams_.Encode()
8757 req, err := http.NewRequest("GET", urls, body)
8758 if err != nil {
8759 return nil, err
8760 }
8761 req.Header = reqHeaders
8762 googleapi.Expand(req.URL, map[string]string{
8763 "resource": c.resource,
8764 })
8765 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8766 }
8767
8768
8769
8770
8771
8772
8773
8774
8775 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8776 gensupport.SetOptions(c.urlParams_, opts...)
8777 res, err := c.doRequest("json")
8778 if res != nil && res.StatusCode == http.StatusNotModified {
8779 if res.Body != nil {
8780 res.Body.Close()
8781 }
8782 return nil, &googleapi.Error{
8783 Code: res.StatusCode,
8784 Header: res.Header,
8785 }
8786 }
8787 if err != nil {
8788 return nil, err
8789 }
8790 defer googleapi.CloseBody(res)
8791 if err := googleapi.CheckResponse(res); err != nil {
8792 return nil, err
8793 }
8794 ret := &Policy{
8795 ServerResponse: googleapi.ServerResponse{
8796 Header: res.Header,
8797 HTTPStatusCode: res.StatusCode,
8798 },
8799 }
8800 target := &ret
8801 if err := gensupport.DecodeResponse(target, res); err != nil {
8802 return nil, err
8803 }
8804 return ret, nil
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 }
8838
8839
8840
8841 type ProjectsLocationsDatasetsDicomStoresImportCall struct {
8842 s *Service
8843 name string
8844 importdicomdatarequest *ImportDicomDataRequest
8845 urlParams_ gensupport.URLParams
8846 ctx_ context.Context
8847 header_ http.Header
8848 }
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, importdicomdatarequest *ImportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresImportCall {
8863 c := &ProjectsLocationsDatasetsDicomStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8864 c.name = name
8865 c.importdicomdatarequest = importdicomdatarequest
8866 return c
8867 }
8868
8869
8870
8871
8872 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresImportCall {
8873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8874 return c
8875 }
8876
8877
8878
8879
8880 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresImportCall {
8881 c.ctx_ = ctx
8882 return c
8883 }
8884
8885
8886
8887 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header {
8888 if c.header_ == nil {
8889 c.header_ = make(http.Header)
8890 }
8891 return c.header_
8892 }
8893
8894 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) {
8895 reqHeaders := make(http.Header)
8896 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8897 for k, v := range c.header_ {
8898 reqHeaders[k] = v
8899 }
8900 reqHeaders.Set("User-Agent", c.s.userAgent())
8901 var body io.Reader = nil
8902 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdicomdatarequest)
8903 if err != nil {
8904 return nil, err
8905 }
8906 reqHeaders.Set("Content-Type", "application/json")
8907 c.urlParams_.Set("alt", alt)
8908 c.urlParams_.Set("prettyPrint", "false")
8909 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import")
8910 urls += "?" + c.urlParams_.Encode()
8911 req, err := http.NewRequest("POST", urls, body)
8912 if err != nil {
8913 return nil, err
8914 }
8915 req.Header = reqHeaders
8916 googleapi.Expand(req.URL, map[string]string{
8917 "name": c.name,
8918 })
8919 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8920 }
8921
8922
8923
8924
8925
8926
8927
8928
8929 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8930 gensupport.SetOptions(c.urlParams_, opts...)
8931 res, err := c.doRequest("json")
8932 if res != nil && res.StatusCode == http.StatusNotModified {
8933 if res.Body != nil {
8934 res.Body.Close()
8935 }
8936 return nil, &googleapi.Error{
8937 Code: res.StatusCode,
8938 Header: res.Header,
8939 }
8940 }
8941 if err != nil {
8942 return nil, err
8943 }
8944 defer googleapi.CloseBody(res)
8945 if err := googleapi.CheckResponse(res); err != nil {
8946 return nil, err
8947 }
8948 ret := &Operation{
8949 ServerResponse: googleapi.ServerResponse{
8950 Header: res.Header,
8951 HTTPStatusCode: res.StatusCode,
8952 },
8953 }
8954 target := &ret
8955 if err := gensupport.DecodeResponse(target, res); err != nil {
8956 return nil, err
8957 }
8958 return ret, nil
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 }
8989
8990
8991
8992 type ProjectsLocationsDatasetsDicomStoresListCall struct {
8993 s *Service
8994 parent string
8995 urlParams_ gensupport.URLParams
8996 ifNoneMatch_ string
8997 ctx_ context.Context
8998 header_ http.Header
8999 }
9000
9001
9002 func (r *ProjectsLocationsDatasetsDicomStoresService) List(parent string) *ProjectsLocationsDatasetsDicomStoresListCall {
9003 c := &ProjectsLocationsDatasetsDicomStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9004 c.parent = parent
9005 return c
9006 }
9007
9008
9009
9010
9011
9012
9013
9014
9015 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsDicomStoresListCall {
9016 c.urlParams_.Set("filter", filter)
9017 return c
9018 }
9019
9020
9021
9022
9023 func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDicomStoresListCall {
9024 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9025 return c
9026 }
9027
9028
9029
9030
9031 func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDicomStoresListCall {
9032 c.urlParams_.Set("pageToken", pageToken)
9033 return c
9034 }
9035
9036
9037
9038
9039 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresListCall {
9040 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9041 return c
9042 }
9043
9044
9045
9046
9047
9048
9049 func (c *ProjectsLocationsDatasetsDicomStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresListCall {
9050 c.ifNoneMatch_ = entityTag
9051 return c
9052 }
9053
9054
9055
9056
9057 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresListCall {
9058 c.ctx_ = ctx
9059 return c
9060 }
9061
9062
9063
9064 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header {
9065 if c.header_ == nil {
9066 c.header_ = make(http.Header)
9067 }
9068 return c.header_
9069 }
9070
9071 func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) {
9072 reqHeaders := make(http.Header)
9073 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9074 for k, v := range c.header_ {
9075 reqHeaders[k] = v
9076 }
9077 reqHeaders.Set("User-Agent", c.s.userAgent())
9078 if c.ifNoneMatch_ != "" {
9079 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9080 }
9081 var body io.Reader = nil
9082 c.urlParams_.Set("alt", alt)
9083 c.urlParams_.Set("prettyPrint", "false")
9084 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores")
9085 urls += "?" + c.urlParams_.Encode()
9086 req, err := http.NewRequest("GET", urls, body)
9087 if err != nil {
9088 return nil, err
9089 }
9090 req.Header = reqHeaders
9091 googleapi.Expand(req.URL, map[string]string{
9092 "parent": c.parent,
9093 })
9094 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9095 }
9096
9097
9098
9099
9100
9101
9102
9103
9104 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.CallOption) (*ListDicomStoresResponse, error) {
9105 gensupport.SetOptions(c.urlParams_, opts...)
9106 res, err := c.doRequest("json")
9107 if res != nil && res.StatusCode == http.StatusNotModified {
9108 if res.Body != nil {
9109 res.Body.Close()
9110 }
9111 return nil, &googleapi.Error{
9112 Code: res.StatusCode,
9113 Header: res.Header,
9114 }
9115 }
9116 if err != nil {
9117 return nil, err
9118 }
9119 defer googleapi.CloseBody(res)
9120 if err := googleapi.CheckResponse(res); err != nil {
9121 return nil, err
9122 }
9123 ret := &ListDicomStoresResponse{
9124 ServerResponse: googleapi.ServerResponse{
9125 Header: res.Header,
9126 HTTPStatusCode: res.StatusCode,
9127 },
9128 }
9129 target := &ret
9130 if err := gensupport.DecodeResponse(target, res); err != nil {
9131 return nil, err
9132 }
9133 return ret, nil
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 }
9177
9178
9179
9180
9181 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context, f func(*ListDicomStoresResponse) error) error {
9182 c.ctx_ = ctx
9183 defer c.PageToken(c.urlParams_.Get("pageToken"))
9184 for {
9185 x, err := c.Do()
9186 if err != nil {
9187 return err
9188 }
9189 if err := f(x); err != nil {
9190 return err
9191 }
9192 if x.NextPageToken == "" {
9193 return nil
9194 }
9195 c.PageToken(x.NextPageToken)
9196 }
9197 }
9198
9199
9200
9201 type ProjectsLocationsDatasetsDicomStoresPatchCall struct {
9202 s *Service
9203 name string
9204 dicomstore *DicomStore
9205 urlParams_ gensupport.URLParams
9206 ctx_ context.Context
9207 header_ http.Header
9208 }
9209
9210
9211 func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9212 c := &ProjectsLocationsDatasetsDicomStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9213 c.name = name
9214 c.dicomstore = dicomstore
9215 return c
9216 }
9217
9218
9219
9220
9221
9222
9223
9224 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9225 c.urlParams_.Set("updateMask", updateMask)
9226 return c
9227 }
9228
9229
9230
9231
9232 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9233 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9234 return c
9235 }
9236
9237
9238
9239
9240 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9241 c.ctx_ = ctx
9242 return c
9243 }
9244
9245
9246
9247 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header {
9248 if c.header_ == nil {
9249 c.header_ = make(http.Header)
9250 }
9251 return c.header_
9252 }
9253
9254 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) {
9255 reqHeaders := make(http.Header)
9256 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9257 for k, v := range c.header_ {
9258 reqHeaders[k] = v
9259 }
9260 reqHeaders.Set("User-Agent", c.s.userAgent())
9261 var body io.Reader = nil
9262 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
9263 if err != nil {
9264 return nil, err
9265 }
9266 reqHeaders.Set("Content-Type", "application/json")
9267 c.urlParams_.Set("alt", alt)
9268 c.urlParams_.Set("prettyPrint", "false")
9269 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
9270 urls += "?" + c.urlParams_.Encode()
9271 req, err := http.NewRequest("PATCH", urls, body)
9272 if err != nil {
9273 return nil, err
9274 }
9275 req.Header = reqHeaders
9276 googleapi.Expand(req.URL, map[string]string{
9277 "name": c.name,
9278 })
9279 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9280 }
9281
9282
9283
9284
9285
9286
9287
9288
9289 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
9290 gensupport.SetOptions(c.urlParams_, opts...)
9291 res, err := c.doRequest("json")
9292 if res != nil && res.StatusCode == http.StatusNotModified {
9293 if res.Body != nil {
9294 res.Body.Close()
9295 }
9296 return nil, &googleapi.Error{
9297 Code: res.StatusCode,
9298 Header: res.Header,
9299 }
9300 }
9301 if err != nil {
9302 return nil, err
9303 }
9304 defer googleapi.CloseBody(res)
9305 if err := googleapi.CheckResponse(res); err != nil {
9306 return nil, err
9307 }
9308 ret := &DicomStore{
9309 ServerResponse: googleapi.ServerResponse{
9310 Header: res.Header,
9311 HTTPStatusCode: res.StatusCode,
9312 },
9313 }
9314 target := &ret
9315 if err := gensupport.DecodeResponse(target, res); err != nil {
9316 return nil, err
9317 }
9318 return ret, nil
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354 }
9355
9356
9357
9358 type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct {
9359 s *Service
9360 resource string
9361 setiampolicyrequest *SetIamPolicyRequest
9362 urlParams_ gensupport.URLParams
9363 ctx_ context.Context
9364 header_ http.Header
9365 }
9366
9367
9368
9369
9370 func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
9371 c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9372 c.resource = resource
9373 c.setiampolicyrequest = setiampolicyrequest
9374 return c
9375 }
9376
9377
9378
9379
9380 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
9381 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9382 return c
9383 }
9384
9385
9386
9387
9388 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
9389 c.ctx_ = ctx
9390 return c
9391 }
9392
9393
9394
9395 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header {
9396 if c.header_ == nil {
9397 c.header_ = make(http.Header)
9398 }
9399 return c.header_
9400 }
9401
9402 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
9403 reqHeaders := make(http.Header)
9404 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9405 for k, v := range c.header_ {
9406 reqHeaders[k] = v
9407 }
9408 reqHeaders.Set("User-Agent", c.s.userAgent())
9409 var body io.Reader = nil
9410 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
9411 if err != nil {
9412 return nil, err
9413 }
9414 reqHeaders.Set("Content-Type", "application/json")
9415 c.urlParams_.Set("alt", alt)
9416 c.urlParams_.Set("prettyPrint", "false")
9417 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
9418 urls += "?" + c.urlParams_.Encode()
9419 req, err := http.NewRequest("POST", urls, body)
9420 if err != nil {
9421 return nil, err
9422 }
9423 req.Header = reqHeaders
9424 googleapi.Expand(req.URL, map[string]string{
9425 "resource": c.resource,
9426 })
9427 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9428 }
9429
9430
9431
9432
9433
9434
9435
9436
9437 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
9438 gensupport.SetOptions(c.urlParams_, opts...)
9439 res, err := c.doRequest("json")
9440 if res != nil && res.StatusCode == http.StatusNotModified {
9441 if res.Body != nil {
9442 res.Body.Close()
9443 }
9444 return nil, &googleapi.Error{
9445 Code: res.StatusCode,
9446 Header: res.Header,
9447 }
9448 }
9449 if err != nil {
9450 return nil, err
9451 }
9452 defer googleapi.CloseBody(res)
9453 if err := googleapi.CheckResponse(res); err != nil {
9454 return nil, err
9455 }
9456 ret := &Policy{
9457 ServerResponse: googleapi.ServerResponse{
9458 Header: res.Header,
9459 HTTPStatusCode: res.StatusCode,
9460 },
9461 }
9462 target := &ret
9463 if err := gensupport.DecodeResponse(target, res); err != nil {
9464 return nil, err
9465 }
9466 return ret, nil
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496 }
9497
9498
9499
9500 type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct {
9501 s *Service
9502 resource string
9503 testiampermissionsrequest *TestIamPermissionsRequest
9504 urlParams_ gensupport.URLParams
9505 ctx_ context.Context
9506 header_ http.Header
9507 }
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520 func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
9521 c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9522 c.resource = resource
9523 c.testiampermissionsrequest = testiampermissionsrequest
9524 return c
9525 }
9526
9527
9528
9529
9530 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
9531 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9532 return c
9533 }
9534
9535
9536
9537
9538 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
9539 c.ctx_ = ctx
9540 return c
9541 }
9542
9543
9544
9545 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header {
9546 if c.header_ == nil {
9547 c.header_ = make(http.Header)
9548 }
9549 return c.header_
9550 }
9551
9552 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
9553 reqHeaders := make(http.Header)
9554 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9555 for k, v := range c.header_ {
9556 reqHeaders[k] = v
9557 }
9558 reqHeaders.Set("User-Agent", c.s.userAgent())
9559 var body io.Reader = nil
9560 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
9561 if err != nil {
9562 return nil, err
9563 }
9564 reqHeaders.Set("Content-Type", "application/json")
9565 c.urlParams_.Set("alt", alt)
9566 c.urlParams_.Set("prettyPrint", "false")
9567 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
9568 urls += "?" + c.urlParams_.Encode()
9569 req, err := http.NewRequest("POST", urls, body)
9570 if err != nil {
9571 return nil, err
9572 }
9573 req.Header = reqHeaders
9574 googleapi.Expand(req.URL, map[string]string{
9575 "resource": c.resource,
9576 })
9577 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9578 }
9579
9580
9581
9582
9583
9584
9585
9586
9587 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
9588 gensupport.SetOptions(c.urlParams_, opts...)
9589 res, err := c.doRequest("json")
9590 if res != nil && res.StatusCode == http.StatusNotModified {
9591 if res.Body != nil {
9592 res.Body.Close()
9593 }
9594 return nil, &googleapi.Error{
9595 Code: res.StatusCode,
9596 Header: res.Header,
9597 }
9598 }
9599 if err != nil {
9600 return nil, err
9601 }
9602 defer googleapi.CloseBody(res)
9603 if err := googleapi.CheckResponse(res); err != nil {
9604 return nil, err
9605 }
9606 ret := &TestIamPermissionsResponse{
9607 ServerResponse: googleapi.ServerResponse{
9608 Header: res.Header,
9609 HTTPStatusCode: res.StatusCode,
9610 },
9611 }
9612 target := &ret
9613 if err := gensupport.DecodeResponse(target, res); err != nil {
9614 return nil, err
9615 }
9616 return ret, nil
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646 }
9647
9648
9649
9650 type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall struct {
9651 s *Service
9652 parent string
9653 dicomWebPath string
9654 urlParams_ gensupport.URLParams
9655 ifNoneMatch_ string
9656 ctx_ context.Context
9657 header_ http.Header
9658 }
9659
9660
9661
9662
9663
9664
9665 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9666 c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9667 c.parent = parent
9668 c.dicomWebPath = dicomWebPath
9669 return c
9670 }
9671
9672
9673
9674
9675 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9677 return c
9678 }
9679
9680
9681
9682
9683
9684
9685 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9686 c.ifNoneMatch_ = entityTag
9687 return c
9688 }
9689
9690
9691
9692
9693 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9694 c.ctx_ = ctx
9695 return c
9696 }
9697
9698
9699
9700 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Header() http.Header {
9701 if c.header_ == nil {
9702 c.header_ = make(http.Header)
9703 }
9704 return c.header_
9705 }
9706
9707 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
9708 reqHeaders := make(http.Header)
9709 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9710 for k, v := range c.header_ {
9711 reqHeaders[k] = v
9712 }
9713 reqHeaders.Set("User-Agent", c.s.userAgent())
9714 if c.ifNoneMatch_ != "" {
9715 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9716 }
9717 var body io.Reader = nil
9718 c.urlParams_.Set("alt", alt)
9719 c.urlParams_.Set("prettyPrint", "false")
9720 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
9721 urls += "?" + c.urlParams_.Encode()
9722 req, err := http.NewRequest("GET", urls, body)
9723 if err != nil {
9724 return nil, err
9725 }
9726 req.Header = reqHeaders
9727 googleapi.Expand(req.URL, map[string]string{
9728 "parent": c.parent,
9729 "dicomWebPath": c.dicomWebPath,
9730 })
9731 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9732 }
9733
9734
9735 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
9736 gensupport.SetOptions(c.urlParams_, opts...)
9737 return c.doRequest("")
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772 }
9773
9774
9775
9776 type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall struct {
9777 s *Service
9778 parent string
9779 dicomWebPath string
9780 urlParams_ gensupport.URLParams
9781 ifNoneMatch_ string
9782 ctx_ context.Context
9783 header_ http.Header
9784 }
9785
9786
9787
9788
9789
9790 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9791 c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9792 c.parent = parent
9793 c.dicomWebPath = dicomWebPath
9794 return c
9795 }
9796
9797
9798
9799
9800 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9801 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9802 return c
9803 }
9804
9805
9806
9807
9808
9809
9810 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9811 c.ifNoneMatch_ = entityTag
9812 return c
9813 }
9814
9815
9816
9817
9818 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9819 c.ctx_ = ctx
9820 return c
9821 }
9822
9823
9824
9825 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Header() http.Header {
9826 if c.header_ == nil {
9827 c.header_ = make(http.Header)
9828 }
9829 return c.header_
9830 }
9831
9832 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
9833 reqHeaders := make(http.Header)
9834 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9835 for k, v := range c.header_ {
9836 reqHeaders[k] = v
9837 }
9838 reqHeaders.Set("User-Agent", c.s.userAgent())
9839 if c.ifNoneMatch_ != "" {
9840 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9841 }
9842 var body io.Reader = nil
9843 c.urlParams_.Set("alt", alt)
9844 c.urlParams_.Set("prettyPrint", "false")
9845 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
9846 urls += "?" + c.urlParams_.Encode()
9847 req, err := http.NewRequest("GET", urls, body)
9848 if err != nil {
9849 return nil, err
9850 }
9851 req.Header = reqHeaders
9852 googleapi.Expand(req.URL, map[string]string{
9853 "parent": c.parent,
9854 "dicomWebPath": c.dicomWebPath,
9855 })
9856 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9857 }
9858
9859
9860 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
9861 gensupport.SetOptions(c.urlParams_, opts...)
9862 return c.doRequest("")
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897 }
9898
9899
9900
9901 type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall struct {
9902 s *Service
9903 parent string
9904 dicomWebPath string
9905 urlParams_ gensupport.URLParams
9906 ifNoneMatch_ string
9907 ctx_ context.Context
9908 header_ http.Header
9909 }
9910
9911
9912
9913
9914
9915
9916 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForStudies(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9917 c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9918 c.parent = parent
9919 c.dicomWebPath = dicomWebPath
9920 return c
9921 }
9922
9923
9924
9925
9926 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9927 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9928 return c
9929 }
9930
9931
9932
9933
9934
9935
9936 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9937 c.ifNoneMatch_ = entityTag
9938 return c
9939 }
9940
9941
9942
9943
9944 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9945 c.ctx_ = ctx
9946 return c
9947 }
9948
9949
9950
9951 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Header() http.Header {
9952 if c.header_ == nil {
9953 c.header_ = make(http.Header)
9954 }
9955 return c.header_
9956 }
9957
9958 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) doRequest(alt string) (*http.Response, error) {
9959 reqHeaders := make(http.Header)
9960 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9961 for k, v := range c.header_ {
9962 reqHeaders[k] = v
9963 }
9964 reqHeaders.Set("User-Agent", c.s.userAgent())
9965 if c.ifNoneMatch_ != "" {
9966 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9967 }
9968 var body io.Reader = nil
9969 c.urlParams_.Set("alt", alt)
9970 c.urlParams_.Set("prettyPrint", "false")
9971 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
9972 urls += "?" + c.urlParams_.Encode()
9973 req, err := http.NewRequest("GET", urls, body)
9974 if err != nil {
9975 return nil, err
9976 }
9977 req.Header = reqHeaders
9978 googleapi.Expand(req.URL, map[string]string{
9979 "parent": c.parent,
9980 "dicomWebPath": c.dicomWebPath,
9981 })
9982 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9983 }
9984
9985
9986 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
9987 gensupport.SetOptions(c.urlParams_, opts...)
9988 return c.doRequest("")
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023 }
10024
10025
10026
10027 type ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall struct {
10028 s *Service
10029 parent string
10030 dicomWebPath string
10031 body_ io.Reader
10032 urlParams_ gensupport.URLParams
10033 ctx_ context.Context
10034 header_ http.Header
10035 }
10036
10037
10038
10039
10040
10041
10042
10043 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
10044 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10045 c.parent = parent
10046 c.dicomWebPath = dicomWebPath
10047 c.body_ = body_
10048 return c
10049 }
10050
10051
10052
10053
10054 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
10055 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10056 return c
10057 }
10058
10059
10060
10061
10062 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
10063 c.ctx_ = ctx
10064 return c
10065 }
10066
10067
10068
10069 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Header() http.Header {
10070 if c.header_ == nil {
10071 c.header_ = make(http.Header)
10072 }
10073 return c.header_
10074 }
10075
10076 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
10077 reqHeaders := make(http.Header)
10078 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10079 for k, v := range c.header_ {
10080 reqHeaders[k] = v
10081 }
10082 reqHeaders.Set("User-Agent", c.s.userAgent())
10083 var body io.Reader = nil
10084 body = c.body_
10085 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10086 urls += "?" + c.urlParams_.Encode()
10087 req, err := http.NewRequest("POST", urls, body)
10088 if err != nil {
10089 return nil, err
10090 }
10091 req.Header = reqHeaders
10092 googleapi.Expand(req.URL, map[string]string{
10093 "parent": c.parent,
10094 "dicomWebPath": c.dicomWebPath,
10095 })
10096 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10097 }
10098
10099
10100 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10101 gensupport.SetOptions(c.urlParams_, opts...)
10102 return c.doRequest("")
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 }
10141
10142
10143
10144 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall struct {
10145 s *Service
10146 parent string
10147 dicomWebPath string
10148 urlParams_ gensupport.URLParams
10149 ctx_ context.Context
10150 header_ http.Header
10151 }
10152
10153
10154
10155
10156 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
10157 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10158 c.parent = parent
10159 c.dicomWebPath = dicomWebPath
10160 return c
10161 }
10162
10163
10164
10165
10166 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
10167 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10168 return c
10169 }
10170
10171
10172
10173
10174 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
10175 c.ctx_ = ctx
10176 return c
10177 }
10178
10179
10180
10181 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Header() http.Header {
10182 if c.header_ == nil {
10183 c.header_ = make(http.Header)
10184 }
10185 return c.header_
10186 }
10187
10188 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) doRequest(alt string) (*http.Response, error) {
10189 reqHeaders := make(http.Header)
10190 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10191 for k, v := range c.header_ {
10192 reqHeaders[k] = v
10193 }
10194 reqHeaders.Set("User-Agent", c.s.userAgent())
10195 var body io.Reader = nil
10196 c.urlParams_.Set("alt", alt)
10197 c.urlParams_.Set("prettyPrint", "false")
10198 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10199 urls += "?" + c.urlParams_.Encode()
10200 req, err := http.NewRequest("DELETE", urls, body)
10201 if err != nil {
10202 return nil, err
10203 }
10204 req.Header = reqHeaders
10205 googleapi.Expand(req.URL, map[string]string{
10206 "parent": c.parent,
10207 "dicomWebPath": c.dicomWebPath,
10208 })
10209 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10210 }
10211
10212
10213
10214
10215
10216
10217
10218
10219 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10220 gensupport.SetOptions(c.urlParams_, opts...)
10221 res, err := c.doRequest("json")
10222 if res != nil && res.StatusCode == http.StatusNotModified {
10223 if res.Body != nil {
10224 res.Body.Close()
10225 }
10226 return nil, &googleapi.Error{
10227 Code: res.StatusCode,
10228 Header: res.Header,
10229 }
10230 }
10231 if err != nil {
10232 return nil, err
10233 }
10234 defer googleapi.CloseBody(res)
10235 if err := googleapi.CheckResponse(res); err != nil {
10236 return nil, err
10237 }
10238 ret := &Empty{
10239 ServerResponse: googleapi.ServerResponse{
10240 Header: res.Header,
10241 HTTPStatusCode: res.StatusCode,
10242 },
10243 }
10244 target := &ret
10245 if err := gensupport.DecodeResponse(target, res); err != nil {
10246 return nil, err
10247 }
10248 return ret, nil
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283 }
10284
10285
10286
10287 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall struct {
10288 s *Service
10289 parent string
10290 dicomWebPath string
10291 urlParams_ gensupport.URLParams
10292 ifNoneMatch_ string
10293 ctx_ context.Context
10294 header_ http.Header
10295 }
10296
10297
10298
10299
10300
10301
10302
10303 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10304 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10305 c.parent = parent
10306 c.dicomWebPath = dicomWebPath
10307 return c
10308 }
10309
10310
10311
10312
10313 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10314 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10315 return c
10316 }
10317
10318
10319
10320
10321
10322
10323 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10324 c.ifNoneMatch_ = entityTag
10325 return c
10326 }
10327
10328
10329
10330
10331 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10332 c.ctx_ = ctx
10333 return c
10334 }
10335
10336
10337
10338 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Header() http.Header {
10339 if c.header_ == nil {
10340 c.header_ = make(http.Header)
10341 }
10342 return c.header_
10343 }
10344
10345 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) doRequest(alt string) (*http.Response, error) {
10346 reqHeaders := make(http.Header)
10347 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10348 for k, v := range c.header_ {
10349 reqHeaders[k] = v
10350 }
10351 reqHeaders.Set("User-Agent", c.s.userAgent())
10352 if c.ifNoneMatch_ != "" {
10353 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10354 }
10355 var body io.Reader = nil
10356 c.urlParams_.Set("alt", alt)
10357 c.urlParams_.Set("prettyPrint", "false")
10358 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10359 urls += "?" + c.urlParams_.Encode()
10360 req, err := http.NewRequest("GET", urls, body)
10361 if err != nil {
10362 return nil, err
10363 }
10364 req.Header = reqHeaders
10365 googleapi.Expand(req.URL, map[string]string{
10366 "parent": c.parent,
10367 "dicomWebPath": c.dicomWebPath,
10368 })
10369 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10370 }
10371
10372
10373 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10374 gensupport.SetOptions(c.urlParams_, opts...)
10375 return c.doRequest("")
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 }
10411
10412
10413
10414 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall struct {
10415 s *Service
10416 parent string
10417 dicomWebPath string
10418 urlParams_ gensupport.URLParams
10419 ifNoneMatch_ string
10420 ctx_ context.Context
10421 header_ http.Header
10422 }
10423
10424
10425
10426
10427
10428
10429 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) RetrieveStudy(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10430 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10431 c.parent = parent
10432 c.dicomWebPath = dicomWebPath
10433 return c
10434 }
10435
10436
10437
10438
10439 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10440 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10441 return c
10442 }
10443
10444
10445
10446
10447
10448
10449 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10450 c.ifNoneMatch_ = entityTag
10451 return c
10452 }
10453
10454
10455
10456
10457 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10458 c.ctx_ = ctx
10459 return c
10460 }
10461
10462
10463
10464 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Header() http.Header {
10465 if c.header_ == nil {
10466 c.header_ = make(http.Header)
10467 }
10468 return c.header_
10469 }
10470
10471 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) {
10472 reqHeaders := make(http.Header)
10473 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10474 for k, v := range c.header_ {
10475 reqHeaders[k] = v
10476 }
10477 reqHeaders.Set("User-Agent", c.s.userAgent())
10478 if c.ifNoneMatch_ != "" {
10479 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10480 }
10481 var body io.Reader = nil
10482 c.urlParams_.Set("alt", alt)
10483 c.urlParams_.Set("prettyPrint", "false")
10484 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10485 urls += "?" + c.urlParams_.Encode()
10486 req, err := http.NewRequest("GET", urls, body)
10487 if err != nil {
10488 return nil, err
10489 }
10490 req.Header = reqHeaders
10491 googleapi.Expand(req.URL, map[string]string{
10492 "parent": c.parent,
10493 "dicomWebPath": c.dicomWebPath,
10494 })
10495 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10496 }
10497
10498
10499 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10500 gensupport.SetOptions(c.urlParams_, opts...)
10501 return c.doRequest("")
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536 }
10537
10538
10539
10540 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall struct {
10541 s *Service
10542 parent string
10543 dicomWebPath string
10544 urlParams_ gensupport.URLParams
10545 ifNoneMatch_ string
10546 ctx_ context.Context
10547 header_ http.Header
10548 }
10549
10550
10551
10552
10553
10554
10555 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10556 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10557 c.parent = parent
10558 c.dicomWebPath = dicomWebPath
10559 return c
10560 }
10561
10562
10563
10564
10565 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10566 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10567 return c
10568 }
10569
10570
10571
10572
10573
10574
10575 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10576 c.ifNoneMatch_ = entityTag
10577 return c
10578 }
10579
10580
10581
10582
10583 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10584 c.ctx_ = ctx
10585 return c
10586 }
10587
10588
10589
10590 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Header() http.Header {
10591 if c.header_ == nil {
10592 c.header_ = make(http.Header)
10593 }
10594 return c.header_
10595 }
10596
10597 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
10598 reqHeaders := make(http.Header)
10599 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10600 for k, v := range c.header_ {
10601 reqHeaders[k] = v
10602 }
10603 reqHeaders.Set("User-Agent", c.s.userAgent())
10604 if c.ifNoneMatch_ != "" {
10605 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10606 }
10607 var body io.Reader = nil
10608 c.urlParams_.Set("alt", alt)
10609 c.urlParams_.Set("prettyPrint", "false")
10610 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10611 urls += "?" + c.urlParams_.Encode()
10612 req, err := http.NewRequest("GET", urls, body)
10613 if err != nil {
10614 return nil, err
10615 }
10616 req.Header = reqHeaders
10617 googleapi.Expand(req.URL, map[string]string{
10618 "parent": c.parent,
10619 "dicomWebPath": c.dicomWebPath,
10620 })
10621 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10622 }
10623
10624
10625 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10626 gensupport.SetOptions(c.urlParams_, opts...)
10627 return c.doRequest("")
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662 }
10663
10664
10665
10666 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall struct {
10667 s *Service
10668 parent string
10669 dicomWebPath string
10670 urlParams_ gensupport.URLParams
10671 ifNoneMatch_ string
10672 ctx_ context.Context
10673 header_ http.Header
10674 }
10675
10676
10677
10678
10679
10680 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10681 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10682 c.parent = parent
10683 c.dicomWebPath = dicomWebPath
10684 return c
10685 }
10686
10687
10688
10689
10690 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10691 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10692 return c
10693 }
10694
10695
10696
10697
10698
10699
10700 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10701 c.ifNoneMatch_ = entityTag
10702 return c
10703 }
10704
10705
10706
10707
10708 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10709 c.ctx_ = ctx
10710 return c
10711 }
10712
10713
10714
10715 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Header() http.Header {
10716 if c.header_ == nil {
10717 c.header_ = make(http.Header)
10718 }
10719 return c.header_
10720 }
10721
10722 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
10723 reqHeaders := make(http.Header)
10724 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10725 for k, v := range c.header_ {
10726 reqHeaders[k] = v
10727 }
10728 reqHeaders.Set("User-Agent", c.s.userAgent())
10729 if c.ifNoneMatch_ != "" {
10730 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10731 }
10732 var body io.Reader = nil
10733 c.urlParams_.Set("alt", alt)
10734 c.urlParams_.Set("prettyPrint", "false")
10735 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10736 urls += "?" + c.urlParams_.Encode()
10737 req, err := http.NewRequest("GET", urls, body)
10738 if err != nil {
10739 return nil, err
10740 }
10741 req.Header = reqHeaders
10742 googleapi.Expand(req.URL, map[string]string{
10743 "parent": c.parent,
10744 "dicomWebPath": c.dicomWebPath,
10745 })
10746 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10747 }
10748
10749
10750 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10751 gensupport.SetOptions(c.urlParams_, opts...)
10752 return c.doRequest("")
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787 }
10788
10789
10790
10791 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall struct {
10792 s *Service
10793 parent string
10794 dicomWebPath string
10795 body_ io.Reader
10796 urlParams_ gensupport.URLParams
10797 ctx_ context.Context
10798 header_ http.Header
10799 }
10800
10801
10802
10803
10804
10805
10806
10807 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
10808 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10809 c.parent = parent
10810 c.dicomWebPath = dicomWebPath
10811 c.body_ = body_
10812 return c
10813 }
10814
10815
10816
10817
10818 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
10819 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10820 return c
10821 }
10822
10823
10824
10825
10826 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
10827 c.ctx_ = ctx
10828 return c
10829 }
10830
10831
10832
10833 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Header() http.Header {
10834 if c.header_ == nil {
10835 c.header_ = make(http.Header)
10836 }
10837 return c.header_
10838 }
10839
10840 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
10841 reqHeaders := make(http.Header)
10842 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10843 for k, v := range c.header_ {
10844 reqHeaders[k] = v
10845 }
10846 reqHeaders.Set("User-Agent", c.s.userAgent())
10847 var body io.Reader = nil
10848 body = c.body_
10849 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10850 urls += "?" + c.urlParams_.Encode()
10851 req, err := http.NewRequest("POST", urls, body)
10852 if err != nil {
10853 return nil, err
10854 }
10855 req.Header = reqHeaders
10856 googleapi.Expand(req.URL, map[string]string{
10857 "parent": c.parent,
10858 "dicomWebPath": c.dicomWebPath,
10859 })
10860 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10861 }
10862
10863
10864 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10865 gensupport.SetOptions(c.urlParams_, opts...)
10866 return c.doRequest("")
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904 }
10905
10906
10907
10908 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall struct {
10909 s *Service
10910 parent string
10911 dicomWebPath string
10912 urlParams_ gensupport.URLParams
10913 ctx_ context.Context
10914 header_ http.Header
10915 }
10916
10917
10918
10919
10920
10921
10922 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
10923 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10924 c.parent = parent
10925 c.dicomWebPath = dicomWebPath
10926 return c
10927 }
10928
10929
10930
10931
10932 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
10933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10934 return c
10935 }
10936
10937
10938
10939
10940 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
10941 c.ctx_ = ctx
10942 return c
10943 }
10944
10945
10946
10947 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Header() http.Header {
10948 if c.header_ == nil {
10949 c.header_ = make(http.Header)
10950 }
10951 return c.header_
10952 }
10953
10954 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) {
10955 reqHeaders := make(http.Header)
10956 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10957 for k, v := range c.header_ {
10958 reqHeaders[k] = v
10959 }
10960 reqHeaders.Set("User-Agent", c.s.userAgent())
10961 var body io.Reader = nil
10962 c.urlParams_.Set("alt", alt)
10963 c.urlParams_.Set("prettyPrint", "false")
10964 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10965 urls += "?" + c.urlParams_.Encode()
10966 req, err := http.NewRequest("DELETE", urls, body)
10967 if err != nil {
10968 return nil, err
10969 }
10970 req.Header = reqHeaders
10971 googleapi.Expand(req.URL, map[string]string{
10972 "parent": c.parent,
10973 "dicomWebPath": c.dicomWebPath,
10974 })
10975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10976 }
10977
10978
10979
10980
10981
10982
10983
10984
10985 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10986 gensupport.SetOptions(c.urlParams_, opts...)
10987 res, err := c.doRequest("json")
10988 if res != nil && res.StatusCode == http.StatusNotModified {
10989 if res.Body != nil {
10990 res.Body.Close()
10991 }
10992 return nil, &googleapi.Error{
10993 Code: res.StatusCode,
10994 Header: res.Header,
10995 }
10996 }
10997 if err != nil {
10998 return nil, err
10999 }
11000 defer googleapi.CloseBody(res)
11001 if err := googleapi.CheckResponse(res); err != nil {
11002 return nil, err
11003 }
11004 ret := &Empty{
11005 ServerResponse: googleapi.ServerResponse{
11006 Header: res.Header,
11007 HTTPStatusCode: res.StatusCode,
11008 },
11009 }
11010 target := &ret
11011 if err := gensupport.DecodeResponse(target, res); err != nil {
11012 return nil, err
11013 }
11014 return ret, nil
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049 }
11050
11051
11052
11053 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall struct {
11054 s *Service
11055 parent string
11056 dicomWebPath string
11057 urlParams_ gensupport.URLParams
11058 ifNoneMatch_ string
11059 ctx_ context.Context
11060 header_ http.Header
11061 }
11062
11063
11064
11065
11066
11067
11068
11069 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11070 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11071 c.parent = parent
11072 c.dicomWebPath = dicomWebPath
11073 return c
11074 }
11075
11076
11077
11078
11079 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11080 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11081 return c
11082 }
11083
11084
11085
11086
11087
11088
11089 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11090 c.ifNoneMatch_ = entityTag
11091 return c
11092 }
11093
11094
11095
11096
11097 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11098 c.ctx_ = ctx
11099 return c
11100 }
11101
11102
11103
11104 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Header() http.Header {
11105 if c.header_ == nil {
11106 c.header_ = make(http.Header)
11107 }
11108 return c.header_
11109 }
11110
11111 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) doRequest(alt string) (*http.Response, error) {
11112 reqHeaders := make(http.Header)
11113 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11114 for k, v := range c.header_ {
11115 reqHeaders[k] = v
11116 }
11117 reqHeaders.Set("User-Agent", c.s.userAgent())
11118 if c.ifNoneMatch_ != "" {
11119 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11120 }
11121 var body io.Reader = nil
11122 c.urlParams_.Set("alt", alt)
11123 c.urlParams_.Set("prettyPrint", "false")
11124 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11125 urls += "?" + c.urlParams_.Encode()
11126 req, err := http.NewRequest("GET", urls, body)
11127 if err != nil {
11128 return nil, err
11129 }
11130 req.Header = reqHeaders
11131 googleapi.Expand(req.URL, map[string]string{
11132 "parent": c.parent,
11133 "dicomWebPath": c.dicomWebPath,
11134 })
11135 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11136 }
11137
11138
11139 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11140 gensupport.SetOptions(c.urlParams_, opts...)
11141 return c.doRequest("")
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176 }
11177
11178
11179
11180 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall struct {
11181 s *Service
11182 parent string
11183 dicomWebPath string
11184 urlParams_ gensupport.URLParams
11185 ifNoneMatch_ string
11186 ctx_ context.Context
11187 header_ http.Header
11188 }
11189
11190
11191
11192
11193
11194
11195 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) RetrieveSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11196 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11197 c.parent = parent
11198 c.dicomWebPath = dicomWebPath
11199 return c
11200 }
11201
11202
11203
11204
11205 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11206 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11207 return c
11208 }
11209
11210
11211
11212
11213
11214
11215 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11216 c.ifNoneMatch_ = entityTag
11217 return c
11218 }
11219
11220
11221
11222
11223 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11224 c.ctx_ = ctx
11225 return c
11226 }
11227
11228
11229
11230 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Header() http.Header {
11231 if c.header_ == nil {
11232 c.header_ = make(http.Header)
11233 }
11234 return c.header_
11235 }
11236
11237 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) {
11238 reqHeaders := make(http.Header)
11239 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11240 for k, v := range c.header_ {
11241 reqHeaders[k] = v
11242 }
11243 reqHeaders.Set("User-Agent", c.s.userAgent())
11244 if c.ifNoneMatch_ != "" {
11245 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11246 }
11247 var body io.Reader = nil
11248 c.urlParams_.Set("alt", alt)
11249 c.urlParams_.Set("prettyPrint", "false")
11250 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11251 urls += "?" + c.urlParams_.Encode()
11252 req, err := http.NewRequest("GET", urls, body)
11253 if err != nil {
11254 return nil, err
11255 }
11256 req.Header = reqHeaders
11257 googleapi.Expand(req.URL, map[string]string{
11258 "parent": c.parent,
11259 "dicomWebPath": c.dicomWebPath,
11260 })
11261 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11262 }
11263
11264
11265 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11266 gensupport.SetOptions(c.urlParams_, opts...)
11267 return c.doRequest("")
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302 }
11303
11304
11305
11306 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall struct {
11307 s *Service
11308 parent string
11309 dicomWebPath string
11310 urlParams_ gensupport.URLParams
11311 ifNoneMatch_ string
11312 ctx_ context.Context
11313 header_ http.Header
11314 }
11315
11316
11317
11318
11319
11320
11321 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11322 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11323 c.parent = parent
11324 c.dicomWebPath = dicomWebPath
11325 return c
11326 }
11327
11328
11329
11330
11331 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11332 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11333 return c
11334 }
11335
11336
11337
11338
11339
11340
11341 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11342 c.ifNoneMatch_ = entityTag
11343 return c
11344 }
11345
11346
11347
11348
11349 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11350 c.ctx_ = ctx
11351 return c
11352 }
11353
11354
11355
11356 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Header() http.Header {
11357 if c.header_ == nil {
11358 c.header_ = make(http.Header)
11359 }
11360 return c.header_
11361 }
11362
11363 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
11364 reqHeaders := make(http.Header)
11365 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11366 for k, v := range c.header_ {
11367 reqHeaders[k] = v
11368 }
11369 reqHeaders.Set("User-Agent", c.s.userAgent())
11370 if c.ifNoneMatch_ != "" {
11371 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11372 }
11373 var body io.Reader = nil
11374 c.urlParams_.Set("alt", alt)
11375 c.urlParams_.Set("prettyPrint", "false")
11376 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11377 urls += "?" + c.urlParams_.Encode()
11378 req, err := http.NewRequest("GET", urls, body)
11379 if err != nil {
11380 return nil, err
11381 }
11382 req.Header = reqHeaders
11383 googleapi.Expand(req.URL, map[string]string{
11384 "parent": c.parent,
11385 "dicomWebPath": c.dicomWebPath,
11386 })
11387 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11388 }
11389
11390
11391 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11392 gensupport.SetOptions(c.urlParams_, opts...)
11393 return c.doRequest("")
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428 }
11429
11430
11431
11432 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall struct {
11433 s *Service
11434 parent string
11435 dicomWebPath string
11436 urlParams_ gensupport.URLParams
11437 ctx_ context.Context
11438 header_ http.Header
11439 }
11440
11441
11442
11443
11444
11445
11446 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
11447 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11448 c.parent = parent
11449 c.dicomWebPath = dicomWebPath
11450 return c
11451 }
11452
11453
11454
11455
11456 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
11457 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11458 return c
11459 }
11460
11461
11462
11463
11464 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
11465 c.ctx_ = ctx
11466 return c
11467 }
11468
11469
11470
11471 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Header() http.Header {
11472 if c.header_ == nil {
11473 c.header_ = make(http.Header)
11474 }
11475 return c.header_
11476 }
11477
11478 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
11479 reqHeaders := make(http.Header)
11480 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11481 for k, v := range c.header_ {
11482 reqHeaders[k] = v
11483 }
11484 reqHeaders.Set("User-Agent", c.s.userAgent())
11485 var body io.Reader = nil
11486 c.urlParams_.Set("alt", alt)
11487 c.urlParams_.Set("prettyPrint", "false")
11488 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11489 urls += "?" + c.urlParams_.Encode()
11490 req, err := http.NewRequest("DELETE", urls, body)
11491 if err != nil {
11492 return nil, err
11493 }
11494 req.Header = reqHeaders
11495 googleapi.Expand(req.URL, map[string]string{
11496 "parent": c.parent,
11497 "dicomWebPath": c.dicomWebPath,
11498 })
11499 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11500 }
11501
11502
11503
11504
11505
11506
11507
11508
11509 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
11510 gensupport.SetOptions(c.urlParams_, opts...)
11511 res, err := c.doRequest("json")
11512 if res != nil && res.StatusCode == http.StatusNotModified {
11513 if res.Body != nil {
11514 res.Body.Close()
11515 }
11516 return nil, &googleapi.Error{
11517 Code: res.StatusCode,
11518 Header: res.Header,
11519 }
11520 }
11521 if err != nil {
11522 return nil, err
11523 }
11524 defer googleapi.CloseBody(res)
11525 if err := googleapi.CheckResponse(res); err != nil {
11526 return nil, err
11527 }
11528 ret := &Empty{
11529 ServerResponse: googleapi.ServerResponse{
11530 Header: res.Header,
11531 HTTPStatusCode: res.StatusCode,
11532 },
11533 }
11534 target := &ret
11535 if err := gensupport.DecodeResponse(target, res); err != nil {
11536 return nil, err
11537 }
11538 return ret, nil
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573 }
11574
11575
11576
11577 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall struct {
11578 s *Service
11579 parent string
11580 dicomWebPath string
11581 urlParams_ gensupport.URLParams
11582 ifNoneMatch_ string
11583 ctx_ context.Context
11584 header_ http.Header
11585 }
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11596 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11597 c.parent = parent
11598 c.dicomWebPath = dicomWebPath
11599 return c
11600 }
11601
11602
11603
11604
11605 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11606 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11607 return c
11608 }
11609
11610
11611
11612
11613
11614
11615 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11616 c.ifNoneMatch_ = entityTag
11617 return c
11618 }
11619
11620
11621
11622
11623 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11624 c.ctx_ = ctx
11625 return c
11626 }
11627
11628
11629
11630 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Header() http.Header {
11631 if c.header_ == nil {
11632 c.header_ = make(http.Header)
11633 }
11634 return c.header_
11635 }
11636
11637 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) doRequest(alt string) (*http.Response, error) {
11638 reqHeaders := make(http.Header)
11639 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11640 for k, v := range c.header_ {
11641 reqHeaders[k] = v
11642 }
11643 reqHeaders.Set("User-Agent", c.s.userAgent())
11644 if c.ifNoneMatch_ != "" {
11645 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11646 }
11647 var body io.Reader = nil
11648 c.urlParams_.Set("alt", alt)
11649 c.urlParams_.Set("prettyPrint", "false")
11650 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11651 urls += "?" + c.urlParams_.Encode()
11652 req, err := http.NewRequest("GET", urls, body)
11653 if err != nil {
11654 return nil, err
11655 }
11656 req.Header = reqHeaders
11657 googleapi.Expand(req.URL, map[string]string{
11658 "parent": c.parent,
11659 "dicomWebPath": c.dicomWebPath,
11660 })
11661 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11662 }
11663
11664
11665 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11666 gensupport.SetOptions(c.urlParams_, opts...)
11667 return c.doRequest("")
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702 }
11703
11704
11705
11706 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall struct {
11707 s *Service
11708 parent string
11709 dicomWebPath string
11710 urlParams_ gensupport.URLParams
11711 ifNoneMatch_ string
11712 ctx_ context.Context
11713 header_ http.Header
11714 }
11715
11716
11717
11718
11719
11720
11721
11722 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11723 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11724 c.parent = parent
11725 c.dicomWebPath = dicomWebPath
11726 return c
11727 }
11728
11729
11730
11731
11732 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11733 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11734 return c
11735 }
11736
11737
11738
11739
11740
11741
11742 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11743 c.ifNoneMatch_ = entityTag
11744 return c
11745 }
11746
11747
11748
11749
11750 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11751 c.ctx_ = ctx
11752 return c
11753 }
11754
11755
11756
11757 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Header() http.Header {
11758 if c.header_ == nil {
11759 c.header_ = make(http.Header)
11760 }
11761 return c.header_
11762 }
11763
11764 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) doRequest(alt string) (*http.Response, error) {
11765 reqHeaders := make(http.Header)
11766 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11767 for k, v := range c.header_ {
11768 reqHeaders[k] = v
11769 }
11770 reqHeaders.Set("User-Agent", c.s.userAgent())
11771 if c.ifNoneMatch_ != "" {
11772 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11773 }
11774 var body io.Reader = nil
11775 c.urlParams_.Set("alt", alt)
11776 c.urlParams_.Set("prettyPrint", "false")
11777 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11778 urls += "?" + c.urlParams_.Encode()
11779 req, err := http.NewRequest("GET", urls, body)
11780 if err != nil {
11781 return nil, err
11782 }
11783 req.Header = reqHeaders
11784 googleapi.Expand(req.URL, map[string]string{
11785 "parent": c.parent,
11786 "dicomWebPath": c.dicomWebPath,
11787 })
11788 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11789 }
11790
11791
11792 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11793 gensupport.SetOptions(c.urlParams_, opts...)
11794 return c.doRequest("")
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829 }
11830
11831
11832
11833 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall struct {
11834 s *Service
11835 parent string
11836 dicomWebPath string
11837 urlParams_ gensupport.URLParams
11838 ifNoneMatch_ string
11839 ctx_ context.Context
11840 header_ http.Header
11841 }
11842
11843
11844
11845
11846
11847
11848
11849 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) RetrieveInstance(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11850 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11851 c.parent = parent
11852 c.dicomWebPath = dicomWebPath
11853 return c
11854 }
11855
11856
11857
11858
11859 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11860 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11861 return c
11862 }
11863
11864
11865
11866
11867
11868
11869 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11870 c.ifNoneMatch_ = entityTag
11871 return c
11872 }
11873
11874
11875
11876
11877 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11878 c.ctx_ = ctx
11879 return c
11880 }
11881
11882
11883
11884 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Header() http.Header {
11885 if c.header_ == nil {
11886 c.header_ = make(http.Header)
11887 }
11888 return c.header_
11889 }
11890
11891 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) {
11892 reqHeaders := make(http.Header)
11893 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11894 for k, v := range c.header_ {
11895 reqHeaders[k] = v
11896 }
11897 reqHeaders.Set("User-Agent", c.s.userAgent())
11898 if c.ifNoneMatch_ != "" {
11899 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11900 }
11901 var body io.Reader = nil
11902 c.urlParams_.Set("alt", alt)
11903 c.urlParams_.Set("prettyPrint", "false")
11904 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11905 urls += "?" + c.urlParams_.Encode()
11906 req, err := http.NewRequest("GET", urls, body)
11907 if err != nil {
11908 return nil, err
11909 }
11910 req.Header = reqHeaders
11911 googleapi.Expand(req.URL, map[string]string{
11912 "parent": c.parent,
11913 "dicomWebPath": c.dicomWebPath,
11914 })
11915 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11916 }
11917
11918
11919 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11920 gensupport.SetOptions(c.urlParams_, opts...)
11921 return c.doRequest("")
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956 }
11957
11958
11959
11960 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall struct {
11961 s *Service
11962 parent string
11963 dicomWebPath string
11964 urlParams_ gensupport.URLParams
11965 ifNoneMatch_ string
11966 ctx_ context.Context
11967 header_ http.Header
11968 }
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
11979 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11980 c.parent = parent
11981 c.dicomWebPath = dicomWebPath
11982 return c
11983 }
11984
11985
11986
11987
11988 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
11989 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11990 return c
11991 }
11992
11993
11994
11995
11996
11997
11998 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
11999 c.ifNoneMatch_ = entityTag
12000 return c
12001 }
12002
12003
12004
12005
12006 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
12007 c.ctx_ = ctx
12008 return c
12009 }
12010
12011
12012
12013 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Header() http.Header {
12014 if c.header_ == nil {
12015 c.header_ = make(http.Header)
12016 }
12017 return c.header_
12018 }
12019
12020 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) doRequest(alt string) (*http.Response, error) {
12021 reqHeaders := make(http.Header)
12022 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12023 for k, v := range c.header_ {
12024 reqHeaders[k] = v
12025 }
12026 reqHeaders.Set("User-Agent", c.s.userAgent())
12027 if c.ifNoneMatch_ != "" {
12028 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12029 }
12030 var body io.Reader = nil
12031 c.urlParams_.Set("alt", alt)
12032 c.urlParams_.Set("prettyPrint", "false")
12033 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
12034 urls += "?" + c.urlParams_.Encode()
12035 req, err := http.NewRequest("GET", urls, body)
12036 if err != nil {
12037 return nil, err
12038 }
12039 req.Header = reqHeaders
12040 googleapi.Expand(req.URL, map[string]string{
12041 "parent": c.parent,
12042 "dicomWebPath": c.dicomWebPath,
12043 })
12044 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12045 }
12046
12047
12048 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
12049 gensupport.SetOptions(c.urlParams_, opts...)
12050 return c.doRequest("")
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085 }
12086
12087
12088
12089 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall struct {
12090 s *Service
12091 parent string
12092 dicomWebPath string
12093 urlParams_ gensupport.URLParams
12094 ifNoneMatch_ string
12095 ctx_ context.Context
12096 header_ http.Header
12097 }
12098
12099
12100
12101
12102
12103
12104
12105 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) RetrieveFrames(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12106 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12107 c.parent = parent
12108 c.dicomWebPath = dicomWebPath
12109 return c
12110 }
12111
12112
12113
12114
12115 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12117 return c
12118 }
12119
12120
12121
12122
12123
12124
12125 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12126 c.ifNoneMatch_ = entityTag
12127 return c
12128 }
12129
12130
12131
12132
12133 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12134 c.ctx_ = ctx
12135 return c
12136 }
12137
12138
12139
12140 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Header() http.Header {
12141 if c.header_ == nil {
12142 c.header_ = make(http.Header)
12143 }
12144 return c.header_
12145 }
12146
12147 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) {
12148 reqHeaders := make(http.Header)
12149 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12150 for k, v := range c.header_ {
12151 reqHeaders[k] = v
12152 }
12153 reqHeaders.Set("User-Agent", c.s.userAgent())
12154 if c.ifNoneMatch_ != "" {
12155 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12156 }
12157 var body io.Reader = nil
12158 c.urlParams_.Set("alt", alt)
12159 c.urlParams_.Set("prettyPrint", "false")
12160 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
12161 urls += "?" + c.urlParams_.Encode()
12162 req, err := http.NewRequest("GET", urls, body)
12163 if err != nil {
12164 return nil, err
12165 }
12166 req.Header = reqHeaders
12167 googleapi.Expand(req.URL, map[string]string{
12168 "parent": c.parent,
12169 "dicomWebPath": c.dicomWebPath,
12170 })
12171 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12172 }
12173
12174
12175 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
12176 gensupport.SetOptions(c.urlParams_, opts...)
12177 return c.doRequest("")
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212 }
12213
12214
12215
12216 type ProjectsLocationsDatasetsFhirStoresCapabilitiesCall struct {
12217 s *Service
12218 name string
12219 urlParams_ gensupport.URLParams
12220 ifNoneMatch_ string
12221 ctx_ context.Context
12222 header_ http.Header
12223 }
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250 func (r *ProjectsLocationsDatasetsFhirStoresService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12251 c := &ProjectsLocationsDatasetsFhirStoresCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12252 c.name = name
12253 return c
12254 }
12255
12256
12257
12258
12259 func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12260 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12261 return c
12262 }
12263
12264
12265
12266
12267
12268
12269 func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12270 c.ifNoneMatch_ = entityTag
12271 return c
12272 }
12273
12274
12275
12276
12277 func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12278 c.ctx_ = ctx
12279 return c
12280 }
12281
12282
12283
12284 func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Header() http.Header {
12285 if c.header_ == nil {
12286 c.header_ = make(http.Header)
12287 }
12288 return c.header_
12289 }
12290
12291 func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
12292 reqHeaders := make(http.Header)
12293 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12294 for k, v := range c.header_ {
12295 reqHeaders[k] = v
12296 }
12297 reqHeaders.Set("User-Agent", c.s.userAgent())
12298 if c.ifNoneMatch_ != "" {
12299 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12300 }
12301 var body io.Reader = nil
12302 c.urlParams_.Set("alt", alt)
12303 c.urlParams_.Set("prettyPrint", "false")
12304 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/metadata")
12305 urls += "?" + c.urlParams_.Encode()
12306 req, err := http.NewRequest("GET", urls, body)
12307 if err != nil {
12308 return nil, err
12309 }
12310 req.Header = reqHeaders
12311 googleapi.Expand(req.URL, map[string]string{
12312 "name": c.name,
12313 })
12314 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12315 }
12316
12317
12318 func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
12319 gensupport.SetOptions(c.urlParams_, opts...)
12320 return c.doRequest("")
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347 }
12348
12349
12350
12351 type ProjectsLocationsDatasetsFhirStoresCreateCall struct {
12352 s *Service
12353 parent string
12354 fhirstore *FhirStore
12355 urlParams_ gensupport.URLParams
12356 ctx_ context.Context
12357 header_ http.Header
12358 }
12359
12360
12361 func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12362 c := &ProjectsLocationsDatasetsFhirStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12363 c.parent = parent
12364 c.fhirstore = fhirstore
12365 return c
12366 }
12367
12368
12369
12370
12371
12372 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) FhirStoreId(fhirStoreId string) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12373 c.urlParams_.Set("fhirStoreId", fhirStoreId)
12374 return c
12375 }
12376
12377
12378
12379
12380 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12381 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12382 return c
12383 }
12384
12385
12386
12387
12388 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12389 c.ctx_ = ctx
12390 return c
12391 }
12392
12393
12394
12395 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header {
12396 if c.header_ == nil {
12397 c.header_ = make(http.Header)
12398 }
12399 return c.header_
12400 }
12401
12402 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) {
12403 reqHeaders := make(http.Header)
12404 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12405 for k, v := range c.header_ {
12406 reqHeaders[k] = v
12407 }
12408 reqHeaders.Set("User-Agent", c.s.userAgent())
12409 var body io.Reader = nil
12410 body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
12411 if err != nil {
12412 return nil, err
12413 }
12414 reqHeaders.Set("Content-Type", "application/json")
12415 c.urlParams_.Set("alt", alt)
12416 c.urlParams_.Set("prettyPrint", "false")
12417 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores")
12418 urls += "?" + c.urlParams_.Encode()
12419 req, err := http.NewRequest("POST", urls, body)
12420 if err != nil {
12421 return nil, err
12422 }
12423 req.Header = reqHeaders
12424 googleapi.Expand(req.URL, map[string]string{
12425 "parent": c.parent,
12426 })
12427 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12428 }
12429
12430
12431
12432
12433
12434
12435
12436
12437 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
12438 gensupport.SetOptions(c.urlParams_, opts...)
12439 res, err := c.doRequest("json")
12440 if res != nil && res.StatusCode == http.StatusNotModified {
12441 if res.Body != nil {
12442 res.Body.Close()
12443 }
12444 return nil, &googleapi.Error{
12445 Code: res.StatusCode,
12446 Header: res.Header,
12447 }
12448 }
12449 if err != nil {
12450 return nil, err
12451 }
12452 defer googleapi.CloseBody(res)
12453 if err := googleapi.CheckResponse(res); err != nil {
12454 return nil, err
12455 }
12456 ret := &FhirStore{
12457 ServerResponse: googleapi.ServerResponse{
12458 Header: res.Header,
12459 HTTPStatusCode: res.StatusCode,
12460 },
12461 }
12462 target := &ret
12463 if err := gensupport.DecodeResponse(target, res); err != nil {
12464 return nil, err
12465 }
12466 return ret, nil
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501 }
12502
12503
12504
12505 type ProjectsLocationsDatasetsFhirStoresDeleteCall struct {
12506 s *Service
12507 name string
12508 urlParams_ gensupport.URLParams
12509 ctx_ context.Context
12510 header_ http.Header
12511 }
12512
12513
12514
12515 func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
12516 c := &ProjectsLocationsDatasetsFhirStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12517 c.name = name
12518 return c
12519 }
12520
12521
12522
12523
12524 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
12525 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12526 return c
12527 }
12528
12529
12530
12531
12532 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
12533 c.ctx_ = ctx
12534 return c
12535 }
12536
12537
12538
12539 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header {
12540 if c.header_ == nil {
12541 c.header_ = make(http.Header)
12542 }
12543 return c.header_
12544 }
12545
12546 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
12547 reqHeaders := make(http.Header)
12548 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12549 for k, v := range c.header_ {
12550 reqHeaders[k] = v
12551 }
12552 reqHeaders.Set("User-Agent", c.s.userAgent())
12553 var body io.Reader = nil
12554 c.urlParams_.Set("alt", alt)
12555 c.urlParams_.Set("prettyPrint", "false")
12556 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
12557 urls += "?" + c.urlParams_.Encode()
12558 req, err := http.NewRequest("DELETE", urls, body)
12559 if err != nil {
12560 return nil, err
12561 }
12562 req.Header = reqHeaders
12563 googleapi.Expand(req.URL, map[string]string{
12564 "name": c.name,
12565 })
12566 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12567 }
12568
12569
12570
12571
12572
12573
12574
12575
12576 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12577 gensupport.SetOptions(c.urlParams_, opts...)
12578 res, err := c.doRequest("json")
12579 if res != nil && res.StatusCode == http.StatusNotModified {
12580 if res.Body != nil {
12581 res.Body.Close()
12582 }
12583 return nil, &googleapi.Error{
12584 Code: res.StatusCode,
12585 Header: res.Header,
12586 }
12587 }
12588 if err != nil {
12589 return nil, err
12590 }
12591 defer googleapi.CloseBody(res)
12592 if err := googleapi.CheckResponse(res); err != nil {
12593 return nil, err
12594 }
12595 ret := &Empty{
12596 ServerResponse: googleapi.ServerResponse{
12597 Header: res.Header,
12598 HTTPStatusCode: res.StatusCode,
12599 },
12600 }
12601 target := &ret
12602 if err := gensupport.DecodeResponse(target, res); err != nil {
12603 return nil, err
12604 }
12605 return ret, nil
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632 }
12633
12634
12635
12636 type ProjectsLocationsDatasetsFhirStoresExportCall struct {
12637 s *Service
12638 name string
12639 exportresourcesrequest *ExportResourcesRequest
12640 urlParams_ gensupport.URLParams
12641 ctx_ context.Context
12642 header_ http.Header
12643 }
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665 func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportresourcesrequest *ExportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresExportCall {
12666 c := &ProjectsLocationsDatasetsFhirStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12667 c.name = name
12668 c.exportresourcesrequest = exportresourcesrequest
12669 return c
12670 }
12671
12672
12673
12674
12675 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportCall {
12676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12677 return c
12678 }
12679
12680
12681
12682
12683 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportCall {
12684 c.ctx_ = ctx
12685 return c
12686 }
12687
12688
12689
12690 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header {
12691 if c.header_ == nil {
12692 c.header_ = make(http.Header)
12693 }
12694 return c.header_
12695 }
12696
12697 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) {
12698 reqHeaders := make(http.Header)
12699 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12700 for k, v := range c.header_ {
12701 reqHeaders[k] = v
12702 }
12703 reqHeaders.Set("User-Agent", c.s.userAgent())
12704 var body io.Reader = nil
12705 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourcesrequest)
12706 if err != nil {
12707 return nil, err
12708 }
12709 reqHeaders.Set("Content-Type", "application/json")
12710 c.urlParams_.Set("alt", alt)
12711 c.urlParams_.Set("prettyPrint", "false")
12712 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export")
12713 urls += "?" + c.urlParams_.Encode()
12714 req, err := http.NewRequest("POST", urls, body)
12715 if err != nil {
12716 return nil, err
12717 }
12718 req.Header = reqHeaders
12719 googleapi.Expand(req.URL, map[string]string{
12720 "name": c.name,
12721 })
12722 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12723 }
12724
12725
12726
12727
12728
12729
12730
12731
12732 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12733 gensupport.SetOptions(c.urlParams_, opts...)
12734 res, err := c.doRequest("json")
12735 if res != nil && res.StatusCode == http.StatusNotModified {
12736 if res.Body != nil {
12737 res.Body.Close()
12738 }
12739 return nil, &googleapi.Error{
12740 Code: res.StatusCode,
12741 Header: res.Header,
12742 }
12743 }
12744 if err != nil {
12745 return nil, err
12746 }
12747 defer googleapi.CloseBody(res)
12748 if err := googleapi.CheckResponse(res); err != nil {
12749 return nil, err
12750 }
12751 ret := &Operation{
12752 ServerResponse: googleapi.ServerResponse{
12753 Header: res.Header,
12754 HTTPStatusCode: res.StatusCode,
12755 },
12756 }
12757 target := &ret
12758 if err := gensupport.DecodeResponse(target, res); err != nil {
12759 return nil, err
12760 }
12761 return ret, nil
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791 }
12792
12793
12794
12795 type ProjectsLocationsDatasetsFhirStoresGetCall struct {
12796 s *Service
12797 name string
12798 urlParams_ gensupport.URLParams
12799 ifNoneMatch_ string
12800 ctx_ context.Context
12801 header_ http.Header
12802 }
12803
12804
12805 func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsLocationsDatasetsFhirStoresGetCall {
12806 c := &ProjectsLocationsDatasetsFhirStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12807 c.name = name
12808 return c
12809 }
12810
12811
12812
12813
12814 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetCall {
12815 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12816 return c
12817 }
12818
12819
12820
12821
12822
12823
12824 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetCall {
12825 c.ifNoneMatch_ = entityTag
12826 return c
12827 }
12828
12829
12830
12831
12832 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetCall {
12833 c.ctx_ = ctx
12834 return c
12835 }
12836
12837
12838
12839 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header {
12840 if c.header_ == nil {
12841 c.header_ = make(http.Header)
12842 }
12843 return c.header_
12844 }
12845
12846 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) {
12847 reqHeaders := make(http.Header)
12848 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12849 for k, v := range c.header_ {
12850 reqHeaders[k] = v
12851 }
12852 reqHeaders.Set("User-Agent", c.s.userAgent())
12853 if c.ifNoneMatch_ != "" {
12854 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12855 }
12856 var body io.Reader = nil
12857 c.urlParams_.Set("alt", alt)
12858 c.urlParams_.Set("prettyPrint", "false")
12859 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
12860 urls += "?" + c.urlParams_.Encode()
12861 req, err := http.NewRequest("GET", urls, body)
12862 if err != nil {
12863 return nil, err
12864 }
12865 req.Header = reqHeaders
12866 googleapi.Expand(req.URL, map[string]string{
12867 "name": c.name,
12868 })
12869 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12870 }
12871
12872
12873
12874
12875
12876
12877
12878
12879 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
12880 gensupport.SetOptions(c.urlParams_, opts...)
12881 res, err := c.doRequest("json")
12882 if res != nil && res.StatusCode == http.StatusNotModified {
12883 if res.Body != nil {
12884 res.Body.Close()
12885 }
12886 return nil, &googleapi.Error{
12887 Code: res.StatusCode,
12888 Header: res.Header,
12889 }
12890 }
12891 if err != nil {
12892 return nil, err
12893 }
12894 defer googleapi.CloseBody(res)
12895 if err := googleapi.CheckResponse(res); err != nil {
12896 return nil, err
12897 }
12898 ret := &FhirStore{
12899 ServerResponse: googleapi.ServerResponse{
12900 Header: res.Header,
12901 HTTPStatusCode: res.StatusCode,
12902 },
12903 }
12904 target := &ret
12905 if err := gensupport.DecodeResponse(target, res); err != nil {
12906 return nil, err
12907 }
12908 return ret, nil
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935 }
12936
12937
12938
12939 type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct {
12940 s *Service
12941 resource string
12942 urlParams_ gensupport.URLParams
12943 ifNoneMatch_ string
12944 ctx_ context.Context
12945 header_ http.Header
12946 }
12947
12948
12949
12950
12951
12952 func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12953 c := &ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12954 c.resource = resource
12955 return c
12956 }
12957
12958
12959
12960
12961
12962
12963
12964
12965 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12966 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
12967 return c
12968 }
12969
12970
12971
12972
12973 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12974 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12975 return c
12976 }
12977
12978
12979
12980
12981
12982
12983 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12984 c.ifNoneMatch_ = entityTag
12985 return c
12986 }
12987
12988
12989
12990
12991 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12992 c.ctx_ = ctx
12993 return c
12994 }
12995
12996
12997
12998 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Header {
12999 if c.header_ == nil {
13000 c.header_ = make(http.Header)
13001 }
13002 return c.header_
13003 }
13004
13005 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
13006 reqHeaders := make(http.Header)
13007 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13008 for k, v := range c.header_ {
13009 reqHeaders[k] = v
13010 }
13011 reqHeaders.Set("User-Agent", c.s.userAgent())
13012 if c.ifNoneMatch_ != "" {
13013 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13014 }
13015 var body io.Reader = nil
13016 c.urlParams_.Set("alt", alt)
13017 c.urlParams_.Set("prettyPrint", "false")
13018 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
13019 urls += "?" + c.urlParams_.Encode()
13020 req, err := http.NewRequest("GET", urls, body)
13021 if err != nil {
13022 return nil, err
13023 }
13024 req.Header = reqHeaders
13025 googleapi.Expand(req.URL, map[string]string{
13026 "resource": c.resource,
13027 })
13028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13029 }
13030
13031
13032
13033
13034
13035
13036
13037
13038 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
13039 gensupport.SetOptions(c.urlParams_, opts...)
13040 res, err := c.doRequest("json")
13041 if res != nil && res.StatusCode == http.StatusNotModified {
13042 if res.Body != nil {
13043 res.Body.Close()
13044 }
13045 return nil, &googleapi.Error{
13046 Code: res.StatusCode,
13047 Header: res.Header,
13048 }
13049 }
13050 if err != nil {
13051 return nil, err
13052 }
13053 defer googleapi.CloseBody(res)
13054 if err := googleapi.CheckResponse(res); err != nil {
13055 return nil, err
13056 }
13057 ret := &Policy{
13058 ServerResponse: googleapi.ServerResponse{
13059 Header: res.Header,
13060 HTTPStatusCode: res.StatusCode,
13061 },
13062 }
13063 target := &ret
13064 if err := gensupport.DecodeResponse(target, res); err != nil {
13065 return nil, err
13066 }
13067 return ret, nil
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 }
13101
13102
13103
13104 type ProjectsLocationsDatasetsFhirStoresImportCall struct {
13105 s *Service
13106 name string
13107 importresourcesrequest *ImportResourcesRequest
13108 urlParams_ gensupport.URLParams
13109 ctx_ context.Context
13110 header_ http.Header
13111 }
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240 func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importresourcesrequest *ImportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresImportCall {
13241 c := &ProjectsLocationsDatasetsFhirStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13242 c.name = name
13243 c.importresourcesrequest = importresourcesrequest
13244 return c
13245 }
13246
13247
13248
13249
13250 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportCall {
13251 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13252 return c
13253 }
13254
13255
13256
13257
13258 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportCall {
13259 c.ctx_ = ctx
13260 return c
13261 }
13262
13263
13264
13265 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header {
13266 if c.header_ == nil {
13267 c.header_ = make(http.Header)
13268 }
13269 return c.header_
13270 }
13271
13272 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) {
13273 reqHeaders := make(http.Header)
13274 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13275 for k, v := range c.header_ {
13276 reqHeaders[k] = v
13277 }
13278 reqHeaders.Set("User-Agent", c.s.userAgent())
13279 var body io.Reader = nil
13280 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourcesrequest)
13281 if err != nil {
13282 return nil, err
13283 }
13284 reqHeaders.Set("Content-Type", "application/json")
13285 c.urlParams_.Set("alt", alt)
13286 c.urlParams_.Set("prettyPrint", "false")
13287 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import")
13288 urls += "?" + c.urlParams_.Encode()
13289 req, err := http.NewRequest("POST", urls, body)
13290 if err != nil {
13291 return nil, err
13292 }
13293 req.Header = reqHeaders
13294 googleapi.Expand(req.URL, map[string]string{
13295 "name": c.name,
13296 })
13297 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13298 }
13299
13300
13301
13302
13303
13304
13305
13306
13307 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13308 gensupport.SetOptions(c.urlParams_, opts...)
13309 res, err := c.doRequest("json")
13310 if res != nil && res.StatusCode == http.StatusNotModified {
13311 if res.Body != nil {
13312 res.Body.Close()
13313 }
13314 return nil, &googleapi.Error{
13315 Code: res.StatusCode,
13316 Header: res.Header,
13317 }
13318 }
13319 if err != nil {
13320 return nil, err
13321 }
13322 defer googleapi.CloseBody(res)
13323 if err := googleapi.CheckResponse(res); err != nil {
13324 return nil, err
13325 }
13326 ret := &Operation{
13327 ServerResponse: googleapi.ServerResponse{
13328 Header: res.Header,
13329 HTTPStatusCode: res.StatusCode,
13330 },
13331 }
13332 target := &ret
13333 if err := gensupport.DecodeResponse(target, res); err != nil {
13334 return nil, err
13335 }
13336 return ret, nil
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 }
13367
13368
13369
13370 type ProjectsLocationsDatasetsFhirStoresListCall struct {
13371 s *Service
13372 parent string
13373 urlParams_ gensupport.URLParams
13374 ifNoneMatch_ string
13375 ctx_ context.Context
13376 header_ http.Header
13377 }
13378
13379
13380 func (r *ProjectsLocationsDatasetsFhirStoresService) List(parent string) *ProjectsLocationsDatasetsFhirStoresListCall {
13381 c := &ProjectsLocationsDatasetsFhirStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13382 c.parent = parent
13383 return c
13384 }
13385
13386
13387
13388
13389
13390
13391
13392
13393 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsFhirStoresListCall {
13394 c.urlParams_.Set("filter", filter)
13395 return c
13396 }
13397
13398
13399
13400
13401 func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsFhirStoresListCall {
13402 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13403 return c
13404 }
13405
13406
13407
13408
13409 func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresListCall {
13410 c.urlParams_.Set("pageToken", pageToken)
13411 return c
13412 }
13413
13414
13415
13416
13417 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresListCall {
13418 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13419 return c
13420 }
13421
13422
13423
13424
13425
13426
13427 func (c *ProjectsLocationsDatasetsFhirStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresListCall {
13428 c.ifNoneMatch_ = entityTag
13429 return c
13430 }
13431
13432
13433
13434
13435 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresListCall {
13436 c.ctx_ = ctx
13437 return c
13438 }
13439
13440
13441
13442 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header {
13443 if c.header_ == nil {
13444 c.header_ = make(http.Header)
13445 }
13446 return c.header_
13447 }
13448
13449 func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) {
13450 reqHeaders := make(http.Header)
13451 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13452 for k, v := range c.header_ {
13453 reqHeaders[k] = v
13454 }
13455 reqHeaders.Set("User-Agent", c.s.userAgent())
13456 if c.ifNoneMatch_ != "" {
13457 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13458 }
13459 var body io.Reader = nil
13460 c.urlParams_.Set("alt", alt)
13461 c.urlParams_.Set("prettyPrint", "false")
13462 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores")
13463 urls += "?" + c.urlParams_.Encode()
13464 req, err := http.NewRequest("GET", urls, body)
13465 if err != nil {
13466 return nil, err
13467 }
13468 req.Header = reqHeaders
13469 googleapi.Expand(req.URL, map[string]string{
13470 "parent": c.parent,
13471 })
13472 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13473 }
13474
13475
13476
13477
13478
13479
13480
13481
13482 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallOption) (*ListFhirStoresResponse, error) {
13483 gensupport.SetOptions(c.urlParams_, opts...)
13484 res, err := c.doRequest("json")
13485 if res != nil && res.StatusCode == http.StatusNotModified {
13486 if res.Body != nil {
13487 res.Body.Close()
13488 }
13489 return nil, &googleapi.Error{
13490 Code: res.StatusCode,
13491 Header: res.Header,
13492 }
13493 }
13494 if err != nil {
13495 return nil, err
13496 }
13497 defer googleapi.CloseBody(res)
13498 if err := googleapi.CheckResponse(res); err != nil {
13499 return nil, err
13500 }
13501 ret := &ListFhirStoresResponse{
13502 ServerResponse: googleapi.ServerResponse{
13503 Header: res.Header,
13504 HTTPStatusCode: res.StatusCode,
13505 },
13506 }
13507 target := &ret
13508 if err := gensupport.DecodeResponse(target, res); err != nil {
13509 return nil, err
13510 }
13511 return ret, nil
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554 }
13555
13556
13557
13558
13559 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, f func(*ListFhirStoresResponse) error) error {
13560 c.ctx_ = ctx
13561 defer c.PageToken(c.urlParams_.Get("pageToken"))
13562 for {
13563 x, err := c.Do()
13564 if err != nil {
13565 return err
13566 }
13567 if err := f(x); err != nil {
13568 return err
13569 }
13570 if x.NextPageToken == "" {
13571 return nil
13572 }
13573 c.PageToken(x.NextPageToken)
13574 }
13575 }
13576
13577
13578
13579 type ProjectsLocationsDatasetsFhirStoresPatchCall struct {
13580 s *Service
13581 name string
13582 fhirstore *FhirStore
13583 urlParams_ gensupport.URLParams
13584 ctx_ context.Context
13585 header_ http.Header
13586 }
13587
13588
13589 func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13590 c := &ProjectsLocationsDatasetsFhirStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13591 c.name = name
13592 c.fhirstore = fhirstore
13593 return c
13594 }
13595
13596
13597
13598
13599
13600
13601
13602 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13603 c.urlParams_.Set("updateMask", updateMask)
13604 return c
13605 }
13606
13607
13608
13609
13610 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13611 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13612 return c
13613 }
13614
13615
13616
13617
13618 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13619 c.ctx_ = ctx
13620 return c
13621 }
13622
13623
13624
13625 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header {
13626 if c.header_ == nil {
13627 c.header_ = make(http.Header)
13628 }
13629 return c.header_
13630 }
13631
13632 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) {
13633 reqHeaders := make(http.Header)
13634 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13635 for k, v := range c.header_ {
13636 reqHeaders[k] = v
13637 }
13638 reqHeaders.Set("User-Agent", c.s.userAgent())
13639 var body io.Reader = nil
13640 body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
13641 if err != nil {
13642 return nil, err
13643 }
13644 reqHeaders.Set("Content-Type", "application/json")
13645 c.urlParams_.Set("alt", alt)
13646 c.urlParams_.Set("prettyPrint", "false")
13647 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
13648 urls += "?" + c.urlParams_.Encode()
13649 req, err := http.NewRequest("PATCH", urls, body)
13650 if err != nil {
13651 return nil, err
13652 }
13653 req.Header = reqHeaders
13654 googleapi.Expand(req.URL, map[string]string{
13655 "name": c.name,
13656 })
13657 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13658 }
13659
13660
13661
13662
13663
13664
13665
13666
13667 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
13668 gensupport.SetOptions(c.urlParams_, opts...)
13669 res, err := c.doRequest("json")
13670 if res != nil && res.StatusCode == http.StatusNotModified {
13671 if res.Body != nil {
13672 res.Body.Close()
13673 }
13674 return nil, &googleapi.Error{
13675 Code: res.StatusCode,
13676 Header: res.Header,
13677 }
13678 }
13679 if err != nil {
13680 return nil, err
13681 }
13682 defer googleapi.CloseBody(res)
13683 if err := googleapi.CheckResponse(res); err != nil {
13684 return nil, err
13685 }
13686 ret := &FhirStore{
13687 ServerResponse: googleapi.ServerResponse{
13688 Header: res.Header,
13689 HTTPStatusCode: res.StatusCode,
13690 },
13691 }
13692 target := &ret
13693 if err := gensupport.DecodeResponse(target, res); err != nil {
13694 return nil, err
13695 }
13696 return ret, nil
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732 }
13733
13734
13735
13736 type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct {
13737 s *Service
13738 resource string
13739 setiampolicyrequest *SetIamPolicyRequest
13740 urlParams_ gensupport.URLParams
13741 ctx_ context.Context
13742 header_ http.Header
13743 }
13744
13745
13746
13747
13748 func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
13749 c := &ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13750 c.resource = resource
13751 c.setiampolicyrequest = setiampolicyrequest
13752 return c
13753 }
13754
13755
13756
13757
13758 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
13759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13760 return c
13761 }
13762
13763
13764
13765
13766 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
13767 c.ctx_ = ctx
13768 return c
13769 }
13770
13771
13772
13773 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Header {
13774 if c.header_ == nil {
13775 c.header_ = make(http.Header)
13776 }
13777 return c.header_
13778 }
13779
13780 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
13781 reqHeaders := make(http.Header)
13782 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13783 for k, v := range c.header_ {
13784 reqHeaders[k] = v
13785 }
13786 reqHeaders.Set("User-Agent", c.s.userAgent())
13787 var body io.Reader = nil
13788 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
13789 if err != nil {
13790 return nil, err
13791 }
13792 reqHeaders.Set("Content-Type", "application/json")
13793 c.urlParams_.Set("alt", alt)
13794 c.urlParams_.Set("prettyPrint", "false")
13795 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
13796 urls += "?" + c.urlParams_.Encode()
13797 req, err := http.NewRequest("POST", urls, body)
13798 if err != nil {
13799 return nil, err
13800 }
13801 req.Header = reqHeaders
13802 googleapi.Expand(req.URL, map[string]string{
13803 "resource": c.resource,
13804 })
13805 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13806 }
13807
13808
13809
13810
13811
13812
13813
13814
13815 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
13816 gensupport.SetOptions(c.urlParams_, opts...)
13817 res, err := c.doRequest("json")
13818 if res != nil && res.StatusCode == http.StatusNotModified {
13819 if res.Body != nil {
13820 res.Body.Close()
13821 }
13822 return nil, &googleapi.Error{
13823 Code: res.StatusCode,
13824 Header: res.Header,
13825 }
13826 }
13827 if err != nil {
13828 return nil, err
13829 }
13830 defer googleapi.CloseBody(res)
13831 if err := googleapi.CheckResponse(res); err != nil {
13832 return nil, err
13833 }
13834 ret := &Policy{
13835 ServerResponse: googleapi.ServerResponse{
13836 Header: res.Header,
13837 HTTPStatusCode: res.StatusCode,
13838 },
13839 }
13840 target := &ret
13841 if err := gensupport.DecodeResponse(target, res); err != nil {
13842 return nil, err
13843 }
13844 return ret, nil
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874 }
13875
13876
13877
13878 type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct {
13879 s *Service
13880 resource string
13881 testiampermissionsrequest *TestIamPermissionsRequest
13882 urlParams_ gensupport.URLParams
13883 ctx_ context.Context
13884 header_ http.Header
13885 }
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898 func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
13899 c := &ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13900 c.resource = resource
13901 c.testiampermissionsrequest = testiampermissionsrequest
13902 return c
13903 }
13904
13905
13906
13907
13908 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
13909 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13910 return c
13911 }
13912
13913
13914
13915
13916 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
13917 c.ctx_ = ctx
13918 return c
13919 }
13920
13921
13922
13923 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() http.Header {
13924 if c.header_ == nil {
13925 c.header_ = make(http.Header)
13926 }
13927 return c.header_
13928 }
13929
13930 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
13931 reqHeaders := make(http.Header)
13932 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13933 for k, v := range c.header_ {
13934 reqHeaders[k] = v
13935 }
13936 reqHeaders.Set("User-Agent", c.s.userAgent())
13937 var body io.Reader = nil
13938 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
13939 if err != nil {
13940 return nil, err
13941 }
13942 reqHeaders.Set("Content-Type", "application/json")
13943 c.urlParams_.Set("alt", alt)
13944 c.urlParams_.Set("prettyPrint", "false")
13945 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
13946 urls += "?" + c.urlParams_.Encode()
13947 req, err := http.NewRequest("POST", urls, body)
13948 if err != nil {
13949 return nil, err
13950 }
13951 req.Header = reqHeaders
13952 googleapi.Expand(req.URL, map[string]string{
13953 "resource": c.resource,
13954 })
13955 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13956 }
13957
13958
13959
13960
13961
13962
13963
13964
13965 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
13966 gensupport.SetOptions(c.urlParams_, opts...)
13967 res, err := c.doRequest("json")
13968 if res != nil && res.StatusCode == http.StatusNotModified {
13969 if res.Body != nil {
13970 res.Body.Close()
13971 }
13972 return nil, &googleapi.Error{
13973 Code: res.StatusCode,
13974 Header: res.Header,
13975 }
13976 }
13977 if err != nil {
13978 return nil, err
13979 }
13980 defer googleapi.CloseBody(res)
13981 if err := googleapi.CheckResponse(res); err != nil {
13982 return nil, err
13983 }
13984 ret := &TestIamPermissionsResponse{
13985 ServerResponse: googleapi.ServerResponse{
13986 Header: res.Header,
13987 HTTPStatusCode: res.StatusCode,
13988 },
13989 }
13990 target := &ret
13991 if err := gensupport.DecodeResponse(target, res); err != nil {
13992 return nil, err
13993 }
13994 return ret, nil
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024 }
14025
14026
14027
14028 type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct {
14029 s *Service
14030 parent string
14031 urlParams_ gensupport.URLParams
14032 ifNoneMatch_ string
14033 ctx_ context.Context
14034 header_ http.Header
14035 }
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14072 c := &ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14073 c.parent = parent
14074 return c
14075 }
14076
14077
14078
14079
14080 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14082 return c
14083 }
14084
14085
14086
14087
14088
14089
14090 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14091 c.ifNoneMatch_ = entityTag
14092 return c
14093 }
14094
14095
14096
14097
14098 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14099 c.ctx_ = ctx
14100 return c
14101 }
14102
14103
14104
14105 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() http.Header {
14106 if c.header_ == nil {
14107 c.header_ = make(http.Header)
14108 }
14109 return c.header_
14110 }
14111
14112 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) {
14113 reqHeaders := make(http.Header)
14114 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14115 for k, v := range c.header_ {
14116 reqHeaders[k] = v
14117 }
14118 reqHeaders.Set("User-Agent", c.s.userAgent())
14119 if c.ifNoneMatch_ != "" {
14120 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14121 }
14122 var body io.Reader = nil
14123 c.urlParams_.Set("alt", alt)
14124 c.urlParams_.Set("prettyPrint", "false")
14125 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/Observation/$lastn")
14126 urls += "?" + c.urlParams_.Encode()
14127 req, err := http.NewRequest("GET", urls, body)
14128 if err != nil {
14129 return nil, err
14130 }
14131 req.Header = reqHeaders
14132 googleapi.Expand(req.URL, map[string]string{
14133 "parent": c.parent,
14134 })
14135 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14136 }
14137
14138
14139 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14140 gensupport.SetOptions(c.urlParams_, opts...)
14141 return c.doRequest("")
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168 }
14169
14170
14171
14172 type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct {
14173 s *Service
14174 name string
14175 urlParams_ gensupport.URLParams
14176 ifNoneMatch_ string
14177 ctx_ context.Context
14178 header_ http.Header
14179 }
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientEverything(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14205 c := &ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14206 c.name = name
14207 return c
14208 }
14209
14210
14211
14212 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14213 c.urlParams_.Set("_count", fmt.Sprint(Count))
14214 return c
14215 }
14216
14217
14218
14219
14220 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) End(end string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14221 c.urlParams_.Set("end", end)
14222 return c
14223 }
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14237 c.urlParams_.Set("pageToken", pageToken)
14238 return c
14239 }
14240
14241
14242
14243
14244 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(start string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14245 c.urlParams_.Set("start", start)
14246 return c
14247 }
14248
14249
14250
14251
14252 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14253 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14254 return c
14255 }
14256
14257
14258
14259
14260
14261
14262 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14263 c.ifNoneMatch_ = entityTag
14264 return c
14265 }
14266
14267
14268
14269
14270 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14271 c.ctx_ = ctx
14272 return c
14273 }
14274
14275
14276
14277 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() http.Header {
14278 if c.header_ == nil {
14279 c.header_ = make(http.Header)
14280 }
14281 return c.header_
14282 }
14283
14284 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) {
14285 reqHeaders := make(http.Header)
14286 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14287 for k, v := range c.header_ {
14288 reqHeaders[k] = v
14289 }
14290 reqHeaders.Set("User-Agent", c.s.userAgent())
14291 if c.ifNoneMatch_ != "" {
14292 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14293 }
14294 var body io.Reader = nil
14295 c.urlParams_.Set("alt", alt)
14296 c.urlParams_.Set("prettyPrint", "false")
14297 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/$everything")
14298 urls += "?" + c.urlParams_.Encode()
14299 req, err := http.NewRequest("GET", urls, body)
14300 if err != nil {
14301 return nil, err
14302 }
14303 req.Header = reqHeaders
14304 googleapi.Expand(req.URL, map[string]string{
14305 "name": c.name,
14306 })
14307 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14308 }
14309
14310
14311 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14312 gensupport.SetOptions(c.urlParams_, opts...)
14313 return c.doRequest("")
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361 }
14362
14363
14364
14365 type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct {
14366 s *Service
14367 name string
14368 urlParams_ gensupport.URLParams
14369 ctx_ context.Context
14370 header_ http.Header
14371 }
14372
14373
14374
14375
14376
14377
14378
14379
14380 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name string) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
14381 c := &ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14382 c.name = name
14383 return c
14384 }
14385
14386
14387
14388
14389 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
14390 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14391 return c
14392 }
14393
14394
14395
14396
14397 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
14398 c.ctx_ = ctx
14399 return c
14400 }
14401
14402
14403
14404 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http.Header {
14405 if c.header_ == nil {
14406 c.header_ = make(http.Header)
14407 }
14408 return c.header_
14409 }
14410
14411 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) {
14412 reqHeaders := make(http.Header)
14413 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14414 for k, v := range c.header_ {
14415 reqHeaders[k] = v
14416 }
14417 reqHeaders.Set("User-Agent", c.s.userAgent())
14418 var body io.Reader = nil
14419 c.urlParams_.Set("alt", alt)
14420 c.urlParams_.Set("prettyPrint", "false")
14421 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/$purge")
14422 urls += "?" + c.urlParams_.Encode()
14423 req, err := http.NewRequest("DELETE", urls, body)
14424 if err != nil {
14425 return nil, err
14426 }
14427 req.Header = reqHeaders
14428 googleapi.Expand(req.URL, map[string]string{
14429 "name": c.name,
14430 })
14431 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14432 }
14433
14434
14435
14436
14437
14438
14439
14440
14441 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
14442 gensupport.SetOptions(c.urlParams_, opts...)
14443 res, err := c.doRequest("json")
14444 if res != nil && res.StatusCode == http.StatusNotModified {
14445 if res.Body != nil {
14446 res.Body.Close()
14447 }
14448 return nil, &googleapi.Error{
14449 Code: res.StatusCode,
14450 Header: res.Header,
14451 }
14452 }
14453 if err != nil {
14454 return nil, err
14455 }
14456 defer googleapi.CloseBody(res)
14457 if err := googleapi.CheckResponse(res); err != nil {
14458 return nil, err
14459 }
14460 ret := &Empty{
14461 ServerResponse: googleapi.ServerResponse{
14462 Header: res.Header,
14463 HTTPStatusCode: res.StatusCode,
14464 },
14465 }
14466 target := &ret
14467 if err := gensupport.DecodeResponse(target, res); err != nil {
14468 return nil, err
14469 }
14470 return ret, nil
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497 }
14498
14499
14500
14501 type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct {
14502 s *Service
14503 name string
14504 urlParams_ gensupport.URLParams
14505 ifNoneMatch_ string
14506 ctx_ context.Context
14507 header_ http.Header
14508 }
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14536 c := &ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14537 c.name = name
14538 return c
14539 }
14540
14541
14542
14543
14544 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14545 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14546 return c
14547 }
14548
14549
14550
14551
14552
14553
14554 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14555 c.ifNoneMatch_ = entityTag
14556 return c
14557 }
14558
14559
14560
14561
14562 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14563 c.ctx_ = ctx
14564 return c
14565 }
14566
14567
14568
14569 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http.Header {
14570 if c.header_ == nil {
14571 c.header_ = make(http.Header)
14572 }
14573 return c.header_
14574 }
14575
14576 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
14577 reqHeaders := make(http.Header)
14578 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14579 for k, v := range c.header_ {
14580 reqHeaders[k] = v
14581 }
14582 reqHeaders.Set("User-Agent", c.s.userAgent())
14583 if c.ifNoneMatch_ != "" {
14584 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14585 }
14586 var body io.Reader = nil
14587 c.urlParams_.Set("alt", alt)
14588 c.urlParams_.Set("prettyPrint", "false")
14589 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/fhir/metadata")
14590 urls += "?" + c.urlParams_.Encode()
14591 req, err := http.NewRequest("GET", urls, body)
14592 if err != nil {
14593 return nil, err
14594 }
14595 req.Header = reqHeaders
14596 googleapi.Expand(req.URL, map[string]string{
14597 "name": c.name,
14598 })
14599 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14600 }
14601
14602
14603 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14604 gensupport.SetOptions(c.urlParams_, opts...)
14605 return c.doRequest("")
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632 }
14633
14634
14635
14636 type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct {
14637 s *Service
14638 parent string
14639 type_ string
14640 urlParams_ gensupport.URLParams
14641 ctx_ context.Context
14642 header_ http.Header
14643 }
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
14669 c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14670 c.parent = parent
14671 c.type_ = type_
14672 return c
14673 }
14674
14675
14676
14677
14678 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
14679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14680 return c
14681 }
14682
14683
14684
14685
14686 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
14687 c.ctx_ = ctx
14688 return c
14689 }
14690
14691
14692
14693 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() http.Header {
14694 if c.header_ == nil {
14695 c.header_ = make(http.Header)
14696 }
14697 return c.header_
14698 }
14699
14700 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) {
14701 reqHeaders := make(http.Header)
14702 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14703 for k, v := range c.header_ {
14704 reqHeaders[k] = v
14705 }
14706 reqHeaders.Set("User-Agent", c.s.userAgent())
14707 var body io.Reader = nil
14708 c.urlParams_.Set("alt", alt)
14709 c.urlParams_.Set("prettyPrint", "false")
14710 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
14711 urls += "?" + c.urlParams_.Encode()
14712 req, err := http.NewRequest("DELETE", urls, body)
14713 if err != nil {
14714 return nil, err
14715 }
14716 req.Header = reqHeaders
14717 googleapi.Expand(req.URL, map[string]string{
14718 "parent": c.parent,
14719 "type": c.type_,
14720 })
14721 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14722 }
14723
14724
14725
14726
14727
14728
14729
14730
14731 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
14732 gensupport.SetOptions(c.urlParams_, opts...)
14733 res, err := c.doRequest("json")
14734 if res != nil && res.StatusCode == http.StatusNotModified {
14735 if res.Body != nil {
14736 res.Body.Close()
14737 }
14738 return nil, &googleapi.Error{
14739 Code: res.StatusCode,
14740 Header: res.Header,
14741 }
14742 }
14743 if err != nil {
14744 return nil, err
14745 }
14746 defer googleapi.CloseBody(res)
14747 if err := googleapi.CheckResponse(res); err != nil {
14748 return nil, err
14749 }
14750 ret := &Empty{
14751 ServerResponse: googleapi.ServerResponse{
14752 Header: res.Header,
14753 HTTPStatusCode: res.StatusCode,
14754 },
14755 }
14756 target := &ret
14757 if err := gensupport.DecodeResponse(target, res); err != nil {
14758 return nil, err
14759 }
14760 return ret, nil
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795 }
14796
14797
14798
14799 type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct {
14800 s *Service
14801 parent string
14802 type_ string
14803 body_ io.Reader
14804 urlParams_ gensupport.URLParams
14805 ctx_ context.Context
14806 header_ http.Header
14807 }
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
14849 c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14850 c.parent = parent
14851 c.type_ = type_
14852 c.body_ = body_
14853 return c
14854 }
14855
14856
14857
14858
14859 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
14860 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14861 return c
14862 }
14863
14864
14865
14866
14867 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
14868 c.ctx_ = ctx
14869 return c
14870 }
14871
14872
14873
14874 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() http.Header {
14875 if c.header_ == nil {
14876 c.header_ = make(http.Header)
14877 }
14878 return c.header_
14879 }
14880
14881 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) {
14882 reqHeaders := make(http.Header)
14883 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14884 for k, v := range c.header_ {
14885 reqHeaders[k] = v
14886 }
14887 reqHeaders.Set("User-Agent", c.s.userAgent())
14888 var body io.Reader = nil
14889 body = c.body_
14890 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
14891 urls += "?" + c.urlParams_.Encode()
14892 req, err := http.NewRequest("PATCH", urls, body)
14893 if err != nil {
14894 return nil, err
14895 }
14896 req.Header = reqHeaders
14897 googleapi.Expand(req.URL, map[string]string{
14898 "parent": c.parent,
14899 "type": c.type_,
14900 })
14901 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14902 }
14903
14904
14905 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14906 gensupport.SetOptions(c.urlParams_, opts...)
14907 return c.doRequest("")
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945 }
14946
14947
14948
14949 type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct {
14950 s *Service
14951 parent string
14952 type_ string
14953 body_ io.Reader
14954 urlParams_ gensupport.URLParams
14955 ctx_ context.Context
14956 header_ http.Header
14957 }
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
15004 c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15005 c.parent = parent
15006 c.type_ = type_
15007 c.body_ = body_
15008 return c
15009 }
15010
15011
15012
15013
15014 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
15015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15016 return c
15017 }
15018
15019
15020
15021
15022 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
15023 c.ctx_ = ctx
15024 return c
15025 }
15026
15027
15028
15029 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() http.Header {
15030 if c.header_ == nil {
15031 c.header_ = make(http.Header)
15032 }
15033 return c.header_
15034 }
15035
15036 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) {
15037 reqHeaders := make(http.Header)
15038 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15039 for k, v := range c.header_ {
15040 reqHeaders[k] = v
15041 }
15042 reqHeaders.Set("User-Agent", c.s.userAgent())
15043 var body io.Reader = nil
15044 body = c.body_
15045 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
15046 urls += "?" + c.urlParams_.Encode()
15047 req, err := http.NewRequest("PUT", urls, body)
15048 if err != nil {
15049 return nil, err
15050 }
15051 req.Header = reqHeaders
15052 googleapi.Expand(req.URL, map[string]string{
15053 "parent": c.parent,
15054 "type": c.type_,
15055 })
15056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15057 }
15058
15059
15060 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15061 gensupport.SetOptions(c.urlParams_, opts...)
15062 return c.doRequest("")
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100 }
15101
15102
15103
15104 type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct {
15105 s *Service
15106 parent string
15107 type_ string
15108 body_ io.Reader
15109 urlParams_ gensupport.URLParams
15110 ctx_ context.Context
15111 header_ http.Header
15112 }
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
15154 c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15155 c.parent = parent
15156 c.type_ = type_
15157 c.body_ = body_
15158 return c
15159 }
15160
15161
15162
15163
15164 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
15165 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15166 return c
15167 }
15168
15169
15170
15171
15172 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
15173 c.ctx_ = ctx
15174 return c
15175 }
15176
15177
15178
15179 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header {
15180 if c.header_ == nil {
15181 c.header_ = make(http.Header)
15182 }
15183 return c.header_
15184 }
15185
15186 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) {
15187 reqHeaders := make(http.Header)
15188 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15189 for k, v := range c.header_ {
15190 reqHeaders[k] = v
15191 }
15192 reqHeaders.Set("User-Agent", c.s.userAgent())
15193 var body io.Reader = nil
15194 body = c.body_
15195 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
15196 urls += "?" + c.urlParams_.Encode()
15197 req, err := http.NewRequest("POST", urls, body)
15198 if err != nil {
15199 return nil, err
15200 }
15201 req.Header = reqHeaders
15202 googleapi.Expand(req.URL, map[string]string{
15203 "parent": c.parent,
15204 "type": c.type_,
15205 })
15206 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15207 }
15208
15209
15210 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15211 gensupport.SetOptions(c.urlParams_, opts...)
15212 return c.doRequest("")
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250 }
15251
15252
15253
15254 type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct {
15255 s *Service
15256 name string
15257 urlParams_ gensupport.URLParams
15258 ctx_ context.Context
15259 header_ http.Header
15260 }
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
15280 c := &ProjectsLocationsDatasetsFhirStoresFhirDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15281 c.name = name
15282 return c
15283 }
15284
15285
15286
15287
15288 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
15289 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15290 return c
15291 }
15292
15293
15294
15295
15296 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
15297 c.ctx_ = ctx
15298 return c
15299 }
15300
15301
15302
15303 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header {
15304 if c.header_ == nil {
15305 c.header_ = make(http.Header)
15306 }
15307 return c.header_
15308 }
15309
15310 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) {
15311 reqHeaders := make(http.Header)
15312 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15313 for k, v := range c.header_ {
15314 reqHeaders[k] = v
15315 }
15316 reqHeaders.Set("User-Agent", c.s.userAgent())
15317 var body io.Reader = nil
15318 c.urlParams_.Set("alt", alt)
15319 c.urlParams_.Set("prettyPrint", "false")
15320 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
15321 urls += "?" + c.urlParams_.Encode()
15322 req, err := http.NewRequest("DELETE", urls, body)
15323 if err != nil {
15324 return nil, err
15325 }
15326 req.Header = reqHeaders
15327 googleapi.Expand(req.URL, map[string]string{
15328 "name": c.name,
15329 })
15330 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15331 }
15332
15333
15334 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15335 gensupport.SetOptions(c.urlParams_, opts...)
15336 return c.doRequest("")
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363 }
15364
15365
15366
15367 type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct {
15368 s *Service
15369 parent string
15370 body_ io.Reader
15371 urlParams_ gensupport.URLParams
15372 ctx_ context.Context
15373 header_ http.Header
15374 }
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
15424 c := &ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15425 c.parent = parent
15426 c.body_ = body_
15427 return c
15428 }
15429
15430
15431
15432
15433 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
15434 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15435 return c
15436 }
15437
15438
15439
15440
15441 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
15442 c.ctx_ = ctx
15443 return c
15444 }
15445
15446
15447
15448 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http.Header {
15449 if c.header_ == nil {
15450 c.header_ = make(http.Header)
15451 }
15452 return c.header_
15453 }
15454
15455 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) {
15456 reqHeaders := make(http.Header)
15457 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15458 for k, v := range c.header_ {
15459 reqHeaders[k] = v
15460 }
15461 reqHeaders.Set("User-Agent", c.s.userAgent())
15462 var body io.Reader = nil
15463 body = c.body_
15464 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir")
15465 urls += "?" + c.urlParams_.Encode()
15466 req, err := http.NewRequest("POST", urls, body)
15467 if err != nil {
15468 return nil, err
15469 }
15470 req.Header = reqHeaders
15471 googleapi.Expand(req.URL, map[string]string{
15472 "parent": c.parent,
15473 })
15474 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15475 }
15476
15477
15478 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15479 gensupport.SetOptions(c.urlParams_, opts...)
15480 return c.doRequest("")
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510 }
15511
15512
15513
15514 type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct {
15515 s *Service
15516 name string
15517 urlParams_ gensupport.URLParams
15518 ifNoneMatch_ string
15519 ctx_ context.Context
15520 header_ http.Header
15521 }
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) History(name string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15547 c := &ProjectsLocationsDatasetsFhirStoresFhirHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15548 c.name = name
15549 return c
15550 }
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) At(at string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15565 c.urlParams_.Set("at", at)
15566 return c
15567 }
15568
15569
15570
15571 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Count(count int64) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15572 c.urlParams_.Set("count", fmt.Sprint(count))
15573 return c
15574 }
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Page(page string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15586 c.urlParams_.Set("page", page)
15587 return c
15588 }
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(since string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15600 c.urlParams_.Set("since", since)
15601 return c
15602 }
15603
15604
15605
15606
15607 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15608 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15609 return c
15610 }
15611
15612
15613
15614
15615
15616
15617 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15618 c.ifNoneMatch_ = entityTag
15619 return c
15620 }
15621
15622
15623
15624
15625 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15626 c.ctx_ = ctx
15627 return c
15628 }
15629
15630
15631
15632 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Header {
15633 if c.header_ == nil {
15634 c.header_ = make(http.Header)
15635 }
15636 return c.header_
15637 }
15638
15639 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) {
15640 reqHeaders := make(http.Header)
15641 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15642 for k, v := range c.header_ {
15643 reqHeaders[k] = v
15644 }
15645 reqHeaders.Set("User-Agent", c.s.userAgent())
15646 if c.ifNoneMatch_ != "" {
15647 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15648 }
15649 var body io.Reader = nil
15650 c.urlParams_.Set("alt", alt)
15651 c.urlParams_.Set("prettyPrint", "false")
15652 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/_history")
15653 urls += "?" + c.urlParams_.Encode()
15654 req, err := http.NewRequest("GET", urls, body)
15655 if err != nil {
15656 return nil, err
15657 }
15658 req.Header = reqHeaders
15659 googleapi.Expand(req.URL, map[string]string{
15660 "name": c.name,
15661 })
15662 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15663 }
15664
15665
15666 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15667 gensupport.SetOptions(c.urlParams_, opts...)
15668 return c.doRequest("")
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716 }
15717
15718
15719
15720 type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct {
15721 s *Service
15722 name string
15723 body_ io.Reader
15724 urlParams_ gensupport.URLParams
15725 ctx_ context.Context
15726 header_ http.Header
15727 }
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
15758 c := &ProjectsLocationsDatasetsFhirStoresFhirPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15759 c.name = name
15760 c.body_ = body_
15761 return c
15762 }
15763
15764
15765
15766
15767 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
15768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15769 return c
15770 }
15771
15772
15773
15774
15775 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
15776 c.ctx_ = ctx
15777 return c
15778 }
15779
15780
15781
15782 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header {
15783 if c.header_ == nil {
15784 c.header_ = make(http.Header)
15785 }
15786 return c.header_
15787 }
15788
15789 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) {
15790 reqHeaders := make(http.Header)
15791 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15792 for k, v := range c.header_ {
15793 reqHeaders[k] = v
15794 }
15795 reqHeaders.Set("User-Agent", c.s.userAgent())
15796 var body io.Reader = nil
15797 body = c.body_
15798 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
15799 urls += "?" + c.urlParams_.Encode()
15800 req, err := http.NewRequest("PATCH", urls, body)
15801 if err != nil {
15802 return nil, err
15803 }
15804 req.Header = reqHeaders
15805 googleapi.Expand(req.URL, map[string]string{
15806 "name": c.name,
15807 })
15808 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15809 }
15810
15811
15812 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15813 gensupport.SetOptions(c.urlParams_, opts...)
15814 return c.doRequest("")
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844 }
15845
15846
15847
15848 type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct {
15849 s *Service
15850 name string
15851 urlParams_ gensupport.URLParams
15852 ifNoneMatch_ string
15853 ctx_ context.Context
15854 header_ http.Header
15855 }
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15887 c := &ProjectsLocationsDatasetsFhirStoresFhirReadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15888 c.name = name
15889 return c
15890 }
15891
15892
15893
15894
15895 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15896 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15897 return c
15898 }
15899
15900
15901
15902
15903
15904
15905 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15906 c.ifNoneMatch_ = entityTag
15907 return c
15908 }
15909
15910
15911
15912
15913 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15914 c.ctx_ = ctx
15915 return c
15916 }
15917
15918
15919
15920 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header {
15921 if c.header_ == nil {
15922 c.header_ = make(http.Header)
15923 }
15924 return c.header_
15925 }
15926
15927 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) {
15928 reqHeaders := make(http.Header)
15929 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15930 for k, v := range c.header_ {
15931 reqHeaders[k] = v
15932 }
15933 reqHeaders.Set("User-Agent", c.s.userAgent())
15934 if c.ifNoneMatch_ != "" {
15935 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15936 }
15937 var body io.Reader = nil
15938 c.urlParams_.Set("alt", alt)
15939 c.urlParams_.Set("prettyPrint", "false")
15940 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
15941 urls += "?" + c.urlParams_.Encode()
15942 req, err := http.NewRequest("GET", urls, body)
15943 if err != nil {
15944 return nil, err
15945 }
15946 req.Header = reqHeaders
15947 googleapi.Expand(req.URL, map[string]string{
15948 "name": c.name,
15949 })
15950 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15951 }
15952
15953
15954 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15955 gensupport.SetOptions(c.urlParams_, opts...)
15956 return c.doRequest("")
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983 }
15984
15985
15986
15987 type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct {
15988 s *Service
15989 parent string
15990 searchresourcesrequest *SearchResourcesRequest
15991 urlParams_ gensupport.URLParams
15992 ctx_ context.Context
15993 header_ http.Header
15994 }
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
16084 c := &ProjectsLocationsDatasetsFhirStoresFhirSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16085 c.parent = parent
16086 c.searchresourcesrequest = searchresourcesrequest
16087 return c
16088 }
16089
16090
16091
16092
16093 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
16094 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16095 return c
16096 }
16097
16098
16099
16100
16101 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
16102 c.ctx_ = ctx
16103 return c
16104 }
16105
16106
16107
16108 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header {
16109 if c.header_ == nil {
16110 c.header_ = make(http.Header)
16111 }
16112 return c.header_
16113 }
16114
16115 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) {
16116 reqHeaders := make(http.Header)
16117 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16118 for k, v := range c.header_ {
16119 reqHeaders[k] = v
16120 }
16121 reqHeaders.Set("User-Agent", c.s.userAgent())
16122 var body io.Reader = nil
16123 body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
16124 if err != nil {
16125 return nil, err
16126 }
16127 reqHeaders.Set("Content-Type", "application/json")
16128 c.urlParams_.Set("alt", alt)
16129 c.urlParams_.Set("prettyPrint", "false")
16130 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/_search")
16131 urls += "?" + c.urlParams_.Encode()
16132 req, err := http.NewRequest("POST", urls, body)
16133 if err != nil {
16134 return nil, err
16135 }
16136 req.Header = reqHeaders
16137 googleapi.Expand(req.URL, map[string]string{
16138 "parent": c.parent,
16139 })
16140 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16141 }
16142
16143
16144 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16145 gensupport.SetOptions(c.urlParams_, opts...)
16146 return c.doRequest("")
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176 }
16177
16178
16179
16180 type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct {
16181 s *Service
16182 name string
16183 body_ io.Reader
16184 urlParams_ gensupport.URLParams
16185 ctx_ context.Context
16186 header_ http.Header
16187 }
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
16223 c := &ProjectsLocationsDatasetsFhirStoresFhirUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16224 c.name = name
16225 c.body_ = body_
16226 return c
16227 }
16228
16229
16230
16231
16232 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
16233 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16234 return c
16235 }
16236
16237
16238
16239
16240 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
16241 c.ctx_ = ctx
16242 return c
16243 }
16244
16245
16246
16247 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header {
16248 if c.header_ == nil {
16249 c.header_ = make(http.Header)
16250 }
16251 return c.header_
16252 }
16253
16254 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) {
16255 reqHeaders := make(http.Header)
16256 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16257 for k, v := range c.header_ {
16258 reqHeaders[k] = v
16259 }
16260 reqHeaders.Set("User-Agent", c.s.userAgent())
16261 var body io.Reader = nil
16262 body = c.body_
16263 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16264 urls += "?" + c.urlParams_.Encode()
16265 req, err := http.NewRequest("PUT", urls, body)
16266 if err != nil {
16267 return nil, err
16268 }
16269 req.Header = reqHeaders
16270 googleapi.Expand(req.URL, map[string]string{
16271 "name": c.name,
16272 })
16273 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16274 }
16275
16276
16277 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16278 gensupport.SetOptions(c.urlParams_, opts...)
16279 return c.doRequest("")
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309 }
16310
16311
16312
16313 type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct {
16314 s *Service
16315 name string
16316 urlParams_ gensupport.URLParams
16317 ifNoneMatch_ string
16318 ctx_ context.Context
16319 header_ http.Header
16320 }
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16344 c := &ProjectsLocationsDatasetsFhirStoresFhirVreadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16345 c.name = name
16346 return c
16347 }
16348
16349
16350
16351
16352 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16353 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16354 return c
16355 }
16356
16357
16358
16359
16360
16361
16362 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16363 c.ifNoneMatch_ = entityTag
16364 return c
16365 }
16366
16367
16368
16369
16370 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16371 c.ctx_ = ctx
16372 return c
16373 }
16374
16375
16376
16377 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header {
16378 if c.header_ == nil {
16379 c.header_ = make(http.Header)
16380 }
16381 return c.header_
16382 }
16383
16384 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) {
16385 reqHeaders := make(http.Header)
16386 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16387 for k, v := range c.header_ {
16388 reqHeaders[k] = v
16389 }
16390 reqHeaders.Set("User-Agent", c.s.userAgent())
16391 if c.ifNoneMatch_ != "" {
16392 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16393 }
16394 var body io.Reader = nil
16395 c.urlParams_.Set("alt", alt)
16396 c.urlParams_.Set("prettyPrint", "false")
16397 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16398 urls += "?" + c.urlParams_.Encode()
16399 req, err := http.NewRequest("GET", urls, body)
16400 if err != nil {
16401 return nil, err
16402 }
16403 req.Header = reqHeaders
16404 googleapi.Expand(req.URL, map[string]string{
16405 "name": c.name,
16406 })
16407 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16408 }
16409
16410
16411 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16412 gensupport.SetOptions(c.urlParams_, opts...)
16413 return c.doRequest("")
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440 }
16441
16442
16443
16444 type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct {
16445 s *Service
16446 parent string
16447 hl7v2store *Hl7V2Store
16448 urlParams_ gensupport.URLParams
16449 ctx_ context.Context
16450 header_ http.Header
16451 }
16452
16453
16454 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16455 c := &ProjectsLocationsDatasetsHl7V2StoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16456 c.parent = parent
16457 c.hl7v2store = hl7v2store
16458 return c
16459 }
16460
16461
16462
16463
16464
16465 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Hl7V2StoreId(hl7V2StoreId string) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16466 c.urlParams_.Set("hl7V2StoreId", hl7V2StoreId)
16467 return c
16468 }
16469
16470
16471
16472
16473 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16474 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16475 return c
16476 }
16477
16478
16479
16480
16481 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16482 c.ctx_ = ctx
16483 return c
16484 }
16485
16486
16487
16488 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header {
16489 if c.header_ == nil {
16490 c.header_ = make(http.Header)
16491 }
16492 return c.header_
16493 }
16494
16495 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) {
16496 reqHeaders := make(http.Header)
16497 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16498 for k, v := range c.header_ {
16499 reqHeaders[k] = v
16500 }
16501 reqHeaders.Set("User-Agent", c.s.userAgent())
16502 var body io.Reader = nil
16503 body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
16504 if err != nil {
16505 return nil, err
16506 }
16507 reqHeaders.Set("Content-Type", "application/json")
16508 c.urlParams_.Set("alt", alt)
16509 c.urlParams_.Set("prettyPrint", "false")
16510 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores")
16511 urls += "?" + c.urlParams_.Encode()
16512 req, err := http.NewRequest("POST", urls, body)
16513 if err != nil {
16514 return nil, err
16515 }
16516 req.Header = reqHeaders
16517 googleapi.Expand(req.URL, map[string]string{
16518 "parent": c.parent,
16519 })
16520 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16521 }
16522
16523
16524
16525
16526
16527
16528
16529
16530 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
16531 gensupport.SetOptions(c.urlParams_, opts...)
16532 res, err := c.doRequest("json")
16533 if res != nil && res.StatusCode == http.StatusNotModified {
16534 if res.Body != nil {
16535 res.Body.Close()
16536 }
16537 return nil, &googleapi.Error{
16538 Code: res.StatusCode,
16539 Header: res.Header,
16540 }
16541 }
16542 if err != nil {
16543 return nil, err
16544 }
16545 defer googleapi.CloseBody(res)
16546 if err := googleapi.CheckResponse(res); err != nil {
16547 return nil, err
16548 }
16549 ret := &Hl7V2Store{
16550 ServerResponse: googleapi.ServerResponse{
16551 Header: res.Header,
16552 HTTPStatusCode: res.StatusCode,
16553 },
16554 }
16555 target := &ret
16556 if err := gensupport.DecodeResponse(target, res); err != nil {
16557 return nil, err
16558 }
16559 return ret, nil
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594 }
16595
16596
16597
16598 type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct {
16599 s *Service
16600 name string
16601 urlParams_ gensupport.URLParams
16602 ctx_ context.Context
16603 header_ http.Header
16604 }
16605
16606
16607
16608
16609 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
16610 c := &ProjectsLocationsDatasetsHl7V2StoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16611 c.name = name
16612 return c
16613 }
16614
16615
16616
16617
16618 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
16619 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16620 return c
16621 }
16622
16623
16624
16625
16626 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
16627 c.ctx_ = ctx
16628 return c
16629 }
16630
16631
16632
16633 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header {
16634 if c.header_ == nil {
16635 c.header_ = make(http.Header)
16636 }
16637 return c.header_
16638 }
16639
16640 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) {
16641 reqHeaders := make(http.Header)
16642 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16643 for k, v := range c.header_ {
16644 reqHeaders[k] = v
16645 }
16646 reqHeaders.Set("User-Agent", c.s.userAgent())
16647 var body io.Reader = nil
16648 c.urlParams_.Set("alt", alt)
16649 c.urlParams_.Set("prettyPrint", "false")
16650 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16651 urls += "?" + c.urlParams_.Encode()
16652 req, err := http.NewRequest("DELETE", urls, body)
16653 if err != nil {
16654 return nil, err
16655 }
16656 req.Header = reqHeaders
16657 googleapi.Expand(req.URL, map[string]string{
16658 "name": c.name,
16659 })
16660 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16661 }
16662
16663
16664
16665
16666
16667
16668
16669
16670 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
16671 gensupport.SetOptions(c.urlParams_, opts...)
16672 res, err := c.doRequest("json")
16673 if res != nil && res.StatusCode == http.StatusNotModified {
16674 if res.Body != nil {
16675 res.Body.Close()
16676 }
16677 return nil, &googleapi.Error{
16678 Code: res.StatusCode,
16679 Header: res.Header,
16680 }
16681 }
16682 if err != nil {
16683 return nil, err
16684 }
16685 defer googleapi.CloseBody(res)
16686 if err := googleapi.CheckResponse(res); err != nil {
16687 return nil, err
16688 }
16689 ret := &Empty{
16690 ServerResponse: googleapi.ServerResponse{
16691 Header: res.Header,
16692 HTTPStatusCode: res.StatusCode,
16693 },
16694 }
16695 target := &ret
16696 if err := gensupport.DecodeResponse(target, res); err != nil {
16697 return nil, err
16698 }
16699 return ret, nil
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726 }
16727
16728
16729
16730 type ProjectsLocationsDatasetsHl7V2StoresGetCall struct {
16731 s *Service
16732 name string
16733 urlParams_ gensupport.URLParams
16734 ifNoneMatch_ string
16735 ctx_ context.Context
16736 header_ http.Header
16737 }
16738
16739
16740 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16741 c := &ProjectsLocationsDatasetsHl7V2StoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16742 c.name = name
16743 return c
16744 }
16745
16746
16747
16748
16749 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16750 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16751 return c
16752 }
16753
16754
16755
16756
16757
16758
16759 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16760 c.ifNoneMatch_ = entityTag
16761 return c
16762 }
16763
16764
16765
16766
16767 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16768 c.ctx_ = ctx
16769 return c
16770 }
16771
16772
16773
16774 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header {
16775 if c.header_ == nil {
16776 c.header_ = make(http.Header)
16777 }
16778 return c.header_
16779 }
16780
16781 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) {
16782 reqHeaders := make(http.Header)
16783 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16784 for k, v := range c.header_ {
16785 reqHeaders[k] = v
16786 }
16787 reqHeaders.Set("User-Agent", c.s.userAgent())
16788 if c.ifNoneMatch_ != "" {
16789 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16790 }
16791 var body io.Reader = nil
16792 c.urlParams_.Set("alt", alt)
16793 c.urlParams_.Set("prettyPrint", "false")
16794 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16795 urls += "?" + c.urlParams_.Encode()
16796 req, err := http.NewRequest("GET", urls, body)
16797 if err != nil {
16798 return nil, err
16799 }
16800 req.Header = reqHeaders
16801 googleapi.Expand(req.URL, map[string]string{
16802 "name": c.name,
16803 })
16804 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16805 }
16806
16807
16808
16809
16810
16811
16812
16813
16814 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
16815 gensupport.SetOptions(c.urlParams_, opts...)
16816 res, err := c.doRequest("json")
16817 if res != nil && res.StatusCode == http.StatusNotModified {
16818 if res.Body != nil {
16819 res.Body.Close()
16820 }
16821 return nil, &googleapi.Error{
16822 Code: res.StatusCode,
16823 Header: res.Header,
16824 }
16825 }
16826 if err != nil {
16827 return nil, err
16828 }
16829 defer googleapi.CloseBody(res)
16830 if err := googleapi.CheckResponse(res); err != nil {
16831 return nil, err
16832 }
16833 ret := &Hl7V2Store{
16834 ServerResponse: googleapi.ServerResponse{
16835 Header: res.Header,
16836 HTTPStatusCode: res.StatusCode,
16837 },
16838 }
16839 target := &ret
16840 if err := gensupport.DecodeResponse(target, res); err != nil {
16841 return nil, err
16842 }
16843 return ret, nil
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870 }
16871
16872
16873
16874 type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct {
16875 s *Service
16876 resource string
16877 urlParams_ gensupport.URLParams
16878 ifNoneMatch_ string
16879 ctx_ context.Context
16880 header_ http.Header
16881 }
16882
16883
16884
16885
16886
16887 func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16888 c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16889 c.resource = resource
16890 return c
16891 }
16892
16893
16894
16895
16896
16897
16898
16899
16900 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16901 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
16902 return c
16903 }
16904
16905
16906
16907
16908 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16909 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16910 return c
16911 }
16912
16913
16914
16915
16916
16917
16918 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16919 c.ifNoneMatch_ = entityTag
16920 return c
16921 }
16922
16923
16924
16925
16926 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16927 c.ctx_ = ctx
16928 return c
16929 }
16930
16931
16932
16933 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header {
16934 if c.header_ == nil {
16935 c.header_ = make(http.Header)
16936 }
16937 return c.header_
16938 }
16939
16940 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
16941 reqHeaders := make(http.Header)
16942 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16943 for k, v := range c.header_ {
16944 reqHeaders[k] = v
16945 }
16946 reqHeaders.Set("User-Agent", c.s.userAgent())
16947 if c.ifNoneMatch_ != "" {
16948 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16949 }
16950 var body io.Reader = nil
16951 c.urlParams_.Set("alt", alt)
16952 c.urlParams_.Set("prettyPrint", "false")
16953 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
16954 urls += "?" + c.urlParams_.Encode()
16955 req, err := http.NewRequest("GET", urls, body)
16956 if err != nil {
16957 return nil, err
16958 }
16959 req.Header = reqHeaders
16960 googleapi.Expand(req.URL, map[string]string{
16961 "resource": c.resource,
16962 })
16963 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16964 }
16965
16966
16967
16968
16969
16970
16971
16972
16973 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
16974 gensupport.SetOptions(c.urlParams_, opts...)
16975 res, err := c.doRequest("json")
16976 if res != nil && res.StatusCode == http.StatusNotModified {
16977 if res.Body != nil {
16978 res.Body.Close()
16979 }
16980 return nil, &googleapi.Error{
16981 Code: res.StatusCode,
16982 Header: res.Header,
16983 }
16984 }
16985 if err != nil {
16986 return nil, err
16987 }
16988 defer googleapi.CloseBody(res)
16989 if err := googleapi.CheckResponse(res); err != nil {
16990 return nil, err
16991 }
16992 ret := &Policy{
16993 ServerResponse: googleapi.ServerResponse{
16994 Header: res.Header,
16995 HTTPStatusCode: res.StatusCode,
16996 },
16997 }
16998 target := &ret
16999 if err := gensupport.DecodeResponse(target, res); err != nil {
17000 return nil, err
17001 }
17002 return ret, nil
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035 }
17036
17037
17038
17039 type ProjectsLocationsDatasetsHl7V2StoresListCall struct {
17040 s *Service
17041 parent string
17042 urlParams_ gensupport.URLParams
17043 ifNoneMatch_ string
17044 ctx_ context.Context
17045 header_ http.Header
17046 }
17047
17048
17049 func (r *ProjectsLocationsDatasetsHl7V2StoresService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17050 c := &ProjectsLocationsDatasetsHl7V2StoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17051 c.parent = parent
17052 return c
17053 }
17054
17055
17056
17057
17058
17059
17060
17061
17062 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17063 c.urlParams_.Set("filter", filter)
17064 return c
17065 }
17066
17067
17068
17069
17070 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17071 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17072 return c
17073 }
17074
17075
17076
17077
17078 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17079 c.urlParams_.Set("pageToken", pageToken)
17080 return c
17081 }
17082
17083
17084
17085
17086 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17087 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17088 return c
17089 }
17090
17091
17092
17093
17094
17095
17096 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17097 c.ifNoneMatch_ = entityTag
17098 return c
17099 }
17100
17101
17102
17103
17104 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17105 c.ctx_ = ctx
17106 return c
17107 }
17108
17109
17110
17111 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header {
17112 if c.header_ == nil {
17113 c.header_ = make(http.Header)
17114 }
17115 return c.header_
17116 }
17117
17118 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) {
17119 reqHeaders := make(http.Header)
17120 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17121 for k, v := range c.header_ {
17122 reqHeaders[k] = v
17123 }
17124 reqHeaders.Set("User-Agent", c.s.userAgent())
17125 if c.ifNoneMatch_ != "" {
17126 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17127 }
17128 var body io.Reader = nil
17129 c.urlParams_.Set("alt", alt)
17130 c.urlParams_.Set("prettyPrint", "false")
17131 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores")
17132 urls += "?" + c.urlParams_.Encode()
17133 req, err := http.NewRequest("GET", urls, body)
17134 if err != nil {
17135 return nil, err
17136 }
17137 req.Header = reqHeaders
17138 googleapi.Expand(req.URL, map[string]string{
17139 "parent": c.parent,
17140 })
17141 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17142 }
17143
17144
17145
17146
17147
17148
17149
17150
17151 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.CallOption) (*ListHl7V2StoresResponse, error) {
17152 gensupport.SetOptions(c.urlParams_, opts...)
17153 res, err := c.doRequest("json")
17154 if res != nil && res.StatusCode == http.StatusNotModified {
17155 if res.Body != nil {
17156 res.Body.Close()
17157 }
17158 return nil, &googleapi.Error{
17159 Code: res.StatusCode,
17160 Header: res.Header,
17161 }
17162 }
17163 if err != nil {
17164 return nil, err
17165 }
17166 defer googleapi.CloseBody(res)
17167 if err := googleapi.CheckResponse(res); err != nil {
17168 return nil, err
17169 }
17170 ret := &ListHl7V2StoresResponse{
17171 ServerResponse: googleapi.ServerResponse{
17172 Header: res.Header,
17173 HTTPStatusCode: res.StatusCode,
17174 },
17175 }
17176 target := &ret
17177 if err := gensupport.DecodeResponse(target, res); err != nil {
17178 return nil, err
17179 }
17180 return ret, nil
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223 }
17224
17225
17226
17227
17228 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context, f func(*ListHl7V2StoresResponse) error) error {
17229 c.ctx_ = ctx
17230 defer c.PageToken(c.urlParams_.Get("pageToken"))
17231 for {
17232 x, err := c.Do()
17233 if err != nil {
17234 return err
17235 }
17236 if err := f(x); err != nil {
17237 return err
17238 }
17239 if x.NextPageToken == "" {
17240 return nil
17241 }
17242 c.PageToken(x.NextPageToken)
17243 }
17244 }
17245
17246
17247
17248 type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct {
17249 s *Service
17250 name string
17251 hl7v2store *Hl7V2Store
17252 urlParams_ gensupport.URLParams
17253 ctx_ context.Context
17254 header_ http.Header
17255 }
17256
17257
17258 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17259 c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17260 c.name = name
17261 c.hl7v2store = hl7v2store
17262 return c
17263 }
17264
17265
17266
17267
17268
17269
17270
17271 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17272 c.urlParams_.Set("updateMask", updateMask)
17273 return c
17274 }
17275
17276
17277
17278
17279 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17280 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17281 return c
17282 }
17283
17284
17285
17286
17287 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17288 c.ctx_ = ctx
17289 return c
17290 }
17291
17292
17293
17294 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header {
17295 if c.header_ == nil {
17296 c.header_ = make(http.Header)
17297 }
17298 return c.header_
17299 }
17300
17301 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) {
17302 reqHeaders := make(http.Header)
17303 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17304 for k, v := range c.header_ {
17305 reqHeaders[k] = v
17306 }
17307 reqHeaders.Set("User-Agent", c.s.userAgent())
17308 var body io.Reader = nil
17309 body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
17310 if err != nil {
17311 return nil, err
17312 }
17313 reqHeaders.Set("Content-Type", "application/json")
17314 c.urlParams_.Set("alt", alt)
17315 c.urlParams_.Set("prettyPrint", "false")
17316 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
17317 urls += "?" + c.urlParams_.Encode()
17318 req, err := http.NewRequest("PATCH", urls, body)
17319 if err != nil {
17320 return nil, err
17321 }
17322 req.Header = reqHeaders
17323 googleapi.Expand(req.URL, map[string]string{
17324 "name": c.name,
17325 })
17326 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17327 }
17328
17329
17330
17331
17332
17333
17334
17335
17336 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
17337 gensupport.SetOptions(c.urlParams_, opts...)
17338 res, err := c.doRequest("json")
17339 if res != nil && res.StatusCode == http.StatusNotModified {
17340 if res.Body != nil {
17341 res.Body.Close()
17342 }
17343 return nil, &googleapi.Error{
17344 Code: res.StatusCode,
17345 Header: res.Header,
17346 }
17347 }
17348 if err != nil {
17349 return nil, err
17350 }
17351 defer googleapi.CloseBody(res)
17352 if err := googleapi.CheckResponse(res); err != nil {
17353 return nil, err
17354 }
17355 ret := &Hl7V2Store{
17356 ServerResponse: googleapi.ServerResponse{
17357 Header: res.Header,
17358 HTTPStatusCode: res.StatusCode,
17359 },
17360 }
17361 target := &ret
17362 if err := gensupport.DecodeResponse(target, res); err != nil {
17363 return nil, err
17364 }
17365 return ret, nil
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401 }
17402
17403
17404
17405 type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct {
17406 s *Service
17407 resource string
17408 setiampolicyrequest *SetIamPolicyRequest
17409 urlParams_ gensupport.URLParams
17410 ctx_ context.Context
17411 header_ http.Header
17412 }
17413
17414
17415
17416
17417 func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
17418 c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17419 c.resource = resource
17420 c.setiampolicyrequest = setiampolicyrequest
17421 return c
17422 }
17423
17424
17425
17426
17427 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
17428 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17429 return c
17430 }
17431
17432
17433
17434
17435 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
17436 c.ctx_ = ctx
17437 return c
17438 }
17439
17440
17441
17442 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header {
17443 if c.header_ == nil {
17444 c.header_ = make(http.Header)
17445 }
17446 return c.header_
17447 }
17448
17449 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
17450 reqHeaders := make(http.Header)
17451 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17452 for k, v := range c.header_ {
17453 reqHeaders[k] = v
17454 }
17455 reqHeaders.Set("User-Agent", c.s.userAgent())
17456 var body io.Reader = nil
17457 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
17458 if err != nil {
17459 return nil, err
17460 }
17461 reqHeaders.Set("Content-Type", "application/json")
17462 c.urlParams_.Set("alt", alt)
17463 c.urlParams_.Set("prettyPrint", "false")
17464 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
17465 urls += "?" + c.urlParams_.Encode()
17466 req, err := http.NewRequest("POST", urls, body)
17467 if err != nil {
17468 return nil, err
17469 }
17470 req.Header = reqHeaders
17471 googleapi.Expand(req.URL, map[string]string{
17472 "resource": c.resource,
17473 })
17474 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17475 }
17476
17477
17478
17479
17480
17481
17482
17483
17484 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
17485 gensupport.SetOptions(c.urlParams_, opts...)
17486 res, err := c.doRequest("json")
17487 if res != nil && res.StatusCode == http.StatusNotModified {
17488 if res.Body != nil {
17489 res.Body.Close()
17490 }
17491 return nil, &googleapi.Error{
17492 Code: res.StatusCode,
17493 Header: res.Header,
17494 }
17495 }
17496 if err != nil {
17497 return nil, err
17498 }
17499 defer googleapi.CloseBody(res)
17500 if err := googleapi.CheckResponse(res); err != nil {
17501 return nil, err
17502 }
17503 ret := &Policy{
17504 ServerResponse: googleapi.ServerResponse{
17505 Header: res.Header,
17506 HTTPStatusCode: res.StatusCode,
17507 },
17508 }
17509 target := &ret
17510 if err := gensupport.DecodeResponse(target, res); err != nil {
17511 return nil, err
17512 }
17513 return ret, nil
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543 }
17544
17545
17546
17547 type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct {
17548 s *Service
17549 resource string
17550 testiampermissionsrequest *TestIamPermissionsRequest
17551 urlParams_ gensupport.URLParams
17552 ctx_ context.Context
17553 header_ http.Header
17554 }
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567 func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
17568 c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17569 c.resource = resource
17570 c.testiampermissionsrequest = testiampermissionsrequest
17571 return c
17572 }
17573
17574
17575
17576
17577 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
17578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17579 return c
17580 }
17581
17582
17583
17584
17585 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
17586 c.ctx_ = ctx
17587 return c
17588 }
17589
17590
17591
17592 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header {
17593 if c.header_ == nil {
17594 c.header_ = make(http.Header)
17595 }
17596 return c.header_
17597 }
17598
17599 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
17600 reqHeaders := make(http.Header)
17601 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17602 for k, v := range c.header_ {
17603 reqHeaders[k] = v
17604 }
17605 reqHeaders.Set("User-Agent", c.s.userAgent())
17606 var body io.Reader = nil
17607 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
17608 if err != nil {
17609 return nil, err
17610 }
17611 reqHeaders.Set("Content-Type", "application/json")
17612 c.urlParams_.Set("alt", alt)
17613 c.urlParams_.Set("prettyPrint", "false")
17614 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
17615 urls += "?" + c.urlParams_.Encode()
17616 req, err := http.NewRequest("POST", urls, body)
17617 if err != nil {
17618 return nil, err
17619 }
17620 req.Header = reqHeaders
17621 googleapi.Expand(req.URL, map[string]string{
17622 "resource": c.resource,
17623 })
17624 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17625 }
17626
17627
17628
17629
17630
17631
17632
17633
17634 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
17635 gensupport.SetOptions(c.urlParams_, opts...)
17636 res, err := c.doRequest("json")
17637 if res != nil && res.StatusCode == http.StatusNotModified {
17638 if res.Body != nil {
17639 res.Body.Close()
17640 }
17641 return nil, &googleapi.Error{
17642 Code: res.StatusCode,
17643 Header: res.Header,
17644 }
17645 }
17646 if err != nil {
17647 return nil, err
17648 }
17649 defer googleapi.CloseBody(res)
17650 if err := googleapi.CheckResponse(res); err != nil {
17651 return nil, err
17652 }
17653 ret := &TestIamPermissionsResponse{
17654 ServerResponse: googleapi.ServerResponse{
17655 Header: res.Header,
17656 HTTPStatusCode: res.StatusCode,
17657 },
17658 }
17659 target := &ret
17660 if err := gensupport.DecodeResponse(target, res); err != nil {
17661 return nil, err
17662 }
17663 return ret, nil
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693 }
17694
17695
17696
17697 type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct {
17698 s *Service
17699 parent string
17700 createmessagerequest *CreateMessageRequest
17701 urlParams_ gensupport.URLParams
17702 ctx_ context.Context
17703 header_ http.Header
17704 }
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
17718 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17719 c.parent = parent
17720 c.createmessagerequest = createmessagerequest
17721 return c
17722 }
17723
17724
17725
17726
17727 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
17728 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17729 return c
17730 }
17731
17732
17733
17734
17735 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
17736 c.ctx_ = ctx
17737 return c
17738 }
17739
17740
17741
17742 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.Header {
17743 if c.header_ == nil {
17744 c.header_ = make(http.Header)
17745 }
17746 return c.header_
17747 }
17748
17749 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
17750 reqHeaders := make(http.Header)
17751 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17752 for k, v := range c.header_ {
17753 reqHeaders[k] = v
17754 }
17755 reqHeaders.Set("User-Agent", c.s.userAgent())
17756 var body io.Reader = nil
17757 body, err := googleapi.WithoutDataWrapper.JSONReader(c.createmessagerequest)
17758 if err != nil {
17759 return nil, err
17760 }
17761 reqHeaders.Set("Content-Type", "application/json")
17762 c.urlParams_.Set("alt", alt)
17763 c.urlParams_.Set("prettyPrint", "false")
17764 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages")
17765 urls += "?" + c.urlParams_.Encode()
17766 req, err := http.NewRequest("POST", urls, body)
17767 if err != nil {
17768 return nil, err
17769 }
17770 req.Header = reqHeaders
17771 googleapi.Expand(req.URL, map[string]string{
17772 "parent": c.parent,
17773 })
17774 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17775 }
17776
17777
17778
17779
17780
17781
17782
17783
17784 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
17785 gensupport.SetOptions(c.urlParams_, opts...)
17786 res, err := c.doRequest("json")
17787 if res != nil && res.StatusCode == http.StatusNotModified {
17788 if res.Body != nil {
17789 res.Body.Close()
17790 }
17791 return nil, &googleapi.Error{
17792 Code: res.StatusCode,
17793 Header: res.Header,
17794 }
17795 }
17796 if err != nil {
17797 return nil, err
17798 }
17799 defer googleapi.CloseBody(res)
17800 if err := googleapi.CheckResponse(res); err != nil {
17801 return nil, err
17802 }
17803 ret := &Message{
17804 ServerResponse: googleapi.ServerResponse{
17805 Header: res.Header,
17806 HTTPStatusCode: res.StatusCode,
17807 },
17808 }
17809 target := &ret
17810 if err := gensupport.DecodeResponse(target, res); err != nil {
17811 return nil, err
17812 }
17813 return ret, nil
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843 }
17844
17845
17846
17847 type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct {
17848 s *Service
17849 name string
17850 urlParams_ gensupport.URLParams
17851 ctx_ context.Context
17852 header_ http.Header
17853 }
17854
17855
17856 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
17857 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17858 c.name = name
17859 return c
17860 }
17861
17862
17863
17864
17865 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
17866 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17867 return c
17868 }
17869
17870
17871
17872
17873 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
17874 c.ctx_ = ctx
17875 return c
17876 }
17877
17878
17879
17880 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.Header {
17881 if c.header_ == nil {
17882 c.header_ = make(http.Header)
17883 }
17884 return c.header_
17885 }
17886
17887 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
17888 reqHeaders := make(http.Header)
17889 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17890 for k, v := range c.header_ {
17891 reqHeaders[k] = v
17892 }
17893 reqHeaders.Set("User-Agent", c.s.userAgent())
17894 var body io.Reader = nil
17895 c.urlParams_.Set("alt", alt)
17896 c.urlParams_.Set("prettyPrint", "false")
17897 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
17898 urls += "?" + c.urlParams_.Encode()
17899 req, err := http.NewRequest("DELETE", urls, body)
17900 if err != nil {
17901 return nil, err
17902 }
17903 req.Header = reqHeaders
17904 googleapi.Expand(req.URL, map[string]string{
17905 "name": c.name,
17906 })
17907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17908 }
17909
17910
17911
17912
17913
17914
17915
17916
17917 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
17918 gensupport.SetOptions(c.urlParams_, opts...)
17919 res, err := c.doRequest("json")
17920 if res != nil && res.StatusCode == http.StatusNotModified {
17921 if res.Body != nil {
17922 res.Body.Close()
17923 }
17924 return nil, &googleapi.Error{
17925 Code: res.StatusCode,
17926 Header: res.Header,
17927 }
17928 }
17929 if err != nil {
17930 return nil, err
17931 }
17932 defer googleapi.CloseBody(res)
17933 if err := googleapi.CheckResponse(res); err != nil {
17934 return nil, err
17935 }
17936 ret := &Empty{
17937 ServerResponse: googleapi.ServerResponse{
17938 Header: res.Header,
17939 HTTPStatusCode: res.StatusCode,
17940 },
17941 }
17942 target := &ret
17943 if err := gensupport.DecodeResponse(target, res); err != nil {
17944 return nil, err
17945 }
17946 return ret, nil
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973 }
17974
17975
17976
17977 type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct {
17978 s *Service
17979 name string
17980 urlParams_ gensupport.URLParams
17981 ifNoneMatch_ string
17982 ctx_ context.Context
17983 header_ http.Header
17984 }
17985
17986
17987 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
17988 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17989 c.name = name
17990 return c
17991 }
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18004 c.urlParams_.Set("view", view)
18005 return c
18006 }
18007
18008
18009
18010
18011 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18012 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18013 return c
18014 }
18015
18016
18017
18018
18019
18020
18021 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18022 c.ifNoneMatch_ = entityTag
18023 return c
18024 }
18025
18026
18027
18028
18029 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18030 c.ctx_ = ctx
18031 return c
18032 }
18033
18034
18035
18036 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Header {
18037 if c.header_ == nil {
18038 c.header_ = make(http.Header)
18039 }
18040 return c.header_
18041 }
18042
18043 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) {
18044 reqHeaders := make(http.Header)
18045 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18046 for k, v := range c.header_ {
18047 reqHeaders[k] = v
18048 }
18049 reqHeaders.Set("User-Agent", c.s.userAgent())
18050 if c.ifNoneMatch_ != "" {
18051 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18052 }
18053 var body io.Reader = nil
18054 c.urlParams_.Set("alt", alt)
18055 c.urlParams_.Set("prettyPrint", "false")
18056 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
18057 urls += "?" + c.urlParams_.Encode()
18058 req, err := http.NewRequest("GET", urls, body)
18059 if err != nil {
18060 return nil, err
18061 }
18062 req.Header = reqHeaders
18063 googleapi.Expand(req.URL, map[string]string{
18064 "name": c.name,
18065 })
18066 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18067 }
18068
18069
18070
18071
18072
18073
18074
18075
18076 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) {
18077 gensupport.SetOptions(c.urlParams_, opts...)
18078 res, err := c.doRequest("json")
18079 if res != nil && res.StatusCode == http.StatusNotModified {
18080 if res.Body != nil {
18081 res.Body.Close()
18082 }
18083 return nil, &googleapi.Error{
18084 Code: res.StatusCode,
18085 Header: res.Header,
18086 }
18087 }
18088 if err != nil {
18089 return nil, err
18090 }
18091 defer googleapi.CloseBody(res)
18092 if err := googleapi.CheckResponse(res); err != nil {
18093 return nil, err
18094 }
18095 ret := &Message{
18096 ServerResponse: googleapi.ServerResponse{
18097 Header: res.Header,
18098 HTTPStatusCode: res.StatusCode,
18099 },
18100 }
18101 target := &ret
18102 if err := gensupport.DecodeResponse(target, res); err != nil {
18103 return nil, err
18104 }
18105 return ret, nil
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143 }
18144
18145
18146
18147 type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct {
18148 s *Service
18149 parent string
18150 ingestmessagerequest *IngestMessageRequest
18151 urlParams_ gensupport.URLParams
18152 ctx_ context.Context
18153 header_ http.Header
18154 }
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent string, ingestmessagerequest *IngestMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
18166 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18167 c.parent = parent
18168 c.ingestmessagerequest = ingestmessagerequest
18169 return c
18170 }
18171
18172
18173
18174
18175 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
18176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18177 return c
18178 }
18179
18180
18181
18182
18183 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
18184 c.ctx_ = ctx
18185 return c
18186 }
18187
18188
18189
18190 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.Header {
18191 if c.header_ == nil {
18192 c.header_ = make(http.Header)
18193 }
18194 return c.header_
18195 }
18196
18197 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) {
18198 reqHeaders := make(http.Header)
18199 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18200 for k, v := range c.header_ {
18201 reqHeaders[k] = v
18202 }
18203 reqHeaders.Set("User-Agent", c.s.userAgent())
18204 var body io.Reader = nil
18205 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ingestmessagerequest)
18206 if err != nil {
18207 return nil, err
18208 }
18209 reqHeaders.Set("Content-Type", "application/json")
18210 c.urlParams_.Set("alt", alt)
18211 c.urlParams_.Set("prettyPrint", "false")
18212 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages:ingest")
18213 urls += "?" + c.urlParams_.Encode()
18214 req, err := http.NewRequest("POST", urls, body)
18215 if err != nil {
18216 return nil, err
18217 }
18218 req.Header = reqHeaders
18219 googleapi.Expand(req.URL, map[string]string{
18220 "parent": c.parent,
18221 })
18222 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18223 }
18224
18225
18226
18227
18228
18229
18230
18231
18232 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...googleapi.CallOption) (*IngestMessageResponse, error) {
18233 gensupport.SetOptions(c.urlParams_, opts...)
18234 res, err := c.doRequest("json")
18235 if res != nil && res.StatusCode == http.StatusNotModified {
18236 if res.Body != nil {
18237 res.Body.Close()
18238 }
18239 return nil, &googleapi.Error{
18240 Code: res.StatusCode,
18241 Header: res.Header,
18242 }
18243 }
18244 if err != nil {
18245 return nil, err
18246 }
18247 defer googleapi.CloseBody(res)
18248 if err := googleapi.CheckResponse(res); err != nil {
18249 return nil, err
18250 }
18251 ret := &IngestMessageResponse{
18252 ServerResponse: googleapi.ServerResponse{
18253 Header: res.Header,
18254 HTTPStatusCode: res.StatusCode,
18255 },
18256 }
18257 target := &ret
18258 if err := gensupport.DecodeResponse(target, res); err != nil {
18259 return nil, err
18260 }
18261 return ret, nil
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291 }
18292
18293
18294
18295 type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct {
18296 s *Service
18297 parent string
18298 urlParams_ gensupport.URLParams
18299 ifNoneMatch_ string
18300 ctx_ context.Context
18301 header_ http.Header
18302 }
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18313 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18314 c.parent = parent
18315 return c
18316 }
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18385 c.urlParams_.Set("filter", filter)
18386 return c
18387 }
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18399 c.urlParams_.Set("orderBy", orderBy)
18400 return c
18401 }
18402
18403
18404
18405
18406 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18407 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18408 return c
18409 }
18410
18411
18412
18413
18414 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18415 c.urlParams_.Set("pageToken", pageToken)
18416 return c
18417 }
18418
18419
18420
18421
18422 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18423 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18424 return c
18425 }
18426
18427
18428
18429
18430
18431
18432 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18433 c.ifNoneMatch_ = entityTag
18434 return c
18435 }
18436
18437
18438
18439
18440 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18441 c.ctx_ = ctx
18442 return c
18443 }
18444
18445
18446
18447 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Header {
18448 if c.header_ == nil {
18449 c.header_ = make(http.Header)
18450 }
18451 return c.header_
18452 }
18453
18454 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) {
18455 reqHeaders := make(http.Header)
18456 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18457 for k, v := range c.header_ {
18458 reqHeaders[k] = v
18459 }
18460 reqHeaders.Set("User-Agent", c.s.userAgent())
18461 if c.ifNoneMatch_ != "" {
18462 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18463 }
18464 var body io.Reader = nil
18465 c.urlParams_.Set("alt", alt)
18466 c.urlParams_.Set("prettyPrint", "false")
18467 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages")
18468 urls += "?" + c.urlParams_.Encode()
18469 req, err := http.NewRequest("GET", urls, body)
18470 if err != nil {
18471 return nil, err
18472 }
18473 req.Header = reqHeaders
18474 googleapi.Expand(req.URL, map[string]string{
18475 "parent": c.parent,
18476 })
18477 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18478 }
18479
18480
18481
18482
18483
18484
18485
18486
18487 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error) {
18488 gensupport.SetOptions(c.urlParams_, opts...)
18489 res, err := c.doRequest("json")
18490 if res != nil && res.StatusCode == http.StatusNotModified {
18491 if res.Body != nil {
18492 res.Body.Close()
18493 }
18494 return nil, &googleapi.Error{
18495 Code: res.StatusCode,
18496 Header: res.Header,
18497 }
18498 }
18499 if err != nil {
18500 return nil, err
18501 }
18502 defer googleapi.CloseBody(res)
18503 if err := googleapi.CheckResponse(res); err != nil {
18504 return nil, err
18505 }
18506 ret := &ListMessagesResponse{
18507 ServerResponse: googleapi.ServerResponse{
18508 Header: res.Header,
18509 HTTPStatusCode: res.StatusCode,
18510 },
18511 }
18512 target := &ret
18513 if err := gensupport.DecodeResponse(target, res); err != nil {
18514 return nil, err
18515 }
18516 return ret, nil
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564 }
18565
18566
18567
18568
18569 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error {
18570 c.ctx_ = ctx
18571 defer c.PageToken(c.urlParams_.Get("pageToken"))
18572 for {
18573 x, err := c.Do()
18574 if err != nil {
18575 return err
18576 }
18577 if err := f(x); err != nil {
18578 return err
18579 }
18580 if x.NextPageToken == "" {
18581 return nil
18582 }
18583 c.PageToken(x.NextPageToken)
18584 }
18585 }
18586
18587
18588
18589 type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct {
18590 s *Service
18591 name string
18592 message *Message
18593 urlParams_ gensupport.URLParams
18594 ctx_ context.Context
18595 header_ http.Header
18596 }
18597
18598
18599 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18600 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18601 c.name = name
18602 c.message = message
18603 return c
18604 }
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18617 c.urlParams_.Set("updateMask", updateMask)
18618 return c
18619 }
18620
18621
18622
18623
18624 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18625 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18626 return c
18627 }
18628
18629
18630
18631
18632 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18633 c.ctx_ = ctx
18634 return c
18635 }
18636
18637
18638
18639 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.Header {
18640 if c.header_ == nil {
18641 c.header_ = make(http.Header)
18642 }
18643 return c.header_
18644 }
18645
18646 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) {
18647 reqHeaders := make(http.Header)
18648 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18649 for k, v := range c.header_ {
18650 reqHeaders[k] = v
18651 }
18652 reqHeaders.Set("User-Agent", c.s.userAgent())
18653 var body io.Reader = nil
18654 body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
18655 if err != nil {
18656 return nil, err
18657 }
18658 reqHeaders.Set("Content-Type", "application/json")
18659 c.urlParams_.Set("alt", alt)
18660 c.urlParams_.Set("prettyPrint", "false")
18661 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
18662 urls += "?" + c.urlParams_.Encode()
18663 req, err := http.NewRequest("PATCH", urls, body)
18664 if err != nil {
18665 return nil, err
18666 }
18667 req.Header = reqHeaders
18668 googleapi.Expand(req.URL, map[string]string{
18669 "name": c.name,
18670 })
18671 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18672 }
18673
18674
18675
18676
18677
18678
18679
18680
18681 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, error) {
18682 gensupport.SetOptions(c.urlParams_, opts...)
18683 res, err := c.doRequest("json")
18684 if res != nil && res.StatusCode == http.StatusNotModified {
18685 if res.Body != nil {
18686 res.Body.Close()
18687 }
18688 return nil, &googleapi.Error{
18689 Code: res.StatusCode,
18690 Header: res.Header,
18691 }
18692 }
18693 if err != nil {
18694 return nil, err
18695 }
18696 defer googleapi.CloseBody(res)
18697 if err := googleapi.CheckResponse(res); err != nil {
18698 return nil, err
18699 }
18700 ret := &Message{
18701 ServerResponse: googleapi.ServerResponse{
18702 Header: res.Header,
18703 HTTPStatusCode: res.StatusCode,
18704 },
18705 }
18706 target := &ret
18707 if err := gensupport.DecodeResponse(target, res); err != nil {
18708 return nil, err
18709 }
18710 return ret, nil
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746 }
18747
18748
18749
18750 type ProjectsLocationsDatasetsOperationsGetCall struct {
18751 s *Service
18752 name string
18753 urlParams_ gensupport.URLParams
18754 ifNoneMatch_ string
18755 ctx_ context.Context
18756 header_ http.Header
18757 }
18758
18759
18760
18761
18762
18763
18764 func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall {
18765 c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18766 c.name = name
18767 return c
18768 }
18769
18770
18771
18772
18773 func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall {
18774 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18775 return c
18776 }
18777
18778
18779
18780
18781
18782
18783 func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall {
18784 c.ifNoneMatch_ = entityTag
18785 return c
18786 }
18787
18788
18789
18790
18791 func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall {
18792 c.ctx_ = ctx
18793 return c
18794 }
18795
18796
18797
18798 func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header {
18799 if c.header_ == nil {
18800 c.header_ = make(http.Header)
18801 }
18802 return c.header_
18803 }
18804
18805 func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
18806 reqHeaders := make(http.Header)
18807 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18808 for k, v := range c.header_ {
18809 reqHeaders[k] = v
18810 }
18811 reqHeaders.Set("User-Agent", c.s.userAgent())
18812 if c.ifNoneMatch_ != "" {
18813 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18814 }
18815 var body io.Reader = nil
18816 c.urlParams_.Set("alt", alt)
18817 c.urlParams_.Set("prettyPrint", "false")
18818 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
18819 urls += "?" + c.urlParams_.Encode()
18820 req, err := http.NewRequest("GET", urls, body)
18821 if err != nil {
18822 return nil, err
18823 }
18824 req.Header = reqHeaders
18825 googleapi.Expand(req.URL, map[string]string{
18826 "name": c.name,
18827 })
18828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18829 }
18830
18831
18832
18833
18834
18835
18836
18837
18838 func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
18839 gensupport.SetOptions(c.urlParams_, opts...)
18840 res, err := c.doRequest("json")
18841 if res != nil && res.StatusCode == http.StatusNotModified {
18842 if res.Body != nil {
18843 res.Body.Close()
18844 }
18845 return nil, &googleapi.Error{
18846 Code: res.StatusCode,
18847 Header: res.Header,
18848 }
18849 }
18850 if err != nil {
18851 return nil, err
18852 }
18853 defer googleapi.CloseBody(res)
18854 if err := googleapi.CheckResponse(res); err != nil {
18855 return nil, err
18856 }
18857 ret := &Operation{
18858 ServerResponse: googleapi.ServerResponse{
18859 Header: res.Header,
18860 HTTPStatusCode: res.StatusCode,
18861 },
18862 }
18863 target := &ret
18864 if err := gensupport.DecodeResponse(target, res); err != nil {
18865 return nil, err
18866 }
18867 return ret, nil
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894 }
18895
18896
18897
18898 type ProjectsLocationsDatasetsOperationsListCall struct {
18899 s *Service
18900 name string
18901 urlParams_ gensupport.URLParams
18902 ifNoneMatch_ string
18903 ctx_ context.Context
18904 header_ http.Header
18905 }
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924 func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall {
18925 c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18926 c.name = name
18927 return c
18928 }
18929
18930
18931
18932 func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall {
18933 c.urlParams_.Set("filter", filter)
18934 return c
18935 }
18936
18937
18938
18939 func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall {
18940 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18941 return c
18942 }
18943
18944
18945
18946 func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall {
18947 c.urlParams_.Set("pageToken", pageToken)
18948 return c
18949 }
18950
18951
18952
18953
18954 func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall {
18955 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18956 return c
18957 }
18958
18959
18960
18961
18962
18963
18964 func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall {
18965 c.ifNoneMatch_ = entityTag
18966 return c
18967 }
18968
18969
18970
18971
18972 func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall {
18973 c.ctx_ = ctx
18974 return c
18975 }
18976
18977
18978
18979 func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header {
18980 if c.header_ == nil {
18981 c.header_ = make(http.Header)
18982 }
18983 return c.header_
18984 }
18985
18986 func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) {
18987 reqHeaders := make(http.Header)
18988 reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18989 for k, v := range c.header_ {
18990 reqHeaders[k] = v
18991 }
18992 reqHeaders.Set("User-Agent", c.s.userAgent())
18993 if c.ifNoneMatch_ != "" {
18994 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18995 }
18996 var body io.Reader = nil
18997 c.urlParams_.Set("alt", alt)
18998 c.urlParams_.Set("prettyPrint", "false")
18999 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/operations")
19000 urls += "?" + c.urlParams_.Encode()
19001 req, err := http.NewRequest("GET", urls, body)
19002 if err != nil {
19003 return nil, err
19004 }
19005 req.Header = reqHeaders
19006 googleapi.Expand(req.URL, map[string]string{
19007 "name": c.name,
19008 })
19009 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19010 }
19011
19012
19013
19014
19015
19016
19017
19018
19019 func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
19020 gensupport.SetOptions(c.urlParams_, opts...)
19021 res, err := c.doRequest("json")
19022 if res != nil && res.StatusCode == http.StatusNotModified {
19023 if res.Body != nil {
19024 res.Body.Close()
19025 }
19026 return nil, &googleapi.Error{
19027 Code: res.StatusCode,
19028 Header: res.Header,
19029 }
19030 }
19031 if err != nil {
19032 return nil, err
19033 }
19034 defer googleapi.CloseBody(res)
19035 if err := googleapi.CheckResponse(res); err != nil {
19036 return nil, err
19037 }
19038 ret := &ListOperationsResponse{
19039 ServerResponse: googleapi.ServerResponse{
19040 Header: res.Header,
19041 HTTPStatusCode: res.StatusCode,
19042 },
19043 }
19044 target := &ret
19045 if err := gensupport.DecodeResponse(target, res); err != nil {
19046 return nil, err
19047 }
19048 return ret, nil
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091 }
19092
19093
19094
19095
19096 func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
19097 c.ctx_ = ctx
19098 defer c.PageToken(c.urlParams_.Get("pageToken"))
19099 for {
19100 x, err := c.Do()
19101 if err != nil {
19102 return err
19103 }
19104 if err := f(x); err != nil {
19105 return err
19106 }
19107 if x.NextPageToken == "" {
19108 return nil
19109 }
19110 c.PageToken(x.NextPageToken)
19111 }
19112 }
19113
View as plain text