1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 package healthcare
57
58 import (
59 "bytes"
60 "context"
61 "encoding/json"
62 "errors"
63 "fmt"
64 "io"
65 "net/http"
66 "net/url"
67 "strconv"
68 "strings"
69
70 googleapi "google.golang.org/api/googleapi"
71 internal "google.golang.org/api/internal"
72 gensupport "google.golang.org/api/internal/gensupport"
73 option "google.golang.org/api/option"
74 internaloption "google.golang.org/api/option/internaloption"
75 htransport "google.golang.org/api/transport/http"
76 )
77
78
79
80 var _ = bytes.NewBuffer
81 var _ = strconv.Itoa
82 var _ = fmt.Sprintf
83 var _ = json.NewDecoder
84 var _ = io.Copy
85 var _ = url.Parse
86 var _ = gensupport.MarshalJSON
87 var _ = googleapi.Version
88 var _ = errors.New
89 var _ = strings.Replace
90 var _ = context.Canceled
91 var _ = internaloption.WithDefaultEndpoint
92 var _ = internal.Version
93
94 const apiId = "healthcare:v1beta1"
95 const apiName = "healthcare"
96 const apiVersion = "v1beta1"
97 const basePath = "https://healthcare.googleapis.com/"
98 const basePathTemplate = "https://healthcare.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://healthcare.mtls.googleapis.com/"
100
101
102 const (
103
104 CloudHealthcareScope = "https://www.googleapis.com/auth/cloud-healthcare"
105
106
107
108 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
109 )
110
111
112 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
113 scopesOption := internaloption.WithDefaultScopes(
114 "https://www.googleapis.com/auth/cloud-healthcare",
115 "https://www.googleapis.com/auth/cloud-platform",
116 )
117
118 opts = append([]option.ClientOption{scopesOption}, opts...)
119 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
120 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
121 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
122 opts = append(opts, internaloption.EnableNewAuthLibrary())
123 client, endpoint, err := htransport.NewClient(ctx, opts...)
124 if err != nil {
125 return nil, err
126 }
127 s, err := New(client)
128 if err != nil {
129 return nil, err
130 }
131 if endpoint != "" {
132 s.BasePath = endpoint
133 }
134 return s, nil
135 }
136
137
138
139
140
141
142 func New(client *http.Client) (*Service, error) {
143 if client == nil {
144 return nil, errors.New("client is nil")
145 }
146 s := &Service{client: client, BasePath: basePath}
147 s.Projects = NewProjectsService(s)
148 return s, nil
149 }
150
151 type Service struct {
152 client *http.Client
153 BasePath string
154 UserAgent string
155
156 Projects *ProjectsService
157 }
158
159 func (s *Service) userAgent() string {
160 if s.UserAgent == "" {
161 return googleapi.UserAgent
162 }
163 return googleapi.UserAgent + " " + s.UserAgent
164 }
165
166 func NewProjectsService(s *Service) *ProjectsService {
167 rs := &ProjectsService{s: s}
168 rs.Locations = NewProjectsLocationsService(s)
169 return rs
170 }
171
172 type ProjectsService struct {
173 s *Service
174
175 Locations *ProjectsLocationsService
176 }
177
178 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
179 rs := &ProjectsLocationsService{s: s}
180 rs.Datasets = NewProjectsLocationsDatasetsService(s)
181 rs.Services = NewProjectsLocationsServicesService(s)
182 return rs
183 }
184
185 type ProjectsLocationsService struct {
186 s *Service
187
188 Datasets *ProjectsLocationsDatasetsService
189
190 Services *ProjectsLocationsServicesService
191 }
192
193 func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsService {
194 rs := &ProjectsLocationsDatasetsService{s: s}
195 rs.AnnotationStores = NewProjectsLocationsDatasetsAnnotationStoresService(s)
196 rs.ConsentStores = NewProjectsLocationsDatasetsConsentStoresService(s)
197 rs.DataMapperWorkspaces = NewProjectsLocationsDatasetsDataMapperWorkspacesService(s)
198 rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s)
199 rs.FhirStores = NewProjectsLocationsDatasetsFhirStoresService(s)
200 rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s)
201 rs.Operations = NewProjectsLocationsDatasetsOperationsService(s)
202 return rs
203 }
204
205 type ProjectsLocationsDatasetsService struct {
206 s *Service
207
208 AnnotationStores *ProjectsLocationsDatasetsAnnotationStoresService
209
210 ConsentStores *ProjectsLocationsDatasetsConsentStoresService
211
212 DataMapperWorkspaces *ProjectsLocationsDatasetsDataMapperWorkspacesService
213
214 DicomStores *ProjectsLocationsDatasetsDicomStoresService
215
216 FhirStores *ProjectsLocationsDatasetsFhirStoresService
217
218 Hl7V2Stores *ProjectsLocationsDatasetsHl7V2StoresService
219
220 Operations *ProjectsLocationsDatasetsOperationsService
221 }
222
223 func NewProjectsLocationsDatasetsAnnotationStoresService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresService {
224 rs := &ProjectsLocationsDatasetsAnnotationStoresService{s: s}
225 rs.Annotations = NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s)
226 return rs
227 }
228
229 type ProjectsLocationsDatasetsAnnotationStoresService struct {
230 s *Service
231
232 Annotations *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService
233 }
234
235 func NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService {
236 rs := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsService{s: s}
237 return rs
238 }
239
240 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsService struct {
241 s *Service
242 }
243
244 func NewProjectsLocationsDatasetsConsentStoresService(s *Service) *ProjectsLocationsDatasetsConsentStoresService {
245 rs := &ProjectsLocationsDatasetsConsentStoresService{s: s}
246 rs.AttributeDefinitions = NewProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService(s)
247 rs.ConsentArtifacts = NewProjectsLocationsDatasetsConsentStoresConsentArtifactsService(s)
248 rs.Consents = NewProjectsLocationsDatasetsConsentStoresConsentsService(s)
249 rs.UserDataMappings = NewProjectsLocationsDatasetsConsentStoresUserDataMappingsService(s)
250 return rs
251 }
252
253 type ProjectsLocationsDatasetsConsentStoresService struct {
254 s *Service
255
256 AttributeDefinitions *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService
257
258 ConsentArtifacts *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService
259
260 Consents *ProjectsLocationsDatasetsConsentStoresConsentsService
261
262 UserDataMappings *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService
263 }
264
265 func NewProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService(s *Service) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService {
266 rs := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService{s: s}
267 return rs
268 }
269
270 type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService struct {
271 s *Service
272 }
273
274 func NewProjectsLocationsDatasetsConsentStoresConsentArtifactsService(s *Service) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService {
275 rs := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsService{s: s}
276 return rs
277 }
278
279 type ProjectsLocationsDatasetsConsentStoresConsentArtifactsService struct {
280 s *Service
281 }
282
283 func NewProjectsLocationsDatasetsConsentStoresConsentsService(s *Service) *ProjectsLocationsDatasetsConsentStoresConsentsService {
284 rs := &ProjectsLocationsDatasetsConsentStoresConsentsService{s: s}
285 return rs
286 }
287
288 type ProjectsLocationsDatasetsConsentStoresConsentsService struct {
289 s *Service
290 }
291
292 func NewProjectsLocationsDatasetsConsentStoresUserDataMappingsService(s *Service) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService {
293 rs := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsService{s: s}
294 return rs
295 }
296
297 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsService struct {
298 s *Service
299 }
300
301 func NewProjectsLocationsDatasetsDataMapperWorkspacesService(s *Service) *ProjectsLocationsDatasetsDataMapperWorkspacesService {
302 rs := &ProjectsLocationsDatasetsDataMapperWorkspacesService{s: s}
303 return rs
304 }
305
306 type ProjectsLocationsDatasetsDataMapperWorkspacesService struct {
307 s *Service
308 }
309
310 func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService {
311 rs := &ProjectsLocationsDatasetsDicomStoresService{s: s}
312 rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s)
313 rs.Studies = NewProjectsLocationsDatasetsDicomStoresStudiesService(s)
314 return rs
315 }
316
317 type ProjectsLocationsDatasetsDicomStoresService struct {
318 s *Service
319
320 DicomWeb *ProjectsLocationsDatasetsDicomStoresDicomWebService
321
322 Studies *ProjectsLocationsDatasetsDicomStoresStudiesService
323 }
324
325 func NewProjectsLocationsDatasetsDicomStoresDicomWebService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebService {
326 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebService{s: s}
327 rs.Studies = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s)
328 return rs
329 }
330
331 type ProjectsLocationsDatasetsDicomStoresDicomWebService struct {
332 s *Service
333
334 Studies *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService
335 }
336
337 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService {
338 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService{s: s}
339 rs.Series = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s)
340 return rs
341 }
342
343 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService struct {
344 s *Service
345
346 Series *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService
347 }
348
349 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService {
350 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService{s: s}
351 rs.Instances = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s)
352 return rs
353 }
354
355 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService struct {
356 s *Service
357
358 Instances *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService
359 }
360
361 func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService {
362 rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService{s: s}
363 return rs
364 }
365
366 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService struct {
367 s *Service
368 }
369
370 func NewProjectsLocationsDatasetsDicomStoresStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesService {
371 rs := &ProjectsLocationsDatasetsDicomStoresStudiesService{s: s}
372 rs.Series = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesService(s)
373 return rs
374 }
375
376 type ProjectsLocationsDatasetsDicomStoresStudiesService struct {
377 s *Service
378
379 Series *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService
380 }
381
382 func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService {
383 rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesService{s: s}
384 rs.Instances = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService(s)
385 return rs
386 }
387
388 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesService struct {
389 s *Service
390
391 Instances *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService
392 }
393
394 func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService {
395 rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService{s: s}
396 rs.Bulkdata = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService(s)
397 rs.Frames = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService(s)
398 return rs
399 }
400
401 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService struct {
402 s *Service
403
404 Bulkdata *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService
405
406 Frames *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService
407 }
408
409 func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService {
410 rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService{s: s}
411 return rs
412 }
413
414 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService struct {
415 s *Service
416 }
417
418 func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService {
419 rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService{s: s}
420 return rs
421 }
422
423 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService struct {
424 s *Service
425 }
426
427 func NewProjectsLocationsDatasetsFhirStoresService(s *Service) *ProjectsLocationsDatasetsFhirStoresService {
428 rs := &ProjectsLocationsDatasetsFhirStoresService{s: s}
429 rs.Fhir = NewProjectsLocationsDatasetsFhirStoresFhirService(s)
430 return rs
431 }
432
433 type ProjectsLocationsDatasetsFhirStoresService struct {
434 s *Service
435
436 Fhir *ProjectsLocationsDatasetsFhirStoresFhirService
437 }
438
439 func NewProjectsLocationsDatasetsFhirStoresFhirService(s *Service) *ProjectsLocationsDatasetsFhirStoresFhirService {
440 rs := &ProjectsLocationsDatasetsFhirStoresFhirService{s: s}
441 return rs
442 }
443
444 type ProjectsLocationsDatasetsFhirStoresFhirService struct {
445 s *Service
446 }
447
448 func NewProjectsLocationsDatasetsHl7V2StoresService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresService {
449 rs := &ProjectsLocationsDatasetsHl7V2StoresService{s: s}
450 rs.Messages = NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s)
451 return rs
452 }
453
454 type ProjectsLocationsDatasetsHl7V2StoresService struct {
455 s *Service
456
457 Messages *ProjectsLocationsDatasetsHl7V2StoresMessagesService
458 }
459
460 func NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresMessagesService {
461 rs := &ProjectsLocationsDatasetsHl7V2StoresMessagesService{s: s}
462 return rs
463 }
464
465 type ProjectsLocationsDatasetsHl7V2StoresMessagesService struct {
466 s *Service
467 }
468
469 func NewProjectsLocationsDatasetsOperationsService(s *Service) *ProjectsLocationsDatasetsOperationsService {
470 rs := &ProjectsLocationsDatasetsOperationsService{s: s}
471 return rs
472 }
473
474 type ProjectsLocationsDatasetsOperationsService struct {
475 s *Service
476 }
477
478 func NewProjectsLocationsServicesService(s *Service) *ProjectsLocationsServicesService {
479 rs := &ProjectsLocationsServicesService{s: s}
480 rs.Nlp = NewProjectsLocationsServicesNlpService(s)
481 return rs
482 }
483
484 type ProjectsLocationsServicesService struct {
485 s *Service
486
487 Nlp *ProjectsLocationsServicesNlpService
488 }
489
490 func NewProjectsLocationsServicesNlpService(s *Service) *ProjectsLocationsServicesNlpService {
491 rs := &ProjectsLocationsServicesNlpService{s: s}
492 return rs
493 }
494
495 type ProjectsLocationsServicesNlpService struct {
496 s *Service
497 }
498
499
500
501
502
503
504 type AccessDeterminationLogConfig struct {
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524 LogLevel string `json:"logLevel,omitempty"`
525
526
527
528
529
530 ForceSendFields []string `json:"-"`
531
532
533
534
535 NullFields []string `json:"-"`
536 }
537
538 func (s *AccessDeterminationLogConfig) MarshalJSON() ([]byte, error) {
539 type NoMethod AccessDeterminationLogConfig
540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
541 }
542
543
544 type Action struct {
545
546
547
548
549
550 CleanImageTag *ImageConfig `json:"cleanImageTag,omitempty"`
551
552
553
554 CleanTextTag *CleanTextTag `json:"cleanTextTag,omitempty"`
555
556 DeleteTag *DeleteTag `json:"deleteTag,omitempty"`
557
558 KeepTag *KeepTag `json:"keepTag,omitempty"`
559
560
561
562 Queries []string `json:"queries,omitempty"`
563
564
565
566
567 RecurseTag *RecurseTag `json:"recurseTag,omitempty"`
568
569
570
571
572 RegenUidTag *RegenUidTag `json:"regenUidTag,omitempty"`
573
574 RemoveTag *RemoveTag `json:"removeTag,omitempty"`
575
576 ResetTag *ResetTag `json:"resetTag,omitempty"`
577
578
579
580
581
582 ForceSendFields []string `json:"-"`
583
584
585
586
587 NullFields []string `json:"-"`
588 }
589
590 func (s *Action) MarshalJSON() ([]byte, error) {
591 type NoMethod Action
592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
593 }
594
595
596
597
598
599
600 type ActivateConsentRequest struct {
601
602
603
604
605
606 ConsentArtifact string `json:"consentArtifact,omitempty"`
607
608 ExpireTime string `json:"expireTime,omitempty"`
609
610 Ttl string `json:"ttl,omitempty"`
611
612
613
614
615
616 ForceSendFields []string `json:"-"`
617
618
619
620
621 NullFields []string `json:"-"`
622 }
623
624 func (s *ActivateConsentRequest) MarshalJSON() ([]byte, error) {
625 type NoMethod ActivateConsentRequest
626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
627 }
628
629
630 type AdminConsents struct {
631
632
633
634
635
636
637 Names []string `json:"names,omitempty"`
638
639
640
641
642
643 ForceSendFields []string `json:"-"`
644
645
646
647
648 NullFields []string `json:"-"`
649 }
650
651 func (s *AdminConsents) MarshalJSON() ([]byte, error) {
652 type NoMethod AdminConsents
653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
654 }
655
656
657
658 type AnalyzeEntitiesRequest struct {
659
660
661
662
663
664
665
666 AlternativeOutputFormat string `json:"alternativeOutputFormat,omitempty"`
667
668 DocumentContent string `json:"documentContent,omitempty"`
669
670
671
672
673
674
675
676 LicensedVocabularies []string `json:"licensedVocabularies,omitempty"`
677
678
679
680
681
682 ForceSendFields []string `json:"-"`
683
684
685
686
687 NullFields []string `json:"-"`
688 }
689
690 func (s *AnalyzeEntitiesRequest) MarshalJSON() ([]byte, error) {
691 type NoMethod AnalyzeEntitiesRequest
692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
693 }
694
695
696
697 type AnalyzeEntitiesResponse struct {
698
699
700
701 Entities []*Entity `json:"entities,omitempty"`
702
703
704 EntityMentions []*EntityMention `json:"entityMentions,omitempty"`
705
706
707
708 FhirBundle string `json:"fhirBundle,omitempty"`
709
710
711 Relationships []*EntityMentionRelationship `json:"relationships,omitempty"`
712
713
714 googleapi.ServerResponse `json:"-"`
715
716
717
718
719
720 ForceSendFields []string `json:"-"`
721
722
723
724
725 NullFields []string `json:"-"`
726 }
727
728 func (s *AnalyzeEntitiesResponse) MarshalJSON() ([]byte, error) {
729 type NoMethod AnalyzeEntitiesResponse
730 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
731 }
732
733
734 type Annotation struct {
735
736 AnnotationSource *AnnotationSource `json:"annotationSource,omitempty"`
737
738
739 CustomData map[string]string `json:"customData,omitempty"`
740
741 ImageAnnotation *ImageAnnotation `json:"imageAnnotation,omitempty"`
742
743
744
745 Name string `json:"name,omitempty"`
746
747
748 ResourceAnnotation *ResourceAnnotation `json:"resourceAnnotation,omitempty"`
749
750
751 TextAnnotation *SensitiveTextAnnotation `json:"textAnnotation,omitempty"`
752
753
754 googleapi.ServerResponse `json:"-"`
755
756
757
758
759
760 ForceSendFields []string `json:"-"`
761
762
763
764
765 NullFields []string `json:"-"`
766 }
767
768 func (s *Annotation) MarshalJSON() ([]byte, error) {
769 type NoMethod Annotation
770 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
771 }
772
773
774
775 type AnnotationConfig struct {
776
777
778
779
780
781
782
783 AnnotationStoreName string `json:"annotationStoreName,omitempty"`
784
785
786 StoreQuote bool `json:"storeQuote,omitempty"`
787
788
789
790
791
792 ForceSendFields []string `json:"-"`
793
794
795
796
797 NullFields []string `json:"-"`
798 }
799
800 func (s *AnnotationConfig) MarshalJSON() ([]byte, error) {
801 type NoMethod AnnotationConfig
802 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
803 }
804
805
806
807 type AnnotationSource struct {
808
809 CloudHealthcareSource *CloudHealthcareSource `json:"cloudHealthcareSource,omitempty"`
810
811
812
813
814
815 ForceSendFields []string `json:"-"`
816
817
818
819
820 NullFields []string `json:"-"`
821 }
822
823 func (s *AnnotationSource) MarshalJSON() ([]byte, error) {
824 type NoMethod AnnotationSource
825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
826 }
827
828
829
830 type AnnotationStore struct {
831
832
833
834
835
836
837
838
839 Labels map[string]string `json:"labels,omitempty"`
840
841
842
843 Name string `json:"name,omitempty"`
844
845
846 googleapi.ServerResponse `json:"-"`
847
848
849
850
851
852 ForceSendFields []string `json:"-"`
853
854
855
856
857 NullFields []string `json:"-"`
858 }
859
860 func (s *AnnotationStore) MarshalJSON() ([]byte, error) {
861 type NoMethod AnnotationStore
862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
863 }
864
865
866
867 type ApplyAdminConsentsRequest struct {
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884 NewConsentsList *AdminConsents `json:"newConsentsList,omitempty"`
885
886
887
888
889
890
891
892
893
894
895
896 ValidateOnly bool `json:"validateOnly,omitempty"`
897
898
899
900
901
902 ForceSendFields []string `json:"-"`
903
904
905
906
907 NullFields []string `json:"-"`
908 }
909
910 func (s *ApplyAdminConsentsRequest) MarshalJSON() ([]byte, error) {
911 type NoMethod ApplyAdminConsentsRequest
912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
913 }
914
915
916
917
918
919 type ApplyAdminConsentsResponse struct {
920
921
922 AffectedResources int64 `json:"affectedResources,omitempty,string"`
923
924
925
926
927 ConsentApplySuccess int64 `json:"consentApplySuccess,omitempty,string"`
928
929
930 FailedResources int64 `json:"failedResources,omitempty,string"`
931
932
933
934
935
936 ForceSendFields []string `json:"-"`
937
938
939
940
941 NullFields []string `json:"-"`
942 }
943
944 func (s *ApplyAdminConsentsResponse) MarshalJSON() ([]byte, error) {
945 type NoMethod ApplyAdminConsentsResponse
946 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
947 }
948
949
950
951 type ApplyConsentsRequest struct {
952
953 PatientScope *PatientScope `json:"patientScope,omitempty"`
954
955
956
957 TimeRange *TimeRange `json:"timeRange,omitempty"`
958
959
960
961
962
963
964
965
966 ValidateOnly bool `json:"validateOnly,omitempty"`
967
968
969
970
971
972 ForceSendFields []string `json:"-"`
973
974
975
976
977 NullFields []string `json:"-"`
978 }
979
980 func (s *ApplyConsentsRequest) MarshalJSON() ([]byte, error) {
981 type NoMethod ApplyConsentsRequest
982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
983 }
984
985
986
987
988
989 type ApplyConsentsResponse struct {
990
991
992 AffectedResources int64 `json:"affectedResources,omitempty,string"`
993
994
995
996
997 ConsentApplyFailure int64 `json:"consentApplyFailure,omitempty,string"`
998
999
1000
1001
1002 ConsentApplySuccess int64 `json:"consentApplySuccess,omitempty,string"`
1003
1004
1005 FailedResources int64 `json:"failedResources,omitempty,string"`
1006
1007
1008
1009
1010
1011 ForceSendFields []string `json:"-"`
1012
1013
1014
1015
1016 NullFields []string `json:"-"`
1017 }
1018
1019 func (s *ApplyConsentsResponse) MarshalJSON() ([]byte, error) {
1020 type NoMethod ApplyConsentsResponse
1021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1022 }
1023
1024
1025 type ArchiveUserDataMappingRequest struct {
1026 }
1027
1028
1029 type ArchiveUserDataMappingResponse struct {
1030
1031 googleapi.ServerResponse `json:"-"`
1032 }
1033
1034
1035
1036
1037 type Attribute struct {
1038
1039
1040 AttributeDefinitionId string `json:"attributeDefinitionId,omitempty"`
1041
1042
1043
1044
1045 Values []string `json:"values,omitempty"`
1046
1047
1048
1049
1050
1051 ForceSendFields []string `json:"-"`
1052
1053
1054
1055
1056 NullFields []string `json:"-"`
1057 }
1058
1059 func (s *Attribute) MarshalJSON() ([]byte, error) {
1060 type NoMethod Attribute
1061 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1062 }
1063
1064
1065 type AttributeDefinition struct {
1066
1067
1068
1069 AllowedValues []string `json:"allowedValues,omitempty"`
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080 Category string `json:"category,omitempty"`
1081
1082
1083 ConsentDefaultValues []string `json:"consentDefaultValues,omitempty"`
1084
1085
1086
1087
1088 DataMappingDefaultValue string `json:"dataMappingDefaultValue,omitempty"`
1089
1090 Description string `json:"description,omitempty"`
1091
1092
1093
1094
1095 Name string `json:"name,omitempty"`
1096
1097
1098 googleapi.ServerResponse `json:"-"`
1099
1100
1101
1102
1103
1104 ForceSendFields []string `json:"-"`
1105
1106
1107
1108
1109 NullFields []string `json:"-"`
1110 }
1111
1112 func (s *AttributeDefinition) MarshalJSON() ([]byte, error) {
1113 type NoMethod AttributeDefinition
1114 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1115 }
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133 type AuditConfig struct {
1134
1135 AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
1136
1137
1138
1139 Service string `json:"service,omitempty"`
1140
1141
1142
1143
1144
1145 ForceSendFields []string `json:"-"`
1146
1147
1148
1149
1150 NullFields []string `json:"-"`
1151 }
1152
1153 func (s *AuditConfig) MarshalJSON() ([]byte, error) {
1154 type NoMethod AuditConfig
1155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1156 }
1157
1158
1159
1160
1161
1162
1163 type AuditLogConfig struct {
1164
1165
1166 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
1167
1168
1169
1170
1171
1172
1173
1174 LogType string `json:"logType,omitempty"`
1175
1176
1177
1178
1179
1180 ForceSendFields []string `json:"-"`
1181
1182
1183
1184
1185 NullFields []string `json:"-"`
1186 }
1187
1188 func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
1189 type NoMethod AuditLogConfig
1190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1191 }
1192
1193
1194 type BatchGetMessagesResponse struct {
1195
1196 Messages []*Message `json:"messages,omitempty"`
1197
1198
1199 googleapi.ServerResponse `json:"-"`
1200
1201
1202
1203
1204
1205 ForceSendFields []string `json:"-"`
1206
1207
1208
1209
1210 NullFields []string `json:"-"`
1211 }
1212
1213 func (s *BatchGetMessagesResponse) MarshalJSON() ([]byte, error) {
1214 type NoMethod BatchGetMessagesResponse
1215 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1216 }
1217
1218
1219 type Binding struct {
1220
1221
1222
1223
1224
1225
1226
1227
1228 Condition *Expr `json:"condition,omitempty"`
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291 Members []string `json:"members,omitempty"`
1292
1293
1294
1295
1296
1297
1298 Role string `json:"role,omitempty"`
1299
1300
1301
1302
1303
1304 ForceSendFields []string `json:"-"`
1305
1306
1307
1308
1309 NullFields []string `json:"-"`
1310 }
1311
1312 func (s *Binding) MarshalJSON() ([]byte, error) {
1313 type NoMethod Binding
1314 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1315 }
1316
1317
1318
1319
1320 type BlobStorageInfo struct {
1321
1322 SizeBytes int64 `json:"sizeBytes,omitempty,string"`
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337 StorageClass string `json:"storageClass,omitempty"`
1338
1339
1340 StorageClassUpdateTime string `json:"storageClassUpdateTime,omitempty"`
1341
1342
1343
1344
1345
1346 ForceSendFields []string `json:"-"`
1347
1348
1349
1350
1351 NullFields []string `json:"-"`
1352 }
1353
1354 func (s *BlobStorageInfo) MarshalJSON() ([]byte, error) {
1355 type NoMethod BlobStorageInfo
1356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1357 }
1358
1359
1360 type BlobStorageSettings struct {
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375 BlobStorageClass string `json:"blobStorageClass,omitempty"`
1376
1377
1378
1379
1380
1381 ForceSendFields []string `json:"-"`
1382
1383
1384
1385
1386 NullFields []string `json:"-"`
1387 }
1388
1389 func (s *BlobStorageSettings) MarshalJSON() ([]byte, error) {
1390 type NoMethod BlobStorageSettings
1391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1392 }
1393
1394
1395 type BoundingPoly struct {
1396
1397 Label string `json:"label,omitempty"`
1398
1399 Vertices []*Vertex `json:"vertices,omitempty"`
1400
1401
1402
1403
1404
1405 ForceSendFields []string `json:"-"`
1406
1407
1408
1409
1410 NullFields []string `json:"-"`
1411 }
1412
1413 func (s *BoundingPoly) MarshalJSON() ([]byte, error) {
1414 type NoMethod BoundingPoly
1415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1416 }
1417
1418
1419 type CancelOperationRequest struct {
1420 }
1421
1422
1423
1424 type CharacterMaskConfig struct {
1425
1426
1427 MaskingCharacter string `json:"maskingCharacter,omitempty"`
1428
1429
1430
1431
1432
1433 ForceSendFields []string `json:"-"`
1434
1435
1436
1437
1438 NullFields []string `json:"-"`
1439 }
1440
1441 func (s *CharacterMaskConfig) MarshalJSON() ([]byte, error) {
1442 type NoMethod CharacterMaskConfig
1443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1444 }
1445
1446
1447
1448
1449 type CharacterMaskField struct {
1450 }
1451
1452
1453
1454 type CheckDataAccessRequest struct {
1455
1456
1457
1458
1459
1460
1461
1462 ConsentList *ConsentList `json:"consentList,omitempty"`
1463
1464
1465
1466 DataId string `json:"dataId,omitempty"`
1467
1468
1469 RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482 ResponseView string `json:"responseView,omitempty"`
1483
1484
1485
1486
1487
1488 ForceSendFields []string `json:"-"`
1489
1490
1491
1492
1493 NullFields []string `json:"-"`
1494 }
1495
1496 func (s *CheckDataAccessRequest) MarshalJSON() ([]byte, error) {
1497 type NoMethod CheckDataAccessRequest
1498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1499 }
1500
1501
1502
1503 type CheckDataAccessResponse struct {
1504
1505
1506 ConsentDetails map[string]ConsentEvaluation `json:"consentDetails,omitempty"`
1507
1508 Consented bool `json:"consented,omitempty"`
1509
1510
1511 googleapi.ServerResponse `json:"-"`
1512
1513
1514
1515
1516
1517 ForceSendFields []string `json:"-"`
1518
1519
1520
1521
1522 NullFields []string `json:"-"`
1523 }
1524
1525 func (s *CheckDataAccessResponse) MarshalJSON() ([]byte, error) {
1526 type NoMethod CheckDataAccessResponse
1527 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1528 }
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539 type CleanDescriptorsOption struct {
1540 }
1541
1542
1543
1544
1545
1546 type CleanTextField struct {
1547 }
1548
1549
1550
1551
1552
1553 type CleanTextTag struct {
1554 }
1555
1556
1557 type CloudHealthcareSource struct {
1558
1559 Name string `json:"name,omitempty"`
1560
1561
1562
1563
1564
1565 ForceSendFields []string `json:"-"`
1566
1567
1568
1569
1570 NullFields []string `json:"-"`
1571 }
1572
1573 func (s *CloudHealthcareSource) MarshalJSON() ([]byte, error) {
1574 type NoMethod CloudHealthcareSource
1575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1576 }
1577
1578
1579
1580 type ConfigureSearchRequest struct {
1581
1582
1583
1584
1585 CanonicalUrls []string `json:"canonicalUrls,omitempty"`
1586
1587
1588
1589 ValidateOnly bool `json:"validateOnly,omitempty"`
1590
1591
1592
1593
1594
1595 ForceSendFields []string `json:"-"`
1596
1597
1598
1599
1600 NullFields []string `json:"-"`
1601 }
1602
1603 func (s *ConfigureSearchRequest) MarshalJSON() ([]byte, error) {
1604 type NoMethod ConfigureSearchRequest
1605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1606 }
1607
1608
1609 type Consent struct {
1610
1611
1612
1613
1614 ConsentArtifact string `json:"consentArtifact,omitempty"`
1615
1616 ExpireTime string `json:"expireTime,omitempty"`
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626 Metadata map[string]string `json:"metadata,omitempty"`
1627
1628
1629
1630
1631 Name string `json:"name,omitempty"`
1632
1633
1634 Policies []*GoogleCloudHealthcareV1beta1ConsentPolicy `json:"policies,omitempty"`
1635
1636
1637 RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
1638
1639
1640
1641 RevisionId string `json:"revisionId,omitempty"`
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657 State string `json:"state,omitempty"`
1658
1659 Ttl string `json:"ttl,omitempty"`
1660
1661 UserId string `json:"userId,omitempty"`
1662
1663
1664 googleapi.ServerResponse `json:"-"`
1665
1666
1667
1668
1669
1670 ForceSendFields []string `json:"-"`
1671
1672
1673
1674
1675 NullFields []string `json:"-"`
1676 }
1677
1678 func (s *Consent) MarshalJSON() ([]byte, error) {
1679 type NoMethod Consent
1680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1681 }
1682
1683
1684
1685 type ConsentAccessorScope struct {
1686
1687
1688
1689 Actor string `json:"actor,omitempty"`
1690
1691
1692
1693 Environment string `json:"environment,omitempty"`
1694
1695 Purpose string `json:"purpose,omitempty"`
1696
1697
1698
1699
1700
1701 ForceSendFields []string `json:"-"`
1702
1703
1704
1705
1706 NullFields []string `json:"-"`
1707 }
1708
1709 func (s *ConsentAccessorScope) MarshalJSON() ([]byte, error) {
1710 type NoMethod ConsentAccessorScope
1711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1712 }
1713
1714
1715 type ConsentArtifact struct {
1716
1717
1718 ConsentContentScreenshots []*Image `json:"consentContentScreenshots,omitempty"`
1719
1720
1721 ConsentContentVersion string `json:"consentContentVersion,omitempty"`
1722
1723 GuardianSignature *Signature `json:"guardianSignature,omitempty"`
1724
1725
1726 Metadata map[string]string `json:"metadata,omitempty"`
1727
1728
1729
1730
1731 Name string `json:"name,omitempty"`
1732
1733 UserId string `json:"userId,omitempty"`
1734
1735 UserSignature *Signature `json:"userSignature,omitempty"`
1736
1737 WitnessSignature *Signature `json:"witnessSignature,omitempty"`
1738
1739
1740 googleapi.ServerResponse `json:"-"`
1741
1742
1743
1744
1745
1746 ForceSendFields []string `json:"-"`
1747
1748
1749
1750
1751 NullFields []string `json:"-"`
1752 }
1753
1754 func (s *ConsentArtifact) MarshalJSON() ([]byte, error) {
1755 type NoMethod ConsentArtifact
1756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1757 }
1758
1759
1760
1761 type ConsentConfig struct {
1762
1763
1764
1765 AccessDeterminationLogConfig *AccessDeterminationLogConfig `json:"accessDeterminationLogConfig,omitempty"`
1766
1767
1768
1769 AccessEnforced bool `json:"accessEnforced,omitempty"`
1770
1771
1772 ConsentHeaderHandling *ConsentHeaderHandling `json:"consentHeaderHandling,omitempty"`
1773
1774
1775
1776
1777
1778
1779
1780
1781 EnforcedAdminConsents []string `json:"enforcedAdminConsents,omitempty"`
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793 Version string `json:"version,omitempty"`
1794
1795
1796
1797
1798
1799 ForceSendFields []string `json:"-"`
1800
1801
1802
1803
1804 NullFields []string `json:"-"`
1805 }
1806
1807 func (s *ConsentConfig) MarshalJSON() ([]byte, error) {
1808 type NoMethod ConsentConfig
1809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1810 }
1811
1812
1813 type ConsentEvaluation struct {
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831 EvaluationResult string `json:"evaluationResult,omitempty"`
1832
1833
1834
1835
1836
1837 ForceSendFields []string `json:"-"`
1838
1839
1840
1841
1842 NullFields []string `json:"-"`
1843 }
1844
1845 func (s *ConsentEvaluation) MarshalJSON() ([]byte, error) {
1846 type NoMethod ConsentEvaluation
1847 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1848 }
1849
1850
1851 type ConsentHeaderHandling struct {
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870 Profile string `json:"profile,omitempty"`
1871
1872
1873
1874
1875
1876 ForceSendFields []string `json:"-"`
1877
1878
1879
1880
1881 NullFields []string `json:"-"`
1882 }
1883
1884 func (s *ConsentHeaderHandling) MarshalJSON() ([]byte, error) {
1885 type NoMethod ConsentHeaderHandling
1886 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1887 }
1888
1889
1890 type ConsentList struct {
1891
1892
1893
1894
1895 Consents []string `json:"consents,omitempty"`
1896
1897
1898
1899
1900
1901 ForceSendFields []string `json:"-"`
1902
1903
1904
1905
1906 NullFields []string `json:"-"`
1907 }
1908
1909 func (s *ConsentList) MarshalJSON() ([]byte, error) {
1910 type NoMethod ConsentList
1911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1912 }
1913
1914
1915 type ConsentStore struct {
1916
1917
1918
1919 DefaultConsentTtl string `json:"defaultConsentTtl,omitempty"`
1920
1921
1922 EnableConsentCreateOnUpdate bool `json:"enableConsentCreateOnUpdate,omitempty"`
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932 Labels map[string]string `json:"labels,omitempty"`
1933
1934
1935
1936 Name string `json:"name,omitempty"`
1937
1938
1939 googleapi.ServerResponse `json:"-"`
1940
1941
1942
1943
1944
1945 ForceSendFields []string `json:"-"`
1946
1947
1948
1949
1950 NullFields []string `json:"-"`
1951 }
1952
1953 func (s *ConsentStore) MarshalJSON() ([]byte, error) {
1954 type NoMethod ConsentStore
1955 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1956 }
1957
1958
1959
1960
1961
1962
1963
1964 type ContextualDeidConfig struct {
1965 }
1966
1967
1968 type CreateMessageRequest struct {
1969
1970 Message *Message `json:"message,omitempty"`
1971
1972
1973
1974
1975
1976 ForceSendFields []string `json:"-"`
1977
1978
1979
1980
1981 NullFields []string `json:"-"`
1982 }
1983
1984 func (s *CreateMessageRequest) MarshalJSON() ([]byte, error) {
1985 type NoMethod CreateMessageRequest
1986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1987 }
1988
1989
1990
1991
1992
1993 type CryptoHashConfig struct {
1994
1995
1996
1997
1998 CryptoKey string `json:"cryptoKey,omitempty"`
1999
2000 KmsWrapped *KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
2001
2002
2003
2004
2005
2006 ForceSendFields []string `json:"-"`
2007
2008
2009
2010
2011 NullFields []string `json:"-"`
2012 }
2013
2014 func (s *CryptoHashConfig) MarshalJSON() ([]byte, error) {
2015 type NoMethod CryptoHashConfig
2016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2017 }
2018
2019
2020
2021
2022 type CryptoHashField struct {
2023 }
2024
2025
2026
2027
2028
2029 type Dataset struct {
2030
2031
2032 Name string `json:"name,omitempty"`
2033
2034
2035
2036
2037 TimeZone string `json:"timeZone,omitempty"`
2038
2039
2040 googleapi.ServerResponse `json:"-"`
2041
2042
2043
2044
2045
2046 ForceSendFields []string `json:"-"`
2047
2048
2049
2050
2051 NullFields []string `json:"-"`
2052 }
2053
2054 func (s *Dataset) MarshalJSON() ([]byte, error) {
2055 type NoMethod Dataset
2056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2057 }
2058
2059
2060
2061 type DateShiftConfig struct {
2062
2063
2064
2065
2066
2067
2068 CryptoKey string `json:"cryptoKey,omitempty"`
2069
2070
2071
2072
2073 KmsWrapped *KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
2074
2075
2076
2077
2078
2079 ForceSendFields []string `json:"-"`
2080
2081
2082
2083
2084 NullFields []string `json:"-"`
2085 }
2086
2087 func (s *DateShiftConfig) MarshalJSON() ([]byte, error) {
2088 type NoMethod DateShiftConfig
2089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2090 }
2091
2092
2093
2094
2095
2096 type DateShiftField struct {
2097 }
2098
2099
2100
2101 type DeidentifiedStoreDestination struct {
2102
2103
2104 Config *DeidentifyConfig `json:"config,omitempty"`
2105
2106
2107
2108 Store string `json:"store,omitempty"`
2109
2110
2111
2112
2113
2114 ForceSendFields []string `json:"-"`
2115
2116
2117
2118
2119 NullFields []string `json:"-"`
2120 }
2121
2122 func (s *DeidentifiedStoreDestination) MarshalJSON() ([]byte, error) {
2123 type NoMethod DeidentifiedStoreDestination
2124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2125 }
2126
2127
2128
2129
2130
2131 type DeidentifyConfig struct {
2132
2133
2134
2135 Annotation *AnnotationConfig `json:"annotation,omitempty"`
2136
2137
2138 Dicom *DicomConfig `json:"dicom,omitempty"`
2139
2140 DicomTagConfig *DicomTagConfig `json:"dicomTagConfig,omitempty"`
2141
2142
2143 Fhir *FhirConfig `json:"fhir,omitempty"`
2144
2145 FhirFieldConfig *FhirFieldConfig `json:"fhirFieldConfig,omitempty"`
2146
2147
2148
2149 Image *ImageConfig `json:"image,omitempty"`
2150
2151
2152 OperationMetadata *DeidentifyOperationMetadata `json:"operationMetadata,omitempty"`
2153
2154
2155 Text *TextConfig `json:"text,omitempty"`
2156
2157
2158
2159
2160
2161
2162 UseRegionalDataProcessing bool `json:"useRegionalDataProcessing,omitempty"`
2163
2164
2165
2166
2167
2168 ForceSendFields []string `json:"-"`
2169
2170
2171
2172
2173 NullFields []string `json:"-"`
2174 }
2175
2176 func (s *DeidentifyConfig) MarshalJSON() ([]byte, error) {
2177 type NoMethod DeidentifyConfig
2178 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2179 }
2180
2181
2182
2183 type DeidentifyDatasetRequest struct {
2184
2185
2186 Config *DeidentifyConfig `json:"config,omitempty"`
2187
2188
2189
2190
2191 DestinationDataset string `json:"destinationDataset,omitempty"`
2192
2193
2194
2195
2196
2197
2198 GcsConfigUri string `json:"gcsConfigUri,omitempty"`
2199
2200
2201
2202
2203
2204 ForceSendFields []string `json:"-"`
2205
2206
2207
2208
2209 NullFields []string `json:"-"`
2210 }
2211
2212 func (s *DeidentifyDatasetRequest) MarshalJSON() ([]byte, error) {
2213 type NoMethod DeidentifyDatasetRequest
2214 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2215 }
2216
2217
2218
2219 type DeidentifyDicomStoreRequest struct {
2220
2221
2222 Config *DeidentifyConfig `json:"config,omitempty"`
2223
2224
2225
2226
2227
2228
2229
2230
2231 DestinationStore string `json:"destinationStore,omitempty"`
2232
2233 FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"`
2234
2235
2236
2237
2238
2239
2240 GcsConfigUri string `json:"gcsConfigUri,omitempty"`
2241
2242
2243
2244
2245
2246 ForceSendFields []string `json:"-"`
2247
2248
2249
2250
2251 NullFields []string `json:"-"`
2252 }
2253
2254 func (s *DeidentifyDicomStoreRequest) MarshalJSON() ([]byte, error) {
2255 type NoMethod DeidentifyDicomStoreRequest
2256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2257 }
2258
2259
2260
2261 type DeidentifyFhirStoreRequest struct {
2262
2263
2264 Config *DeidentifyConfig `json:"config,omitempty"`
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274 DestinationStore string `json:"destinationStore,omitempty"`
2275
2276
2277
2278
2279
2280
2281 GcsConfigUri string `json:"gcsConfigUri,omitempty"`
2282
2283
2284 ResourceFilter *FhirFilter `json:"resourceFilter,omitempty"`
2285
2286
2287 SkipModifiedResources bool `json:"skipModifiedResources,omitempty"`
2288
2289
2290
2291
2292
2293 ForceSendFields []string `json:"-"`
2294
2295
2296
2297
2298 NullFields []string `json:"-"`
2299 }
2300
2301 func (s *DeidentifyFhirStoreRequest) MarshalJSON() ([]byte, error) {
2302 type NoMethod DeidentifyFhirStoreRequest
2303 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2304 }
2305
2306
2307
2308 type DeidentifyOperationMetadata struct {
2309
2310 FhirOutput *FhirOutput `json:"fhirOutput,omitempty"`
2311
2312
2313
2314
2315
2316 ForceSendFields []string `json:"-"`
2317
2318
2319
2320
2321 NullFields []string `json:"-"`
2322 }
2323
2324 func (s *DeidentifyOperationMetadata) MarshalJSON() ([]byte, error) {
2325 type NoMethod DeidentifyOperationMetadata
2326 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2327 }
2328
2329
2330 type DeidentifySummary struct {
2331 }
2332
2333
2334 type DeleteTag struct {
2335 }
2336
2337
2338
2339 type Detail struct {
2340 Findings []*Finding `json:"findings,omitempty"`
2341
2342
2343
2344
2345
2346 ForceSendFields []string `json:"-"`
2347
2348
2349
2350
2351 NullFields []string `json:"-"`
2352 }
2353
2354 func (s *Detail) MarshalJSON() ([]byte, error) {
2355 type NoMethod Detail
2356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2357 }
2358
2359
2360
2361 type DicomConfig struct {
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379 FilterProfile string `json:"filterProfile,omitempty"`
2380
2381 KeepList *TagFilterList `json:"keepList,omitempty"`
2382
2383 RemoveList *TagFilterList `json:"removeList,omitempty"`
2384
2385
2386
2387
2388
2389
2390
2391
2392 SkipIdRedaction bool `json:"skipIdRedaction,omitempty"`
2393
2394
2395
2396
2397
2398 ForceSendFields []string `json:"-"`
2399
2400
2401
2402
2403 NullFields []string `json:"-"`
2404 }
2405
2406 func (s *DicomConfig) MarshalJSON() ([]byte, error) {
2407 type NoMethod DicomConfig
2408 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2409 }
2410
2411
2412 type DicomFilterConfig struct {
2413
2414
2415
2416
2417
2418
2419
2420 ResourcePathsGcsUri string `json:"resourcePathsGcsUri,omitempty"`
2421
2422
2423
2424
2425
2426 ForceSendFields []string `json:"-"`
2427
2428
2429
2430
2431 NullFields []string `json:"-"`
2432 }
2433
2434 func (s *DicomFilterConfig) MarshalJSON() ([]byte, error) {
2435 type NoMethod DicomFilterConfig
2436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2437 }
2438
2439
2440 type DicomStore struct {
2441
2442
2443
2444
2445
2446
2447
2448
2449 Labels map[string]string `json:"labels,omitempty"`
2450
2451
2452
2453 Name string `json:"name,omitempty"`
2454
2455
2456 NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
2457
2458
2459
2460
2461
2462
2463 StreamConfigs []*GoogleCloudHealthcareV1beta1DicomStreamConfig `json:"streamConfigs,omitempty"`
2464
2465
2466 googleapi.ServerResponse `json:"-"`
2467
2468
2469
2470
2471
2472 ForceSendFields []string `json:"-"`
2473
2474
2475
2476
2477 NullFields []string `json:"-"`
2478 }
2479
2480 func (s *DicomStore) MarshalJSON() ([]byte, error) {
2481 type NoMethod DicomStore
2482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2483 }
2484
2485
2486
2487 type DicomStoreMetrics struct {
2488
2489
2490 BlobStorageSizeBytes int64 `json:"blobStorageSizeBytes,omitempty,string"`
2491
2492 InstanceCount int64 `json:"instanceCount,omitempty,string"`
2493
2494
2495
2496 Name string `json:"name,omitempty"`
2497
2498 SeriesCount int64 `json:"seriesCount,omitempty,string"`
2499
2500
2501 StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
2502
2503 StudyCount int64 `json:"studyCount,omitempty,string"`
2504
2505
2506 googleapi.ServerResponse `json:"-"`
2507
2508
2509
2510
2511
2512 ForceSendFields []string `json:"-"`
2513
2514
2515
2516
2517 NullFields []string `json:"-"`
2518 }
2519
2520 func (s *DicomStoreMetrics) MarshalJSON() ([]byte, error) {
2521 type NoMethod DicomStoreMetrics
2522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2523 }
2524
2525
2526
2527 type DicomTagConfig struct {
2528
2529
2530
2531 Actions []*Action `json:"actions,omitempty"`
2532
2533
2534 Options *Options `json:"options,omitempty"`
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552 ProfileType string `json:"profileType,omitempty"`
2553
2554
2555
2556
2557
2558 ForceSendFields []string `json:"-"`
2559
2560
2561
2562
2563 NullFields []string `json:"-"`
2564 }
2565
2566 func (s *DicomTagConfig) MarshalJSON() ([]byte, error) {
2567 type NoMethod DicomTagConfig
2568 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2569 }
2570
2571
2572
2573
2574
2575 type Empty struct {
2576
2577 googleapi.ServerResponse `json:"-"`
2578 }
2579
2580
2581 type Entity struct {
2582
2583
2584 EntityId string `json:"entityId,omitempty"`
2585
2586
2587
2588 PreferredTerm string `json:"preferredTerm,omitempty"`
2589
2590
2591
2592
2593
2594
2595 VocabularyCodes []string `json:"vocabularyCodes,omitempty"`
2596
2597
2598
2599
2600
2601 ForceSendFields []string `json:"-"`
2602
2603
2604
2605
2606 NullFields []string `json:"-"`
2607 }
2608
2609 func (s *Entity) MarshalJSON() ([]byte, error) {
2610 type NoMethod Entity
2611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2612 }
2613
2614
2615 type EntityMention struct {
2616
2617
2618
2619
2620
2621
2622 AdditionalInfo []*Feature `json:"additionalInfo,omitempty"`
2623
2624
2625
2626 CertaintyAssessment *Feature `json:"certaintyAssessment,omitempty"`
2627
2628
2629 Confidence float64 `json:"confidence,omitempty"`
2630
2631
2632 LinkedEntities []*LinkedEntity `json:"linkedEntities,omitempty"`
2633
2634
2635 MentionId string `json:"mentionId,omitempty"`
2636
2637
2638 Subject *Feature `json:"subject,omitempty"`
2639
2640
2641
2642 TemporalAssessment *Feature `json:"temporalAssessment,omitempty"`
2643
2644 Text *TextSpan `json:"text,omitempty"`
2645
2646
2647
2648
2649
2650
2651
2652
2653 Type string `json:"type,omitempty"`
2654
2655
2656
2657
2658
2659 ForceSendFields []string `json:"-"`
2660
2661
2662
2663
2664 NullFields []string `json:"-"`
2665 }
2666
2667 func (s *EntityMention) MarshalJSON() ([]byte, error) {
2668 type NoMethod EntityMention
2669 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2670 }
2671
2672 func (s *EntityMention) UnmarshalJSON(data []byte) error {
2673 type NoMethod EntityMention
2674 var s1 struct {
2675 Confidence gensupport.JSONFloat64 `json:"confidence"`
2676 *NoMethod
2677 }
2678 s1.NoMethod = (*NoMethod)(s)
2679 if err := json.Unmarshal(data, &s1); err != nil {
2680 return err
2681 }
2682 s.Confidence = float64(s1.Confidence)
2683 return nil
2684 }
2685
2686
2687
2688 type EntityMentionRelationship struct {
2689
2690
2691 Confidence float64 `json:"confidence,omitempty"`
2692
2693 ObjectId string `json:"objectId,omitempty"`
2694
2695 SubjectId string `json:"subjectId,omitempty"`
2696
2697
2698
2699
2700
2701 ForceSendFields []string `json:"-"`
2702
2703
2704
2705
2706 NullFields []string `json:"-"`
2707 }
2708
2709 func (s *EntityMentionRelationship) MarshalJSON() ([]byte, error) {
2710 type NoMethod EntityMentionRelationship
2711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2712 }
2713
2714 func (s *EntityMentionRelationship) UnmarshalJSON(data []byte) error {
2715 type NoMethod EntityMentionRelationship
2716 var s1 struct {
2717 Confidence gensupport.JSONFloat64 `json:"confidence"`
2718 *NoMethod
2719 }
2720 s1.NoMethod = (*NoMethod)(s)
2721 if err := json.Unmarshal(data, &s1); err != nil {
2722 return err
2723 }
2724 s.Confidence = float64(s1.Confidence)
2725 return nil
2726 }
2727
2728
2729
2730 type EvaluateAnnotationStoreRequest struct {
2731
2732
2733
2734 BigqueryDestination *GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination `json:"bigqueryDestination,omitempty"`
2735
2736
2737
2738
2739
2740
2741
2742
2743 EvalInfoTypeMapping map[string]string `json:"evalInfoTypeMapping,omitempty"`
2744
2745
2746 GoldenInfoTypeMapping map[string]string `json:"goldenInfoTypeMapping,omitempty"`
2747
2748
2749
2750
2751 GoldenStore string `json:"goldenStore,omitempty"`
2752 InfoTypeConfig *InfoTypeConfig `json:"infoTypeConfig,omitempty"`
2753
2754
2755
2756
2757
2758 ForceSendFields []string `json:"-"`
2759
2760
2761
2762
2763 NullFields []string `json:"-"`
2764 }
2765
2766 func (s *EvaluateAnnotationStoreRequest) MarshalJSON() ([]byte, error) {
2767 type NoMethod EvaluateAnnotationStoreRequest
2768 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2769 }
2770
2771
2772
2773
2774 type EvaluateAnnotationStoreResponse struct {
2775 }
2776
2777
2778
2779
2780
2781 type EvaluateUserConsentsRequest struct {
2782
2783
2784
2785
2786
2787
2788 ConsentList *ConsentList `json:"consentList,omitempty"`
2789
2790
2791 PageSize int64 `json:"pageSize,omitempty"`
2792
2793
2794 PageToken string `json:"pageToken,omitempty"`
2795
2796
2797 RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
2798
2799
2800
2801 ResourceAttributes map[string]string `json:"resourceAttributes,omitempty"`
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814 ResponseView string `json:"responseView,omitempty"`
2815
2816 UserId string `json:"userId,omitempty"`
2817
2818
2819
2820
2821
2822 ForceSendFields []string `json:"-"`
2823
2824
2825
2826
2827 NullFields []string `json:"-"`
2828 }
2829
2830 func (s *EvaluateUserConsentsRequest) MarshalJSON() ([]byte, error) {
2831 type NoMethod EvaluateUserConsentsRequest
2832 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2833 }
2834
2835 type EvaluateUserConsentsResponse struct {
2836
2837
2838
2839 NextPageToken string `json:"nextPageToken,omitempty"`
2840
2841 Results []*Result `json:"results,omitempty"`
2842
2843
2844 googleapi.ServerResponse `json:"-"`
2845
2846
2847
2848
2849
2850 ForceSendFields []string `json:"-"`
2851
2852
2853
2854
2855 NullFields []string `json:"-"`
2856 }
2857
2858 func (s *EvaluateUserConsentsResponse) MarshalJSON() ([]byte, error) {
2859 type NoMethod EvaluateUserConsentsResponse
2860 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2861 }
2862
2863
2864 type ExplainDataAccessConsentInfo struct {
2865
2866
2867
2868
2869 CascadeOrigins []string `json:"cascadeOrigins,omitempty"`
2870
2871
2872
2873 ConsentResource string `json:"consentResource,omitempty"`
2874
2875 EnforcementTime string `json:"enforcementTime,omitempty"`
2876
2877
2878 MatchingAccessorScopes []*ConsentAccessorScope `json:"matchingAccessorScopes,omitempty"`
2879
2880
2881
2882
2883 PatientConsentOwner string `json:"patientConsentOwner,omitempty"`
2884
2885
2886
2887
2888
2889
2890 Type string `json:"type,omitempty"`
2891
2892
2893
2894
2895
2896
2897
2898
2899 Variants []string `json:"variants,omitempty"`
2900
2901
2902
2903
2904
2905 ForceSendFields []string `json:"-"`
2906
2907
2908
2909
2910 NullFields []string `json:"-"`
2911 }
2912
2913 func (s *ExplainDataAccessConsentInfo) MarshalJSON() ([]byte, error) {
2914 type NoMethod ExplainDataAccessConsentInfo
2915 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2916 }
2917
2918
2919
2920
2921 type ExplainDataAccessConsentScope struct {
2922
2923
2924 AccessorScope *ConsentAccessorScope `json:"accessorScope,omitempty"`
2925
2926
2927
2928
2929
2930
2931
2932 Decision string `json:"decision,omitempty"`
2933
2934
2935 EnforcingConsents []*ExplainDataAccessConsentInfo `json:"enforcingConsents,omitempty"`
2936
2937 Exceptions []*ExplainDataAccessConsentScope `json:"exceptions,omitempty"`
2938
2939
2940
2941
2942
2943 ForceSendFields []string `json:"-"`
2944
2945
2946
2947
2948 NullFields []string `json:"-"`
2949 }
2950
2951 func (s *ExplainDataAccessConsentScope) MarshalJSON() ([]byte, error) {
2952 type NoMethod ExplainDataAccessConsentScope
2953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2954 }
2955
2956
2957
2958 type ExplainDataAccessResponse struct {
2959
2960
2961
2962 ConsentScopes []*ExplainDataAccessConsentScope `json:"consentScopes,omitempty"`
2963
2964
2965 Warning string `json:"warning,omitempty"`
2966
2967
2968 googleapi.ServerResponse `json:"-"`
2969
2970
2971
2972
2973
2974 ForceSendFields []string `json:"-"`
2975
2976
2977
2978
2979 NullFields []string `json:"-"`
2980 }
2981
2982 func (s *ExplainDataAccessResponse) MarshalJSON() ([]byte, error) {
2983 type NoMethod ExplainDataAccessResponse
2984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2985 }
2986
2987
2988
2989
2990 type ExportAnnotationsRequest struct {
2991
2992
2993 BigqueryDestination *GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination `json:"bigqueryDestination,omitempty"`
2994
2995
2996 GcsDestination *GoogleCloudHealthcareV1beta1AnnotationGcsDestination `json:"gcsDestination,omitempty"`
2997
2998
2999
3000
3001
3002 ForceSendFields []string `json:"-"`
3003
3004
3005
3006
3007 NullFields []string `json:"-"`
3008 }
3009
3010 func (s *ExportAnnotationsRequest) MarshalJSON() ([]byte, error) {
3011 type NoMethod ExportAnnotationsRequest
3012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3013 }
3014
3015
3016
3017
3018 type ExportAnnotationsResponse struct {
3019 }
3020
3021
3022
3023
3024
3025
3026 type ExportDicomDataRequest struct {
3027
3028
3029
3030
3031
3032 BigqueryDestination *GoogleCloudHealthcareV1beta1DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
3033
3034 FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"`
3035
3036
3037
3038 GcsDestination *GoogleCloudHealthcareV1beta1DicomGcsDestination `json:"gcsDestination,omitempty"`
3039
3040
3041
3042
3043
3044 ForceSendFields []string `json:"-"`
3045
3046
3047
3048
3049 NullFields []string `json:"-"`
3050 }
3051
3052 func (s *ExportDicomDataRequest) MarshalJSON() ([]byte, error) {
3053 type NoMethod ExportDicomDataRequest
3054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3055 }
3056
3057
3058
3059 type ExportDicomDataResponse struct {
3060 }
3061
3062
3063 type ExportMessagesRequest struct {
3064
3065
3066
3067
3068
3069
3070 EndTime string `json:"endTime,omitempty"`
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110 Filter string `json:"filter,omitempty"`
3111
3112 GcsDestination *GcsDestination `json:"gcsDestination,omitempty"`
3113
3114 PubsubDestination *PubsubDestination `json:"pubsubDestination,omitempty"`
3115
3116
3117
3118
3119
3120
3121 StartTime string `json:"startTime,omitempty"`
3122
3123
3124
3125
3126
3127 ForceSendFields []string `json:"-"`
3128
3129
3130
3131
3132 NullFields []string `json:"-"`
3133 }
3134
3135 func (s *ExportMessagesRequest) MarshalJSON() ([]byte, error) {
3136 type NoMethod ExportMessagesRequest
3137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3138 }
3139
3140
3141
3142 type ExportMessagesResponse struct {
3143 }
3144
3145
3146 type ExportResourcesHistoryRequest struct {
3147
3148
3149
3150
3151 Since string `json:"_since,omitempty"`
3152
3153
3154 Type string `json:"_type,omitempty"`
3155
3156
3157
3158
3159
3160 BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172 GcsDestination *GoogleCloudHealthcareV1beta1FhirGcsDestination `json:"gcsDestination,omitempty"`
3173
3174
3175
3176
3177 MaxResourceVersions int64 `json:"maxResourceVersions,omitempty,string"`
3178
3179
3180
3181
3182
3183 ForceSendFields []string `json:"-"`
3184
3185
3186
3187
3188 NullFields []string `json:"-"`
3189 }
3190
3191 func (s *ExportResourcesHistoryRequest) MarshalJSON() ([]byte, error) {
3192 type NoMethod ExportResourcesHistoryRequest
3193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3194 }
3195
3196
3197 type ExportResourcesRequest struct {
3198
3199
3200
3201
3202 Since string `json:"_since,omitempty"`
3203
3204
3205 Type string `json:"_type,omitempty"`
3206
3207
3208
3209
3210
3211 BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
3212
3213
3214
3215
3216
3217 GcsDestination *GoogleCloudHealthcareV1beta1FhirGcsDestination `json:"gcsDestination,omitempty"`
3218
3219
3220
3221
3222
3223 ForceSendFields []string `json:"-"`
3224
3225
3226
3227
3228 NullFields []string `json:"-"`
3229 }
3230
3231 func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) {
3232 type NoMethod ExportResourcesRequest
3233 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3234 }
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252 type Expr struct {
3253
3254
3255 Description string `json:"description,omitempty"`
3256
3257
3258 Expression string `json:"expression,omitempty"`
3259
3260
3261 Location string `json:"location,omitempty"`
3262
3263
3264
3265 Title string `json:"title,omitempty"`
3266
3267
3268
3269
3270
3271 ForceSendFields []string `json:"-"`
3272
3273
3274
3275
3276 NullFields []string `json:"-"`
3277 }
3278
3279 func (s *Expr) MarshalJSON() ([]byte, error) {
3280 type NoMethod Expr
3281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3282 }
3283
3284
3285 type Feature struct {
3286
3287
3288 Confidence float64 `json:"confidence,omitempty"`
3289
3290
3291 Value string `json:"value,omitempty"`
3292
3293
3294
3295
3296
3297 ForceSendFields []string `json:"-"`
3298
3299
3300
3301
3302 NullFields []string `json:"-"`
3303 }
3304
3305 func (s *Feature) MarshalJSON() ([]byte, error) {
3306 type NoMethod Feature
3307 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3308 }
3309
3310 func (s *Feature) UnmarshalJSON(data []byte) error {
3311 type NoMethod Feature
3312 var s1 struct {
3313 Confidence gensupport.JSONFloat64 `json:"confidence"`
3314 *NoMethod
3315 }
3316 s1.NoMethod = (*NoMethod)(s)
3317 if err := json.Unmarshal(data, &s1); err != nil {
3318 return err
3319 }
3320 s.Confidence = float64(s1.Confidence)
3321 return nil
3322 }
3323
3324
3325 type FhirConfig struct {
3326
3327
3328
3329
3330 DefaultKeepExtensions bool `json:"defaultKeepExtensions,omitempty"`
3331
3332
3333
3334
3335
3336 FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"`
3337
3338
3339
3340
3341
3342 ForceSendFields []string `json:"-"`
3343
3344
3345
3346
3347 NullFields []string `json:"-"`
3348 }
3349
3350 func (s *FhirConfig) MarshalJSON() ([]byte, error) {
3351 type NoMethod FhirConfig
3352 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3353 }
3354
3355
3356
3357 type FhirFieldConfig struct {
3358
3359
3360
3361
3362
3363
3364 FieldMetadataList []*GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata `json:"fieldMetadataList,omitempty"`
3365
3366 Options *GoogleCloudHealthcareV1beta1DeidentifyOptions `json:"options,omitempty"`
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 ProfileType string `json:"profileType,omitempty"`
3380
3381
3382
3383
3384
3385 ForceSendFields []string `json:"-"`
3386
3387
3388
3389
3390 NullFields []string `json:"-"`
3391 }
3392
3393 func (s *FhirFieldConfig) MarshalJSON() ([]byte, error) {
3394 type NoMethod FhirFieldConfig
3395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3396 }
3397
3398
3399 type FhirFilter struct {
3400
3401
3402 Resources *Resources `json:"resources,omitempty"`
3403
3404
3405
3406
3407
3408 ForceSendFields []string `json:"-"`
3409
3410
3411
3412
3413 NullFields []string `json:"-"`
3414 }
3415
3416 func (s *FhirFilter) MarshalJSON() ([]byte, error) {
3417 type NoMethod FhirFilter
3418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3419 }
3420
3421
3422 type FhirNotificationConfig struct {
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439 PubsubTopic string `json:"pubsubTopic,omitempty"`
3440
3441
3442
3443
3444
3445
3446
3447 SendFullResource bool `json:"sendFullResource,omitempty"`
3448
3449
3450
3451
3452
3453
3454
3455 SendPreviousResourceOnDelete bool `json:"sendPreviousResourceOnDelete,omitempty"`
3456
3457
3458
3459
3460
3461 ForceSendFields []string `json:"-"`
3462
3463
3464
3465
3466 NullFields []string `json:"-"`
3467 }
3468
3469 func (s *FhirNotificationConfig) MarshalJSON() ([]byte, error) {
3470 type NoMethod FhirNotificationConfig
3471 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3472 }
3473
3474
3475 type FhirOutput struct {
3476
3477
3478
3479
3480
3481
3482
3483
3484 FhirStore string `json:"fhirStore,omitempty"`
3485
3486
3487
3488
3489
3490 ForceSendFields []string `json:"-"`
3491
3492
3493
3494
3495 NullFields []string `json:"-"`
3496 }
3497
3498 func (s *FhirOutput) MarshalJSON() ([]byte, error) {
3499 type NoMethod FhirOutput
3500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3501 }
3502
3503
3504 type FhirStore struct {
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519 ComplexDataTypeReferenceParsing string `json:"complexDataTypeReferenceParsing,omitempty"`
3520
3521
3522
3523 ConsentConfig *ConsentConfig `json:"consentConfig,omitempty"`
3524
3525
3526
3527
3528
3529
3530
3531 DefaultSearchHandlingStrict bool `json:"defaultSearchHandlingStrict,omitempty"`
3532
3533
3534
3535
3536
3537
3538
3539
3540 DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"`
3541
3542
3543
3544
3545
3546
3547
3548 DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"`
3549
3550
3551
3552
3553 EnableHistoryModifications bool `json:"enableHistoryModifications,omitempty"`
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564 EnableUpdateCreate bool `json:"enableUpdateCreate,omitempty"`
3565
3566
3567
3568
3569
3570
3571
3572
3573 Labels map[string]string `json:"labels,omitempty"`
3574
3575
3576
3577 Name string `json:"name,omitempty"`
3578
3579
3580
3581
3582
3583 NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
3584
3585
3586 NotificationConfigs []*FhirNotificationConfig `json:"notificationConfigs,omitempty"`
3587
3588 SearchConfig *SearchConfig `json:"searchConfig,omitempty"`
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601 StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"`
3602
3603
3604 ValidationConfig *ValidationConfig `json:"validationConfig,omitempty"`
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618 Version string `json:"version,omitempty"`
3619
3620
3621 googleapi.ServerResponse `json:"-"`
3622
3623
3624
3625
3626
3627
3628 ForceSendFields []string `json:"-"`
3629
3630
3631
3632
3633 NullFields []string `json:"-"`
3634 }
3635
3636 func (s *FhirStore) MarshalJSON() ([]byte, error) {
3637 type NoMethod FhirStore
3638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3639 }
3640
3641
3642
3643 type FhirStoreMetric struct {
3644
3645 Count int64 `json:"count,omitempty,string"`
3646
3647 ResourceType string `json:"resourceType,omitempty"`
3648
3649
3650 StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
3651
3652
3653
3654
3655
3656 ForceSendFields []string `json:"-"`
3657
3658
3659
3660
3661 NullFields []string `json:"-"`
3662 }
3663
3664 func (s *FhirStoreMetric) MarshalJSON() ([]byte, error) {
3665 type NoMethod FhirStoreMetric
3666 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3667 }
3668
3669
3670 type FhirStoreMetrics struct {
3671
3672 Metrics []*FhirStoreMetric `json:"metrics,omitempty"`
3673
3674
3675 Name string `json:"name,omitempty"`
3676
3677
3678 googleapi.ServerResponse `json:"-"`
3679
3680
3681
3682
3683
3684 ForceSendFields []string `json:"-"`
3685
3686
3687
3688
3689 NullFields []string `json:"-"`
3690 }
3691
3692 func (s *FhirStoreMetrics) MarshalJSON() ([]byte, error) {
3693 type NoMethod FhirStoreMetrics
3694 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3695 }
3696
3697
3698 type Field struct {
3699
3700
3701 MaxOccurs int64 `json:"maxOccurs,omitempty"`
3702
3703 MinOccurs int64 `json:"minOccurs,omitempty"`
3704
3705 Name string `json:"name,omitempty"`
3706
3707
3708 Table string `json:"table,omitempty"`
3709
3710
3711 Type string `json:"type,omitempty"`
3712
3713
3714
3715
3716
3717 ForceSendFields []string `json:"-"`
3718
3719
3720
3721
3722 NullFields []string `json:"-"`
3723 }
3724
3725 func (s *Field) MarshalJSON() ([]byte, error) {
3726 type NoMethod Field
3727 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3728 }
3729
3730
3731
3732 type FieldMetadata struct {
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745 Action string `json:"action,omitempty"`
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761 Paths []string `json:"paths,omitempty"`
3762
3763
3764
3765
3766
3767 ForceSendFields []string `json:"-"`
3768
3769
3770
3771
3772 NullFields []string `json:"-"`
3773 }
3774
3775 func (s *FieldMetadata) MarshalJSON() ([]byte, error) {
3776 type NoMethod FieldMetadata
3777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3778 }
3779
3780
3781 type FilterList struct {
3782
3783
3784 InfoTypes []string `json:"infoTypes,omitempty"`
3785
3786
3787
3788
3789
3790 ForceSendFields []string `json:"-"`
3791
3792
3793
3794
3795 NullFields []string `json:"-"`
3796 }
3797
3798 func (s *FilterList) MarshalJSON() ([]byte, error) {
3799 type NoMethod FilterList
3800 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3801 }
3802
3803 type Finding struct {
3804
3805 End int64 `json:"end,omitempty,string"`
3806
3807
3808 InfoType string `json:"infoType,omitempty"`
3809
3810
3811 Quote string `json:"quote,omitempty"`
3812
3813 Start int64 `json:"start,omitempty,string"`
3814
3815
3816
3817
3818
3819 ForceSendFields []string `json:"-"`
3820
3821
3822
3823
3824 NullFields []string `json:"-"`
3825 }
3826
3827 func (s *Finding) MarshalJSON() ([]byte, error) {
3828 type NoMethod Finding
3829 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3830 }
3831
3832
3833
3834
3835 type GcsDestination struct {
3836
3837
3838
3839
3840
3841
3842
3843 ContentStructure string `json:"contentStructure,omitempty"`
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858 MessageView string `json:"messageView,omitempty"`
3859
3860
3861
3862
3863 UriPrefix string `json:"uriPrefix,omitempty"`
3864
3865
3866
3867
3868
3869 ForceSendFields []string `json:"-"`
3870
3871
3872
3873
3874 NullFields []string `json:"-"`
3875 }
3876
3877 func (s *GcsDestination) MarshalJSON() ([]byte, error) {
3878 type NoMethod GcsDestination
3879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3880 }
3881
3882
3883
3884 type GcsSource struct {
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897 Uri string `json:"uri,omitempty"`
3898
3899
3900
3901
3902
3903 ForceSendFields []string `json:"-"`
3904
3905
3906
3907
3908 NullFields []string `json:"-"`
3909 }
3910
3911 func (s *GcsSource) MarshalJSON() ([]byte, error) {
3912 type NoMethod GcsSource
3913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3914 }
3915
3916
3917
3918 type GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination struct {
3919
3920
3921
3922
3923 Force bool `json:"force,omitempty"`
3924
3925
3926
3927
3928
3929 SchemaType string `json:"schemaType,omitempty"`
3930
3931
3932 TableUri string `json:"tableUri,omitempty"`
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944 WriteDisposition string `json:"writeDisposition,omitempty"`
3945
3946
3947
3948
3949
3950 ForceSendFields []string `json:"-"`
3951
3952
3953
3954
3955 NullFields []string `json:"-"`
3956 }
3957
3958 func (s *GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination) MarshalJSON() ([]byte, error) {
3959 type NoMethod GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
3960 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3961 }
3962
3963
3964
3965 type GoogleCloudHealthcareV1beta1AnnotationGcsDestination struct {
3966
3967
3968
3969
3970
3971
3972 UriPrefix string `json:"uriPrefix,omitempty"`
3973
3974
3975
3976
3977
3978 ForceSendFields []string `json:"-"`
3979
3980
3981
3982
3983 NullFields []string `json:"-"`
3984 }
3985
3986 func (s *GoogleCloudHealthcareV1beta1AnnotationGcsDestination) MarshalJSON() ([]byte, error) {
3987 type NoMethod GoogleCloudHealthcareV1beta1AnnotationGcsDestination
3988 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3989 }
3990
3991
3992
3993 type GoogleCloudHealthcareV1beta1AnnotationGcsSource struct {
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006 Uri string `json:"uri,omitempty"`
4007
4008
4009
4010
4011
4012 ForceSendFields []string `json:"-"`
4013
4014
4015
4016
4017 NullFields []string `json:"-"`
4018 }
4019
4020 func (s *GoogleCloudHealthcareV1beta1AnnotationGcsSource) MarshalJSON() ([]byte, error) {
4021 type NoMethod GoogleCloudHealthcareV1beta1AnnotationGcsSource
4022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4023 }
4024
4025
4026
4027 type GoogleCloudHealthcareV1beta1ConsentGcsDestination struct {
4028
4029
4030
4031
4032
4033 UriPrefix string `json:"uriPrefix,omitempty"`
4034
4035
4036
4037
4038
4039 ForceSendFields []string `json:"-"`
4040
4041
4042
4043
4044 NullFields []string `json:"-"`
4045 }
4046
4047 func (s *GoogleCloudHealthcareV1beta1ConsentGcsDestination) MarshalJSON() ([]byte, error) {
4048 type NoMethod GoogleCloudHealthcareV1beta1ConsentGcsDestination
4049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4050 }
4051
4052
4053
4054 type GoogleCloudHealthcareV1beta1ConsentPolicy struct {
4055
4056
4057
4058
4059 AuthorizationRule *Expr `json:"authorizationRule,omitempty"`
4060
4061
4062
4063 ResourceAttributes []*Attribute `json:"resourceAttributes,omitempty"`
4064
4065
4066
4067
4068
4069 ForceSendFields []string `json:"-"`
4070
4071
4072
4073
4074 NullFields []string `json:"-"`
4075 }
4076
4077 func (s *GoogleCloudHealthcareV1beta1ConsentPolicy) MarshalJSON() ([]byte, error) {
4078 type NoMethod GoogleCloudHealthcareV1beta1ConsentPolicy
4079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4080 }
4081
4082
4083
4084 type GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary struct {
4085 }
4086
4087
4088
4089 type GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary struct {
4090 }
4091
4092
4093
4094 type GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata struct {
4095
4096
4097
4098 CharacterMaskField *CharacterMaskField `json:"characterMaskField,omitempty"`
4099
4100
4101
4102
4103 CleanTextField *CleanTextField `json:"cleanTextField,omitempty"`
4104
4105
4106
4107 CryptoHashField *CryptoHashField `json:"cryptoHashField,omitempty"`
4108
4109
4110
4111
4112 DateShiftField *DateShiftField `json:"dateShiftField,omitempty"`
4113
4114 KeepField *KeepField `json:"keepField,omitempty"`
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133 Paths []string `json:"paths,omitempty"`
4134
4135 RemoveField *RemoveField `json:"removeField,omitempty"`
4136
4137
4138
4139
4140
4141 ForceSendFields []string `json:"-"`
4142
4143
4144
4145
4146 NullFields []string `json:"-"`
4147 }
4148
4149 func (s *GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata) MarshalJSON() ([]byte, error) {
4150 type NoMethod GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
4151 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4152 }
4153
4154
4155
4156 type GoogleCloudHealthcareV1beta1DeidentifyOptions struct {
4157
4158 CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
4159
4160 ContextualDeid *ContextualDeidConfig `json:"contextualDeid,omitempty"`
4161
4162 CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
4163
4164 DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
4165
4166 KeepExtensions *KeepExtensionsConfig `json:"keepExtensions,omitempty"`
4167
4168
4169
4170
4171
4172 ForceSendFields []string `json:"-"`
4173
4174
4175
4176
4177 NullFields []string `json:"-"`
4178 }
4179
4180 func (s *GoogleCloudHealthcareV1beta1DeidentifyOptions) MarshalJSON() ([]byte, error) {
4181 type NoMethod GoogleCloudHealthcareV1beta1DeidentifyOptions
4182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4183 }
4184
4185
4186
4187 type GoogleCloudHealthcareV1beta1DicomBigQueryDestination struct {
4188
4189
4190
4191
4192 Force bool `json:"force,omitempty"`
4193
4194
4195 TableUri string `json:"tableUri,omitempty"`
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207 WriteDisposition string `json:"writeDisposition,omitempty"`
4208
4209
4210
4211
4212
4213 ForceSendFields []string `json:"-"`
4214
4215
4216
4217
4218 NullFields []string `json:"-"`
4219 }
4220
4221 func (s *GoogleCloudHealthcareV1beta1DicomBigQueryDestination) MarshalJSON() ([]byte, error) {
4222 type NoMethod GoogleCloudHealthcareV1beta1DicomBigQueryDestination
4223 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4224 }
4225
4226
4227
4228 type GoogleCloudHealthcareV1beta1DicomGcsDestination struct {
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251 MimeType string `json:"mimeType,omitempty"`
4252
4253
4254
4255
4256
4257
4258 UriPrefix string `json:"uriPrefix,omitempty"`
4259
4260
4261
4262
4263
4264 ForceSendFields []string `json:"-"`
4265
4266
4267
4268
4269 NullFields []string `json:"-"`
4270 }
4271
4272 func (s *GoogleCloudHealthcareV1beta1DicomGcsDestination) MarshalJSON() ([]byte, error) {
4273 type NoMethod GoogleCloudHealthcareV1beta1DicomGcsDestination
4274 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4275 }
4276
4277
4278
4279 type GoogleCloudHealthcareV1beta1DicomGcsSource struct {
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292 Uri string `json:"uri,omitempty"`
4293
4294
4295
4296
4297
4298 ForceSendFields []string `json:"-"`
4299
4300
4301
4302
4303 NullFields []string `json:"-"`
4304 }
4305
4306 func (s *GoogleCloudHealthcareV1beta1DicomGcsSource) MarshalJSON() ([]byte, error) {
4307 type NoMethod GoogleCloudHealthcareV1beta1DicomGcsSource
4308 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4309 }
4310
4311
4312
4313 type GoogleCloudHealthcareV1beta1DicomStreamConfig struct {
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335 BigqueryDestination *GoogleCloudHealthcareV1beta1DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
4336
4337
4338
4339
4340
4341 ForceSendFields []string `json:"-"`
4342
4343
4344
4345
4346 NullFields []string `json:"-"`
4347 }
4348
4349 func (s *GoogleCloudHealthcareV1beta1DicomStreamConfig) MarshalJSON() ([]byte, error) {
4350 type NoMethod GoogleCloudHealthcareV1beta1DicomStreamConfig
4351 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4352 }
4353
4354
4355
4356 type GoogleCloudHealthcareV1beta1FhirBigQueryDestination struct {
4357
4358
4359 DatasetUri string `json:"datasetUri,omitempty"`
4360
4361
4362
4363
4364 Force bool `json:"force,omitempty"`
4365
4366 SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"`
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 WriteDisposition string `json:"writeDisposition,omitempty"`
4379
4380
4381
4382
4383
4384 ForceSendFields []string `json:"-"`
4385
4386
4387
4388
4389 NullFields []string `json:"-"`
4390 }
4391
4392 func (s *GoogleCloudHealthcareV1beta1FhirBigQueryDestination) MarshalJSON() ([]byte, error) {
4393 type NoMethod GoogleCloudHealthcareV1beta1FhirBigQueryDestination
4394 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4395 }
4396
4397
4398
4399
4400 type GoogleCloudHealthcareV1beta1FhirExportResourcesResponse struct {
4401 }
4402
4403
4404
4405 type GoogleCloudHealthcareV1beta1FhirGcsDestination struct {
4406
4407
4408
4409
4410
4411 UriPrefix string `json:"uriPrefix,omitempty"`
4412
4413
4414
4415
4416
4417 ForceSendFields []string `json:"-"`
4418
4419
4420
4421
4422 NullFields []string `json:"-"`
4423 }
4424
4425 func (s *GoogleCloudHealthcareV1beta1FhirGcsDestination) MarshalJSON() ([]byte, error) {
4426 type NoMethod GoogleCloudHealthcareV1beta1FhirGcsDestination
4427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4428 }
4429
4430
4431
4432 type GoogleCloudHealthcareV1beta1FhirGcsSource struct {
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 Uri string `json:"uri,omitempty"`
4446
4447
4448
4449
4450
4451 ForceSendFields []string `json:"-"`
4452
4453
4454
4455
4456 NullFields []string `json:"-"`
4457 }
4458
4459 func (s *GoogleCloudHealthcareV1beta1FhirGcsSource) MarshalJSON() ([]byte, error) {
4460 type NoMethod GoogleCloudHealthcareV1beta1FhirGcsSource
4461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4462 }
4463
4464
4465
4466
4467 type GoogleCloudHealthcareV1beta1FhirImportResourcesResponse struct {
4468 }
4469
4470
4471 type GroupOrSegment struct {
4472 Group *SchemaGroup `json:"group,omitempty"`
4473 Segment *SchemaSegment `json:"segment,omitempty"`
4474
4475
4476
4477
4478
4479 ForceSendFields []string `json:"-"`
4480
4481
4482
4483
4484 NullFields []string `json:"-"`
4485 }
4486
4487 func (s *GroupOrSegment) MarshalJSON() ([]byte, error) {
4488 type NoMethod GroupOrSegment
4489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4490 }
4491
4492
4493
4494
4495 type Hl7SchemaConfig struct {
4496
4497
4498 MessageSchemaConfigs map[string]SchemaGroup `json:"messageSchemaConfigs,omitempty"`
4499
4500
4501 Version []*VersionSource `json:"version,omitempty"`
4502
4503
4504
4505
4506
4507 ForceSendFields []string `json:"-"`
4508
4509
4510
4511
4512 NullFields []string `json:"-"`
4513 }
4514
4515 func (s *Hl7SchemaConfig) MarshalJSON() ([]byte, error) {
4516 type NoMethod Hl7SchemaConfig
4517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4518 }
4519
4520
4521
4522 type Hl7TypesConfig struct {
4523
4524 Type []*Type `json:"type,omitempty"`
4525
4526
4527 Version []*VersionSource `json:"version,omitempty"`
4528
4529
4530
4531
4532
4533 ForceSendFields []string `json:"-"`
4534
4535
4536
4537
4538 NullFields []string `json:"-"`
4539 }
4540
4541 func (s *Hl7TypesConfig) MarshalJSON() ([]byte, error) {
4542 type NoMethod Hl7TypesConfig
4543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4544 }
4545
4546
4547
4548 type Hl7V2NotificationConfig struct {
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588 Filter string `json:"filter,omitempty"`
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603 PubsubTopic string `json:"pubsubTopic,omitempty"`
4604
4605
4606
4607
4608
4609 ForceSendFields []string `json:"-"`
4610
4611
4612
4613
4614 NullFields []string `json:"-"`
4615 }
4616
4617 func (s *Hl7V2NotificationConfig) MarshalJSON() ([]byte, error) {
4618 type NoMethod Hl7V2NotificationConfig
4619 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4620 }
4621
4622
4623 type Hl7V2Store struct {
4624
4625
4626
4627
4628
4629
4630
4631
4632 Labels map[string]string `json:"labels,omitempty"`
4633
4634
4635
4636 Name string `json:"name,omitempty"`
4637
4638
4639
4640
4641 NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
4642
4643
4644
4645
4646 NotificationConfigs []*Hl7V2NotificationConfig `json:"notificationConfigs,omitempty"`
4647
4648
4649 ParserConfig *ParserConfig `json:"parserConfig,omitempty"`
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659 RejectDuplicateMessage bool `json:"rejectDuplicateMessage,omitempty"`
4660
4661
4662 googleapi.ServerResponse `json:"-"`
4663
4664
4665
4666
4667
4668 ForceSendFields []string `json:"-"`
4669
4670
4671
4672
4673 NullFields []string `json:"-"`
4674 }
4675
4676 func (s *Hl7V2Store) MarshalJSON() ([]byte, error) {
4677 type NoMethod Hl7V2Store
4678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4679 }
4680
4681
4682
4683 type Hl7V2StoreMetric struct {
4684
4685
4686 Count int64 `json:"count,omitempty,string"`
4687
4688
4689 MessageType string `json:"messageType,omitempty"`
4690
4691
4692 StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
4693
4694
4695
4696
4697
4698 ForceSendFields []string `json:"-"`
4699
4700
4701
4702
4703 NullFields []string `json:"-"`
4704 }
4705
4706 func (s *Hl7V2StoreMetric) MarshalJSON() ([]byte, error) {
4707 type NoMethod Hl7V2StoreMetric
4708 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4709 }
4710
4711
4712 type Hl7V2StoreMetrics struct {
4713
4714 Metrics []*Hl7V2StoreMetric `json:"metrics,omitempty"`
4715
4716
4717 Name string `json:"name,omitempty"`
4718
4719
4720 googleapi.ServerResponse `json:"-"`
4721
4722
4723
4724
4725
4726 ForceSendFields []string `json:"-"`
4727
4728
4729
4730
4731 NullFields []string `json:"-"`
4732 }
4733
4734 func (s *Hl7V2StoreMetrics) MarshalJSON() ([]byte, error) {
4735 type NoMethod Hl7V2StoreMetrics
4736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4737 }
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756 type HttpBody struct {
4757
4758
4759 ContentType string `json:"contentType,omitempty"`
4760
4761 Data string `json:"data,omitempty"`
4762
4763
4764 Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
4765
4766
4767 googleapi.ServerResponse `json:"-"`
4768
4769
4770
4771
4772
4773 ForceSendFields []string `json:"-"`
4774
4775
4776
4777
4778 NullFields []string `json:"-"`
4779 }
4780
4781 func (s *HttpBody) MarshalJSON() ([]byte, error) {
4782 type NoMethod HttpBody
4783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4784 }
4785
4786
4787 type Image struct {
4788
4789
4790
4791
4792
4793
4794
4795 GcsUri string `json:"gcsUri,omitempty"`
4796
4797
4798
4799 RawBytes string `json:"rawBytes,omitempty"`
4800
4801
4802
4803
4804
4805 ForceSendFields []string `json:"-"`
4806
4807
4808
4809
4810 NullFields []string `json:"-"`
4811 }
4812
4813 func (s *Image) MarshalJSON() ([]byte, error) {
4814 type NoMethod Image
4815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4816 }
4817
4818
4819 type ImageAnnotation struct {
4820
4821
4822 BoundingPolys []*BoundingPoly `json:"boundingPolys,omitempty"`
4823
4824
4825 FrameIndex int64 `json:"frameIndex,omitempty"`
4826
4827
4828
4829
4830
4831 ForceSendFields []string `json:"-"`
4832
4833
4834
4835
4836 NullFields []string `json:"-"`
4837 }
4838
4839 func (s *ImageAnnotation) MarshalJSON() ([]byte, error) {
4840 type NoMethod ImageAnnotation
4841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4842 }
4843
4844
4845 type ImageConfig struct {
4846
4847
4848
4849
4850
4851 AdditionalInfoTypes []string `json:"additionalInfoTypes,omitempty"`
4852
4853
4854
4855 ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"`
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 TextRedactionMode string `json:"textRedactionMode,omitempty"`
4877
4878
4879
4880
4881
4882 ForceSendFields []string `json:"-"`
4883
4884
4885
4886
4887 NullFields []string `json:"-"`
4888 }
4889
4890 func (s *ImageConfig) MarshalJSON() ([]byte, error) {
4891 type NoMethod ImageConfig
4892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4893 }
4894
4895
4896
4897
4898
4899 type ImportAnnotationsRequest struct {
4900 GcsSource *GoogleCloudHealthcareV1beta1AnnotationGcsSource `json:"gcsSource,omitempty"`
4901
4902
4903
4904
4905
4906 ForceSendFields []string `json:"-"`
4907
4908
4909
4910
4911 NullFields []string `json:"-"`
4912 }
4913
4914 func (s *ImportAnnotationsRequest) MarshalJSON() ([]byte, error) {
4915 type NoMethod ImportAnnotationsRequest
4916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4917 }
4918
4919
4920
4921
4922 type ImportAnnotationsResponse struct {
4923 }
4924
4925
4926
4927
4928
4929 type ImportDicomDataRequest struct {
4930
4931
4932 BlobStorageSettings *BlobStorageSettings `json:"blobStorageSettings,omitempty"`
4933
4934
4935
4936 GcsSource *GoogleCloudHealthcareV1beta1DicomGcsSource `json:"gcsSource,omitempty"`
4937
4938
4939
4940
4941
4942 ForceSendFields []string `json:"-"`
4943
4944
4945
4946
4947 NullFields []string `json:"-"`
4948 }
4949
4950 func (s *ImportDicomDataRequest) MarshalJSON() ([]byte, error) {
4951 type NoMethod ImportDicomDataRequest
4952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4953 }
4954
4955
4956
4957 type ImportDicomDataResponse struct {
4958 }
4959
4960
4961 type ImportMessagesRequest struct {
4962
4963
4964
4965 GcsSource *GcsSource `json:"gcsSource,omitempty"`
4966
4967
4968
4969
4970
4971 ForceSendFields []string `json:"-"`
4972
4973
4974
4975
4976 NullFields []string `json:"-"`
4977 }
4978
4979 func (s *ImportMessagesRequest) MarshalJSON() ([]byte, error) {
4980 type NoMethod ImportMessagesRequest
4981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4982 }
4983
4984
4985
4986
4987 type ImportMessagesResponse struct {
4988 }
4989
4990
4991 type ImportResourcesHistoryRequest struct {
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 ContentStructure string `json:"contentStructure,omitempty"`
5007
5008
5009
5010
5011
5012 GcsSource *GoogleCloudHealthcareV1beta1FhirGcsSource `json:"gcsSource,omitempty"`
5013
5014
5015
5016
5017
5018 MaxErrorCount int64 `json:"maxErrorCount,omitempty,string"`
5019
5020
5021
5022
5023
5024 ForceSendFields []string `json:"-"`
5025
5026
5027
5028
5029 NullFields []string `json:"-"`
5030 }
5031
5032 func (s *ImportResourcesHistoryRequest) MarshalJSON() ([]byte, error) {
5033 type NoMethod ImportResourcesHistoryRequest
5034 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5035 }
5036
5037
5038 type ImportResourcesRequest struct {
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053 ContentStructure string `json:"contentStructure,omitempty"`
5054
5055
5056
5057
5058
5059 GcsSource *GoogleCloudHealthcareV1beta1FhirGcsSource `json:"gcsSource,omitempty"`
5060
5061
5062
5063
5064
5065 ForceSendFields []string `json:"-"`
5066
5067
5068
5069
5070 NullFields []string `json:"-"`
5071 }
5072
5073 func (s *ImportResourcesRequest) MarshalJSON() ([]byte, error) {
5074 type NoMethod ImportResourcesRequest
5075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5076 }
5077
5078
5079
5080 type InfoTypeConfig struct {
5081 EvaluateList *FilterList `json:"evaluateList,omitempty"`
5082 IgnoreList *FilterList `json:"ignoreList,omitempty"`
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 StrictMatching bool `json:"strictMatching,omitempty"`
5094
5095
5096
5097
5098
5099 ForceSendFields []string `json:"-"`
5100
5101
5102
5103
5104 NullFields []string `json:"-"`
5105 }
5106
5107 func (s *InfoTypeConfig) MarshalJSON() ([]byte, error) {
5108 type NoMethod InfoTypeConfig
5109 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5110 }
5111
5112
5113
5114 type InfoTypeTransformation struct {
5115
5116 CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
5117
5118 CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
5119
5120 DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
5121
5122
5123
5124 InfoTypes []string `json:"infoTypes,omitempty"`
5125
5126 RedactConfig *RedactConfig `json:"redactConfig,omitempty"`
5127
5128 ReplaceWithInfoTypeConfig *ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
5129
5130
5131
5132
5133
5134 ForceSendFields []string `json:"-"`
5135
5136
5137
5138
5139 NullFields []string `json:"-"`
5140 }
5141
5142 func (s *InfoTypeTransformation) MarshalJSON() ([]byte, error) {
5143 type NoMethod InfoTypeTransformation
5144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5145 }
5146
5147
5148 type IngestMessageRequest struct {
5149
5150 Message *Message `json:"message,omitempty"`
5151
5152
5153
5154
5155
5156 ForceSendFields []string `json:"-"`
5157
5158
5159
5160
5161 NullFields []string `json:"-"`
5162 }
5163
5164 func (s *IngestMessageRequest) MarshalJSON() ([]byte, error) {
5165 type NoMethod IngestMessageRequest
5166 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5167 }
5168
5169
5170
5171 type IngestMessageResponse struct {
5172
5173 Hl7Ack string `json:"hl7Ack,omitempty"`
5174
5175 Message *Message `json:"message,omitempty"`
5176
5177
5178 googleapi.ServerResponse `json:"-"`
5179
5180
5181
5182
5183
5184 ForceSendFields []string `json:"-"`
5185
5186
5187
5188
5189 NullFields []string `json:"-"`
5190 }
5191
5192 func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) {
5193 type NoMethod IngestMessageResponse
5194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5195 }
5196
5197
5198
5199
5200
5201 type KeepExtensionsConfig struct {
5202 }
5203
5204
5205 type KeepField struct {
5206 }
5207
5208
5209 type KeepTag struct {
5210 }
5211
5212
5213
5214
5215
5216
5217
5218 type KmsWrappedCryptoKey struct {
5219
5220
5221
5222
5223 CryptoKey string `json:"cryptoKey,omitempty"`
5224
5225 WrappedKey string `json:"wrappedKey,omitempty"`
5226
5227
5228
5229
5230
5231 ForceSendFields []string `json:"-"`
5232
5233
5234
5235
5236 NullFields []string `json:"-"`
5237 }
5238
5239 func (s *KmsWrappedCryptoKey) MarshalJSON() ([]byte, error) {
5240 type NoMethod KmsWrappedCryptoKey
5241 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5242 }
5243
5244
5245
5246 type LinkedEntity struct {
5247
5248
5249
5250
5251
5252 EntityId string `json:"entityId,omitempty"`
5253
5254
5255
5256
5257
5258 ForceSendFields []string `json:"-"`
5259
5260
5261
5262
5263 NullFields []string `json:"-"`
5264 }
5265
5266 func (s *LinkedEntity) MarshalJSON() ([]byte, error) {
5267 type NoMethod LinkedEntity
5268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5269 }
5270
5271
5272
5273 type ListAnnotationStoresResponse struct {
5274
5275
5276 AnnotationStores []*AnnotationStore `json:"annotationStores,omitempty"`
5277
5278
5279 NextPageToken string `json:"nextPageToken,omitempty"`
5280
5281
5282 googleapi.ServerResponse `json:"-"`
5283
5284
5285
5286
5287
5288 ForceSendFields []string `json:"-"`
5289
5290
5291
5292
5293 NullFields []string `json:"-"`
5294 }
5295
5296 func (s *ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) {
5297 type NoMethod ListAnnotationStoresResponse
5298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5299 }
5300
5301
5302
5303 type ListAnnotationsResponse struct {
5304
5305
5306
5307 Annotations []*Annotation `json:"annotations,omitempty"`
5308
5309
5310 NextPageToken string `json:"nextPageToken,omitempty"`
5311
5312
5313 googleapi.ServerResponse `json:"-"`
5314
5315
5316
5317
5318
5319 ForceSendFields []string `json:"-"`
5320
5321
5322
5323
5324 NullFields []string `json:"-"`
5325 }
5326
5327 func (s *ListAnnotationsResponse) MarshalJSON() ([]byte, error) {
5328 type NoMethod ListAnnotationsResponse
5329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5330 }
5331
5332 type ListAttributeDefinitionsResponse struct {
5333
5334
5335
5336 AttributeDefinitions []*AttributeDefinition `json:"attributeDefinitions,omitempty"`
5337
5338
5339 NextPageToken string `json:"nextPageToken,omitempty"`
5340
5341
5342 googleapi.ServerResponse `json:"-"`
5343
5344
5345
5346
5347
5348 ForceSendFields []string `json:"-"`
5349
5350
5351
5352
5353 NullFields []string `json:"-"`
5354 }
5355
5356 func (s *ListAttributeDefinitionsResponse) MarshalJSON() ([]byte, error) {
5357 type NoMethod ListAttributeDefinitionsResponse
5358 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5359 }
5360
5361 type ListConsentArtifactsResponse struct {
5362
5363
5364
5365 ConsentArtifacts []*ConsentArtifact `json:"consentArtifacts,omitempty"`
5366
5367
5368 NextPageToken string `json:"nextPageToken,omitempty"`
5369
5370
5371 googleapi.ServerResponse `json:"-"`
5372
5373
5374
5375
5376
5377 ForceSendFields []string `json:"-"`
5378
5379
5380
5381
5382 NullFields []string `json:"-"`
5383 }
5384
5385 func (s *ListConsentArtifactsResponse) MarshalJSON() ([]byte, error) {
5386 type NoMethod ListConsentArtifactsResponse
5387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5388 }
5389
5390 type ListConsentRevisionsResponse struct {
5391
5392
5393
5394 Consents []*Consent `json:"consents,omitempty"`
5395
5396
5397 NextPageToken string `json:"nextPageToken,omitempty"`
5398
5399
5400 googleapi.ServerResponse `json:"-"`
5401
5402
5403
5404
5405
5406 ForceSendFields []string `json:"-"`
5407
5408
5409
5410
5411 NullFields []string `json:"-"`
5412 }
5413
5414 func (s *ListConsentRevisionsResponse) MarshalJSON() ([]byte, error) {
5415 type NoMethod ListConsentRevisionsResponse
5416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5417 }
5418
5419 type ListConsentStoresResponse struct {
5420
5421
5422
5423 ConsentStores []*ConsentStore `json:"consentStores,omitempty"`
5424
5425
5426 NextPageToken string `json:"nextPageToken,omitempty"`
5427
5428
5429 googleapi.ServerResponse `json:"-"`
5430
5431
5432
5433
5434
5435 ForceSendFields []string `json:"-"`
5436
5437
5438
5439
5440 NullFields []string `json:"-"`
5441 }
5442
5443 func (s *ListConsentStoresResponse) MarshalJSON() ([]byte, error) {
5444 type NoMethod ListConsentStoresResponse
5445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5446 }
5447
5448 type ListConsentsResponse struct {
5449
5450
5451 Consents []*Consent `json:"consents,omitempty"`
5452
5453
5454 NextPageToken string `json:"nextPageToken,omitempty"`
5455
5456
5457 googleapi.ServerResponse `json:"-"`
5458
5459
5460
5461
5462
5463 ForceSendFields []string `json:"-"`
5464
5465
5466
5467
5468 NullFields []string `json:"-"`
5469 }
5470
5471 func (s *ListConsentsResponse) MarshalJSON() ([]byte, error) {
5472 type NoMethod ListConsentsResponse
5473 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5474 }
5475
5476
5477 type ListDatasetsResponse struct {
5478
5479 Datasets []*Dataset `json:"datasets,omitempty"`
5480
5481
5482 NextPageToken string `json:"nextPageToken,omitempty"`
5483
5484
5485 googleapi.ServerResponse `json:"-"`
5486
5487
5488
5489
5490
5491 ForceSendFields []string `json:"-"`
5492
5493
5494
5495
5496 NullFields []string `json:"-"`
5497 }
5498
5499 func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
5500 type NoMethod ListDatasetsResponse
5501 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5502 }
5503
5504
5505 type ListDicomStoresResponse struct {
5506
5507
5508 DicomStores []*DicomStore `json:"dicomStores,omitempty"`
5509
5510
5511 NextPageToken string `json:"nextPageToken,omitempty"`
5512
5513
5514 googleapi.ServerResponse `json:"-"`
5515
5516
5517
5518
5519
5520 ForceSendFields []string `json:"-"`
5521
5522
5523
5524
5525 NullFields []string `json:"-"`
5526 }
5527
5528 func (s *ListDicomStoresResponse) MarshalJSON() ([]byte, error) {
5529 type NoMethod ListDicomStoresResponse
5530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5531 }
5532
5533
5534 type ListFhirStoresResponse struct {
5535
5536
5537 FhirStores []*FhirStore `json:"fhirStores,omitempty"`
5538
5539
5540 NextPageToken string `json:"nextPageToken,omitempty"`
5541
5542
5543 googleapi.ServerResponse `json:"-"`
5544
5545
5546
5547
5548
5549 ForceSendFields []string `json:"-"`
5550
5551
5552
5553
5554 NullFields []string `json:"-"`
5555 }
5556
5557 func (s *ListFhirStoresResponse) MarshalJSON() ([]byte, error) {
5558 type NoMethod ListFhirStoresResponse
5559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5560 }
5561
5562
5563 type ListHl7V2StoresResponse struct {
5564
5565
5566 Hl7V2Stores []*Hl7V2Store `json:"hl7V2Stores,omitempty"`
5567
5568
5569 NextPageToken string `json:"nextPageToken,omitempty"`
5570
5571
5572 googleapi.ServerResponse `json:"-"`
5573
5574
5575
5576
5577
5578 ForceSendFields []string `json:"-"`
5579
5580
5581
5582
5583 NullFields []string `json:"-"`
5584 }
5585
5586 func (s *ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) {
5587 type NoMethod ListHl7V2StoresResponse
5588 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5589 }
5590
5591
5592 type ListLocationsResponse struct {
5593
5594
5595 Locations []*Location `json:"locations,omitempty"`
5596
5597 NextPageToken string `json:"nextPageToken,omitempty"`
5598
5599
5600 googleapi.ServerResponse `json:"-"`
5601
5602
5603
5604
5605
5606 ForceSendFields []string `json:"-"`
5607
5608
5609
5610
5611 NullFields []string `json:"-"`
5612 }
5613
5614 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
5615 type NoMethod ListLocationsResponse
5616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5617 }
5618
5619
5620 type ListMessagesResponse struct {
5621
5622
5623 Hl7V2Messages []*Message `json:"hl7V2Messages,omitempty"`
5624
5625
5626 NextPageToken string `json:"nextPageToken,omitempty"`
5627
5628
5629 googleapi.ServerResponse `json:"-"`
5630
5631
5632
5633
5634
5635 ForceSendFields []string `json:"-"`
5636
5637
5638
5639
5640 NullFields []string `json:"-"`
5641 }
5642
5643 func (s *ListMessagesResponse) MarshalJSON() ([]byte, error) {
5644 type NoMethod ListMessagesResponse
5645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5646 }
5647
5648
5649 type ListOperationsResponse struct {
5650
5651 NextPageToken string `json:"nextPageToken,omitempty"`
5652
5653
5654 Operations []*Operation `json:"operations,omitempty"`
5655
5656
5657 googleapi.ServerResponse `json:"-"`
5658
5659
5660
5661
5662
5663 ForceSendFields []string `json:"-"`
5664
5665
5666
5667
5668 NullFields []string `json:"-"`
5669 }
5670
5671 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
5672 type NoMethod ListOperationsResponse
5673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5674 }
5675
5676 type ListUserDataMappingsResponse struct {
5677
5678
5679 NextPageToken string `json:"nextPageToken,omitempty"`
5680
5681
5682
5683 UserDataMappings []*UserDataMapping `json:"userDataMappings,omitempty"`
5684
5685
5686 googleapi.ServerResponse `json:"-"`
5687
5688
5689
5690
5691
5692 ForceSendFields []string `json:"-"`
5693
5694
5695
5696
5697 NullFields []string `json:"-"`
5698 }
5699
5700 func (s *ListUserDataMappingsResponse) MarshalJSON() ([]byte, error) {
5701 type NoMethod ListUserDataMappingsResponse
5702 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5703 }
5704
5705
5706 type Location struct {
5707
5708
5709 DisplayName string `json:"displayName,omitempty"`
5710
5711
5712 Labels map[string]string `json:"labels,omitempty"`
5713
5714 LocationId string `json:"locationId,omitempty"`
5715
5716
5717 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5718
5719
5720
5721 Name string `json:"name,omitempty"`
5722
5723
5724 googleapi.ServerResponse `json:"-"`
5725
5726
5727
5728
5729
5730 ForceSendFields []string `json:"-"`
5731
5732
5733
5734
5735 NullFields []string `json:"-"`
5736 }
5737
5738 func (s *Location) MarshalJSON() ([]byte, error) {
5739 type NoMethod Location
5740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5741 }
5742
5743
5744
5745
5746 type Message struct {
5747
5748
5749 CreateTime string `json:"createTime,omitempty"`
5750
5751 Data string `json:"data,omitempty"`
5752
5753
5754
5755
5756
5757
5758
5759
5760 Labels map[string]string `json:"labels,omitempty"`
5761
5762 MessageType string `json:"messageType,omitempty"`
5763
5764
5765
5766 Name string `json:"name,omitempty"`
5767
5768 ParsedData *ParsedData `json:"parsedData,omitempty"`
5769
5770
5771 PatientIds []*PatientId `json:"patientIds,omitempty"`
5772
5773
5774 SchematizedData *SchematizedData `json:"schematizedData,omitempty"`
5775
5776 SendFacility string `json:"sendFacility,omitempty"`
5777
5778 SendTime string `json:"sendTime,omitempty"`
5779
5780
5781 googleapi.ServerResponse `json:"-"`
5782
5783
5784
5785
5786
5787 ForceSendFields []string `json:"-"`
5788
5789
5790
5791
5792 NullFields []string `json:"-"`
5793 }
5794
5795 func (s *Message) MarshalJSON() ([]byte, error) {
5796 type NoMethod Message
5797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5798 }
5799
5800
5801
5802 type NotificationConfig struct {
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 PubsubTopic string `json:"pubsubTopic,omitempty"`
5821
5822
5823 SendForBulkImport bool `json:"sendForBulkImport,omitempty"`
5824
5825
5826
5827
5828
5829 ForceSendFields []string `json:"-"`
5830
5831
5832
5833
5834 NullFields []string `json:"-"`
5835 }
5836
5837 func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
5838 type NoMethod NotificationConfig
5839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5840 }
5841
5842
5843
5844 type Operation struct {
5845
5846
5847
5848 Done bool `json:"done,omitempty"`
5849
5850 Error *Status `json:"error,omitempty"`
5851
5852
5853
5854
5855 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5856
5857
5858
5859 Name string `json:"name,omitempty"`
5860
5861
5862
5863
5864
5865
5866
5867 Response googleapi.RawMessage `json:"response,omitempty"`
5868
5869
5870 googleapi.ServerResponse `json:"-"`
5871
5872
5873
5874
5875
5876 ForceSendFields []string `json:"-"`
5877
5878
5879
5880
5881 NullFields []string `json:"-"`
5882 }
5883
5884 func (s *Operation) MarshalJSON() ([]byte, error) {
5885 type NoMethod Operation
5886 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5887 }
5888
5889
5890
5891
5892 type OperationMetadata struct {
5893
5894 ApiMethodName string `json:"apiMethodName,omitempty"`
5895
5896 CancelRequested bool `json:"cancelRequested,omitempty"`
5897 Counter *ProgressCounter `json:"counter,omitempty"`
5898
5899 CreateTime string `json:"createTime,omitempty"`
5900
5901
5902 EndTime string `json:"endTime,omitempty"`
5903
5904
5905
5906
5907
5908 LogsUrl string `json:"logsUrl,omitempty"`
5909
5910
5911
5912
5913
5914 ForceSendFields []string `json:"-"`
5915
5916
5917
5918
5919 NullFields []string `json:"-"`
5920 }
5921
5922 func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
5923 type NoMethod OperationMetadata
5924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5925 }
5926
5927
5928 type Options struct {
5929
5930 CleanDescriptors *CleanDescriptorsOption `json:"cleanDescriptors,omitempty"`
5931
5932
5933
5934 CleanImage *ImageConfig `json:"cleanImage,omitempty"`
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 PrimaryIds string `json:"primaryIds,omitempty"`
5945
5946
5947
5948
5949
5950 ForceSendFields []string `json:"-"`
5951
5952
5953
5954
5955 NullFields []string `json:"-"`
5956 }
5957
5958 func (s *Options) MarshalJSON() ([]byte, error) {
5959 type NoMethod Options
5960 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5961 }
5962
5963
5964 type ParsedData struct {
5965 Segments []*Segment `json:"segments,omitempty"`
5966
5967
5968
5969
5970
5971 ForceSendFields []string `json:"-"`
5972
5973
5974
5975
5976 NullFields []string `json:"-"`
5977 }
5978
5979 func (s *ParsedData) MarshalJSON() ([]byte, error) {
5980 type NoMethod ParsedData
5981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5982 }
5983
5984
5985
5986 type ParserConfig struct {
5987
5988 AllowNullHeader bool `json:"allowNullHeader,omitempty"`
5989
5990
5991 Schema *SchemaPackage `json:"schema,omitempty"`
5992
5993
5994
5995 SegmentTerminator string `json:"segmentTerminator,omitempty"`
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 Version string `json:"version,omitempty"`
6015
6016
6017
6018
6019
6020 ForceSendFields []string `json:"-"`
6021
6022
6023
6024
6025 NullFields []string `json:"-"`
6026 }
6027
6028 func (s *ParserConfig) MarshalJSON() ([]byte, error) {
6029 type NoMethod ParserConfig
6030 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6031 }
6032
6033
6034 type PatientId struct {
6035
6036 Type string `json:"type,omitempty"`
6037
6038 Value string `json:"value,omitempty"`
6039
6040
6041
6042
6043
6044 ForceSendFields []string `json:"-"`
6045
6046
6047
6048
6049 NullFields []string `json:"-"`
6050 }
6051
6052 func (s *PatientId) MarshalJSON() ([]byte, error) {
6053 type NoMethod PatientId
6054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6055 }
6056
6057
6058 type PatientScope struct {
6059
6060
6061
6062 PatientIds []string `json:"patientIds,omitempty"`
6063
6064
6065
6066
6067
6068 ForceSendFields []string `json:"-"`
6069
6070
6071
6072
6073 NullFields []string `json:"-"`
6074 }
6075
6076 func (s *PatientScope) MarshalJSON() ([]byte, error) {
6077 type NoMethod PatientScope
6078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6079 }
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 type Policy struct {
6112
6113 AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 Bindings []*Binding `json:"bindings,omitempty"`
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 Etag string `json:"etag,omitempty"`
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 Version int64 `json:"version,omitempty"`
6152
6153
6154 googleapi.ServerResponse `json:"-"`
6155
6156
6157
6158
6159
6160 ForceSendFields []string `json:"-"`
6161
6162
6163
6164
6165 NullFields []string `json:"-"`
6166 }
6167
6168 func (s *Policy) MarshalJSON() ([]byte, error) {
6169 type NoMethod Policy
6170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6171 }
6172
6173
6174
6175 type ProgressCounter struct {
6176
6177 Failure int64 `json:"failure,omitempty,string"`
6178
6179 Pending int64 `json:"pending,omitempty,string"`
6180
6181
6182 SecondaryFailure int64 `json:"secondaryFailure,omitempty,string"`
6183
6184
6185 SecondarySuccess int64 `json:"secondarySuccess,omitempty,string"`
6186
6187 Success int64 `json:"success,omitempty,string"`
6188
6189
6190
6191
6192
6193 ForceSendFields []string `json:"-"`
6194
6195
6196
6197
6198 NullFields []string `json:"-"`
6199 }
6200
6201 func (s *ProgressCounter) MarshalJSON() ([]byte, error) {
6202 type NoMethod ProgressCounter
6203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6204 }
6205
6206
6207
6208
6209 type PubsubDestination struct {
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 PubsubTopic string `json:"pubsubTopic,omitempty"`
6222
6223
6224
6225
6226
6227 ForceSendFields []string `json:"-"`
6228
6229
6230
6231
6232 NullFields []string `json:"-"`
6233 }
6234
6235 func (s *PubsubDestination) MarshalJSON() ([]byte, error) {
6236 type NoMethod PubsubDestination
6237 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6238 }
6239
6240
6241
6242
6243
6244
6245
6246
6247 type QueryAccessibleDataRequest struct {
6248
6249
6250
6251
6252
6253 GcsDestination *GoogleCloudHealthcareV1beta1ConsentGcsDestination `json:"gcsDestination,omitempty"`
6254
6255
6256 RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
6257
6258
6259
6260 ResourceAttributes map[string]string `json:"resourceAttributes,omitempty"`
6261
6262
6263
6264
6265
6266 ForceSendFields []string `json:"-"`
6267
6268
6269
6270
6271 NullFields []string `json:"-"`
6272 }
6273
6274 func (s *QueryAccessibleDataRequest) MarshalJSON() ([]byte, error) {
6275 type NoMethod QueryAccessibleDataRequest
6276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6277 }
6278
6279
6280
6281
6282 type QueryAccessibleDataResponse struct {
6283
6284
6285 GcsUris []string `json:"gcsUris,omitempty"`
6286
6287
6288
6289
6290
6291 ForceSendFields []string `json:"-"`
6292
6293
6294
6295
6296 NullFields []string `json:"-"`
6297 }
6298
6299 func (s *QueryAccessibleDataResponse) MarshalJSON() ([]byte, error) {
6300 type NoMethod QueryAccessibleDataResponse
6301 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6302 }
6303
6304
6305
6306
6307
6308 type RecurseTag struct {
6309 }
6310
6311
6312
6313 type RedactConfig struct {
6314 }
6315
6316
6317
6318
6319
6320 type RegenUidTag struct {
6321 }
6322
6323
6324
6325
6326
6327 type RejectConsentRequest struct {
6328
6329
6330
6331
6332
6333
6334 ConsentArtifact string `json:"consentArtifact,omitempty"`
6335
6336
6337
6338
6339
6340 ForceSendFields []string `json:"-"`
6341
6342
6343
6344
6345 NullFields []string `json:"-"`
6346 }
6347
6348 func (s *RejectConsentRequest) MarshalJSON() ([]byte, error) {
6349 type NoMethod RejectConsentRequest
6350 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6351 }
6352
6353
6354 type RemoveField struct {
6355 }
6356
6357
6358 type RemoveTag struct {
6359 }
6360
6361
6362
6363
6364
6365 type ReplaceWithInfoTypeConfig struct {
6366 }
6367
6368
6369 type ResetTag struct {
6370 }
6371
6372
6373 type ResourceAnnotation struct {
6374
6375 Label string `json:"label,omitempty"`
6376
6377
6378
6379
6380
6381 ForceSendFields []string `json:"-"`
6382
6383
6384
6385
6386 NullFields []string `json:"-"`
6387 }
6388
6389 func (s *ResourceAnnotation) MarshalJSON() ([]byte, error) {
6390 type NoMethod ResourceAnnotation
6391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6392 }
6393
6394
6395 type Resources struct {
6396
6397 Resources []string `json:"resources,omitempty"`
6398
6399
6400
6401
6402
6403 ForceSendFields []string `json:"-"`
6404
6405
6406
6407
6408 NullFields []string `json:"-"`
6409 }
6410
6411 func (s *Resources) MarshalJSON() ([]byte, error) {
6412 type NoMethod Resources
6413 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6414 }
6415
6416
6417 type Result struct {
6418
6419
6420 ConsentDetails map[string]ConsentEvaluation `json:"consentDetails,omitempty"`
6421
6422 Consented bool `json:"consented,omitempty"`
6423
6424 DataId string `json:"dataId,omitempty"`
6425
6426
6427
6428
6429
6430 ForceSendFields []string `json:"-"`
6431
6432
6433
6434
6435 NullFields []string `json:"-"`
6436 }
6437
6438 func (s *Result) MarshalJSON() ([]byte, error) {
6439 type NoMethod Result
6440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6441 }
6442
6443
6444
6445
6446
6447 type RevokeConsentRequest struct {
6448
6449
6450
6451
6452 ConsentArtifact string `json:"consentArtifact,omitempty"`
6453
6454
6455
6456
6457
6458 ForceSendFields []string `json:"-"`
6459
6460
6461
6462
6463 NullFields []string `json:"-"`
6464 }
6465
6466 func (s *RevokeConsentRequest) MarshalJSON() ([]byte, error) {
6467 type NoMethod RevokeConsentRequest
6468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6469 }
6470
6471
6472
6473 type RollbackFhirResourceFilteringFields struct {
6474
6475
6476
6477
6478
6479
6480
6481 MetadataFilter string `json:"metadataFilter,omitempty"`
6482
6483
6484 OperationIds googleapi.Uint64s `json:"operationIds,omitempty"`
6485
6486
6487
6488
6489
6490 ForceSendFields []string `json:"-"`
6491
6492
6493
6494
6495 NullFields []string `json:"-"`
6496 }
6497
6498 func (s *RollbackFhirResourceFilteringFields) MarshalJSON() ([]byte, error) {
6499 type NoMethod RollbackFhirResourceFilteringFields
6500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6501 }
6502
6503
6504 type RollbackFhirResourcesRequest struct {
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514 ChangeType string `json:"changeType,omitempty"`
6515
6516 ExcludeRollbacks bool `json:"excludeRollbacks,omitempty"`
6517
6518
6519 FilteringFields *RollbackFhirResourceFilteringFields `json:"filteringFields,omitempty"`
6520
6521
6522 Force bool `json:"force,omitempty"`
6523
6524
6525 InputGcsObject string `json:"inputGcsObject,omitempty"`
6526
6527 ResultGcsBucket string `json:"resultGcsBucket,omitempty"`
6528
6529 RollbackTime string `json:"rollbackTime,omitempty"`
6530
6531 Type []string `json:"type,omitempty"`
6532
6533
6534
6535
6536
6537 ForceSendFields []string `json:"-"`
6538
6539
6540
6541
6542 NullFields []string `json:"-"`
6543 }
6544
6545 func (s *RollbackFhirResourcesRequest) MarshalJSON() ([]byte, error) {
6546 type NoMethod RollbackFhirResourcesRequest
6547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6548 }
6549
6550
6551
6552 type RollbackFhirResourcesResponse struct {
6553
6554
6555
6556 FhirStore string `json:"fhirStore,omitempty"`
6557
6558
6559
6560
6561
6562 ForceSendFields []string `json:"-"`
6563
6564
6565
6566
6567 NullFields []string `json:"-"`
6568 }
6569
6570 func (s *RollbackFhirResourcesResponse) MarshalJSON() ([]byte, error) {
6571 type NoMethod RollbackFhirResourcesResponse
6572 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6573 }
6574
6575
6576
6577 type SchemaConfig struct {
6578
6579
6580 LastUpdatedPartitionConfig *TimePartitioning `json:"lastUpdatedPartitionConfig,omitempty"`
6581
6582
6583
6584
6585
6586
6587 RecursiveStructureDepth int64 `json:"recursiveStructureDepth,omitempty,string"`
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 SchemaType string `json:"schemaType,omitempty"`
6614
6615
6616
6617
6618
6619 ForceSendFields []string `json:"-"`
6620
6621
6622
6623
6624 NullFields []string `json:"-"`
6625 }
6626
6627 func (s *SchemaConfig) MarshalJSON() ([]byte, error) {
6628 type NoMethod SchemaConfig
6629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6630 }
6631
6632
6633 type SchemaGroup struct {
6634
6635
6636 Choice bool `json:"choice,omitempty"`
6637
6638
6639 MaxOccurs int64 `json:"maxOccurs,omitempty"`
6640
6641 Members []*GroupOrSegment `json:"members,omitempty"`
6642
6643 MinOccurs int64 `json:"minOccurs,omitempty"`
6644
6645 Name string `json:"name,omitempty"`
6646
6647
6648
6649
6650
6651 ForceSendFields []string `json:"-"`
6652
6653
6654
6655
6656 NullFields []string `json:"-"`
6657 }
6658
6659 func (s *SchemaGroup) MarshalJSON() ([]byte, error) {
6660 type NoMethod SchemaGroup
6661 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6662 }
6663
6664
6665
6666 type SchemaPackage struct {
6667
6668
6669
6670 IgnoreMinOccurs bool `json:"ignoreMinOccurs,omitempty"`
6671
6672
6673
6674
6675 Schemas []*Hl7SchemaConfig `json:"schemas,omitempty"`
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 SchematizedParsingType string `json:"schematizedParsingType,omitempty"`
6687
6688
6689
6690
6691 Types []*Hl7TypesConfig `json:"types,omitempty"`
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 UnexpectedSegmentHandling string `json:"unexpectedSegmentHandling,omitempty"`
6704
6705
6706
6707
6708
6709 ForceSendFields []string `json:"-"`
6710
6711
6712
6713
6714 NullFields []string `json:"-"`
6715 }
6716
6717 func (s *SchemaPackage) MarshalJSON() ([]byte, error) {
6718 type NoMethod SchemaPackage
6719 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6720 }
6721
6722
6723 type SchemaSegment struct {
6724
6725
6726 MaxOccurs int64 `json:"maxOccurs,omitempty"`
6727
6728
6729 MinOccurs int64 `json:"minOccurs,omitempty"`
6730
6731 Type string `json:"type,omitempty"`
6732
6733
6734
6735
6736
6737 ForceSendFields []string `json:"-"`
6738
6739
6740
6741
6742 NullFields []string `json:"-"`
6743 }
6744
6745 func (s *SchemaSegment) MarshalJSON() ([]byte, error) {
6746 type NoMethod SchemaSegment
6747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6748 }
6749
6750
6751
6752 type SchematizedData struct {
6753
6754 Data string `json:"data,omitempty"`
6755
6756 Error string `json:"error,omitempty"`
6757
6758
6759
6760
6761
6762 ForceSendFields []string `json:"-"`
6763
6764
6765
6766
6767 NullFields []string `json:"-"`
6768 }
6769
6770 func (s *SchematizedData) MarshalJSON() ([]byte, error) {
6771 type NoMethod SchematizedData
6772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6773 }
6774
6775
6776 type SearchConfig struct {
6777
6778
6779 SearchParameters []*SearchParameter `json:"searchParameters,omitempty"`
6780
6781
6782
6783
6784
6785 ForceSendFields []string `json:"-"`
6786
6787
6788
6789
6790 NullFields []string `json:"-"`
6791 }
6792
6793 func (s *SearchConfig) MarshalJSON() ([]byte, error) {
6794 type NoMethod SearchConfig
6795 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6796 }
6797
6798
6799
6800 type SearchParameter struct {
6801
6802 CanonicalUrl string `json:"canonicalUrl,omitempty"`
6803
6804
6805
6806
6807
6808
6809
6810 Parameter string `json:"parameter,omitempty"`
6811
6812
6813
6814
6815
6816 ForceSendFields []string `json:"-"`
6817
6818
6819
6820
6821 NullFields []string `json:"-"`
6822 }
6823
6824 func (s *SearchParameter) MarshalJSON() ([]byte, error) {
6825 type NoMethod SearchParameter
6826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6827 }
6828
6829
6830
6831 type SearchResourcesRequest struct {
6832
6833
6834
6835
6836
6837 ResourceType string `json:"resourceType,omitempty"`
6838
6839
6840
6841
6842
6843 ForceSendFields []string `json:"-"`
6844
6845
6846
6847
6848 NullFields []string `json:"-"`
6849 }
6850
6851 func (s *SearchResourcesRequest) MarshalJSON() ([]byte, error) {
6852 type NoMethod SearchResourcesRequest
6853 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6854 }
6855
6856
6857 type Segment struct {
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867 Fields map[string]string `json:"fields,omitempty"`
6868
6869
6870 SegmentId string `json:"segmentId,omitempty"`
6871
6872
6873 SetId string `json:"setId,omitempty"`
6874
6875
6876
6877
6878
6879 ForceSendFields []string `json:"-"`
6880
6881
6882
6883
6884 NullFields []string `json:"-"`
6885 }
6886
6887 func (s *Segment) MarshalJSON() ([]byte, error) {
6888 type NoMethod Segment
6889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6890 }
6891
6892
6893
6894 type SensitiveTextAnnotation struct {
6895
6896
6897
6898 Details map[string]Detail `json:"details,omitempty"`
6899
6900
6901
6902
6903
6904 ForceSendFields []string `json:"-"`
6905
6906
6907
6908
6909 NullFields []string `json:"-"`
6910 }
6911
6912 func (s *SensitiveTextAnnotation) MarshalJSON() ([]byte, error) {
6913 type NoMethod SensitiveTextAnnotation
6914 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6915 }
6916
6917
6918 type SeriesMetrics struct {
6919
6920
6921 BlobStorageSizeBytes int64 `json:"blobStorageSizeBytes,omitempty,string"`
6922
6923 InstanceCount int64 `json:"instanceCount,omitempty,string"`
6924
6925
6926
6927 Series string `json:"series,omitempty"`
6928
6929
6930 StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
6931
6932
6933 googleapi.ServerResponse `json:"-"`
6934
6935
6936
6937
6938
6939 ForceSendFields []string `json:"-"`
6940
6941
6942
6943
6944 NullFields []string `json:"-"`
6945 }
6946
6947 func (s *SeriesMetrics) MarshalJSON() ([]byte, error) {
6948 type NoMethod SeriesMetrics
6949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6950 }
6951
6952
6953
6954 type SetBlobStorageSettingsRequest struct {
6955
6956
6957 BlobStorageSettings *BlobStorageSettings `json:"blobStorageSettings,omitempty"`
6958
6959
6960
6961
6962
6963 FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"`
6964
6965
6966
6967
6968
6969 ForceSendFields []string `json:"-"`
6970
6971
6972
6973
6974 NullFields []string `json:"-"`
6975 }
6976
6977 func (s *SetBlobStorageSettingsRequest) MarshalJSON() ([]byte, error) {
6978 type NoMethod SetBlobStorageSettingsRequest
6979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6980 }
6981
6982
6983
6984 type SetBlobStorageSettingsResponse struct {
6985 }
6986
6987
6988 type SetIamPolicyRequest struct {
6989
6990
6991
6992
6993 Policy *Policy `json:"policy,omitempty"`
6994
6995
6996
6997 UpdateMask string `json:"updateMask,omitempty"`
6998
6999
7000
7001
7002
7003 ForceSendFields []string `json:"-"`
7004
7005
7006
7007
7008 NullFields []string `json:"-"`
7009 }
7010
7011 func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
7012 type NoMethod SetIamPolicyRequest
7013 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7014 }
7015
7016
7017 type Signature struct {
7018
7019 Image *Image `json:"image,omitempty"`
7020
7021
7022 Metadata map[string]string `json:"metadata,omitempty"`
7023
7024 SignatureTime string `json:"signatureTime,omitempty"`
7025
7026 UserId string `json:"userId,omitempty"`
7027
7028
7029
7030
7031
7032 ForceSendFields []string `json:"-"`
7033
7034
7035
7036
7037 NullFields []string `json:"-"`
7038 }
7039
7040 func (s *Signature) MarshalJSON() ([]byte, error) {
7041 type NoMethod Signature
7042 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7043 }
7044
7045
7046
7047
7048
7049
7050
7051 type Status struct {
7052
7053 Code int64 `json:"code,omitempty"`
7054
7055
7056 Details []googleapi.RawMessage `json:"details,omitempty"`
7057
7058
7059
7060 Message string `json:"message,omitempty"`
7061
7062
7063
7064
7065
7066 ForceSendFields []string `json:"-"`
7067
7068
7069
7070
7071 NullFields []string `json:"-"`
7072 }
7073
7074 func (s *Status) MarshalJSON() ([]byte, error) {
7075 type NoMethod Status
7076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7077 }
7078
7079
7080 type StorageInfo struct {
7081
7082
7083 BlobStorageInfo *BlobStorageInfo `json:"blobStorageInfo,omitempty"`
7084
7085
7086
7087
7088
7089 ReferencedResource string `json:"referencedResource,omitempty"`
7090
7091
7092 StructuredStorageInfo *StructuredStorageInfo `json:"structuredStorageInfo,omitempty"`
7093
7094
7095 googleapi.ServerResponse `json:"-"`
7096
7097
7098
7099
7100
7101 ForceSendFields []string `json:"-"`
7102
7103
7104
7105
7106 NullFields []string `json:"-"`
7107 }
7108
7109 func (s *StorageInfo) MarshalJSON() ([]byte, error) {
7110 type NoMethod StorageInfo
7111 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7112 }
7113
7114
7115 type StreamConfig struct {
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 DeidentifiedStoreDestination *DeidentifiedStoreDestination `json:"deidentifiedStoreDestination,omitempty"`
7164
7165
7166
7167
7168 ResourceTypes []string `json:"resourceTypes,omitempty"`
7169
7170
7171
7172
7173
7174 ForceSendFields []string `json:"-"`
7175
7176
7177
7178
7179 NullFields []string `json:"-"`
7180 }
7181
7182 func (s *StreamConfig) MarshalJSON() ([]byte, error) {
7183 type NoMethod StreamConfig
7184 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7185 }
7186
7187
7188
7189 type StructuredStorageInfo struct {
7190
7191 SizeBytes int64 `json:"sizeBytes,omitempty,string"`
7192
7193
7194
7195
7196
7197 ForceSendFields []string `json:"-"`
7198
7199
7200
7201
7202 NullFields []string `json:"-"`
7203 }
7204
7205 func (s *StructuredStorageInfo) MarshalJSON() ([]byte, error) {
7206 type NoMethod StructuredStorageInfo
7207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7208 }
7209
7210
7211 type StudyMetrics struct {
7212
7213
7214 BlobStorageSizeBytes int64 `json:"blobStorageSizeBytes,omitempty,string"`
7215
7216 InstanceCount int64 `json:"instanceCount,omitempty,string"`
7217
7218 SeriesCount int64 `json:"seriesCount,omitempty,string"`
7219
7220
7221 StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
7222
7223
7224
7225 Study string `json:"study,omitempty"`
7226
7227
7228 googleapi.ServerResponse `json:"-"`
7229
7230
7231
7232
7233
7234 ForceSendFields []string `json:"-"`
7235
7236
7237
7238
7239 NullFields []string `json:"-"`
7240 }
7241
7242 func (s *StudyMetrics) MarshalJSON() ([]byte, error) {
7243 type NoMethod StudyMetrics
7244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7245 }
7246
7247
7248 type TagFilterList struct {
7249
7250
7251
7252
7253
7254 Tags []string `json:"tags,omitempty"`
7255
7256
7257
7258
7259
7260 ForceSendFields []string `json:"-"`
7261
7262
7263
7264
7265 NullFields []string `json:"-"`
7266 }
7267
7268 func (s *TagFilterList) MarshalJSON() ([]byte, error) {
7269 type NoMethod TagFilterList
7270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7271 }
7272
7273
7274 type TestIamPermissionsRequest struct {
7275
7276
7277
7278
7279 Permissions []string `json:"permissions,omitempty"`
7280
7281
7282
7283
7284
7285 ForceSendFields []string `json:"-"`
7286
7287
7288
7289
7290 NullFields []string `json:"-"`
7291 }
7292
7293 func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
7294 type NoMethod TestIamPermissionsRequest
7295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7296 }
7297
7298
7299
7300 type TestIamPermissionsResponse struct {
7301
7302
7303 Permissions []string `json:"permissions,omitempty"`
7304
7305
7306 googleapi.ServerResponse `json:"-"`
7307
7308
7309
7310
7311
7312 ForceSendFields []string `json:"-"`
7313
7314
7315
7316
7317 NullFields []string `json:"-"`
7318 }
7319
7320 func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
7321 type NoMethod TestIamPermissionsResponse
7322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7323 }
7324
7325
7326 type TextConfig struct {
7327
7328
7329 AdditionalTransformations []*InfoTypeTransformation `json:"additionalTransformations,omitempty"`
7330
7331 ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"`
7332
7333
7334
7335
7336
7337
7338
7339 ProfileType string `json:"profileType,omitempty"`
7340
7341
7342 Transformations []*InfoTypeTransformation `json:"transformations,omitempty"`
7343
7344
7345
7346
7347
7348 ForceSendFields []string `json:"-"`
7349
7350
7351
7352
7353 NullFields []string `json:"-"`
7354 }
7355
7356 func (s *TextConfig) MarshalJSON() ([]byte, error) {
7357 type NoMethod TextConfig
7358 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7359 }
7360
7361
7362 type TextSpan struct {
7363
7364 BeginOffset int64 `json:"beginOffset,omitempty"`
7365
7366 Content string `json:"content,omitempty"`
7367
7368
7369
7370
7371
7372 ForceSendFields []string `json:"-"`
7373
7374
7375
7376
7377 NullFields []string `json:"-"`
7378 }
7379
7380 func (s *TextSpan) MarshalJSON() ([]byte, error) {
7381 type NoMethod TextSpan
7382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7383 }
7384
7385
7386 type TimePartitioning struct {
7387
7388
7389 ExpirationMs int64 `json:"expirationMs,omitempty,string"`
7390
7391
7392
7393
7394
7395
7396
7397
7398 Type string `json:"type,omitempty"`
7399
7400
7401
7402
7403
7404 ForceSendFields []string `json:"-"`
7405
7406
7407
7408
7409 NullFields []string `json:"-"`
7410 }
7411
7412 func (s *TimePartitioning) MarshalJSON() ([]byte, error) {
7413 type NoMethod TimePartitioning
7414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7415 }
7416
7417
7418
7419
7420
7421 type TimeRange struct {
7422
7423
7424
7425 End string `json:"end,omitempty"`
7426
7427
7428
7429 Start string `json:"start,omitempty"`
7430
7431
7432
7433
7434
7435 ForceSendFields []string `json:"-"`
7436
7437
7438
7439
7440 NullFields []string `json:"-"`
7441 }
7442
7443 func (s *TimeRange) MarshalJSON() ([]byte, error) {
7444 type NoMethod TimeRange
7445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7446 }
7447
7448
7449 type Type struct {
7450
7451 Fields []*Field `json:"fields,omitempty"`
7452
7453
7454 Name string `json:"name,omitempty"`
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 Primitive string `json:"primitive,omitempty"`
7465
7466
7467
7468
7469
7470 ForceSendFields []string `json:"-"`
7471
7472
7473
7474
7475 NullFields []string `json:"-"`
7476 }
7477
7478 func (s *Type) MarshalJSON() ([]byte, error) {
7479 type NoMethod Type
7480 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7481 }
7482
7483
7484 type UserDataMapping struct {
7485
7486 ArchiveTime string `json:"archiveTime,omitempty"`
7487
7488 Archived bool `json:"archived,omitempty"`
7489
7490 DataId string `json:"dataId,omitempty"`
7491
7492
7493
7494 Name string `json:"name,omitempty"`
7495
7496
7497
7498
7499
7500 ResourceAttributes []*Attribute `json:"resourceAttributes,omitempty"`
7501
7502 UserId string `json:"userId,omitempty"`
7503
7504
7505 googleapi.ServerResponse `json:"-"`
7506
7507
7508
7509
7510
7511 ForceSendFields []string `json:"-"`
7512
7513
7514
7515
7516 NullFields []string `json:"-"`
7517 }
7518
7519 func (s *UserDataMapping) MarshalJSON() ([]byte, error) {
7520 type NoMethod UserDataMapping
7521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7522 }
7523
7524
7525
7526 type ValidationConfig struct {
7527
7528
7529
7530
7531
7532
7533 DisableFhirpathValidation bool `json:"disableFhirpathValidation,omitempty"`
7534
7535
7536
7537 DisableProfileValidation bool `json:"disableProfileValidation,omitempty"`
7538
7539
7540
7541
7542
7543
7544 DisableReferenceTypeValidation bool `json:"disableReferenceTypeValidation,omitempty"`
7545
7546
7547
7548
7549
7550
7551 DisableRequiredFieldValidation bool `json:"disableRequiredFieldValidation,omitempty"`
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 EnabledImplementationGuides []string `json:"enabledImplementationGuides,omitempty"`
7567
7568
7569
7570
7571
7572 ForceSendFields []string `json:"-"`
7573
7574
7575
7576
7577 NullFields []string `json:"-"`
7578 }
7579
7580 func (s *ValidationConfig) MarshalJSON() ([]byte, error) {
7581 type NoMethod ValidationConfig
7582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7583 }
7584
7585
7586
7587 type VersionSource struct {
7588
7589
7590 MshField string `json:"mshField,omitempty"`
7591
7592
7593 Value string `json:"value,omitempty"`
7594
7595
7596
7597
7598
7599 ForceSendFields []string `json:"-"`
7600
7601
7602
7603
7604 NullFields []string `json:"-"`
7605 }
7606
7607 func (s *VersionSource) MarshalJSON() ([]byte, error) {
7608 type NoMethod VersionSource
7609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7610 }
7611
7612
7613 type Vertex struct {
7614
7615 X float64 `json:"x,omitempty"`
7616
7617 Y float64 `json:"y,omitempty"`
7618
7619
7620
7621
7622
7623 ForceSendFields []string `json:"-"`
7624
7625
7626
7627
7628 NullFields []string `json:"-"`
7629 }
7630
7631 func (s *Vertex) MarshalJSON() ([]byte, error) {
7632 type NoMethod Vertex
7633 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7634 }
7635
7636 func (s *Vertex) UnmarshalJSON(data []byte) error {
7637 type NoMethod Vertex
7638 var s1 struct {
7639 X gensupport.JSONFloat64 `json:"x"`
7640 Y gensupport.JSONFloat64 `json:"y"`
7641 *NoMethod
7642 }
7643 s1.NoMethod = (*NoMethod)(s)
7644 if err := json.Unmarshal(data, &s1); err != nil {
7645 return err
7646 }
7647 s.X = float64(s1.X)
7648 s.Y = float64(s1.Y)
7649 return nil
7650 }
7651
7652 type ProjectsLocationsGetCall struct {
7653 s *Service
7654 name string
7655 urlParams_ gensupport.URLParams
7656 ifNoneMatch_ string
7657 ctx_ context.Context
7658 header_ http.Header
7659 }
7660
7661
7662
7663
7664 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
7665 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7666 c.name = name
7667 return c
7668 }
7669
7670
7671
7672
7673 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
7674 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7675 return c
7676 }
7677
7678
7679
7680
7681 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
7682 c.ifNoneMatch_ = entityTag
7683 return c
7684 }
7685
7686
7687 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
7688 c.ctx_ = ctx
7689 return c
7690 }
7691
7692
7693
7694 func (c *ProjectsLocationsGetCall) Header() http.Header {
7695 if c.header_ == nil {
7696 c.header_ = make(http.Header)
7697 }
7698 return c.header_
7699 }
7700
7701 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
7702 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7703 if c.ifNoneMatch_ != "" {
7704 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7705 }
7706 var body io.Reader = nil
7707 c.urlParams_.Set("alt", alt)
7708 c.urlParams_.Set("prettyPrint", "false")
7709 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
7710 urls += "?" + c.urlParams_.Encode()
7711 req, err := http.NewRequest("GET", urls, body)
7712 if err != nil {
7713 return nil, err
7714 }
7715 req.Header = reqHeaders
7716 googleapi.Expand(req.URL, map[string]string{
7717 "name": c.name,
7718 })
7719 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7720 }
7721
7722
7723
7724
7725
7726
7727 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
7728 gensupport.SetOptions(c.urlParams_, opts...)
7729 res, err := c.doRequest("json")
7730 if res != nil && res.StatusCode == http.StatusNotModified {
7731 if res.Body != nil {
7732 res.Body.Close()
7733 }
7734 return nil, gensupport.WrapError(&googleapi.Error{
7735 Code: res.StatusCode,
7736 Header: res.Header,
7737 })
7738 }
7739 if err != nil {
7740 return nil, err
7741 }
7742 defer googleapi.CloseBody(res)
7743 if err := googleapi.CheckResponse(res); err != nil {
7744 return nil, gensupport.WrapError(err)
7745 }
7746 ret := &Location{
7747 ServerResponse: googleapi.ServerResponse{
7748 Header: res.Header,
7749 HTTPStatusCode: res.StatusCode,
7750 },
7751 }
7752 target := &ret
7753 if err := gensupport.DecodeResponse(target, res); err != nil {
7754 return nil, err
7755 }
7756 return ret, nil
7757 }
7758
7759 type ProjectsLocationsListCall struct {
7760 s *Service
7761 name string
7762 urlParams_ gensupport.URLParams
7763 ifNoneMatch_ string
7764 ctx_ context.Context
7765 header_ http.Header
7766 }
7767
7768
7769
7770
7771 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
7772 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7773 c.name = name
7774 return c
7775 }
7776
7777
7778
7779
7780
7781 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
7782 c.urlParams_.Set("filter", filter)
7783 return c
7784 }
7785
7786
7787
7788 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
7789 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7790 return c
7791 }
7792
7793
7794
7795
7796 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
7797 c.urlParams_.Set("pageToken", pageToken)
7798 return c
7799 }
7800
7801
7802
7803
7804 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
7805 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7806 return c
7807 }
7808
7809
7810
7811
7812 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
7813 c.ifNoneMatch_ = entityTag
7814 return c
7815 }
7816
7817
7818 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
7819 c.ctx_ = ctx
7820 return c
7821 }
7822
7823
7824
7825 func (c *ProjectsLocationsListCall) Header() http.Header {
7826 if c.header_ == nil {
7827 c.header_ = make(http.Header)
7828 }
7829 return c.header_
7830 }
7831
7832 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
7833 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7834 if c.ifNoneMatch_ != "" {
7835 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7836 }
7837 var body io.Reader = nil
7838 c.urlParams_.Set("alt", alt)
7839 c.urlParams_.Set("prettyPrint", "false")
7840 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations")
7841 urls += "?" + c.urlParams_.Encode()
7842 req, err := http.NewRequest("GET", urls, body)
7843 if err != nil {
7844 return nil, err
7845 }
7846 req.Header = reqHeaders
7847 googleapi.Expand(req.URL, map[string]string{
7848 "name": c.name,
7849 })
7850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7851 }
7852
7853
7854
7855
7856
7857
7858
7859 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
7860 gensupport.SetOptions(c.urlParams_, opts...)
7861 res, err := c.doRequest("json")
7862 if res != nil && res.StatusCode == http.StatusNotModified {
7863 if res.Body != nil {
7864 res.Body.Close()
7865 }
7866 return nil, gensupport.WrapError(&googleapi.Error{
7867 Code: res.StatusCode,
7868 Header: res.Header,
7869 })
7870 }
7871 if err != nil {
7872 return nil, err
7873 }
7874 defer googleapi.CloseBody(res)
7875 if err := googleapi.CheckResponse(res); err != nil {
7876 return nil, gensupport.WrapError(err)
7877 }
7878 ret := &ListLocationsResponse{
7879 ServerResponse: googleapi.ServerResponse{
7880 Header: res.Header,
7881 HTTPStatusCode: res.StatusCode,
7882 },
7883 }
7884 target := &ret
7885 if err := gensupport.DecodeResponse(target, res); err != nil {
7886 return nil, err
7887 }
7888 return ret, nil
7889 }
7890
7891
7892
7893
7894 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
7895 c.ctx_ = ctx
7896 defer c.PageToken(c.urlParams_.Get("pageToken"))
7897 for {
7898 x, err := c.Do()
7899 if err != nil {
7900 return err
7901 }
7902 if err := f(x); err != nil {
7903 return err
7904 }
7905 if x.NextPageToken == "" {
7906 return nil
7907 }
7908 c.PageToken(x.NextPageToken)
7909 }
7910 }
7911
7912 type ProjectsLocationsDatasetsCreateCall struct {
7913 s *Service
7914 parent string
7915 dataset *Dataset
7916 urlParams_ gensupport.URLParams
7917 ctx_ context.Context
7918 header_ http.Header
7919 }
7920
7921
7922
7923
7924
7925
7926
7927
7928 func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Dataset) *ProjectsLocationsDatasetsCreateCall {
7929 c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7930 c.parent = parent
7931 c.dataset = dataset
7932 return c
7933 }
7934
7935
7936
7937
7938 func (c *ProjectsLocationsDatasetsCreateCall) DatasetId(datasetId string) *ProjectsLocationsDatasetsCreateCall {
7939 c.urlParams_.Set("datasetId", datasetId)
7940 return c
7941 }
7942
7943
7944
7945
7946 func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall {
7947 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7948 return c
7949 }
7950
7951
7952 func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall {
7953 c.ctx_ = ctx
7954 return c
7955 }
7956
7957
7958
7959 func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header {
7960 if c.header_ == nil {
7961 c.header_ = make(http.Header)
7962 }
7963 return c.header_
7964 }
7965
7966 func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
7967 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7968 var body io.Reader = nil
7969 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
7970 if err != nil {
7971 return nil, err
7972 }
7973 c.urlParams_.Set("alt", alt)
7974 c.urlParams_.Set("prettyPrint", "false")
7975 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
7976 urls += "?" + c.urlParams_.Encode()
7977 req, err := http.NewRequest("POST", urls, body)
7978 if err != nil {
7979 return nil, err
7980 }
7981 req.Header = reqHeaders
7982 googleapi.Expand(req.URL, map[string]string{
7983 "parent": c.parent,
7984 })
7985 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7986 }
7987
7988
7989
7990
7991
7992
7993 func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7994 gensupport.SetOptions(c.urlParams_, opts...)
7995 res, err := c.doRequest("json")
7996 if res != nil && res.StatusCode == http.StatusNotModified {
7997 if res.Body != nil {
7998 res.Body.Close()
7999 }
8000 return nil, gensupport.WrapError(&googleapi.Error{
8001 Code: res.StatusCode,
8002 Header: res.Header,
8003 })
8004 }
8005 if err != nil {
8006 return nil, err
8007 }
8008 defer googleapi.CloseBody(res)
8009 if err := googleapi.CheckResponse(res); err != nil {
8010 return nil, gensupport.WrapError(err)
8011 }
8012 ret := &Operation{
8013 ServerResponse: googleapi.ServerResponse{
8014 Header: res.Header,
8015 HTTPStatusCode: res.StatusCode,
8016 },
8017 }
8018 target := &ret
8019 if err := gensupport.DecodeResponse(target, res); err != nil {
8020 return nil, err
8021 }
8022 return ret, nil
8023 }
8024
8025 type ProjectsLocationsDatasetsDeidentifyCall struct {
8026 s *Service
8027 sourceDataset string
8028 deidentifydatasetrequest *DeidentifyDatasetRequest
8029 urlParams_ gensupport.URLParams
8030 ctx_ context.Context
8031 header_ http.Header
8032 }
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046 func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deidentifydatasetrequest *DeidentifyDatasetRequest) *ProjectsLocationsDatasetsDeidentifyCall {
8047 c := &ProjectsLocationsDatasetsDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8048 c.sourceDataset = sourceDataset
8049 c.deidentifydatasetrequest = deidentifydatasetrequest
8050 return c
8051 }
8052
8053
8054
8055
8056 func (c *ProjectsLocationsDatasetsDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeidentifyCall {
8057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8058 return c
8059 }
8060
8061
8062 func (c *ProjectsLocationsDatasetsDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeidentifyCall {
8063 c.ctx_ = ctx
8064 return c
8065 }
8066
8067
8068
8069 func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header {
8070 if c.header_ == nil {
8071 c.header_ = make(http.Header)
8072 }
8073 return c.header_
8074 }
8075
8076 func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) {
8077 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8078 var body io.Reader = nil
8079 body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydatasetrequest)
8080 if err != nil {
8081 return nil, err
8082 }
8083 c.urlParams_.Set("alt", alt)
8084 c.urlParams_.Set("prettyPrint", "false")
8085 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+sourceDataset}:deidentify")
8086 urls += "?" + c.urlParams_.Encode()
8087 req, err := http.NewRequest("POST", urls, body)
8088 if err != nil {
8089 return nil, err
8090 }
8091 req.Header = reqHeaders
8092 googleapi.Expand(req.URL, map[string]string{
8093 "sourceDataset": c.sourceDataset,
8094 })
8095 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8096 }
8097
8098
8099
8100
8101
8102
8103 func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8104 gensupport.SetOptions(c.urlParams_, opts...)
8105 res, err := c.doRequest("json")
8106 if res != nil && res.StatusCode == http.StatusNotModified {
8107 if res.Body != nil {
8108 res.Body.Close()
8109 }
8110 return nil, gensupport.WrapError(&googleapi.Error{
8111 Code: res.StatusCode,
8112 Header: res.Header,
8113 })
8114 }
8115 if err != nil {
8116 return nil, err
8117 }
8118 defer googleapi.CloseBody(res)
8119 if err := googleapi.CheckResponse(res); err != nil {
8120 return nil, gensupport.WrapError(err)
8121 }
8122 ret := &Operation{
8123 ServerResponse: googleapi.ServerResponse{
8124 Header: res.Header,
8125 HTTPStatusCode: res.StatusCode,
8126 },
8127 }
8128 target := &ret
8129 if err := gensupport.DecodeResponse(target, res); err != nil {
8130 return nil, err
8131 }
8132 return ret, nil
8133 }
8134
8135 type ProjectsLocationsDatasetsDeleteCall struct {
8136 s *Service
8137 name string
8138 urlParams_ gensupport.URLParams
8139 ctx_ context.Context
8140 header_ http.Header
8141 }
8142
8143
8144
8145
8146
8147
8148
8149 func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall {
8150 c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8151 c.name = name
8152 return c
8153 }
8154
8155
8156
8157
8158 func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall {
8159 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8160 return c
8161 }
8162
8163
8164 func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall {
8165 c.ctx_ = ctx
8166 return c
8167 }
8168
8169
8170
8171 func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header {
8172 if c.header_ == nil {
8173 c.header_ = make(http.Header)
8174 }
8175 return c.header_
8176 }
8177
8178 func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
8179 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8180 var body io.Reader = nil
8181 c.urlParams_.Set("alt", alt)
8182 c.urlParams_.Set("prettyPrint", "false")
8183 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8184 urls += "?" + c.urlParams_.Encode()
8185 req, err := http.NewRequest("DELETE", urls, body)
8186 if err != nil {
8187 return nil, err
8188 }
8189 req.Header = reqHeaders
8190 googleapi.Expand(req.URL, map[string]string{
8191 "name": c.name,
8192 })
8193 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8194 }
8195
8196
8197
8198
8199
8200
8201 func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
8202 gensupport.SetOptions(c.urlParams_, opts...)
8203 res, err := c.doRequest("json")
8204 if res != nil && res.StatusCode == http.StatusNotModified {
8205 if res.Body != nil {
8206 res.Body.Close()
8207 }
8208 return nil, gensupport.WrapError(&googleapi.Error{
8209 Code: res.StatusCode,
8210 Header: res.Header,
8211 })
8212 }
8213 if err != nil {
8214 return nil, err
8215 }
8216 defer googleapi.CloseBody(res)
8217 if err := googleapi.CheckResponse(res); err != nil {
8218 return nil, gensupport.WrapError(err)
8219 }
8220 ret := &Empty{
8221 ServerResponse: googleapi.ServerResponse{
8222 Header: res.Header,
8223 HTTPStatusCode: res.StatusCode,
8224 },
8225 }
8226 target := &ret
8227 if err := gensupport.DecodeResponse(target, res); err != nil {
8228 return nil, err
8229 }
8230 return ret, nil
8231 }
8232
8233 type ProjectsLocationsDatasetsGetCall struct {
8234 s *Service
8235 name string
8236 urlParams_ gensupport.URLParams
8237 ifNoneMatch_ string
8238 ctx_ context.Context
8239 header_ http.Header
8240 }
8241
8242
8243
8244
8245
8246 func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall {
8247 c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8248 c.name = name
8249 return c
8250 }
8251
8252
8253
8254
8255 func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall {
8256 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8257 return c
8258 }
8259
8260
8261
8262
8263 func (c *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall {
8264 c.ifNoneMatch_ = entityTag
8265 return c
8266 }
8267
8268
8269 func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall {
8270 c.ctx_ = ctx
8271 return c
8272 }
8273
8274
8275
8276 func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header {
8277 if c.header_ == nil {
8278 c.header_ = make(http.Header)
8279 }
8280 return c.header_
8281 }
8282
8283 func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
8284 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8285 if c.ifNoneMatch_ != "" {
8286 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8287 }
8288 var body io.Reader = nil
8289 c.urlParams_.Set("alt", alt)
8290 c.urlParams_.Set("prettyPrint", "false")
8291 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8292 urls += "?" + c.urlParams_.Encode()
8293 req, err := http.NewRequest("GET", urls, body)
8294 if err != nil {
8295 return nil, err
8296 }
8297 req.Header = reqHeaders
8298 googleapi.Expand(req.URL, map[string]string{
8299 "name": c.name,
8300 })
8301 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8302 }
8303
8304
8305
8306
8307
8308
8309 func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
8310 gensupport.SetOptions(c.urlParams_, opts...)
8311 res, err := c.doRequest("json")
8312 if res != nil && res.StatusCode == http.StatusNotModified {
8313 if res.Body != nil {
8314 res.Body.Close()
8315 }
8316 return nil, gensupport.WrapError(&googleapi.Error{
8317 Code: res.StatusCode,
8318 Header: res.Header,
8319 })
8320 }
8321 if err != nil {
8322 return nil, err
8323 }
8324 defer googleapi.CloseBody(res)
8325 if err := googleapi.CheckResponse(res); err != nil {
8326 return nil, gensupport.WrapError(err)
8327 }
8328 ret := &Dataset{
8329 ServerResponse: googleapi.ServerResponse{
8330 Header: res.Header,
8331 HTTPStatusCode: res.StatusCode,
8332 },
8333 }
8334 target := &ret
8335 if err := gensupport.DecodeResponse(target, res); err != nil {
8336 return nil, err
8337 }
8338 return ret, nil
8339 }
8340
8341 type ProjectsLocationsDatasetsGetIamPolicyCall struct {
8342 s *Service
8343 resource string
8344 urlParams_ gensupport.URLParams
8345 ifNoneMatch_ string
8346 ctx_ context.Context
8347 header_ http.Header
8348 }
8349
8350
8351
8352
8353
8354
8355
8356 func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall {
8357 c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8358 c.resource = resource
8359 return c
8360 }
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsGetIamPolicyCall {
8375 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
8376 return c
8377 }
8378
8379
8380
8381
8382 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall {
8383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8384 return c
8385 }
8386
8387
8388
8389
8390 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall {
8391 c.ifNoneMatch_ = entityTag
8392 return c
8393 }
8394
8395
8396 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall {
8397 c.ctx_ = ctx
8398 return c
8399 }
8400
8401
8402
8403 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header {
8404 if c.header_ == nil {
8405 c.header_ = make(http.Header)
8406 }
8407 return c.header_
8408 }
8409
8410 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8411 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8412 if c.ifNoneMatch_ != "" {
8413 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8414 }
8415 var body io.Reader = nil
8416 c.urlParams_.Set("alt", alt)
8417 c.urlParams_.Set("prettyPrint", "false")
8418 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
8419 urls += "?" + c.urlParams_.Encode()
8420 req, err := http.NewRequest("GET", urls, body)
8421 if err != nil {
8422 return nil, err
8423 }
8424 req.Header = reqHeaders
8425 googleapi.Expand(req.URL, map[string]string{
8426 "resource": c.resource,
8427 })
8428 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8429 }
8430
8431
8432
8433
8434
8435
8436 func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8437 gensupport.SetOptions(c.urlParams_, opts...)
8438 res, err := c.doRequest("json")
8439 if res != nil && res.StatusCode == http.StatusNotModified {
8440 if res.Body != nil {
8441 res.Body.Close()
8442 }
8443 return nil, gensupport.WrapError(&googleapi.Error{
8444 Code: res.StatusCode,
8445 Header: res.Header,
8446 })
8447 }
8448 if err != nil {
8449 return nil, err
8450 }
8451 defer googleapi.CloseBody(res)
8452 if err := googleapi.CheckResponse(res); err != nil {
8453 return nil, gensupport.WrapError(err)
8454 }
8455 ret := &Policy{
8456 ServerResponse: googleapi.ServerResponse{
8457 Header: res.Header,
8458 HTTPStatusCode: res.StatusCode,
8459 },
8460 }
8461 target := &ret
8462 if err := gensupport.DecodeResponse(target, res); err != nil {
8463 return nil, err
8464 }
8465 return ret, nil
8466 }
8467
8468 type ProjectsLocationsDatasetsListCall struct {
8469 s *Service
8470 parent string
8471 urlParams_ gensupport.URLParams
8472 ifNoneMatch_ string
8473 ctx_ context.Context
8474 header_ http.Header
8475 }
8476
8477
8478
8479
8480
8481 func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall {
8482 c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8483 c.parent = parent
8484 return c
8485 }
8486
8487
8488
8489 func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall {
8490 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8491 return c
8492 }
8493
8494
8495
8496 func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall {
8497 c.urlParams_.Set("pageToken", pageToken)
8498 return c
8499 }
8500
8501
8502
8503
8504 func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall {
8505 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8506 return c
8507 }
8508
8509
8510
8511
8512 func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall {
8513 c.ifNoneMatch_ = entityTag
8514 return c
8515 }
8516
8517
8518 func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall {
8519 c.ctx_ = ctx
8520 return c
8521 }
8522
8523
8524
8525 func (c *ProjectsLocationsDatasetsListCall) Header() http.Header {
8526 if c.header_ == nil {
8527 c.header_ = make(http.Header)
8528 }
8529 return c.header_
8530 }
8531
8532 func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
8533 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8534 if c.ifNoneMatch_ != "" {
8535 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8536 }
8537 var body io.Reader = nil
8538 c.urlParams_.Set("alt", alt)
8539 c.urlParams_.Set("prettyPrint", "false")
8540 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
8541 urls += "?" + c.urlParams_.Encode()
8542 req, err := http.NewRequest("GET", urls, body)
8543 if err != nil {
8544 return nil, err
8545 }
8546 req.Header = reqHeaders
8547 googleapi.Expand(req.URL, map[string]string{
8548 "parent": c.parent,
8549 })
8550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8551 }
8552
8553
8554
8555
8556
8557
8558
8559 func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) {
8560 gensupport.SetOptions(c.urlParams_, opts...)
8561 res, err := c.doRequest("json")
8562 if res != nil && res.StatusCode == http.StatusNotModified {
8563 if res.Body != nil {
8564 res.Body.Close()
8565 }
8566 return nil, gensupport.WrapError(&googleapi.Error{
8567 Code: res.StatusCode,
8568 Header: res.Header,
8569 })
8570 }
8571 if err != nil {
8572 return nil, err
8573 }
8574 defer googleapi.CloseBody(res)
8575 if err := googleapi.CheckResponse(res); err != nil {
8576 return nil, gensupport.WrapError(err)
8577 }
8578 ret := &ListDatasetsResponse{
8579 ServerResponse: googleapi.ServerResponse{
8580 Header: res.Header,
8581 HTTPStatusCode: res.StatusCode,
8582 },
8583 }
8584 target := &ret
8585 if err := gensupport.DecodeResponse(target, res); err != nil {
8586 return nil, err
8587 }
8588 return ret, nil
8589 }
8590
8591
8592
8593
8594 func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error {
8595 c.ctx_ = ctx
8596 defer c.PageToken(c.urlParams_.Get("pageToken"))
8597 for {
8598 x, err := c.Do()
8599 if err != nil {
8600 return err
8601 }
8602 if err := f(x); err != nil {
8603 return err
8604 }
8605 if x.NextPageToken == "" {
8606 return nil
8607 }
8608 c.PageToken(x.NextPageToken)
8609 }
8610 }
8611
8612 type ProjectsLocationsDatasetsPatchCall struct {
8613 s *Service
8614 name string
8615 dataset *Dataset
8616 urlParams_ gensupport.URLParams
8617 ctx_ context.Context
8618 header_ http.Header
8619 }
8620
8621
8622
8623
8624
8625 func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) *ProjectsLocationsDatasetsPatchCall {
8626 c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8627 c.name = name
8628 c.dataset = dataset
8629 return c
8630 }
8631
8632
8633
8634
8635 func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall {
8636 c.urlParams_.Set("updateMask", updateMask)
8637 return c
8638 }
8639
8640
8641
8642
8643 func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall {
8644 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8645 return c
8646 }
8647
8648
8649 func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall {
8650 c.ctx_ = ctx
8651 return c
8652 }
8653
8654
8655
8656 func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header {
8657 if c.header_ == nil {
8658 c.header_ = make(http.Header)
8659 }
8660 return c.header_
8661 }
8662
8663 func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) {
8664 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8665 var body io.Reader = nil
8666 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
8667 if err != nil {
8668 return nil, err
8669 }
8670 c.urlParams_.Set("alt", alt)
8671 c.urlParams_.Set("prettyPrint", "false")
8672 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8673 urls += "?" + c.urlParams_.Encode()
8674 req, err := http.NewRequest("PATCH", urls, body)
8675 if err != nil {
8676 return nil, err
8677 }
8678 req.Header = reqHeaders
8679 googleapi.Expand(req.URL, map[string]string{
8680 "name": c.name,
8681 })
8682 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8683 }
8684
8685
8686
8687
8688
8689
8690 func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
8691 gensupport.SetOptions(c.urlParams_, opts...)
8692 res, err := c.doRequest("json")
8693 if res != nil && res.StatusCode == http.StatusNotModified {
8694 if res.Body != nil {
8695 res.Body.Close()
8696 }
8697 return nil, gensupport.WrapError(&googleapi.Error{
8698 Code: res.StatusCode,
8699 Header: res.Header,
8700 })
8701 }
8702 if err != nil {
8703 return nil, err
8704 }
8705 defer googleapi.CloseBody(res)
8706 if err := googleapi.CheckResponse(res); err != nil {
8707 return nil, gensupport.WrapError(err)
8708 }
8709 ret := &Dataset{
8710 ServerResponse: googleapi.ServerResponse{
8711 Header: res.Header,
8712 HTTPStatusCode: res.StatusCode,
8713 },
8714 }
8715 target := &ret
8716 if err := gensupport.DecodeResponse(target, res); err != nil {
8717 return nil, err
8718 }
8719 return ret, nil
8720 }
8721
8722 type ProjectsLocationsDatasetsSetIamPolicyCall struct {
8723 s *Service
8724 resource string
8725 setiampolicyrequest *SetIamPolicyRequest
8726 urlParams_ gensupport.URLParams
8727 ctx_ context.Context
8728 header_ http.Header
8729 }
8730
8731
8732
8733
8734
8735
8736
8737
8738 func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall {
8739 c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8740 c.resource = resource
8741 c.setiampolicyrequest = setiampolicyrequest
8742 return c
8743 }
8744
8745
8746
8747
8748 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall {
8749 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8750 return c
8751 }
8752
8753
8754 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall {
8755 c.ctx_ = ctx
8756 return c
8757 }
8758
8759
8760
8761 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header {
8762 if c.header_ == nil {
8763 c.header_ = make(http.Header)
8764 }
8765 return c.header_
8766 }
8767
8768 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8769 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8770 var body io.Reader = nil
8771 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
8772 if err != nil {
8773 return nil, err
8774 }
8775 c.urlParams_.Set("alt", alt)
8776 c.urlParams_.Set("prettyPrint", "false")
8777 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
8778 urls += "?" + c.urlParams_.Encode()
8779 req, err := http.NewRequest("POST", urls, body)
8780 if err != nil {
8781 return nil, err
8782 }
8783 req.Header = reqHeaders
8784 googleapi.Expand(req.URL, map[string]string{
8785 "resource": c.resource,
8786 })
8787 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8788 }
8789
8790
8791
8792
8793
8794
8795 func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8796 gensupport.SetOptions(c.urlParams_, opts...)
8797 res, err := c.doRequest("json")
8798 if res != nil && res.StatusCode == http.StatusNotModified {
8799 if res.Body != nil {
8800 res.Body.Close()
8801 }
8802 return nil, gensupport.WrapError(&googleapi.Error{
8803 Code: res.StatusCode,
8804 Header: res.Header,
8805 })
8806 }
8807 if err != nil {
8808 return nil, err
8809 }
8810 defer googleapi.CloseBody(res)
8811 if err := googleapi.CheckResponse(res); err != nil {
8812 return nil, gensupport.WrapError(err)
8813 }
8814 ret := &Policy{
8815 ServerResponse: googleapi.ServerResponse{
8816 Header: res.Header,
8817 HTTPStatusCode: res.StatusCode,
8818 },
8819 }
8820 target := &ret
8821 if err := gensupport.DecodeResponse(target, res); err != nil {
8822 return nil, err
8823 }
8824 return ret, nil
8825 }
8826
8827 type ProjectsLocationsDatasetsTestIamPermissionsCall struct {
8828 s *Service
8829 resource string
8830 testiampermissionsrequest *TestIamPermissionsRequest
8831 urlParams_ gensupport.URLParams
8832 ctx_ context.Context
8833 header_ http.Header
8834 }
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846 func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall {
8847 c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8848 c.resource = resource
8849 c.testiampermissionsrequest = testiampermissionsrequest
8850 return c
8851 }
8852
8853
8854
8855
8856 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall {
8857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8858 return c
8859 }
8860
8861
8862 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall {
8863 c.ctx_ = ctx
8864 return c
8865 }
8866
8867
8868
8869 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header {
8870 if c.header_ == nil {
8871 c.header_ = make(http.Header)
8872 }
8873 return c.header_
8874 }
8875
8876 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
8877 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8878 var body io.Reader = nil
8879 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
8880 if err != nil {
8881 return nil, err
8882 }
8883 c.urlParams_.Set("alt", alt)
8884 c.urlParams_.Set("prettyPrint", "false")
8885 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
8886 urls += "?" + c.urlParams_.Encode()
8887 req, err := http.NewRequest("POST", urls, body)
8888 if err != nil {
8889 return nil, err
8890 }
8891 req.Header = reqHeaders
8892 googleapi.Expand(req.URL, map[string]string{
8893 "resource": c.resource,
8894 })
8895 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8896 }
8897
8898
8899
8900
8901
8902
8903
8904 func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
8905 gensupport.SetOptions(c.urlParams_, opts...)
8906 res, err := c.doRequest("json")
8907 if res != nil && res.StatusCode == http.StatusNotModified {
8908 if res.Body != nil {
8909 res.Body.Close()
8910 }
8911 return nil, gensupport.WrapError(&googleapi.Error{
8912 Code: res.StatusCode,
8913 Header: res.Header,
8914 })
8915 }
8916 if err != nil {
8917 return nil, err
8918 }
8919 defer googleapi.CloseBody(res)
8920 if err := googleapi.CheckResponse(res); err != nil {
8921 return nil, gensupport.WrapError(err)
8922 }
8923 ret := &TestIamPermissionsResponse{
8924 ServerResponse: googleapi.ServerResponse{
8925 Header: res.Header,
8926 HTTPStatusCode: res.StatusCode,
8927 },
8928 }
8929 target := &ret
8930 if err := gensupport.DecodeResponse(target, res); err != nil {
8931 return nil, err
8932 }
8933 return ret, nil
8934 }
8935
8936 type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct {
8937 s *Service
8938 parent string
8939 annotationstore *AnnotationStore
8940 urlParams_ gensupport.URLParams
8941 ctx_ context.Context
8942 header_ http.Header
8943 }
8944
8945
8946
8947
8948 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
8949 c := &ProjectsLocationsDatasetsAnnotationStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8950 c.parent = parent
8951 c.annotationstore = annotationstore
8952 return c
8953 }
8954
8955
8956
8957
8958 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) AnnotationStoreId(annotationStoreId string) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
8959 c.urlParams_.Set("annotationStoreId", annotationStoreId)
8960 return c
8961 }
8962
8963
8964
8965
8966 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
8967 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8968 return c
8969 }
8970
8971
8972 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
8973 c.ctx_ = ctx
8974 return c
8975 }
8976
8977
8978
8979 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Header {
8980 if c.header_ == nil {
8981 c.header_ = make(http.Header)
8982 }
8983 return c.header_
8984 }
8985
8986 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) {
8987 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8988 var body io.Reader = nil
8989 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
8990 if err != nil {
8991 return nil, err
8992 }
8993 c.urlParams_.Set("alt", alt)
8994 c.urlParams_.Set("prettyPrint", "false")
8995 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationStores")
8996 urls += "?" + c.urlParams_.Encode()
8997 req, err := http.NewRequest("POST", urls, body)
8998 if err != nil {
8999 return nil, err
9000 }
9001 req.Header = reqHeaders
9002 googleapi.Expand(req.URL, map[string]string{
9003 "parent": c.parent,
9004 })
9005 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9006 }
9007
9008
9009
9010
9011
9012
9013
9014 func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
9015 gensupport.SetOptions(c.urlParams_, opts...)
9016 res, err := c.doRequest("json")
9017 if res != nil && res.StatusCode == http.StatusNotModified {
9018 if res.Body != nil {
9019 res.Body.Close()
9020 }
9021 return nil, gensupport.WrapError(&googleapi.Error{
9022 Code: res.StatusCode,
9023 Header: res.Header,
9024 })
9025 }
9026 if err != nil {
9027 return nil, err
9028 }
9029 defer googleapi.CloseBody(res)
9030 if err := googleapi.CheckResponse(res); err != nil {
9031 return nil, gensupport.WrapError(err)
9032 }
9033 ret := &AnnotationStore{
9034 ServerResponse: googleapi.ServerResponse{
9035 Header: res.Header,
9036 HTTPStatusCode: res.StatusCode,
9037 },
9038 }
9039 target := &ret
9040 if err := gensupport.DecodeResponse(target, res); err != nil {
9041 return nil, err
9042 }
9043 return ret, nil
9044 }
9045
9046 type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct {
9047 s *Service
9048 name string
9049 urlParams_ gensupport.URLParams
9050 ctx_ context.Context
9051 header_ http.Header
9052 }
9053
9054
9055
9056
9057
9058 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
9059 c := &ProjectsLocationsDatasetsAnnotationStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9060 c.name = name
9061 return c
9062 }
9063
9064
9065
9066
9067 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
9068 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9069 return c
9070 }
9071
9072
9073 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
9074 c.ctx_ = ctx
9075 return c
9076 }
9077
9078
9079
9080 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Header {
9081 if c.header_ == nil {
9082 c.header_ = make(http.Header)
9083 }
9084 return c.header_
9085 }
9086
9087 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
9088 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9089 var body io.Reader = nil
9090 c.urlParams_.Set("alt", alt)
9091 c.urlParams_.Set("prettyPrint", "false")
9092 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
9093 urls += "?" + c.urlParams_.Encode()
9094 req, err := http.NewRequest("DELETE", urls, body)
9095 if err != nil {
9096 return nil, err
9097 }
9098 req.Header = reqHeaders
9099 googleapi.Expand(req.URL, map[string]string{
9100 "name": c.name,
9101 })
9102 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9103 }
9104
9105
9106
9107
9108
9109
9110 func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
9111 gensupport.SetOptions(c.urlParams_, opts...)
9112 res, err := c.doRequest("json")
9113 if res != nil && res.StatusCode == http.StatusNotModified {
9114 if res.Body != nil {
9115 res.Body.Close()
9116 }
9117 return nil, gensupport.WrapError(&googleapi.Error{
9118 Code: res.StatusCode,
9119 Header: res.Header,
9120 })
9121 }
9122 if err != nil {
9123 return nil, err
9124 }
9125 defer googleapi.CloseBody(res)
9126 if err := googleapi.CheckResponse(res); err != nil {
9127 return nil, gensupport.WrapError(err)
9128 }
9129 ret := &Empty{
9130 ServerResponse: googleapi.ServerResponse{
9131 Header: res.Header,
9132 HTTPStatusCode: res.StatusCode,
9133 },
9134 }
9135 target := &ret
9136 if err := gensupport.DecodeResponse(target, res); err != nil {
9137 return nil, err
9138 }
9139 return ret, nil
9140 }
9141
9142 type ProjectsLocationsDatasetsAnnotationStoresEvaluateCall struct {
9143 s *Service
9144 name string
9145 evaluateannotationstorerequest *EvaluateAnnotationStoreRequest
9146 urlParams_ gensupport.URLParams
9147 ctx_ context.Context
9148 header_ http.Header
9149 }
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Evaluate(name string, evaluateannotationstorerequest *EvaluateAnnotationStoreRequest) *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall {
9163 c := &ProjectsLocationsDatasetsAnnotationStoresEvaluateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9164 c.name = name
9165 c.evaluateannotationstorerequest = evaluateannotationstorerequest
9166 return c
9167 }
9168
9169
9170
9171
9172 func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall {
9173 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9174 return c
9175 }
9176
9177
9178 func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall {
9179 c.ctx_ = ctx
9180 return c
9181 }
9182
9183
9184
9185 func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Header() http.Header {
9186 if c.header_ == nil {
9187 c.header_ = make(http.Header)
9188 }
9189 return c.header_
9190 }
9191
9192 func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) doRequest(alt string) (*http.Response, error) {
9193 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9194 var body io.Reader = nil
9195 body, err := googleapi.WithoutDataWrapper.JSONReader(c.evaluateannotationstorerequest)
9196 if err != nil {
9197 return nil, err
9198 }
9199 c.urlParams_.Set("alt", alt)
9200 c.urlParams_.Set("prettyPrint", "false")
9201 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:evaluate")
9202 urls += "?" + c.urlParams_.Encode()
9203 req, err := http.NewRequest("POST", urls, body)
9204 if err != nil {
9205 return nil, err
9206 }
9207 req.Header = reqHeaders
9208 googleapi.Expand(req.URL, map[string]string{
9209 "name": c.name,
9210 })
9211 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9212 }
9213
9214
9215
9216
9217
9218
9219 func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9220 gensupport.SetOptions(c.urlParams_, opts...)
9221 res, err := c.doRequest("json")
9222 if res != nil && res.StatusCode == http.StatusNotModified {
9223 if res.Body != nil {
9224 res.Body.Close()
9225 }
9226 return nil, gensupport.WrapError(&googleapi.Error{
9227 Code: res.StatusCode,
9228 Header: res.Header,
9229 })
9230 }
9231 if err != nil {
9232 return nil, err
9233 }
9234 defer googleapi.CloseBody(res)
9235 if err := googleapi.CheckResponse(res); err != nil {
9236 return nil, gensupport.WrapError(err)
9237 }
9238 ret := &Operation{
9239 ServerResponse: googleapi.ServerResponse{
9240 Header: res.Header,
9241 HTTPStatusCode: res.StatusCode,
9242 },
9243 }
9244 target := &ret
9245 if err := gensupport.DecodeResponse(target, res); err != nil {
9246 return nil, err
9247 }
9248 return ret, nil
9249 }
9250
9251 type ProjectsLocationsDatasetsAnnotationStoresExportCall struct {
9252 s *Service
9253 name string
9254 exportannotationsrequest *ExportAnnotationsRequest
9255 urlParams_ gensupport.URLParams
9256 ctx_ context.Context
9257 header_ http.Header
9258 }
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Export(name string, exportannotationsrequest *ExportAnnotationsRequest) *ProjectsLocationsDatasetsAnnotationStoresExportCall {
9272 c := &ProjectsLocationsDatasetsAnnotationStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9273 c.name = name
9274 c.exportannotationsrequest = exportannotationsrequest
9275 return c
9276 }
9277
9278
9279
9280
9281 func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresExportCall {
9282 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9283 return c
9284 }
9285
9286
9287 func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresExportCall {
9288 c.ctx_ = ctx
9289 return c
9290 }
9291
9292
9293
9294 func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Header() http.Header {
9295 if c.header_ == nil {
9296 c.header_ = make(http.Header)
9297 }
9298 return c.header_
9299 }
9300
9301 func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) doRequest(alt string) (*http.Response, error) {
9302 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9303 var body io.Reader = nil
9304 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportannotationsrequest)
9305 if err != nil {
9306 return nil, err
9307 }
9308 c.urlParams_.Set("alt", alt)
9309 c.urlParams_.Set("prettyPrint", "false")
9310 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
9311 urls += "?" + c.urlParams_.Encode()
9312 req, err := http.NewRequest("POST", urls, body)
9313 if err != nil {
9314 return nil, err
9315 }
9316 req.Header = reqHeaders
9317 googleapi.Expand(req.URL, map[string]string{
9318 "name": c.name,
9319 })
9320 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9321 }
9322
9323
9324
9325
9326
9327
9328 func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9329 gensupport.SetOptions(c.urlParams_, opts...)
9330 res, err := c.doRequest("json")
9331 if res != nil && res.StatusCode == http.StatusNotModified {
9332 if res.Body != nil {
9333 res.Body.Close()
9334 }
9335 return nil, gensupport.WrapError(&googleapi.Error{
9336 Code: res.StatusCode,
9337 Header: res.Header,
9338 })
9339 }
9340 if err != nil {
9341 return nil, err
9342 }
9343 defer googleapi.CloseBody(res)
9344 if err := googleapi.CheckResponse(res); err != nil {
9345 return nil, gensupport.WrapError(err)
9346 }
9347 ret := &Operation{
9348 ServerResponse: googleapi.ServerResponse{
9349 Header: res.Header,
9350 HTTPStatusCode: res.StatusCode,
9351 },
9352 }
9353 target := &ret
9354 if err := gensupport.DecodeResponse(target, res); err != nil {
9355 return nil, err
9356 }
9357 return ret, nil
9358 }
9359
9360 type ProjectsLocationsDatasetsAnnotationStoresGetCall struct {
9361 s *Service
9362 name string
9363 urlParams_ gensupport.URLParams
9364 ifNoneMatch_ string
9365 ctx_ context.Context
9366 header_ http.Header
9367 }
9368
9369
9370
9371
9372
9373 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
9374 c := &ProjectsLocationsDatasetsAnnotationStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9375 c.name = name
9376 return c
9377 }
9378
9379
9380
9381
9382 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
9383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9384 return c
9385 }
9386
9387
9388
9389
9390 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
9391 c.ifNoneMatch_ = entityTag
9392 return c
9393 }
9394
9395
9396 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
9397 c.ctx_ = ctx
9398 return c
9399 }
9400
9401
9402
9403 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header {
9404 if c.header_ == nil {
9405 c.header_ = make(http.Header)
9406 }
9407 return c.header_
9408 }
9409
9410 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) {
9411 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9412 if c.ifNoneMatch_ != "" {
9413 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9414 }
9415 var body io.Reader = nil
9416 c.urlParams_.Set("alt", alt)
9417 c.urlParams_.Set("prettyPrint", "false")
9418 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
9419 urls += "?" + c.urlParams_.Encode()
9420 req, err := http.NewRequest("GET", urls, body)
9421 if err != nil {
9422 return nil, err
9423 }
9424 req.Header = reqHeaders
9425 googleapi.Expand(req.URL, map[string]string{
9426 "name": c.name,
9427 })
9428 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9429 }
9430
9431
9432
9433
9434
9435
9436
9437 func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, 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, gensupport.WrapError(&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, gensupport.WrapError(err)
9455 }
9456 ret := &AnnotationStore{
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 type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct {
9470 s *Service
9471 resource string
9472 urlParams_ gensupport.URLParams
9473 ifNoneMatch_ string
9474 ctx_ context.Context
9475 header_ http.Header
9476 }
9477
9478
9479
9480
9481
9482
9483
9484 func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
9485 c := &ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9486 c.resource = resource
9487 return c
9488 }
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
9503 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
9504 return c
9505 }
9506
9507
9508
9509
9510 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
9511 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9512 return c
9513 }
9514
9515
9516
9517
9518 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
9519 c.ifNoneMatch_ = entityTag
9520 return c
9521 }
9522
9523
9524 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
9525 c.ctx_ = ctx
9526 return c
9527 }
9528
9529
9530
9531 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() http.Header {
9532 if c.header_ == nil {
9533 c.header_ = make(http.Header)
9534 }
9535 return c.header_
9536 }
9537
9538 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
9539 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9540 if c.ifNoneMatch_ != "" {
9541 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9542 }
9543 var body io.Reader = nil
9544 c.urlParams_.Set("alt", alt)
9545 c.urlParams_.Set("prettyPrint", "false")
9546 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
9547 urls += "?" + c.urlParams_.Encode()
9548 req, err := http.NewRequest("GET", urls, body)
9549 if err != nil {
9550 return nil, err
9551 }
9552 req.Header = reqHeaders
9553 googleapi.Expand(req.URL, map[string]string{
9554 "resource": c.resource,
9555 })
9556 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9557 }
9558
9559
9560
9561
9562
9563
9564 func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
9565 gensupport.SetOptions(c.urlParams_, opts...)
9566 res, err := c.doRequest("json")
9567 if res != nil && res.StatusCode == http.StatusNotModified {
9568 if res.Body != nil {
9569 res.Body.Close()
9570 }
9571 return nil, gensupport.WrapError(&googleapi.Error{
9572 Code: res.StatusCode,
9573 Header: res.Header,
9574 })
9575 }
9576 if err != nil {
9577 return nil, err
9578 }
9579 defer googleapi.CloseBody(res)
9580 if err := googleapi.CheckResponse(res); err != nil {
9581 return nil, gensupport.WrapError(err)
9582 }
9583 ret := &Policy{
9584 ServerResponse: googleapi.ServerResponse{
9585 Header: res.Header,
9586 HTTPStatusCode: res.StatusCode,
9587 },
9588 }
9589 target := &ret
9590 if err := gensupport.DecodeResponse(target, res); err != nil {
9591 return nil, err
9592 }
9593 return ret, nil
9594 }
9595
9596 type ProjectsLocationsDatasetsAnnotationStoresImportCall struct {
9597 s *Service
9598 name string
9599 importannotationsrequest *ImportAnnotationsRequest
9600 urlParams_ gensupport.URLParams
9601 ctx_ context.Context
9602 header_ http.Header
9603 }
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Import(name string, importannotationsrequest *ImportAnnotationsRequest) *ProjectsLocationsDatasetsAnnotationStoresImportCall {
9618 c := &ProjectsLocationsDatasetsAnnotationStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9619 c.name = name
9620 c.importannotationsrequest = importannotationsrequest
9621 return c
9622 }
9623
9624
9625
9626
9627 func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresImportCall {
9628 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9629 return c
9630 }
9631
9632
9633 func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresImportCall {
9634 c.ctx_ = ctx
9635 return c
9636 }
9637
9638
9639
9640 func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Header() http.Header {
9641 if c.header_ == nil {
9642 c.header_ = make(http.Header)
9643 }
9644 return c.header_
9645 }
9646
9647 func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) doRequest(alt string) (*http.Response, error) {
9648 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9649 var body io.Reader = nil
9650 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importannotationsrequest)
9651 if err != nil {
9652 return nil, err
9653 }
9654 c.urlParams_.Set("alt", alt)
9655 c.urlParams_.Set("prettyPrint", "false")
9656 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
9657 urls += "?" + c.urlParams_.Encode()
9658 req, err := http.NewRequest("POST", urls, body)
9659 if err != nil {
9660 return nil, err
9661 }
9662 req.Header = reqHeaders
9663 googleapi.Expand(req.URL, map[string]string{
9664 "name": c.name,
9665 })
9666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9667 }
9668
9669
9670
9671
9672
9673
9674 func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9675 gensupport.SetOptions(c.urlParams_, opts...)
9676 res, err := c.doRequest("json")
9677 if res != nil && res.StatusCode == http.StatusNotModified {
9678 if res.Body != nil {
9679 res.Body.Close()
9680 }
9681 return nil, gensupport.WrapError(&googleapi.Error{
9682 Code: res.StatusCode,
9683 Header: res.Header,
9684 })
9685 }
9686 if err != nil {
9687 return nil, err
9688 }
9689 defer googleapi.CloseBody(res)
9690 if err := googleapi.CheckResponse(res); err != nil {
9691 return nil, gensupport.WrapError(err)
9692 }
9693 ret := &Operation{
9694 ServerResponse: googleapi.ServerResponse{
9695 Header: res.Header,
9696 HTTPStatusCode: res.StatusCode,
9697 },
9698 }
9699 target := &ret
9700 if err := gensupport.DecodeResponse(target, res); err != nil {
9701 return nil, err
9702 }
9703 return ret, nil
9704 }
9705
9706 type ProjectsLocationsDatasetsAnnotationStoresListCall struct {
9707 s *Service
9708 parent string
9709 urlParams_ gensupport.URLParams
9710 ifNoneMatch_ string
9711 ctx_ context.Context
9712 header_ http.Header
9713 }
9714
9715
9716
9717
9718 func (r *ProjectsLocationsDatasetsAnnotationStoresService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9719 c := &ProjectsLocationsDatasetsAnnotationStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9720 c.parent = parent
9721 return c
9722 }
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9748 c.urlParams_.Set("filter", filter)
9749 return c
9750 }
9751
9752
9753
9754
9755 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9756 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9757 return c
9758 }
9759
9760
9761
9762 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9763 c.urlParams_.Set("pageToken", pageToken)
9764 return c
9765 }
9766
9767
9768
9769
9770 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9771 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9772 return c
9773 }
9774
9775
9776
9777
9778 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9779 c.ifNoneMatch_ = entityTag
9780 return c
9781 }
9782
9783
9784 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresListCall {
9785 c.ctx_ = ctx
9786 return c
9787 }
9788
9789
9790
9791 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header {
9792 if c.header_ == nil {
9793 c.header_ = make(http.Header)
9794 }
9795 return c.header_
9796 }
9797
9798 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) {
9799 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9800 if c.ifNoneMatch_ != "" {
9801 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9802 }
9803 var body io.Reader = nil
9804 c.urlParams_.Set("alt", alt)
9805 c.urlParams_.Set("prettyPrint", "false")
9806 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationStores")
9807 urls += "?" + c.urlParams_.Encode()
9808 req, err := http.NewRequest("GET", urls, body)
9809 if err != nil {
9810 return nil, err
9811 }
9812 req.Header = reqHeaders
9813 googleapi.Expand(req.URL, map[string]string{
9814 "parent": c.parent,
9815 })
9816 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9817 }
9818
9819
9820
9821
9822
9823
9824
9825 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationStoresResponse, error) {
9826 gensupport.SetOptions(c.urlParams_, opts...)
9827 res, err := c.doRequest("json")
9828 if res != nil && res.StatusCode == http.StatusNotModified {
9829 if res.Body != nil {
9830 res.Body.Close()
9831 }
9832 return nil, gensupport.WrapError(&googleapi.Error{
9833 Code: res.StatusCode,
9834 Header: res.Header,
9835 })
9836 }
9837 if err != nil {
9838 return nil, err
9839 }
9840 defer googleapi.CloseBody(res)
9841 if err := googleapi.CheckResponse(res); err != nil {
9842 return nil, gensupport.WrapError(err)
9843 }
9844 ret := &ListAnnotationStoresResponse{
9845 ServerResponse: googleapi.ServerResponse{
9846 Header: res.Header,
9847 HTTPStatusCode: res.StatusCode,
9848 },
9849 }
9850 target := &ret
9851 if err := gensupport.DecodeResponse(target, res); err != nil {
9852 return nil, err
9853 }
9854 return ret, nil
9855 }
9856
9857
9858
9859
9860 func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Context, f func(*ListAnnotationStoresResponse) error) error {
9861 c.ctx_ = ctx
9862 defer c.PageToken(c.urlParams_.Get("pageToken"))
9863 for {
9864 x, err := c.Do()
9865 if err != nil {
9866 return err
9867 }
9868 if err := f(x); err != nil {
9869 return err
9870 }
9871 if x.NextPageToken == "" {
9872 return nil
9873 }
9874 c.PageToken(x.NextPageToken)
9875 }
9876 }
9877
9878 type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct {
9879 s *Service
9880 name string
9881 annotationstore *AnnotationStore
9882 urlParams_ gensupport.URLParams
9883 ctx_ context.Context
9884 header_ http.Header
9885 }
9886
9887
9888
9889
9890
9891
9892 func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
9893 c := &ProjectsLocationsDatasetsAnnotationStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9894 c.name = name
9895 c.annotationstore = annotationstore
9896 return c
9897 }
9898
9899
9900
9901
9902 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
9903 c.urlParams_.Set("updateMask", updateMask)
9904 return c
9905 }
9906
9907
9908
9909
9910 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
9911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9912 return c
9913 }
9914
9915
9916 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
9917 c.ctx_ = ctx
9918 return c
9919 }
9920
9921
9922
9923 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Header {
9924 if c.header_ == nil {
9925 c.header_ = make(http.Header)
9926 }
9927 return c.header_
9928 }
9929
9930 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) {
9931 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9932 var body io.Reader = nil
9933 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
9934 if err != nil {
9935 return nil, err
9936 }
9937 c.urlParams_.Set("alt", alt)
9938 c.urlParams_.Set("prettyPrint", "false")
9939 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
9940 urls += "?" + c.urlParams_.Encode()
9941 req, err := http.NewRequest("PATCH", urls, body)
9942 if err != nil {
9943 return nil, err
9944 }
9945 req.Header = reqHeaders
9946 googleapi.Expand(req.URL, map[string]string{
9947 "name": c.name,
9948 })
9949 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9950 }
9951
9952
9953
9954
9955
9956
9957
9958 func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
9959 gensupport.SetOptions(c.urlParams_, opts...)
9960 res, err := c.doRequest("json")
9961 if res != nil && res.StatusCode == http.StatusNotModified {
9962 if res.Body != nil {
9963 res.Body.Close()
9964 }
9965 return nil, gensupport.WrapError(&googleapi.Error{
9966 Code: res.StatusCode,
9967 Header: res.Header,
9968 })
9969 }
9970 if err != nil {
9971 return nil, err
9972 }
9973 defer googleapi.CloseBody(res)
9974 if err := googleapi.CheckResponse(res); err != nil {
9975 return nil, gensupport.WrapError(err)
9976 }
9977 ret := &AnnotationStore{
9978 ServerResponse: googleapi.ServerResponse{
9979 Header: res.Header,
9980 HTTPStatusCode: res.StatusCode,
9981 },
9982 }
9983 target := &ret
9984 if err := gensupport.DecodeResponse(target, res); err != nil {
9985 return nil, err
9986 }
9987 return ret, nil
9988 }
9989
9990 type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct {
9991 s *Service
9992 resource string
9993 setiampolicyrequest *SetIamPolicyRequest
9994 urlParams_ gensupport.URLParams
9995 ctx_ context.Context
9996 header_ http.Header
9997 }
9998
9999
10000
10001
10002
10003
10004
10005
10006 func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
10007 c := &ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10008 c.resource = resource
10009 c.setiampolicyrequest = setiampolicyrequest
10010 return c
10011 }
10012
10013
10014
10015
10016 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
10017 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10018 return c
10019 }
10020
10021
10022 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
10023 c.ctx_ = ctx
10024 return c
10025 }
10026
10027
10028
10029 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() http.Header {
10030 if c.header_ == nil {
10031 c.header_ = make(http.Header)
10032 }
10033 return c.header_
10034 }
10035
10036 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
10037 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10038 var body io.Reader = nil
10039 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
10040 if err != nil {
10041 return nil, err
10042 }
10043 c.urlParams_.Set("alt", alt)
10044 c.urlParams_.Set("prettyPrint", "false")
10045 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
10046 urls += "?" + c.urlParams_.Encode()
10047 req, err := http.NewRequest("POST", urls, body)
10048 if err != nil {
10049 return nil, err
10050 }
10051 req.Header = reqHeaders
10052 googleapi.Expand(req.URL, map[string]string{
10053 "resource": c.resource,
10054 })
10055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10056 }
10057
10058
10059
10060
10061
10062
10063 func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
10064 gensupport.SetOptions(c.urlParams_, opts...)
10065 res, err := c.doRequest("json")
10066 if res != nil && res.StatusCode == http.StatusNotModified {
10067 if res.Body != nil {
10068 res.Body.Close()
10069 }
10070 return nil, gensupport.WrapError(&googleapi.Error{
10071 Code: res.StatusCode,
10072 Header: res.Header,
10073 })
10074 }
10075 if err != nil {
10076 return nil, err
10077 }
10078 defer googleapi.CloseBody(res)
10079 if err := googleapi.CheckResponse(res); err != nil {
10080 return nil, gensupport.WrapError(err)
10081 }
10082 ret := &Policy{
10083 ServerResponse: googleapi.ServerResponse{
10084 Header: res.Header,
10085 HTTPStatusCode: res.StatusCode,
10086 },
10087 }
10088 target := &ret
10089 if err := gensupport.DecodeResponse(target, res); err != nil {
10090 return nil, err
10091 }
10092 return ret, nil
10093 }
10094
10095 type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct {
10096 s *Service
10097 resource string
10098 testiampermissionsrequest *TestIamPermissionsRequest
10099 urlParams_ gensupport.URLParams
10100 ctx_ context.Context
10101 header_ http.Header
10102 }
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114 func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
10115 c := &ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10116 c.resource = resource
10117 c.testiampermissionsrequest = testiampermissionsrequest
10118 return c
10119 }
10120
10121
10122
10123
10124 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
10125 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10126 return c
10127 }
10128
10129
10130 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
10131 c.ctx_ = ctx
10132 return c
10133 }
10134
10135
10136
10137 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header() http.Header {
10138 if c.header_ == nil {
10139 c.header_ = make(http.Header)
10140 }
10141 return c.header_
10142 }
10143
10144 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
10145 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10146 var body io.Reader = nil
10147 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
10148 if err != nil {
10149 return nil, err
10150 }
10151 c.urlParams_.Set("alt", alt)
10152 c.urlParams_.Set("prettyPrint", "false")
10153 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
10154 urls += "?" + c.urlParams_.Encode()
10155 req, err := http.NewRequest("POST", urls, body)
10156 if err != nil {
10157 return nil, err
10158 }
10159 req.Header = reqHeaders
10160 googleapi.Expand(req.URL, map[string]string{
10161 "resource": c.resource,
10162 })
10163 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10164 }
10165
10166
10167
10168
10169
10170
10171
10172 func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
10173 gensupport.SetOptions(c.urlParams_, opts...)
10174 res, err := c.doRequest("json")
10175 if res != nil && res.StatusCode == http.StatusNotModified {
10176 if res.Body != nil {
10177 res.Body.Close()
10178 }
10179 return nil, gensupport.WrapError(&googleapi.Error{
10180 Code: res.StatusCode,
10181 Header: res.Header,
10182 })
10183 }
10184 if err != nil {
10185 return nil, err
10186 }
10187 defer googleapi.CloseBody(res)
10188 if err := googleapi.CheckResponse(res); err != nil {
10189 return nil, gensupport.WrapError(err)
10190 }
10191 ret := &TestIamPermissionsResponse{
10192 ServerResponse: googleapi.ServerResponse{
10193 Header: res.Header,
10194 HTTPStatusCode: res.StatusCode,
10195 },
10196 }
10197 target := &ret
10198 if err := gensupport.DecodeResponse(target, res); err != nil {
10199 return nil, err
10200 }
10201 return ret, nil
10202 }
10203
10204 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct {
10205 s *Service
10206 parent string
10207 annotation *Annotation
10208 urlParams_ gensupport.URLParams
10209 ctx_ context.Context
10210 header_ http.Header
10211 }
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(parent string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
10222 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10223 c.parent = parent
10224 c.annotation = annotation
10225 return c
10226 }
10227
10228
10229
10230
10231 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
10232 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10233 return c
10234 }
10235
10236
10237 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
10238 c.ctx_ = ctx
10239 return c
10240 }
10241
10242
10243
10244 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header() http.Header {
10245 if c.header_ == nil {
10246 c.header_ = make(http.Header)
10247 }
10248 return c.header_
10249 }
10250
10251 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) {
10252 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10253 var body io.Reader = nil
10254 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
10255 if err != nil {
10256 return nil, err
10257 }
10258 c.urlParams_.Set("alt", alt)
10259 c.urlParams_.Set("prettyPrint", "false")
10260 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotations")
10261 urls += "?" + c.urlParams_.Encode()
10262 req, err := http.NewRequest("POST", urls, body)
10263 if err != nil {
10264 return nil, err
10265 }
10266 req.Header = reqHeaders
10267 googleapi.Expand(req.URL, map[string]string{
10268 "parent": c.parent,
10269 })
10270 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10271 }
10272
10273
10274
10275
10276
10277
10278 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
10279 gensupport.SetOptions(c.urlParams_, opts...)
10280 res, err := c.doRequest("json")
10281 if res != nil && res.StatusCode == http.StatusNotModified {
10282 if res.Body != nil {
10283 res.Body.Close()
10284 }
10285 return nil, gensupport.WrapError(&googleapi.Error{
10286 Code: res.StatusCode,
10287 Header: res.Header,
10288 })
10289 }
10290 if err != nil {
10291 return nil, err
10292 }
10293 defer googleapi.CloseBody(res)
10294 if err := googleapi.CheckResponse(res); err != nil {
10295 return nil, gensupport.WrapError(err)
10296 }
10297 ret := &Annotation{
10298 ServerResponse: googleapi.ServerResponse{
10299 Header: res.Header,
10300 HTTPStatusCode: res.StatusCode,
10301 },
10302 }
10303 target := &ret
10304 if err := gensupport.DecodeResponse(target, res); err != nil {
10305 return nil, err
10306 }
10307 return ret, nil
10308 }
10309
10310 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct {
10311 s *Service
10312 name string
10313 urlParams_ gensupport.URLParams
10314 ctx_ context.Context
10315 header_ http.Header
10316 }
10317
10318
10319
10320
10321 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
10322 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10323 c.name = name
10324 return c
10325 }
10326
10327
10328
10329
10330 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
10331 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10332 return c
10333 }
10334
10335
10336 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
10337 c.ctx_ = ctx
10338 return c
10339 }
10340
10341
10342
10343 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header() http.Header {
10344 if c.header_ == nil {
10345 c.header_ = make(http.Header)
10346 }
10347 return c.header_
10348 }
10349
10350 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) {
10351 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10352 var body io.Reader = nil
10353 c.urlParams_.Set("alt", alt)
10354 c.urlParams_.Set("prettyPrint", "false")
10355 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
10356 urls += "?" + c.urlParams_.Encode()
10357 req, err := http.NewRequest("DELETE", urls, body)
10358 if err != nil {
10359 return nil, err
10360 }
10361 req.Header = reqHeaders
10362 googleapi.Expand(req.URL, map[string]string{
10363 "name": c.name,
10364 })
10365 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10366 }
10367
10368
10369
10370
10371
10372
10373 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10374 gensupport.SetOptions(c.urlParams_, opts...)
10375 res, err := c.doRequest("json")
10376 if res != nil && res.StatusCode == http.StatusNotModified {
10377 if res.Body != nil {
10378 res.Body.Close()
10379 }
10380 return nil, gensupport.WrapError(&googleapi.Error{
10381 Code: res.StatusCode,
10382 Header: res.Header,
10383 })
10384 }
10385 if err != nil {
10386 return nil, err
10387 }
10388 defer googleapi.CloseBody(res)
10389 if err := googleapi.CheckResponse(res); err != nil {
10390 return nil, gensupport.WrapError(err)
10391 }
10392 ret := &Empty{
10393 ServerResponse: googleapi.ServerResponse{
10394 Header: res.Header,
10395 HTTPStatusCode: res.StatusCode,
10396 },
10397 }
10398 target := &ret
10399 if err := gensupport.DecodeResponse(target, res); err != nil {
10400 return nil, err
10401 }
10402 return ret, nil
10403 }
10404
10405 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct {
10406 s *Service
10407 name string
10408 urlParams_ gensupport.URLParams
10409 ifNoneMatch_ string
10410 ctx_ context.Context
10411 header_ http.Header
10412 }
10413
10414
10415
10416
10417 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
10418 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10419 c.name = name
10420 return c
10421 }
10422
10423
10424
10425
10426 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
10427 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10428 return c
10429 }
10430
10431
10432
10433
10434 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
10435 c.ifNoneMatch_ = entityTag
10436 return c
10437 }
10438
10439
10440 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
10441 c.ctx_ = ctx
10442 return c
10443 }
10444
10445
10446
10447 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() http.Header {
10448 if c.header_ == nil {
10449 c.header_ = make(http.Header)
10450 }
10451 return c.header_
10452 }
10453
10454 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) {
10455 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10456 if c.ifNoneMatch_ != "" {
10457 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10458 }
10459 var body io.Reader = nil
10460 c.urlParams_.Set("alt", alt)
10461 c.urlParams_.Set("prettyPrint", "false")
10462 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
10463 urls += "?" + c.urlParams_.Encode()
10464 req, err := http.NewRequest("GET", urls, body)
10465 if err != nil {
10466 return nil, err
10467 }
10468 req.Header = reqHeaders
10469 googleapi.Expand(req.URL, map[string]string{
10470 "name": c.name,
10471 })
10472 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10473 }
10474
10475
10476
10477
10478
10479
10480 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
10481 gensupport.SetOptions(c.urlParams_, opts...)
10482 res, err := c.doRequest("json")
10483 if res != nil && res.StatusCode == http.StatusNotModified {
10484 if res.Body != nil {
10485 res.Body.Close()
10486 }
10487 return nil, gensupport.WrapError(&googleapi.Error{
10488 Code: res.StatusCode,
10489 Header: res.Header,
10490 })
10491 }
10492 if err != nil {
10493 return nil, err
10494 }
10495 defer googleapi.CloseBody(res)
10496 if err := googleapi.CheckResponse(res); err != nil {
10497 return nil, gensupport.WrapError(err)
10498 }
10499 ret := &Annotation{
10500 ServerResponse: googleapi.ServerResponse{
10501 Header: res.Header,
10502 HTTPStatusCode: res.StatusCode,
10503 },
10504 }
10505 target := &ret
10506 if err := gensupport.DecodeResponse(target, res); err != nil {
10507 return nil, err
10508 }
10509 return ret, nil
10510 }
10511
10512 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct {
10513 s *Service
10514 parent string
10515 urlParams_ gensupport.URLParams
10516 ifNoneMatch_ string
10517 ctx_ context.Context
10518 header_ http.Header
10519 }
10520
10521
10522
10523
10524
10525 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10526 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10527 c.parent = parent
10528 return c
10529 }
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10541 c.urlParams_.Set("filter", filter)
10542 return c
10543 }
10544
10545
10546
10547
10548 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10549 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10550 return c
10551 }
10552
10553
10554
10555 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10556 c.urlParams_.Set("pageToken", pageToken)
10557 return c
10558 }
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) View(view string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10572 c.urlParams_.Set("view", view)
10573 return c
10574 }
10575
10576
10577
10578
10579 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10580 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10581 return c
10582 }
10583
10584
10585
10586
10587 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10588 c.ifNoneMatch_ = entityTag
10589 return c
10590 }
10591
10592
10593 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
10594 c.ctx_ = ctx
10595 return c
10596 }
10597
10598
10599
10600 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() http.Header {
10601 if c.header_ == nil {
10602 c.header_ = make(http.Header)
10603 }
10604 return c.header_
10605 }
10606
10607 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) {
10608 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10609 if c.ifNoneMatch_ != "" {
10610 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10611 }
10612 var body io.Reader = nil
10613 c.urlParams_.Set("alt", alt)
10614 c.urlParams_.Set("prettyPrint", "false")
10615 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotations")
10616 urls += "?" + c.urlParams_.Encode()
10617 req, err := http.NewRequest("GET", urls, body)
10618 if err != nil {
10619 return nil, err
10620 }
10621 req.Header = reqHeaders
10622 googleapi.Expand(req.URL, map[string]string{
10623 "parent": c.parent,
10624 })
10625 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10626 }
10627
10628
10629
10630
10631
10632
10633
10634 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationsResponse, error) {
10635 gensupport.SetOptions(c.urlParams_, opts...)
10636 res, err := c.doRequest("json")
10637 if res != nil && res.StatusCode == http.StatusNotModified {
10638 if res.Body != nil {
10639 res.Body.Close()
10640 }
10641 return nil, gensupport.WrapError(&googleapi.Error{
10642 Code: res.StatusCode,
10643 Header: res.Header,
10644 })
10645 }
10646 if err != nil {
10647 return nil, err
10648 }
10649 defer googleapi.CloseBody(res)
10650 if err := googleapi.CheckResponse(res); err != nil {
10651 return nil, gensupport.WrapError(err)
10652 }
10653 ret := &ListAnnotationsResponse{
10654 ServerResponse: googleapi.ServerResponse{
10655 Header: res.Header,
10656 HTTPStatusCode: res.StatusCode,
10657 },
10658 }
10659 target := &ret
10660 if err := gensupport.DecodeResponse(target, res); err != nil {
10661 return nil, err
10662 }
10663 return ret, nil
10664 }
10665
10666
10667
10668
10669 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx context.Context, f func(*ListAnnotationsResponse) error) error {
10670 c.ctx_ = ctx
10671 defer c.PageToken(c.urlParams_.Get("pageToken"))
10672 for {
10673 x, err := c.Do()
10674 if err != nil {
10675 return err
10676 }
10677 if err := f(x); err != nil {
10678 return err
10679 }
10680 if x.NextPageToken == "" {
10681 return nil
10682 }
10683 c.PageToken(x.NextPageToken)
10684 }
10685 }
10686
10687 type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct {
10688 s *Service
10689 name string
10690 annotation *Annotation
10691 urlParams_ gensupport.URLParams
10692 ctx_ context.Context
10693 header_ http.Header
10694 }
10695
10696
10697
10698
10699
10700
10701 func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
10702 c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10703 c.name = name
10704 c.annotation = annotation
10705 return c
10706 }
10707
10708
10709
10710
10711 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
10712 c.urlParams_.Set("updateMask", updateMask)
10713 return c
10714 }
10715
10716
10717
10718
10719 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
10720 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10721 return c
10722 }
10723
10724
10725 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
10726 c.ctx_ = ctx
10727 return c
10728 }
10729
10730
10731
10732 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() http.Header {
10733 if c.header_ == nil {
10734 c.header_ = make(http.Header)
10735 }
10736 return c.header_
10737 }
10738
10739 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) {
10740 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10741 var body io.Reader = nil
10742 body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
10743 if err != nil {
10744 return nil, err
10745 }
10746 c.urlParams_.Set("alt", alt)
10747 c.urlParams_.Set("prettyPrint", "false")
10748 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
10749 urls += "?" + c.urlParams_.Encode()
10750 req, err := http.NewRequest("PATCH", urls, body)
10751 if err != nil {
10752 return nil, err
10753 }
10754 req.Header = reqHeaders
10755 googleapi.Expand(req.URL, map[string]string{
10756 "name": c.name,
10757 })
10758 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10759 }
10760
10761
10762
10763
10764
10765
10766 func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
10767 gensupport.SetOptions(c.urlParams_, opts...)
10768 res, err := c.doRequest("json")
10769 if res != nil && res.StatusCode == http.StatusNotModified {
10770 if res.Body != nil {
10771 res.Body.Close()
10772 }
10773 return nil, gensupport.WrapError(&googleapi.Error{
10774 Code: res.StatusCode,
10775 Header: res.Header,
10776 })
10777 }
10778 if err != nil {
10779 return nil, err
10780 }
10781 defer googleapi.CloseBody(res)
10782 if err := googleapi.CheckResponse(res); err != nil {
10783 return nil, gensupport.WrapError(err)
10784 }
10785 ret := &Annotation{
10786 ServerResponse: googleapi.ServerResponse{
10787 Header: res.Header,
10788 HTTPStatusCode: res.StatusCode,
10789 },
10790 }
10791 target := &ret
10792 if err := gensupport.DecodeResponse(target, res); err != nil {
10793 return nil, err
10794 }
10795 return ret, nil
10796 }
10797
10798 type ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall struct {
10799 s *Service
10800 consentStore string
10801 checkdataaccessrequest *CheckDataAccessRequest
10802 urlParams_ gensupport.URLParams
10803 ctx_ context.Context
10804 header_ http.Header
10805 }
10806
10807
10808
10809
10810
10811
10812
10813
10814 func (r *ProjectsLocationsDatasetsConsentStoresService) CheckDataAccess(consentStore string, checkdataaccessrequest *CheckDataAccessRequest) *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall {
10815 c := &ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10816 c.consentStore = consentStore
10817 c.checkdataaccessrequest = checkdataaccessrequest
10818 return c
10819 }
10820
10821
10822
10823
10824 func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall {
10825 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10826 return c
10827 }
10828
10829
10830 func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall {
10831 c.ctx_ = ctx
10832 return c
10833 }
10834
10835
10836
10837 func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Header() http.Header {
10838 if c.header_ == nil {
10839 c.header_ = make(http.Header)
10840 }
10841 return c.header_
10842 }
10843
10844 func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) doRequest(alt string) (*http.Response, error) {
10845 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10846 var body io.Reader = nil
10847 body, err := googleapi.WithoutDataWrapper.JSONReader(c.checkdataaccessrequest)
10848 if err != nil {
10849 return nil, err
10850 }
10851 c.urlParams_.Set("alt", alt)
10852 c.urlParams_.Set("prettyPrint", "false")
10853 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+consentStore}:checkDataAccess")
10854 urls += "?" + c.urlParams_.Encode()
10855 req, err := http.NewRequest("POST", urls, body)
10856 if err != nil {
10857 return nil, err
10858 }
10859 req.Header = reqHeaders
10860 googleapi.Expand(req.URL, map[string]string{
10861 "consentStore": c.consentStore,
10862 })
10863 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10864 }
10865
10866
10867
10868
10869
10870
10871
10872 func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Do(opts ...googleapi.CallOption) (*CheckDataAccessResponse, error) {
10873 gensupport.SetOptions(c.urlParams_, opts...)
10874 res, err := c.doRequest("json")
10875 if res != nil && res.StatusCode == http.StatusNotModified {
10876 if res.Body != nil {
10877 res.Body.Close()
10878 }
10879 return nil, gensupport.WrapError(&googleapi.Error{
10880 Code: res.StatusCode,
10881 Header: res.Header,
10882 })
10883 }
10884 if err != nil {
10885 return nil, err
10886 }
10887 defer googleapi.CloseBody(res)
10888 if err := googleapi.CheckResponse(res); err != nil {
10889 return nil, gensupport.WrapError(err)
10890 }
10891 ret := &CheckDataAccessResponse{
10892 ServerResponse: googleapi.ServerResponse{
10893 Header: res.Header,
10894 HTTPStatusCode: res.StatusCode,
10895 },
10896 }
10897 target := &ret
10898 if err := gensupport.DecodeResponse(target, res); err != nil {
10899 return nil, err
10900 }
10901 return ret, nil
10902 }
10903
10904 type ProjectsLocationsDatasetsConsentStoresCreateCall struct {
10905 s *Service
10906 parent string
10907 consentstore *ConsentStore
10908 urlParams_ gensupport.URLParams
10909 ctx_ context.Context
10910 header_ http.Header
10911 }
10912
10913
10914
10915
10916
10917
10918 func (r *ProjectsLocationsDatasetsConsentStoresService) Create(parent string, consentstore *ConsentStore) *ProjectsLocationsDatasetsConsentStoresCreateCall {
10919 c := &ProjectsLocationsDatasetsConsentStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10920 c.parent = parent
10921 c.consentstore = consentstore
10922 return c
10923 }
10924
10925
10926
10927
10928 func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) ConsentStoreId(consentStoreId string) *ProjectsLocationsDatasetsConsentStoresCreateCall {
10929 c.urlParams_.Set("consentStoreId", consentStoreId)
10930 return c
10931 }
10932
10933
10934
10935
10936 func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresCreateCall {
10937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10938 return c
10939 }
10940
10941
10942 func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresCreateCall {
10943 c.ctx_ = ctx
10944 return c
10945 }
10946
10947
10948
10949 func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Header() http.Header {
10950 if c.header_ == nil {
10951 c.header_ = make(http.Header)
10952 }
10953 return c.header_
10954 }
10955
10956 func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) doRequest(alt string) (*http.Response, error) {
10957 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10958 var body io.Reader = nil
10959 body, err := googleapi.WithoutDataWrapper.JSONReader(c.consentstore)
10960 if err != nil {
10961 return nil, err
10962 }
10963 c.urlParams_.Set("alt", alt)
10964 c.urlParams_.Set("prettyPrint", "false")
10965 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentStores")
10966 urls += "?" + c.urlParams_.Encode()
10967 req, err := http.NewRequest("POST", urls, body)
10968 if err != nil {
10969 return nil, err
10970 }
10971 req.Header = reqHeaders
10972 googleapi.Expand(req.URL, map[string]string{
10973 "parent": c.parent,
10974 })
10975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10976 }
10977
10978
10979
10980
10981
10982
10983 func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Do(opts ...googleapi.CallOption) (*ConsentStore, error) {
10984 gensupport.SetOptions(c.urlParams_, opts...)
10985 res, err := c.doRequest("json")
10986 if res != nil && res.StatusCode == http.StatusNotModified {
10987 if res.Body != nil {
10988 res.Body.Close()
10989 }
10990 return nil, gensupport.WrapError(&googleapi.Error{
10991 Code: res.StatusCode,
10992 Header: res.Header,
10993 })
10994 }
10995 if err != nil {
10996 return nil, err
10997 }
10998 defer googleapi.CloseBody(res)
10999 if err := googleapi.CheckResponse(res); err != nil {
11000 return nil, gensupport.WrapError(err)
11001 }
11002 ret := &ConsentStore{
11003 ServerResponse: googleapi.ServerResponse{
11004 Header: res.Header,
11005 HTTPStatusCode: res.StatusCode,
11006 },
11007 }
11008 target := &ret
11009 if err := gensupport.DecodeResponse(target, res); err != nil {
11010 return nil, err
11011 }
11012 return ret, nil
11013 }
11014
11015 type ProjectsLocationsDatasetsConsentStoresDeleteCall struct {
11016 s *Service
11017 name string
11018 urlParams_ gensupport.URLParams
11019 ctx_ context.Context
11020 header_ http.Header
11021 }
11022
11023
11024
11025
11026
11027 func (r *ProjectsLocationsDatasetsConsentStoresService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresDeleteCall {
11028 c := &ProjectsLocationsDatasetsConsentStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11029 c.name = name
11030 return c
11031 }
11032
11033
11034
11035
11036 func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresDeleteCall {
11037 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11038 return c
11039 }
11040
11041
11042 func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresDeleteCall {
11043 c.ctx_ = ctx
11044 return c
11045 }
11046
11047
11048
11049 func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Header() http.Header {
11050 if c.header_ == nil {
11051 c.header_ = make(http.Header)
11052 }
11053 return c.header_
11054 }
11055
11056 func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
11057 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11058 var body io.Reader = nil
11059 c.urlParams_.Set("alt", alt)
11060 c.urlParams_.Set("prettyPrint", "false")
11061 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11062 urls += "?" + c.urlParams_.Encode()
11063 req, err := http.NewRequest("DELETE", urls, body)
11064 if err != nil {
11065 return nil, err
11066 }
11067 req.Header = reqHeaders
11068 googleapi.Expand(req.URL, map[string]string{
11069 "name": c.name,
11070 })
11071 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11072 }
11073
11074
11075
11076
11077
11078
11079 func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
11080 gensupport.SetOptions(c.urlParams_, opts...)
11081 res, err := c.doRequest("json")
11082 if res != nil && res.StatusCode == http.StatusNotModified {
11083 if res.Body != nil {
11084 res.Body.Close()
11085 }
11086 return nil, gensupport.WrapError(&googleapi.Error{
11087 Code: res.StatusCode,
11088 Header: res.Header,
11089 })
11090 }
11091 if err != nil {
11092 return nil, err
11093 }
11094 defer googleapi.CloseBody(res)
11095 if err := googleapi.CheckResponse(res); err != nil {
11096 return nil, gensupport.WrapError(err)
11097 }
11098 ret := &Empty{
11099 ServerResponse: googleapi.ServerResponse{
11100 Header: res.Header,
11101 HTTPStatusCode: res.StatusCode,
11102 },
11103 }
11104 target := &ret
11105 if err := gensupport.DecodeResponse(target, res); err != nil {
11106 return nil, err
11107 }
11108 return ret, nil
11109 }
11110
11111 type ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall struct {
11112 s *Service
11113 consentStore string
11114 evaluateuserconsentsrequest *EvaluateUserConsentsRequest
11115 urlParams_ gensupport.URLParams
11116 ctx_ context.Context
11117 header_ http.Header
11118 }
11119
11120
11121
11122
11123
11124
11125
11126
11127 func (r *ProjectsLocationsDatasetsConsentStoresService) EvaluateUserConsents(consentStore string, evaluateuserconsentsrequest *EvaluateUserConsentsRequest) *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall {
11128 c := &ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11129 c.consentStore = consentStore
11130 c.evaluateuserconsentsrequest = evaluateuserconsentsrequest
11131 return c
11132 }
11133
11134
11135
11136
11137 func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall {
11138 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11139 return c
11140 }
11141
11142
11143 func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall {
11144 c.ctx_ = ctx
11145 return c
11146 }
11147
11148
11149
11150 func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Header() http.Header {
11151 if c.header_ == nil {
11152 c.header_ = make(http.Header)
11153 }
11154 return c.header_
11155 }
11156
11157 func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) doRequest(alt string) (*http.Response, error) {
11158 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11159 var body io.Reader = nil
11160 body, err := googleapi.WithoutDataWrapper.JSONReader(c.evaluateuserconsentsrequest)
11161 if err != nil {
11162 return nil, err
11163 }
11164 c.urlParams_.Set("alt", alt)
11165 c.urlParams_.Set("prettyPrint", "false")
11166 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+consentStore}:evaluateUserConsents")
11167 urls += "?" + c.urlParams_.Encode()
11168 req, err := http.NewRequest("POST", urls, body)
11169 if err != nil {
11170 return nil, err
11171 }
11172 req.Header = reqHeaders
11173 googleapi.Expand(req.URL, map[string]string{
11174 "consentStore": c.consentStore,
11175 })
11176 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11177 }
11178
11179
11180
11181
11182
11183
11184
11185 func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Do(opts ...googleapi.CallOption) (*EvaluateUserConsentsResponse, error) {
11186 gensupport.SetOptions(c.urlParams_, opts...)
11187 res, err := c.doRequest("json")
11188 if res != nil && res.StatusCode == http.StatusNotModified {
11189 if res.Body != nil {
11190 res.Body.Close()
11191 }
11192 return nil, gensupport.WrapError(&googleapi.Error{
11193 Code: res.StatusCode,
11194 Header: res.Header,
11195 })
11196 }
11197 if err != nil {
11198 return nil, err
11199 }
11200 defer googleapi.CloseBody(res)
11201 if err := googleapi.CheckResponse(res); err != nil {
11202 return nil, gensupport.WrapError(err)
11203 }
11204 ret := &EvaluateUserConsentsResponse{
11205 ServerResponse: googleapi.ServerResponse{
11206 Header: res.Header,
11207 HTTPStatusCode: res.StatusCode,
11208 },
11209 }
11210 target := &ret
11211 if err := gensupport.DecodeResponse(target, res); err != nil {
11212 return nil, err
11213 }
11214 return ret, nil
11215 }
11216
11217
11218
11219
11220 func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Pages(ctx context.Context, f func(*EvaluateUserConsentsResponse) error) error {
11221 c.ctx_ = ctx
11222 defer func(pt string) { c.evaluateuserconsentsrequest.PageToken = pt }(c.evaluateuserconsentsrequest.PageToken)
11223 for {
11224 x, err := c.Do()
11225 if err != nil {
11226 return err
11227 }
11228 if err := f(x); err != nil {
11229 return err
11230 }
11231 if x.NextPageToken == "" {
11232 return nil
11233 }
11234 c.evaluateuserconsentsrequest.PageToken = x.NextPageToken
11235 }
11236 }
11237
11238 type ProjectsLocationsDatasetsConsentStoresGetCall struct {
11239 s *Service
11240 name string
11241 urlParams_ gensupport.URLParams
11242 ifNoneMatch_ string
11243 ctx_ context.Context
11244 header_ http.Header
11245 }
11246
11247
11248
11249
11250 func (r *ProjectsLocationsDatasetsConsentStoresService) Get(name string) *ProjectsLocationsDatasetsConsentStoresGetCall {
11251 c := &ProjectsLocationsDatasetsConsentStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11252 c.name = name
11253 return c
11254 }
11255
11256
11257
11258
11259 func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresGetCall {
11260 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11261 return c
11262 }
11263
11264
11265
11266
11267 func (c *ProjectsLocationsDatasetsConsentStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresGetCall {
11268 c.ifNoneMatch_ = entityTag
11269 return c
11270 }
11271
11272
11273 func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresGetCall {
11274 c.ctx_ = ctx
11275 return c
11276 }
11277
11278
11279
11280 func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Header() http.Header {
11281 if c.header_ == nil {
11282 c.header_ = make(http.Header)
11283 }
11284 return c.header_
11285 }
11286
11287 func (c *ProjectsLocationsDatasetsConsentStoresGetCall) doRequest(alt string) (*http.Response, error) {
11288 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11289 if c.ifNoneMatch_ != "" {
11290 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11291 }
11292 var body io.Reader = nil
11293 c.urlParams_.Set("alt", alt)
11294 c.urlParams_.Set("prettyPrint", "false")
11295 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11296 urls += "?" + c.urlParams_.Encode()
11297 req, err := http.NewRequest("GET", urls, body)
11298 if err != nil {
11299 return nil, err
11300 }
11301 req.Header = reqHeaders
11302 googleapi.Expand(req.URL, map[string]string{
11303 "name": c.name,
11304 })
11305 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11306 }
11307
11308
11309
11310
11311
11312
11313 func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Do(opts ...googleapi.CallOption) (*ConsentStore, error) {
11314 gensupport.SetOptions(c.urlParams_, opts...)
11315 res, err := c.doRequest("json")
11316 if res != nil && res.StatusCode == http.StatusNotModified {
11317 if res.Body != nil {
11318 res.Body.Close()
11319 }
11320 return nil, gensupport.WrapError(&googleapi.Error{
11321 Code: res.StatusCode,
11322 Header: res.Header,
11323 })
11324 }
11325 if err != nil {
11326 return nil, err
11327 }
11328 defer googleapi.CloseBody(res)
11329 if err := googleapi.CheckResponse(res); err != nil {
11330 return nil, gensupport.WrapError(err)
11331 }
11332 ret := &ConsentStore{
11333 ServerResponse: googleapi.ServerResponse{
11334 Header: res.Header,
11335 HTTPStatusCode: res.StatusCode,
11336 },
11337 }
11338 target := &ret
11339 if err := gensupport.DecodeResponse(target, res); err != nil {
11340 return nil, err
11341 }
11342 return ret, nil
11343 }
11344
11345 type ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall struct {
11346 s *Service
11347 resource string
11348 urlParams_ gensupport.URLParams
11349 ifNoneMatch_ string
11350 ctx_ context.Context
11351 header_ http.Header
11352 }
11353
11354
11355
11356
11357
11358
11359
11360 func (r *ProjectsLocationsDatasetsConsentStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
11361 c := &ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11362 c.resource = resource
11363 return c
11364 }
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
11379 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
11380 return c
11381 }
11382
11383
11384
11385
11386 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
11387 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11388 return c
11389 }
11390
11391
11392
11393
11394 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
11395 c.ifNoneMatch_ = entityTag
11396 return c
11397 }
11398
11399
11400 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
11401 c.ctx_ = ctx
11402 return c
11403 }
11404
11405
11406
11407 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Header() http.Header {
11408 if c.header_ == nil {
11409 c.header_ = make(http.Header)
11410 }
11411 return c.header_
11412 }
11413
11414 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
11415 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11416 if c.ifNoneMatch_ != "" {
11417 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11418 }
11419 var body io.Reader = nil
11420 c.urlParams_.Set("alt", alt)
11421 c.urlParams_.Set("prettyPrint", "false")
11422 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
11423 urls += "?" + c.urlParams_.Encode()
11424 req, err := http.NewRequest("GET", urls, body)
11425 if err != nil {
11426 return nil, err
11427 }
11428 req.Header = reqHeaders
11429 googleapi.Expand(req.URL, map[string]string{
11430 "resource": c.resource,
11431 })
11432 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11433 }
11434
11435
11436
11437
11438
11439
11440 func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
11441 gensupport.SetOptions(c.urlParams_, opts...)
11442 res, err := c.doRequest("json")
11443 if res != nil && res.StatusCode == http.StatusNotModified {
11444 if res.Body != nil {
11445 res.Body.Close()
11446 }
11447 return nil, gensupport.WrapError(&googleapi.Error{
11448 Code: res.StatusCode,
11449 Header: res.Header,
11450 })
11451 }
11452 if err != nil {
11453 return nil, err
11454 }
11455 defer googleapi.CloseBody(res)
11456 if err := googleapi.CheckResponse(res); err != nil {
11457 return nil, gensupport.WrapError(err)
11458 }
11459 ret := &Policy{
11460 ServerResponse: googleapi.ServerResponse{
11461 Header: res.Header,
11462 HTTPStatusCode: res.StatusCode,
11463 },
11464 }
11465 target := &ret
11466 if err := gensupport.DecodeResponse(target, res); err != nil {
11467 return nil, err
11468 }
11469 return ret, nil
11470 }
11471
11472 type ProjectsLocationsDatasetsConsentStoresListCall struct {
11473 s *Service
11474 parent string
11475 urlParams_ gensupport.URLParams
11476 ifNoneMatch_ string
11477 ctx_ context.Context
11478 header_ http.Header
11479 }
11480
11481
11482
11483
11484 func (r *ProjectsLocationsDatasetsConsentStoresService) List(parent string) *ProjectsLocationsDatasetsConsentStoresListCall {
11485 c := &ProjectsLocationsDatasetsConsentStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11486 c.parent = parent
11487 return c
11488 }
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514 func (c *ProjectsLocationsDatasetsConsentStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresListCall {
11515 c.urlParams_.Set("filter", filter)
11516 return c
11517 }
11518
11519
11520
11521
11522 func (c *ProjectsLocationsDatasetsConsentStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresListCall {
11523 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11524 return c
11525 }
11526
11527
11528
11529 func (c *ProjectsLocationsDatasetsConsentStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresListCall {
11530 c.urlParams_.Set("pageToken", pageToken)
11531 return c
11532 }
11533
11534
11535
11536
11537 func (c *ProjectsLocationsDatasetsConsentStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresListCall {
11538 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11539 return c
11540 }
11541
11542
11543
11544
11545 func (c *ProjectsLocationsDatasetsConsentStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresListCall {
11546 c.ifNoneMatch_ = entityTag
11547 return c
11548 }
11549
11550
11551 func (c *ProjectsLocationsDatasetsConsentStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresListCall {
11552 c.ctx_ = ctx
11553 return c
11554 }
11555
11556
11557
11558 func (c *ProjectsLocationsDatasetsConsentStoresListCall) Header() http.Header {
11559 if c.header_ == nil {
11560 c.header_ = make(http.Header)
11561 }
11562 return c.header_
11563 }
11564
11565 func (c *ProjectsLocationsDatasetsConsentStoresListCall) doRequest(alt string) (*http.Response, error) {
11566 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11567 if c.ifNoneMatch_ != "" {
11568 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11569 }
11570 var body io.Reader = nil
11571 c.urlParams_.Set("alt", alt)
11572 c.urlParams_.Set("prettyPrint", "false")
11573 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentStores")
11574 urls += "?" + c.urlParams_.Encode()
11575 req, err := http.NewRequest("GET", urls, body)
11576 if err != nil {
11577 return nil, err
11578 }
11579 req.Header = reqHeaders
11580 googleapi.Expand(req.URL, map[string]string{
11581 "parent": c.parent,
11582 })
11583 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11584 }
11585
11586
11587
11588
11589
11590
11591
11592 func (c *ProjectsLocationsDatasetsConsentStoresListCall) Do(opts ...googleapi.CallOption) (*ListConsentStoresResponse, error) {
11593 gensupport.SetOptions(c.urlParams_, opts...)
11594 res, err := c.doRequest("json")
11595 if res != nil && res.StatusCode == http.StatusNotModified {
11596 if res.Body != nil {
11597 res.Body.Close()
11598 }
11599 return nil, gensupport.WrapError(&googleapi.Error{
11600 Code: res.StatusCode,
11601 Header: res.Header,
11602 })
11603 }
11604 if err != nil {
11605 return nil, err
11606 }
11607 defer googleapi.CloseBody(res)
11608 if err := googleapi.CheckResponse(res); err != nil {
11609 return nil, gensupport.WrapError(err)
11610 }
11611 ret := &ListConsentStoresResponse{
11612 ServerResponse: googleapi.ServerResponse{
11613 Header: res.Header,
11614 HTTPStatusCode: res.StatusCode,
11615 },
11616 }
11617 target := &ret
11618 if err := gensupport.DecodeResponse(target, res); err != nil {
11619 return nil, err
11620 }
11621 return ret, nil
11622 }
11623
11624
11625
11626
11627 func (c *ProjectsLocationsDatasetsConsentStoresListCall) Pages(ctx context.Context, f func(*ListConsentStoresResponse) error) error {
11628 c.ctx_ = ctx
11629 defer c.PageToken(c.urlParams_.Get("pageToken"))
11630 for {
11631 x, err := c.Do()
11632 if err != nil {
11633 return err
11634 }
11635 if err := f(x); err != nil {
11636 return err
11637 }
11638 if x.NextPageToken == "" {
11639 return nil
11640 }
11641 c.PageToken(x.NextPageToken)
11642 }
11643 }
11644
11645 type ProjectsLocationsDatasetsConsentStoresPatchCall struct {
11646 s *Service
11647 name string
11648 consentstore *ConsentStore
11649 urlParams_ gensupport.URLParams
11650 ctx_ context.Context
11651 header_ http.Header
11652 }
11653
11654
11655
11656
11657
11658
11659 func (r *ProjectsLocationsDatasetsConsentStoresService) Patch(name string, consentstore *ConsentStore) *ProjectsLocationsDatasetsConsentStoresPatchCall {
11660 c := &ProjectsLocationsDatasetsConsentStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11661 c.name = name
11662 c.consentstore = consentstore
11663 return c
11664 }
11665
11666
11667
11668
11669
11670
11671 func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresPatchCall {
11672 c.urlParams_.Set("updateMask", updateMask)
11673 return c
11674 }
11675
11676
11677
11678
11679 func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresPatchCall {
11680 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11681 return c
11682 }
11683
11684
11685 func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresPatchCall {
11686 c.ctx_ = ctx
11687 return c
11688 }
11689
11690
11691
11692 func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Header() http.Header {
11693 if c.header_ == nil {
11694 c.header_ = make(http.Header)
11695 }
11696 return c.header_
11697 }
11698
11699 func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) doRequest(alt string) (*http.Response, error) {
11700 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11701 var body io.Reader = nil
11702 body, err := googleapi.WithoutDataWrapper.JSONReader(c.consentstore)
11703 if err != nil {
11704 return nil, err
11705 }
11706 c.urlParams_.Set("alt", alt)
11707 c.urlParams_.Set("prettyPrint", "false")
11708 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11709 urls += "?" + c.urlParams_.Encode()
11710 req, err := http.NewRequest("PATCH", urls, body)
11711 if err != nil {
11712 return nil, err
11713 }
11714 req.Header = reqHeaders
11715 googleapi.Expand(req.URL, map[string]string{
11716 "name": c.name,
11717 })
11718 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11719 }
11720
11721
11722
11723
11724
11725
11726 func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Do(opts ...googleapi.CallOption) (*ConsentStore, error) {
11727 gensupport.SetOptions(c.urlParams_, opts...)
11728 res, err := c.doRequest("json")
11729 if res != nil && res.StatusCode == http.StatusNotModified {
11730 if res.Body != nil {
11731 res.Body.Close()
11732 }
11733 return nil, gensupport.WrapError(&googleapi.Error{
11734 Code: res.StatusCode,
11735 Header: res.Header,
11736 })
11737 }
11738 if err != nil {
11739 return nil, err
11740 }
11741 defer googleapi.CloseBody(res)
11742 if err := googleapi.CheckResponse(res); err != nil {
11743 return nil, gensupport.WrapError(err)
11744 }
11745 ret := &ConsentStore{
11746 ServerResponse: googleapi.ServerResponse{
11747 Header: res.Header,
11748 HTTPStatusCode: res.StatusCode,
11749 },
11750 }
11751 target := &ret
11752 if err := gensupport.DecodeResponse(target, res); err != nil {
11753 return nil, err
11754 }
11755 return ret, nil
11756 }
11757
11758 type ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall struct {
11759 s *Service
11760 consentStore string
11761 queryaccessibledatarequest *QueryAccessibleDataRequest
11762 urlParams_ gensupport.URLParams
11763 ctx_ context.Context
11764 header_ http.Header
11765 }
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796 func (r *ProjectsLocationsDatasetsConsentStoresService) QueryAccessibleData(consentStore string, queryaccessibledatarequest *QueryAccessibleDataRequest) *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall {
11797 c := &ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11798 c.consentStore = consentStore
11799 c.queryaccessibledatarequest = queryaccessibledatarequest
11800 return c
11801 }
11802
11803
11804
11805
11806 func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall {
11807 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11808 return c
11809 }
11810
11811
11812 func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall {
11813 c.ctx_ = ctx
11814 return c
11815 }
11816
11817
11818
11819 func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Header() http.Header {
11820 if c.header_ == nil {
11821 c.header_ = make(http.Header)
11822 }
11823 return c.header_
11824 }
11825
11826 func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) doRequest(alt string) (*http.Response, error) {
11827 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11828 var body io.Reader = nil
11829 body, err := googleapi.WithoutDataWrapper.JSONReader(c.queryaccessibledatarequest)
11830 if err != nil {
11831 return nil, err
11832 }
11833 c.urlParams_.Set("alt", alt)
11834 c.urlParams_.Set("prettyPrint", "false")
11835 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+consentStore}:queryAccessibleData")
11836 urls += "?" + c.urlParams_.Encode()
11837 req, err := http.NewRequest("POST", urls, body)
11838 if err != nil {
11839 return nil, err
11840 }
11841 req.Header = reqHeaders
11842 googleapi.Expand(req.URL, map[string]string{
11843 "consentStore": c.consentStore,
11844 })
11845 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11846 }
11847
11848
11849
11850
11851
11852
11853 func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11854 gensupport.SetOptions(c.urlParams_, opts...)
11855 res, err := c.doRequest("json")
11856 if res != nil && res.StatusCode == http.StatusNotModified {
11857 if res.Body != nil {
11858 res.Body.Close()
11859 }
11860 return nil, gensupport.WrapError(&googleapi.Error{
11861 Code: res.StatusCode,
11862 Header: res.Header,
11863 })
11864 }
11865 if err != nil {
11866 return nil, err
11867 }
11868 defer googleapi.CloseBody(res)
11869 if err := googleapi.CheckResponse(res); err != nil {
11870 return nil, gensupport.WrapError(err)
11871 }
11872 ret := &Operation{
11873 ServerResponse: googleapi.ServerResponse{
11874 Header: res.Header,
11875 HTTPStatusCode: res.StatusCode,
11876 },
11877 }
11878 target := &ret
11879 if err := gensupport.DecodeResponse(target, res); err != nil {
11880 return nil, err
11881 }
11882 return ret, nil
11883 }
11884
11885 type ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall struct {
11886 s *Service
11887 resource string
11888 setiampolicyrequest *SetIamPolicyRequest
11889 urlParams_ gensupport.URLParams
11890 ctx_ context.Context
11891 header_ http.Header
11892 }
11893
11894
11895
11896
11897
11898
11899
11900
11901 func (r *ProjectsLocationsDatasetsConsentStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall {
11902 c := &ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11903 c.resource = resource
11904 c.setiampolicyrequest = setiampolicyrequest
11905 return c
11906 }
11907
11908
11909
11910
11911 func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall {
11912 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11913 return c
11914 }
11915
11916
11917 func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall {
11918 c.ctx_ = ctx
11919 return c
11920 }
11921
11922
11923
11924 func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Header() http.Header {
11925 if c.header_ == nil {
11926 c.header_ = make(http.Header)
11927 }
11928 return c.header_
11929 }
11930
11931 func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
11932 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11933 var body io.Reader = nil
11934 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
11935 if err != nil {
11936 return nil, err
11937 }
11938 c.urlParams_.Set("alt", alt)
11939 c.urlParams_.Set("prettyPrint", "false")
11940 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
11941 urls += "?" + c.urlParams_.Encode()
11942 req, err := http.NewRequest("POST", urls, body)
11943 if err != nil {
11944 return nil, err
11945 }
11946 req.Header = reqHeaders
11947 googleapi.Expand(req.URL, map[string]string{
11948 "resource": c.resource,
11949 })
11950 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11951 }
11952
11953
11954
11955
11956
11957
11958 func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
11959 gensupport.SetOptions(c.urlParams_, opts...)
11960 res, err := c.doRequest("json")
11961 if res != nil && res.StatusCode == http.StatusNotModified {
11962 if res.Body != nil {
11963 res.Body.Close()
11964 }
11965 return nil, gensupport.WrapError(&googleapi.Error{
11966 Code: res.StatusCode,
11967 Header: res.Header,
11968 })
11969 }
11970 if err != nil {
11971 return nil, err
11972 }
11973 defer googleapi.CloseBody(res)
11974 if err := googleapi.CheckResponse(res); err != nil {
11975 return nil, gensupport.WrapError(err)
11976 }
11977 ret := &Policy{
11978 ServerResponse: googleapi.ServerResponse{
11979 Header: res.Header,
11980 HTTPStatusCode: res.StatusCode,
11981 },
11982 }
11983 target := &ret
11984 if err := gensupport.DecodeResponse(target, res); err != nil {
11985 return nil, err
11986 }
11987 return ret, nil
11988 }
11989
11990 type ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall struct {
11991 s *Service
11992 resource string
11993 testiampermissionsrequest *TestIamPermissionsRequest
11994 urlParams_ gensupport.URLParams
11995 ctx_ context.Context
11996 header_ http.Header
11997 }
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009 func (r *ProjectsLocationsDatasetsConsentStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall {
12010 c := &ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12011 c.resource = resource
12012 c.testiampermissionsrequest = testiampermissionsrequest
12013 return c
12014 }
12015
12016
12017
12018
12019 func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall {
12020 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12021 return c
12022 }
12023
12024
12025 func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall {
12026 c.ctx_ = ctx
12027 return c
12028 }
12029
12030
12031
12032 func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Header() http.Header {
12033 if c.header_ == nil {
12034 c.header_ = make(http.Header)
12035 }
12036 return c.header_
12037 }
12038
12039 func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
12040 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12041 var body io.Reader = nil
12042 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
12043 if err != nil {
12044 return nil, err
12045 }
12046 c.urlParams_.Set("alt", alt)
12047 c.urlParams_.Set("prettyPrint", "false")
12048 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
12049 urls += "?" + c.urlParams_.Encode()
12050 req, err := http.NewRequest("POST", urls, body)
12051 if err != nil {
12052 return nil, err
12053 }
12054 req.Header = reqHeaders
12055 googleapi.Expand(req.URL, map[string]string{
12056 "resource": c.resource,
12057 })
12058 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12059 }
12060
12061
12062
12063
12064
12065
12066
12067 func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
12068 gensupport.SetOptions(c.urlParams_, opts...)
12069 res, err := c.doRequest("json")
12070 if res != nil && res.StatusCode == http.StatusNotModified {
12071 if res.Body != nil {
12072 res.Body.Close()
12073 }
12074 return nil, gensupport.WrapError(&googleapi.Error{
12075 Code: res.StatusCode,
12076 Header: res.Header,
12077 })
12078 }
12079 if err != nil {
12080 return nil, err
12081 }
12082 defer googleapi.CloseBody(res)
12083 if err := googleapi.CheckResponse(res); err != nil {
12084 return nil, gensupport.WrapError(err)
12085 }
12086 ret := &TestIamPermissionsResponse{
12087 ServerResponse: googleapi.ServerResponse{
12088 Header: res.Header,
12089 HTTPStatusCode: res.StatusCode,
12090 },
12091 }
12092 target := &ret
12093 if err := gensupport.DecodeResponse(target, res); err != nil {
12094 return nil, err
12095 }
12096 return ret, nil
12097 }
12098
12099 type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall struct {
12100 s *Service
12101 parent string
12102 attributedefinition *AttributeDefinition
12103 urlParams_ gensupport.URLParams
12104 ctx_ context.Context
12105 header_ http.Header
12106 }
12107
12108
12109
12110
12111
12112 func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Create(parent string, attributedefinition *AttributeDefinition) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
12113 c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12114 c.parent = parent
12115 c.attributedefinition = attributedefinition
12116 return c
12117 }
12118
12119
12120
12121
12122
12123
12124 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) AttributeDefinitionId(attributeDefinitionId string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
12125 c.urlParams_.Set("attributeDefinitionId", attributeDefinitionId)
12126 return c
12127 }
12128
12129
12130
12131
12132 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
12133 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12134 return c
12135 }
12136
12137
12138 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
12139 c.ctx_ = ctx
12140 return c
12141 }
12142
12143
12144
12145 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Header() http.Header {
12146 if c.header_ == nil {
12147 c.header_ = make(http.Header)
12148 }
12149 return c.header_
12150 }
12151
12152 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) doRequest(alt string) (*http.Response, error) {
12153 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12154 var body io.Reader = nil
12155 body, err := googleapi.WithoutDataWrapper.JSONReader(c.attributedefinition)
12156 if err != nil {
12157 return nil, err
12158 }
12159 c.urlParams_.Set("alt", alt)
12160 c.urlParams_.Set("prettyPrint", "false")
12161 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/attributeDefinitions")
12162 urls += "?" + c.urlParams_.Encode()
12163 req, err := http.NewRequest("POST", urls, body)
12164 if err != nil {
12165 return nil, err
12166 }
12167 req.Header = reqHeaders
12168 googleapi.Expand(req.URL, map[string]string{
12169 "parent": c.parent,
12170 })
12171 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12172 }
12173
12174
12175
12176
12177
12178
12179
12180 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Do(opts ...googleapi.CallOption) (*AttributeDefinition, error) {
12181 gensupport.SetOptions(c.urlParams_, opts...)
12182 res, err := c.doRequest("json")
12183 if res != nil && res.StatusCode == http.StatusNotModified {
12184 if res.Body != nil {
12185 res.Body.Close()
12186 }
12187 return nil, gensupport.WrapError(&googleapi.Error{
12188 Code: res.StatusCode,
12189 Header: res.Header,
12190 })
12191 }
12192 if err != nil {
12193 return nil, err
12194 }
12195 defer googleapi.CloseBody(res)
12196 if err := googleapi.CheckResponse(res); err != nil {
12197 return nil, gensupport.WrapError(err)
12198 }
12199 ret := &AttributeDefinition{
12200 ServerResponse: googleapi.ServerResponse{
12201 Header: res.Header,
12202 HTTPStatusCode: res.StatusCode,
12203 },
12204 }
12205 target := &ret
12206 if err := gensupport.DecodeResponse(target, res); err != nil {
12207 return nil, err
12208 }
12209 return ret, nil
12210 }
12211
12212 type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall struct {
12213 s *Service
12214 name string
12215 urlParams_ gensupport.URLParams
12216 ctx_ context.Context
12217 header_ http.Header
12218 }
12219
12220
12221
12222
12223
12224
12225
12226
12227 func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall {
12228 c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12229 c.name = name
12230 return c
12231 }
12232
12233
12234
12235
12236 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall {
12237 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12238 return c
12239 }
12240
12241
12242 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall {
12243 c.ctx_ = ctx
12244 return c
12245 }
12246
12247
12248
12249 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Header() http.Header {
12250 if c.header_ == nil {
12251 c.header_ = make(http.Header)
12252 }
12253 return c.header_
12254 }
12255
12256 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) doRequest(alt string) (*http.Response, error) {
12257 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12258 var body io.Reader = nil
12259 c.urlParams_.Set("alt", alt)
12260 c.urlParams_.Set("prettyPrint", "false")
12261 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
12262 urls += "?" + c.urlParams_.Encode()
12263 req, err := http.NewRequest("DELETE", urls, body)
12264 if err != nil {
12265 return nil, err
12266 }
12267 req.Header = reqHeaders
12268 googleapi.Expand(req.URL, map[string]string{
12269 "name": c.name,
12270 })
12271 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12272 }
12273
12274
12275
12276
12277
12278
12279 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12280 gensupport.SetOptions(c.urlParams_, opts...)
12281 res, err := c.doRequest("json")
12282 if res != nil && res.StatusCode == http.StatusNotModified {
12283 if res.Body != nil {
12284 res.Body.Close()
12285 }
12286 return nil, gensupport.WrapError(&googleapi.Error{
12287 Code: res.StatusCode,
12288 Header: res.Header,
12289 })
12290 }
12291 if err != nil {
12292 return nil, err
12293 }
12294 defer googleapi.CloseBody(res)
12295 if err := googleapi.CheckResponse(res); err != nil {
12296 return nil, gensupport.WrapError(err)
12297 }
12298 ret := &Empty{
12299 ServerResponse: googleapi.ServerResponse{
12300 Header: res.Header,
12301 HTTPStatusCode: res.StatusCode,
12302 },
12303 }
12304 target := &ret
12305 if err := gensupport.DecodeResponse(target, res); err != nil {
12306 return nil, err
12307 }
12308 return ret, nil
12309 }
12310
12311 type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall struct {
12312 s *Service
12313 name string
12314 urlParams_ gensupport.URLParams
12315 ifNoneMatch_ string
12316 ctx_ context.Context
12317 header_ http.Header
12318 }
12319
12320
12321
12322
12323 func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
12324 c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12325 c.name = name
12326 return c
12327 }
12328
12329
12330
12331
12332 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
12333 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12334 return c
12335 }
12336
12337
12338
12339
12340 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
12341 c.ifNoneMatch_ = entityTag
12342 return c
12343 }
12344
12345
12346 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
12347 c.ctx_ = ctx
12348 return c
12349 }
12350
12351
12352
12353 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Header() http.Header {
12354 if c.header_ == nil {
12355 c.header_ = make(http.Header)
12356 }
12357 return c.header_
12358 }
12359
12360 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) doRequest(alt string) (*http.Response, error) {
12361 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12362 if c.ifNoneMatch_ != "" {
12363 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12364 }
12365 var body io.Reader = nil
12366 c.urlParams_.Set("alt", alt)
12367 c.urlParams_.Set("prettyPrint", "false")
12368 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
12369 urls += "?" + c.urlParams_.Encode()
12370 req, err := http.NewRequest("GET", urls, body)
12371 if err != nil {
12372 return nil, err
12373 }
12374 req.Header = reqHeaders
12375 googleapi.Expand(req.URL, map[string]string{
12376 "name": c.name,
12377 })
12378 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12379 }
12380
12381
12382
12383
12384
12385
12386
12387 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Do(opts ...googleapi.CallOption) (*AttributeDefinition, error) {
12388 gensupport.SetOptions(c.urlParams_, opts...)
12389 res, err := c.doRequest("json")
12390 if res != nil && res.StatusCode == http.StatusNotModified {
12391 if res.Body != nil {
12392 res.Body.Close()
12393 }
12394 return nil, gensupport.WrapError(&googleapi.Error{
12395 Code: res.StatusCode,
12396 Header: res.Header,
12397 })
12398 }
12399 if err != nil {
12400 return nil, err
12401 }
12402 defer googleapi.CloseBody(res)
12403 if err := googleapi.CheckResponse(res); err != nil {
12404 return nil, gensupport.WrapError(err)
12405 }
12406 ret := &AttributeDefinition{
12407 ServerResponse: googleapi.ServerResponse{
12408 Header: res.Header,
12409 HTTPStatusCode: res.StatusCode,
12410 },
12411 }
12412 target := &ret
12413 if err := gensupport.DecodeResponse(target, res); err != nil {
12414 return nil, err
12415 }
12416 return ret, nil
12417 }
12418
12419 type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall struct {
12420 s *Service
12421 parent string
12422 urlParams_ gensupport.URLParams
12423 ifNoneMatch_ string
12424 ctx_ context.Context
12425 header_ http.Header
12426 }
12427
12428
12429
12430
12431 func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12432 c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12433 c.parent = parent
12434 return c
12435 }
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12462 c.urlParams_.Set("filter", filter)
12463 return c
12464 }
12465
12466
12467
12468
12469 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12470 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12471 return c
12472 }
12473
12474
12475
12476 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12477 c.urlParams_.Set("pageToken", pageToken)
12478 return c
12479 }
12480
12481
12482
12483
12484 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12485 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12486 return c
12487 }
12488
12489
12490
12491
12492 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12493 c.ifNoneMatch_ = entityTag
12494 return c
12495 }
12496
12497
12498 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
12499 c.ctx_ = ctx
12500 return c
12501 }
12502
12503
12504
12505 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Header() http.Header {
12506 if c.header_ == nil {
12507 c.header_ = make(http.Header)
12508 }
12509 return c.header_
12510 }
12511
12512 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) doRequest(alt string) (*http.Response, error) {
12513 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12514 if c.ifNoneMatch_ != "" {
12515 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12516 }
12517 var body io.Reader = nil
12518 c.urlParams_.Set("alt", alt)
12519 c.urlParams_.Set("prettyPrint", "false")
12520 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/attributeDefinitions")
12521 urls += "?" + c.urlParams_.Encode()
12522 req, err := http.NewRequest("GET", urls, body)
12523 if err != nil {
12524 return nil, err
12525 }
12526 req.Header = reqHeaders
12527 googleapi.Expand(req.URL, map[string]string{
12528 "parent": c.parent,
12529 })
12530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12531 }
12532
12533
12534
12535
12536
12537
12538
12539 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Do(opts ...googleapi.CallOption) (*ListAttributeDefinitionsResponse, error) {
12540 gensupport.SetOptions(c.urlParams_, opts...)
12541 res, err := c.doRequest("json")
12542 if res != nil && res.StatusCode == http.StatusNotModified {
12543 if res.Body != nil {
12544 res.Body.Close()
12545 }
12546 return nil, gensupport.WrapError(&googleapi.Error{
12547 Code: res.StatusCode,
12548 Header: res.Header,
12549 })
12550 }
12551 if err != nil {
12552 return nil, err
12553 }
12554 defer googleapi.CloseBody(res)
12555 if err := googleapi.CheckResponse(res); err != nil {
12556 return nil, gensupport.WrapError(err)
12557 }
12558 ret := &ListAttributeDefinitionsResponse{
12559 ServerResponse: googleapi.ServerResponse{
12560 Header: res.Header,
12561 HTTPStatusCode: res.StatusCode,
12562 },
12563 }
12564 target := &ret
12565 if err := gensupport.DecodeResponse(target, res); err != nil {
12566 return nil, err
12567 }
12568 return ret, nil
12569 }
12570
12571
12572
12573
12574 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Pages(ctx context.Context, f func(*ListAttributeDefinitionsResponse) error) error {
12575 c.ctx_ = ctx
12576 defer c.PageToken(c.urlParams_.Get("pageToken"))
12577 for {
12578 x, err := c.Do()
12579 if err != nil {
12580 return err
12581 }
12582 if err := f(x); err != nil {
12583 return err
12584 }
12585 if x.NextPageToken == "" {
12586 return nil
12587 }
12588 c.PageToken(x.NextPageToken)
12589 }
12590 }
12591
12592 type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall struct {
12593 s *Service
12594 name string
12595 attributedefinition *AttributeDefinition
12596 urlParams_ gensupport.URLParams
12597 ctx_ context.Context
12598 header_ http.Header
12599 }
12600
12601
12602
12603
12604
12605
12606
12607 func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Patch(name string, attributedefinition *AttributeDefinition) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
12608 c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12609 c.name = name
12610 c.attributedefinition = attributedefinition
12611 return c
12612 }
12613
12614
12615
12616
12617
12618
12619
12620 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
12621 c.urlParams_.Set("updateMask", updateMask)
12622 return c
12623 }
12624
12625
12626
12627
12628 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
12629 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12630 return c
12631 }
12632
12633
12634 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
12635 c.ctx_ = ctx
12636 return c
12637 }
12638
12639
12640
12641 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Header() http.Header {
12642 if c.header_ == nil {
12643 c.header_ = make(http.Header)
12644 }
12645 return c.header_
12646 }
12647
12648 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) doRequest(alt string) (*http.Response, error) {
12649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12650 var body io.Reader = nil
12651 body, err := googleapi.WithoutDataWrapper.JSONReader(c.attributedefinition)
12652 if err != nil {
12653 return nil, err
12654 }
12655 c.urlParams_.Set("alt", alt)
12656 c.urlParams_.Set("prettyPrint", "false")
12657 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
12658 urls += "?" + c.urlParams_.Encode()
12659 req, err := http.NewRequest("PATCH", urls, body)
12660 if err != nil {
12661 return nil, err
12662 }
12663 req.Header = reqHeaders
12664 googleapi.Expand(req.URL, map[string]string{
12665 "name": c.name,
12666 })
12667 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12668 }
12669
12670
12671
12672
12673
12674
12675
12676 func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Do(opts ...googleapi.CallOption) (*AttributeDefinition, error) {
12677 gensupport.SetOptions(c.urlParams_, opts...)
12678 res, err := c.doRequest("json")
12679 if res != nil && res.StatusCode == http.StatusNotModified {
12680 if res.Body != nil {
12681 res.Body.Close()
12682 }
12683 return nil, gensupport.WrapError(&googleapi.Error{
12684 Code: res.StatusCode,
12685 Header: res.Header,
12686 })
12687 }
12688 if err != nil {
12689 return nil, err
12690 }
12691 defer googleapi.CloseBody(res)
12692 if err := googleapi.CheckResponse(res); err != nil {
12693 return nil, gensupport.WrapError(err)
12694 }
12695 ret := &AttributeDefinition{
12696 ServerResponse: googleapi.ServerResponse{
12697 Header: res.Header,
12698 HTTPStatusCode: res.StatusCode,
12699 },
12700 }
12701 target := &ret
12702 if err := gensupport.DecodeResponse(target, res); err != nil {
12703 return nil, err
12704 }
12705 return ret, nil
12706 }
12707
12708 type ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall struct {
12709 s *Service
12710 parent string
12711 consentartifact *ConsentArtifact
12712 urlParams_ gensupport.URLParams
12713 ctx_ context.Context
12714 header_ http.Header
12715 }
12716
12717
12718
12719
12720 func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) Create(parent string, consentartifact *ConsentArtifact) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall {
12721 c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12722 c.parent = parent
12723 c.consentartifact = consentartifact
12724 return c
12725 }
12726
12727
12728
12729
12730 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall {
12731 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12732 return c
12733 }
12734
12735
12736 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall {
12737 c.ctx_ = ctx
12738 return c
12739 }
12740
12741
12742
12743 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Header() http.Header {
12744 if c.header_ == nil {
12745 c.header_ = make(http.Header)
12746 }
12747 return c.header_
12748 }
12749
12750 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) doRequest(alt string) (*http.Response, error) {
12751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12752 var body io.Reader = nil
12753 body, err := googleapi.WithoutDataWrapper.JSONReader(c.consentartifact)
12754 if err != nil {
12755 return nil, err
12756 }
12757 c.urlParams_.Set("alt", alt)
12758 c.urlParams_.Set("prettyPrint", "false")
12759 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentArtifacts")
12760 urls += "?" + c.urlParams_.Encode()
12761 req, err := http.NewRequest("POST", urls, body)
12762 if err != nil {
12763 return nil, err
12764 }
12765 req.Header = reqHeaders
12766 googleapi.Expand(req.URL, map[string]string{
12767 "parent": c.parent,
12768 })
12769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12770 }
12771
12772
12773
12774
12775
12776
12777
12778 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Do(opts ...googleapi.CallOption) (*ConsentArtifact, error) {
12779 gensupport.SetOptions(c.urlParams_, opts...)
12780 res, err := c.doRequest("json")
12781 if res != nil && res.StatusCode == http.StatusNotModified {
12782 if res.Body != nil {
12783 res.Body.Close()
12784 }
12785 return nil, gensupport.WrapError(&googleapi.Error{
12786 Code: res.StatusCode,
12787 Header: res.Header,
12788 })
12789 }
12790 if err != nil {
12791 return nil, err
12792 }
12793 defer googleapi.CloseBody(res)
12794 if err := googleapi.CheckResponse(res); err != nil {
12795 return nil, gensupport.WrapError(err)
12796 }
12797 ret := &ConsentArtifact{
12798 ServerResponse: googleapi.ServerResponse{
12799 Header: res.Header,
12800 HTTPStatusCode: res.StatusCode,
12801 },
12802 }
12803 target := &ret
12804 if err := gensupport.DecodeResponse(target, res); err != nil {
12805 return nil, err
12806 }
12807 return ret, nil
12808 }
12809
12810 type ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall struct {
12811 s *Service
12812 name string
12813 urlParams_ gensupport.URLParams
12814 ctx_ context.Context
12815 header_ http.Header
12816 }
12817
12818
12819
12820
12821
12822
12823
12824 func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall {
12825 c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12826 c.name = name
12827 return c
12828 }
12829
12830
12831
12832
12833 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall {
12834 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12835 return c
12836 }
12837
12838
12839 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall {
12840 c.ctx_ = ctx
12841 return c
12842 }
12843
12844
12845
12846 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Header() http.Header {
12847 if c.header_ == nil {
12848 c.header_ = make(http.Header)
12849 }
12850 return c.header_
12851 }
12852
12853 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) doRequest(alt string) (*http.Response, error) {
12854 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12855 var body io.Reader = nil
12856 c.urlParams_.Set("alt", alt)
12857 c.urlParams_.Set("prettyPrint", "false")
12858 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
12859 urls += "?" + c.urlParams_.Encode()
12860 req, err := http.NewRequest("DELETE", urls, body)
12861 if err != nil {
12862 return nil, err
12863 }
12864 req.Header = reqHeaders
12865 googleapi.Expand(req.URL, map[string]string{
12866 "name": c.name,
12867 })
12868 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12869 }
12870
12871
12872
12873
12874
12875
12876 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12877 gensupport.SetOptions(c.urlParams_, opts...)
12878 res, err := c.doRequest("json")
12879 if res != nil && res.StatusCode == http.StatusNotModified {
12880 if res.Body != nil {
12881 res.Body.Close()
12882 }
12883 return nil, gensupport.WrapError(&googleapi.Error{
12884 Code: res.StatusCode,
12885 Header: res.Header,
12886 })
12887 }
12888 if err != nil {
12889 return nil, err
12890 }
12891 defer googleapi.CloseBody(res)
12892 if err := googleapi.CheckResponse(res); err != nil {
12893 return nil, gensupport.WrapError(err)
12894 }
12895 ret := &Empty{
12896 ServerResponse: googleapi.ServerResponse{
12897 Header: res.Header,
12898 HTTPStatusCode: res.StatusCode,
12899 },
12900 }
12901 target := &ret
12902 if err := gensupport.DecodeResponse(target, res); err != nil {
12903 return nil, err
12904 }
12905 return ret, nil
12906 }
12907
12908 type ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall struct {
12909 s *Service
12910 name string
12911 urlParams_ gensupport.URLParams
12912 ifNoneMatch_ string
12913 ctx_ context.Context
12914 header_ http.Header
12915 }
12916
12917
12918
12919
12920 func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
12921 c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12922 c.name = name
12923 return c
12924 }
12925
12926
12927
12928
12929 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
12930 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12931 return c
12932 }
12933
12934
12935
12936
12937 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
12938 c.ifNoneMatch_ = entityTag
12939 return c
12940 }
12941
12942
12943 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
12944 c.ctx_ = ctx
12945 return c
12946 }
12947
12948
12949
12950 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Header() http.Header {
12951 if c.header_ == nil {
12952 c.header_ = make(http.Header)
12953 }
12954 return c.header_
12955 }
12956
12957 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) doRequest(alt string) (*http.Response, error) {
12958 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12959 if c.ifNoneMatch_ != "" {
12960 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12961 }
12962 var body io.Reader = nil
12963 c.urlParams_.Set("alt", alt)
12964 c.urlParams_.Set("prettyPrint", "false")
12965 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
12966 urls += "?" + c.urlParams_.Encode()
12967 req, err := http.NewRequest("GET", urls, body)
12968 if err != nil {
12969 return nil, err
12970 }
12971 req.Header = reqHeaders
12972 googleapi.Expand(req.URL, map[string]string{
12973 "name": c.name,
12974 })
12975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12976 }
12977
12978
12979
12980
12981
12982
12983
12984 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Do(opts ...googleapi.CallOption) (*ConsentArtifact, error) {
12985 gensupport.SetOptions(c.urlParams_, opts...)
12986 res, err := c.doRequest("json")
12987 if res != nil && res.StatusCode == http.StatusNotModified {
12988 if res.Body != nil {
12989 res.Body.Close()
12990 }
12991 return nil, gensupport.WrapError(&googleapi.Error{
12992 Code: res.StatusCode,
12993 Header: res.Header,
12994 })
12995 }
12996 if err != nil {
12997 return nil, err
12998 }
12999 defer googleapi.CloseBody(res)
13000 if err := googleapi.CheckResponse(res); err != nil {
13001 return nil, gensupport.WrapError(err)
13002 }
13003 ret := &ConsentArtifact{
13004 ServerResponse: googleapi.ServerResponse{
13005 Header: res.Header,
13006 HTTPStatusCode: res.StatusCode,
13007 },
13008 }
13009 target := &ret
13010 if err := gensupport.DecodeResponse(target, res); err != nil {
13011 return nil, err
13012 }
13013 return ret, nil
13014 }
13015
13016 type ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall struct {
13017 s *Service
13018 parent string
13019 urlParams_ gensupport.URLParams
13020 ifNoneMatch_ string
13021 ctx_ context.Context
13022 header_ http.Header
13023 }
13024
13025
13026
13027
13028 func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13029 c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13030 c.parent = parent
13031 return c
13032 }
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13061 c.urlParams_.Set("filter", filter)
13062 return c
13063 }
13064
13065
13066
13067
13068 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13069 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13070 return c
13071 }
13072
13073
13074
13075 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13076 c.urlParams_.Set("pageToken", pageToken)
13077 return c
13078 }
13079
13080
13081
13082
13083 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13084 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13085 return c
13086 }
13087
13088
13089
13090
13091 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13092 c.ifNoneMatch_ = entityTag
13093 return c
13094 }
13095
13096
13097 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
13098 c.ctx_ = ctx
13099 return c
13100 }
13101
13102
13103
13104 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Header() http.Header {
13105 if c.header_ == nil {
13106 c.header_ = make(http.Header)
13107 }
13108 return c.header_
13109 }
13110
13111 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) doRequest(alt string) (*http.Response, error) {
13112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13113 if c.ifNoneMatch_ != "" {
13114 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13115 }
13116 var body io.Reader = nil
13117 c.urlParams_.Set("alt", alt)
13118 c.urlParams_.Set("prettyPrint", "false")
13119 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentArtifacts")
13120 urls += "?" + c.urlParams_.Encode()
13121 req, err := http.NewRequest("GET", urls, body)
13122 if err != nil {
13123 return nil, err
13124 }
13125 req.Header = reqHeaders
13126 googleapi.Expand(req.URL, map[string]string{
13127 "parent": c.parent,
13128 })
13129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13130 }
13131
13132
13133
13134
13135
13136
13137
13138 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Do(opts ...googleapi.CallOption) (*ListConsentArtifactsResponse, error) {
13139 gensupport.SetOptions(c.urlParams_, opts...)
13140 res, err := c.doRequest("json")
13141 if res != nil && res.StatusCode == http.StatusNotModified {
13142 if res.Body != nil {
13143 res.Body.Close()
13144 }
13145 return nil, gensupport.WrapError(&googleapi.Error{
13146 Code: res.StatusCode,
13147 Header: res.Header,
13148 })
13149 }
13150 if err != nil {
13151 return nil, err
13152 }
13153 defer googleapi.CloseBody(res)
13154 if err := googleapi.CheckResponse(res); err != nil {
13155 return nil, gensupport.WrapError(err)
13156 }
13157 ret := &ListConsentArtifactsResponse{
13158 ServerResponse: googleapi.ServerResponse{
13159 Header: res.Header,
13160 HTTPStatusCode: res.StatusCode,
13161 },
13162 }
13163 target := &ret
13164 if err := gensupport.DecodeResponse(target, res); err != nil {
13165 return nil, err
13166 }
13167 return ret, nil
13168 }
13169
13170
13171
13172
13173 func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Pages(ctx context.Context, f func(*ListConsentArtifactsResponse) error) error {
13174 c.ctx_ = ctx
13175 defer c.PageToken(c.urlParams_.Get("pageToken"))
13176 for {
13177 x, err := c.Do()
13178 if err != nil {
13179 return err
13180 }
13181 if err := f(x); err != nil {
13182 return err
13183 }
13184 if x.NextPageToken == "" {
13185 return nil
13186 }
13187 c.PageToken(x.NextPageToken)
13188 }
13189 }
13190
13191 type ProjectsLocationsDatasetsConsentStoresConsentsActivateCall struct {
13192 s *Service
13193 name string
13194 activateconsentrequest *ActivateConsentRequest
13195 urlParams_ gensupport.URLParams
13196 ctx_ context.Context
13197 header_ http.Header
13198 }
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Activate(name string, activateconsentrequest *ActivateConsentRequest) *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall {
13211 c := &ProjectsLocationsDatasetsConsentStoresConsentsActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13212 c.name = name
13213 c.activateconsentrequest = activateconsentrequest
13214 return c
13215 }
13216
13217
13218
13219
13220 func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall {
13221 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13222 return c
13223 }
13224
13225
13226 func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall {
13227 c.ctx_ = ctx
13228 return c
13229 }
13230
13231
13232
13233 func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Header() http.Header {
13234 if c.header_ == nil {
13235 c.header_ = make(http.Header)
13236 }
13237 return c.header_
13238 }
13239
13240 func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) doRequest(alt string) (*http.Response, error) {
13241 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13242 var body io.Reader = nil
13243 body, err := googleapi.WithoutDataWrapper.JSONReader(c.activateconsentrequest)
13244 if err != nil {
13245 return nil, err
13246 }
13247 c.urlParams_.Set("alt", alt)
13248 c.urlParams_.Set("prettyPrint", "false")
13249 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:activate")
13250 urls += "?" + c.urlParams_.Encode()
13251 req, err := http.NewRequest("POST", urls, body)
13252 if err != nil {
13253 return nil, err
13254 }
13255 req.Header = reqHeaders
13256 googleapi.Expand(req.URL, map[string]string{
13257 "name": c.name,
13258 })
13259 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13260 }
13261
13262
13263
13264
13265
13266
13267 func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
13268 gensupport.SetOptions(c.urlParams_, opts...)
13269 res, err := c.doRequest("json")
13270 if res != nil && res.StatusCode == http.StatusNotModified {
13271 if res.Body != nil {
13272 res.Body.Close()
13273 }
13274 return nil, gensupport.WrapError(&googleapi.Error{
13275 Code: res.StatusCode,
13276 Header: res.Header,
13277 })
13278 }
13279 if err != nil {
13280 return nil, err
13281 }
13282 defer googleapi.CloseBody(res)
13283 if err := googleapi.CheckResponse(res); err != nil {
13284 return nil, gensupport.WrapError(err)
13285 }
13286 ret := &Consent{
13287 ServerResponse: googleapi.ServerResponse{
13288 Header: res.Header,
13289 HTTPStatusCode: res.StatusCode,
13290 },
13291 }
13292 target := &ret
13293 if err := gensupport.DecodeResponse(target, res); err != nil {
13294 return nil, err
13295 }
13296 return ret, nil
13297 }
13298
13299 type ProjectsLocationsDatasetsConsentStoresConsentsCreateCall struct {
13300 s *Service
13301 parent string
13302 consent *Consent
13303 urlParams_ gensupport.URLParams
13304 ctx_ context.Context
13305 header_ http.Header
13306 }
13307
13308
13309
13310
13311 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Create(parent string, consent *Consent) *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall {
13312 c := &ProjectsLocationsDatasetsConsentStoresConsentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13313 c.parent = parent
13314 c.consent = consent
13315 return c
13316 }
13317
13318
13319
13320
13321 func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall {
13322 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13323 return c
13324 }
13325
13326
13327 func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall {
13328 c.ctx_ = ctx
13329 return c
13330 }
13331
13332
13333
13334 func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Header() http.Header {
13335 if c.header_ == nil {
13336 c.header_ = make(http.Header)
13337 }
13338 return c.header_
13339 }
13340
13341 func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) doRequest(alt string) (*http.Response, error) {
13342 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13343 var body io.Reader = nil
13344 body, err := googleapi.WithoutDataWrapper.JSONReader(c.consent)
13345 if err != nil {
13346 return nil, err
13347 }
13348 c.urlParams_.Set("alt", alt)
13349 c.urlParams_.Set("prettyPrint", "false")
13350 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consents")
13351 urls += "?" + c.urlParams_.Encode()
13352 req, err := http.NewRequest("POST", urls, body)
13353 if err != nil {
13354 return nil, err
13355 }
13356 req.Header = reqHeaders
13357 googleapi.Expand(req.URL, map[string]string{
13358 "parent": c.parent,
13359 })
13360 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13361 }
13362
13363
13364
13365
13366
13367
13368 func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
13369 gensupport.SetOptions(c.urlParams_, opts...)
13370 res, err := c.doRequest("json")
13371 if res != nil && res.StatusCode == http.StatusNotModified {
13372 if res.Body != nil {
13373 res.Body.Close()
13374 }
13375 return nil, gensupport.WrapError(&googleapi.Error{
13376 Code: res.StatusCode,
13377 Header: res.Header,
13378 })
13379 }
13380 if err != nil {
13381 return nil, err
13382 }
13383 defer googleapi.CloseBody(res)
13384 if err := googleapi.CheckResponse(res); err != nil {
13385 return nil, gensupport.WrapError(err)
13386 }
13387 ret := &Consent{
13388 ServerResponse: googleapi.ServerResponse{
13389 Header: res.Header,
13390 HTTPStatusCode: res.StatusCode,
13391 },
13392 }
13393 target := &ret
13394 if err := gensupport.DecodeResponse(target, res); err != nil {
13395 return nil, err
13396 }
13397 return ret, nil
13398 }
13399
13400 type ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall struct {
13401 s *Service
13402 name string
13403 urlParams_ gensupport.URLParams
13404 ctx_ context.Context
13405 header_ http.Header
13406 }
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall {
13418 c := &ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13419 c.name = name
13420 return c
13421 }
13422
13423
13424
13425
13426 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall {
13427 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13428 return c
13429 }
13430
13431
13432 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall {
13433 c.ctx_ = ctx
13434 return c
13435 }
13436
13437
13438
13439 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Header() http.Header {
13440 if c.header_ == nil {
13441 c.header_ = make(http.Header)
13442 }
13443 return c.header_
13444 }
13445
13446 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) doRequest(alt string) (*http.Response, error) {
13447 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13448 var body io.Reader = nil
13449 c.urlParams_.Set("alt", alt)
13450 c.urlParams_.Set("prettyPrint", "false")
13451 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
13452 urls += "?" + c.urlParams_.Encode()
13453 req, err := http.NewRequest("DELETE", urls, body)
13454 if err != nil {
13455 return nil, err
13456 }
13457 req.Header = reqHeaders
13458 googleapi.Expand(req.URL, map[string]string{
13459 "name": c.name,
13460 })
13461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13462 }
13463
13464
13465
13466
13467
13468
13469 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
13470 gensupport.SetOptions(c.urlParams_, opts...)
13471 res, err := c.doRequest("json")
13472 if res != nil && res.StatusCode == http.StatusNotModified {
13473 if res.Body != nil {
13474 res.Body.Close()
13475 }
13476 return nil, gensupport.WrapError(&googleapi.Error{
13477 Code: res.StatusCode,
13478 Header: res.Header,
13479 })
13480 }
13481 if err != nil {
13482 return nil, err
13483 }
13484 defer googleapi.CloseBody(res)
13485 if err := googleapi.CheckResponse(res); err != nil {
13486 return nil, gensupport.WrapError(err)
13487 }
13488 ret := &Empty{
13489 ServerResponse: googleapi.ServerResponse{
13490 Header: res.Header,
13491 HTTPStatusCode: res.StatusCode,
13492 },
13493 }
13494 target := &ret
13495 if err := gensupport.DecodeResponse(target, res); err != nil {
13496 return nil, err
13497 }
13498 return ret, nil
13499 }
13500
13501 type ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall struct {
13502 s *Service
13503 name string
13504 urlParams_ gensupport.URLParams
13505 ctx_ context.Context
13506 header_ http.Header
13507 }
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) DeleteRevision(name string) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall {
13519 c := &ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13520 c.name = name
13521 return c
13522 }
13523
13524
13525
13526
13527 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall {
13528 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13529 return c
13530 }
13531
13532
13533 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall {
13534 c.ctx_ = ctx
13535 return c
13536 }
13537
13538
13539
13540 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Header() http.Header {
13541 if c.header_ == nil {
13542 c.header_ = make(http.Header)
13543 }
13544 return c.header_
13545 }
13546
13547 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) doRequest(alt string) (*http.Response, error) {
13548 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13549 var body io.Reader = nil
13550 c.urlParams_.Set("alt", alt)
13551 c.urlParams_.Set("prettyPrint", "false")
13552 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:deleteRevision")
13553 urls += "?" + c.urlParams_.Encode()
13554 req, err := http.NewRequest("DELETE", urls, body)
13555 if err != nil {
13556 return nil, err
13557 }
13558 req.Header = reqHeaders
13559 googleapi.Expand(req.URL, map[string]string{
13560 "name": c.name,
13561 })
13562 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13563 }
13564
13565
13566
13567
13568
13569
13570 func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
13571 gensupport.SetOptions(c.urlParams_, opts...)
13572 res, err := c.doRequest("json")
13573 if res != nil && res.StatusCode == http.StatusNotModified {
13574 if res.Body != nil {
13575 res.Body.Close()
13576 }
13577 return nil, gensupport.WrapError(&googleapi.Error{
13578 Code: res.StatusCode,
13579 Header: res.Header,
13580 })
13581 }
13582 if err != nil {
13583 return nil, err
13584 }
13585 defer googleapi.CloseBody(res)
13586 if err := googleapi.CheckResponse(res); err != nil {
13587 return nil, gensupport.WrapError(err)
13588 }
13589 ret := &Empty{
13590 ServerResponse: googleapi.ServerResponse{
13591 Header: res.Header,
13592 HTTPStatusCode: res.StatusCode,
13593 },
13594 }
13595 target := &ret
13596 if err := gensupport.DecodeResponse(target, res); err != nil {
13597 return nil, err
13598 }
13599 return ret, nil
13600 }
13601
13602 type ProjectsLocationsDatasetsConsentStoresConsentsGetCall struct {
13603 s *Service
13604 name string
13605 urlParams_ gensupport.URLParams
13606 ifNoneMatch_ string
13607 ctx_ context.Context
13608 header_ http.Header
13609 }
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
13621 c := &ProjectsLocationsDatasetsConsentStoresConsentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13622 c.name = name
13623 return c
13624 }
13625
13626
13627
13628
13629 func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
13630 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13631 return c
13632 }
13633
13634
13635
13636
13637 func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
13638 c.ifNoneMatch_ = entityTag
13639 return c
13640 }
13641
13642
13643 func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
13644 c.ctx_ = ctx
13645 return c
13646 }
13647
13648
13649
13650 func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Header() http.Header {
13651 if c.header_ == nil {
13652 c.header_ = make(http.Header)
13653 }
13654 return c.header_
13655 }
13656
13657 func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) doRequest(alt string) (*http.Response, error) {
13658 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13659 if c.ifNoneMatch_ != "" {
13660 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13661 }
13662 var body io.Reader = nil
13663 c.urlParams_.Set("alt", alt)
13664 c.urlParams_.Set("prettyPrint", "false")
13665 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
13666 urls += "?" + c.urlParams_.Encode()
13667 req, err := http.NewRequest("GET", urls, body)
13668 if err != nil {
13669 return nil, err
13670 }
13671 req.Header = reqHeaders
13672 googleapi.Expand(req.URL, map[string]string{
13673 "name": c.name,
13674 })
13675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13676 }
13677
13678
13679
13680
13681
13682
13683 func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
13684 gensupport.SetOptions(c.urlParams_, opts...)
13685 res, err := c.doRequest("json")
13686 if res != nil && res.StatusCode == http.StatusNotModified {
13687 if res.Body != nil {
13688 res.Body.Close()
13689 }
13690 return nil, gensupport.WrapError(&googleapi.Error{
13691 Code: res.StatusCode,
13692 Header: res.Header,
13693 })
13694 }
13695 if err != nil {
13696 return nil, err
13697 }
13698 defer googleapi.CloseBody(res)
13699 if err := googleapi.CheckResponse(res); err != nil {
13700 return nil, gensupport.WrapError(err)
13701 }
13702 ret := &Consent{
13703 ServerResponse: googleapi.ServerResponse{
13704 Header: res.Header,
13705 HTTPStatusCode: res.StatusCode,
13706 },
13707 }
13708 target := &ret
13709 if err := gensupport.DecodeResponse(target, res); err != nil {
13710 return nil, err
13711 }
13712 return ret, nil
13713 }
13714
13715 type ProjectsLocationsDatasetsConsentStoresConsentsListCall struct {
13716 s *Service
13717 parent string
13718 urlParams_ gensupport.URLParams
13719 ifNoneMatch_ string
13720 ctx_ context.Context
13721 header_ http.Header
13722 }
13723
13724
13725
13726
13727
13728 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13729 c := &ProjectsLocationsDatasetsConsentStoresConsentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13730 c.parent = parent
13731 return c
13732 }
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13762 c.urlParams_.Set("filter", filter)
13763 return c
13764 }
13765
13766
13767
13768
13769 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13770 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13771 return c
13772 }
13773
13774
13775
13776 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13777 c.urlParams_.Set("pageToken", pageToken)
13778 return c
13779 }
13780
13781
13782
13783
13784 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13786 return c
13787 }
13788
13789
13790
13791
13792 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13793 c.ifNoneMatch_ = entityTag
13794 return c
13795 }
13796
13797
13798 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
13799 c.ctx_ = ctx
13800 return c
13801 }
13802
13803
13804
13805 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Header() http.Header {
13806 if c.header_ == nil {
13807 c.header_ = make(http.Header)
13808 }
13809 return c.header_
13810 }
13811
13812 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) doRequest(alt string) (*http.Response, error) {
13813 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13814 if c.ifNoneMatch_ != "" {
13815 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13816 }
13817 var body io.Reader = nil
13818 c.urlParams_.Set("alt", alt)
13819 c.urlParams_.Set("prettyPrint", "false")
13820 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consents")
13821 urls += "?" + c.urlParams_.Encode()
13822 req, err := http.NewRequest("GET", urls, body)
13823 if err != nil {
13824 return nil, err
13825 }
13826 req.Header = reqHeaders
13827 googleapi.Expand(req.URL, map[string]string{
13828 "parent": c.parent,
13829 })
13830 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13831 }
13832
13833
13834
13835
13836
13837
13838
13839 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Do(opts ...googleapi.CallOption) (*ListConsentsResponse, error) {
13840 gensupport.SetOptions(c.urlParams_, opts...)
13841 res, err := c.doRequest("json")
13842 if res != nil && res.StatusCode == http.StatusNotModified {
13843 if res.Body != nil {
13844 res.Body.Close()
13845 }
13846 return nil, gensupport.WrapError(&googleapi.Error{
13847 Code: res.StatusCode,
13848 Header: res.Header,
13849 })
13850 }
13851 if err != nil {
13852 return nil, err
13853 }
13854 defer googleapi.CloseBody(res)
13855 if err := googleapi.CheckResponse(res); err != nil {
13856 return nil, gensupport.WrapError(err)
13857 }
13858 ret := &ListConsentsResponse{
13859 ServerResponse: googleapi.ServerResponse{
13860 Header: res.Header,
13861 HTTPStatusCode: res.StatusCode,
13862 },
13863 }
13864 target := &ret
13865 if err := gensupport.DecodeResponse(target, res); err != nil {
13866 return nil, err
13867 }
13868 return ret, nil
13869 }
13870
13871
13872
13873
13874 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Pages(ctx context.Context, f func(*ListConsentsResponse) error) error {
13875 c.ctx_ = ctx
13876 defer c.PageToken(c.urlParams_.Get("pageToken"))
13877 for {
13878 x, err := c.Do()
13879 if err != nil {
13880 return err
13881 }
13882 if err := f(x); err != nil {
13883 return err
13884 }
13885 if x.NextPageToken == "" {
13886 return nil
13887 }
13888 c.PageToken(x.NextPageToken)
13889 }
13890 }
13891
13892 type ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall struct {
13893 s *Service
13894 name string
13895 urlParams_ gensupport.URLParams
13896 ifNoneMatch_ string
13897 ctx_ context.Context
13898 header_ http.Header
13899 }
13900
13901
13902
13903
13904
13905 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) ListRevisions(name string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13906 c := &ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13907 c.name = name
13908 return c
13909 }
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13939 c.urlParams_.Set("filter", filter)
13940 return c
13941 }
13942
13943
13944
13945
13946 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13947 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13948 return c
13949 }
13950
13951
13952
13953 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13954 c.urlParams_.Set("pageToken", pageToken)
13955 return c
13956 }
13957
13958
13959
13960
13961 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13962 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13963 return c
13964 }
13965
13966
13967
13968
13969 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13970 c.ifNoneMatch_ = entityTag
13971 return c
13972 }
13973
13974
13975 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
13976 c.ctx_ = ctx
13977 return c
13978 }
13979
13980
13981
13982 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Header() http.Header {
13983 if c.header_ == nil {
13984 c.header_ = make(http.Header)
13985 }
13986 return c.header_
13987 }
13988
13989 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) doRequest(alt string) (*http.Response, error) {
13990 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13991 if c.ifNoneMatch_ != "" {
13992 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13993 }
13994 var body io.Reader = nil
13995 c.urlParams_.Set("alt", alt)
13996 c.urlParams_.Set("prettyPrint", "false")
13997 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:listRevisions")
13998 urls += "?" + c.urlParams_.Encode()
13999 req, err := http.NewRequest("GET", urls, body)
14000 if err != nil {
14001 return nil, err
14002 }
14003 req.Header = reqHeaders
14004 googleapi.Expand(req.URL, map[string]string{
14005 "name": c.name,
14006 })
14007 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14008 }
14009
14010
14011
14012
14013
14014
14015
14016 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Do(opts ...googleapi.CallOption) (*ListConsentRevisionsResponse, error) {
14017 gensupport.SetOptions(c.urlParams_, opts...)
14018 res, err := c.doRequest("json")
14019 if res != nil && res.StatusCode == http.StatusNotModified {
14020 if res.Body != nil {
14021 res.Body.Close()
14022 }
14023 return nil, gensupport.WrapError(&googleapi.Error{
14024 Code: res.StatusCode,
14025 Header: res.Header,
14026 })
14027 }
14028 if err != nil {
14029 return nil, err
14030 }
14031 defer googleapi.CloseBody(res)
14032 if err := googleapi.CheckResponse(res); err != nil {
14033 return nil, gensupport.WrapError(err)
14034 }
14035 ret := &ListConsentRevisionsResponse{
14036 ServerResponse: googleapi.ServerResponse{
14037 Header: res.Header,
14038 HTTPStatusCode: res.StatusCode,
14039 },
14040 }
14041 target := &ret
14042 if err := gensupport.DecodeResponse(target, res); err != nil {
14043 return nil, err
14044 }
14045 return ret, nil
14046 }
14047
14048
14049
14050
14051 func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Pages(ctx context.Context, f func(*ListConsentRevisionsResponse) error) error {
14052 c.ctx_ = ctx
14053 defer c.PageToken(c.urlParams_.Get("pageToken"))
14054 for {
14055 x, err := c.Do()
14056 if err != nil {
14057 return err
14058 }
14059 if err := f(x); err != nil {
14060 return err
14061 }
14062 if x.NextPageToken == "" {
14063 return nil
14064 }
14065 c.PageToken(x.NextPageToken)
14066 }
14067 }
14068
14069 type ProjectsLocationsDatasetsConsentStoresConsentsPatchCall struct {
14070 s *Service
14071 name string
14072 consent *Consent
14073 urlParams_ gensupport.URLParams
14074 ctx_ context.Context
14075 header_ http.Header
14076 }
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Patch(name string, consent *Consent) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
14088 c := &ProjectsLocationsDatasetsConsentStoresConsentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14089 c.name = name
14090 c.consent = consent
14091 return c
14092 }
14093
14094
14095
14096
14097
14098
14099 func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
14100 c.urlParams_.Set("updateMask", updateMask)
14101 return c
14102 }
14103
14104
14105
14106
14107 func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
14108 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14109 return c
14110 }
14111
14112
14113 func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
14114 c.ctx_ = ctx
14115 return c
14116 }
14117
14118
14119
14120 func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Header() http.Header {
14121 if c.header_ == nil {
14122 c.header_ = make(http.Header)
14123 }
14124 return c.header_
14125 }
14126
14127 func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) doRequest(alt string) (*http.Response, error) {
14128 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14129 var body io.Reader = nil
14130 body, err := googleapi.WithoutDataWrapper.JSONReader(c.consent)
14131 if err != nil {
14132 return nil, err
14133 }
14134 c.urlParams_.Set("alt", alt)
14135 c.urlParams_.Set("prettyPrint", "false")
14136 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
14137 urls += "?" + c.urlParams_.Encode()
14138 req, err := http.NewRequest("PATCH", urls, body)
14139 if err != nil {
14140 return nil, err
14141 }
14142 req.Header = reqHeaders
14143 googleapi.Expand(req.URL, map[string]string{
14144 "name": c.name,
14145 })
14146 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14147 }
14148
14149
14150
14151
14152
14153
14154 func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
14155 gensupport.SetOptions(c.urlParams_, opts...)
14156 res, err := c.doRequest("json")
14157 if res != nil && res.StatusCode == http.StatusNotModified {
14158 if res.Body != nil {
14159 res.Body.Close()
14160 }
14161 return nil, gensupport.WrapError(&googleapi.Error{
14162 Code: res.StatusCode,
14163 Header: res.Header,
14164 })
14165 }
14166 if err != nil {
14167 return nil, err
14168 }
14169 defer googleapi.CloseBody(res)
14170 if err := googleapi.CheckResponse(res); err != nil {
14171 return nil, gensupport.WrapError(err)
14172 }
14173 ret := &Consent{
14174 ServerResponse: googleapi.ServerResponse{
14175 Header: res.Header,
14176 HTTPStatusCode: res.StatusCode,
14177 },
14178 }
14179 target := &ret
14180 if err := gensupport.DecodeResponse(target, res); err != nil {
14181 return nil, err
14182 }
14183 return ret, nil
14184 }
14185
14186 type ProjectsLocationsDatasetsConsentStoresConsentsRejectCall struct {
14187 s *Service
14188 name string
14189 rejectconsentrequest *RejectConsentRequest
14190 urlParams_ gensupport.URLParams
14191 ctx_ context.Context
14192 header_ http.Header
14193 }
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Reject(name string, rejectconsentrequest *RejectConsentRequest) *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall {
14206 c := &ProjectsLocationsDatasetsConsentStoresConsentsRejectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14207 c.name = name
14208 c.rejectconsentrequest = rejectconsentrequest
14209 return c
14210 }
14211
14212
14213
14214
14215 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall {
14216 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14217 return c
14218 }
14219
14220
14221 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall {
14222 c.ctx_ = ctx
14223 return c
14224 }
14225
14226
14227
14228 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Header() http.Header {
14229 if c.header_ == nil {
14230 c.header_ = make(http.Header)
14231 }
14232 return c.header_
14233 }
14234
14235 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) doRequest(alt string) (*http.Response, error) {
14236 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14237 var body io.Reader = nil
14238 body, err := googleapi.WithoutDataWrapper.JSONReader(c.rejectconsentrequest)
14239 if err != nil {
14240 return nil, err
14241 }
14242 c.urlParams_.Set("alt", alt)
14243 c.urlParams_.Set("prettyPrint", "false")
14244 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:reject")
14245 urls += "?" + c.urlParams_.Encode()
14246 req, err := http.NewRequest("POST", urls, body)
14247 if err != nil {
14248 return nil, err
14249 }
14250 req.Header = reqHeaders
14251 googleapi.Expand(req.URL, map[string]string{
14252 "name": c.name,
14253 })
14254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14255 }
14256
14257
14258
14259
14260
14261
14262 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
14263 gensupport.SetOptions(c.urlParams_, opts...)
14264 res, err := c.doRequest("json")
14265 if res != nil && res.StatusCode == http.StatusNotModified {
14266 if res.Body != nil {
14267 res.Body.Close()
14268 }
14269 return nil, gensupport.WrapError(&googleapi.Error{
14270 Code: res.StatusCode,
14271 Header: res.Header,
14272 })
14273 }
14274 if err != nil {
14275 return nil, err
14276 }
14277 defer googleapi.CloseBody(res)
14278 if err := googleapi.CheckResponse(res); err != nil {
14279 return nil, gensupport.WrapError(err)
14280 }
14281 ret := &Consent{
14282 ServerResponse: googleapi.ServerResponse{
14283 Header: res.Header,
14284 HTTPStatusCode: res.StatusCode,
14285 },
14286 }
14287 target := &ret
14288 if err := gensupport.DecodeResponse(target, res); err != nil {
14289 return nil, err
14290 }
14291 return ret, nil
14292 }
14293
14294 type ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall struct {
14295 s *Service
14296 name string
14297 revokeconsentrequest *RevokeConsentRequest
14298 urlParams_ gensupport.URLParams
14299 ctx_ context.Context
14300 header_ http.Header
14301 }
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313 func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Revoke(name string, revokeconsentrequest *RevokeConsentRequest) *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall {
14314 c := &ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14315 c.name = name
14316 c.revokeconsentrequest = revokeconsentrequest
14317 return c
14318 }
14319
14320
14321
14322
14323 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall {
14324 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14325 return c
14326 }
14327
14328
14329 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall {
14330 c.ctx_ = ctx
14331 return c
14332 }
14333
14334
14335
14336 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Header() http.Header {
14337 if c.header_ == nil {
14338 c.header_ = make(http.Header)
14339 }
14340 return c.header_
14341 }
14342
14343 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) doRequest(alt string) (*http.Response, error) {
14344 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14345 var body io.Reader = nil
14346 body, err := googleapi.WithoutDataWrapper.JSONReader(c.revokeconsentrequest)
14347 if err != nil {
14348 return nil, err
14349 }
14350 c.urlParams_.Set("alt", alt)
14351 c.urlParams_.Set("prettyPrint", "false")
14352 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:revoke")
14353 urls += "?" + c.urlParams_.Encode()
14354 req, err := http.NewRequest("POST", urls, body)
14355 if err != nil {
14356 return nil, err
14357 }
14358 req.Header = reqHeaders
14359 googleapi.Expand(req.URL, map[string]string{
14360 "name": c.name,
14361 })
14362 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14363 }
14364
14365
14366
14367
14368
14369
14370 func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
14371 gensupport.SetOptions(c.urlParams_, opts...)
14372 res, err := c.doRequest("json")
14373 if res != nil && res.StatusCode == http.StatusNotModified {
14374 if res.Body != nil {
14375 res.Body.Close()
14376 }
14377 return nil, gensupport.WrapError(&googleapi.Error{
14378 Code: res.StatusCode,
14379 Header: res.Header,
14380 })
14381 }
14382 if err != nil {
14383 return nil, err
14384 }
14385 defer googleapi.CloseBody(res)
14386 if err := googleapi.CheckResponse(res); err != nil {
14387 return nil, gensupport.WrapError(err)
14388 }
14389 ret := &Consent{
14390 ServerResponse: googleapi.ServerResponse{
14391 Header: res.Header,
14392 HTTPStatusCode: res.StatusCode,
14393 },
14394 }
14395 target := &ret
14396 if err := gensupport.DecodeResponse(target, res); err != nil {
14397 return nil, err
14398 }
14399 return ret, nil
14400 }
14401
14402 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall struct {
14403 s *Service
14404 name string
14405 archiveuserdatamappingrequest *ArchiveUserDataMappingRequest
14406 urlParams_ gensupport.URLParams
14407 ctx_ context.Context
14408 header_ http.Header
14409 }
14410
14411
14412
14413
14414 func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Archive(name string, archiveuserdatamappingrequest *ArchiveUserDataMappingRequest) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall {
14415 c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14416 c.name = name
14417 c.archiveuserdatamappingrequest = archiveuserdatamappingrequest
14418 return c
14419 }
14420
14421
14422
14423
14424 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall {
14425 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14426 return c
14427 }
14428
14429
14430 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall {
14431 c.ctx_ = ctx
14432 return c
14433 }
14434
14435
14436
14437 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Header() http.Header {
14438 if c.header_ == nil {
14439 c.header_ = make(http.Header)
14440 }
14441 return c.header_
14442 }
14443
14444 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) doRequest(alt string) (*http.Response, error) {
14445 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14446 var body io.Reader = nil
14447 body, err := googleapi.WithoutDataWrapper.JSONReader(c.archiveuserdatamappingrequest)
14448 if err != nil {
14449 return nil, err
14450 }
14451 c.urlParams_.Set("alt", alt)
14452 c.urlParams_.Set("prettyPrint", "false")
14453 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:archive")
14454 urls += "?" + c.urlParams_.Encode()
14455 req, err := http.NewRequest("POST", urls, body)
14456 if err != nil {
14457 return nil, err
14458 }
14459 req.Header = reqHeaders
14460 googleapi.Expand(req.URL, map[string]string{
14461 "name": c.name,
14462 })
14463 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14464 }
14465
14466
14467
14468
14469
14470
14471
14472 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Do(opts ...googleapi.CallOption) (*ArchiveUserDataMappingResponse, error) {
14473 gensupport.SetOptions(c.urlParams_, opts...)
14474 res, err := c.doRequest("json")
14475 if res != nil && res.StatusCode == http.StatusNotModified {
14476 if res.Body != nil {
14477 res.Body.Close()
14478 }
14479 return nil, gensupport.WrapError(&googleapi.Error{
14480 Code: res.StatusCode,
14481 Header: res.Header,
14482 })
14483 }
14484 if err != nil {
14485 return nil, err
14486 }
14487 defer googleapi.CloseBody(res)
14488 if err := googleapi.CheckResponse(res); err != nil {
14489 return nil, gensupport.WrapError(err)
14490 }
14491 ret := &ArchiveUserDataMappingResponse{
14492 ServerResponse: googleapi.ServerResponse{
14493 Header: res.Header,
14494 HTTPStatusCode: res.StatusCode,
14495 },
14496 }
14497 target := &ret
14498 if err := gensupport.DecodeResponse(target, res); err != nil {
14499 return nil, err
14500 }
14501 return ret, nil
14502 }
14503
14504 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall struct {
14505 s *Service
14506 parent string
14507 userdatamapping *UserDataMapping
14508 urlParams_ gensupport.URLParams
14509 ctx_ context.Context
14510 header_ http.Header
14511 }
14512
14513
14514
14515
14516 func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Create(parent string, userdatamapping *UserDataMapping) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall {
14517 c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14518 c.parent = parent
14519 c.userdatamapping = userdatamapping
14520 return c
14521 }
14522
14523
14524
14525
14526 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall {
14527 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14528 return c
14529 }
14530
14531
14532 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall {
14533 c.ctx_ = ctx
14534 return c
14535 }
14536
14537
14538
14539 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Header() http.Header {
14540 if c.header_ == nil {
14541 c.header_ = make(http.Header)
14542 }
14543 return c.header_
14544 }
14545
14546 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) doRequest(alt string) (*http.Response, error) {
14547 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14548 var body io.Reader = nil
14549 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userdatamapping)
14550 if err != nil {
14551 return nil, err
14552 }
14553 c.urlParams_.Set("alt", alt)
14554 c.urlParams_.Set("prettyPrint", "false")
14555 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/userDataMappings")
14556 urls += "?" + c.urlParams_.Encode()
14557 req, err := http.NewRequest("POST", urls, body)
14558 if err != nil {
14559 return nil, err
14560 }
14561 req.Header = reqHeaders
14562 googleapi.Expand(req.URL, map[string]string{
14563 "parent": c.parent,
14564 })
14565 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14566 }
14567
14568
14569
14570
14571
14572
14573
14574 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Do(opts ...googleapi.CallOption) (*UserDataMapping, error) {
14575 gensupport.SetOptions(c.urlParams_, opts...)
14576 res, err := c.doRequest("json")
14577 if res != nil && res.StatusCode == http.StatusNotModified {
14578 if res.Body != nil {
14579 res.Body.Close()
14580 }
14581 return nil, gensupport.WrapError(&googleapi.Error{
14582 Code: res.StatusCode,
14583 Header: res.Header,
14584 })
14585 }
14586 if err != nil {
14587 return nil, err
14588 }
14589 defer googleapi.CloseBody(res)
14590 if err := googleapi.CheckResponse(res); err != nil {
14591 return nil, gensupport.WrapError(err)
14592 }
14593 ret := &UserDataMapping{
14594 ServerResponse: googleapi.ServerResponse{
14595 Header: res.Header,
14596 HTTPStatusCode: res.StatusCode,
14597 },
14598 }
14599 target := &ret
14600 if err := gensupport.DecodeResponse(target, res); err != nil {
14601 return nil, err
14602 }
14603 return ret, nil
14604 }
14605
14606 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall struct {
14607 s *Service
14608 name string
14609 urlParams_ gensupport.URLParams
14610 ctx_ context.Context
14611 header_ http.Header
14612 }
14613
14614
14615
14616
14617 func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall {
14618 c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14619 c.name = name
14620 return c
14621 }
14622
14623
14624
14625
14626 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall {
14627 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14628 return c
14629 }
14630
14631
14632 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall {
14633 c.ctx_ = ctx
14634 return c
14635 }
14636
14637
14638
14639 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Header() http.Header {
14640 if c.header_ == nil {
14641 c.header_ = make(http.Header)
14642 }
14643 return c.header_
14644 }
14645
14646 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
14647 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14648 var body io.Reader = nil
14649 c.urlParams_.Set("alt", alt)
14650 c.urlParams_.Set("prettyPrint", "false")
14651 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
14652 urls += "?" + c.urlParams_.Encode()
14653 req, err := http.NewRequest("DELETE", urls, body)
14654 if err != nil {
14655 return nil, err
14656 }
14657 req.Header = reqHeaders
14658 googleapi.Expand(req.URL, map[string]string{
14659 "name": c.name,
14660 })
14661 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14662 }
14663
14664
14665
14666
14667
14668
14669 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
14670 gensupport.SetOptions(c.urlParams_, opts...)
14671 res, err := c.doRequest("json")
14672 if res != nil && res.StatusCode == http.StatusNotModified {
14673 if res.Body != nil {
14674 res.Body.Close()
14675 }
14676 return nil, gensupport.WrapError(&googleapi.Error{
14677 Code: res.StatusCode,
14678 Header: res.Header,
14679 })
14680 }
14681 if err != nil {
14682 return nil, err
14683 }
14684 defer googleapi.CloseBody(res)
14685 if err := googleapi.CheckResponse(res); err != nil {
14686 return nil, gensupport.WrapError(err)
14687 }
14688 ret := &Empty{
14689 ServerResponse: googleapi.ServerResponse{
14690 Header: res.Header,
14691 HTTPStatusCode: res.StatusCode,
14692 },
14693 }
14694 target := &ret
14695 if err := gensupport.DecodeResponse(target, res); err != nil {
14696 return nil, err
14697 }
14698 return ret, nil
14699 }
14700
14701 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall struct {
14702 s *Service
14703 name string
14704 urlParams_ gensupport.URLParams
14705 ifNoneMatch_ string
14706 ctx_ context.Context
14707 header_ http.Header
14708 }
14709
14710
14711
14712
14713 func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
14714 c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14715 c.name = name
14716 return c
14717 }
14718
14719
14720
14721
14722 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
14723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14724 return c
14725 }
14726
14727
14728
14729
14730 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
14731 c.ifNoneMatch_ = entityTag
14732 return c
14733 }
14734
14735
14736 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
14737 c.ctx_ = ctx
14738 return c
14739 }
14740
14741
14742
14743 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Header() http.Header {
14744 if c.header_ == nil {
14745 c.header_ = make(http.Header)
14746 }
14747 return c.header_
14748 }
14749
14750 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) doRequest(alt string) (*http.Response, error) {
14751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14752 if c.ifNoneMatch_ != "" {
14753 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14754 }
14755 var body io.Reader = nil
14756 c.urlParams_.Set("alt", alt)
14757 c.urlParams_.Set("prettyPrint", "false")
14758 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
14759 urls += "?" + c.urlParams_.Encode()
14760 req, err := http.NewRequest("GET", urls, body)
14761 if err != nil {
14762 return nil, err
14763 }
14764 req.Header = reqHeaders
14765 googleapi.Expand(req.URL, map[string]string{
14766 "name": c.name,
14767 })
14768 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14769 }
14770
14771
14772
14773
14774
14775
14776
14777 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Do(opts ...googleapi.CallOption) (*UserDataMapping, error) {
14778 gensupport.SetOptions(c.urlParams_, opts...)
14779 res, err := c.doRequest("json")
14780 if res != nil && res.StatusCode == http.StatusNotModified {
14781 if res.Body != nil {
14782 res.Body.Close()
14783 }
14784 return nil, gensupport.WrapError(&googleapi.Error{
14785 Code: res.StatusCode,
14786 Header: res.Header,
14787 })
14788 }
14789 if err != nil {
14790 return nil, err
14791 }
14792 defer googleapi.CloseBody(res)
14793 if err := googleapi.CheckResponse(res); err != nil {
14794 return nil, gensupport.WrapError(err)
14795 }
14796 ret := &UserDataMapping{
14797 ServerResponse: googleapi.ServerResponse{
14798 Header: res.Header,
14799 HTTPStatusCode: res.StatusCode,
14800 },
14801 }
14802 target := &ret
14803 if err := gensupport.DecodeResponse(target, res); err != nil {
14804 return nil, err
14805 }
14806 return ret, nil
14807 }
14808
14809 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall struct {
14810 s *Service
14811 parent string
14812 urlParams_ gensupport.URLParams
14813 ifNoneMatch_ string
14814 ctx_ context.Context
14815 header_ http.Header
14816 }
14817
14818
14819
14820
14821 func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14822 c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14823 c.parent = parent
14824 return c
14825 }
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14852 c.urlParams_.Set("filter", filter)
14853 return c
14854 }
14855
14856
14857
14858
14859 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14860 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14861 return c
14862 }
14863
14864
14865
14866 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14867 c.urlParams_.Set("pageToken", pageToken)
14868 return c
14869 }
14870
14871
14872
14873
14874 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14875 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14876 return c
14877 }
14878
14879
14880
14881
14882 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14883 c.ifNoneMatch_ = entityTag
14884 return c
14885 }
14886
14887
14888 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
14889 c.ctx_ = ctx
14890 return c
14891 }
14892
14893
14894
14895 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Header() http.Header {
14896 if c.header_ == nil {
14897 c.header_ = make(http.Header)
14898 }
14899 return c.header_
14900 }
14901
14902 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) doRequest(alt string) (*http.Response, error) {
14903 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14904 if c.ifNoneMatch_ != "" {
14905 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14906 }
14907 var body io.Reader = nil
14908 c.urlParams_.Set("alt", alt)
14909 c.urlParams_.Set("prettyPrint", "false")
14910 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/userDataMappings")
14911 urls += "?" + c.urlParams_.Encode()
14912 req, err := http.NewRequest("GET", urls, body)
14913 if err != nil {
14914 return nil, err
14915 }
14916 req.Header = reqHeaders
14917 googleapi.Expand(req.URL, map[string]string{
14918 "parent": c.parent,
14919 })
14920 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14921 }
14922
14923
14924
14925
14926
14927
14928
14929 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Do(opts ...googleapi.CallOption) (*ListUserDataMappingsResponse, error) {
14930 gensupport.SetOptions(c.urlParams_, opts...)
14931 res, err := c.doRequest("json")
14932 if res != nil && res.StatusCode == http.StatusNotModified {
14933 if res.Body != nil {
14934 res.Body.Close()
14935 }
14936 return nil, gensupport.WrapError(&googleapi.Error{
14937 Code: res.StatusCode,
14938 Header: res.Header,
14939 })
14940 }
14941 if err != nil {
14942 return nil, err
14943 }
14944 defer googleapi.CloseBody(res)
14945 if err := googleapi.CheckResponse(res); err != nil {
14946 return nil, gensupport.WrapError(err)
14947 }
14948 ret := &ListUserDataMappingsResponse{
14949 ServerResponse: googleapi.ServerResponse{
14950 Header: res.Header,
14951 HTTPStatusCode: res.StatusCode,
14952 },
14953 }
14954 target := &ret
14955 if err := gensupport.DecodeResponse(target, res); err != nil {
14956 return nil, err
14957 }
14958 return ret, nil
14959 }
14960
14961
14962
14963
14964 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Pages(ctx context.Context, f func(*ListUserDataMappingsResponse) error) error {
14965 c.ctx_ = ctx
14966 defer c.PageToken(c.urlParams_.Get("pageToken"))
14967 for {
14968 x, err := c.Do()
14969 if err != nil {
14970 return err
14971 }
14972 if err := f(x); err != nil {
14973 return err
14974 }
14975 if x.NextPageToken == "" {
14976 return nil
14977 }
14978 c.PageToken(x.NextPageToken)
14979 }
14980 }
14981
14982 type ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall struct {
14983 s *Service
14984 name string
14985 userdatamapping *UserDataMapping
14986 urlParams_ gensupport.URLParams
14987 ctx_ context.Context
14988 header_ http.Header
14989 }
14990
14991
14992
14993
14994
14995
14996 func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Patch(name string, userdatamapping *UserDataMapping) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
14997 c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14998 c.name = name
14999 c.userdatamapping = userdatamapping
15000 return c
15001 }
15002
15003
15004
15005
15006
15007
15008 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
15009 c.urlParams_.Set("updateMask", updateMask)
15010 return c
15011 }
15012
15013
15014
15015
15016 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
15017 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15018 return c
15019 }
15020
15021
15022 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
15023 c.ctx_ = ctx
15024 return c
15025 }
15026
15027
15028
15029 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Header() http.Header {
15030 if c.header_ == nil {
15031 c.header_ = make(http.Header)
15032 }
15033 return c.header_
15034 }
15035
15036 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) doRequest(alt string) (*http.Response, error) {
15037 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15038 var body io.Reader = nil
15039 body, err := googleapi.WithoutDataWrapper.JSONReader(c.userdatamapping)
15040 if err != nil {
15041 return nil, err
15042 }
15043 c.urlParams_.Set("alt", alt)
15044 c.urlParams_.Set("prettyPrint", "false")
15045 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
15046 urls += "?" + c.urlParams_.Encode()
15047 req, err := http.NewRequest("PATCH", urls, body)
15048 if err != nil {
15049 return nil, err
15050 }
15051 req.Header = reqHeaders
15052 googleapi.Expand(req.URL, map[string]string{
15053 "name": c.name,
15054 })
15055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15056 }
15057
15058
15059
15060
15061
15062
15063
15064 func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Do(opts ...googleapi.CallOption) (*UserDataMapping, error) {
15065 gensupport.SetOptions(c.urlParams_, opts...)
15066 res, err := c.doRequest("json")
15067 if res != nil && res.StatusCode == http.StatusNotModified {
15068 if res.Body != nil {
15069 res.Body.Close()
15070 }
15071 return nil, gensupport.WrapError(&googleapi.Error{
15072 Code: res.StatusCode,
15073 Header: res.Header,
15074 })
15075 }
15076 if err != nil {
15077 return nil, err
15078 }
15079 defer googleapi.CloseBody(res)
15080 if err := googleapi.CheckResponse(res); err != nil {
15081 return nil, gensupport.WrapError(err)
15082 }
15083 ret := &UserDataMapping{
15084 ServerResponse: googleapi.ServerResponse{
15085 Header: res.Header,
15086 HTTPStatusCode: res.StatusCode,
15087 },
15088 }
15089 target := &ret
15090 if err := gensupport.DecodeResponse(target, res); err != nil {
15091 return nil, err
15092 }
15093 return ret, nil
15094 }
15095
15096 type ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall struct {
15097 s *Service
15098 resource string
15099 urlParams_ gensupport.URLParams
15100 ifNoneMatch_ string
15101 ctx_ context.Context
15102 header_ http.Header
15103 }
15104
15105
15106
15107
15108
15109
15110
15111 func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
15112 c := &ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15113 c.resource = resource
15114 return c
15115 }
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
15130 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
15131 return c
15132 }
15133
15134
15135
15136
15137 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
15138 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15139 return c
15140 }
15141
15142
15143
15144
15145 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
15146 c.ifNoneMatch_ = entityTag
15147 return c
15148 }
15149
15150
15151 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
15152 c.ctx_ = ctx
15153 return c
15154 }
15155
15156
15157
15158 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Header() http.Header {
15159 if c.header_ == nil {
15160 c.header_ = make(http.Header)
15161 }
15162 return c.header_
15163 }
15164
15165 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
15166 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15167 if c.ifNoneMatch_ != "" {
15168 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15169 }
15170 var body io.Reader = nil
15171 c.urlParams_.Set("alt", alt)
15172 c.urlParams_.Set("prettyPrint", "false")
15173 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
15174 urls += "?" + c.urlParams_.Encode()
15175 req, err := http.NewRequest("GET", urls, body)
15176 if err != nil {
15177 return nil, err
15178 }
15179 req.Header = reqHeaders
15180 googleapi.Expand(req.URL, map[string]string{
15181 "resource": c.resource,
15182 })
15183 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15184 }
15185
15186
15187
15188
15189
15190
15191 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
15192 gensupport.SetOptions(c.urlParams_, opts...)
15193 res, err := c.doRequest("json")
15194 if res != nil && res.StatusCode == http.StatusNotModified {
15195 if res.Body != nil {
15196 res.Body.Close()
15197 }
15198 return nil, gensupport.WrapError(&googleapi.Error{
15199 Code: res.StatusCode,
15200 Header: res.Header,
15201 })
15202 }
15203 if err != nil {
15204 return nil, err
15205 }
15206 defer googleapi.CloseBody(res)
15207 if err := googleapi.CheckResponse(res); err != nil {
15208 return nil, gensupport.WrapError(err)
15209 }
15210 ret := &Policy{
15211 ServerResponse: googleapi.ServerResponse{
15212 Header: res.Header,
15213 HTTPStatusCode: res.StatusCode,
15214 },
15215 }
15216 target := &ret
15217 if err := gensupport.DecodeResponse(target, res); err != nil {
15218 return nil, err
15219 }
15220 return ret, nil
15221 }
15222
15223 type ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall struct {
15224 s *Service
15225 resource string
15226 setiampolicyrequest *SetIamPolicyRequest
15227 urlParams_ gensupport.URLParams
15228 ctx_ context.Context
15229 header_ http.Header
15230 }
15231
15232
15233
15234
15235
15236
15237
15238
15239 func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall {
15240 c := &ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15241 c.resource = resource
15242 c.setiampolicyrequest = setiampolicyrequest
15243 return c
15244 }
15245
15246
15247
15248
15249 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall {
15250 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15251 return c
15252 }
15253
15254
15255 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall {
15256 c.ctx_ = ctx
15257 return c
15258 }
15259
15260
15261
15262 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Header() http.Header {
15263 if c.header_ == nil {
15264 c.header_ = make(http.Header)
15265 }
15266 return c.header_
15267 }
15268
15269 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
15270 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15271 var body io.Reader = nil
15272 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
15273 if err != nil {
15274 return nil, err
15275 }
15276 c.urlParams_.Set("alt", alt)
15277 c.urlParams_.Set("prettyPrint", "false")
15278 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
15279 urls += "?" + c.urlParams_.Encode()
15280 req, err := http.NewRequest("POST", urls, body)
15281 if err != nil {
15282 return nil, err
15283 }
15284 req.Header = reqHeaders
15285 googleapi.Expand(req.URL, map[string]string{
15286 "resource": c.resource,
15287 })
15288 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15289 }
15290
15291
15292
15293
15294
15295
15296 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
15297 gensupport.SetOptions(c.urlParams_, opts...)
15298 res, err := c.doRequest("json")
15299 if res != nil && res.StatusCode == http.StatusNotModified {
15300 if res.Body != nil {
15301 res.Body.Close()
15302 }
15303 return nil, gensupport.WrapError(&googleapi.Error{
15304 Code: res.StatusCode,
15305 Header: res.Header,
15306 })
15307 }
15308 if err != nil {
15309 return nil, err
15310 }
15311 defer googleapi.CloseBody(res)
15312 if err := googleapi.CheckResponse(res); err != nil {
15313 return nil, gensupport.WrapError(err)
15314 }
15315 ret := &Policy{
15316 ServerResponse: googleapi.ServerResponse{
15317 Header: res.Header,
15318 HTTPStatusCode: res.StatusCode,
15319 },
15320 }
15321 target := &ret
15322 if err := gensupport.DecodeResponse(target, res); err != nil {
15323 return nil, err
15324 }
15325 return ret, nil
15326 }
15327
15328 type ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall struct {
15329 s *Service
15330 resource string
15331 testiampermissionsrequest *TestIamPermissionsRequest
15332 urlParams_ gensupport.URLParams
15333 ctx_ context.Context
15334 header_ http.Header
15335 }
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347 func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall {
15348 c := &ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15349 c.resource = resource
15350 c.testiampermissionsrequest = testiampermissionsrequest
15351 return c
15352 }
15353
15354
15355
15356
15357 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall {
15358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15359 return c
15360 }
15361
15362
15363 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall {
15364 c.ctx_ = ctx
15365 return c
15366 }
15367
15368
15369
15370 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Header() http.Header {
15371 if c.header_ == nil {
15372 c.header_ = make(http.Header)
15373 }
15374 return c.header_
15375 }
15376
15377 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
15378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15379 var body io.Reader = nil
15380 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
15381 if err != nil {
15382 return nil, err
15383 }
15384 c.urlParams_.Set("alt", alt)
15385 c.urlParams_.Set("prettyPrint", "false")
15386 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
15387 urls += "?" + c.urlParams_.Encode()
15388 req, err := http.NewRequest("POST", urls, body)
15389 if err != nil {
15390 return nil, err
15391 }
15392 req.Header = reqHeaders
15393 googleapi.Expand(req.URL, map[string]string{
15394 "resource": c.resource,
15395 })
15396 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15397 }
15398
15399
15400
15401
15402
15403
15404
15405 func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
15406 gensupport.SetOptions(c.urlParams_, opts...)
15407 res, err := c.doRequest("json")
15408 if res != nil && res.StatusCode == http.StatusNotModified {
15409 if res.Body != nil {
15410 res.Body.Close()
15411 }
15412 return nil, gensupport.WrapError(&googleapi.Error{
15413 Code: res.StatusCode,
15414 Header: res.Header,
15415 })
15416 }
15417 if err != nil {
15418 return nil, err
15419 }
15420 defer googleapi.CloseBody(res)
15421 if err := googleapi.CheckResponse(res); err != nil {
15422 return nil, gensupport.WrapError(err)
15423 }
15424 ret := &TestIamPermissionsResponse{
15425 ServerResponse: googleapi.ServerResponse{
15426 Header: res.Header,
15427 HTTPStatusCode: res.StatusCode,
15428 },
15429 }
15430 target := &ret
15431 if err := gensupport.DecodeResponse(target, res); err != nil {
15432 return nil, err
15433 }
15434 return ret, nil
15435 }
15436
15437 type ProjectsLocationsDatasetsDicomStoresCreateCall struct {
15438 s *Service
15439 parent string
15440 dicomstore *DicomStore
15441 urlParams_ gensupport.URLParams
15442 ctx_ context.Context
15443 header_ http.Header
15444 }
15445
15446
15447
15448
15449 func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresCreateCall {
15450 c := &ProjectsLocationsDatasetsDicomStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15451 c.parent = parent
15452 c.dicomstore = dicomstore
15453 return c
15454 }
15455
15456
15457
15458
15459 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStoreId string) *ProjectsLocationsDatasetsDicomStoresCreateCall {
15460 c.urlParams_.Set("dicomStoreId", dicomStoreId)
15461 return c
15462 }
15463
15464
15465
15466
15467 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresCreateCall {
15468 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15469 return c
15470 }
15471
15472
15473 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresCreateCall {
15474 c.ctx_ = ctx
15475 return c
15476 }
15477
15478
15479
15480 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header {
15481 if c.header_ == nil {
15482 c.header_ = make(http.Header)
15483 }
15484 return c.header_
15485 }
15486
15487 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) {
15488 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15489 var body io.Reader = nil
15490 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
15491 if err != nil {
15492 return nil, err
15493 }
15494 c.urlParams_.Set("alt", alt)
15495 c.urlParams_.Set("prettyPrint", "false")
15496 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomStores")
15497 urls += "?" + c.urlParams_.Encode()
15498 req, err := http.NewRequest("POST", urls, body)
15499 if err != nil {
15500 return nil, err
15501 }
15502 req.Header = reqHeaders
15503 googleapi.Expand(req.URL, map[string]string{
15504 "parent": c.parent,
15505 })
15506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15507 }
15508
15509
15510
15511
15512
15513
15514 func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
15515 gensupport.SetOptions(c.urlParams_, opts...)
15516 res, err := c.doRequest("json")
15517 if res != nil && res.StatusCode == http.StatusNotModified {
15518 if res.Body != nil {
15519 res.Body.Close()
15520 }
15521 return nil, gensupport.WrapError(&googleapi.Error{
15522 Code: res.StatusCode,
15523 Header: res.Header,
15524 })
15525 }
15526 if err != nil {
15527 return nil, err
15528 }
15529 defer googleapi.CloseBody(res)
15530 if err := googleapi.CheckResponse(res); err != nil {
15531 return nil, gensupport.WrapError(err)
15532 }
15533 ret := &DicomStore{
15534 ServerResponse: googleapi.ServerResponse{
15535 Header: res.Header,
15536 HTTPStatusCode: res.StatusCode,
15537 },
15538 }
15539 target := &ret
15540 if err := gensupport.DecodeResponse(target, res); err != nil {
15541 return nil, err
15542 }
15543 return ret, nil
15544 }
15545
15546 type ProjectsLocationsDatasetsDicomStoresDeidentifyCall struct {
15547 s *Service
15548 sourceStore string
15549 deidentifydicomstorerequest *DeidentifyDicomStoreRequest
15550 urlParams_ gensupport.URLParams
15551 ctx_ context.Context
15552 header_ http.Header
15553 }
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568 func (r *ProjectsLocationsDatasetsDicomStoresService) Deidentify(sourceStore string, deidentifydicomstorerequest *DeidentifyDicomStoreRequest) *ProjectsLocationsDatasetsDicomStoresDeidentifyCall {
15569 c := &ProjectsLocationsDatasetsDicomStoresDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15570 c.sourceStore = sourceStore
15571 c.deidentifydicomstorerequest = deidentifydicomstorerequest
15572 return c
15573 }
15574
15575
15576
15577
15578 func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeidentifyCall {
15579 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15580 return c
15581 }
15582
15583
15584 func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeidentifyCall {
15585 c.ctx_ = ctx
15586 return c
15587 }
15588
15589
15590
15591 func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Header() http.Header {
15592 if c.header_ == nil {
15593 c.header_ = make(http.Header)
15594 }
15595 return c.header_
15596 }
15597
15598 func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) {
15599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15600 var body io.Reader = nil
15601 body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydicomstorerequest)
15602 if err != nil {
15603 return nil, err
15604 }
15605 c.urlParams_.Set("alt", alt)
15606 c.urlParams_.Set("prettyPrint", "false")
15607 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+sourceStore}:deidentify")
15608 urls += "?" + c.urlParams_.Encode()
15609 req, err := http.NewRequest("POST", urls, body)
15610 if err != nil {
15611 return nil, err
15612 }
15613 req.Header = reqHeaders
15614 googleapi.Expand(req.URL, map[string]string{
15615 "sourceStore": c.sourceStore,
15616 })
15617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15618 }
15619
15620
15621
15622
15623
15624
15625 func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
15626 gensupport.SetOptions(c.urlParams_, opts...)
15627 res, err := c.doRequest("json")
15628 if res != nil && res.StatusCode == http.StatusNotModified {
15629 if res.Body != nil {
15630 res.Body.Close()
15631 }
15632 return nil, gensupport.WrapError(&googleapi.Error{
15633 Code: res.StatusCode,
15634 Header: res.Header,
15635 })
15636 }
15637 if err != nil {
15638 return nil, err
15639 }
15640 defer googleapi.CloseBody(res)
15641 if err := googleapi.CheckResponse(res); err != nil {
15642 return nil, gensupport.WrapError(err)
15643 }
15644 ret := &Operation{
15645 ServerResponse: googleapi.ServerResponse{
15646 Header: res.Header,
15647 HTTPStatusCode: res.StatusCode,
15648 },
15649 }
15650 target := &ret
15651 if err := gensupport.DecodeResponse(target, res); err != nil {
15652 return nil, err
15653 }
15654 return ret, nil
15655 }
15656
15657 type ProjectsLocationsDatasetsDicomStoresDeleteCall struct {
15658 s *Service
15659 name string
15660 urlParams_ gensupport.URLParams
15661 ctx_ context.Context
15662 header_ http.Header
15663 }
15664
15665
15666
15667
15668
15669 func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
15670 c := &ProjectsLocationsDatasetsDicomStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15671 c.name = name
15672 return c
15673 }
15674
15675
15676
15677
15678 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
15679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15680 return c
15681 }
15682
15683
15684 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
15685 c.ctx_ = ctx
15686 return c
15687 }
15688
15689
15690
15691 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header {
15692 if c.header_ == nil {
15693 c.header_ = make(http.Header)
15694 }
15695 return c.header_
15696 }
15697
15698 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
15699 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15700 var body io.Reader = nil
15701 c.urlParams_.Set("alt", alt)
15702 c.urlParams_.Set("prettyPrint", "false")
15703 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
15704 urls += "?" + c.urlParams_.Encode()
15705 req, err := http.NewRequest("DELETE", urls, body)
15706 if err != nil {
15707 return nil, err
15708 }
15709 req.Header = reqHeaders
15710 googleapi.Expand(req.URL, map[string]string{
15711 "name": c.name,
15712 })
15713 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15714 }
15715
15716
15717
15718
15719
15720
15721 func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
15722 gensupport.SetOptions(c.urlParams_, opts...)
15723 res, err := c.doRequest("json")
15724 if res != nil && res.StatusCode == http.StatusNotModified {
15725 if res.Body != nil {
15726 res.Body.Close()
15727 }
15728 return nil, gensupport.WrapError(&googleapi.Error{
15729 Code: res.StatusCode,
15730 Header: res.Header,
15731 })
15732 }
15733 if err != nil {
15734 return nil, err
15735 }
15736 defer googleapi.CloseBody(res)
15737 if err := googleapi.CheckResponse(res); err != nil {
15738 return nil, gensupport.WrapError(err)
15739 }
15740 ret := &Empty{
15741 ServerResponse: googleapi.ServerResponse{
15742 Header: res.Header,
15743 HTTPStatusCode: res.StatusCode,
15744 },
15745 }
15746 target := &ret
15747 if err := gensupport.DecodeResponse(target, res); err != nil {
15748 return nil, err
15749 }
15750 return ret, nil
15751 }
15752
15753 type ProjectsLocationsDatasetsDicomStoresExportCall struct {
15754 s *Service
15755 name string
15756 exportdicomdatarequest *ExportDicomDataRequest
15757 urlParams_ gensupport.URLParams
15758 ctx_ context.Context
15759 header_ http.Header
15760 }
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772 func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, exportdicomdatarequest *ExportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresExportCall {
15773 c := &ProjectsLocationsDatasetsDicomStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15774 c.name = name
15775 c.exportdicomdatarequest = exportdicomdatarequest
15776 return c
15777 }
15778
15779
15780
15781
15782 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresExportCall {
15783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15784 return c
15785 }
15786
15787
15788 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresExportCall {
15789 c.ctx_ = ctx
15790 return c
15791 }
15792
15793
15794
15795 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header {
15796 if c.header_ == nil {
15797 c.header_ = make(http.Header)
15798 }
15799 return c.header_
15800 }
15801
15802 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) {
15803 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15804 var body io.Reader = nil
15805 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportdicomdatarequest)
15806 if err != nil {
15807 return nil, err
15808 }
15809 c.urlParams_.Set("alt", alt)
15810 c.urlParams_.Set("prettyPrint", "false")
15811 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
15812 urls += "?" + c.urlParams_.Encode()
15813 req, err := http.NewRequest("POST", urls, body)
15814 if err != nil {
15815 return nil, err
15816 }
15817 req.Header = reqHeaders
15818 googleapi.Expand(req.URL, map[string]string{
15819 "name": c.name,
15820 })
15821 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15822 }
15823
15824
15825
15826
15827
15828
15829 func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
15830 gensupport.SetOptions(c.urlParams_, opts...)
15831 res, err := c.doRequest("json")
15832 if res != nil && res.StatusCode == http.StatusNotModified {
15833 if res.Body != nil {
15834 res.Body.Close()
15835 }
15836 return nil, gensupport.WrapError(&googleapi.Error{
15837 Code: res.StatusCode,
15838 Header: res.Header,
15839 })
15840 }
15841 if err != nil {
15842 return nil, err
15843 }
15844 defer googleapi.CloseBody(res)
15845 if err := googleapi.CheckResponse(res); err != nil {
15846 return nil, gensupport.WrapError(err)
15847 }
15848 ret := &Operation{
15849 ServerResponse: googleapi.ServerResponse{
15850 Header: res.Header,
15851 HTTPStatusCode: res.StatusCode,
15852 },
15853 }
15854 target := &ret
15855 if err := gensupport.DecodeResponse(target, res); err != nil {
15856 return nil, err
15857 }
15858 return ret, nil
15859 }
15860
15861 type ProjectsLocationsDatasetsDicomStoresGetCall struct {
15862 s *Service
15863 name string
15864 urlParams_ gensupport.URLParams
15865 ifNoneMatch_ string
15866 ctx_ context.Context
15867 header_ http.Header
15868 }
15869
15870
15871
15872
15873 func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *ProjectsLocationsDatasetsDicomStoresGetCall {
15874 c := &ProjectsLocationsDatasetsDicomStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15875 c.name = name
15876 return c
15877 }
15878
15879
15880
15881
15882 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetCall {
15883 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15884 return c
15885 }
15886
15887
15888
15889
15890 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetCall {
15891 c.ifNoneMatch_ = entityTag
15892 return c
15893 }
15894
15895
15896 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetCall {
15897 c.ctx_ = ctx
15898 return c
15899 }
15900
15901
15902
15903 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header {
15904 if c.header_ == nil {
15905 c.header_ = make(http.Header)
15906 }
15907 return c.header_
15908 }
15909
15910 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) {
15911 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15912 if c.ifNoneMatch_ != "" {
15913 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15914 }
15915 var body io.Reader = nil
15916 c.urlParams_.Set("alt", alt)
15917 c.urlParams_.Set("prettyPrint", "false")
15918 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
15919 urls += "?" + c.urlParams_.Encode()
15920 req, err := http.NewRequest("GET", urls, body)
15921 if err != nil {
15922 return nil, err
15923 }
15924 req.Header = reqHeaders
15925 googleapi.Expand(req.URL, map[string]string{
15926 "name": c.name,
15927 })
15928 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15929 }
15930
15931
15932
15933
15934
15935
15936 func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
15937 gensupport.SetOptions(c.urlParams_, opts...)
15938 res, err := c.doRequest("json")
15939 if res != nil && res.StatusCode == http.StatusNotModified {
15940 if res.Body != nil {
15941 res.Body.Close()
15942 }
15943 return nil, gensupport.WrapError(&googleapi.Error{
15944 Code: res.StatusCode,
15945 Header: res.Header,
15946 })
15947 }
15948 if err != nil {
15949 return nil, err
15950 }
15951 defer googleapi.CloseBody(res)
15952 if err := googleapi.CheckResponse(res); err != nil {
15953 return nil, gensupport.WrapError(err)
15954 }
15955 ret := &DicomStore{
15956 ServerResponse: googleapi.ServerResponse{
15957 Header: res.Header,
15958 HTTPStatusCode: res.StatusCode,
15959 },
15960 }
15961 target := &ret
15962 if err := gensupport.DecodeResponse(target, res); err != nil {
15963 return nil, err
15964 }
15965 return ret, nil
15966 }
15967
15968 type ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall struct {
15969 s *Service
15970 name string
15971 urlParams_ gensupport.URLParams
15972 ifNoneMatch_ string
15973 ctx_ context.Context
15974 header_ http.Header
15975 }
15976
15977
15978
15979
15980 func (r *ProjectsLocationsDatasetsDicomStoresService) GetDICOMStoreMetrics(name string) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
15981 c := &ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15982 c.name = name
15983 return c
15984 }
15985
15986
15987
15988
15989 func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
15990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15991 return c
15992 }
15993
15994
15995
15996
15997 func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
15998 c.ifNoneMatch_ = entityTag
15999 return c
16000 }
16001
16002
16003 func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
16004 c.ctx_ = ctx
16005 return c
16006 }
16007
16008
16009
16010 func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Header() http.Header {
16011 if c.header_ == nil {
16012 c.header_ = make(http.Header)
16013 }
16014 return c.header_
16015 }
16016
16017 func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) doRequest(alt string) (*http.Response, error) {
16018 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16019 if c.ifNoneMatch_ != "" {
16020 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16021 }
16022 var body io.Reader = nil
16023 c.urlParams_.Set("alt", alt)
16024 c.urlParams_.Set("prettyPrint", "false")
16025 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:getDICOMStoreMetrics")
16026 urls += "?" + c.urlParams_.Encode()
16027 req, err := http.NewRequest("GET", urls, body)
16028 if err != nil {
16029 return nil, err
16030 }
16031 req.Header = reqHeaders
16032 googleapi.Expand(req.URL, map[string]string{
16033 "name": c.name,
16034 })
16035 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16036 }
16037
16038
16039
16040
16041
16042
16043
16044 func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Do(opts ...googleapi.CallOption) (*DicomStoreMetrics, error) {
16045 gensupport.SetOptions(c.urlParams_, opts...)
16046 res, err := c.doRequest("json")
16047 if res != nil && res.StatusCode == http.StatusNotModified {
16048 if res.Body != nil {
16049 res.Body.Close()
16050 }
16051 return nil, gensupport.WrapError(&googleapi.Error{
16052 Code: res.StatusCode,
16053 Header: res.Header,
16054 })
16055 }
16056 if err != nil {
16057 return nil, err
16058 }
16059 defer googleapi.CloseBody(res)
16060 if err := googleapi.CheckResponse(res); err != nil {
16061 return nil, gensupport.WrapError(err)
16062 }
16063 ret := &DicomStoreMetrics{
16064 ServerResponse: googleapi.ServerResponse{
16065 Header: res.Header,
16066 HTTPStatusCode: res.StatusCode,
16067 },
16068 }
16069 target := &ret
16070 if err := gensupport.DecodeResponse(target, res); err != nil {
16071 return nil, err
16072 }
16073 return ret, nil
16074 }
16075
16076 type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct {
16077 s *Service
16078 resource string
16079 urlParams_ gensupport.URLParams
16080 ifNoneMatch_ string
16081 ctx_ context.Context
16082 header_ http.Header
16083 }
16084
16085
16086
16087
16088
16089
16090
16091 func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
16092 c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16093 c.resource = resource
16094 return c
16095 }
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
16110 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
16111 return c
16112 }
16113
16114
16115
16116
16117 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
16118 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16119 return c
16120 }
16121
16122
16123
16124
16125 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
16126 c.ifNoneMatch_ = entityTag
16127 return c
16128 }
16129
16130
16131 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
16132 c.ctx_ = ctx
16133 return c
16134 }
16135
16136
16137
16138 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header {
16139 if c.header_ == nil {
16140 c.header_ = make(http.Header)
16141 }
16142 return c.header_
16143 }
16144
16145 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
16146 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16147 if c.ifNoneMatch_ != "" {
16148 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16149 }
16150 var body io.Reader = nil
16151 c.urlParams_.Set("alt", alt)
16152 c.urlParams_.Set("prettyPrint", "false")
16153 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
16154 urls += "?" + c.urlParams_.Encode()
16155 req, err := http.NewRequest("GET", urls, body)
16156 if err != nil {
16157 return nil, err
16158 }
16159 req.Header = reqHeaders
16160 googleapi.Expand(req.URL, map[string]string{
16161 "resource": c.resource,
16162 })
16163 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16164 }
16165
16166
16167
16168
16169
16170
16171 func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
16172 gensupport.SetOptions(c.urlParams_, opts...)
16173 res, err := c.doRequest("json")
16174 if res != nil && res.StatusCode == http.StatusNotModified {
16175 if res.Body != nil {
16176 res.Body.Close()
16177 }
16178 return nil, gensupport.WrapError(&googleapi.Error{
16179 Code: res.StatusCode,
16180 Header: res.Header,
16181 })
16182 }
16183 if err != nil {
16184 return nil, err
16185 }
16186 defer googleapi.CloseBody(res)
16187 if err := googleapi.CheckResponse(res); err != nil {
16188 return nil, gensupport.WrapError(err)
16189 }
16190 ret := &Policy{
16191 ServerResponse: googleapi.ServerResponse{
16192 Header: res.Header,
16193 HTTPStatusCode: res.StatusCode,
16194 },
16195 }
16196 target := &ret
16197 if err := gensupport.DecodeResponse(target, res); err != nil {
16198 return nil, err
16199 }
16200 return ret, nil
16201 }
16202
16203 type ProjectsLocationsDatasetsDicomStoresImportCall struct {
16204 s *Service
16205 name string
16206 importdicomdatarequest *ImportDicomDataRequest
16207 urlParams_ gensupport.URLParams
16208 ctx_ context.Context
16209 header_ http.Header
16210 }
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222 func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, importdicomdatarequest *ImportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresImportCall {
16223 c := &ProjectsLocationsDatasetsDicomStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16224 c.name = name
16225 c.importdicomdatarequest = importdicomdatarequest
16226 return c
16227 }
16228
16229
16230
16231
16232 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresImportCall {
16233 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16234 return c
16235 }
16236
16237
16238 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresImportCall {
16239 c.ctx_ = ctx
16240 return c
16241 }
16242
16243
16244
16245 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header {
16246 if c.header_ == nil {
16247 c.header_ = make(http.Header)
16248 }
16249 return c.header_
16250 }
16251
16252 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) {
16253 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16254 var body io.Reader = nil
16255 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdicomdatarequest)
16256 if err != nil {
16257 return nil, err
16258 }
16259 c.urlParams_.Set("alt", alt)
16260 c.urlParams_.Set("prettyPrint", "false")
16261 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
16262 urls += "?" + c.urlParams_.Encode()
16263 req, err := http.NewRequest("POST", urls, body)
16264 if err != nil {
16265 return nil, err
16266 }
16267 req.Header = reqHeaders
16268 googleapi.Expand(req.URL, map[string]string{
16269 "name": c.name,
16270 })
16271 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16272 }
16273
16274
16275
16276
16277
16278
16279 func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
16280 gensupport.SetOptions(c.urlParams_, opts...)
16281 res, err := c.doRequest("json")
16282 if res != nil && res.StatusCode == http.StatusNotModified {
16283 if res.Body != nil {
16284 res.Body.Close()
16285 }
16286 return nil, gensupport.WrapError(&googleapi.Error{
16287 Code: res.StatusCode,
16288 Header: res.Header,
16289 })
16290 }
16291 if err != nil {
16292 return nil, err
16293 }
16294 defer googleapi.CloseBody(res)
16295 if err := googleapi.CheckResponse(res); err != nil {
16296 return nil, gensupport.WrapError(err)
16297 }
16298 ret := &Operation{
16299 ServerResponse: googleapi.ServerResponse{
16300 Header: res.Header,
16301 HTTPStatusCode: res.StatusCode,
16302 },
16303 }
16304 target := &ret
16305 if err := gensupport.DecodeResponse(target, res); err != nil {
16306 return nil, err
16307 }
16308 return ret, nil
16309 }
16310
16311 type ProjectsLocationsDatasetsDicomStoresListCall struct {
16312 s *Service
16313 parent string
16314 urlParams_ gensupport.URLParams
16315 ifNoneMatch_ string
16316 ctx_ context.Context
16317 header_ http.Header
16318 }
16319
16320
16321
16322
16323 func (r *ProjectsLocationsDatasetsDicomStoresService) List(parent string) *ProjectsLocationsDatasetsDicomStoresListCall {
16324 c := &ProjectsLocationsDatasetsDicomStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16325 c.parent = parent
16326 return c
16327 }
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsDicomStoresListCall {
16353 c.urlParams_.Set("filter", filter)
16354 return c
16355 }
16356
16357
16358
16359
16360 func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDicomStoresListCall {
16361 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16362 return c
16363 }
16364
16365
16366
16367 func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDicomStoresListCall {
16368 c.urlParams_.Set("pageToken", pageToken)
16369 return c
16370 }
16371
16372
16373
16374
16375 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresListCall {
16376 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16377 return c
16378 }
16379
16380
16381
16382
16383 func (c *ProjectsLocationsDatasetsDicomStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresListCall {
16384 c.ifNoneMatch_ = entityTag
16385 return c
16386 }
16387
16388
16389 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresListCall {
16390 c.ctx_ = ctx
16391 return c
16392 }
16393
16394
16395
16396 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header {
16397 if c.header_ == nil {
16398 c.header_ = make(http.Header)
16399 }
16400 return c.header_
16401 }
16402
16403 func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) {
16404 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16405 if c.ifNoneMatch_ != "" {
16406 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16407 }
16408 var body io.Reader = nil
16409 c.urlParams_.Set("alt", alt)
16410 c.urlParams_.Set("prettyPrint", "false")
16411 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomStores")
16412 urls += "?" + c.urlParams_.Encode()
16413 req, err := http.NewRequest("GET", urls, body)
16414 if err != nil {
16415 return nil, err
16416 }
16417 req.Header = reqHeaders
16418 googleapi.Expand(req.URL, map[string]string{
16419 "parent": c.parent,
16420 })
16421 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16422 }
16423
16424
16425
16426
16427
16428
16429
16430 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.CallOption) (*ListDicomStoresResponse, error) {
16431 gensupport.SetOptions(c.urlParams_, opts...)
16432 res, err := c.doRequest("json")
16433 if res != nil && res.StatusCode == http.StatusNotModified {
16434 if res.Body != nil {
16435 res.Body.Close()
16436 }
16437 return nil, gensupport.WrapError(&googleapi.Error{
16438 Code: res.StatusCode,
16439 Header: res.Header,
16440 })
16441 }
16442 if err != nil {
16443 return nil, err
16444 }
16445 defer googleapi.CloseBody(res)
16446 if err := googleapi.CheckResponse(res); err != nil {
16447 return nil, gensupport.WrapError(err)
16448 }
16449 ret := &ListDicomStoresResponse{
16450 ServerResponse: googleapi.ServerResponse{
16451 Header: res.Header,
16452 HTTPStatusCode: res.StatusCode,
16453 },
16454 }
16455 target := &ret
16456 if err := gensupport.DecodeResponse(target, res); err != nil {
16457 return nil, err
16458 }
16459 return ret, nil
16460 }
16461
16462
16463
16464
16465 func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context, f func(*ListDicomStoresResponse) error) error {
16466 c.ctx_ = ctx
16467 defer c.PageToken(c.urlParams_.Get("pageToken"))
16468 for {
16469 x, err := c.Do()
16470 if err != nil {
16471 return err
16472 }
16473 if err := f(x); err != nil {
16474 return err
16475 }
16476 if x.NextPageToken == "" {
16477 return nil
16478 }
16479 c.PageToken(x.NextPageToken)
16480 }
16481 }
16482
16483 type ProjectsLocationsDatasetsDicomStoresPatchCall struct {
16484 s *Service
16485 name string
16486 dicomstore *DicomStore
16487 urlParams_ gensupport.URLParams
16488 ctx_ context.Context
16489 header_ http.Header
16490 }
16491
16492
16493
16494
16495
16496
16497 func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresPatchCall {
16498 c := &ProjectsLocationsDatasetsDicomStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16499 c.name = name
16500 c.dicomstore = dicomstore
16501 return c
16502 }
16503
16504
16505
16506
16507 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDicomStoresPatchCall {
16508 c.urlParams_.Set("updateMask", updateMask)
16509 return c
16510 }
16511
16512
16513
16514
16515 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresPatchCall {
16516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16517 return c
16518 }
16519
16520
16521 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresPatchCall {
16522 c.ctx_ = ctx
16523 return c
16524 }
16525
16526
16527
16528 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header {
16529 if c.header_ == nil {
16530 c.header_ = make(http.Header)
16531 }
16532 return c.header_
16533 }
16534
16535 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) {
16536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16537 var body io.Reader = nil
16538 body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
16539 if err != nil {
16540 return nil, err
16541 }
16542 c.urlParams_.Set("alt", alt)
16543 c.urlParams_.Set("prettyPrint", "false")
16544 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
16545 urls += "?" + c.urlParams_.Encode()
16546 req, err := http.NewRequest("PATCH", urls, body)
16547 if err != nil {
16548 return nil, err
16549 }
16550 req.Header = reqHeaders
16551 googleapi.Expand(req.URL, map[string]string{
16552 "name": c.name,
16553 })
16554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16555 }
16556
16557
16558
16559
16560
16561
16562 func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
16563 gensupport.SetOptions(c.urlParams_, opts...)
16564 res, err := c.doRequest("json")
16565 if res != nil && res.StatusCode == http.StatusNotModified {
16566 if res.Body != nil {
16567 res.Body.Close()
16568 }
16569 return nil, gensupport.WrapError(&googleapi.Error{
16570 Code: res.StatusCode,
16571 Header: res.Header,
16572 })
16573 }
16574 if err != nil {
16575 return nil, err
16576 }
16577 defer googleapi.CloseBody(res)
16578 if err := googleapi.CheckResponse(res); err != nil {
16579 return nil, gensupport.WrapError(err)
16580 }
16581 ret := &DicomStore{
16582 ServerResponse: googleapi.ServerResponse{
16583 Header: res.Header,
16584 HTTPStatusCode: res.StatusCode,
16585 },
16586 }
16587 target := &ret
16588 if err := gensupport.DecodeResponse(target, res); err != nil {
16589 return nil, err
16590 }
16591 return ret, nil
16592 }
16593
16594 type ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall struct {
16595 s *Service
16596 parent string
16597 dicomWebPath string
16598 urlParams_ gensupport.URLParams
16599 ifNoneMatch_ string
16600 ctx_ context.Context
16601 header_ http.Header
16602 }
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620 func (r *ProjectsLocationsDatasetsDicomStoresService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
16621 c := &ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16622 c.parent = parent
16623 c.dicomWebPath = dicomWebPath
16624 return c
16625 }
16626
16627
16628
16629
16630 func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
16631 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16632 return c
16633 }
16634
16635
16636
16637
16638 func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
16639 c.ifNoneMatch_ = entityTag
16640 return c
16641 }
16642
16643
16644 func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
16645 c.ctx_ = ctx
16646 return c
16647 }
16648
16649
16650
16651 func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Header() http.Header {
16652 if c.header_ == nil {
16653 c.header_ = make(http.Header)
16654 }
16655 return c.header_
16656 }
16657
16658 func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
16659 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16660 if c.ifNoneMatch_ != "" {
16661 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16662 }
16663 var body io.Reader = nil
16664 c.urlParams_.Set("alt", alt)
16665 c.urlParams_.Set("prettyPrint", "false")
16666 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
16667 urls += "?" + c.urlParams_.Encode()
16668 req, err := http.NewRequest("GET", urls, body)
16669 if err != nil {
16670 return nil, err
16671 }
16672 req.Header = reqHeaders
16673 googleapi.Expand(req.URL, map[string]string{
16674 "parent": c.parent,
16675 "dicomWebPath": c.dicomWebPath,
16676 })
16677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16678 }
16679
16680
16681 func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16682 gensupport.SetOptions(c.urlParams_, opts...)
16683 return c.doRequest("")
16684 }
16685
16686 type ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall struct {
16687 s *Service
16688 parent string
16689 dicomWebPath string
16690 urlParams_ gensupport.URLParams
16691 ifNoneMatch_ string
16692 ctx_ context.Context
16693 header_ http.Header
16694 }
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710 func (r *ProjectsLocationsDatasetsDicomStoresService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
16711 c := &ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16712 c.parent = parent
16713 c.dicomWebPath = dicomWebPath
16714 return c
16715 }
16716
16717
16718
16719
16720 func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
16721 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16722 return c
16723 }
16724
16725
16726
16727
16728 func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
16729 c.ifNoneMatch_ = entityTag
16730 return c
16731 }
16732
16733
16734 func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
16735 c.ctx_ = ctx
16736 return c
16737 }
16738
16739
16740
16741 func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Header() http.Header {
16742 if c.header_ == nil {
16743 c.header_ = make(http.Header)
16744 }
16745 return c.header_
16746 }
16747
16748 func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
16749 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16750 if c.ifNoneMatch_ != "" {
16751 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16752 }
16753 var body io.Reader = nil
16754 c.urlParams_.Set("alt", alt)
16755 c.urlParams_.Set("prettyPrint", "false")
16756 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
16757 urls += "?" + c.urlParams_.Encode()
16758 req, err := http.NewRequest("GET", urls, body)
16759 if err != nil {
16760 return nil, err
16761 }
16762 req.Header = reqHeaders
16763 googleapi.Expand(req.URL, map[string]string{
16764 "parent": c.parent,
16765 "dicomWebPath": c.dicomWebPath,
16766 })
16767 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16768 }
16769
16770
16771 func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16772 gensupport.SetOptions(c.urlParams_, opts...)
16773 return c.doRequest("")
16774 }
16775
16776 type ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall struct {
16777 s *Service
16778 parent string
16779 dicomWebPath string
16780 urlParams_ gensupport.URLParams
16781 ifNoneMatch_ string
16782 ctx_ context.Context
16783 header_ http.Header
16784 }
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801 func (r *ProjectsLocationsDatasetsDicomStoresService) SearchForStudies(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
16802 c := &ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16803 c.parent = parent
16804 c.dicomWebPath = dicomWebPath
16805 return c
16806 }
16807
16808
16809
16810
16811 func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
16812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16813 return c
16814 }
16815
16816
16817
16818
16819 func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
16820 c.ifNoneMatch_ = entityTag
16821 return c
16822 }
16823
16824
16825 func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
16826 c.ctx_ = ctx
16827 return c
16828 }
16829
16830
16831
16832 func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Header() http.Header {
16833 if c.header_ == nil {
16834 c.header_ = make(http.Header)
16835 }
16836 return c.header_
16837 }
16838
16839 func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) doRequest(alt string) (*http.Response, error) {
16840 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16841 if c.ifNoneMatch_ != "" {
16842 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16843 }
16844 var body io.Reader = nil
16845 c.urlParams_.Set("alt", alt)
16846 c.urlParams_.Set("prettyPrint", "false")
16847 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
16848 urls += "?" + c.urlParams_.Encode()
16849 req, err := http.NewRequest("GET", urls, body)
16850 if err != nil {
16851 return nil, err
16852 }
16853 req.Header = reqHeaders
16854 googleapi.Expand(req.URL, map[string]string{
16855 "parent": c.parent,
16856 "dicomWebPath": c.dicomWebPath,
16857 })
16858 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16859 }
16860
16861
16862 func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16863 gensupport.SetOptions(c.urlParams_, opts...)
16864 return c.doRequest("")
16865 }
16866
16867 type ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall struct {
16868 s *Service
16869 resource string
16870 setblobstoragesettingsrequest *SetBlobStorageSettingsRequest
16871 urlParams_ gensupport.URLParams
16872 ctx_ context.Context
16873 header_ http.Header
16874 }
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891 func (r *ProjectsLocationsDatasetsDicomStoresService) SetBlobStorageSettings(resource string, setblobstoragesettingsrequest *SetBlobStorageSettingsRequest) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall {
16892 c := &ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16893 c.resource = resource
16894 c.setblobstoragesettingsrequest = setblobstoragesettingsrequest
16895 return c
16896 }
16897
16898
16899
16900
16901 func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall {
16902 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16903 return c
16904 }
16905
16906
16907 func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall {
16908 c.ctx_ = ctx
16909 return c
16910 }
16911
16912
16913
16914 func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Header() http.Header {
16915 if c.header_ == nil {
16916 c.header_ = make(http.Header)
16917 }
16918 return c.header_
16919 }
16920
16921 func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) doRequest(alt string) (*http.Response, error) {
16922 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16923 var body io.Reader = nil
16924 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setblobstoragesettingsrequest)
16925 if err != nil {
16926 return nil, err
16927 }
16928 c.urlParams_.Set("alt", alt)
16929 c.urlParams_.Set("prettyPrint", "false")
16930 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setBlobStorageSettings")
16931 urls += "?" + c.urlParams_.Encode()
16932 req, err := http.NewRequest("POST", urls, body)
16933 if err != nil {
16934 return nil, err
16935 }
16936 req.Header = reqHeaders
16937 googleapi.Expand(req.URL, map[string]string{
16938 "resource": c.resource,
16939 })
16940 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16941 }
16942
16943
16944
16945
16946
16947
16948 func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
16949 gensupport.SetOptions(c.urlParams_, opts...)
16950 res, err := c.doRequest("json")
16951 if res != nil && res.StatusCode == http.StatusNotModified {
16952 if res.Body != nil {
16953 res.Body.Close()
16954 }
16955 return nil, gensupport.WrapError(&googleapi.Error{
16956 Code: res.StatusCode,
16957 Header: res.Header,
16958 })
16959 }
16960 if err != nil {
16961 return nil, err
16962 }
16963 defer googleapi.CloseBody(res)
16964 if err := googleapi.CheckResponse(res); err != nil {
16965 return nil, gensupport.WrapError(err)
16966 }
16967 ret := &Operation{
16968 ServerResponse: googleapi.ServerResponse{
16969 Header: res.Header,
16970 HTTPStatusCode: res.StatusCode,
16971 },
16972 }
16973 target := &ret
16974 if err := gensupport.DecodeResponse(target, res); err != nil {
16975 return nil, err
16976 }
16977 return ret, nil
16978 }
16979
16980 type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct {
16981 s *Service
16982 resource string
16983 setiampolicyrequest *SetIamPolicyRequest
16984 urlParams_ gensupport.URLParams
16985 ctx_ context.Context
16986 header_ http.Header
16987 }
16988
16989
16990
16991
16992
16993
16994
16995
16996 func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
16997 c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16998 c.resource = resource
16999 c.setiampolicyrequest = setiampolicyrequest
17000 return c
17001 }
17002
17003
17004
17005
17006 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
17007 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17008 return c
17009 }
17010
17011
17012 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
17013 c.ctx_ = ctx
17014 return c
17015 }
17016
17017
17018
17019 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header {
17020 if c.header_ == nil {
17021 c.header_ = make(http.Header)
17022 }
17023 return c.header_
17024 }
17025
17026 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
17027 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17028 var body io.Reader = nil
17029 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
17030 if err != nil {
17031 return nil, err
17032 }
17033 c.urlParams_.Set("alt", alt)
17034 c.urlParams_.Set("prettyPrint", "false")
17035 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
17036 urls += "?" + c.urlParams_.Encode()
17037 req, err := http.NewRequest("POST", urls, body)
17038 if err != nil {
17039 return nil, err
17040 }
17041 req.Header = reqHeaders
17042 googleapi.Expand(req.URL, map[string]string{
17043 "resource": c.resource,
17044 })
17045 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17046 }
17047
17048
17049
17050
17051
17052
17053 func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
17054 gensupport.SetOptions(c.urlParams_, opts...)
17055 res, err := c.doRequest("json")
17056 if res != nil && res.StatusCode == http.StatusNotModified {
17057 if res.Body != nil {
17058 res.Body.Close()
17059 }
17060 return nil, gensupport.WrapError(&googleapi.Error{
17061 Code: res.StatusCode,
17062 Header: res.Header,
17063 })
17064 }
17065 if err != nil {
17066 return nil, err
17067 }
17068 defer googleapi.CloseBody(res)
17069 if err := googleapi.CheckResponse(res); err != nil {
17070 return nil, gensupport.WrapError(err)
17071 }
17072 ret := &Policy{
17073 ServerResponse: googleapi.ServerResponse{
17074 Header: res.Header,
17075 HTTPStatusCode: res.StatusCode,
17076 },
17077 }
17078 target := &ret
17079 if err := gensupport.DecodeResponse(target, res); err != nil {
17080 return nil, err
17081 }
17082 return ret, nil
17083 }
17084
17085 type ProjectsLocationsDatasetsDicomStoresStoreInstancesCall struct {
17086 s *Service
17087 parent string
17088 dicomWebPath string
17089 body_ io.Reader
17090 urlParams_ gensupport.URLParams
17091 ctx_ context.Context
17092 header_ http.Header
17093 }
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109 func (r *ProjectsLocationsDatasetsDicomStoresService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall {
17110 c := &ProjectsLocationsDatasetsDicomStoresStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17111 c.parent = parent
17112 c.dicomWebPath = dicomWebPath
17113 c.body_ = body_
17114 return c
17115 }
17116
17117
17118
17119
17120 func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall {
17121 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17122 return c
17123 }
17124
17125
17126 func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall {
17127 c.ctx_ = ctx
17128 return c
17129 }
17130
17131
17132
17133 func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Header() http.Header {
17134 if c.header_ == nil {
17135 c.header_ = make(http.Header)
17136 }
17137 return c.header_
17138 }
17139
17140 func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
17141 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17142 var body io.Reader = nil
17143 body = c.body_
17144 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
17145 urls += "?" + c.urlParams_.Encode()
17146 req, err := http.NewRequest("POST", urls, body)
17147 if err != nil {
17148 return nil, err
17149 }
17150 req.Header = reqHeaders
17151 googleapi.Expand(req.URL, map[string]string{
17152 "parent": c.parent,
17153 "dicomWebPath": c.dicomWebPath,
17154 })
17155 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17156 }
17157
17158
17159 func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
17160 gensupport.SetOptions(c.urlParams_, opts...)
17161 return c.doRequest("")
17162 }
17163
17164 type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct {
17165 s *Service
17166 resource string
17167 testiampermissionsrequest *TestIamPermissionsRequest
17168 urlParams_ gensupport.URLParams
17169 ctx_ context.Context
17170 header_ http.Header
17171 }
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183 func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
17184 c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17185 c.resource = resource
17186 c.testiampermissionsrequest = testiampermissionsrequest
17187 return c
17188 }
17189
17190
17191
17192
17193 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
17194 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17195 return c
17196 }
17197
17198
17199 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
17200 c.ctx_ = ctx
17201 return c
17202 }
17203
17204
17205
17206 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header {
17207 if c.header_ == nil {
17208 c.header_ = make(http.Header)
17209 }
17210 return c.header_
17211 }
17212
17213 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
17214 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17215 var body io.Reader = nil
17216 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
17217 if err != nil {
17218 return nil, err
17219 }
17220 c.urlParams_.Set("alt", alt)
17221 c.urlParams_.Set("prettyPrint", "false")
17222 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
17223 urls += "?" + c.urlParams_.Encode()
17224 req, err := http.NewRequest("POST", urls, body)
17225 if err != nil {
17226 return nil, err
17227 }
17228 req.Header = reqHeaders
17229 googleapi.Expand(req.URL, map[string]string{
17230 "resource": c.resource,
17231 })
17232 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17233 }
17234
17235
17236
17237
17238
17239
17240
17241 func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
17242 gensupport.SetOptions(c.urlParams_, opts...)
17243 res, err := c.doRequest("json")
17244 if res != nil && res.StatusCode == http.StatusNotModified {
17245 if res.Body != nil {
17246 res.Body.Close()
17247 }
17248 return nil, gensupport.WrapError(&googleapi.Error{
17249 Code: res.StatusCode,
17250 Header: res.Header,
17251 })
17252 }
17253 if err != nil {
17254 return nil, err
17255 }
17256 defer googleapi.CloseBody(res)
17257 if err := googleapi.CheckResponse(res); err != nil {
17258 return nil, gensupport.WrapError(err)
17259 }
17260 ret := &TestIamPermissionsResponse{
17261 ServerResponse: googleapi.ServerResponse{
17262 Header: res.Header,
17263 HTTPStatusCode: res.StatusCode,
17264 },
17265 }
17266 target := &ret
17267 if err := gensupport.DecodeResponse(target, res); err != nil {
17268 return nil, err
17269 }
17270 return ret, nil
17271 }
17272
17273 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall struct {
17274 s *Service
17275 study string
17276 urlParams_ gensupport.URLParams
17277 ifNoneMatch_ string
17278 ctx_ context.Context
17279 header_ http.Header
17280 }
17281
17282
17283
17284
17285
17286
17287 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) GetStudyMetrics(study string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
17288 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17289 c.study = study
17290 return c
17291 }
17292
17293
17294
17295
17296 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
17297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17298 return c
17299 }
17300
17301
17302
17303
17304 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
17305 c.ifNoneMatch_ = entityTag
17306 return c
17307 }
17308
17309
17310 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
17311 c.ctx_ = ctx
17312 return c
17313 }
17314
17315
17316
17317 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Header() http.Header {
17318 if c.header_ == nil {
17319 c.header_ = make(http.Header)
17320 }
17321 return c.header_
17322 }
17323
17324 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) doRequest(alt string) (*http.Response, error) {
17325 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17326 if c.ifNoneMatch_ != "" {
17327 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17328 }
17329 var body io.Reader = nil
17330 c.urlParams_.Set("alt", alt)
17331 c.urlParams_.Set("prettyPrint", "false")
17332 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+study}:getStudyMetrics")
17333 urls += "?" + c.urlParams_.Encode()
17334 req, err := http.NewRequest("GET", urls, body)
17335 if err != nil {
17336 return nil, err
17337 }
17338 req.Header = reqHeaders
17339 googleapi.Expand(req.URL, map[string]string{
17340 "study": c.study,
17341 })
17342 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17343 }
17344
17345
17346
17347
17348
17349
17350 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Do(opts ...googleapi.CallOption) (*StudyMetrics, error) {
17351 gensupport.SetOptions(c.urlParams_, opts...)
17352 res, err := c.doRequest("json")
17353 if res != nil && res.StatusCode == http.StatusNotModified {
17354 if res.Body != nil {
17355 res.Body.Close()
17356 }
17357 return nil, gensupport.WrapError(&googleapi.Error{
17358 Code: res.StatusCode,
17359 Header: res.Header,
17360 })
17361 }
17362 if err != nil {
17363 return nil, err
17364 }
17365 defer googleapi.CloseBody(res)
17366 if err := googleapi.CheckResponse(res); err != nil {
17367 return nil, gensupport.WrapError(err)
17368 }
17369 ret := &StudyMetrics{
17370 ServerResponse: googleapi.ServerResponse{
17371 Header: res.Header,
17372 HTTPStatusCode: res.StatusCode,
17373 },
17374 }
17375 target := &ret
17376 if err := gensupport.DecodeResponse(target, res); err != nil {
17377 return nil, err
17378 }
17379 return ret, nil
17380 }
17381
17382 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall struct {
17383 s *Service
17384 resource string
17385 setblobstoragesettingsrequest *SetBlobStorageSettingsRequest
17386 urlParams_ gensupport.URLParams
17387 ctx_ context.Context
17388 header_ http.Header
17389 }
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SetBlobStorageSettings(resource string, setblobstoragesettingsrequest *SetBlobStorageSettingsRequest) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall {
17407 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17408 c.resource = resource
17409 c.setblobstoragesettingsrequest = setblobstoragesettingsrequest
17410 return c
17411 }
17412
17413
17414
17415
17416 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall {
17417 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17418 return c
17419 }
17420
17421
17422 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall {
17423 c.ctx_ = ctx
17424 return c
17425 }
17426
17427
17428
17429 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Header() http.Header {
17430 if c.header_ == nil {
17431 c.header_ = make(http.Header)
17432 }
17433 return c.header_
17434 }
17435
17436 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) doRequest(alt string) (*http.Response, error) {
17437 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17438 var body io.Reader = nil
17439 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setblobstoragesettingsrequest)
17440 if err != nil {
17441 return nil, err
17442 }
17443 c.urlParams_.Set("alt", alt)
17444 c.urlParams_.Set("prettyPrint", "false")
17445 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setBlobStorageSettings")
17446 urls += "?" + c.urlParams_.Encode()
17447 req, err := http.NewRequest("POST", urls, body)
17448 if err != nil {
17449 return nil, err
17450 }
17451 req.Header = reqHeaders
17452 googleapi.Expand(req.URL, map[string]string{
17453 "resource": c.resource,
17454 })
17455 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17456 }
17457
17458
17459
17460
17461
17462
17463 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
17464 gensupport.SetOptions(c.urlParams_, opts...)
17465 res, err := c.doRequest("json")
17466 if res != nil && res.StatusCode == http.StatusNotModified {
17467 if res.Body != nil {
17468 res.Body.Close()
17469 }
17470 return nil, gensupport.WrapError(&googleapi.Error{
17471 Code: res.StatusCode,
17472 Header: res.Header,
17473 })
17474 }
17475 if err != nil {
17476 return nil, err
17477 }
17478 defer googleapi.CloseBody(res)
17479 if err := googleapi.CheckResponse(res); err != nil {
17480 return nil, gensupport.WrapError(err)
17481 }
17482 ret := &Operation{
17483 ServerResponse: googleapi.ServerResponse{
17484 Header: res.Header,
17485 HTTPStatusCode: res.StatusCode,
17486 },
17487 }
17488 target := &ret
17489 if err := gensupport.DecodeResponse(target, res); err != nil {
17490 return nil, err
17491 }
17492 return ret, nil
17493 }
17494
17495 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall struct {
17496 s *Service
17497 series string
17498 urlParams_ gensupport.URLParams
17499 ifNoneMatch_ string
17500 ctx_ context.Context
17501 header_ http.Header
17502 }
17503
17504
17505
17506
17507
17508
17509 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) GetSeriesMetrics(series string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
17510 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17511 c.series = series
17512 return c
17513 }
17514
17515
17516
17517
17518 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
17519 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17520 return c
17521 }
17522
17523
17524
17525
17526 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
17527 c.ifNoneMatch_ = entityTag
17528 return c
17529 }
17530
17531
17532 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
17533 c.ctx_ = ctx
17534 return c
17535 }
17536
17537
17538
17539 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Header() http.Header {
17540 if c.header_ == nil {
17541 c.header_ = make(http.Header)
17542 }
17543 return c.header_
17544 }
17545
17546 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) doRequest(alt string) (*http.Response, error) {
17547 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17548 if c.ifNoneMatch_ != "" {
17549 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17550 }
17551 var body io.Reader = nil
17552 c.urlParams_.Set("alt", alt)
17553 c.urlParams_.Set("prettyPrint", "false")
17554 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+series}:getSeriesMetrics")
17555 urls += "?" + c.urlParams_.Encode()
17556 req, err := http.NewRequest("GET", urls, body)
17557 if err != nil {
17558 return nil, err
17559 }
17560 req.Header = reqHeaders
17561 googleapi.Expand(req.URL, map[string]string{
17562 "series": c.series,
17563 })
17564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17565 }
17566
17567
17568
17569
17570
17571
17572 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Do(opts ...googleapi.CallOption) (*SeriesMetrics, error) {
17573 gensupport.SetOptions(c.urlParams_, opts...)
17574 res, err := c.doRequest("json")
17575 if res != nil && res.StatusCode == http.StatusNotModified {
17576 if res.Body != nil {
17577 res.Body.Close()
17578 }
17579 return nil, gensupport.WrapError(&googleapi.Error{
17580 Code: res.StatusCode,
17581 Header: res.Header,
17582 })
17583 }
17584 if err != nil {
17585 return nil, err
17586 }
17587 defer googleapi.CloseBody(res)
17588 if err := googleapi.CheckResponse(res); err != nil {
17589 return nil, gensupport.WrapError(err)
17590 }
17591 ret := &SeriesMetrics{
17592 ServerResponse: googleapi.ServerResponse{
17593 Header: res.Header,
17594 HTTPStatusCode: res.StatusCode,
17595 },
17596 }
17597 target := &ret
17598 if err := gensupport.DecodeResponse(target, res); err != nil {
17599 return nil, err
17600 }
17601 return ret, nil
17602 }
17603
17604 type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall struct {
17605 s *Service
17606 resource string
17607 urlParams_ gensupport.URLParams
17608 ifNoneMatch_ string
17609 ctx_ context.Context
17610 header_ http.Header
17611 }
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621 func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) GetStorageInfo(resource string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
17622 c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17623 c.resource = resource
17624 return c
17625 }
17626
17627
17628
17629
17630 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
17631 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17632 return c
17633 }
17634
17635
17636
17637
17638 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
17639 c.ifNoneMatch_ = entityTag
17640 return c
17641 }
17642
17643
17644 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
17645 c.ctx_ = ctx
17646 return c
17647 }
17648
17649
17650
17651 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Header() http.Header {
17652 if c.header_ == nil {
17653 c.header_ = make(http.Header)
17654 }
17655 return c.header_
17656 }
17657
17658 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) doRequest(alt string) (*http.Response, error) {
17659 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17660 if c.ifNoneMatch_ != "" {
17661 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17662 }
17663 var body io.Reader = nil
17664 c.urlParams_.Set("alt", alt)
17665 c.urlParams_.Set("prettyPrint", "false")
17666 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getStorageInfo")
17667 urls += "?" + c.urlParams_.Encode()
17668 req, err := http.NewRequest("GET", urls, body)
17669 if err != nil {
17670 return nil, err
17671 }
17672 req.Header = reqHeaders
17673 googleapi.Expand(req.URL, map[string]string{
17674 "resource": c.resource,
17675 })
17676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17677 }
17678
17679
17680
17681
17682
17683
17684 func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Do(opts ...googleapi.CallOption) (*StorageInfo, error) {
17685 gensupport.SetOptions(c.urlParams_, opts...)
17686 res, err := c.doRequest("json")
17687 if res != nil && res.StatusCode == http.StatusNotModified {
17688 if res.Body != nil {
17689 res.Body.Close()
17690 }
17691 return nil, gensupport.WrapError(&googleapi.Error{
17692 Code: res.StatusCode,
17693 Header: res.Header,
17694 })
17695 }
17696 if err != nil {
17697 return nil, err
17698 }
17699 defer googleapi.CloseBody(res)
17700 if err := googleapi.CheckResponse(res); err != nil {
17701 return nil, gensupport.WrapError(err)
17702 }
17703 ret := &StorageInfo{
17704 ServerResponse: googleapi.ServerResponse{
17705 Header: res.Header,
17706 HTTPStatusCode: res.StatusCode,
17707 },
17708 }
17709 target := &ret
17710 if err := gensupport.DecodeResponse(target, res); err != nil {
17711 return nil, err
17712 }
17713 return ret, nil
17714 }
17715
17716 type ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall struct {
17717 s *Service
17718 parent string
17719 dicomWebPath string
17720 urlParams_ gensupport.URLParams
17721 ctx_ context.Context
17722 header_ http.Header
17723 }
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736 func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall {
17737 c := &ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17738 c.parent = parent
17739 c.dicomWebPath = dicomWebPath
17740 return c
17741 }
17742
17743
17744
17745
17746 func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall {
17747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17748 return c
17749 }
17750
17751
17752 func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall {
17753 c.ctx_ = ctx
17754 return c
17755 }
17756
17757
17758
17759 func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Header() http.Header {
17760 if c.header_ == nil {
17761 c.header_ = make(http.Header)
17762 }
17763 return c.header_
17764 }
17765
17766 func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) doRequest(alt string) (*http.Response, error) {
17767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17768 var body io.Reader = nil
17769 c.urlParams_.Set("alt", alt)
17770 c.urlParams_.Set("prettyPrint", "false")
17771 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
17772 urls += "?" + c.urlParams_.Encode()
17773 req, err := http.NewRequest("DELETE", urls, body)
17774 if err != nil {
17775 return nil, err
17776 }
17777 req.Header = reqHeaders
17778 googleapi.Expand(req.URL, map[string]string{
17779 "parent": c.parent,
17780 "dicomWebPath": c.dicomWebPath,
17781 })
17782 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17783 }
17784
17785
17786
17787
17788
17789
17790 func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
17791 gensupport.SetOptions(c.urlParams_, opts...)
17792 res, err := c.doRequest("json")
17793 if res != nil && res.StatusCode == http.StatusNotModified {
17794 if res.Body != nil {
17795 res.Body.Close()
17796 }
17797 return nil, gensupport.WrapError(&googleapi.Error{
17798 Code: res.StatusCode,
17799 Header: res.Header,
17800 })
17801 }
17802 if err != nil {
17803 return nil, err
17804 }
17805 defer googleapi.CloseBody(res)
17806 if err := googleapi.CheckResponse(res); err != nil {
17807 return nil, gensupport.WrapError(err)
17808 }
17809 ret := &Operation{
17810 ServerResponse: googleapi.ServerResponse{
17811 Header: res.Header,
17812 HTTPStatusCode: res.StatusCode,
17813 },
17814 }
17815 target := &ret
17816 if err := gensupport.DecodeResponse(target, res); err != nil {
17817 return nil, err
17818 }
17819 return ret, nil
17820 }
17821
17822 type ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall struct {
17823 s *Service
17824 parent string
17825 dicomWebPath string
17826 urlParams_ gensupport.URLParams
17827 ifNoneMatch_ string
17828 ctx_ context.Context
17829 header_ http.Header
17830 }
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848 func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) RetrieveMetadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
17849 c := &ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17850 c.parent = parent
17851 c.dicomWebPath = dicomWebPath
17852 return c
17853 }
17854
17855
17856
17857
17858 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
17859 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17860 return c
17861 }
17862
17863
17864
17865
17866 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
17867 c.ifNoneMatch_ = entityTag
17868 return c
17869 }
17870
17871
17872 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
17873 c.ctx_ = ctx
17874 return c
17875 }
17876
17877
17878
17879 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Header() http.Header {
17880 if c.header_ == nil {
17881 c.header_ = make(http.Header)
17882 }
17883 return c.header_
17884 }
17885
17886 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) {
17887 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17888 if c.ifNoneMatch_ != "" {
17889 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17890 }
17891 var body io.Reader = nil
17892 c.urlParams_.Set("alt", alt)
17893 c.urlParams_.Set("prettyPrint", "false")
17894 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
17895 urls += "?" + c.urlParams_.Encode()
17896 req, err := http.NewRequest("GET", urls, body)
17897 if err != nil {
17898 return nil, err
17899 }
17900 req.Header = reqHeaders
17901 googleapi.Expand(req.URL, map[string]string{
17902 "parent": c.parent,
17903 "dicomWebPath": c.dicomWebPath,
17904 })
17905 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17906 }
17907
17908
17909 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
17910 gensupport.SetOptions(c.urlParams_, opts...)
17911 return c.doRequest("")
17912 }
17913
17914 type ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall struct {
17915 s *Service
17916 parent string
17917 dicomWebPath string
17918 urlParams_ gensupport.URLParams
17919 ifNoneMatch_ string
17920 ctx_ context.Context
17921 header_ http.Header
17922 }
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939 func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) RetrieveStudy(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
17940 c := &ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17941 c.parent = parent
17942 c.dicomWebPath = dicomWebPath
17943 return c
17944 }
17945
17946
17947
17948
17949 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
17950 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17951 return c
17952 }
17953
17954
17955
17956
17957 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
17958 c.ifNoneMatch_ = entityTag
17959 return c
17960 }
17961
17962
17963 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
17964 c.ctx_ = ctx
17965 return c
17966 }
17967
17968
17969
17970 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Header() http.Header {
17971 if c.header_ == nil {
17972 c.header_ = make(http.Header)
17973 }
17974 return c.header_
17975 }
17976
17977 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) {
17978 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17979 if c.ifNoneMatch_ != "" {
17980 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17981 }
17982 var body io.Reader = nil
17983 c.urlParams_.Set("alt", alt)
17984 c.urlParams_.Set("prettyPrint", "false")
17985 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
17986 urls += "?" + c.urlParams_.Encode()
17987 req, err := http.NewRequest("GET", urls, body)
17988 if err != nil {
17989 return nil, err
17990 }
17991 req.Header = reqHeaders
17992 googleapi.Expand(req.URL, map[string]string{
17993 "parent": c.parent,
17994 "dicomWebPath": c.dicomWebPath,
17995 })
17996 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17997 }
17998
17999
18000 func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18001 gensupport.SetOptions(c.urlParams_, opts...)
18002 return c.doRequest("")
18003 }
18004
18005 type ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall struct {
18006 s *Service
18007 parent string
18008 dicomWebPath string
18009 urlParams_ gensupport.URLParams
18010 ifNoneMatch_ string
18011 ctx_ context.Context
18012 header_ http.Header
18013 }
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031 func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
18032 c := &ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18033 c.parent = parent
18034 c.dicomWebPath = dicomWebPath
18035 return c
18036 }
18037
18038
18039
18040
18041 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
18042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18043 return c
18044 }
18045
18046
18047
18048
18049 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
18050 c.ifNoneMatch_ = entityTag
18051 return c
18052 }
18053
18054
18055 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
18056 c.ctx_ = ctx
18057 return c
18058 }
18059
18060
18061
18062 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Header() http.Header {
18063 if c.header_ == nil {
18064 c.header_ = make(http.Header)
18065 }
18066 return c.header_
18067 }
18068
18069 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
18070 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18071 if c.ifNoneMatch_ != "" {
18072 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18073 }
18074 var body io.Reader = nil
18075 c.urlParams_.Set("alt", alt)
18076 c.urlParams_.Set("prettyPrint", "false")
18077 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18078 urls += "?" + c.urlParams_.Encode()
18079 req, err := http.NewRequest("GET", urls, body)
18080 if err != nil {
18081 return nil, err
18082 }
18083 req.Header = reqHeaders
18084 googleapi.Expand(req.URL, map[string]string{
18085 "parent": c.parent,
18086 "dicomWebPath": c.dicomWebPath,
18087 })
18088 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18089 }
18090
18091
18092 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18093 gensupport.SetOptions(c.urlParams_, opts...)
18094 return c.doRequest("")
18095 }
18096
18097 type ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall struct {
18098 s *Service
18099 parent string
18100 dicomWebPath string
18101 urlParams_ gensupport.URLParams
18102 ifNoneMatch_ string
18103 ctx_ context.Context
18104 header_ http.Header
18105 }
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121 func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
18122 c := &ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18123 c.parent = parent
18124 c.dicomWebPath = dicomWebPath
18125 return c
18126 }
18127
18128
18129
18130
18131 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
18132 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18133 return c
18134 }
18135
18136
18137
18138
18139 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
18140 c.ifNoneMatch_ = entityTag
18141 return c
18142 }
18143
18144
18145 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
18146 c.ctx_ = ctx
18147 return c
18148 }
18149
18150
18151
18152 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Header() http.Header {
18153 if c.header_ == nil {
18154 c.header_ = make(http.Header)
18155 }
18156 return c.header_
18157 }
18158
18159 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
18160 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18161 if c.ifNoneMatch_ != "" {
18162 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18163 }
18164 var body io.Reader = nil
18165 c.urlParams_.Set("alt", alt)
18166 c.urlParams_.Set("prettyPrint", "false")
18167 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18168 urls += "?" + c.urlParams_.Encode()
18169 req, err := http.NewRequest("GET", urls, body)
18170 if err != nil {
18171 return nil, err
18172 }
18173 req.Header = reqHeaders
18174 googleapi.Expand(req.URL, map[string]string{
18175 "parent": c.parent,
18176 "dicomWebPath": c.dicomWebPath,
18177 })
18178 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18179 }
18180
18181
18182 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18183 gensupport.SetOptions(c.urlParams_, opts...)
18184 return c.doRequest("")
18185 }
18186
18187 type ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall struct {
18188 s *Service
18189 parent string
18190 dicomWebPath string
18191 body_ io.Reader
18192 urlParams_ gensupport.URLParams
18193 ctx_ context.Context
18194 header_ http.Header
18195 }
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211 func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall {
18212 c := &ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18213 c.parent = parent
18214 c.dicomWebPath = dicomWebPath
18215 c.body_ = body_
18216 return c
18217 }
18218
18219
18220
18221
18222 func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall {
18223 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18224 return c
18225 }
18226
18227
18228 func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall {
18229 c.ctx_ = ctx
18230 return c
18231 }
18232
18233
18234
18235 func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Header() http.Header {
18236 if c.header_ == nil {
18237 c.header_ = make(http.Header)
18238 }
18239 return c.header_
18240 }
18241
18242 func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
18243 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18244 var body io.Reader = nil
18245 body = c.body_
18246 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18247 urls += "?" + c.urlParams_.Encode()
18248 req, err := http.NewRequest("POST", urls, body)
18249 if err != nil {
18250 return nil, err
18251 }
18252 req.Header = reqHeaders
18253 googleapi.Expand(req.URL, map[string]string{
18254 "parent": c.parent,
18255 "dicomWebPath": c.dicomWebPath,
18256 })
18257 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18258 }
18259
18260
18261 func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18262 gensupport.SetOptions(c.urlParams_, opts...)
18263 return c.doRequest("")
18264 }
18265
18266 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall struct {
18267 s *Service
18268 parent string
18269 dicomWebPath string
18270 urlParams_ gensupport.URLParams
18271 ctx_ context.Context
18272 header_ http.Header
18273 }
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall {
18289 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18290 c.parent = parent
18291 c.dicomWebPath = dicomWebPath
18292 return c
18293 }
18294
18295
18296
18297
18298 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall {
18299 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18300 return c
18301 }
18302
18303
18304 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall {
18305 c.ctx_ = ctx
18306 return c
18307 }
18308
18309
18310
18311 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Header() http.Header {
18312 if c.header_ == nil {
18313 c.header_ = make(http.Header)
18314 }
18315 return c.header_
18316 }
18317
18318 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) {
18319 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18320 var body io.Reader = nil
18321 c.urlParams_.Set("alt", alt)
18322 c.urlParams_.Set("prettyPrint", "false")
18323 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18324 urls += "?" + c.urlParams_.Encode()
18325 req, err := http.NewRequest("DELETE", urls, body)
18326 if err != nil {
18327 return nil, err
18328 }
18329 req.Header = reqHeaders
18330 googleapi.Expand(req.URL, map[string]string{
18331 "parent": c.parent,
18332 "dicomWebPath": c.dicomWebPath,
18333 })
18334 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18335 }
18336
18337
18338
18339
18340
18341
18342 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
18343 gensupport.SetOptions(c.urlParams_, opts...)
18344 res, err := c.doRequest("json")
18345 if res != nil && res.StatusCode == http.StatusNotModified {
18346 if res.Body != nil {
18347 res.Body.Close()
18348 }
18349 return nil, gensupport.WrapError(&googleapi.Error{
18350 Code: res.StatusCode,
18351 Header: res.Header,
18352 })
18353 }
18354 if err != nil {
18355 return nil, err
18356 }
18357 defer googleapi.CloseBody(res)
18358 if err := googleapi.CheckResponse(res); err != nil {
18359 return nil, gensupport.WrapError(err)
18360 }
18361 ret := &Operation{
18362 ServerResponse: googleapi.ServerResponse{
18363 Header: res.Header,
18364 HTTPStatusCode: res.StatusCode,
18365 },
18366 }
18367 target := &ret
18368 if err := gensupport.DecodeResponse(target, res); err != nil {
18369 return nil, err
18370 }
18371 return ret, nil
18372 }
18373
18374 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall struct {
18375 s *Service
18376 parent string
18377 dicomWebPath string
18378 urlParams_ gensupport.URLParams
18379 ifNoneMatch_ string
18380 ctx_ context.Context
18381 header_ http.Header
18382 }
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) RetrieveMetadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
18401 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18402 c.parent = parent
18403 c.dicomWebPath = dicomWebPath
18404 return c
18405 }
18406
18407
18408
18409
18410 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
18411 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18412 return c
18413 }
18414
18415
18416
18417
18418 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
18419 c.ifNoneMatch_ = entityTag
18420 return c
18421 }
18422
18423
18424 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
18425 c.ctx_ = ctx
18426 return c
18427 }
18428
18429
18430
18431 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Header() http.Header {
18432 if c.header_ == nil {
18433 c.header_ = make(http.Header)
18434 }
18435 return c.header_
18436 }
18437
18438 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) {
18439 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18440 if c.ifNoneMatch_ != "" {
18441 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18442 }
18443 var body io.Reader = nil
18444 c.urlParams_.Set("alt", alt)
18445 c.urlParams_.Set("prettyPrint", "false")
18446 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18447 urls += "?" + c.urlParams_.Encode()
18448 req, err := http.NewRequest("GET", urls, body)
18449 if err != nil {
18450 return nil, err
18451 }
18452 req.Header = reqHeaders
18453 googleapi.Expand(req.URL, map[string]string{
18454 "parent": c.parent,
18455 "dicomWebPath": c.dicomWebPath,
18456 })
18457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18458 }
18459
18460
18461 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18462 gensupport.SetOptions(c.urlParams_, opts...)
18463 return c.doRequest("")
18464 }
18465
18466 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall struct {
18467 s *Service
18468 parent string
18469 dicomWebPath string
18470 urlParams_ gensupport.URLParams
18471 ifNoneMatch_ string
18472 ctx_ context.Context
18473 header_ http.Header
18474 }
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) RetrieveSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
18492 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18493 c.parent = parent
18494 c.dicomWebPath = dicomWebPath
18495 return c
18496 }
18497
18498
18499
18500
18501 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
18502 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18503 return c
18504 }
18505
18506
18507
18508
18509 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
18510 c.ifNoneMatch_ = entityTag
18511 return c
18512 }
18513
18514
18515 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
18516 c.ctx_ = ctx
18517 return c
18518 }
18519
18520
18521
18522 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Header() http.Header {
18523 if c.header_ == nil {
18524 c.header_ = make(http.Header)
18525 }
18526 return c.header_
18527 }
18528
18529 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) {
18530 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18531 if c.ifNoneMatch_ != "" {
18532 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18533 }
18534 var body io.Reader = nil
18535 c.urlParams_.Set("alt", alt)
18536 c.urlParams_.Set("prettyPrint", "false")
18537 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18538 urls += "?" + c.urlParams_.Encode()
18539 req, err := http.NewRequest("GET", urls, body)
18540 if err != nil {
18541 return nil, err
18542 }
18543 req.Header = reqHeaders
18544 googleapi.Expand(req.URL, map[string]string{
18545 "parent": c.parent,
18546 "dicomWebPath": c.dicomWebPath,
18547 })
18548 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18549 }
18550
18551
18552 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18553 gensupport.SetOptions(c.urlParams_, opts...)
18554 return c.doRequest("")
18555 }
18556
18557 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall struct {
18558 s *Service
18559 parent string
18560 dicomWebPath string
18561 urlParams_ gensupport.URLParams
18562 ifNoneMatch_ string
18563 ctx_ context.Context
18564 header_ http.Header
18565 }
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
18584 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18585 c.parent = parent
18586 c.dicomWebPath = dicomWebPath
18587 return c
18588 }
18589
18590
18591
18592
18593 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
18594 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18595 return c
18596 }
18597
18598
18599
18600
18601 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
18602 c.ifNoneMatch_ = entityTag
18603 return c
18604 }
18605
18606
18607 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
18608 c.ctx_ = ctx
18609 return c
18610 }
18611
18612
18613
18614 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Header() http.Header {
18615 if c.header_ == nil {
18616 c.header_ = make(http.Header)
18617 }
18618 return c.header_
18619 }
18620
18621 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
18622 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18623 if c.ifNoneMatch_ != "" {
18624 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18625 }
18626 var body io.Reader = nil
18627 c.urlParams_.Set("alt", alt)
18628 c.urlParams_.Set("prettyPrint", "false")
18629 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18630 urls += "?" + c.urlParams_.Encode()
18631 req, err := http.NewRequest("GET", urls, body)
18632 if err != nil {
18633 return nil, err
18634 }
18635 req.Header = reqHeaders
18636 googleapi.Expand(req.URL, map[string]string{
18637 "parent": c.parent,
18638 "dicomWebPath": c.dicomWebPath,
18639 })
18640 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18641 }
18642
18643
18644 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18645 gensupport.SetOptions(c.urlParams_, opts...)
18646 return c.doRequest("")
18647 }
18648
18649 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall struct {
18650 s *Service
18651 parent string
18652 dicomWebPath string
18653 urlParams_ gensupport.URLParams
18654 ctx_ context.Context
18655 header_ http.Header
18656 }
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall {
18672 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18673 c.parent = parent
18674 c.dicomWebPath = dicomWebPath
18675 return c
18676 }
18677
18678
18679
18680
18681 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall {
18682 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18683 return c
18684 }
18685
18686
18687 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall {
18688 c.ctx_ = ctx
18689 return c
18690 }
18691
18692
18693
18694 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Header() http.Header {
18695 if c.header_ == nil {
18696 c.header_ = make(http.Header)
18697 }
18698 return c.header_
18699 }
18700
18701 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
18702 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18703 var body io.Reader = nil
18704 c.urlParams_.Set("alt", alt)
18705 c.urlParams_.Set("prettyPrint", "false")
18706 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18707 urls += "?" + c.urlParams_.Encode()
18708 req, err := http.NewRequest("DELETE", urls, body)
18709 if err != nil {
18710 return nil, err
18711 }
18712 req.Header = reqHeaders
18713 googleapi.Expand(req.URL, map[string]string{
18714 "parent": c.parent,
18715 "dicomWebPath": c.dicomWebPath,
18716 })
18717 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18718 }
18719
18720
18721
18722
18723
18724
18725 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
18726 gensupport.SetOptions(c.urlParams_, opts...)
18727 res, err := c.doRequest("json")
18728 if res != nil && res.StatusCode == http.StatusNotModified {
18729 if res.Body != nil {
18730 res.Body.Close()
18731 }
18732 return nil, gensupport.WrapError(&googleapi.Error{
18733 Code: res.StatusCode,
18734 Header: res.Header,
18735 })
18736 }
18737 if err != nil {
18738 return nil, err
18739 }
18740 defer googleapi.CloseBody(res)
18741 if err := googleapi.CheckResponse(res); err != nil {
18742 return nil, gensupport.WrapError(err)
18743 }
18744 ret := &Empty{
18745 ServerResponse: googleapi.ServerResponse{
18746 Header: res.Header,
18747 HTTPStatusCode: res.StatusCode,
18748 },
18749 }
18750 target := &ret
18751 if err := gensupport.DecodeResponse(target, res); err != nil {
18752 return nil, err
18753 }
18754 return ret, nil
18755 }
18756
18757 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall struct {
18758 s *Service
18759 parent string
18760 dicomWebPath string
18761 urlParams_ gensupport.URLParams
18762 ifNoneMatch_ string
18763 ctx_ context.Context
18764 header_ http.Header
18765 }
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) RetrieveInstance(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
18786 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18787 c.parent = parent
18788 c.dicomWebPath = dicomWebPath
18789 return c
18790 }
18791
18792
18793
18794
18795 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
18796 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18797 return c
18798 }
18799
18800
18801
18802
18803 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
18804 c.ifNoneMatch_ = entityTag
18805 return c
18806 }
18807
18808
18809 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
18810 c.ctx_ = ctx
18811 return c
18812 }
18813
18814
18815
18816 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Header() http.Header {
18817 if c.header_ == nil {
18818 c.header_ = make(http.Header)
18819 }
18820 return c.header_
18821 }
18822
18823 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) {
18824 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18825 if c.ifNoneMatch_ != "" {
18826 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18827 }
18828 var body io.Reader = nil
18829 c.urlParams_.Set("alt", alt)
18830 c.urlParams_.Set("prettyPrint", "false")
18831 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18832 urls += "?" + c.urlParams_.Encode()
18833 req, err := http.NewRequest("GET", urls, body)
18834 if err != nil {
18835 return nil, err
18836 }
18837 req.Header = reqHeaders
18838 googleapi.Expand(req.URL, map[string]string{
18839 "parent": c.parent,
18840 "dicomWebPath": c.dicomWebPath,
18841 })
18842 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18843 }
18844
18845
18846 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18847 gensupport.SetOptions(c.urlParams_, opts...)
18848 return c.doRequest("")
18849 }
18850
18851 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall struct {
18852 s *Service
18853 parent string
18854 dicomWebPath string
18855 urlParams_ gensupport.URLParams
18856 ifNoneMatch_ string
18857 ctx_ context.Context
18858 header_ http.Header
18859 }
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) RetrieveMetadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
18880 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18881 c.parent = parent
18882 c.dicomWebPath = dicomWebPath
18883 return c
18884 }
18885
18886
18887
18888
18889 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
18890 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18891 return c
18892 }
18893
18894
18895
18896
18897 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
18898 c.ifNoneMatch_ = entityTag
18899 return c
18900 }
18901
18902
18903 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
18904 c.ctx_ = ctx
18905 return c
18906 }
18907
18908
18909
18910 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Header() http.Header {
18911 if c.header_ == nil {
18912 c.header_ = make(http.Header)
18913 }
18914 return c.header_
18915 }
18916
18917 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) {
18918 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18919 if c.ifNoneMatch_ != "" {
18920 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18921 }
18922 var body io.Reader = nil
18923 c.urlParams_.Set("alt", alt)
18924 c.urlParams_.Set("prettyPrint", "false")
18925 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
18926 urls += "?" + c.urlParams_.Encode()
18927 req, err := http.NewRequest("GET", urls, body)
18928 if err != nil {
18929 return nil, err
18930 }
18931 req.Header = reqHeaders
18932 googleapi.Expand(req.URL, map[string]string{
18933 "parent": c.parent,
18934 "dicomWebPath": c.dicomWebPath,
18935 })
18936 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18937 }
18938
18939
18940 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
18941 gensupport.SetOptions(c.urlParams_, opts...)
18942 return c.doRequest("")
18943 }
18944
18945 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall struct {
18946 s *Service
18947 parent string
18948 dicomWebPath string
18949 urlParams_ gensupport.URLParams
18950 ifNoneMatch_ string
18951 ctx_ context.Context
18952 header_ http.Header
18953 }
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) RetrieveRendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
18974 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18975 c.parent = parent
18976 c.dicomWebPath = dicomWebPath
18977 return c
18978 }
18979
18980
18981
18982
18983 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
18984 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18985 return c
18986 }
18987
18988
18989
18990
18991 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
18992 c.ifNoneMatch_ = entityTag
18993 return c
18994 }
18995
18996
18997 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
18998 c.ctx_ = ctx
18999 return c
19000 }
19001
19002
19003
19004 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Header() http.Header {
19005 if c.header_ == nil {
19006 c.header_ = make(http.Header)
19007 }
19008 return c.header_
19009 }
19010
19011 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) {
19012 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19013 if c.ifNoneMatch_ != "" {
19014 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19015 }
19016 var body io.Reader = nil
19017 c.urlParams_.Set("alt", alt)
19018 c.urlParams_.Set("prettyPrint", "false")
19019 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
19020 urls += "?" + c.urlParams_.Encode()
19021 req, err := http.NewRequest("GET", urls, body)
19022 if err != nil {
19023 return nil, err
19024 }
19025 req.Header = reqHeaders
19026 googleapi.Expand(req.URL, map[string]string{
19027 "parent": c.parent,
19028 "dicomWebPath": c.dicomWebPath,
19029 })
19030 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19031 }
19032
19033
19034 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
19035 gensupport.SetOptions(c.urlParams_, opts...)
19036 return c.doRequest("")
19037 }
19038
19039 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall struct {
19040 s *Service
19041 parent string
19042 dicomWebPath string
19043 urlParams_ gensupport.URLParams
19044 ifNoneMatch_ string
19045 ctx_ context.Context
19046 header_ http.Header
19047 }
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService) RetrieveBulkdata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
19067 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19068 c.parent = parent
19069 c.dicomWebPath = dicomWebPath
19070 return c
19071 }
19072
19073
19074
19075
19076 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
19077 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19078 return c
19079 }
19080
19081
19082
19083
19084 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
19085 c.ifNoneMatch_ = entityTag
19086 return c
19087 }
19088
19089
19090 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
19091 c.ctx_ = ctx
19092 return c
19093 }
19094
19095
19096
19097 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Header() http.Header {
19098 if c.header_ == nil {
19099 c.header_ = make(http.Header)
19100 }
19101 return c.header_
19102 }
19103
19104 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) doRequest(alt string) (*http.Response, error) {
19105 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19106 if c.ifNoneMatch_ != "" {
19107 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19108 }
19109 var body io.Reader = nil
19110 c.urlParams_.Set("alt", alt)
19111 c.urlParams_.Set("prettyPrint", "false")
19112 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
19113 urls += "?" + c.urlParams_.Encode()
19114 req, err := http.NewRequest("GET", urls, body)
19115 if err != nil {
19116 return nil, err
19117 }
19118 req.Header = reqHeaders
19119 googleapi.Expand(req.URL, map[string]string{
19120 "parent": c.parent,
19121 "dicomWebPath": c.dicomWebPath,
19122 })
19123 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19124 }
19125
19126
19127 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
19128 gensupport.SetOptions(c.urlParams_, opts...)
19129 return c.doRequest("")
19130 }
19131
19132 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall struct {
19133 s *Service
19134 parent string
19135 dicomWebPath string
19136 urlParams_ gensupport.URLParams
19137 ifNoneMatch_ string
19138 ctx_ context.Context
19139 header_ http.Header
19140 }
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService) RetrieveFrames(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
19159 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19160 c.parent = parent
19161 c.dicomWebPath = dicomWebPath
19162 return c
19163 }
19164
19165
19166
19167
19168 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
19169 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19170 return c
19171 }
19172
19173
19174
19175
19176 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
19177 c.ifNoneMatch_ = entityTag
19178 return c
19179 }
19180
19181
19182 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
19183 c.ctx_ = ctx
19184 return c
19185 }
19186
19187
19188
19189 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Header() http.Header {
19190 if c.header_ == nil {
19191 c.header_ = make(http.Header)
19192 }
19193 return c.header_
19194 }
19195
19196 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) {
19197 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19198 if c.ifNoneMatch_ != "" {
19199 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19200 }
19201 var body io.Reader = nil
19202 c.urlParams_.Set("alt", alt)
19203 c.urlParams_.Set("prettyPrint", "false")
19204 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
19205 urls += "?" + c.urlParams_.Encode()
19206 req, err := http.NewRequest("GET", urls, body)
19207 if err != nil {
19208 return nil, err
19209 }
19210 req.Header = reqHeaders
19211 googleapi.Expand(req.URL, map[string]string{
19212 "parent": c.parent,
19213 "dicomWebPath": c.dicomWebPath,
19214 })
19215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19216 }
19217
19218
19219 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
19220 gensupport.SetOptions(c.urlParams_, opts...)
19221 return c.doRequest("")
19222 }
19223
19224 type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall struct {
19225 s *Service
19226 parent string
19227 dicomWebPath string
19228 urlParams_ gensupport.URLParams
19229 ifNoneMatch_ string
19230 ctx_ context.Context
19231 header_ http.Header
19232 }
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252 func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService) RetrieveRendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
19253 c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19254 c.parent = parent
19255 c.dicomWebPath = dicomWebPath
19256 return c
19257 }
19258
19259
19260
19261
19262 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
19263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19264 return c
19265 }
19266
19267
19268
19269
19270 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
19271 c.ifNoneMatch_ = entityTag
19272 return c
19273 }
19274
19275
19276 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
19277 c.ctx_ = ctx
19278 return c
19279 }
19280
19281
19282
19283 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Header() http.Header {
19284 if c.header_ == nil {
19285 c.header_ = make(http.Header)
19286 }
19287 return c.header_
19288 }
19289
19290 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) {
19291 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19292 if c.ifNoneMatch_ != "" {
19293 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19294 }
19295 var body io.Reader = nil
19296 c.urlParams_.Set("alt", alt)
19297 c.urlParams_.Set("prettyPrint", "false")
19298 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
19299 urls += "?" + c.urlParams_.Encode()
19300 req, err := http.NewRequest("GET", urls, body)
19301 if err != nil {
19302 return nil, err
19303 }
19304 req.Header = reqHeaders
19305 googleapi.Expand(req.URL, map[string]string{
19306 "parent": c.parent,
19307 "dicomWebPath": c.dicomWebPath,
19308 })
19309 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19310 }
19311
19312
19313 func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
19314 gensupport.SetOptions(c.urlParams_, opts...)
19315 return c.doRequest("")
19316 }
19317
19318 type ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall struct {
19319 s *Service
19320 name string
19321 applyadminconsentsrequest *ApplyAdminConsentsRequest
19322 urlParams_ gensupport.URLParams
19323 ctx_ context.Context
19324 header_ http.Header
19325 }
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347 func (r *ProjectsLocationsDatasetsFhirStoresService) ApplyAdminConsents(name string, applyadminconsentsrequest *ApplyAdminConsentsRequest) *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall {
19348 c := &ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19349 c.name = name
19350 c.applyadminconsentsrequest = applyadminconsentsrequest
19351 return c
19352 }
19353
19354
19355
19356
19357 func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall {
19358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19359 return c
19360 }
19361
19362
19363 func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall {
19364 c.ctx_ = ctx
19365 return c
19366 }
19367
19368
19369
19370 func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Header() http.Header {
19371 if c.header_ == nil {
19372 c.header_ = make(http.Header)
19373 }
19374 return c.header_
19375 }
19376
19377 func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) doRequest(alt string) (*http.Response, error) {
19378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19379 var body io.Reader = nil
19380 body, err := googleapi.WithoutDataWrapper.JSONReader(c.applyadminconsentsrequest)
19381 if err != nil {
19382 return nil, err
19383 }
19384 c.urlParams_.Set("alt", alt)
19385 c.urlParams_.Set("prettyPrint", "false")
19386 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:applyAdminConsents")
19387 urls += "?" + c.urlParams_.Encode()
19388 req, err := http.NewRequest("POST", urls, body)
19389 if err != nil {
19390 return nil, err
19391 }
19392 req.Header = reqHeaders
19393 googleapi.Expand(req.URL, map[string]string{
19394 "name": c.name,
19395 })
19396 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19397 }
19398
19399
19400
19401
19402
19403
19404 func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
19405 gensupport.SetOptions(c.urlParams_, opts...)
19406 res, err := c.doRequest("json")
19407 if res != nil && res.StatusCode == http.StatusNotModified {
19408 if res.Body != nil {
19409 res.Body.Close()
19410 }
19411 return nil, gensupport.WrapError(&googleapi.Error{
19412 Code: res.StatusCode,
19413 Header: res.Header,
19414 })
19415 }
19416 if err != nil {
19417 return nil, err
19418 }
19419 defer googleapi.CloseBody(res)
19420 if err := googleapi.CheckResponse(res); err != nil {
19421 return nil, gensupport.WrapError(err)
19422 }
19423 ret := &Operation{
19424 ServerResponse: googleapi.ServerResponse{
19425 Header: res.Header,
19426 HTTPStatusCode: res.StatusCode,
19427 },
19428 }
19429 target := &ret
19430 if err := gensupport.DecodeResponse(target, res); err != nil {
19431 return nil, err
19432 }
19433 return ret, nil
19434 }
19435
19436 type ProjectsLocationsDatasetsFhirStoresApplyConsentsCall struct {
19437 s *Service
19438 name string
19439 applyconsentsrequest *ApplyConsentsRequest
19440 urlParams_ gensupport.URLParams
19441 ctx_ context.Context
19442 header_ http.Header
19443 }
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462 func (r *ProjectsLocationsDatasetsFhirStoresService) ApplyConsents(name string, applyconsentsrequest *ApplyConsentsRequest) *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall {
19463 c := &ProjectsLocationsDatasetsFhirStoresApplyConsentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19464 c.name = name
19465 c.applyconsentsrequest = applyconsentsrequest
19466 return c
19467 }
19468
19469
19470
19471
19472 func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall {
19473 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19474 return c
19475 }
19476
19477
19478 func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall {
19479 c.ctx_ = ctx
19480 return c
19481 }
19482
19483
19484
19485 func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Header() http.Header {
19486 if c.header_ == nil {
19487 c.header_ = make(http.Header)
19488 }
19489 return c.header_
19490 }
19491
19492 func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) doRequest(alt string) (*http.Response, error) {
19493 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19494 var body io.Reader = nil
19495 body, err := googleapi.WithoutDataWrapper.JSONReader(c.applyconsentsrequest)
19496 if err != nil {
19497 return nil, err
19498 }
19499 c.urlParams_.Set("alt", alt)
19500 c.urlParams_.Set("prettyPrint", "false")
19501 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:applyConsents")
19502 urls += "?" + c.urlParams_.Encode()
19503 req, err := http.NewRequest("POST", urls, body)
19504 if err != nil {
19505 return nil, err
19506 }
19507 req.Header = reqHeaders
19508 googleapi.Expand(req.URL, map[string]string{
19509 "name": c.name,
19510 })
19511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19512 }
19513
19514
19515
19516
19517
19518
19519 func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
19520 gensupport.SetOptions(c.urlParams_, opts...)
19521 res, err := c.doRequest("json")
19522 if res != nil && res.StatusCode == http.StatusNotModified {
19523 if res.Body != nil {
19524 res.Body.Close()
19525 }
19526 return nil, gensupport.WrapError(&googleapi.Error{
19527 Code: res.StatusCode,
19528 Header: res.Header,
19529 })
19530 }
19531 if err != nil {
19532 return nil, err
19533 }
19534 defer googleapi.CloseBody(res)
19535 if err := googleapi.CheckResponse(res); err != nil {
19536 return nil, gensupport.WrapError(err)
19537 }
19538 ret := &Operation{
19539 ServerResponse: googleapi.ServerResponse{
19540 Header: res.Header,
19541 HTTPStatusCode: res.StatusCode,
19542 },
19543 }
19544 target := &ret
19545 if err := gensupport.DecodeResponse(target, res); err != nil {
19546 return nil, err
19547 }
19548 return ret, nil
19549 }
19550
19551 type ProjectsLocationsDatasetsFhirStoresConfigureSearchCall struct {
19552 s *Service
19553 name string
19554 configuresearchrequest *ConfigureSearchRequest
19555 urlParams_ gensupport.URLParams
19556 ctx_ context.Context
19557 header_ http.Header
19558 }
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571 func (r *ProjectsLocationsDatasetsFhirStoresService) ConfigureSearch(name string, configuresearchrequest *ConfigureSearchRequest) *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall {
19572 c := &ProjectsLocationsDatasetsFhirStoresConfigureSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19573 c.name = name
19574 c.configuresearchrequest = configuresearchrequest
19575 return c
19576 }
19577
19578
19579
19580
19581 func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall {
19582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19583 return c
19584 }
19585
19586
19587 func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall {
19588 c.ctx_ = ctx
19589 return c
19590 }
19591
19592
19593
19594 func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Header() http.Header {
19595 if c.header_ == nil {
19596 c.header_ = make(http.Header)
19597 }
19598 return c.header_
19599 }
19600
19601 func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) doRequest(alt string) (*http.Response, error) {
19602 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19603 var body io.Reader = nil
19604 body, err := googleapi.WithoutDataWrapper.JSONReader(c.configuresearchrequest)
19605 if err != nil {
19606 return nil, err
19607 }
19608 c.urlParams_.Set("alt", alt)
19609 c.urlParams_.Set("prettyPrint", "false")
19610 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:configureSearch")
19611 urls += "?" + c.urlParams_.Encode()
19612 req, err := http.NewRequest("POST", urls, body)
19613 if err != nil {
19614 return nil, err
19615 }
19616 req.Header = reqHeaders
19617 googleapi.Expand(req.URL, map[string]string{
19618 "name": c.name,
19619 })
19620 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19621 }
19622
19623
19624
19625
19626
19627
19628 func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
19629 gensupport.SetOptions(c.urlParams_, opts...)
19630 res, err := c.doRequest("json")
19631 if res != nil && res.StatusCode == http.StatusNotModified {
19632 if res.Body != nil {
19633 res.Body.Close()
19634 }
19635 return nil, gensupport.WrapError(&googleapi.Error{
19636 Code: res.StatusCode,
19637 Header: res.Header,
19638 })
19639 }
19640 if err != nil {
19641 return nil, err
19642 }
19643 defer googleapi.CloseBody(res)
19644 if err := googleapi.CheckResponse(res); err != nil {
19645 return nil, gensupport.WrapError(err)
19646 }
19647 ret := &Operation{
19648 ServerResponse: googleapi.ServerResponse{
19649 Header: res.Header,
19650 HTTPStatusCode: res.StatusCode,
19651 },
19652 }
19653 target := &ret
19654 if err := gensupport.DecodeResponse(target, res); err != nil {
19655 return nil, err
19656 }
19657 return ret, nil
19658 }
19659
19660 type ProjectsLocationsDatasetsFhirStoresCreateCall struct {
19661 s *Service
19662 parent string
19663 fhirstore *FhirStore
19664 urlParams_ gensupport.URLParams
19665 ctx_ context.Context
19666 header_ http.Header
19667 }
19668
19669
19670
19671
19672 func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresCreateCall {
19673 c := &ProjectsLocationsDatasetsFhirStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19674 c.parent = parent
19675 c.fhirstore = fhirstore
19676 return c
19677 }
19678
19679
19680
19681
19682 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) FhirStoreId(fhirStoreId string) *ProjectsLocationsDatasetsFhirStoresCreateCall {
19683 c.urlParams_.Set("fhirStoreId", fhirStoreId)
19684 return c
19685 }
19686
19687
19688
19689
19690 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCreateCall {
19691 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19692 return c
19693 }
19694
19695
19696 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCreateCall {
19697 c.ctx_ = ctx
19698 return c
19699 }
19700
19701
19702
19703 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header {
19704 if c.header_ == nil {
19705 c.header_ = make(http.Header)
19706 }
19707 return c.header_
19708 }
19709
19710 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) {
19711 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19712 var body io.Reader = nil
19713 body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
19714 if err != nil {
19715 return nil, err
19716 }
19717 c.urlParams_.Set("alt", alt)
19718 c.urlParams_.Set("prettyPrint", "false")
19719 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhirStores")
19720 urls += "?" + c.urlParams_.Encode()
19721 req, err := http.NewRequest("POST", urls, body)
19722 if err != nil {
19723 return nil, err
19724 }
19725 req.Header = reqHeaders
19726 googleapi.Expand(req.URL, map[string]string{
19727 "parent": c.parent,
19728 })
19729 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19730 }
19731
19732
19733
19734
19735
19736
19737 func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
19738 gensupport.SetOptions(c.urlParams_, opts...)
19739 res, err := c.doRequest("json")
19740 if res != nil && res.StatusCode == http.StatusNotModified {
19741 if res.Body != nil {
19742 res.Body.Close()
19743 }
19744 return nil, gensupport.WrapError(&googleapi.Error{
19745 Code: res.StatusCode,
19746 Header: res.Header,
19747 })
19748 }
19749 if err != nil {
19750 return nil, err
19751 }
19752 defer googleapi.CloseBody(res)
19753 if err := googleapi.CheckResponse(res); err != nil {
19754 return nil, gensupport.WrapError(err)
19755 }
19756 ret := &FhirStore{
19757 ServerResponse: googleapi.ServerResponse{
19758 Header: res.Header,
19759 HTTPStatusCode: res.StatusCode,
19760 },
19761 }
19762 target := &ret
19763 if err := gensupport.DecodeResponse(target, res); err != nil {
19764 return nil, err
19765 }
19766 return ret, nil
19767 }
19768
19769 type ProjectsLocationsDatasetsFhirStoresDeidentifyCall struct {
19770 s *Service
19771 sourceStore string
19772 deidentifyfhirstorerequest *DeidentifyFhirStoreRequest
19773 urlParams_ gensupport.URLParams
19774 ctx_ context.Context
19775 header_ http.Header
19776 }
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789 func (r *ProjectsLocationsDatasetsFhirStoresService) Deidentify(sourceStore string, deidentifyfhirstorerequest *DeidentifyFhirStoreRequest) *ProjectsLocationsDatasetsFhirStoresDeidentifyCall {
19790 c := &ProjectsLocationsDatasetsFhirStoresDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19791 c.sourceStore = sourceStore
19792 c.deidentifyfhirstorerequest = deidentifyfhirstorerequest
19793 return c
19794 }
19795
19796
19797
19798
19799 func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeidentifyCall {
19800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19801 return c
19802 }
19803
19804
19805 func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeidentifyCall {
19806 c.ctx_ = ctx
19807 return c
19808 }
19809
19810
19811
19812 func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Header() http.Header {
19813 if c.header_ == nil {
19814 c.header_ = make(http.Header)
19815 }
19816 return c.header_
19817 }
19818
19819 func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) {
19820 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19821 var body io.Reader = nil
19822 body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifyfhirstorerequest)
19823 if err != nil {
19824 return nil, err
19825 }
19826 c.urlParams_.Set("alt", alt)
19827 c.urlParams_.Set("prettyPrint", "false")
19828 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+sourceStore}:deidentify")
19829 urls += "?" + c.urlParams_.Encode()
19830 req, err := http.NewRequest("POST", urls, body)
19831 if err != nil {
19832 return nil, err
19833 }
19834 req.Header = reqHeaders
19835 googleapi.Expand(req.URL, map[string]string{
19836 "sourceStore": c.sourceStore,
19837 })
19838 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19839 }
19840
19841
19842
19843
19844
19845
19846 func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
19847 gensupport.SetOptions(c.urlParams_, opts...)
19848 res, err := c.doRequest("json")
19849 if res != nil && res.StatusCode == http.StatusNotModified {
19850 if res.Body != nil {
19851 res.Body.Close()
19852 }
19853 return nil, gensupport.WrapError(&googleapi.Error{
19854 Code: res.StatusCode,
19855 Header: res.Header,
19856 })
19857 }
19858 if err != nil {
19859 return nil, err
19860 }
19861 defer googleapi.CloseBody(res)
19862 if err := googleapi.CheckResponse(res); err != nil {
19863 return nil, gensupport.WrapError(err)
19864 }
19865 ret := &Operation{
19866 ServerResponse: googleapi.ServerResponse{
19867 Header: res.Header,
19868 HTTPStatusCode: res.StatusCode,
19869 },
19870 }
19871 target := &ret
19872 if err := gensupport.DecodeResponse(target, res); err != nil {
19873 return nil, err
19874 }
19875 return ret, nil
19876 }
19877
19878 type ProjectsLocationsDatasetsFhirStoresDeleteCall struct {
19879 s *Service
19880 name string
19881 urlParams_ gensupport.URLParams
19882 ctx_ context.Context
19883 header_ http.Header
19884 }
19885
19886
19887
19888
19889
19890 func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
19891 c := &ProjectsLocationsDatasetsFhirStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19892 c.name = name
19893 return c
19894 }
19895
19896
19897
19898
19899 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
19900 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19901 return c
19902 }
19903
19904
19905 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
19906 c.ctx_ = ctx
19907 return c
19908 }
19909
19910
19911
19912 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header {
19913 if c.header_ == nil {
19914 c.header_ = make(http.Header)
19915 }
19916 return c.header_
19917 }
19918
19919 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
19920 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19921 var body io.Reader = nil
19922 c.urlParams_.Set("alt", alt)
19923 c.urlParams_.Set("prettyPrint", "false")
19924 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
19925 urls += "?" + c.urlParams_.Encode()
19926 req, err := http.NewRequest("DELETE", urls, body)
19927 if err != nil {
19928 return nil, err
19929 }
19930 req.Header = reqHeaders
19931 googleapi.Expand(req.URL, map[string]string{
19932 "name": c.name,
19933 })
19934 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19935 }
19936
19937
19938
19939
19940
19941
19942 func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
19943 gensupport.SetOptions(c.urlParams_, opts...)
19944 res, err := c.doRequest("json")
19945 if res != nil && res.StatusCode == http.StatusNotModified {
19946 if res.Body != nil {
19947 res.Body.Close()
19948 }
19949 return nil, gensupport.WrapError(&googleapi.Error{
19950 Code: res.StatusCode,
19951 Header: res.Header,
19952 })
19953 }
19954 if err != nil {
19955 return nil, err
19956 }
19957 defer googleapi.CloseBody(res)
19958 if err := googleapi.CheckResponse(res); err != nil {
19959 return nil, gensupport.WrapError(err)
19960 }
19961 ret := &Empty{
19962 ServerResponse: googleapi.ServerResponse{
19963 Header: res.Header,
19964 HTTPStatusCode: res.StatusCode,
19965 },
19966 }
19967 target := &ret
19968 if err := gensupport.DecodeResponse(target, res); err != nil {
19969 return nil, err
19970 }
19971 return ret, nil
19972 }
19973
19974 type ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall struct {
19975 s *Service
19976 name string
19977 urlParams_ gensupport.URLParams
19978 ifNoneMatch_ string
19979 ctx_ context.Context
19980 header_ http.Header
19981 }
19982
19983
19984
19985
19986
19987
19988
19989 func (r *ProjectsLocationsDatasetsFhirStoresService) ExplainDataAccess(name string) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
19990 c := &ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19991 c.name = name
19992 return c
19993 }
19994
19995
19996
19997 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) ResourceId(resourceId string) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
19998 c.urlParams_.Set("resourceId", resourceId)
19999 return c
20000 }
20001
20002
20003
20004
20005 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
20006 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20007 return c
20008 }
20009
20010
20011
20012
20013 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
20014 c.ifNoneMatch_ = entityTag
20015 return c
20016 }
20017
20018
20019 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
20020 c.ctx_ = ctx
20021 return c
20022 }
20023
20024
20025
20026 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Header() http.Header {
20027 if c.header_ == nil {
20028 c.header_ = make(http.Header)
20029 }
20030 return c.header_
20031 }
20032
20033 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) doRequest(alt string) (*http.Response, error) {
20034 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20035 if c.ifNoneMatch_ != "" {
20036 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20037 }
20038 var body io.Reader = nil
20039 c.urlParams_.Set("alt", alt)
20040 c.urlParams_.Set("prettyPrint", "false")
20041 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:explainDataAccess")
20042 urls += "?" + c.urlParams_.Encode()
20043 req, err := http.NewRequest("GET", urls, body)
20044 if err != nil {
20045 return nil, err
20046 }
20047 req.Header = reqHeaders
20048 googleapi.Expand(req.URL, map[string]string{
20049 "name": c.name,
20050 })
20051 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20052 }
20053
20054
20055
20056
20057
20058
20059
20060 func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Do(opts ...googleapi.CallOption) (*ExplainDataAccessResponse, error) {
20061 gensupport.SetOptions(c.urlParams_, opts...)
20062 res, err := c.doRequest("json")
20063 if res != nil && res.StatusCode == http.StatusNotModified {
20064 if res.Body != nil {
20065 res.Body.Close()
20066 }
20067 return nil, gensupport.WrapError(&googleapi.Error{
20068 Code: res.StatusCode,
20069 Header: res.Header,
20070 })
20071 }
20072 if err != nil {
20073 return nil, err
20074 }
20075 defer googleapi.CloseBody(res)
20076 if err := googleapi.CheckResponse(res); err != nil {
20077 return nil, gensupport.WrapError(err)
20078 }
20079 ret := &ExplainDataAccessResponse{
20080 ServerResponse: googleapi.ServerResponse{
20081 Header: res.Header,
20082 HTTPStatusCode: res.StatusCode,
20083 },
20084 }
20085 target := &ret
20086 if err := gensupport.DecodeResponse(target, res); err != nil {
20087 return nil, err
20088 }
20089 return ret, nil
20090 }
20091
20092 type ProjectsLocationsDatasetsFhirStoresExportCall struct {
20093 s *Service
20094 name string
20095 exportresourcesrequest *ExportResourcesRequest
20096 urlParams_ gensupport.URLParams
20097 ctx_ context.Context
20098 header_ http.Header
20099 }
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113 func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportresourcesrequest *ExportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresExportCall {
20114 c := &ProjectsLocationsDatasetsFhirStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20115 c.name = name
20116 c.exportresourcesrequest = exportresourcesrequest
20117 return c
20118 }
20119
20120
20121
20122
20123 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportCall {
20124 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20125 return c
20126 }
20127
20128
20129 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportCall {
20130 c.ctx_ = ctx
20131 return c
20132 }
20133
20134
20135
20136 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header {
20137 if c.header_ == nil {
20138 c.header_ = make(http.Header)
20139 }
20140 return c.header_
20141 }
20142
20143 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) {
20144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20145 var body io.Reader = nil
20146 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourcesrequest)
20147 if err != nil {
20148 return nil, err
20149 }
20150 c.urlParams_.Set("alt", alt)
20151 c.urlParams_.Set("prettyPrint", "false")
20152 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
20153 urls += "?" + c.urlParams_.Encode()
20154 req, err := http.NewRequest("POST", urls, body)
20155 if err != nil {
20156 return nil, err
20157 }
20158 req.Header = reqHeaders
20159 googleapi.Expand(req.URL, map[string]string{
20160 "name": c.name,
20161 })
20162 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20163 }
20164
20165
20166
20167
20168
20169
20170 func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
20171 gensupport.SetOptions(c.urlParams_, opts...)
20172 res, err := c.doRequest("json")
20173 if res != nil && res.StatusCode == http.StatusNotModified {
20174 if res.Body != nil {
20175 res.Body.Close()
20176 }
20177 return nil, gensupport.WrapError(&googleapi.Error{
20178 Code: res.StatusCode,
20179 Header: res.Header,
20180 })
20181 }
20182 if err != nil {
20183 return nil, err
20184 }
20185 defer googleapi.CloseBody(res)
20186 if err := googleapi.CheckResponse(res); err != nil {
20187 return nil, gensupport.WrapError(err)
20188 }
20189 ret := &Operation{
20190 ServerResponse: googleapi.ServerResponse{
20191 Header: res.Header,
20192 HTTPStatusCode: res.StatusCode,
20193 },
20194 }
20195 target := &ret
20196 if err := gensupport.DecodeResponse(target, res); err != nil {
20197 return nil, err
20198 }
20199 return ret, nil
20200 }
20201
20202 type ProjectsLocationsDatasetsFhirStoresExportHistoryCall struct {
20203 s *Service
20204 name string
20205 exportresourceshistoryrequest *ExportResourcesHistoryRequest
20206 urlParams_ gensupport.URLParams
20207 ctx_ context.Context
20208 header_ http.Header
20209 }
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225 func (r *ProjectsLocationsDatasetsFhirStoresService) ExportHistory(name string, exportresourceshistoryrequest *ExportResourcesHistoryRequest) *ProjectsLocationsDatasetsFhirStoresExportHistoryCall {
20226 c := &ProjectsLocationsDatasetsFhirStoresExportHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20227 c.name = name
20228 c.exportresourceshistoryrequest = exportresourceshistoryrequest
20229 return c
20230 }
20231
20232
20233
20234
20235 func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportHistoryCall {
20236 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20237 return c
20238 }
20239
20240
20241 func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportHistoryCall {
20242 c.ctx_ = ctx
20243 return c
20244 }
20245
20246
20247
20248 func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Header() http.Header {
20249 if c.header_ == nil {
20250 c.header_ = make(http.Header)
20251 }
20252 return c.header_
20253 }
20254
20255 func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) doRequest(alt string) (*http.Response, error) {
20256 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20257 var body io.Reader = nil
20258 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourceshistoryrequest)
20259 if err != nil {
20260 return nil, err
20261 }
20262 c.urlParams_.Set("alt", alt)
20263 c.urlParams_.Set("prettyPrint", "false")
20264 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:exportHistory")
20265 urls += "?" + c.urlParams_.Encode()
20266 req, err := http.NewRequest("POST", urls, body)
20267 if err != nil {
20268 return nil, err
20269 }
20270 req.Header = reqHeaders
20271 googleapi.Expand(req.URL, map[string]string{
20272 "name": c.name,
20273 })
20274 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20275 }
20276
20277
20278
20279
20280
20281
20282 func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
20283 gensupport.SetOptions(c.urlParams_, opts...)
20284 res, err := c.doRequest("json")
20285 if res != nil && res.StatusCode == http.StatusNotModified {
20286 if res.Body != nil {
20287 res.Body.Close()
20288 }
20289 return nil, gensupport.WrapError(&googleapi.Error{
20290 Code: res.StatusCode,
20291 Header: res.Header,
20292 })
20293 }
20294 if err != nil {
20295 return nil, err
20296 }
20297 defer googleapi.CloseBody(res)
20298 if err := googleapi.CheckResponse(res); err != nil {
20299 return nil, gensupport.WrapError(err)
20300 }
20301 ret := &Operation{
20302 ServerResponse: googleapi.ServerResponse{
20303 Header: res.Header,
20304 HTTPStatusCode: res.StatusCode,
20305 },
20306 }
20307 target := &ret
20308 if err := gensupport.DecodeResponse(target, res); err != nil {
20309 return nil, err
20310 }
20311 return ret, nil
20312 }
20313
20314 type ProjectsLocationsDatasetsFhirStoresGetCall struct {
20315 s *Service
20316 name string
20317 urlParams_ gensupport.URLParams
20318 ifNoneMatch_ string
20319 ctx_ context.Context
20320 header_ http.Header
20321 }
20322
20323
20324
20325
20326 func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsLocationsDatasetsFhirStoresGetCall {
20327 c := &ProjectsLocationsDatasetsFhirStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20328 c.name = name
20329 return c
20330 }
20331
20332
20333
20334
20335 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetCall {
20336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20337 return c
20338 }
20339
20340
20341
20342
20343 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetCall {
20344 c.ifNoneMatch_ = entityTag
20345 return c
20346 }
20347
20348
20349 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetCall {
20350 c.ctx_ = ctx
20351 return c
20352 }
20353
20354
20355
20356 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header {
20357 if c.header_ == nil {
20358 c.header_ = make(http.Header)
20359 }
20360 return c.header_
20361 }
20362
20363 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) {
20364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20365 if c.ifNoneMatch_ != "" {
20366 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20367 }
20368 var body io.Reader = nil
20369 c.urlParams_.Set("alt", alt)
20370 c.urlParams_.Set("prettyPrint", "false")
20371 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
20372 urls += "?" + c.urlParams_.Encode()
20373 req, err := http.NewRequest("GET", urls, body)
20374 if err != nil {
20375 return nil, err
20376 }
20377 req.Header = reqHeaders
20378 googleapi.Expand(req.URL, map[string]string{
20379 "name": c.name,
20380 })
20381 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20382 }
20383
20384
20385
20386
20387
20388
20389 func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
20390 gensupport.SetOptions(c.urlParams_, opts...)
20391 res, err := c.doRequest("json")
20392 if res != nil && res.StatusCode == http.StatusNotModified {
20393 if res.Body != nil {
20394 res.Body.Close()
20395 }
20396 return nil, gensupport.WrapError(&googleapi.Error{
20397 Code: res.StatusCode,
20398 Header: res.Header,
20399 })
20400 }
20401 if err != nil {
20402 return nil, err
20403 }
20404 defer googleapi.CloseBody(res)
20405 if err := googleapi.CheckResponse(res); err != nil {
20406 return nil, gensupport.WrapError(err)
20407 }
20408 ret := &FhirStore{
20409 ServerResponse: googleapi.ServerResponse{
20410 Header: res.Header,
20411 HTTPStatusCode: res.StatusCode,
20412 },
20413 }
20414 target := &ret
20415 if err := gensupport.DecodeResponse(target, res); err != nil {
20416 return nil, err
20417 }
20418 return ret, nil
20419 }
20420
20421 type ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall struct {
20422 s *Service
20423 name string
20424 urlParams_ gensupport.URLParams
20425 ifNoneMatch_ string
20426 ctx_ context.Context
20427 header_ http.Header
20428 }
20429
20430
20431
20432
20433 func (r *ProjectsLocationsDatasetsFhirStoresService) GetFHIRStoreMetrics(name string) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
20434 c := &ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20435 c.name = name
20436 return c
20437 }
20438
20439
20440
20441
20442 func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
20443 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20444 return c
20445 }
20446
20447
20448
20449
20450 func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
20451 c.ifNoneMatch_ = entityTag
20452 return c
20453 }
20454
20455
20456 func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
20457 c.ctx_ = ctx
20458 return c
20459 }
20460
20461
20462
20463 func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Header() http.Header {
20464 if c.header_ == nil {
20465 c.header_ = make(http.Header)
20466 }
20467 return c.header_
20468 }
20469
20470 func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) doRequest(alt string) (*http.Response, error) {
20471 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20472 if c.ifNoneMatch_ != "" {
20473 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20474 }
20475 var body io.Reader = nil
20476 c.urlParams_.Set("alt", alt)
20477 c.urlParams_.Set("prettyPrint", "false")
20478 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:getFHIRStoreMetrics")
20479 urls += "?" + c.urlParams_.Encode()
20480 req, err := http.NewRequest("GET", urls, body)
20481 if err != nil {
20482 return nil, err
20483 }
20484 req.Header = reqHeaders
20485 googleapi.Expand(req.URL, map[string]string{
20486 "name": c.name,
20487 })
20488 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20489 }
20490
20491
20492
20493
20494
20495
20496
20497 func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Do(opts ...googleapi.CallOption) (*FhirStoreMetrics, error) {
20498 gensupport.SetOptions(c.urlParams_, opts...)
20499 res, err := c.doRequest("json")
20500 if res != nil && res.StatusCode == http.StatusNotModified {
20501 if res.Body != nil {
20502 res.Body.Close()
20503 }
20504 return nil, gensupport.WrapError(&googleapi.Error{
20505 Code: res.StatusCode,
20506 Header: res.Header,
20507 })
20508 }
20509 if err != nil {
20510 return nil, err
20511 }
20512 defer googleapi.CloseBody(res)
20513 if err := googleapi.CheckResponse(res); err != nil {
20514 return nil, gensupport.WrapError(err)
20515 }
20516 ret := &FhirStoreMetrics{
20517 ServerResponse: googleapi.ServerResponse{
20518 Header: res.Header,
20519 HTTPStatusCode: res.StatusCode,
20520 },
20521 }
20522 target := &ret
20523 if err := gensupport.DecodeResponse(target, res); err != nil {
20524 return nil, err
20525 }
20526 return ret, nil
20527 }
20528
20529 type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct {
20530 s *Service
20531 resource string
20532 urlParams_ gensupport.URLParams
20533 ifNoneMatch_ string
20534 ctx_ context.Context
20535 header_ http.Header
20536 }
20537
20538
20539
20540
20541
20542
20543
20544 func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
20545 c := &ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20546 c.resource = resource
20547 return c
20548 }
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
20563 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
20564 return c
20565 }
20566
20567
20568
20569
20570 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
20571 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20572 return c
20573 }
20574
20575
20576
20577
20578 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
20579 c.ifNoneMatch_ = entityTag
20580 return c
20581 }
20582
20583
20584 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
20585 c.ctx_ = ctx
20586 return c
20587 }
20588
20589
20590
20591 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Header {
20592 if c.header_ == nil {
20593 c.header_ = make(http.Header)
20594 }
20595 return c.header_
20596 }
20597
20598 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
20599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20600 if c.ifNoneMatch_ != "" {
20601 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20602 }
20603 var body io.Reader = nil
20604 c.urlParams_.Set("alt", alt)
20605 c.urlParams_.Set("prettyPrint", "false")
20606 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
20607 urls += "?" + c.urlParams_.Encode()
20608 req, err := http.NewRequest("GET", urls, body)
20609 if err != nil {
20610 return nil, err
20611 }
20612 req.Header = reqHeaders
20613 googleapi.Expand(req.URL, map[string]string{
20614 "resource": c.resource,
20615 })
20616 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20617 }
20618
20619
20620
20621
20622
20623
20624 func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
20625 gensupport.SetOptions(c.urlParams_, opts...)
20626 res, err := c.doRequest("json")
20627 if res != nil && res.StatusCode == http.StatusNotModified {
20628 if res.Body != nil {
20629 res.Body.Close()
20630 }
20631 return nil, gensupport.WrapError(&googleapi.Error{
20632 Code: res.StatusCode,
20633 Header: res.Header,
20634 })
20635 }
20636 if err != nil {
20637 return nil, err
20638 }
20639 defer googleapi.CloseBody(res)
20640 if err := googleapi.CheckResponse(res); err != nil {
20641 return nil, gensupport.WrapError(err)
20642 }
20643 ret := &Policy{
20644 ServerResponse: googleapi.ServerResponse{
20645 Header: res.Header,
20646 HTTPStatusCode: res.StatusCode,
20647 },
20648 }
20649 target := &ret
20650 if err := gensupport.DecodeResponse(target, res); err != nil {
20651 return nil, err
20652 }
20653 return ret, nil
20654 }
20655
20656 type ProjectsLocationsDatasetsFhirStoresImportCall struct {
20657 s *Service
20658 name string
20659 importresourcesrequest *ImportResourcesRequest
20660 urlParams_ gensupport.URLParams
20661 ctx_ context.Context
20662 header_ http.Header
20663 }
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725 func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importresourcesrequest *ImportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresImportCall {
20726 c := &ProjectsLocationsDatasetsFhirStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20727 c.name = name
20728 c.importresourcesrequest = importresourcesrequest
20729 return c
20730 }
20731
20732
20733
20734
20735 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportCall {
20736 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20737 return c
20738 }
20739
20740
20741 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportCall {
20742 c.ctx_ = ctx
20743 return c
20744 }
20745
20746
20747
20748 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header {
20749 if c.header_ == nil {
20750 c.header_ = make(http.Header)
20751 }
20752 return c.header_
20753 }
20754
20755 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) {
20756 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20757 var body io.Reader = nil
20758 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourcesrequest)
20759 if err != nil {
20760 return nil, err
20761 }
20762 c.urlParams_.Set("alt", alt)
20763 c.urlParams_.Set("prettyPrint", "false")
20764 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
20765 urls += "?" + c.urlParams_.Encode()
20766 req, err := http.NewRequest("POST", urls, body)
20767 if err != nil {
20768 return nil, err
20769 }
20770 req.Header = reqHeaders
20771 googleapi.Expand(req.URL, map[string]string{
20772 "name": c.name,
20773 })
20774 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20775 }
20776
20777
20778
20779
20780
20781
20782 func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
20783 gensupport.SetOptions(c.urlParams_, opts...)
20784 res, err := c.doRequest("json")
20785 if res != nil && res.StatusCode == http.StatusNotModified {
20786 if res.Body != nil {
20787 res.Body.Close()
20788 }
20789 return nil, gensupport.WrapError(&googleapi.Error{
20790 Code: res.StatusCode,
20791 Header: res.Header,
20792 })
20793 }
20794 if err != nil {
20795 return nil, err
20796 }
20797 defer googleapi.CloseBody(res)
20798 if err := googleapi.CheckResponse(res); err != nil {
20799 return nil, gensupport.WrapError(err)
20800 }
20801 ret := &Operation{
20802 ServerResponse: googleapi.ServerResponse{
20803 Header: res.Header,
20804 HTTPStatusCode: res.StatusCode,
20805 },
20806 }
20807 target := &ret
20808 if err := gensupport.DecodeResponse(target, res); err != nil {
20809 return nil, err
20810 }
20811 return ret, nil
20812 }
20813
20814 type ProjectsLocationsDatasetsFhirStoresImportHistoryCall struct {
20815 s *Service
20816 name string
20817 importresourceshistoryrequest *ImportResourcesHistoryRequest
20818 urlParams_ gensupport.URLParams
20819 ctx_ context.Context
20820 header_ http.Header
20821 }
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838 func (r *ProjectsLocationsDatasetsFhirStoresService) ImportHistory(name string, importresourceshistoryrequest *ImportResourcesHistoryRequest) *ProjectsLocationsDatasetsFhirStoresImportHistoryCall {
20839 c := &ProjectsLocationsDatasetsFhirStoresImportHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20840 c.name = name
20841 c.importresourceshistoryrequest = importresourceshistoryrequest
20842 return c
20843 }
20844
20845
20846
20847
20848 func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportHistoryCall {
20849 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20850 return c
20851 }
20852
20853
20854 func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportHistoryCall {
20855 c.ctx_ = ctx
20856 return c
20857 }
20858
20859
20860
20861 func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Header() http.Header {
20862 if c.header_ == nil {
20863 c.header_ = make(http.Header)
20864 }
20865 return c.header_
20866 }
20867
20868 func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) doRequest(alt string) (*http.Response, error) {
20869 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20870 var body io.Reader = nil
20871 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourceshistoryrequest)
20872 if err != nil {
20873 return nil, err
20874 }
20875 c.urlParams_.Set("alt", alt)
20876 c.urlParams_.Set("prettyPrint", "false")
20877 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:importHistory")
20878 urls += "?" + c.urlParams_.Encode()
20879 req, err := http.NewRequest("POST", urls, body)
20880 if err != nil {
20881 return nil, err
20882 }
20883 req.Header = reqHeaders
20884 googleapi.Expand(req.URL, map[string]string{
20885 "name": c.name,
20886 })
20887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20888 }
20889
20890
20891
20892
20893
20894
20895 func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
20896 gensupport.SetOptions(c.urlParams_, opts...)
20897 res, err := c.doRequest("json")
20898 if res != nil && res.StatusCode == http.StatusNotModified {
20899 if res.Body != nil {
20900 res.Body.Close()
20901 }
20902 return nil, gensupport.WrapError(&googleapi.Error{
20903 Code: res.StatusCode,
20904 Header: res.Header,
20905 })
20906 }
20907 if err != nil {
20908 return nil, err
20909 }
20910 defer googleapi.CloseBody(res)
20911 if err := googleapi.CheckResponse(res); err != nil {
20912 return nil, gensupport.WrapError(err)
20913 }
20914 ret := &Operation{
20915 ServerResponse: googleapi.ServerResponse{
20916 Header: res.Header,
20917 HTTPStatusCode: res.StatusCode,
20918 },
20919 }
20920 target := &ret
20921 if err := gensupport.DecodeResponse(target, res); err != nil {
20922 return nil, err
20923 }
20924 return ret, nil
20925 }
20926
20927 type ProjectsLocationsDatasetsFhirStoresListCall struct {
20928 s *Service
20929 parent string
20930 urlParams_ gensupport.URLParams
20931 ifNoneMatch_ string
20932 ctx_ context.Context
20933 header_ http.Header
20934 }
20935
20936
20937
20938
20939 func (r *ProjectsLocationsDatasetsFhirStoresService) List(parent string) *ProjectsLocationsDatasetsFhirStoresListCall {
20940 c := &ProjectsLocationsDatasetsFhirStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20941 c.parent = parent
20942 return c
20943 }
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsFhirStoresListCall {
20969 c.urlParams_.Set("filter", filter)
20970 return c
20971 }
20972
20973
20974
20975
20976 func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsFhirStoresListCall {
20977 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20978 return c
20979 }
20980
20981
20982
20983 func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresListCall {
20984 c.urlParams_.Set("pageToken", pageToken)
20985 return c
20986 }
20987
20988
20989
20990
20991 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresListCall {
20992 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20993 return c
20994 }
20995
20996
20997
20998
20999 func (c *ProjectsLocationsDatasetsFhirStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresListCall {
21000 c.ifNoneMatch_ = entityTag
21001 return c
21002 }
21003
21004
21005 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresListCall {
21006 c.ctx_ = ctx
21007 return c
21008 }
21009
21010
21011
21012 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header {
21013 if c.header_ == nil {
21014 c.header_ = make(http.Header)
21015 }
21016 return c.header_
21017 }
21018
21019 func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) {
21020 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21021 if c.ifNoneMatch_ != "" {
21022 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21023 }
21024 var body io.Reader = nil
21025 c.urlParams_.Set("alt", alt)
21026 c.urlParams_.Set("prettyPrint", "false")
21027 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhirStores")
21028 urls += "?" + c.urlParams_.Encode()
21029 req, err := http.NewRequest("GET", urls, body)
21030 if err != nil {
21031 return nil, err
21032 }
21033 req.Header = reqHeaders
21034 googleapi.Expand(req.URL, map[string]string{
21035 "parent": c.parent,
21036 })
21037 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21038 }
21039
21040
21041
21042
21043
21044
21045
21046 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallOption) (*ListFhirStoresResponse, error) {
21047 gensupport.SetOptions(c.urlParams_, opts...)
21048 res, err := c.doRequest("json")
21049 if res != nil && res.StatusCode == http.StatusNotModified {
21050 if res.Body != nil {
21051 res.Body.Close()
21052 }
21053 return nil, gensupport.WrapError(&googleapi.Error{
21054 Code: res.StatusCode,
21055 Header: res.Header,
21056 })
21057 }
21058 if err != nil {
21059 return nil, err
21060 }
21061 defer googleapi.CloseBody(res)
21062 if err := googleapi.CheckResponse(res); err != nil {
21063 return nil, gensupport.WrapError(err)
21064 }
21065 ret := &ListFhirStoresResponse{
21066 ServerResponse: googleapi.ServerResponse{
21067 Header: res.Header,
21068 HTTPStatusCode: res.StatusCode,
21069 },
21070 }
21071 target := &ret
21072 if err := gensupport.DecodeResponse(target, res); err != nil {
21073 return nil, err
21074 }
21075 return ret, nil
21076 }
21077
21078
21079
21080
21081 func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, f func(*ListFhirStoresResponse) error) error {
21082 c.ctx_ = ctx
21083 defer c.PageToken(c.urlParams_.Get("pageToken"))
21084 for {
21085 x, err := c.Do()
21086 if err != nil {
21087 return err
21088 }
21089 if err := f(x); err != nil {
21090 return err
21091 }
21092 if x.NextPageToken == "" {
21093 return nil
21094 }
21095 c.PageToken(x.NextPageToken)
21096 }
21097 }
21098
21099 type ProjectsLocationsDatasetsFhirStoresPatchCall struct {
21100 s *Service
21101 name string
21102 fhirstore *FhirStore
21103 urlParams_ gensupport.URLParams
21104 ctx_ context.Context
21105 header_ http.Header
21106 }
21107
21108
21109
21110
21111
21112
21113
21114 func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresPatchCall {
21115 c := &ProjectsLocationsDatasetsFhirStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21116 c.name = name
21117 c.fhirstore = fhirstore
21118 return c
21119 }
21120
21121
21122
21123
21124 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsFhirStoresPatchCall {
21125 c.urlParams_.Set("updateMask", updateMask)
21126 return c
21127 }
21128
21129
21130
21131
21132 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresPatchCall {
21133 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21134 return c
21135 }
21136
21137
21138 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresPatchCall {
21139 c.ctx_ = ctx
21140 return c
21141 }
21142
21143
21144
21145 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header {
21146 if c.header_ == nil {
21147 c.header_ = make(http.Header)
21148 }
21149 return c.header_
21150 }
21151
21152 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) {
21153 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21154 var body io.Reader = nil
21155 body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
21156 if err != nil {
21157 return nil, err
21158 }
21159 c.urlParams_.Set("alt", alt)
21160 c.urlParams_.Set("prettyPrint", "false")
21161 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
21162 urls += "?" + c.urlParams_.Encode()
21163 req, err := http.NewRequest("PATCH", urls, body)
21164 if err != nil {
21165 return nil, err
21166 }
21167 req.Header = reqHeaders
21168 googleapi.Expand(req.URL, map[string]string{
21169 "name": c.name,
21170 })
21171 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21172 }
21173
21174
21175
21176
21177
21178
21179 func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
21180 gensupport.SetOptions(c.urlParams_, opts...)
21181 res, err := c.doRequest("json")
21182 if res != nil && res.StatusCode == http.StatusNotModified {
21183 if res.Body != nil {
21184 res.Body.Close()
21185 }
21186 return nil, gensupport.WrapError(&googleapi.Error{
21187 Code: res.StatusCode,
21188 Header: res.Header,
21189 })
21190 }
21191 if err != nil {
21192 return nil, err
21193 }
21194 defer googleapi.CloseBody(res)
21195 if err := googleapi.CheckResponse(res); err != nil {
21196 return nil, gensupport.WrapError(err)
21197 }
21198 ret := &FhirStore{
21199 ServerResponse: googleapi.ServerResponse{
21200 Header: res.Header,
21201 HTTPStatusCode: res.StatusCode,
21202 },
21203 }
21204 target := &ret
21205 if err := gensupport.DecodeResponse(target, res); err != nil {
21206 return nil, err
21207 }
21208 return ret, nil
21209 }
21210
21211 type ProjectsLocationsDatasetsFhirStoresRollbackCall struct {
21212 s *Service
21213 name string
21214 rollbackfhirresourcesrequest *RollbackFhirResourcesRequest
21215 urlParams_ gensupport.URLParams
21216 ctx_ context.Context
21217 header_ http.Header
21218 }
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232 func (r *ProjectsLocationsDatasetsFhirStoresService) Rollback(name string, rollbackfhirresourcesrequest *RollbackFhirResourcesRequest) *ProjectsLocationsDatasetsFhirStoresRollbackCall {
21233 c := &ProjectsLocationsDatasetsFhirStoresRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21234 c.name = name
21235 c.rollbackfhirresourcesrequest = rollbackfhirresourcesrequest
21236 return c
21237 }
21238
21239
21240
21241
21242 func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresRollbackCall {
21243 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21244 return c
21245 }
21246
21247
21248 func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresRollbackCall {
21249 c.ctx_ = ctx
21250 return c
21251 }
21252
21253
21254
21255 func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Header() http.Header {
21256 if c.header_ == nil {
21257 c.header_ = make(http.Header)
21258 }
21259 return c.header_
21260 }
21261
21262 func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) doRequest(alt string) (*http.Response, error) {
21263 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21264 var body io.Reader = nil
21265 body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbackfhirresourcesrequest)
21266 if err != nil {
21267 return nil, err
21268 }
21269 c.urlParams_.Set("alt", alt)
21270 c.urlParams_.Set("prettyPrint", "false")
21271 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:rollback")
21272 urls += "?" + c.urlParams_.Encode()
21273 req, err := http.NewRequest("POST", urls, body)
21274 if err != nil {
21275 return nil, err
21276 }
21277 req.Header = reqHeaders
21278 googleapi.Expand(req.URL, map[string]string{
21279 "name": c.name,
21280 })
21281 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21282 }
21283
21284
21285
21286
21287
21288
21289 func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
21290 gensupport.SetOptions(c.urlParams_, opts...)
21291 res, err := c.doRequest("json")
21292 if res != nil && res.StatusCode == http.StatusNotModified {
21293 if res.Body != nil {
21294 res.Body.Close()
21295 }
21296 return nil, gensupport.WrapError(&googleapi.Error{
21297 Code: res.StatusCode,
21298 Header: res.Header,
21299 })
21300 }
21301 if err != nil {
21302 return nil, err
21303 }
21304 defer googleapi.CloseBody(res)
21305 if err := googleapi.CheckResponse(res); err != nil {
21306 return nil, gensupport.WrapError(err)
21307 }
21308 ret := &Operation{
21309 ServerResponse: googleapi.ServerResponse{
21310 Header: res.Header,
21311 HTTPStatusCode: res.StatusCode,
21312 },
21313 }
21314 target := &ret
21315 if err := gensupport.DecodeResponse(target, res); err != nil {
21316 return nil, err
21317 }
21318 return ret, nil
21319 }
21320
21321 type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct {
21322 s *Service
21323 resource string
21324 setiampolicyrequest *SetIamPolicyRequest
21325 urlParams_ gensupport.URLParams
21326 ctx_ context.Context
21327 header_ http.Header
21328 }
21329
21330
21331
21332
21333
21334
21335
21336
21337 func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
21338 c := &ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21339 c.resource = resource
21340 c.setiampolicyrequest = setiampolicyrequest
21341 return c
21342 }
21343
21344
21345
21346
21347 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
21348 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21349 return c
21350 }
21351
21352
21353 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
21354 c.ctx_ = ctx
21355 return c
21356 }
21357
21358
21359
21360 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Header {
21361 if c.header_ == nil {
21362 c.header_ = make(http.Header)
21363 }
21364 return c.header_
21365 }
21366
21367 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
21368 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21369 var body io.Reader = nil
21370 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
21371 if err != nil {
21372 return nil, err
21373 }
21374 c.urlParams_.Set("alt", alt)
21375 c.urlParams_.Set("prettyPrint", "false")
21376 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
21377 urls += "?" + c.urlParams_.Encode()
21378 req, err := http.NewRequest("POST", urls, body)
21379 if err != nil {
21380 return nil, err
21381 }
21382 req.Header = reqHeaders
21383 googleapi.Expand(req.URL, map[string]string{
21384 "resource": c.resource,
21385 })
21386 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21387 }
21388
21389
21390
21391
21392
21393
21394 func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
21395 gensupport.SetOptions(c.urlParams_, opts...)
21396 res, err := c.doRequest("json")
21397 if res != nil && res.StatusCode == http.StatusNotModified {
21398 if res.Body != nil {
21399 res.Body.Close()
21400 }
21401 return nil, gensupport.WrapError(&googleapi.Error{
21402 Code: res.StatusCode,
21403 Header: res.Header,
21404 })
21405 }
21406 if err != nil {
21407 return nil, err
21408 }
21409 defer googleapi.CloseBody(res)
21410 if err := googleapi.CheckResponse(res); err != nil {
21411 return nil, gensupport.WrapError(err)
21412 }
21413 ret := &Policy{
21414 ServerResponse: googleapi.ServerResponse{
21415 Header: res.Header,
21416 HTTPStatusCode: res.StatusCode,
21417 },
21418 }
21419 target := &ret
21420 if err := gensupport.DecodeResponse(target, res); err != nil {
21421 return nil, err
21422 }
21423 return ret, nil
21424 }
21425
21426 type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct {
21427 s *Service
21428 resource string
21429 testiampermissionsrequest *TestIamPermissionsRequest
21430 urlParams_ gensupport.URLParams
21431 ctx_ context.Context
21432 header_ http.Header
21433 }
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445 func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
21446 c := &ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21447 c.resource = resource
21448 c.testiampermissionsrequest = testiampermissionsrequest
21449 return c
21450 }
21451
21452
21453
21454
21455 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
21456 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21457 return c
21458 }
21459
21460
21461 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
21462 c.ctx_ = ctx
21463 return c
21464 }
21465
21466
21467
21468 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() http.Header {
21469 if c.header_ == nil {
21470 c.header_ = make(http.Header)
21471 }
21472 return c.header_
21473 }
21474
21475 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
21476 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21477 var body io.Reader = nil
21478 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
21479 if err != nil {
21480 return nil, err
21481 }
21482 c.urlParams_.Set("alt", alt)
21483 c.urlParams_.Set("prettyPrint", "false")
21484 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
21485 urls += "?" + c.urlParams_.Encode()
21486 req, err := http.NewRequest("POST", urls, body)
21487 if err != nil {
21488 return nil, err
21489 }
21490 req.Header = reqHeaders
21491 googleapi.Expand(req.URL, map[string]string{
21492 "resource": c.resource,
21493 })
21494 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21495 }
21496
21497
21498
21499
21500
21501
21502
21503 func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
21504 gensupport.SetOptions(c.urlParams_, opts...)
21505 res, err := c.doRequest("json")
21506 if res != nil && res.StatusCode == http.StatusNotModified {
21507 if res.Body != nil {
21508 res.Body.Close()
21509 }
21510 return nil, gensupport.WrapError(&googleapi.Error{
21511 Code: res.StatusCode,
21512 Header: res.Header,
21513 })
21514 }
21515 if err != nil {
21516 return nil, err
21517 }
21518 defer googleapi.CloseBody(res)
21519 if err := googleapi.CheckResponse(res); err != nil {
21520 return nil, gensupport.WrapError(err)
21521 }
21522 ret := &TestIamPermissionsResponse{
21523 ServerResponse: googleapi.ServerResponse{
21524 Header: res.Header,
21525 HTTPStatusCode: res.StatusCode,
21526 },
21527 }
21528 target := &ret
21529 if err := gensupport.DecodeResponse(target, res); err != nil {
21530 return nil, err
21531 }
21532 return ret, nil
21533 }
21534
21535 type ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall struct {
21536 s *Service
21537 parent string
21538 urlParams_ gensupport.URLParams
21539 ifNoneMatch_ string
21540 ctx_ context.Context
21541 header_ http.Header
21542 }
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConceptMapSearchTranslate(parent string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21560 c := &ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21561 c.parent = parent
21562 return c
21563 }
21564
21565
21566 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Code(code string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21567 c.urlParams_.Set("code", code)
21568 return c
21569 }
21570
21571
21572
21573
21574 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) ConceptMapVersion(conceptMapVersion string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21575 c.urlParams_.Set("conceptMapVersion", conceptMapVersion)
21576 return c
21577 }
21578
21579
21580
21581 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Source(source string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21582 c.urlParams_.Set("source", source)
21583 return c
21584 }
21585
21586
21587
21588 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) System(system string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21589 c.urlParams_.Set("system", system)
21590 return c
21591 }
21592
21593
21594
21595 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Target(target string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21596 c.urlParams_.Set("target", target)
21597 return c
21598 }
21599
21600
21601
21602 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Url(url string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21603 c.urlParams_.Set("url", url)
21604 return c
21605 }
21606
21607
21608
21609
21610 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21611 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21612 return c
21613 }
21614
21615
21616
21617
21618 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21619 c.ifNoneMatch_ = entityTag
21620 return c
21621 }
21622
21623
21624 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
21625 c.ctx_ = ctx
21626 return c
21627 }
21628
21629
21630
21631 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Header() http.Header {
21632 if c.header_ == nil {
21633 c.header_ = make(http.Header)
21634 }
21635 return c.header_
21636 }
21637
21638 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) doRequest(alt string) (*http.Response, error) {
21639 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21640 if c.ifNoneMatch_ != "" {
21641 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21642 }
21643 var body io.Reader = nil
21644 c.urlParams_.Set("alt", alt)
21645 c.urlParams_.Set("prettyPrint", "false")
21646 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/ConceptMap/$translate")
21647 urls += "?" + c.urlParams_.Encode()
21648 req, err := http.NewRequest("GET", urls, body)
21649 if err != nil {
21650 return nil, err
21651 }
21652 req.Header = reqHeaders
21653 googleapi.Expand(req.URL, map[string]string{
21654 "parent": c.parent,
21655 })
21656 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21657 }
21658
21659
21660 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
21661 gensupport.SetOptions(c.urlParams_, opts...)
21662 return c.doRequest("")
21663 }
21664
21665 type ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall struct {
21666 s *Service
21667 name string
21668 urlParams_ gensupport.URLParams
21669 ifNoneMatch_ string
21670 ctx_ context.Context
21671 header_ http.Header
21672 }
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConceptMapTranslate(name string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21690 c := &ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21691 c.name = name
21692 return c
21693 }
21694
21695
21696 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Code(code string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21697 c.urlParams_.Set("code", code)
21698 return c
21699 }
21700
21701
21702
21703
21704 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) ConceptMapVersion(conceptMapVersion string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21705 c.urlParams_.Set("conceptMapVersion", conceptMapVersion)
21706 return c
21707 }
21708
21709
21710
21711 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) System(system string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21712 c.urlParams_.Set("system", system)
21713 return c
21714 }
21715
21716
21717
21718
21719 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21720 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21721 return c
21722 }
21723
21724
21725
21726
21727 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21728 c.ifNoneMatch_ = entityTag
21729 return c
21730 }
21731
21732
21733 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
21734 c.ctx_ = ctx
21735 return c
21736 }
21737
21738
21739
21740 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Header() http.Header {
21741 if c.header_ == nil {
21742 c.header_ = make(http.Header)
21743 }
21744 return c.header_
21745 }
21746
21747 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) doRequest(alt string) (*http.Response, error) {
21748 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21749 if c.ifNoneMatch_ != "" {
21750 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21751 }
21752 var body io.Reader = nil
21753 c.urlParams_.Set("alt", alt)
21754 c.urlParams_.Set("prettyPrint", "false")
21755 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$translate")
21756 urls += "?" + c.urlParams_.Encode()
21757 req, err := http.NewRequest("GET", urls, body)
21758 if err != nil {
21759 return nil, err
21760 }
21761 req.Header = reqHeaders
21762 googleapi.Expand(req.URL, map[string]string{
21763 "name": c.name,
21764 })
21765 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21766 }
21767
21768
21769 func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
21770 gensupport.SetOptions(c.urlParams_, opts...)
21771 return c.doRequest("")
21772 }
21773
21774 type ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall struct {
21775 s *Service
21776 name string
21777 urlParams_ gensupport.URLParams
21778 ifNoneMatch_ string
21779 ctx_ context.Context
21780 header_ http.Header
21781 }
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConsentEnforcementStatus(name string) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
21793 c := &ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21794 c.name = name
21795 return c
21796 }
21797
21798
21799
21800
21801 func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
21802 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21803 return c
21804 }
21805
21806
21807
21808
21809 func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
21810 c.ifNoneMatch_ = entityTag
21811 return c
21812 }
21813
21814
21815 func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
21816 c.ctx_ = ctx
21817 return c
21818 }
21819
21820
21821
21822 func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Header() http.Header {
21823 if c.header_ == nil {
21824 c.header_ = make(http.Header)
21825 }
21826 return c.header_
21827 }
21828
21829 func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) doRequest(alt string) (*http.Response, error) {
21830 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21831 if c.ifNoneMatch_ != "" {
21832 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21833 }
21834 var body io.Reader = nil
21835 c.urlParams_.Set("alt", alt)
21836 c.urlParams_.Set("prettyPrint", "false")
21837 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$consent-enforcement-status")
21838 urls += "?" + c.urlParams_.Encode()
21839 req, err := http.NewRequest("GET", urls, body)
21840 if err != nil {
21841 return nil, err
21842 }
21843 req.Header = reqHeaders
21844 googleapi.Expand(req.URL, map[string]string{
21845 "name": c.name,
21846 })
21847 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21848 }
21849
21850
21851 func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
21852 gensupport.SetOptions(c.urlParams_, opts...)
21853 return c.doRequest("")
21854 }
21855
21856 type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct {
21857 s *Service
21858 parent string
21859 urlParams_ gensupport.URLParams
21860 ifNoneMatch_ string
21861 ctx_ context.Context
21862 header_ http.Header
21863 }
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
21893 c := &ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21894 c.parent = parent
21895 return c
21896 }
21897
21898
21899
21900
21901 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
21902 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21903 return c
21904 }
21905
21906
21907
21908
21909 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
21910 c.ifNoneMatch_ = entityTag
21911 return c
21912 }
21913
21914
21915 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
21916 c.ctx_ = ctx
21917 return c
21918 }
21919
21920
21921
21922 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() http.Header {
21923 if c.header_ == nil {
21924 c.header_ = make(http.Header)
21925 }
21926 return c.header_
21927 }
21928
21929 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) {
21930 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21931 if c.ifNoneMatch_ != "" {
21932 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21933 }
21934 var body io.Reader = nil
21935 c.urlParams_.Set("alt", alt)
21936 c.urlParams_.Set("prettyPrint", "false")
21937 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/Observation/$lastn")
21938 urls += "?" + c.urlParams_.Encode()
21939 req, err := http.NewRequest("GET", urls, body)
21940 if err != nil {
21941 return nil, err
21942 }
21943 req.Header = reqHeaders
21944 googleapi.Expand(req.URL, map[string]string{
21945 "parent": c.parent,
21946 })
21947 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21948 }
21949
21950
21951 func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
21952 gensupport.SetOptions(c.urlParams_, opts...)
21953 return c.doRequest("")
21954 }
21955
21956 type ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall struct {
21957 s *Service
21958 name string
21959 urlParams_ gensupport.URLParams
21960 ifNoneMatch_ string
21961 ctx_ context.Context
21962 header_ http.Header
21963 }
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientConsentEnforcementStatus(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
21976 c := &ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21977 c.name = name
21978 return c
21979 }
21980
21981
21982
21983 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
21984 c.urlParams_.Set("_count", fmt.Sprint(Count))
21985 return c
21986 }
21987
21988
21989
21990
21991
21992
21993
21994 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
21995 c.urlParams_.Set("_page_token", PageToken)
21996 return c
21997 }
21998
21999
22000
22001
22002 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
22003 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22004 return c
22005 }
22006
22007
22008
22009
22010 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
22011 c.ifNoneMatch_ = entityTag
22012 return c
22013 }
22014
22015
22016 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
22017 c.ctx_ = ctx
22018 return c
22019 }
22020
22021
22022
22023 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Header() http.Header {
22024 if c.header_ == nil {
22025 c.header_ = make(http.Header)
22026 }
22027 return c.header_
22028 }
22029
22030 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) doRequest(alt string) (*http.Response, error) {
22031 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22032 if c.ifNoneMatch_ != "" {
22033 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22034 }
22035 var body io.Reader = nil
22036 c.urlParams_.Set("alt", alt)
22037 c.urlParams_.Set("prettyPrint", "false")
22038 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$consent-enforcement-status")
22039 urls += "?" + c.urlParams_.Encode()
22040 req, err := http.NewRequest("GET", urls, body)
22041 if err != nil {
22042 return nil, err
22043 }
22044 req.Header = reqHeaders
22045 googleapi.Expand(req.URL, map[string]string{
22046 "name": c.name,
22047 })
22048 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22049 }
22050
22051
22052 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22053 gensupport.SetOptions(c.urlParams_, opts...)
22054 return c.doRequest("")
22055 }
22056
22057 type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct {
22058 s *Service
22059 name string
22060 urlParams_ gensupport.URLParams
22061 ifNoneMatch_ string
22062 ctx_ context.Context
22063 header_ http.Header
22064 }
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientEverything(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22095 c := &ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22096 c.name = name
22097 return c
22098 }
22099
22100
22101
22102 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22103 c.urlParams_.Set("_count", fmt.Sprint(Count))
22104 return c
22105 }
22106
22107
22108
22109
22110
22111
22112
22113 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22114 c.urlParams_.Set("_page_token", PageToken)
22115 return c
22116 }
22117
22118
22119
22120
22121
22122
22123 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Since(Since string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22124 c.urlParams_.Set("_since", Since)
22125 return c
22126 }
22127
22128
22129
22130
22131
22132
22133 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Type(Type string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22134 c.urlParams_.Set("_type", Type)
22135 return c
22136 }
22137
22138
22139
22140
22141 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) End(end string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22142 c.urlParams_.Set("end", end)
22143 return c
22144 }
22145
22146
22147
22148
22149 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(start string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22150 c.urlParams_.Set("start", start)
22151 return c
22152 }
22153
22154
22155
22156
22157 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22158 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22159 return c
22160 }
22161
22162
22163
22164
22165 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22166 c.ifNoneMatch_ = entityTag
22167 return c
22168 }
22169
22170
22171 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
22172 c.ctx_ = ctx
22173 return c
22174 }
22175
22176
22177
22178 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() http.Header {
22179 if c.header_ == nil {
22180 c.header_ = make(http.Header)
22181 }
22182 return c.header_
22183 }
22184
22185 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) {
22186 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22187 if c.ifNoneMatch_ != "" {
22188 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22189 }
22190 var body io.Reader = nil
22191 c.urlParams_.Set("alt", alt)
22192 c.urlParams_.Set("prettyPrint", "false")
22193 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$everything")
22194 urls += "?" + c.urlParams_.Encode()
22195 req, err := http.NewRequest("GET", urls, body)
22196 if err != nil {
22197 return nil, err
22198 }
22199 req.Header = reqHeaders
22200 googleapi.Expand(req.URL, map[string]string{
22201 "name": c.name,
22202 })
22203 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22204 }
22205
22206
22207 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22208 gensupport.SetOptions(c.urlParams_, opts...)
22209 return c.doRequest("")
22210 }
22211
22212 type ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall struct {
22213 s *Service
22214 parent string
22215 urlParams_ gensupport.URLParams
22216 ifNoneMatch_ string
22217 ctx_ context.Context
22218 header_ http.Header
22219 }
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceIncomingReferences(parent string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22232 c := &ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22233 c.parent = parent
22234 return c
22235 }
22236
22237
22238
22239 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22240 c.urlParams_.Set("_count", fmt.Sprint(Count))
22241 return c
22242 }
22243
22244
22245
22246
22247
22248
22249 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22250 c.urlParams_.Set("_page_token", PageToken)
22251 return c
22252 }
22253
22254
22255
22256
22257
22258
22259
22260 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Summary(Summary string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22261 c.urlParams_.Set("_summary", Summary)
22262 return c
22263 }
22264
22265
22266
22267
22268
22269 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Type(Type string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22270 c.urlParams_.Set("_type", Type)
22271 return c
22272 }
22273
22274
22275
22276
22277
22278 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Target(target string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22279 c.urlParams_.Set("target", target)
22280 return c
22281 }
22282
22283
22284
22285
22286 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22288 return c
22289 }
22290
22291
22292
22293
22294 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22295 c.ifNoneMatch_ = entityTag
22296 return c
22297 }
22298
22299
22300 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
22301 c.ctx_ = ctx
22302 return c
22303 }
22304
22305
22306
22307 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Header() http.Header {
22308 if c.header_ == nil {
22309 c.header_ = make(http.Header)
22310 }
22311 return c.header_
22312 }
22313
22314 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) doRequest(alt string) (*http.Response, error) {
22315 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22316 if c.ifNoneMatch_ != "" {
22317 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22318 }
22319 var body io.Reader = nil
22320 c.urlParams_.Set("alt", alt)
22321 c.urlParams_.Set("prettyPrint", "false")
22322 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/$references")
22323 urls += "?" + c.urlParams_.Encode()
22324 req, err := http.NewRequest("GET", urls, body)
22325 if err != nil {
22326 return nil, err
22327 }
22328 req.Header = reqHeaders
22329 googleapi.Expand(req.URL, map[string]string{
22330 "parent": c.parent,
22331 })
22332 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22333 }
22334
22335
22336 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22337 gensupport.SetOptions(c.urlParams_, opts...)
22338 return c.doRequest("")
22339 }
22340
22341 type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct {
22342 s *Service
22343 name string
22344 urlParams_ gensupport.URLParams
22345 ctx_ context.Context
22346 header_ http.Header
22347 }
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name string) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
22358 c := &ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22359 c.name = name
22360 return c
22361 }
22362
22363
22364
22365
22366 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
22367 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22368 return c
22369 }
22370
22371
22372 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
22373 c.ctx_ = ctx
22374 return c
22375 }
22376
22377
22378
22379 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http.Header {
22380 if c.header_ == nil {
22381 c.header_ = make(http.Header)
22382 }
22383 return c.header_
22384 }
22385
22386 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) {
22387 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22388 var body io.Reader = nil
22389 c.urlParams_.Set("alt", alt)
22390 c.urlParams_.Set("prettyPrint", "false")
22391 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$purge")
22392 urls += "?" + c.urlParams_.Encode()
22393 req, err := http.NewRequest("DELETE", urls, body)
22394 if err != nil {
22395 return nil, err
22396 }
22397 req.Header = reqHeaders
22398 googleapi.Expand(req.URL, map[string]string{
22399 "name": c.name,
22400 })
22401 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22402 }
22403
22404
22405
22406
22407
22408
22409 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
22410 gensupport.SetOptions(c.urlParams_, opts...)
22411 res, err := c.doRequest("json")
22412 if res != nil && res.StatusCode == http.StatusNotModified {
22413 if res.Body != nil {
22414 res.Body.Close()
22415 }
22416 return nil, gensupport.WrapError(&googleapi.Error{
22417 Code: res.StatusCode,
22418 Header: res.Header,
22419 })
22420 }
22421 if err != nil {
22422 return nil, err
22423 }
22424 defer googleapi.CloseBody(res)
22425 if err := googleapi.CheckResponse(res); err != nil {
22426 return nil, gensupport.WrapError(err)
22427 }
22428 ret := &Empty{
22429 ServerResponse: googleapi.ServerResponse{
22430 Header: res.Header,
22431 HTTPStatusCode: res.StatusCode,
22432 },
22433 }
22434 target := &ret
22435 if err := gensupport.DecodeResponse(target, res); err != nil {
22436 return nil, err
22437 }
22438 return ret, nil
22439 }
22440
22441 type ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall struct {
22442 s *Service
22443 parent string
22444 type_ string
22445 body_ io.Reader
22446 urlParams_ gensupport.URLParams
22447 ctx_ context.Context
22448 header_ http.Header
22449 }
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceValidate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
22478 c := &ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22479 c.parent = parent
22480 c.type_ = type_
22481 c.body_ = body_
22482 return c
22483 }
22484
22485
22486
22487
22488
22489
22490
22491 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Profile(profile string) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
22492 c.urlParams_.Set("profile", profile)
22493 return c
22494 }
22495
22496
22497
22498
22499 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
22500 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22501 return c
22502 }
22503
22504
22505 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
22506 c.ctx_ = ctx
22507 return c
22508 }
22509
22510
22511
22512 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Header() http.Header {
22513 if c.header_ == nil {
22514 c.header_ = make(http.Header)
22515 }
22516 return c.header_
22517 }
22518
22519 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) doRequest(alt string) (*http.Response, error) {
22520 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22521 var body io.Reader = nil
22522 body = c.body_
22523 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}/$validate")
22524 urls += "?" + c.urlParams_.Encode()
22525 req, err := http.NewRequest("POST", urls, body)
22526 if err != nil {
22527 return nil, err
22528 }
22529 req.Header = reqHeaders
22530 googleapi.Expand(req.URL, map[string]string{
22531 "parent": c.parent,
22532 "type": c.type_,
22533 })
22534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22535 }
22536
22537
22538 func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22539 gensupport.SetOptions(c.urlParams_, opts...)
22540 return c.doRequest("")
22541 }
22542
22543 type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct {
22544 s *Service
22545 name string
22546 urlParams_ gensupport.URLParams
22547 ifNoneMatch_ string
22548 ctx_ context.Context
22549 header_ http.Header
22550 }
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
22569 c := &ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22570 c.name = name
22571 return c
22572 }
22573
22574
22575
22576
22577 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
22578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22579 return c
22580 }
22581
22582
22583
22584
22585 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
22586 c.ifNoneMatch_ = entityTag
22587 return c
22588 }
22589
22590
22591 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
22592 c.ctx_ = ctx
22593 return c
22594 }
22595
22596
22597
22598 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http.Header {
22599 if c.header_ == nil {
22600 c.header_ = make(http.Header)
22601 }
22602 return c.header_
22603 }
22604
22605 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
22606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22607 if c.ifNoneMatch_ != "" {
22608 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22609 }
22610 var body io.Reader = nil
22611 c.urlParams_.Set("alt", alt)
22612 c.urlParams_.Set("prettyPrint", "false")
22613 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/fhir/metadata")
22614 urls += "?" + c.urlParams_.Encode()
22615 req, err := http.NewRequest("GET", urls, body)
22616 if err != nil {
22617 return nil, err
22618 }
22619 req.Header = reqHeaders
22620 googleapi.Expand(req.URL, map[string]string{
22621 "name": c.name,
22622 })
22623 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22624 }
22625
22626
22627 func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22628 gensupport.SetOptions(c.urlParams_, opts...)
22629 return c.doRequest("")
22630 }
22631
22632 type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct {
22633 s *Service
22634 parent string
22635 type_ string
22636 urlParams_ gensupport.URLParams
22637 ctx_ context.Context
22638 header_ http.Header
22639 }
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
22671 c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22672 c.parent = parent
22673 c.type_ = type_
22674 return c
22675 }
22676
22677
22678
22679
22680 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
22681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22682 return c
22683 }
22684
22685
22686 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
22687 c.ctx_ = ctx
22688 return c
22689 }
22690
22691
22692
22693 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() http.Header {
22694 if c.header_ == nil {
22695 c.header_ = make(http.Header)
22696 }
22697 return c.header_
22698 }
22699
22700 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) {
22701 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22702 var body io.Reader = nil
22703 c.urlParams_.Set("alt", alt)
22704 c.urlParams_.Set("prettyPrint", "false")
22705 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
22706 urls += "?" + c.urlParams_.Encode()
22707 req, err := http.NewRequest("DELETE", urls, body)
22708 if err != nil {
22709 return nil, err
22710 }
22711 req.Header = reqHeaders
22712 googleapi.Expand(req.URL, map[string]string{
22713 "parent": c.parent,
22714 "type": c.type_,
22715 })
22716 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22717 }
22718
22719
22720
22721
22722
22723
22724 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
22725 gensupport.SetOptions(c.urlParams_, opts...)
22726 res, err := c.doRequest("json")
22727 if res != nil && res.StatusCode == http.StatusNotModified {
22728 if res.Body != nil {
22729 res.Body.Close()
22730 }
22731 return nil, gensupport.WrapError(&googleapi.Error{
22732 Code: res.StatusCode,
22733 Header: res.Header,
22734 })
22735 }
22736 if err != nil {
22737 return nil, err
22738 }
22739 defer googleapi.CloseBody(res)
22740 if err := googleapi.CheckResponse(res); err != nil {
22741 return nil, gensupport.WrapError(err)
22742 }
22743 ret := &Empty{
22744 ServerResponse: googleapi.ServerResponse{
22745 Header: res.Header,
22746 HTTPStatusCode: res.StatusCode,
22747 },
22748 }
22749 target := &ret
22750 if err := gensupport.DecodeResponse(target, res); err != nil {
22751 return nil, err
22752 }
22753 return ret, nil
22754 }
22755
22756 type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct {
22757 s *Service
22758 parent string
22759 type_ string
22760 body_ io.Reader
22761 urlParams_ gensupport.URLParams
22762 ctx_ context.Context
22763 header_ http.Header
22764 }
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
22796 c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22797 c.parent = parent
22798 c.type_ = type_
22799 c.body_ = body_
22800 return c
22801 }
22802
22803
22804
22805
22806 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
22807 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22808 return c
22809 }
22810
22811
22812 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
22813 c.ctx_ = ctx
22814 return c
22815 }
22816
22817
22818
22819 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() http.Header {
22820 if c.header_ == nil {
22821 c.header_ = make(http.Header)
22822 }
22823 return c.header_
22824 }
22825
22826 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) {
22827 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22828 var body io.Reader = nil
22829 body = c.body_
22830 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
22831 urls += "?" + c.urlParams_.Encode()
22832 req, err := http.NewRequest("PATCH", urls, body)
22833 if err != nil {
22834 return nil, err
22835 }
22836 req.Header = reqHeaders
22837 googleapi.Expand(req.URL, map[string]string{
22838 "parent": c.parent,
22839 "type": c.type_,
22840 })
22841 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22842 }
22843
22844
22845 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22846 gensupport.SetOptions(c.urlParams_, opts...)
22847 return c.doRequest("")
22848 }
22849
22850 type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct {
22851 s *Service
22852 parent string
22853 type_ string
22854 body_ io.Reader
22855 urlParams_ gensupport.URLParams
22856 ctx_ context.Context
22857 header_ http.Header
22858 }
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
22899 c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22900 c.parent = parent
22901 c.type_ = type_
22902 c.body_ = body_
22903 return c
22904 }
22905
22906
22907
22908
22909 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
22910 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22911 return c
22912 }
22913
22914
22915 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
22916 c.ctx_ = ctx
22917 return c
22918 }
22919
22920
22921
22922 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() http.Header {
22923 if c.header_ == nil {
22924 c.header_ = make(http.Header)
22925 }
22926 return c.header_
22927 }
22928
22929 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) {
22930 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22931 var body io.Reader = nil
22932 body = c.body_
22933 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
22934 urls += "?" + c.urlParams_.Encode()
22935 req, err := http.NewRequest("PUT", urls, body)
22936 if err != nil {
22937 return nil, err
22938 }
22939 req.Header = reqHeaders
22940 googleapi.Expand(req.URL, map[string]string{
22941 "parent": c.parent,
22942 "type": c.type_,
22943 })
22944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22945 }
22946
22947
22948 func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
22949 gensupport.SetOptions(c.urlParams_, opts...)
22950 return c.doRequest("")
22951 }
22952
22953 type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct {
22954 s *Service
22955 parent string
22956 type_ string
22957 body_ io.Reader
22958 urlParams_ gensupport.URLParams
22959 ctx_ context.Context
22960 header_ http.Header
22961 }
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
22994 c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22995 c.parent = parent
22996 c.type_ = type_
22997 c.body_ = body_
22998 return c
22999 }
23000
23001
23002
23003
23004 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
23005 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23006 return c
23007 }
23008
23009
23010 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
23011 c.ctx_ = ctx
23012 return c
23013 }
23014
23015
23016
23017 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header {
23018 if c.header_ == nil {
23019 c.header_ = make(http.Header)
23020 }
23021 return c.header_
23022 }
23023
23024 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) {
23025 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23026 var body io.Reader = nil
23027 body = c.body_
23028 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
23029 urls += "?" + c.urlParams_.Encode()
23030 req, err := http.NewRequest("POST", urls, body)
23031 if err != nil {
23032 return nil, err
23033 }
23034 req.Header = reqHeaders
23035 googleapi.Expand(req.URL, map[string]string{
23036 "parent": c.parent,
23037 "type": c.type_,
23038 })
23039 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23040 }
23041
23042
23043 func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23044 gensupport.SetOptions(c.urlParams_, opts...)
23045 return c.doRequest("")
23046 }
23047
23048 type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct {
23049 s *Service
23050 name string
23051 urlParams_ gensupport.URLParams
23052 ctx_ context.Context
23053 header_ http.Header
23054 }
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
23070 c := &ProjectsLocationsDatasetsFhirStoresFhirDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23071 c.name = name
23072 return c
23073 }
23074
23075
23076
23077
23078 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
23079 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23080 return c
23081 }
23082
23083
23084 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
23085 c.ctx_ = ctx
23086 return c
23087 }
23088
23089
23090
23091 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header {
23092 if c.header_ == nil {
23093 c.header_ = make(http.Header)
23094 }
23095 return c.header_
23096 }
23097
23098 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) {
23099 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23100 var body io.Reader = nil
23101 c.urlParams_.Set("alt", alt)
23102 c.urlParams_.Set("prettyPrint", "false")
23103 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
23104 urls += "?" + c.urlParams_.Encode()
23105 req, err := http.NewRequest("DELETE", urls, body)
23106 if err != nil {
23107 return nil, err
23108 }
23109 req.Header = reqHeaders
23110 googleapi.Expand(req.URL, map[string]string{
23111 "name": c.name,
23112 })
23113 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23114 }
23115
23116
23117 func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23118 gensupport.SetOptions(c.urlParams_, opts...)
23119 return c.doRequest("")
23120 }
23121
23122 type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct {
23123 s *Service
23124 parent string
23125 body_ io.Reader
23126 urlParams_ gensupport.URLParams
23127 ctx_ context.Context
23128 header_ http.Header
23129 }
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
23172 c := &ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23173 c.parent = parent
23174 c.body_ = body_
23175 return c
23176 }
23177
23178
23179
23180
23181 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
23182 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23183 return c
23184 }
23185
23186
23187 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
23188 c.ctx_ = ctx
23189 return c
23190 }
23191
23192
23193
23194 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http.Header {
23195 if c.header_ == nil {
23196 c.header_ = make(http.Header)
23197 }
23198 return c.header_
23199 }
23200
23201 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) {
23202 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23203 var body io.Reader = nil
23204 body = c.body_
23205 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir")
23206 urls += "?" + c.urlParams_.Encode()
23207 req, err := http.NewRequest("POST", urls, body)
23208 if err != nil {
23209 return nil, err
23210 }
23211 req.Header = reqHeaders
23212 googleapi.Expand(req.URL, map[string]string{
23213 "parent": c.parent,
23214 })
23215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23216 }
23217
23218
23219 func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23220 gensupport.SetOptions(c.urlParams_, opts...)
23221 return c.doRequest("")
23222 }
23223
23224 type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct {
23225 s *Service
23226 name string
23227 urlParams_ gensupport.URLParams
23228 ifNoneMatch_ string
23229 ctx_ context.Context
23230 header_ http.Header
23231 }
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) History(name string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23250 c := &ProjectsLocationsDatasetsFhirStoresFhirHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23251 c.name = name
23252 return c
23253 }
23254
23255
23256
23257
23258
23259
23260
23261 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) At(At string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23262 c.urlParams_.Set("_at", At)
23263 return c
23264 }
23265
23266
23267
23268
23269 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23270 c.urlParams_.Set("_count", fmt.Sprint(Count))
23271 return c
23272 }
23273
23274
23275
23276
23277
23278
23279
23280 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23281 c.urlParams_.Set("_page_token", PageToken)
23282 return c
23283 }
23284
23285
23286
23287
23288
23289
23290 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(Since string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23291 c.urlParams_.Set("_since", Since)
23292 return c
23293 }
23294
23295
23296
23297
23298 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23299 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23300 return c
23301 }
23302
23303
23304
23305
23306 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23307 c.ifNoneMatch_ = entityTag
23308 return c
23309 }
23310
23311
23312 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
23313 c.ctx_ = ctx
23314 return c
23315 }
23316
23317
23318
23319 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Header {
23320 if c.header_ == nil {
23321 c.header_ = make(http.Header)
23322 }
23323 return c.header_
23324 }
23325
23326 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) {
23327 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23328 if c.ifNoneMatch_ != "" {
23329 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23330 }
23331 var body io.Reader = nil
23332 c.urlParams_.Set("alt", alt)
23333 c.urlParams_.Set("prettyPrint", "false")
23334 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/_history")
23335 urls += "?" + c.urlParams_.Encode()
23336 req, err := http.NewRequest("GET", urls, body)
23337 if err != nil {
23338 return nil, err
23339 }
23340 req.Header = reqHeaders
23341 googleapi.Expand(req.URL, map[string]string{
23342 "name": c.name,
23343 })
23344 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23345 }
23346
23347
23348 func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23349 gensupport.SetOptions(c.urlParams_, opts...)
23350 return c.doRequest("")
23351 }
23352
23353 type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct {
23354 s *Service
23355 name string
23356 body_ io.Reader
23357 urlParams_ gensupport.URLParams
23358 ctx_ context.Context
23359 header_ http.Header
23360 }
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
23381 c := &ProjectsLocationsDatasetsFhirStoresFhirPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23382 c.name = name
23383 c.body_ = body_
23384 return c
23385 }
23386
23387
23388
23389
23390 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
23391 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23392 return c
23393 }
23394
23395
23396 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
23397 c.ctx_ = ctx
23398 return c
23399 }
23400
23401
23402
23403 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header {
23404 if c.header_ == nil {
23405 c.header_ = make(http.Header)
23406 }
23407 return c.header_
23408 }
23409
23410 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) {
23411 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23412 var body io.Reader = nil
23413 body = c.body_
23414 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
23415 urls += "?" + c.urlParams_.Encode()
23416 req, err := http.NewRequest("PATCH", urls, body)
23417 if err != nil {
23418 return nil, err
23419 }
23420 req.Header = reqHeaders
23421 googleapi.Expand(req.URL, map[string]string{
23422 "name": c.name,
23423 })
23424 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23425 }
23426
23427
23428 func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23429 gensupport.SetOptions(c.urlParams_, opts...)
23430 return c.doRequest("")
23431 }
23432
23433 type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct {
23434 s *Service
23435 name string
23436 urlParams_ gensupport.URLParams
23437 ifNoneMatch_ string
23438 ctx_ context.Context
23439 header_ http.Header
23440 }
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
23462 c := &ProjectsLocationsDatasetsFhirStoresFhirReadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23463 c.name = name
23464 return c
23465 }
23466
23467
23468
23469
23470 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
23471 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23472 return c
23473 }
23474
23475
23476
23477
23478 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
23479 c.ifNoneMatch_ = entityTag
23480 return c
23481 }
23482
23483
23484 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
23485 c.ctx_ = ctx
23486 return c
23487 }
23488
23489
23490
23491 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header {
23492 if c.header_ == nil {
23493 c.header_ = make(http.Header)
23494 }
23495 return c.header_
23496 }
23497
23498 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) {
23499 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23500 if c.ifNoneMatch_ != "" {
23501 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23502 }
23503 var body io.Reader = nil
23504 c.urlParams_.Set("alt", alt)
23505 c.urlParams_.Set("prettyPrint", "false")
23506 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
23507 urls += "?" + c.urlParams_.Encode()
23508 req, err := http.NewRequest("GET", urls, body)
23509 if err != nil {
23510 return nil, err
23511 }
23512 req.Header = reqHeaders
23513 googleapi.Expand(req.URL, map[string]string{
23514 "name": c.name,
23515 })
23516 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23517 }
23518
23519
23520 func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23521 gensupport.SetOptions(c.urlParams_, opts...)
23522 return c.doRequest("")
23523 }
23524
23525 type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct {
23526 s *Service
23527 parent string
23528 searchresourcesrequest *SearchResourcesRequest
23529 urlParams_ gensupport.URLParams
23530 ctx_ context.Context
23531 header_ http.Header
23532 }
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
23605 c := &ProjectsLocationsDatasetsFhirStoresFhirSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23606 c.parent = parent
23607 c.searchresourcesrequest = searchresourcesrequest
23608 return c
23609 }
23610
23611
23612
23613
23614 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
23615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23616 return c
23617 }
23618
23619
23620 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
23621 c.ctx_ = ctx
23622 return c
23623 }
23624
23625
23626
23627 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header {
23628 if c.header_ == nil {
23629 c.header_ = make(http.Header)
23630 }
23631 return c.header_
23632 }
23633
23634 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) {
23635 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23636 var body io.Reader = nil
23637 body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
23638 if err != nil {
23639 return nil, err
23640 }
23641 c.urlParams_.Set("alt", alt)
23642 c.urlParams_.Set("prettyPrint", "false")
23643 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/_search")
23644 urls += "?" + c.urlParams_.Encode()
23645 req, err := http.NewRequest("POST", urls, body)
23646 if err != nil {
23647 return nil, err
23648 }
23649 req.Header = reqHeaders
23650 googleapi.Expand(req.URL, map[string]string{
23651 "parent": c.parent,
23652 })
23653 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23654 }
23655
23656
23657 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23658 gensupport.SetOptions(c.urlParams_, opts...)
23659 return c.doRequest("")
23660 }
23661
23662 type ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall struct {
23663 s *Service
23664 parent string
23665 resourceType string
23666 searchresourcesrequest *SearchResourcesRequest
23667 urlParams_ gensupport.URLParams
23668 ctx_ context.Context
23669 header_ http.Header
23670 }
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) SearchType(parent string, resourceType string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
23748 c := &ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23749 c.parent = parent
23750 c.resourceType = resourceType
23751 c.searchresourcesrequest = searchresourcesrequest
23752 return c
23753 }
23754
23755
23756
23757
23758 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
23759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23760 return c
23761 }
23762
23763
23764 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
23765 c.ctx_ = ctx
23766 return c
23767 }
23768
23769
23770
23771 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Header() http.Header {
23772 if c.header_ == nil {
23773 c.header_ = make(http.Header)
23774 }
23775 return c.header_
23776 }
23777
23778 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) doRequest(alt string) (*http.Response, error) {
23779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23780 var body io.Reader = nil
23781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
23782 if err != nil {
23783 return nil, err
23784 }
23785 c.urlParams_.Set("alt", alt)
23786 c.urlParams_.Set("prettyPrint", "false")
23787 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{resourceType}/_search")
23788 urls += "?" + c.urlParams_.Encode()
23789 req, err := http.NewRequest("POST", urls, body)
23790 if err != nil {
23791 return nil, err
23792 }
23793 req.Header = reqHeaders
23794 googleapi.Expand(req.URL, map[string]string{
23795 "parent": c.parent,
23796 "resourceType": c.resourceType,
23797 })
23798 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23799 }
23800
23801
23802 func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23803 gensupport.SetOptions(c.urlParams_, opts...)
23804 return c.doRequest("")
23805 }
23806
23807 type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct {
23808 s *Service
23809 name string
23810 body_ io.Reader
23811 urlParams_ gensupport.URLParams
23812 ctx_ context.Context
23813 header_ http.Header
23814 }
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
23841 c := &ProjectsLocationsDatasetsFhirStoresFhirUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23842 c.name = name
23843 c.body_ = body_
23844 return c
23845 }
23846
23847
23848
23849
23850 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
23851 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23852 return c
23853 }
23854
23855
23856 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
23857 c.ctx_ = ctx
23858 return c
23859 }
23860
23861
23862
23863 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header {
23864 if c.header_ == nil {
23865 c.header_ = make(http.Header)
23866 }
23867 return c.header_
23868 }
23869
23870 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) {
23871 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23872 var body io.Reader = nil
23873 body = c.body_
23874 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
23875 urls += "?" + c.urlParams_.Encode()
23876 req, err := http.NewRequest("PUT", urls, body)
23877 if err != nil {
23878 return nil, err
23879 }
23880 req.Header = reqHeaders
23881 googleapi.Expand(req.URL, map[string]string{
23882 "name": c.name,
23883 })
23884 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23885 }
23886
23887
23888 func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23889 gensupport.SetOptions(c.urlParams_, opts...)
23890 return c.doRequest("")
23891 }
23892
23893 type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct {
23894 s *Service
23895 name string
23896 urlParams_ gensupport.URLParams
23897 ifNoneMatch_ string
23898 ctx_ context.Context
23899 header_ http.Header
23900 }
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916 func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
23917 c := &ProjectsLocationsDatasetsFhirStoresFhirVreadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23918 c.name = name
23919 return c
23920 }
23921
23922
23923
23924
23925 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
23926 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23927 return c
23928 }
23929
23930
23931
23932
23933 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
23934 c.ifNoneMatch_ = entityTag
23935 return c
23936 }
23937
23938
23939 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
23940 c.ctx_ = ctx
23941 return c
23942 }
23943
23944
23945
23946 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header {
23947 if c.header_ == nil {
23948 c.header_ = make(http.Header)
23949 }
23950 return c.header_
23951 }
23952
23953 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) {
23954 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23955 if c.ifNoneMatch_ != "" {
23956 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23957 }
23958 var body io.Reader = nil
23959 c.urlParams_.Set("alt", alt)
23960 c.urlParams_.Set("prettyPrint", "false")
23961 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
23962 urls += "?" + c.urlParams_.Encode()
23963 req, err := http.NewRequest("GET", urls, body)
23964 if err != nil {
23965 return nil, err
23966 }
23967 req.Header = reqHeaders
23968 googleapi.Expand(req.URL, map[string]string{
23969 "name": c.name,
23970 })
23971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23972 }
23973
23974
23975 func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
23976 gensupport.SetOptions(c.urlParams_, opts...)
23977 return c.doRequest("")
23978 }
23979
23980 type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct {
23981 s *Service
23982 parent string
23983 hl7v2store *Hl7V2Store
23984 urlParams_ gensupport.URLParams
23985 ctx_ context.Context
23986 header_ http.Header
23987 }
23988
23989
23990
23991
23992 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
23993 c := &ProjectsLocationsDatasetsHl7V2StoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23994 c.parent = parent
23995 c.hl7v2store = hl7v2store
23996 return c
23997 }
23998
23999
24000
24001
24002 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Hl7V2StoreId(hl7V2StoreId string) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
24003 c.urlParams_.Set("hl7V2StoreId", hl7V2StoreId)
24004 return c
24005 }
24006
24007
24008
24009
24010 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
24011 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24012 return c
24013 }
24014
24015
24016 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
24017 c.ctx_ = ctx
24018 return c
24019 }
24020
24021
24022
24023 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header {
24024 if c.header_ == nil {
24025 c.header_ = make(http.Header)
24026 }
24027 return c.header_
24028 }
24029
24030 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) {
24031 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24032 var body io.Reader = nil
24033 body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
24034 if err != nil {
24035 return nil, err
24036 }
24037 c.urlParams_.Set("alt", alt)
24038 c.urlParams_.Set("prettyPrint", "false")
24039 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hl7V2Stores")
24040 urls += "?" + c.urlParams_.Encode()
24041 req, err := http.NewRequest("POST", urls, body)
24042 if err != nil {
24043 return nil, err
24044 }
24045 req.Header = reqHeaders
24046 googleapi.Expand(req.URL, map[string]string{
24047 "parent": c.parent,
24048 })
24049 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24050 }
24051
24052
24053
24054
24055
24056
24057 func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
24058 gensupport.SetOptions(c.urlParams_, opts...)
24059 res, err := c.doRequest("json")
24060 if res != nil && res.StatusCode == http.StatusNotModified {
24061 if res.Body != nil {
24062 res.Body.Close()
24063 }
24064 return nil, gensupport.WrapError(&googleapi.Error{
24065 Code: res.StatusCode,
24066 Header: res.Header,
24067 })
24068 }
24069 if err != nil {
24070 return nil, err
24071 }
24072 defer googleapi.CloseBody(res)
24073 if err := googleapi.CheckResponse(res); err != nil {
24074 return nil, gensupport.WrapError(err)
24075 }
24076 ret := &Hl7V2Store{
24077 ServerResponse: googleapi.ServerResponse{
24078 Header: res.Header,
24079 HTTPStatusCode: res.StatusCode,
24080 },
24081 }
24082 target := &ret
24083 if err := gensupport.DecodeResponse(target, res); err != nil {
24084 return nil, err
24085 }
24086 return ret, nil
24087 }
24088
24089 type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct {
24090 s *Service
24091 name string
24092 urlParams_ gensupport.URLParams
24093 ctx_ context.Context
24094 header_ http.Header
24095 }
24096
24097
24098
24099
24100
24101 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
24102 c := &ProjectsLocationsDatasetsHl7V2StoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24103 c.name = name
24104 return c
24105 }
24106
24107
24108
24109
24110 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
24111 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24112 return c
24113 }
24114
24115
24116 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
24117 c.ctx_ = ctx
24118 return c
24119 }
24120
24121
24122
24123 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header {
24124 if c.header_ == nil {
24125 c.header_ = make(http.Header)
24126 }
24127 return c.header_
24128 }
24129
24130 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) {
24131 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24132 var body io.Reader = nil
24133 c.urlParams_.Set("alt", alt)
24134 c.urlParams_.Set("prettyPrint", "false")
24135 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
24136 urls += "?" + c.urlParams_.Encode()
24137 req, err := http.NewRequest("DELETE", urls, body)
24138 if err != nil {
24139 return nil, err
24140 }
24141 req.Header = reqHeaders
24142 googleapi.Expand(req.URL, map[string]string{
24143 "name": c.name,
24144 })
24145 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24146 }
24147
24148
24149
24150
24151
24152
24153 func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
24154 gensupport.SetOptions(c.urlParams_, opts...)
24155 res, err := c.doRequest("json")
24156 if res != nil && res.StatusCode == http.StatusNotModified {
24157 if res.Body != nil {
24158 res.Body.Close()
24159 }
24160 return nil, gensupport.WrapError(&googleapi.Error{
24161 Code: res.StatusCode,
24162 Header: res.Header,
24163 })
24164 }
24165 if err != nil {
24166 return nil, err
24167 }
24168 defer googleapi.CloseBody(res)
24169 if err := googleapi.CheckResponse(res); err != nil {
24170 return nil, gensupport.WrapError(err)
24171 }
24172 ret := &Empty{
24173 ServerResponse: googleapi.ServerResponse{
24174 Header: res.Header,
24175 HTTPStatusCode: res.StatusCode,
24176 },
24177 }
24178 target := &ret
24179 if err := gensupport.DecodeResponse(target, res); err != nil {
24180 return nil, err
24181 }
24182 return ret, nil
24183 }
24184
24185 type ProjectsLocationsDatasetsHl7V2StoresExportCall struct {
24186 s *Service
24187 name string
24188 exportmessagesrequest *ExportMessagesRequest
24189 urlParams_ gensupport.URLParams
24190 ctx_ context.Context
24191 header_ http.Header
24192 }
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Export(name string, exportmessagesrequest *ExportMessagesRequest) *ProjectsLocationsDatasetsHl7V2StoresExportCall {
24206 c := &ProjectsLocationsDatasetsHl7V2StoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24207 c.name = name
24208 c.exportmessagesrequest = exportmessagesrequest
24209 return c
24210 }
24211
24212
24213
24214
24215 func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresExportCall {
24216 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24217 return c
24218 }
24219
24220
24221 func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresExportCall {
24222 c.ctx_ = ctx
24223 return c
24224 }
24225
24226
24227
24228 func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Header() http.Header {
24229 if c.header_ == nil {
24230 c.header_ = make(http.Header)
24231 }
24232 return c.header_
24233 }
24234
24235 func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) doRequest(alt string) (*http.Response, error) {
24236 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24237 var body io.Reader = nil
24238 body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportmessagesrequest)
24239 if err != nil {
24240 return nil, err
24241 }
24242 c.urlParams_.Set("alt", alt)
24243 c.urlParams_.Set("prettyPrint", "false")
24244 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
24245 urls += "?" + c.urlParams_.Encode()
24246 req, err := http.NewRequest("POST", urls, body)
24247 if err != nil {
24248 return nil, err
24249 }
24250 req.Header = reqHeaders
24251 googleapi.Expand(req.URL, map[string]string{
24252 "name": c.name,
24253 })
24254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24255 }
24256
24257
24258
24259
24260
24261
24262 func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
24263 gensupport.SetOptions(c.urlParams_, opts...)
24264 res, err := c.doRequest("json")
24265 if res != nil && res.StatusCode == http.StatusNotModified {
24266 if res.Body != nil {
24267 res.Body.Close()
24268 }
24269 return nil, gensupport.WrapError(&googleapi.Error{
24270 Code: res.StatusCode,
24271 Header: res.Header,
24272 })
24273 }
24274 if err != nil {
24275 return nil, err
24276 }
24277 defer googleapi.CloseBody(res)
24278 if err := googleapi.CheckResponse(res); err != nil {
24279 return nil, gensupport.WrapError(err)
24280 }
24281 ret := &Operation{
24282 ServerResponse: googleapi.ServerResponse{
24283 Header: res.Header,
24284 HTTPStatusCode: res.StatusCode,
24285 },
24286 }
24287 target := &ret
24288 if err := gensupport.DecodeResponse(target, res); err != nil {
24289 return nil, err
24290 }
24291 return ret, nil
24292 }
24293
24294 type ProjectsLocationsDatasetsHl7V2StoresGetCall struct {
24295 s *Service
24296 name string
24297 urlParams_ gensupport.URLParams
24298 ifNoneMatch_ string
24299 ctx_ context.Context
24300 header_ http.Header
24301 }
24302
24303
24304
24305
24306 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
24307 c := &ProjectsLocationsDatasetsHl7V2StoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24308 c.name = name
24309 return c
24310 }
24311
24312
24313
24314
24315 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
24316 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24317 return c
24318 }
24319
24320
24321
24322
24323 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
24324 c.ifNoneMatch_ = entityTag
24325 return c
24326 }
24327
24328
24329 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
24330 c.ctx_ = ctx
24331 return c
24332 }
24333
24334
24335
24336 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header {
24337 if c.header_ == nil {
24338 c.header_ = make(http.Header)
24339 }
24340 return c.header_
24341 }
24342
24343 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) {
24344 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24345 if c.ifNoneMatch_ != "" {
24346 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24347 }
24348 var body io.Reader = nil
24349 c.urlParams_.Set("alt", alt)
24350 c.urlParams_.Set("prettyPrint", "false")
24351 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
24352 urls += "?" + c.urlParams_.Encode()
24353 req, err := http.NewRequest("GET", urls, body)
24354 if err != nil {
24355 return nil, err
24356 }
24357 req.Header = reqHeaders
24358 googleapi.Expand(req.URL, map[string]string{
24359 "name": c.name,
24360 })
24361 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24362 }
24363
24364
24365
24366
24367
24368
24369 func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
24370 gensupport.SetOptions(c.urlParams_, opts...)
24371 res, err := c.doRequest("json")
24372 if res != nil && res.StatusCode == http.StatusNotModified {
24373 if res.Body != nil {
24374 res.Body.Close()
24375 }
24376 return nil, gensupport.WrapError(&googleapi.Error{
24377 Code: res.StatusCode,
24378 Header: res.Header,
24379 })
24380 }
24381 if err != nil {
24382 return nil, err
24383 }
24384 defer googleapi.CloseBody(res)
24385 if err := googleapi.CheckResponse(res); err != nil {
24386 return nil, gensupport.WrapError(err)
24387 }
24388 ret := &Hl7V2Store{
24389 ServerResponse: googleapi.ServerResponse{
24390 Header: res.Header,
24391 HTTPStatusCode: res.StatusCode,
24392 },
24393 }
24394 target := &ret
24395 if err := gensupport.DecodeResponse(target, res); err != nil {
24396 return nil, err
24397 }
24398 return ret, nil
24399 }
24400
24401 type ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall struct {
24402 s *Service
24403 name string
24404 urlParams_ gensupport.URLParams
24405 ifNoneMatch_ string
24406 ctx_ context.Context
24407 header_ http.Header
24408 }
24409
24410
24411
24412
24413
24414
24415
24416 func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetHL7v2StoreMetrics(name string) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
24417 c := &ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24418 c.name = name
24419 return c
24420 }
24421
24422
24423
24424
24425 func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
24426 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24427 return c
24428 }
24429
24430
24431
24432
24433 func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
24434 c.ifNoneMatch_ = entityTag
24435 return c
24436 }
24437
24438
24439 func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
24440 c.ctx_ = ctx
24441 return c
24442 }
24443
24444
24445
24446 func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Header() http.Header {
24447 if c.header_ == nil {
24448 c.header_ = make(http.Header)
24449 }
24450 return c.header_
24451 }
24452
24453 func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) doRequest(alt string) (*http.Response, error) {
24454 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24455 if c.ifNoneMatch_ != "" {
24456 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24457 }
24458 var body io.Reader = nil
24459 c.urlParams_.Set("alt", alt)
24460 c.urlParams_.Set("prettyPrint", "false")
24461 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:getHL7v2StoreMetrics")
24462 urls += "?" + c.urlParams_.Encode()
24463 req, err := http.NewRequest("GET", urls, body)
24464 if err != nil {
24465 return nil, err
24466 }
24467 req.Header = reqHeaders
24468 googleapi.Expand(req.URL, map[string]string{
24469 "name": c.name,
24470 })
24471 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24472 }
24473
24474
24475
24476
24477
24478
24479
24480 func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Do(opts ...googleapi.CallOption) (*Hl7V2StoreMetrics, error) {
24481 gensupport.SetOptions(c.urlParams_, opts...)
24482 res, err := c.doRequest("json")
24483 if res != nil && res.StatusCode == http.StatusNotModified {
24484 if res.Body != nil {
24485 res.Body.Close()
24486 }
24487 return nil, gensupport.WrapError(&googleapi.Error{
24488 Code: res.StatusCode,
24489 Header: res.Header,
24490 })
24491 }
24492 if err != nil {
24493 return nil, err
24494 }
24495 defer googleapi.CloseBody(res)
24496 if err := googleapi.CheckResponse(res); err != nil {
24497 return nil, gensupport.WrapError(err)
24498 }
24499 ret := &Hl7V2StoreMetrics{
24500 ServerResponse: googleapi.ServerResponse{
24501 Header: res.Header,
24502 HTTPStatusCode: res.StatusCode,
24503 },
24504 }
24505 target := &ret
24506 if err := gensupport.DecodeResponse(target, res); err != nil {
24507 return nil, err
24508 }
24509 return ret, nil
24510 }
24511
24512 type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct {
24513 s *Service
24514 resource string
24515 urlParams_ gensupport.URLParams
24516 ifNoneMatch_ string
24517 ctx_ context.Context
24518 header_ http.Header
24519 }
24520
24521
24522
24523
24524
24525
24526
24527 func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
24528 c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24529 c.resource = resource
24530 return c
24531 }
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
24546 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
24547 return c
24548 }
24549
24550
24551
24552
24553 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
24554 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24555 return c
24556 }
24557
24558
24559
24560
24561 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
24562 c.ifNoneMatch_ = entityTag
24563 return c
24564 }
24565
24566
24567 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
24568 c.ctx_ = ctx
24569 return c
24570 }
24571
24572
24573
24574 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header {
24575 if c.header_ == nil {
24576 c.header_ = make(http.Header)
24577 }
24578 return c.header_
24579 }
24580
24581 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
24582 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24583 if c.ifNoneMatch_ != "" {
24584 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24585 }
24586 var body io.Reader = nil
24587 c.urlParams_.Set("alt", alt)
24588 c.urlParams_.Set("prettyPrint", "false")
24589 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
24590 urls += "?" + c.urlParams_.Encode()
24591 req, err := http.NewRequest("GET", urls, body)
24592 if err != nil {
24593 return nil, err
24594 }
24595 req.Header = reqHeaders
24596 googleapi.Expand(req.URL, map[string]string{
24597 "resource": c.resource,
24598 })
24599 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24600 }
24601
24602
24603
24604
24605
24606
24607 func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
24608 gensupport.SetOptions(c.urlParams_, opts...)
24609 res, err := c.doRequest("json")
24610 if res != nil && res.StatusCode == http.StatusNotModified {
24611 if res.Body != nil {
24612 res.Body.Close()
24613 }
24614 return nil, gensupport.WrapError(&googleapi.Error{
24615 Code: res.StatusCode,
24616 Header: res.Header,
24617 })
24618 }
24619 if err != nil {
24620 return nil, err
24621 }
24622 defer googleapi.CloseBody(res)
24623 if err := googleapi.CheckResponse(res); err != nil {
24624 return nil, gensupport.WrapError(err)
24625 }
24626 ret := &Policy{
24627 ServerResponse: googleapi.ServerResponse{
24628 Header: res.Header,
24629 HTTPStatusCode: res.StatusCode,
24630 },
24631 }
24632 target := &ret
24633 if err := gensupport.DecodeResponse(target, res); err != nil {
24634 return nil, err
24635 }
24636 return ret, nil
24637 }
24638
24639 type ProjectsLocationsDatasetsHl7V2StoresImportCall struct {
24640 s *Service
24641 name string
24642 importmessagesrequest *ImportMessagesRequest
24643 urlParams_ gensupport.URLParams
24644 ctx_ context.Context
24645 header_ http.Header
24646 }
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Import(name string, importmessagesrequest *ImportMessagesRequest) *ProjectsLocationsDatasetsHl7V2StoresImportCall {
24678 c := &ProjectsLocationsDatasetsHl7V2StoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24679 c.name = name
24680 c.importmessagesrequest = importmessagesrequest
24681 return c
24682 }
24683
24684
24685
24686
24687 func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresImportCall {
24688 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24689 return c
24690 }
24691
24692
24693 func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresImportCall {
24694 c.ctx_ = ctx
24695 return c
24696 }
24697
24698
24699
24700 func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Header() http.Header {
24701 if c.header_ == nil {
24702 c.header_ = make(http.Header)
24703 }
24704 return c.header_
24705 }
24706
24707 func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) doRequest(alt string) (*http.Response, error) {
24708 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24709 var body io.Reader = nil
24710 body, err := googleapi.WithoutDataWrapper.JSONReader(c.importmessagesrequest)
24711 if err != nil {
24712 return nil, err
24713 }
24714 c.urlParams_.Set("alt", alt)
24715 c.urlParams_.Set("prettyPrint", "false")
24716 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
24717 urls += "?" + c.urlParams_.Encode()
24718 req, err := http.NewRequest("POST", urls, body)
24719 if err != nil {
24720 return nil, err
24721 }
24722 req.Header = reqHeaders
24723 googleapi.Expand(req.URL, map[string]string{
24724 "name": c.name,
24725 })
24726 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24727 }
24728
24729
24730
24731
24732
24733
24734 func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
24735 gensupport.SetOptions(c.urlParams_, opts...)
24736 res, err := c.doRequest("json")
24737 if res != nil && res.StatusCode == http.StatusNotModified {
24738 if res.Body != nil {
24739 res.Body.Close()
24740 }
24741 return nil, gensupport.WrapError(&googleapi.Error{
24742 Code: res.StatusCode,
24743 Header: res.Header,
24744 })
24745 }
24746 if err != nil {
24747 return nil, err
24748 }
24749 defer googleapi.CloseBody(res)
24750 if err := googleapi.CheckResponse(res); err != nil {
24751 return nil, gensupport.WrapError(err)
24752 }
24753 ret := &Operation{
24754 ServerResponse: googleapi.ServerResponse{
24755 Header: res.Header,
24756 HTTPStatusCode: res.StatusCode,
24757 },
24758 }
24759 target := &ret
24760 if err := gensupport.DecodeResponse(target, res); err != nil {
24761 return nil, err
24762 }
24763 return ret, nil
24764 }
24765
24766 type ProjectsLocationsDatasetsHl7V2StoresListCall struct {
24767 s *Service
24768 parent string
24769 urlParams_ gensupport.URLParams
24770 ifNoneMatch_ string
24771 ctx_ context.Context
24772 header_ http.Header
24773 }
24774
24775
24776
24777
24778 func (r *ProjectsLocationsDatasetsHl7V2StoresService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24779 c := &ProjectsLocationsDatasetsHl7V2StoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24780 c.parent = parent
24781 return c
24782 }
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24808 c.urlParams_.Set("filter", filter)
24809 return c
24810 }
24811
24812
24813
24814
24815 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24816 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24817 return c
24818 }
24819
24820
24821
24822 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24823 c.urlParams_.Set("pageToken", pageToken)
24824 return c
24825 }
24826
24827
24828
24829
24830 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24831 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24832 return c
24833 }
24834
24835
24836
24837
24838 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24839 c.ifNoneMatch_ = entityTag
24840 return c
24841 }
24842
24843
24844 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresListCall {
24845 c.ctx_ = ctx
24846 return c
24847 }
24848
24849
24850
24851 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header {
24852 if c.header_ == nil {
24853 c.header_ = make(http.Header)
24854 }
24855 return c.header_
24856 }
24857
24858 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) {
24859 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24860 if c.ifNoneMatch_ != "" {
24861 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24862 }
24863 var body io.Reader = nil
24864 c.urlParams_.Set("alt", alt)
24865 c.urlParams_.Set("prettyPrint", "false")
24866 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hl7V2Stores")
24867 urls += "?" + c.urlParams_.Encode()
24868 req, err := http.NewRequest("GET", urls, body)
24869 if err != nil {
24870 return nil, err
24871 }
24872 req.Header = reqHeaders
24873 googleapi.Expand(req.URL, map[string]string{
24874 "parent": c.parent,
24875 })
24876 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24877 }
24878
24879
24880
24881
24882
24883
24884
24885 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.CallOption) (*ListHl7V2StoresResponse, error) {
24886 gensupport.SetOptions(c.urlParams_, opts...)
24887 res, err := c.doRequest("json")
24888 if res != nil && res.StatusCode == http.StatusNotModified {
24889 if res.Body != nil {
24890 res.Body.Close()
24891 }
24892 return nil, gensupport.WrapError(&googleapi.Error{
24893 Code: res.StatusCode,
24894 Header: res.Header,
24895 })
24896 }
24897 if err != nil {
24898 return nil, err
24899 }
24900 defer googleapi.CloseBody(res)
24901 if err := googleapi.CheckResponse(res); err != nil {
24902 return nil, gensupport.WrapError(err)
24903 }
24904 ret := &ListHl7V2StoresResponse{
24905 ServerResponse: googleapi.ServerResponse{
24906 Header: res.Header,
24907 HTTPStatusCode: res.StatusCode,
24908 },
24909 }
24910 target := &ret
24911 if err := gensupport.DecodeResponse(target, res); err != nil {
24912 return nil, err
24913 }
24914 return ret, nil
24915 }
24916
24917
24918
24919
24920 func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context, f func(*ListHl7V2StoresResponse) error) error {
24921 c.ctx_ = ctx
24922 defer c.PageToken(c.urlParams_.Get("pageToken"))
24923 for {
24924 x, err := c.Do()
24925 if err != nil {
24926 return err
24927 }
24928 if err := f(x); err != nil {
24929 return err
24930 }
24931 if x.NextPageToken == "" {
24932 return nil
24933 }
24934 c.PageToken(x.NextPageToken)
24935 }
24936 }
24937
24938 type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct {
24939 s *Service
24940 name string
24941 hl7v2store *Hl7V2Store
24942 urlParams_ gensupport.URLParams
24943 ctx_ context.Context
24944 header_ http.Header
24945 }
24946
24947
24948
24949
24950
24951
24952 func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
24953 c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24954 c.name = name
24955 c.hl7v2store = hl7v2store
24956 return c
24957 }
24958
24959
24960
24961
24962 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
24963 c.urlParams_.Set("updateMask", updateMask)
24964 return c
24965 }
24966
24967
24968
24969
24970 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
24971 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24972 return c
24973 }
24974
24975
24976 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
24977 c.ctx_ = ctx
24978 return c
24979 }
24980
24981
24982
24983 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header {
24984 if c.header_ == nil {
24985 c.header_ = make(http.Header)
24986 }
24987 return c.header_
24988 }
24989
24990 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) {
24991 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24992 var body io.Reader = nil
24993 body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
24994 if err != nil {
24995 return nil, err
24996 }
24997 c.urlParams_.Set("alt", alt)
24998 c.urlParams_.Set("prettyPrint", "false")
24999 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
25000 urls += "?" + c.urlParams_.Encode()
25001 req, err := http.NewRequest("PATCH", urls, body)
25002 if err != nil {
25003 return nil, err
25004 }
25005 req.Header = reqHeaders
25006 googleapi.Expand(req.URL, map[string]string{
25007 "name": c.name,
25008 })
25009 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25010 }
25011
25012
25013
25014
25015
25016
25017 func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
25018 gensupport.SetOptions(c.urlParams_, opts...)
25019 res, err := c.doRequest("json")
25020 if res != nil && res.StatusCode == http.StatusNotModified {
25021 if res.Body != nil {
25022 res.Body.Close()
25023 }
25024 return nil, gensupport.WrapError(&googleapi.Error{
25025 Code: res.StatusCode,
25026 Header: res.Header,
25027 })
25028 }
25029 if err != nil {
25030 return nil, err
25031 }
25032 defer googleapi.CloseBody(res)
25033 if err := googleapi.CheckResponse(res); err != nil {
25034 return nil, gensupport.WrapError(err)
25035 }
25036 ret := &Hl7V2Store{
25037 ServerResponse: googleapi.ServerResponse{
25038 Header: res.Header,
25039 HTTPStatusCode: res.StatusCode,
25040 },
25041 }
25042 target := &ret
25043 if err := gensupport.DecodeResponse(target, res); err != nil {
25044 return nil, err
25045 }
25046 return ret, nil
25047 }
25048
25049 type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct {
25050 s *Service
25051 resource string
25052 setiampolicyrequest *SetIamPolicyRequest
25053 urlParams_ gensupport.URLParams
25054 ctx_ context.Context
25055 header_ http.Header
25056 }
25057
25058
25059
25060
25061
25062
25063
25064
25065 func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
25066 c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25067 c.resource = resource
25068 c.setiampolicyrequest = setiampolicyrequest
25069 return c
25070 }
25071
25072
25073
25074
25075 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
25076 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25077 return c
25078 }
25079
25080
25081 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
25082 c.ctx_ = ctx
25083 return c
25084 }
25085
25086
25087
25088 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header {
25089 if c.header_ == nil {
25090 c.header_ = make(http.Header)
25091 }
25092 return c.header_
25093 }
25094
25095 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
25096 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25097 var body io.Reader = nil
25098 body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
25099 if err != nil {
25100 return nil, err
25101 }
25102 c.urlParams_.Set("alt", alt)
25103 c.urlParams_.Set("prettyPrint", "false")
25104 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
25105 urls += "?" + c.urlParams_.Encode()
25106 req, err := http.NewRequest("POST", urls, body)
25107 if err != nil {
25108 return nil, err
25109 }
25110 req.Header = reqHeaders
25111 googleapi.Expand(req.URL, map[string]string{
25112 "resource": c.resource,
25113 })
25114 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25115 }
25116
25117
25118
25119
25120
25121
25122 func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
25123 gensupport.SetOptions(c.urlParams_, opts...)
25124 res, err := c.doRequest("json")
25125 if res != nil && res.StatusCode == http.StatusNotModified {
25126 if res.Body != nil {
25127 res.Body.Close()
25128 }
25129 return nil, gensupport.WrapError(&googleapi.Error{
25130 Code: res.StatusCode,
25131 Header: res.Header,
25132 })
25133 }
25134 if err != nil {
25135 return nil, err
25136 }
25137 defer googleapi.CloseBody(res)
25138 if err := googleapi.CheckResponse(res); err != nil {
25139 return nil, gensupport.WrapError(err)
25140 }
25141 ret := &Policy{
25142 ServerResponse: googleapi.ServerResponse{
25143 Header: res.Header,
25144 HTTPStatusCode: res.StatusCode,
25145 },
25146 }
25147 target := &ret
25148 if err := gensupport.DecodeResponse(target, res); err != nil {
25149 return nil, err
25150 }
25151 return ret, nil
25152 }
25153
25154 type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct {
25155 s *Service
25156 resource string
25157 testiampermissionsrequest *TestIamPermissionsRequest
25158 urlParams_ gensupport.URLParams
25159 ctx_ context.Context
25160 header_ http.Header
25161 }
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173 func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
25174 c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25175 c.resource = resource
25176 c.testiampermissionsrequest = testiampermissionsrequest
25177 return c
25178 }
25179
25180
25181
25182
25183 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
25184 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25185 return c
25186 }
25187
25188
25189 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
25190 c.ctx_ = ctx
25191 return c
25192 }
25193
25194
25195
25196 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header {
25197 if c.header_ == nil {
25198 c.header_ = make(http.Header)
25199 }
25200 return c.header_
25201 }
25202
25203 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
25204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25205 var body io.Reader = nil
25206 body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
25207 if err != nil {
25208 return nil, err
25209 }
25210 c.urlParams_.Set("alt", alt)
25211 c.urlParams_.Set("prettyPrint", "false")
25212 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
25213 urls += "?" + c.urlParams_.Encode()
25214 req, err := http.NewRequest("POST", urls, body)
25215 if err != nil {
25216 return nil, err
25217 }
25218 req.Header = reqHeaders
25219 googleapi.Expand(req.URL, map[string]string{
25220 "resource": c.resource,
25221 })
25222 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25223 }
25224
25225
25226
25227
25228
25229
25230
25231 func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
25232 gensupport.SetOptions(c.urlParams_, opts...)
25233 res, err := c.doRequest("json")
25234 if res != nil && res.StatusCode == http.StatusNotModified {
25235 if res.Body != nil {
25236 res.Body.Close()
25237 }
25238 return nil, gensupport.WrapError(&googleapi.Error{
25239 Code: res.StatusCode,
25240 Header: res.Header,
25241 })
25242 }
25243 if err != nil {
25244 return nil, err
25245 }
25246 defer googleapi.CloseBody(res)
25247 if err := googleapi.CheckResponse(res); err != nil {
25248 return nil, gensupport.WrapError(err)
25249 }
25250 ret := &TestIamPermissionsResponse{
25251 ServerResponse: googleapi.ServerResponse{
25252 Header: res.Header,
25253 HTTPStatusCode: res.StatusCode,
25254 },
25255 }
25256 target := &ret
25257 if err := gensupport.DecodeResponse(target, res); err != nil {
25258 return nil, err
25259 }
25260 return ret, nil
25261 }
25262
25263 type ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall struct {
25264 s *Service
25265 parent string
25266 urlParams_ gensupport.URLParams
25267 ifNoneMatch_ string
25268 ctx_ context.Context
25269 header_ http.Header
25270 }
25271
25272
25273
25274
25275
25276
25277 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) BatchGet(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
25278 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25279 c.parent = parent
25280 return c
25281 }
25282
25283
25284
25285
25286
25287 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Ids(ids ...string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
25288 c.urlParams_.SetMulti("ids", append([]string{}, ids...))
25289 return c
25290 }
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
25316 c.urlParams_.Set("view", view)
25317 return c
25318 }
25319
25320
25321
25322
25323 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
25324 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25325 return c
25326 }
25327
25328
25329
25330
25331 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
25332 c.ifNoneMatch_ = entityTag
25333 return c
25334 }
25335
25336
25337 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
25338 c.ctx_ = ctx
25339 return c
25340 }
25341
25342
25343
25344 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Header() http.Header {
25345 if c.header_ == nil {
25346 c.header_ = make(http.Header)
25347 }
25348 return c.header_
25349 }
25350
25351 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) doRequest(alt string) (*http.Response, error) {
25352 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25353 if c.ifNoneMatch_ != "" {
25354 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25355 }
25356 var body io.Reader = nil
25357 c.urlParams_.Set("alt", alt)
25358 c.urlParams_.Set("prettyPrint", "false")
25359 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages:batchGet")
25360 urls += "?" + c.urlParams_.Encode()
25361 req, err := http.NewRequest("GET", urls, body)
25362 if err != nil {
25363 return nil, err
25364 }
25365 req.Header = reqHeaders
25366 googleapi.Expand(req.URL, map[string]string{
25367 "parent": c.parent,
25368 })
25369 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25370 }
25371
25372
25373
25374
25375
25376
25377
25378 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Do(opts ...googleapi.CallOption) (*BatchGetMessagesResponse, error) {
25379 gensupport.SetOptions(c.urlParams_, opts...)
25380 res, err := c.doRequest("json")
25381 if res != nil && res.StatusCode == http.StatusNotModified {
25382 if res.Body != nil {
25383 res.Body.Close()
25384 }
25385 return nil, gensupport.WrapError(&googleapi.Error{
25386 Code: res.StatusCode,
25387 Header: res.Header,
25388 })
25389 }
25390 if err != nil {
25391 return nil, err
25392 }
25393 defer googleapi.CloseBody(res)
25394 if err := googleapi.CheckResponse(res); err != nil {
25395 return nil, gensupport.WrapError(err)
25396 }
25397 ret := &BatchGetMessagesResponse{
25398 ServerResponse: googleapi.ServerResponse{
25399 Header: res.Header,
25400 HTTPStatusCode: res.StatusCode,
25401 },
25402 }
25403 target := &ret
25404 if err := gensupport.DecodeResponse(target, res); err != nil {
25405 return nil, err
25406 }
25407 return ret, nil
25408 }
25409
25410 type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct {
25411 s *Service
25412 parent string
25413 createmessagerequest *CreateMessageRequest
25414 urlParams_ gensupport.URLParams
25415 ctx_ context.Context
25416 header_ http.Header
25417 }
25418
25419
25420
25421
25422
25423
25424
25425
25426 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
25427 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25428 c.parent = parent
25429 c.createmessagerequest = createmessagerequest
25430 return c
25431 }
25432
25433
25434
25435
25436 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
25437 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25438 return c
25439 }
25440
25441
25442 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
25443 c.ctx_ = ctx
25444 return c
25445 }
25446
25447
25448
25449 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.Header {
25450 if c.header_ == nil {
25451 c.header_ = make(http.Header)
25452 }
25453 return c.header_
25454 }
25455
25456 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
25457 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25458 var body io.Reader = nil
25459 body, err := googleapi.WithoutDataWrapper.JSONReader(c.createmessagerequest)
25460 if err != nil {
25461 return nil, err
25462 }
25463 c.urlParams_.Set("alt", alt)
25464 c.urlParams_.Set("prettyPrint", "false")
25465 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages")
25466 urls += "?" + c.urlParams_.Encode()
25467 req, err := http.NewRequest("POST", urls, body)
25468 if err != nil {
25469 return nil, err
25470 }
25471 req.Header = reqHeaders
25472 googleapi.Expand(req.URL, map[string]string{
25473 "parent": c.parent,
25474 })
25475 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25476 }
25477
25478
25479
25480
25481
25482
25483 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
25484 gensupport.SetOptions(c.urlParams_, opts...)
25485 res, err := c.doRequest("json")
25486 if res != nil && res.StatusCode == http.StatusNotModified {
25487 if res.Body != nil {
25488 res.Body.Close()
25489 }
25490 return nil, gensupport.WrapError(&googleapi.Error{
25491 Code: res.StatusCode,
25492 Header: res.Header,
25493 })
25494 }
25495 if err != nil {
25496 return nil, err
25497 }
25498 defer googleapi.CloseBody(res)
25499 if err := googleapi.CheckResponse(res); err != nil {
25500 return nil, gensupport.WrapError(err)
25501 }
25502 ret := &Message{
25503 ServerResponse: googleapi.ServerResponse{
25504 Header: res.Header,
25505 HTTPStatusCode: res.StatusCode,
25506 },
25507 }
25508 target := &ret
25509 if err := gensupport.DecodeResponse(target, res); err != nil {
25510 return nil, err
25511 }
25512 return ret, nil
25513 }
25514
25515 type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct {
25516 s *Service
25517 name string
25518 urlParams_ gensupport.URLParams
25519 ctx_ context.Context
25520 header_ http.Header
25521 }
25522
25523
25524
25525
25526 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
25527 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25528 c.name = name
25529 return c
25530 }
25531
25532
25533
25534
25535 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
25536 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25537 return c
25538 }
25539
25540
25541 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
25542 c.ctx_ = ctx
25543 return c
25544 }
25545
25546
25547
25548 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.Header {
25549 if c.header_ == nil {
25550 c.header_ = make(http.Header)
25551 }
25552 return c.header_
25553 }
25554
25555 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
25556 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25557 var body io.Reader = nil
25558 c.urlParams_.Set("alt", alt)
25559 c.urlParams_.Set("prettyPrint", "false")
25560 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
25561 urls += "?" + c.urlParams_.Encode()
25562 req, err := http.NewRequest("DELETE", urls, body)
25563 if err != nil {
25564 return nil, err
25565 }
25566 req.Header = reqHeaders
25567 googleapi.Expand(req.URL, map[string]string{
25568 "name": c.name,
25569 })
25570 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25571 }
25572
25573
25574
25575
25576
25577
25578 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
25579 gensupport.SetOptions(c.urlParams_, opts...)
25580 res, err := c.doRequest("json")
25581 if res != nil && res.StatusCode == http.StatusNotModified {
25582 if res.Body != nil {
25583 res.Body.Close()
25584 }
25585 return nil, gensupport.WrapError(&googleapi.Error{
25586 Code: res.StatusCode,
25587 Header: res.Header,
25588 })
25589 }
25590 if err != nil {
25591 return nil, err
25592 }
25593 defer googleapi.CloseBody(res)
25594 if err := googleapi.CheckResponse(res); err != nil {
25595 return nil, gensupport.WrapError(err)
25596 }
25597 ret := &Empty{
25598 ServerResponse: googleapi.ServerResponse{
25599 Header: res.Header,
25600 HTTPStatusCode: res.StatusCode,
25601 },
25602 }
25603 target := &ret
25604 if err := gensupport.DecodeResponse(target, res); err != nil {
25605 return nil, err
25606 }
25607 return ret, nil
25608 }
25609
25610 type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct {
25611 s *Service
25612 name string
25613 urlParams_ gensupport.URLParams
25614 ifNoneMatch_ string
25615 ctx_ context.Context
25616 header_ http.Header
25617 }
25618
25619
25620
25621
25622 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
25623 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25624 c.name = name
25625 return c
25626 }
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
25653 c.urlParams_.Set("view", view)
25654 return c
25655 }
25656
25657
25658
25659
25660 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
25661 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25662 return c
25663 }
25664
25665
25666
25667
25668 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
25669 c.ifNoneMatch_ = entityTag
25670 return c
25671 }
25672
25673
25674 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
25675 c.ctx_ = ctx
25676 return c
25677 }
25678
25679
25680
25681 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Header {
25682 if c.header_ == nil {
25683 c.header_ = make(http.Header)
25684 }
25685 return c.header_
25686 }
25687
25688 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) {
25689 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25690 if c.ifNoneMatch_ != "" {
25691 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25692 }
25693 var body io.Reader = nil
25694 c.urlParams_.Set("alt", alt)
25695 c.urlParams_.Set("prettyPrint", "false")
25696 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
25697 urls += "?" + c.urlParams_.Encode()
25698 req, err := http.NewRequest("GET", urls, body)
25699 if err != nil {
25700 return nil, err
25701 }
25702 req.Header = reqHeaders
25703 googleapi.Expand(req.URL, map[string]string{
25704 "name": c.name,
25705 })
25706 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25707 }
25708
25709
25710
25711
25712
25713
25714 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) {
25715 gensupport.SetOptions(c.urlParams_, opts...)
25716 res, err := c.doRequest("json")
25717 if res != nil && res.StatusCode == http.StatusNotModified {
25718 if res.Body != nil {
25719 res.Body.Close()
25720 }
25721 return nil, gensupport.WrapError(&googleapi.Error{
25722 Code: res.StatusCode,
25723 Header: res.Header,
25724 })
25725 }
25726 if err != nil {
25727 return nil, err
25728 }
25729 defer googleapi.CloseBody(res)
25730 if err := googleapi.CheckResponse(res); err != nil {
25731 return nil, gensupport.WrapError(err)
25732 }
25733 ret := &Message{
25734 ServerResponse: googleapi.ServerResponse{
25735 Header: res.Header,
25736 HTTPStatusCode: res.StatusCode,
25737 },
25738 }
25739 target := &ret
25740 if err := gensupport.DecodeResponse(target, res); err != nil {
25741 return nil, err
25742 }
25743 return ret, nil
25744 }
25745
25746 type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct {
25747 s *Service
25748 parent string
25749 ingestmessagerequest *IngestMessageRequest
25750 urlParams_ gensupport.URLParams
25751 ctx_ context.Context
25752 header_ http.Header
25753 }
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent string, ingestmessagerequest *IngestMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
25767 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25768 c.parent = parent
25769 c.ingestmessagerequest = ingestmessagerequest
25770 return c
25771 }
25772
25773
25774
25775
25776 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
25777 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25778 return c
25779 }
25780
25781
25782 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
25783 c.ctx_ = ctx
25784 return c
25785 }
25786
25787
25788
25789 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.Header {
25790 if c.header_ == nil {
25791 c.header_ = make(http.Header)
25792 }
25793 return c.header_
25794 }
25795
25796 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) {
25797 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25798 var body io.Reader = nil
25799 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ingestmessagerequest)
25800 if err != nil {
25801 return nil, err
25802 }
25803 c.urlParams_.Set("alt", alt)
25804 c.urlParams_.Set("prettyPrint", "false")
25805 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages:ingest")
25806 urls += "?" + c.urlParams_.Encode()
25807 req, err := http.NewRequest("POST", urls, body)
25808 if err != nil {
25809 return nil, err
25810 }
25811 req.Header = reqHeaders
25812 googleapi.Expand(req.URL, map[string]string{
25813 "parent": c.parent,
25814 })
25815 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25816 }
25817
25818
25819
25820
25821
25822
25823
25824 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...googleapi.CallOption) (*IngestMessageResponse, error) {
25825 gensupport.SetOptions(c.urlParams_, opts...)
25826 res, err := c.doRequest("json")
25827 if res != nil && res.StatusCode == http.StatusNotModified {
25828 if res.Body != nil {
25829 res.Body.Close()
25830 }
25831 return nil, gensupport.WrapError(&googleapi.Error{
25832 Code: res.StatusCode,
25833 Header: res.Header,
25834 })
25835 }
25836 if err != nil {
25837 return nil, err
25838 }
25839 defer googleapi.CloseBody(res)
25840 if err := googleapi.CheckResponse(res); err != nil {
25841 return nil, gensupport.WrapError(err)
25842 }
25843 ret := &IngestMessageResponse{
25844 ServerResponse: googleapi.ServerResponse{
25845 Header: res.Header,
25846 HTTPStatusCode: res.StatusCode,
25847 },
25848 }
25849 target := &ret
25850 if err := gensupport.DecodeResponse(target, res); err != nil {
25851 return nil, err
25852 }
25853 return ret, nil
25854 }
25855
25856 type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct {
25857 s *Service
25858 parent string
25859 urlParams_ gensupport.URLParams
25860 ifNoneMatch_ string
25861 ctx_ context.Context
25862 header_ http.Header
25863 }
25864
25865
25866
25867
25868
25869
25870
25871 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25872 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25873 c.parent = parent
25874 return c
25875 }
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25917 c.urlParams_.Set("filter", filter)
25918 return c
25919 }
25920
25921
25922
25923
25924
25925 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25926 c.urlParams_.Set("orderBy", orderBy)
25927 return c
25928 }
25929
25930
25931
25932
25933 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25934 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25935 return c
25936 }
25937
25938
25939
25940 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25941 c.urlParams_.Set("pageToken", pageToken)
25942 return c
25943 }
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25971 c.urlParams_.Set("view", view)
25972 return c
25973 }
25974
25975
25976
25977
25978 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25979 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25980 return c
25981 }
25982
25983
25984
25985
25986 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25987 c.ifNoneMatch_ = entityTag
25988 return c
25989 }
25990
25991
25992 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
25993 c.ctx_ = ctx
25994 return c
25995 }
25996
25997
25998
25999 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Header {
26000 if c.header_ == nil {
26001 c.header_ = make(http.Header)
26002 }
26003 return c.header_
26004 }
26005
26006 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) {
26007 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26008 if c.ifNoneMatch_ != "" {
26009 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26010 }
26011 var body io.Reader = nil
26012 c.urlParams_.Set("alt", alt)
26013 c.urlParams_.Set("prettyPrint", "false")
26014 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages")
26015 urls += "?" + c.urlParams_.Encode()
26016 req, err := http.NewRequest("GET", urls, body)
26017 if err != nil {
26018 return nil, err
26019 }
26020 req.Header = reqHeaders
26021 googleapi.Expand(req.URL, map[string]string{
26022 "parent": c.parent,
26023 })
26024 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26025 }
26026
26027
26028
26029
26030
26031
26032
26033 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error) {
26034 gensupport.SetOptions(c.urlParams_, opts...)
26035 res, err := c.doRequest("json")
26036 if res != nil && res.StatusCode == http.StatusNotModified {
26037 if res.Body != nil {
26038 res.Body.Close()
26039 }
26040 return nil, gensupport.WrapError(&googleapi.Error{
26041 Code: res.StatusCode,
26042 Header: res.Header,
26043 })
26044 }
26045 if err != nil {
26046 return nil, err
26047 }
26048 defer googleapi.CloseBody(res)
26049 if err := googleapi.CheckResponse(res); err != nil {
26050 return nil, gensupport.WrapError(err)
26051 }
26052 ret := &ListMessagesResponse{
26053 ServerResponse: googleapi.ServerResponse{
26054 Header: res.Header,
26055 HTTPStatusCode: res.StatusCode,
26056 },
26057 }
26058 target := &ret
26059 if err := gensupport.DecodeResponse(target, res); err != nil {
26060 return nil, err
26061 }
26062 return ret, nil
26063 }
26064
26065
26066
26067
26068 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error {
26069 c.ctx_ = ctx
26070 defer c.PageToken(c.urlParams_.Get("pageToken"))
26071 for {
26072 x, err := c.Do()
26073 if err != nil {
26074 return err
26075 }
26076 if err := f(x); err != nil {
26077 return err
26078 }
26079 if x.NextPageToken == "" {
26080 return nil
26081 }
26082 c.PageToken(x.NextPageToken)
26083 }
26084 }
26085
26086 type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct {
26087 s *Service
26088 name string
26089 message *Message
26090 urlParams_ gensupport.URLParams
26091 ctx_ context.Context
26092 header_ http.Header
26093 }
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104 func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
26105 c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26106 c.name = name
26107 c.message = message
26108 return c
26109 }
26110
26111
26112
26113
26114 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
26115 c.urlParams_.Set("updateMask", updateMask)
26116 return c
26117 }
26118
26119
26120
26121
26122 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
26123 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26124 return c
26125 }
26126
26127
26128 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
26129 c.ctx_ = ctx
26130 return c
26131 }
26132
26133
26134
26135 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.Header {
26136 if c.header_ == nil {
26137 c.header_ = make(http.Header)
26138 }
26139 return c.header_
26140 }
26141
26142 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) {
26143 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26144 var body io.Reader = nil
26145 body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
26146 if err != nil {
26147 return nil, err
26148 }
26149 c.urlParams_.Set("alt", alt)
26150 c.urlParams_.Set("prettyPrint", "false")
26151 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
26152 urls += "?" + c.urlParams_.Encode()
26153 req, err := http.NewRequest("PATCH", urls, body)
26154 if err != nil {
26155 return nil, err
26156 }
26157 req.Header = reqHeaders
26158 googleapi.Expand(req.URL, map[string]string{
26159 "name": c.name,
26160 })
26161 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26162 }
26163
26164
26165
26166
26167
26168
26169 func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, error) {
26170 gensupport.SetOptions(c.urlParams_, opts...)
26171 res, err := c.doRequest("json")
26172 if res != nil && res.StatusCode == http.StatusNotModified {
26173 if res.Body != nil {
26174 res.Body.Close()
26175 }
26176 return nil, gensupport.WrapError(&googleapi.Error{
26177 Code: res.StatusCode,
26178 Header: res.Header,
26179 })
26180 }
26181 if err != nil {
26182 return nil, err
26183 }
26184 defer googleapi.CloseBody(res)
26185 if err := googleapi.CheckResponse(res); err != nil {
26186 return nil, gensupport.WrapError(err)
26187 }
26188 ret := &Message{
26189 ServerResponse: googleapi.ServerResponse{
26190 Header: res.Header,
26191 HTTPStatusCode: res.StatusCode,
26192 },
26193 }
26194 target := &ret
26195 if err := gensupport.DecodeResponse(target, res); err != nil {
26196 return nil, err
26197 }
26198 return ret, nil
26199 }
26200
26201 type ProjectsLocationsDatasetsOperationsCancelCall struct {
26202 s *Service
26203 name string
26204 canceloperationrequest *CancelOperationRequest
26205 urlParams_ gensupport.URLParams
26206 ctx_ context.Context
26207 header_ http.Header
26208 }
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221 func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsDatasetsOperationsCancelCall {
26222 c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26223 c.name = name
26224 c.canceloperationrequest = canceloperationrequest
26225 return c
26226 }
26227
26228
26229
26230
26231 func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall {
26232 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26233 return c
26234 }
26235
26236
26237 func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall {
26238 c.ctx_ = ctx
26239 return c
26240 }
26241
26242
26243
26244 func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header {
26245 if c.header_ == nil {
26246 c.header_ = make(http.Header)
26247 }
26248 return c.header_
26249 }
26250
26251 func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
26252 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26253 var body io.Reader = nil
26254 body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
26255 if err != nil {
26256 return nil, err
26257 }
26258 c.urlParams_.Set("alt", alt)
26259 c.urlParams_.Set("prettyPrint", "false")
26260 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel")
26261 urls += "?" + c.urlParams_.Encode()
26262 req, err := http.NewRequest("POST", urls, body)
26263 if err != nil {
26264 return nil, err
26265 }
26266 req.Header = reqHeaders
26267 googleapi.Expand(req.URL, map[string]string{
26268 "name": c.name,
26269 })
26270 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26271 }
26272
26273
26274
26275
26276
26277
26278 func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
26279 gensupport.SetOptions(c.urlParams_, opts...)
26280 res, err := c.doRequest("json")
26281 if res != nil && res.StatusCode == http.StatusNotModified {
26282 if res.Body != nil {
26283 res.Body.Close()
26284 }
26285 return nil, gensupport.WrapError(&googleapi.Error{
26286 Code: res.StatusCode,
26287 Header: res.Header,
26288 })
26289 }
26290 if err != nil {
26291 return nil, err
26292 }
26293 defer googleapi.CloseBody(res)
26294 if err := googleapi.CheckResponse(res); err != nil {
26295 return nil, gensupport.WrapError(err)
26296 }
26297 ret := &Empty{
26298 ServerResponse: googleapi.ServerResponse{
26299 Header: res.Header,
26300 HTTPStatusCode: res.StatusCode,
26301 },
26302 }
26303 target := &ret
26304 if err := gensupport.DecodeResponse(target, res); err != nil {
26305 return nil, err
26306 }
26307 return ret, nil
26308 }
26309
26310 type ProjectsLocationsDatasetsOperationsGetCall struct {
26311 s *Service
26312 name string
26313 urlParams_ gensupport.URLParams
26314 ifNoneMatch_ string
26315 ctx_ context.Context
26316 header_ http.Header
26317 }
26318
26319
26320
26321
26322
26323
26324 func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall {
26325 c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26326 c.name = name
26327 return c
26328 }
26329
26330
26331
26332
26333 func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall {
26334 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26335 return c
26336 }
26337
26338
26339
26340
26341 func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall {
26342 c.ifNoneMatch_ = entityTag
26343 return c
26344 }
26345
26346
26347 func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall {
26348 c.ctx_ = ctx
26349 return c
26350 }
26351
26352
26353
26354 func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header {
26355 if c.header_ == nil {
26356 c.header_ = make(http.Header)
26357 }
26358 return c.header_
26359 }
26360
26361 func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
26362 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26363 if c.ifNoneMatch_ != "" {
26364 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26365 }
26366 var body io.Reader = nil
26367 c.urlParams_.Set("alt", alt)
26368 c.urlParams_.Set("prettyPrint", "false")
26369 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
26370 urls += "?" + c.urlParams_.Encode()
26371 req, err := http.NewRequest("GET", urls, body)
26372 if err != nil {
26373 return nil, err
26374 }
26375 req.Header = reqHeaders
26376 googleapi.Expand(req.URL, map[string]string{
26377 "name": c.name,
26378 })
26379 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26380 }
26381
26382
26383
26384
26385
26386
26387 func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
26388 gensupport.SetOptions(c.urlParams_, opts...)
26389 res, err := c.doRequest("json")
26390 if res != nil && res.StatusCode == http.StatusNotModified {
26391 if res.Body != nil {
26392 res.Body.Close()
26393 }
26394 return nil, gensupport.WrapError(&googleapi.Error{
26395 Code: res.StatusCode,
26396 Header: res.Header,
26397 })
26398 }
26399 if err != nil {
26400 return nil, err
26401 }
26402 defer googleapi.CloseBody(res)
26403 if err := googleapi.CheckResponse(res); err != nil {
26404 return nil, gensupport.WrapError(err)
26405 }
26406 ret := &Operation{
26407 ServerResponse: googleapi.ServerResponse{
26408 Header: res.Header,
26409 HTTPStatusCode: res.StatusCode,
26410 },
26411 }
26412 target := &ret
26413 if err := gensupport.DecodeResponse(target, res); err != nil {
26414 return nil, err
26415 }
26416 return ret, nil
26417 }
26418
26419 type ProjectsLocationsDatasetsOperationsListCall struct {
26420 s *Service
26421 name string
26422 urlParams_ gensupport.URLParams
26423 ifNoneMatch_ string
26424 ctx_ context.Context
26425 header_ http.Header
26426 }
26427
26428
26429
26430
26431
26432 func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall {
26433 c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26434 c.name = name
26435 return c
26436 }
26437
26438
26439 func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall {
26440 c.urlParams_.Set("filter", filter)
26441 return c
26442 }
26443
26444
26445
26446 func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall {
26447 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26448 return c
26449 }
26450
26451
26452
26453 func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall {
26454 c.urlParams_.Set("pageToken", pageToken)
26455 return c
26456 }
26457
26458
26459
26460
26461 func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall {
26462 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26463 return c
26464 }
26465
26466
26467
26468
26469 func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall {
26470 c.ifNoneMatch_ = entityTag
26471 return c
26472 }
26473
26474
26475 func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall {
26476 c.ctx_ = ctx
26477 return c
26478 }
26479
26480
26481
26482 func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header {
26483 if c.header_ == nil {
26484 c.header_ = make(http.Header)
26485 }
26486 return c.header_
26487 }
26488
26489 func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) {
26490 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26491 if c.ifNoneMatch_ != "" {
26492 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26493 }
26494 var body io.Reader = nil
26495 c.urlParams_.Set("alt", alt)
26496 c.urlParams_.Set("prettyPrint", "false")
26497 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations")
26498 urls += "?" + c.urlParams_.Encode()
26499 req, err := http.NewRequest("GET", urls, body)
26500 if err != nil {
26501 return nil, err
26502 }
26503 req.Header = reqHeaders
26504 googleapi.Expand(req.URL, map[string]string{
26505 "name": c.name,
26506 })
26507 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26508 }
26509
26510
26511
26512
26513
26514
26515
26516 func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
26517 gensupport.SetOptions(c.urlParams_, opts...)
26518 res, err := c.doRequest("json")
26519 if res != nil && res.StatusCode == http.StatusNotModified {
26520 if res.Body != nil {
26521 res.Body.Close()
26522 }
26523 return nil, gensupport.WrapError(&googleapi.Error{
26524 Code: res.StatusCode,
26525 Header: res.Header,
26526 })
26527 }
26528 if err != nil {
26529 return nil, err
26530 }
26531 defer googleapi.CloseBody(res)
26532 if err := googleapi.CheckResponse(res); err != nil {
26533 return nil, gensupport.WrapError(err)
26534 }
26535 ret := &ListOperationsResponse{
26536 ServerResponse: googleapi.ServerResponse{
26537 Header: res.Header,
26538 HTTPStatusCode: res.StatusCode,
26539 },
26540 }
26541 target := &ret
26542 if err := gensupport.DecodeResponse(target, res); err != nil {
26543 return nil, err
26544 }
26545 return ret, nil
26546 }
26547
26548
26549
26550
26551 func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
26552 c.ctx_ = ctx
26553 defer c.PageToken(c.urlParams_.Get("pageToken"))
26554 for {
26555 x, err := c.Do()
26556 if err != nil {
26557 return err
26558 }
26559 if err := f(x); err != nil {
26560 return err
26561 }
26562 if x.NextPageToken == "" {
26563 return nil
26564 }
26565 c.PageToken(x.NextPageToken)
26566 }
26567 }
26568
26569 type ProjectsLocationsServicesNlpAnalyzeEntitiesCall struct {
26570 s *Service
26571 nlpService string
26572 analyzeentitiesrequest *AnalyzeEntitiesRequest
26573 urlParams_ gensupport.URLParams
26574 ctx_ context.Context
26575 header_ http.Header
26576 }
26577
26578
26579
26580
26581
26582
26583
26584
26585 func (r *ProjectsLocationsServicesNlpService) AnalyzeEntities(nlpService string, analyzeentitiesrequest *AnalyzeEntitiesRequest) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall {
26586 c := &ProjectsLocationsServicesNlpAnalyzeEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26587 c.nlpService = nlpService
26588 c.analyzeentitiesrequest = analyzeentitiesrequest
26589 return c
26590 }
26591
26592
26593
26594
26595 func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall {
26596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26597 return c
26598 }
26599
26600
26601 func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Context(ctx context.Context) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall {
26602 c.ctx_ = ctx
26603 return c
26604 }
26605
26606
26607
26608 func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Header() http.Header {
26609 if c.header_ == nil {
26610 c.header_ = make(http.Header)
26611 }
26612 return c.header_
26613 }
26614
26615 func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) {
26616 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26617 var body io.Reader = nil
26618 body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzeentitiesrequest)
26619 if err != nil {
26620 return nil, err
26621 }
26622 c.urlParams_.Set("alt", alt)
26623 c.urlParams_.Set("prettyPrint", "false")
26624 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+nlpService}:analyzeEntities")
26625 urls += "?" + c.urlParams_.Encode()
26626 req, err := http.NewRequest("POST", urls, body)
26627 if err != nil {
26628 return nil, err
26629 }
26630 req.Header = reqHeaders
26631 googleapi.Expand(req.URL, map[string]string{
26632 "nlpService": c.nlpService,
26633 })
26634 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26635 }
26636
26637
26638
26639
26640
26641
26642
26643 func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Do(opts ...googleapi.CallOption) (*AnalyzeEntitiesResponse, error) {
26644 gensupport.SetOptions(c.urlParams_, opts...)
26645 res, err := c.doRequest("json")
26646 if res != nil && res.StatusCode == http.StatusNotModified {
26647 if res.Body != nil {
26648 res.Body.Close()
26649 }
26650 return nil, gensupport.WrapError(&googleapi.Error{
26651 Code: res.StatusCode,
26652 Header: res.Header,
26653 })
26654 }
26655 if err != nil {
26656 return nil, err
26657 }
26658 defer googleapi.CloseBody(res)
26659 if err := googleapi.CheckResponse(res); err != nil {
26660 return nil, gensupport.WrapError(err)
26661 }
26662 ret := &AnalyzeEntitiesResponse{
26663 ServerResponse: googleapi.ServerResponse{
26664 Header: res.Header,
26665 HTTPStatusCode: res.StatusCode,
26666 },
26667 }
26668 target := &ret
26669 if err := gensupport.DecodeResponse(target, res); err != nil {
26670 return nil, err
26671 }
26672 return ret, nil
26673 }
26674
View as plain text