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