1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 package appengine
57
58 import (
59 "bytes"
60 "context"
61 "encoding/json"
62 "errors"
63 "fmt"
64 "io"
65 "net/http"
66 "net/url"
67 "strconv"
68 "strings"
69
70 googleapi "google.golang.org/api/googleapi"
71 internal "google.golang.org/api/internal"
72 gensupport "google.golang.org/api/internal/gensupport"
73 option "google.golang.org/api/option"
74 internaloption "google.golang.org/api/option/internaloption"
75 htransport "google.golang.org/api/transport/http"
76 )
77
78
79
80 var _ = bytes.NewBuffer
81 var _ = strconv.Itoa
82 var _ = fmt.Sprintf
83 var _ = json.NewDecoder
84 var _ = io.Copy
85 var _ = url.Parse
86 var _ = gensupport.MarshalJSON
87 var _ = googleapi.Version
88 var _ = errors.New
89 var _ = strings.Replace
90 var _ = context.Canceled
91 var _ = internaloption.WithDefaultEndpoint
92 var _ = internal.Version
93
94 const apiId = "appengine:v1beta"
95 const apiName = "appengine"
96 const apiVersion = "v1beta"
97 const basePath = "https://appengine.googleapis.com/"
98 const basePathTemplate = "https://appengine.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://appengine.mtls.googleapis.com/"
100
101
102 const (
103
104 AppengineAdminScope = "https://www.googleapis.com/auth/appengine.admin"
105
106
107
108 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
109
110
111
112 CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"
113 )
114
115
116 func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
117 scopesOption := internaloption.WithDefaultScopes(
118 "https://www.googleapis.com/auth/appengine.admin",
119 "https://www.googleapis.com/auth/cloud-platform",
120 "https://www.googleapis.com/auth/cloud-platform.read-only",
121 )
122
123 opts = append([]option.ClientOption{scopesOption}, opts...)
124 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
125 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
126 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
127 opts = append(opts, internaloption.EnableNewAuthLibrary())
128 client, endpoint, err := htransport.NewClient(ctx, opts...)
129 if err != nil {
130 return nil, err
131 }
132 s, err := New(client)
133 if err != nil {
134 return nil, err
135 }
136 if endpoint != "" {
137 s.BasePath = endpoint
138 }
139 return s, nil
140 }
141
142
143
144
145
146
147 func New(client *http.Client) (*APIService, error) {
148 if client == nil {
149 return nil, errors.New("client is nil")
150 }
151 s := &APIService{client: client, BasePath: basePath}
152 s.Apps = NewAppsService(s)
153 s.Projects = NewProjectsService(s)
154 return s, nil
155 }
156
157 type APIService struct {
158 client *http.Client
159 BasePath string
160 UserAgent string
161
162 Apps *AppsService
163
164 Projects *ProjectsService
165 }
166
167 func (s *APIService) userAgent() string {
168 if s.UserAgent == "" {
169 return googleapi.UserAgent
170 }
171 return googleapi.UserAgent + " " + s.UserAgent
172 }
173
174 func NewAppsService(s *APIService) *AppsService {
175 rs := &AppsService{s: s}
176 rs.AuthorizedCertificates = NewAppsAuthorizedCertificatesService(s)
177 rs.AuthorizedDomains = NewAppsAuthorizedDomainsService(s)
178 rs.DomainMappings = NewAppsDomainMappingsService(s)
179 rs.Firewall = NewAppsFirewallService(s)
180 rs.Locations = NewAppsLocationsService(s)
181 rs.Operations = NewAppsOperationsService(s)
182 rs.Services = NewAppsServicesService(s)
183 return rs
184 }
185
186 type AppsService struct {
187 s *APIService
188
189 AuthorizedCertificates *AppsAuthorizedCertificatesService
190
191 AuthorizedDomains *AppsAuthorizedDomainsService
192
193 DomainMappings *AppsDomainMappingsService
194
195 Firewall *AppsFirewallService
196
197 Locations *AppsLocationsService
198
199 Operations *AppsOperationsService
200
201 Services *AppsServicesService
202 }
203
204 func NewAppsAuthorizedCertificatesService(s *APIService) *AppsAuthorizedCertificatesService {
205 rs := &AppsAuthorizedCertificatesService{s: s}
206 return rs
207 }
208
209 type AppsAuthorizedCertificatesService struct {
210 s *APIService
211 }
212
213 func NewAppsAuthorizedDomainsService(s *APIService) *AppsAuthorizedDomainsService {
214 rs := &AppsAuthorizedDomainsService{s: s}
215 return rs
216 }
217
218 type AppsAuthorizedDomainsService struct {
219 s *APIService
220 }
221
222 func NewAppsDomainMappingsService(s *APIService) *AppsDomainMappingsService {
223 rs := &AppsDomainMappingsService{s: s}
224 return rs
225 }
226
227 type AppsDomainMappingsService struct {
228 s *APIService
229 }
230
231 func NewAppsFirewallService(s *APIService) *AppsFirewallService {
232 rs := &AppsFirewallService{s: s}
233 rs.IngressRules = NewAppsFirewallIngressRulesService(s)
234 return rs
235 }
236
237 type AppsFirewallService struct {
238 s *APIService
239
240 IngressRules *AppsFirewallIngressRulesService
241 }
242
243 func NewAppsFirewallIngressRulesService(s *APIService) *AppsFirewallIngressRulesService {
244 rs := &AppsFirewallIngressRulesService{s: s}
245 return rs
246 }
247
248 type AppsFirewallIngressRulesService struct {
249 s *APIService
250 }
251
252 func NewAppsLocationsService(s *APIService) *AppsLocationsService {
253 rs := &AppsLocationsService{s: s}
254 return rs
255 }
256
257 type AppsLocationsService struct {
258 s *APIService
259 }
260
261 func NewAppsOperationsService(s *APIService) *AppsOperationsService {
262 rs := &AppsOperationsService{s: s}
263 return rs
264 }
265
266 type AppsOperationsService struct {
267 s *APIService
268 }
269
270 func NewAppsServicesService(s *APIService) *AppsServicesService {
271 rs := &AppsServicesService{s: s}
272 rs.Versions = NewAppsServicesVersionsService(s)
273 return rs
274 }
275
276 type AppsServicesService struct {
277 s *APIService
278
279 Versions *AppsServicesVersionsService
280 }
281
282 func NewAppsServicesVersionsService(s *APIService) *AppsServicesVersionsService {
283 rs := &AppsServicesVersionsService{s: s}
284 rs.Instances = NewAppsServicesVersionsInstancesService(s)
285 return rs
286 }
287
288 type AppsServicesVersionsService struct {
289 s *APIService
290
291 Instances *AppsServicesVersionsInstancesService
292 }
293
294 func NewAppsServicesVersionsInstancesService(s *APIService) *AppsServicesVersionsInstancesService {
295 rs := &AppsServicesVersionsInstancesService{s: s}
296 return rs
297 }
298
299 type AppsServicesVersionsInstancesService struct {
300 s *APIService
301 }
302
303 func NewProjectsService(s *APIService) *ProjectsService {
304 rs := &ProjectsService{s: s}
305 rs.Locations = NewProjectsLocationsService(s)
306 return rs
307 }
308
309 type ProjectsService struct {
310 s *APIService
311
312 Locations *ProjectsLocationsService
313 }
314
315 func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
316 rs := &ProjectsLocationsService{s: s}
317 rs.Applications = NewProjectsLocationsApplicationsService(s)
318 rs.Operations = NewProjectsLocationsOperationsService(s)
319 return rs
320 }
321
322 type ProjectsLocationsService struct {
323 s *APIService
324
325 Applications *ProjectsLocationsApplicationsService
326
327 Operations *ProjectsLocationsOperationsService
328 }
329
330 func NewProjectsLocationsApplicationsService(s *APIService) *ProjectsLocationsApplicationsService {
331 rs := &ProjectsLocationsApplicationsService{s: s}
332 rs.AuthorizedDomains = NewProjectsLocationsApplicationsAuthorizedDomainsService(s)
333 return rs
334 }
335
336 type ProjectsLocationsApplicationsService struct {
337 s *APIService
338
339 AuthorizedDomains *ProjectsLocationsApplicationsAuthorizedDomainsService
340 }
341
342 func NewProjectsLocationsApplicationsAuthorizedDomainsService(s *APIService) *ProjectsLocationsApplicationsAuthorizedDomainsService {
343 rs := &ProjectsLocationsApplicationsAuthorizedDomainsService{s: s}
344 return rs
345 }
346
347 type ProjectsLocationsApplicationsAuthorizedDomainsService struct {
348 s *APIService
349 }
350
351 func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService {
352 rs := &ProjectsLocationsOperationsService{s: s}
353 return rs
354 }
355
356 type ProjectsLocationsOperationsService struct {
357 s *APIService
358 }
359
360
361
362 type ApiConfigHandler struct {
363
364
365
366
367
368
369
370
371
372
373
374 AuthFailAction string `json:"authFailAction,omitempty"`
375
376
377
378
379
380
381
382
383
384
385
386
387 Login string `json:"login,omitempty"`
388
389 Script string `json:"script,omitempty"`
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405 SecurityLevel string `json:"securityLevel,omitempty"`
406
407 Url string `json:"url,omitempty"`
408
409
410
411
412
413 ForceSendFields []string `json:"-"`
414
415
416
417
418 NullFields []string `json:"-"`
419 }
420
421 func (s *ApiConfigHandler) MarshalJSON() ([]byte, error) {
422 type NoMethod ApiConfigHandler
423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
424 }
425
426
427 type ApiEndpointHandler struct {
428
429 ScriptPath string `json:"scriptPath,omitempty"`
430
431
432
433
434
435 ForceSendFields []string `json:"-"`
436
437
438
439
440 NullFields []string `json:"-"`
441 }
442
443 func (s *ApiEndpointHandler) MarshalJSON() ([]byte, error) {
444 type NoMethod ApiEndpointHandler
445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
446 }
447
448
449
450 type Application struct {
451
452
453 AuthDomain string `json:"authDomain,omitempty"`
454
455
456
457
458 CodeBucket string `json:"codeBucket,omitempty"`
459
460
461
462
463
464
465
466
467 DatabaseType string `json:"databaseType,omitempty"`
468
469
470 DefaultBucket string `json:"defaultBucket,omitempty"`
471
472 DefaultCookieExpiration string `json:"defaultCookieExpiration,omitempty"`
473
474
475 DefaultHostname string `json:"defaultHostname,omitempty"`
476
477
478
479 DispatchRules []*UrlDispatchRule `json:"dispatchRules,omitempty"`
480
481
482 FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"`
483
484
485 GcrDomain string `json:"gcrDomain,omitempty"`
486
487
488
489 GeneratedCustomerMetadata googleapi.RawMessage `json:"generatedCustomerMetadata,omitempty"`
490 Iap *IdentityAwareProxy `json:"iap,omitempty"`
491
492
493
494 Id string `json:"id,omitempty"`
495
496
497
498
499
500 LocationId string `json:"locationId,omitempty"`
501
502
503 Name string `json:"name,omitempty"`
504
505
506
507 ServiceAccount string `json:"serviceAccount,omitempty"`
508
509
510
511
512
513
514
515 ServingStatus string `json:"servingStatus,omitempty"`
516
517
518 googleapi.ServerResponse `json:"-"`
519
520
521
522
523
524 ForceSendFields []string `json:"-"`
525
526
527
528
529 NullFields []string `json:"-"`
530 }
531
532 func (s *Application) MarshalJSON() ([]byte, error) {
533 type NoMethod Application
534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
535 }
536
537
538
539
540 type AuthorizedCertificate struct {
541
542
543 CertificateRawData *CertificateRawData `json:"certificateRawData,omitempty"`
544
545
546 DisplayName string `json:"displayName,omitempty"`
547
548
549
550
551
552 DomainMappingsCount int64 `json:"domainMappingsCount,omitempty"`
553
554
555
556 DomainNames []string `json:"domainNames,omitempty"`
557
558
559
560
561 ExpireTime string `json:"expireTime,omitempty"`
562
563
564 Id string `json:"id,omitempty"`
565
566
567
568
569
570 ManagedCertificate *ManagedCertificate `json:"managedCertificate,omitempty"`
571
572
573 Name string `json:"name,omitempty"`
574
575
576
577
578
579
580
581
582 VisibleDomainMappings []string `json:"visibleDomainMappings,omitempty"`
583
584
585 googleapi.ServerResponse `json:"-"`
586
587
588
589
590
591 ForceSendFields []string `json:"-"`
592
593
594
595
596 NullFields []string `json:"-"`
597 }
598
599 func (s *AuthorizedCertificate) MarshalJSON() ([]byte, error) {
600 type NoMethod AuthorizedCertificate
601 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
602 }
603
604
605
606
607 type AuthorizedDomain struct {
608
609
610 Id string `json:"id,omitempty"`
611
612
613 Name string `json:"name,omitempty"`
614
615
616
617
618
619 ForceSendFields []string `json:"-"`
620
621
622
623
624 NullFields []string `json:"-"`
625 }
626
627 func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
628 type NoMethod AuthorizedDomain
629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
630 }
631
632
633
634 type AutomaticScaling struct {
635
636
637
638
639
640
641 CoolDownPeriod string `json:"coolDownPeriod,omitempty"`
642
643 CpuUtilization *CpuUtilization `json:"cpuUtilization,omitempty"`
644
645
646 CustomMetrics []*CustomMetric `json:"customMetrics,omitempty"`
647
648 DiskUtilization *DiskUtilization `json:"diskUtilization,omitempty"`
649
650
651
652 MaxConcurrentRequests int64 `json:"maxConcurrentRequests,omitempty"`
653
654
655 MaxIdleInstances int64 `json:"maxIdleInstances,omitempty"`
656
657
658 MaxPendingLatency string `json:"maxPendingLatency,omitempty"`
659
660
661 MaxTotalInstances int64 `json:"maxTotalInstances,omitempty"`
662
663
664 MinIdleInstances int64 `json:"minIdleInstances,omitempty"`
665
666
667 MinPendingLatency string `json:"minPendingLatency,omitempty"`
668
669
670 MinTotalInstances int64 `json:"minTotalInstances,omitempty"`
671
672 NetworkUtilization *NetworkUtilization `json:"networkUtilization,omitempty"`
673
674 RequestUtilization *RequestUtilization `json:"requestUtilization,omitempty"`
675
676 StandardSchedulerSettings *StandardSchedulerSettings `json:"standardSchedulerSettings,omitempty"`
677
678
679
680
681
682 ForceSendFields []string `json:"-"`
683
684
685
686
687 NullFields []string `json:"-"`
688 }
689
690 func (s *AutomaticScaling) MarshalJSON() ([]byte, error) {
691 type NoMethod AutomaticScaling
692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
693 }
694
695
696
697
698
699 type BasicScaling struct {
700
701
702 IdleTimeout string `json:"idleTimeout,omitempty"`
703
704 MaxInstances int64 `json:"maxInstances,omitempty"`
705
706
707
708
709
710 ForceSendFields []string `json:"-"`
711
712
713
714
715 NullFields []string `json:"-"`
716 }
717
718 func (s *BasicScaling) MarshalJSON() ([]byte, error) {
719 type NoMethod BasicScaling
720 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
721 }
722
723
724
725 type BatchUpdateIngressRulesRequest struct {
726
727 IngressRules []*FirewallRule `json:"ingressRules,omitempty"`
728
729
730
731
732
733 ForceSendFields []string `json:"-"`
734
735
736
737
738 NullFields []string `json:"-"`
739 }
740
741 func (s *BatchUpdateIngressRulesRequest) MarshalJSON() ([]byte, error) {
742 type NoMethod BatchUpdateIngressRulesRequest
743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
744 }
745
746
747
748 type BatchUpdateIngressRulesResponse struct {
749
750 IngressRules []*FirewallRule `json:"ingressRules,omitempty"`
751
752
753 googleapi.ServerResponse `json:"-"`
754
755
756
757
758
759 ForceSendFields []string `json:"-"`
760
761
762
763
764 NullFields []string `json:"-"`
765 }
766
767 func (s *BatchUpdateIngressRulesResponse) MarshalJSON() ([]byte, error) {
768 type NoMethod BatchUpdateIngressRulesResponse
769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
770 }
771
772
773 type BuildInfo struct {
774
775
776 CloudBuildId string `json:"cloudBuildId,omitempty"`
777
778
779
780
781
782 ForceSendFields []string `json:"-"`
783
784
785
786
787 NullFields []string `json:"-"`
788 }
789
790 func (s *BuildInfo) MarshalJSON() ([]byte, error) {
791 type NoMethod BuildInfo
792 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
793 }
794
795
796
797 type CertificateRawData struct {
798
799
800
801
802 PrivateKey string `json:"privateKey,omitempty"`
803
804
805
806 PublicCertificate string `json:"publicCertificate,omitempty"`
807
808
809
810
811
812 ForceSendFields []string `json:"-"`
813
814
815
816
817 NullFields []string `json:"-"`
818 }
819
820 func (s *CertificateRawData) MarshalJSON() ([]byte, error) {
821 type NoMethod CertificateRawData
822 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
823 }
824
825
826
827
828 type CloudBuildOptions struct {
829
830
831
832
833 AppYamlPath string `json:"appYamlPath,omitempty"`
834
835
836 CloudBuildTimeout string `json:"cloudBuildTimeout,omitempty"`
837
838
839
840
841
842 ForceSendFields []string `json:"-"`
843
844
845
846
847 NullFields []string `json:"-"`
848 }
849
850 func (s *CloudBuildOptions) MarshalJSON() ([]byte, error) {
851 type NoMethod CloudBuildOptions
852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
853 }
854
855
856
857
858 type ContainerInfo struct {
859
860
861
862 Image string `json:"image,omitempty"`
863
864
865
866
867
868 ForceSendFields []string `json:"-"`
869
870
871
872
873 NullFields []string `json:"-"`
874 }
875
876 func (s *ContainerInfo) MarshalJSON() ([]byte, error) {
877 type NoMethod ContainerInfo
878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
879 }
880
881
882
883
884
885 type ContainerState struct {
886 CurrentReasons *Reasons `json:"currentReasons,omitempty"`
887
888
889
890
891
892
893
894
895
896 PreviousReasons *Reasons `json:"previousReasons,omitempty"`
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921 State string `json:"state,omitempty"`
922
923
924
925
926
927 ForceSendFields []string `json:"-"`
928
929
930
931
932 NullFields []string `json:"-"`
933 }
934
935 func (s *ContainerState) MarshalJSON() ([]byte, error) {
936 type NoMethod ContainerState
937 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
938 }
939
940
941 type CpuUtilization struct {
942
943
944 AggregationWindowLength string `json:"aggregationWindowLength,omitempty"`
945
946
947 TargetUtilization float64 `json:"targetUtilization,omitempty"`
948
949
950
951
952
953 ForceSendFields []string `json:"-"`
954
955
956
957
958 NullFields []string `json:"-"`
959 }
960
961 func (s *CpuUtilization) MarshalJSON() ([]byte, error) {
962 type NoMethod CpuUtilization
963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
964 }
965
966 func (s *CpuUtilization) UnmarshalJSON(data []byte) error {
967 type NoMethod CpuUtilization
968 var s1 struct {
969 TargetUtilization gensupport.JSONFloat64 `json:"targetUtilization"`
970 *NoMethod
971 }
972 s1.NoMethod = (*NoMethod)(s)
973 if err := json.Unmarshal(data, &s1); err != nil {
974 return err
975 }
976 s.TargetUtilization = float64(s1.TargetUtilization)
977 return nil
978 }
979
980
981
982 type CreateVersionMetadataV1 struct {
983
984
985 CloudBuildId string `json:"cloudBuildId,omitempty"`
986
987
988
989
990
991 ForceSendFields []string `json:"-"`
992
993
994
995
996 NullFields []string `json:"-"`
997 }
998
999 func (s *CreateVersionMetadataV1) MarshalJSON() ([]byte, error) {
1000 type NoMethod CreateVersionMetadataV1
1001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1002 }
1003
1004
1005
1006
1007 type CreateVersionMetadataV1Alpha struct {
1008
1009
1010 CloudBuildId string `json:"cloudBuildId,omitempty"`
1011
1012
1013
1014
1015
1016 ForceSendFields []string `json:"-"`
1017
1018
1019
1020
1021 NullFields []string `json:"-"`
1022 }
1023
1024 func (s *CreateVersionMetadataV1Alpha) MarshalJSON() ([]byte, error) {
1025 type NoMethod CreateVersionMetadataV1Alpha
1026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1027 }
1028
1029
1030
1031
1032 type CreateVersionMetadataV1Beta struct {
1033
1034
1035 CloudBuildId string `json:"cloudBuildId,omitempty"`
1036
1037
1038
1039
1040
1041 ForceSendFields []string `json:"-"`
1042
1043
1044
1045
1046 NullFields []string `json:"-"`
1047 }
1048
1049 func (s *CreateVersionMetadataV1Beta) MarshalJSON() ([]byte, error) {
1050 type NoMethod CreateVersionMetadataV1Beta
1051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1052 }
1053
1054
1055 type CustomMetric struct {
1056
1057 Filter string `json:"filter,omitempty"`
1058
1059 MetricName string `json:"metricName,omitempty"`
1060
1061
1062
1063
1064
1065 SingleInstanceAssignment float64 `json:"singleInstanceAssignment,omitempty"`
1066
1067
1068 TargetType string `json:"targetType,omitempty"`
1069
1070 TargetUtilization float64 `json:"targetUtilization,omitempty"`
1071
1072
1073
1074
1075
1076 ForceSendFields []string `json:"-"`
1077
1078
1079
1080
1081 NullFields []string `json:"-"`
1082 }
1083
1084 func (s *CustomMetric) MarshalJSON() ([]byte, error) {
1085 type NoMethod CustomMetric
1086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1087 }
1088
1089 func (s *CustomMetric) UnmarshalJSON(data []byte) error {
1090 type NoMethod CustomMetric
1091 var s1 struct {
1092 SingleInstanceAssignment gensupport.JSONFloat64 `json:"singleInstanceAssignment"`
1093 TargetUtilization gensupport.JSONFloat64 `json:"targetUtilization"`
1094 *NoMethod
1095 }
1096 s1.NoMethod = (*NoMethod)(s)
1097 if err := json.Unmarshal(data, &s1); err != nil {
1098 return err
1099 }
1100 s.SingleInstanceAssignment = float64(s1.SingleInstanceAssignment)
1101 s.TargetUtilization = float64(s1.TargetUtilization)
1102 return nil
1103 }
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113 type Date struct {
1114
1115
1116
1117 Day int64 `json:"day,omitempty"`
1118
1119
1120 Month int64 `json:"month,omitempty"`
1121
1122
1123 Year int64 `json:"year,omitempty"`
1124
1125
1126
1127
1128
1129 ForceSendFields []string `json:"-"`
1130
1131
1132
1133
1134 NullFields []string `json:"-"`
1135 }
1136
1137 func (s *Date) MarshalJSON() ([]byte, error) {
1138 type NoMethod Date
1139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1140 }
1141
1142
1143 type DebugInstanceRequest struct {
1144
1145
1146
1147
1148
1149 SshKey string `json:"sshKey,omitempty"`
1150
1151
1152
1153
1154
1155 ForceSendFields []string `json:"-"`
1156
1157
1158
1159
1160 NullFields []string `json:"-"`
1161 }
1162
1163 func (s *DebugInstanceRequest) MarshalJSON() ([]byte, error) {
1164 type NoMethod DebugInstanceRequest
1165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1166 }
1167
1168
1169
1170 type Deployment struct {
1171
1172
1173 Build *BuildInfo `json:"build,omitempty"`
1174
1175
1176
1177
1178 CloudBuildOptions *CloudBuildOptions `json:"cloudBuildOptions,omitempty"`
1179
1180
1181 Container *ContainerInfo `json:"container,omitempty"`
1182
1183
1184
1185 Files map[string]FileInfo `json:"files,omitempty"`
1186
1187 Zip *ZipInfo `json:"zip,omitempty"`
1188
1189
1190
1191
1192
1193 ForceSendFields []string `json:"-"`
1194
1195
1196
1197
1198 NullFields []string `json:"-"`
1199 }
1200
1201 func (s *Deployment) MarshalJSON() ([]byte, error) {
1202 type NoMethod Deployment
1203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1204 }
1205
1206
1207
1208 type DiskUtilization struct {
1209
1210 TargetReadBytesPerSecond int64 `json:"targetReadBytesPerSecond,omitempty"`
1211
1212 TargetReadOpsPerSecond int64 `json:"targetReadOpsPerSecond,omitempty"`
1213
1214 TargetWriteBytesPerSecond int64 `json:"targetWriteBytesPerSecond,omitempty"`
1215
1216 TargetWriteOpsPerSecond int64 `json:"targetWriteOpsPerSecond,omitempty"`
1217
1218
1219
1220
1221
1222 ForceSendFields []string `json:"-"`
1223
1224
1225
1226
1227 NullFields []string `json:"-"`
1228 }
1229
1230 func (s *DiskUtilization) MarshalJSON() ([]byte, error) {
1231 type NoMethod DiskUtilization
1232 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1233 }
1234
1235
1236 type DomainMapping struct {
1237
1238
1239 Id string `json:"id,omitempty"`
1240
1241
1242 Name string `json:"name,omitempty"`
1243
1244
1245
1246 ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
1247
1248
1249 SslSettings *SslSettings `json:"sslSettings,omitempty"`
1250
1251
1252 googleapi.ServerResponse `json:"-"`
1253
1254
1255
1256
1257
1258 ForceSendFields []string `json:"-"`
1259
1260
1261
1262
1263 NullFields []string `json:"-"`
1264 }
1265
1266 func (s *DomainMapping) MarshalJSON() ([]byte, error) {
1267 type NoMethod DomainMapping
1268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1269 }
1270
1271
1272
1273
1274
1275 type Empty struct {
1276
1277 googleapi.ServerResponse `json:"-"`
1278 }
1279
1280
1281
1282
1283
1284
1285
1286
1287 type EndpointsApiService struct {
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297 ConfigId string `json:"configId,omitempty"`
1298
1299
1300 DisableTraceSampling bool `json:"disableTraceSampling,omitempty"`
1301
1302
1303
1304 Name string `json:"name,omitempty"`
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314 RolloutStrategy string `json:"rolloutStrategy,omitempty"`
1315
1316
1317
1318
1319
1320 ForceSendFields []string `json:"-"`
1321
1322
1323
1324
1325 NullFields []string `json:"-"`
1326 }
1327
1328 func (s *EndpointsApiService) MarshalJSON() ([]byte, error) {
1329 type NoMethod EndpointsApiService
1330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1331 }
1332
1333
1334 type Entrypoint struct {
1335
1336 Shell string `json:"shell,omitempty"`
1337
1338
1339
1340
1341
1342 ForceSendFields []string `json:"-"`
1343
1344
1345
1346
1347 NullFields []string `json:"-"`
1348 }
1349
1350 func (s *Entrypoint) MarshalJSON() ([]byte, error) {
1351 type NoMethod Entrypoint
1352 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1353 }
1354
1355
1356 type ErrorHandler struct {
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ErrorCode string `json:"errorCode,omitempty"`
1367
1368 MimeType string `json:"mimeType,omitempty"`
1369
1370 StaticFile string `json:"staticFile,omitempty"`
1371
1372
1373
1374
1375
1376 ForceSendFields []string `json:"-"`
1377
1378
1379
1380
1381 NullFields []string `json:"-"`
1382 }
1383
1384 func (s *ErrorHandler) MarshalJSON() ([]byte, error) {
1385 type NoMethod ErrorHandler
1386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1387 }
1388
1389
1390
1391 type FeatureSettings struct {
1392
1393
1394
1395
1396
1397 SplitHealthChecks bool `json:"splitHealthChecks,omitempty"`
1398
1399
1400
1401 UseContainerOptimizedOs bool `json:"useContainerOptimizedOs,omitempty"`
1402
1403
1404
1405
1406
1407 ForceSendFields []string `json:"-"`
1408
1409
1410
1411
1412 NullFields []string `json:"-"`
1413 }
1414
1415 func (s *FeatureSettings) MarshalJSON() ([]byte, error) {
1416 type NoMethod FeatureSettings
1417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1418 }
1419
1420
1421
1422 type FileInfo struct {
1423
1424
1425 MimeType string `json:"mimeType,omitempty"`
1426
1427 Sha1Sum string `json:"sha1Sum,omitempty"`
1428
1429
1430 SourceUrl string `json:"sourceUrl,omitempty"`
1431
1432
1433
1434
1435
1436 ForceSendFields []string `json:"-"`
1437
1438
1439
1440
1441 NullFields []string `json:"-"`
1442 }
1443
1444 func (s *FileInfo) MarshalJSON() ([]byte, error) {
1445 type NoMethod FileInfo
1446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1447 }
1448
1449
1450
1451 type FirewallRule struct {
1452
1453
1454
1455
1456
1457
1458 Action string `json:"action,omitempty"`
1459
1460
1461 Description string `json:"description,omitempty"`
1462
1463
1464
1465
1466
1467 Priority int64 `json:"priority,omitempty"`
1468
1469
1470
1471
1472
1473
1474
1475
1476 SourceRange string `json:"sourceRange,omitempty"`
1477
1478
1479 googleapi.ServerResponse `json:"-"`
1480
1481
1482
1483
1484
1485 ForceSendFields []string `json:"-"`
1486
1487
1488
1489
1490 NullFields []string `json:"-"`
1491 }
1492
1493 func (s *FirewallRule) MarshalJSON() ([]byte, error) {
1494 type NoMethod FirewallRule
1495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1496 }
1497
1498
1499
1500 type FlexibleRuntimeSettings struct {
1501
1502 OperatingSystem string `json:"operatingSystem,omitempty"`
1503
1504 RuntimeVersion string `json:"runtimeVersion,omitempty"`
1505
1506
1507
1508
1509
1510 ForceSendFields []string `json:"-"`
1511
1512
1513
1514
1515 NullFields []string `json:"-"`
1516 }
1517
1518 func (s *FlexibleRuntimeSettings) MarshalJSON() ([]byte, error) {
1519 type NoMethod FlexibleRuntimeSettings
1520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1521 }
1522
1523
1524
1525 type GoogleAppengineV1betaLocationMetadata struct {
1526
1527
1528 FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
1529
1530
1531
1532 SearchApiAvailable bool `json:"searchApiAvailable,omitempty"`
1533
1534
1535 StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
1536
1537
1538
1539
1540
1541 ForceSendFields []string `json:"-"`
1542
1543
1544
1545
1546 NullFields []string `json:"-"`
1547 }
1548
1549 func (s *GoogleAppengineV1betaLocationMetadata) MarshalJSON() ([]byte, error) {
1550 type NoMethod GoogleAppengineV1betaLocationMetadata
1551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1552 }
1553
1554
1555
1556
1557 type HealthCheck struct {
1558
1559 CheckInterval string `json:"checkInterval,omitempty"`
1560
1561
1562 DisableHealthCheck bool `json:"disableHealthCheck,omitempty"`
1563
1564
1565 HealthyThreshold int64 `json:"healthyThreshold,omitempty"`
1566
1567
1568 Host string `json:"host,omitempty"`
1569
1570
1571 RestartThreshold int64 `json:"restartThreshold,omitempty"`
1572
1573 Timeout string `json:"timeout,omitempty"`
1574
1575
1576 UnhealthyThreshold int64 `json:"unhealthyThreshold,omitempty"`
1577
1578
1579
1580
1581
1582 ForceSendFields []string `json:"-"`
1583
1584
1585
1586
1587 NullFields []string `json:"-"`
1588 }
1589
1590 func (s *HealthCheck) MarshalJSON() ([]byte, error) {
1591 type NoMethod HealthCheck
1592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1593 }
1594
1595
1596 type IdentityAwareProxy struct {
1597
1598
1599
1600 Enabled bool `json:"enabled,omitempty"`
1601
1602 Oauth2ClientId string `json:"oauth2ClientId,omitempty"`
1603
1604
1605
1606
1607 Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"`
1608
1609
1610 Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"`
1611
1612
1613
1614
1615
1616 ForceSendFields []string `json:"-"`
1617
1618
1619
1620
1621 NullFields []string `json:"-"`
1622 }
1623
1624 func (s *IdentityAwareProxy) MarshalJSON() ([]byte, error) {
1625 type NoMethod IdentityAwareProxy
1626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1627 }
1628
1629
1630
1631 type Instance struct {
1632
1633
1634 AppEngineRelease string `json:"appEngineRelease,omitempty"`
1635
1636
1637
1638
1639
1640
1641 Availability string `json:"availability,omitempty"`
1642
1643 AverageLatency int64 `json:"averageLatency,omitempty"`
1644
1645 Errors int64 `json:"errors,omitempty"`
1646
1647
1648 Id string `json:"id,omitempty"`
1649
1650 MemoryUsage int64 `json:"memoryUsage,omitempty,string"`
1651
1652
1653 Name string `json:"name,omitempty"`
1654
1655 Qps float64 `json:"qps,omitempty"`
1656
1657 Requests int64 `json:"requests,omitempty"`
1658
1659 StartTime string `json:"startTime,omitempty"`
1660
1661
1662 VmDebugEnabled bool `json:"vmDebugEnabled,omitempty"`
1663
1664
1665 VmId string `json:"vmId,omitempty"`
1666
1667
1668 VmIp string `json:"vmIp,omitempty"`
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687 VmLiveness string `json:"vmLiveness,omitempty"`
1688
1689
1690 VmName string `json:"vmName,omitempty"`
1691
1692
1693 VmStatus string `json:"vmStatus,omitempty"`
1694
1695
1696 VmZoneName string `json:"vmZoneName,omitempty"`
1697
1698
1699 googleapi.ServerResponse `json:"-"`
1700
1701
1702
1703
1704
1705 ForceSendFields []string `json:"-"`
1706
1707
1708
1709
1710 NullFields []string `json:"-"`
1711 }
1712
1713 func (s *Instance) MarshalJSON() ([]byte, error) {
1714 type NoMethod Instance
1715 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1716 }
1717
1718 func (s *Instance) UnmarshalJSON(data []byte) error {
1719 type NoMethod Instance
1720 var s1 struct {
1721 Qps gensupport.JSONFloat64 `json:"qps"`
1722 *NoMethod
1723 }
1724 s1.NoMethod = (*NoMethod)(s)
1725 if err := json.Unmarshal(data, &s1); err != nil {
1726 return err
1727 }
1728 s.Qps = float64(s1.Qps)
1729 return nil
1730 }
1731
1732
1733
1734 type Library struct {
1735
1736 Name string `json:"name,omitempty"`
1737
1738 Version string `json:"version,omitempty"`
1739
1740
1741
1742
1743
1744 ForceSendFields []string `json:"-"`
1745
1746
1747
1748
1749 NullFields []string `json:"-"`
1750 }
1751
1752 func (s *Library) MarshalJSON() ([]byte, error) {
1753 type NoMethod Library
1754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1755 }
1756
1757
1758
1759 type ListAuthorizedCertificatesResponse struct {
1760
1761 Certificates []*AuthorizedCertificate `json:"certificates,omitempty"`
1762
1763 NextPageToken string `json:"nextPageToken,omitempty"`
1764
1765
1766 googleapi.ServerResponse `json:"-"`
1767
1768
1769
1770
1771
1772 ForceSendFields []string `json:"-"`
1773
1774
1775
1776
1777 NullFields []string `json:"-"`
1778 }
1779
1780 func (s *ListAuthorizedCertificatesResponse) MarshalJSON() ([]byte, error) {
1781 type NoMethod ListAuthorizedCertificatesResponse
1782 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1783 }
1784
1785
1786
1787 type ListAuthorizedDomainsResponse struct {
1788
1789 Domains []*AuthorizedDomain `json:"domains,omitempty"`
1790
1791 NextPageToken string `json:"nextPageToken,omitempty"`
1792
1793
1794 googleapi.ServerResponse `json:"-"`
1795
1796
1797
1798
1799
1800 ForceSendFields []string `json:"-"`
1801
1802
1803
1804
1805 NullFields []string `json:"-"`
1806 }
1807
1808 func (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
1809 type NoMethod ListAuthorizedDomainsResponse
1810 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1811 }
1812
1813
1814
1815 type ListDomainMappingsResponse struct {
1816
1817 DomainMappings []*DomainMapping `json:"domainMappings,omitempty"`
1818
1819 NextPageToken string `json:"nextPageToken,omitempty"`
1820
1821
1822 googleapi.ServerResponse `json:"-"`
1823
1824
1825
1826
1827
1828 ForceSendFields []string `json:"-"`
1829
1830
1831
1832
1833 NullFields []string `json:"-"`
1834 }
1835
1836 func (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
1837 type NoMethod ListDomainMappingsResponse
1838 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1839 }
1840
1841
1842 type ListIngressRulesResponse struct {
1843
1844 IngressRules []*FirewallRule `json:"ingressRules,omitempty"`
1845
1846 NextPageToken string `json:"nextPageToken,omitempty"`
1847
1848
1849 googleapi.ServerResponse `json:"-"`
1850
1851
1852
1853
1854
1855 ForceSendFields []string `json:"-"`
1856
1857
1858
1859
1860 NullFields []string `json:"-"`
1861 }
1862
1863 func (s *ListIngressRulesResponse) MarshalJSON() ([]byte, error) {
1864 type NoMethod ListIngressRulesResponse
1865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1866 }
1867
1868
1869 type ListInstancesResponse struct {
1870
1871 Instances []*Instance `json:"instances,omitempty"`
1872
1873 NextPageToken string `json:"nextPageToken,omitempty"`
1874
1875
1876 googleapi.ServerResponse `json:"-"`
1877
1878
1879
1880
1881
1882 ForceSendFields []string `json:"-"`
1883
1884
1885
1886
1887 NullFields []string `json:"-"`
1888 }
1889
1890 func (s *ListInstancesResponse) MarshalJSON() ([]byte, error) {
1891 type NoMethod ListInstancesResponse
1892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1893 }
1894
1895
1896 type ListLocationsResponse struct {
1897
1898
1899 Locations []*Location `json:"locations,omitempty"`
1900
1901 NextPageToken string `json:"nextPageToken,omitempty"`
1902
1903
1904 googleapi.ServerResponse `json:"-"`
1905
1906
1907
1908
1909
1910 ForceSendFields []string `json:"-"`
1911
1912
1913
1914
1915 NullFields []string `json:"-"`
1916 }
1917
1918 func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
1919 type NoMethod ListLocationsResponse
1920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1921 }
1922
1923
1924 type ListOperationsResponse struct {
1925
1926 NextPageToken string `json:"nextPageToken,omitempty"`
1927
1928
1929 Operations []*Operation `json:"operations,omitempty"`
1930
1931
1932 googleapi.ServerResponse `json:"-"`
1933
1934
1935
1936
1937
1938 ForceSendFields []string `json:"-"`
1939
1940
1941
1942
1943 NullFields []string `json:"-"`
1944 }
1945
1946 func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
1947 type NoMethod ListOperationsResponse
1948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1949 }
1950
1951
1952 type ListRuntimesResponse struct {
1953
1954 NextPageToken string `json:"nextPageToken,omitempty"`
1955
1956 Runtimes []*Runtime `json:"runtimes,omitempty"`
1957
1958
1959 googleapi.ServerResponse `json:"-"`
1960
1961
1962
1963
1964
1965 ForceSendFields []string `json:"-"`
1966
1967
1968
1969
1970 NullFields []string `json:"-"`
1971 }
1972
1973 func (s *ListRuntimesResponse) MarshalJSON() ([]byte, error) {
1974 type NoMethod ListRuntimesResponse
1975 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1976 }
1977
1978
1979 type ListServicesResponse struct {
1980
1981 NextPageToken string `json:"nextPageToken,omitempty"`
1982
1983 Services []*Service `json:"services,omitempty"`
1984
1985
1986 googleapi.ServerResponse `json:"-"`
1987
1988
1989
1990
1991
1992 ForceSendFields []string `json:"-"`
1993
1994
1995
1996
1997 NullFields []string `json:"-"`
1998 }
1999
2000 func (s *ListServicesResponse) MarshalJSON() ([]byte, error) {
2001 type NoMethod ListServicesResponse
2002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2003 }
2004
2005
2006 type ListVersionsResponse struct {
2007
2008 NextPageToken string `json:"nextPageToken,omitempty"`
2009
2010 Versions []*Version `json:"versions,omitempty"`
2011
2012
2013 googleapi.ServerResponse `json:"-"`
2014
2015
2016
2017
2018
2019 ForceSendFields []string `json:"-"`
2020
2021
2022
2023
2024 NullFields []string `json:"-"`
2025 }
2026
2027 func (s *ListVersionsResponse) MarshalJSON() ([]byte, error) {
2028 type NoMethod ListVersionsResponse
2029 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2030 }
2031
2032
2033
2034 type LivenessCheck struct {
2035
2036 CheckInterval string `json:"checkInterval,omitempty"`
2037
2038
2039 FailureThreshold int64 `json:"failureThreshold,omitempty"`
2040
2041
2042 Host string `json:"host,omitempty"`
2043
2044 InitialDelay string `json:"initialDelay,omitempty"`
2045
2046 Path string `json:"path,omitempty"`
2047
2048
2049 SuccessThreshold int64 `json:"successThreshold,omitempty"`
2050
2051 Timeout string `json:"timeout,omitempty"`
2052
2053
2054
2055
2056
2057 ForceSendFields []string `json:"-"`
2058
2059
2060
2061
2062 NullFields []string `json:"-"`
2063 }
2064
2065 func (s *LivenessCheck) MarshalJSON() ([]byte, error) {
2066 type NoMethod LivenessCheck
2067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2068 }
2069
2070
2071 type Location struct {
2072
2073
2074 DisplayName string `json:"displayName,omitempty"`
2075
2076
2077 Labels map[string]string `json:"labels,omitempty"`
2078
2079 LocationId string `json:"locationId,omitempty"`
2080
2081
2082 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2083
2084
2085 Name string `json:"name,omitempty"`
2086
2087
2088 googleapi.ServerResponse `json:"-"`
2089
2090
2091
2092
2093
2094 ForceSendFields []string `json:"-"`
2095
2096
2097
2098
2099 NullFields []string `json:"-"`
2100 }
2101
2102 func (s *Location) MarshalJSON() ([]byte, error) {
2103 type NoMethod Location
2104 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2105 }
2106
2107
2108 type LocationMetadata struct {
2109
2110
2111 FlexibleEnvironmentAvailable bool `json:"flexibleEnvironmentAvailable,omitempty"`
2112
2113
2114
2115 SearchApiAvailable bool `json:"searchApiAvailable,omitempty"`
2116
2117
2118 StandardEnvironmentAvailable bool `json:"standardEnvironmentAvailable,omitempty"`
2119
2120
2121
2122
2123
2124 ForceSendFields []string `json:"-"`
2125
2126
2127
2128
2129 NullFields []string `json:"-"`
2130 }
2131
2132 func (s *LocationMetadata) MarshalJSON() ([]byte, error) {
2133 type NoMethod LocationMetadata
2134 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2135 }
2136
2137
2138 type ManagedCertificate struct {
2139
2140
2141
2142
2143 LastRenewalTime string `json:"lastRenewalTime,omitempty"`
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169 Status string `json:"status,omitempty"`
2170
2171
2172
2173
2174
2175 ForceSendFields []string `json:"-"`
2176
2177
2178
2179
2180 NullFields []string `json:"-"`
2181 }
2182
2183 func (s *ManagedCertificate) MarshalJSON() ([]byte, error) {
2184 type NoMethod ManagedCertificate
2185 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2186 }
2187
2188
2189
2190
2191 type ManualScaling struct {
2192
2193
2194
2195
2196 Instances int64 `json:"instances,omitempty"`
2197
2198
2199
2200
2201
2202 ForceSendFields []string `json:"-"`
2203
2204
2205
2206
2207 NullFields []string `json:"-"`
2208 }
2209
2210 func (s *ManualScaling) MarshalJSON() ([]byte, error) {
2211 type NoMethod ManualScaling
2212 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2213 }
2214
2215
2216
2217 type Network struct {
2218
2219
2220
2221 ForwardedPorts []string `json:"forwardedPorts,omitempty"`
2222
2223
2224
2225
2226
2227
2228
2229
2230 InstanceIpMode string `json:"instanceIpMode,omitempty"`
2231
2232
2233 InstanceTag string `json:"instanceTag,omitempty"`
2234
2235
2236 Name string `json:"name,omitempty"`
2237
2238
2239 SessionAffinity bool `json:"sessionAffinity,omitempty"`
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253 SubnetworkName string `json:"subnetworkName,omitempty"`
2254
2255
2256
2257
2258
2259 ForceSendFields []string `json:"-"`
2260
2261
2262
2263
2264 NullFields []string `json:"-"`
2265 }
2266
2267 func (s *Network) MarshalJSON() ([]byte, error) {
2268 type NoMethod Network
2269 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2270 }
2271
2272
2273
2274 type NetworkSettings struct {
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285 IngressTrafficAllowed string `json:"ingressTrafficAllowed,omitempty"`
2286
2287
2288
2289
2290
2291 ForceSendFields []string `json:"-"`
2292
2293
2294
2295
2296 NullFields []string `json:"-"`
2297 }
2298
2299 func (s *NetworkSettings) MarshalJSON() ([]byte, error) {
2300 type NoMethod NetworkSettings
2301 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2302 }
2303
2304
2305
2306 type NetworkUtilization struct {
2307
2308 TargetReceivedBytesPerSecond int64 `json:"targetReceivedBytesPerSecond,omitempty"`
2309
2310 TargetReceivedPacketsPerSecond int64 `json:"targetReceivedPacketsPerSecond,omitempty"`
2311
2312 TargetSentBytesPerSecond int64 `json:"targetSentBytesPerSecond,omitempty"`
2313
2314 TargetSentPacketsPerSecond int64 `json:"targetSentPacketsPerSecond,omitempty"`
2315
2316
2317
2318
2319
2320 ForceSendFields []string `json:"-"`
2321
2322
2323
2324
2325 NullFields []string `json:"-"`
2326 }
2327
2328 func (s *NetworkUtilization) MarshalJSON() ([]byte, error) {
2329 type NoMethod NetworkUtilization
2330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2331 }
2332
2333
2334
2335 type Operation struct {
2336
2337
2338 Done bool `json:"done,omitempty"`
2339
2340 Error *Status `json:"error,omitempty"`
2341
2342
2343
2344
2345 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2346
2347
2348
2349 Name string `json:"name,omitempty"`
2350
2351
2352
2353
2354
2355
2356
2357 Response googleapi.RawMessage `json:"response,omitempty"`
2358
2359
2360 googleapi.ServerResponse `json:"-"`
2361
2362
2363
2364
2365
2366 ForceSendFields []string `json:"-"`
2367
2368
2369
2370
2371 NullFields []string `json:"-"`
2372 }
2373
2374 func (s *Operation) MarshalJSON() ([]byte, error) {
2375 type NoMethod Operation
2376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2377 }
2378
2379
2380 type OperationMetadataV1 struct {
2381 CreateVersionMetadata *CreateVersionMetadataV1 `json:"createVersionMetadata,omitempty"`
2382
2383 EndTime string `json:"endTime,omitempty"`
2384
2385
2386 EphemeralMessage string `json:"ephemeralMessage,omitempty"`
2387
2388 InsertTime string `json:"insertTime,omitempty"`
2389
2390
2391 Method string `json:"method,omitempty"`
2392
2393
2394 Target string `json:"target,omitempty"`
2395
2396 User string `json:"user,omitempty"`
2397
2398 Warning []string `json:"warning,omitempty"`
2399
2400
2401
2402
2403
2404 ForceSendFields []string `json:"-"`
2405
2406
2407
2408
2409 NullFields []string `json:"-"`
2410 }
2411
2412 func (s *OperationMetadataV1) MarshalJSON() ([]byte, error) {
2413 type NoMethod OperationMetadataV1
2414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2415 }
2416
2417
2418
2419 type OperationMetadataV1Alpha struct {
2420 CreateVersionMetadata *CreateVersionMetadataV1Alpha `json:"createVersionMetadata,omitempty"`
2421
2422 EndTime string `json:"endTime,omitempty"`
2423
2424
2425 EphemeralMessage string `json:"ephemeralMessage,omitempty"`
2426
2427 InsertTime string `json:"insertTime,omitempty"`
2428
2429
2430 Method string `json:"method,omitempty"`
2431
2432
2433 Target string `json:"target,omitempty"`
2434
2435 User string `json:"user,omitempty"`
2436
2437 Warning []string `json:"warning,omitempty"`
2438
2439
2440
2441
2442
2443 ForceSendFields []string `json:"-"`
2444
2445
2446
2447
2448 NullFields []string `json:"-"`
2449 }
2450
2451 func (s *OperationMetadataV1Alpha) MarshalJSON() ([]byte, error) {
2452 type NoMethod OperationMetadataV1Alpha
2453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2454 }
2455
2456
2457
2458 type OperationMetadataV1Beta struct {
2459 CreateVersionMetadata *CreateVersionMetadataV1Beta `json:"createVersionMetadata,omitempty"`
2460
2461 EndTime string `json:"endTime,omitempty"`
2462
2463
2464 EphemeralMessage string `json:"ephemeralMessage,omitempty"`
2465
2466 InsertTime string `json:"insertTime,omitempty"`
2467
2468
2469 Method string `json:"method,omitempty"`
2470
2471
2472 Target string `json:"target,omitempty"`
2473
2474 User string `json:"user,omitempty"`
2475
2476 Warning []string `json:"warning,omitempty"`
2477
2478
2479
2480
2481
2482 ForceSendFields []string `json:"-"`
2483
2484
2485
2486
2487 NullFields []string `json:"-"`
2488 }
2489
2490 func (s *OperationMetadataV1Beta) MarshalJSON() ([]byte, error) {
2491 type NoMethod OperationMetadataV1Beta
2492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2493 }
2494
2495
2496 type ProjectEvent struct {
2497
2498
2499 EventId string `json:"eventId,omitempty"`
2500
2501
2502
2503
2504
2505
2506
2507
2508 Phase string `json:"phase,omitempty"`
2509
2510 ProjectMetadata *ProjectsMetadata `json:"projectMetadata,omitempty"`
2511
2512 State *ContainerState `json:"state,omitempty"`
2513
2514
2515
2516
2517
2518 ForceSendFields []string `json:"-"`
2519
2520
2521
2522
2523 NullFields []string `json:"-"`
2524 }
2525
2526 func (s *ProjectEvent) MarshalJSON() ([]byte, error) {
2527 type NoMethod ProjectEvent
2528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2529 }
2530
2531
2532
2533 type ProjectsMetadata struct {
2534
2535 ConsumerProjectId string `json:"consumerProjectId,omitempty"`
2536
2537 ConsumerProjectNumber int64 `json:"consumerProjectNumber,omitempty,string"`
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563 ConsumerProjectState string `json:"consumerProjectState,omitempty"`
2564
2565
2566 P4ServiceAccount string `json:"p4ServiceAccount,omitempty"`
2567
2568 ProducerProjectId string `json:"producerProjectId,omitempty"`
2569
2570 ProducerProjectNumber int64 `json:"producerProjectNumber,omitempty,string"`
2571
2572 TenantProjectId string `json:"tenantProjectId,omitempty"`
2573
2574 TenantProjectNumber int64 `json:"tenantProjectNumber,omitempty,string"`
2575
2576
2577
2578
2579
2580 ForceSendFields []string `json:"-"`
2581
2582
2583
2584
2585 NullFields []string `json:"-"`
2586 }
2587
2588 func (s *ProjectsMetadata) MarshalJSON() ([]byte, error) {
2589 type NoMethod ProjectsMetadata
2590 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2591 }
2592
2593
2594
2595 type ReadinessCheck struct {
2596
2597
2598
2599 AppStartTimeout string `json:"appStartTimeout,omitempty"`
2600
2601 CheckInterval string `json:"checkInterval,omitempty"`
2602
2603
2604 FailureThreshold int64 `json:"failureThreshold,omitempty"`
2605
2606
2607 Host string `json:"host,omitempty"`
2608
2609 Path string `json:"path,omitempty"`
2610
2611
2612 SuccessThreshold int64 `json:"successThreshold,omitempty"`
2613
2614 Timeout string `json:"timeout,omitempty"`
2615
2616
2617
2618
2619
2620 ForceSendFields []string `json:"-"`
2621
2622
2623
2624
2625 NullFields []string `json:"-"`
2626 }
2627
2628 func (s *ReadinessCheck) MarshalJSON() ([]byte, error) {
2629 type NoMethod ReadinessCheck
2630 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2631 }
2632
2633
2634
2635
2636
2637
2638 type Reasons struct {
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650 Abuse string `json:"abuse,omitempty"`
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669 Billing string `json:"billing,omitempty"`
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689 DataGovernance string `json:"dataGovernance,omitempty"`
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705 ServiceActivation string `json:"serviceActivation,omitempty"`
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727 ServiceManagement string `json:"serviceManagement,omitempty"`
2728
2729
2730
2731
2732
2733 ForceSendFields []string `json:"-"`
2734
2735
2736
2737
2738 NullFields []string `json:"-"`
2739 }
2740
2741 func (s *Reasons) MarshalJSON() ([]byte, error) {
2742 type NoMethod Reasons
2743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2744 }
2745
2746
2747
2748 type RepairApplicationRequest struct {
2749 }
2750
2751
2752
2753 type RequestUtilization struct {
2754
2755 TargetConcurrentRequests int64 `json:"targetConcurrentRequests,omitempty"`
2756
2757 TargetRequestCountPerSecond int64 `json:"targetRequestCountPerSecond,omitempty"`
2758
2759
2760
2761
2762
2763 ForceSendFields []string `json:"-"`
2764
2765
2766
2767
2768 NullFields []string `json:"-"`
2769 }
2770
2771 func (s *RequestUtilization) MarshalJSON() ([]byte, error) {
2772 type NoMethod RequestUtilization
2773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2774 }
2775
2776
2777 type ResourceRecord struct {
2778
2779
2780 Name string `json:"name,omitempty"`
2781
2782
2783 Rrdata string `json:"rrdata,omitempty"`
2784
2785
2786
2787
2788
2789
2790 Type string `json:"type,omitempty"`
2791
2792
2793
2794
2795
2796 ForceSendFields []string `json:"-"`
2797
2798
2799
2800
2801 NullFields []string `json:"-"`
2802 }
2803
2804 func (s *ResourceRecord) MarshalJSON() ([]byte, error) {
2805 type NoMethod ResourceRecord
2806 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2807 }
2808
2809
2810 type Resources struct {
2811
2812 Cpu float64 `json:"cpu,omitempty"`
2813
2814 DiskGb float64 `json:"diskGb,omitempty"`
2815
2816
2817 KmsKeyReference string `json:"kmsKeyReference,omitempty"`
2818
2819 MemoryGb float64 `json:"memoryGb,omitempty"`
2820
2821 Volumes []*Volume `json:"volumes,omitempty"`
2822
2823
2824
2825
2826
2827 ForceSendFields []string `json:"-"`
2828
2829
2830
2831
2832 NullFields []string `json:"-"`
2833 }
2834
2835 func (s *Resources) MarshalJSON() ([]byte, error) {
2836 type NoMethod Resources
2837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2838 }
2839
2840 func (s *Resources) UnmarshalJSON(data []byte) error {
2841 type NoMethod Resources
2842 var s1 struct {
2843 Cpu gensupport.JSONFloat64 `json:"cpu"`
2844 DiskGb gensupport.JSONFloat64 `json:"diskGb"`
2845 MemoryGb gensupport.JSONFloat64 `json:"memoryGb"`
2846 *NoMethod
2847 }
2848 s1.NoMethod = (*NoMethod)(s)
2849 if err := json.Unmarshal(data, &s1); err != nil {
2850 return err
2851 }
2852 s.Cpu = float64(s1.Cpu)
2853 s.DiskGb = float64(s1.DiskGb)
2854 s.MemoryGb = float64(s1.MemoryGb)
2855 return nil
2856 }
2857
2858
2859 type Runtime struct {
2860
2861 DecommissionedDate *Date `json:"decommissionedDate,omitempty"`
2862
2863 DeprecationDate *Date `json:"deprecationDate,omitempty"`
2864
2865 DisplayName string `json:"displayName,omitempty"`
2866
2867 EndOfSupportDate *Date `json:"endOfSupportDate,omitempty"`
2868
2869
2870
2871
2872
2873
2874 Environment string `json:"environment,omitempty"`
2875
2876 Name string `json:"name,omitempty"`
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888 Stage string `json:"stage,omitempty"`
2889
2890
2891 SupportedOperatingSystems []string `json:"supportedOperatingSystems,omitempty"`
2892
2893 Warnings []string `json:"warnings,omitempty"`
2894
2895
2896
2897
2898
2899 ForceSendFields []string `json:"-"`
2900
2901
2902
2903
2904 NullFields []string `json:"-"`
2905 }
2906
2907 func (s *Runtime) MarshalJSON() ([]byte, error) {
2908 type NoMethod Runtime
2909 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2910 }
2911
2912
2913
2914 type ScriptHandler struct {
2915
2916 ScriptPath string `json:"scriptPath,omitempty"`
2917
2918
2919
2920
2921
2922 ForceSendFields []string `json:"-"`
2923
2924
2925
2926
2927 NullFields []string `json:"-"`
2928 }
2929
2930 func (s *ScriptHandler) MarshalJSON() ([]byte, error) {
2931 type NoMethod ScriptHandler
2932 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2933 }
2934
2935
2936
2937
2938
2939
2940
2941
2942 type Service struct {
2943
2944
2945
2946 GeneratedCustomerMetadata googleapi.RawMessage `json:"generatedCustomerMetadata,omitempty"`
2947
2948
2949 Id string `json:"id,omitempty"`
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960 Labels map[string]string `json:"labels,omitempty"`
2961
2962
2963 Name string `json:"name,omitempty"`
2964
2965
2966 NetworkSettings *NetworkSettings `json:"networkSettings,omitempty"`
2967
2968
2969 Split *TrafficSplit `json:"split,omitempty"`
2970
2971
2972 googleapi.ServerResponse `json:"-"`
2973
2974
2975
2976
2977
2978 ForceSendFields []string `json:"-"`
2979
2980
2981
2982
2983 NullFields []string `json:"-"`
2984 }
2985
2986 func (s *Service) MarshalJSON() ([]byte, error) {
2987 type NoMethod Service
2988 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2989 }
2990
2991
2992 type SslSettings struct {
2993
2994
2995
2996
2997
2998
2999
3000 CertificateId string `json:"certificateId,omitempty"`
3001
3002
3003
3004
3005
3006
3007
3008
3009 PendingManagedCertificateId string `json:"pendingManagedCertificateId,omitempty"`
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020 SslManagementType string `json:"sslManagementType,omitempty"`
3021
3022
3023
3024
3025
3026 ForceSendFields []string `json:"-"`
3027
3028
3029
3030
3031 NullFields []string `json:"-"`
3032 }
3033
3034 func (s *SslSettings) MarshalJSON() ([]byte, error) {
3035 type NoMethod SslSettings
3036 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3037 }
3038
3039
3040 type StandardSchedulerSettings struct {
3041
3042
3043 MaxInstances int64 `json:"maxInstances,omitempty"`
3044
3045
3046 MinInstances int64 `json:"minInstances,omitempty"`
3047
3048 TargetCpuUtilization float64 `json:"targetCpuUtilization,omitempty"`
3049
3050
3051 TargetThroughputUtilization float64 `json:"targetThroughputUtilization,omitempty"`
3052
3053
3054
3055
3056
3057 ForceSendFields []string `json:"-"`
3058
3059
3060
3061
3062 NullFields []string `json:"-"`
3063 }
3064
3065 func (s *StandardSchedulerSettings) MarshalJSON() ([]byte, error) {
3066 type NoMethod StandardSchedulerSettings
3067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3068 }
3069
3070 func (s *StandardSchedulerSettings) UnmarshalJSON(data []byte) error {
3071 type NoMethod StandardSchedulerSettings
3072 var s1 struct {
3073 TargetCpuUtilization gensupport.JSONFloat64 `json:"targetCpuUtilization"`
3074 TargetThroughputUtilization gensupport.JSONFloat64 `json:"targetThroughputUtilization"`
3075 *NoMethod
3076 }
3077 s1.NoMethod = (*NoMethod)(s)
3078 if err := json.Unmarshal(data, &s1); err != nil {
3079 return err
3080 }
3081 s.TargetCpuUtilization = float64(s1.TargetCpuUtilization)
3082 s.TargetThroughputUtilization = float64(s1.TargetThroughputUtilization)
3083 return nil
3084 }
3085
3086
3087
3088
3089
3090 type StaticFilesHandler struct {
3091
3092
3093
3094
3095
3096 ApplicationReadable bool `json:"applicationReadable,omitempty"`
3097
3098
3099 Expiration string `json:"expiration,omitempty"`
3100
3101 HttpHeaders map[string]string `json:"httpHeaders,omitempty"`
3102
3103
3104
3105 MimeType string `json:"mimeType,omitempty"`
3106
3107
3108
3109 Path string `json:"path,omitempty"`
3110
3111
3112 RequireMatchingFile bool `json:"requireMatchingFile,omitempty"`
3113
3114
3115 UploadPathRegex string `json:"uploadPathRegex,omitempty"`
3116
3117
3118
3119
3120
3121 ForceSendFields []string `json:"-"`
3122
3123
3124
3125
3126 NullFields []string `json:"-"`
3127 }
3128
3129 func (s *StaticFilesHandler) MarshalJSON() ([]byte, error) {
3130 type NoMethod StaticFilesHandler
3131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3132 }
3133
3134
3135
3136
3137
3138
3139
3140 type Status struct {
3141
3142 Code int64 `json:"code,omitempty"`
3143
3144
3145 Details []googleapi.RawMessage `json:"details,omitempty"`
3146
3147
3148
3149 Message string `json:"message,omitempty"`
3150
3151
3152
3153
3154
3155 ForceSendFields []string `json:"-"`
3156
3157
3158
3159
3160 NullFields []string `json:"-"`
3161 }
3162
3163 func (s *Status) MarshalJSON() ([]byte, error) {
3164 type NoMethod Status
3165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3166 }
3167
3168
3169
3170
3171 type TrafficSplit struct {
3172
3173
3174
3175
3176
3177
3178
3179
3180 Allocations map[string]float64 `json:"allocations,omitempty"`
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194 ShardBy string `json:"shardBy,omitempty"`
3195
3196
3197
3198
3199
3200 ForceSendFields []string `json:"-"`
3201
3202
3203
3204
3205 NullFields []string `json:"-"`
3206 }
3207
3208 func (s *TrafficSplit) MarshalJSON() ([]byte, error) {
3209 type NoMethod TrafficSplit
3210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3211 }
3212
3213
3214
3215 type UrlDispatchRule struct {
3216
3217
3218 Domain string `json:"domain,omitempty"`
3219
3220
3221
3222 Path string `json:"path,omitempty"`
3223
3224
3225 Service string `json:"service,omitempty"`
3226
3227
3228
3229
3230
3231 ForceSendFields []string `json:"-"`
3232
3233
3234
3235
3236 NullFields []string `json:"-"`
3237 }
3238
3239 func (s *UrlDispatchRule) MarshalJSON() ([]byte, error) {
3240 type NoMethod UrlDispatchRule
3241 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3242 }
3243
3244
3245
3246
3247 type UrlMap struct {
3248
3249 ApiEndpoint *ApiEndpointHandler `json:"apiEndpoint,omitempty"`
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261 AuthFailAction string `json:"authFailAction,omitempty"`
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274 Login string `json:"login,omitempty"`
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284 RedirectHttpResponseCode string `json:"redirectHttpResponseCode,omitempty"`
3285
3286
3287
3288 Script *ScriptHandler `json:"script,omitempty"`
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304 SecurityLevel string `json:"securityLevel,omitempty"`
3305
3306
3307 StaticFiles *StaticFilesHandler `json:"staticFiles,omitempty"`
3308
3309
3310
3311
3312 UrlRegex string `json:"urlRegex,omitempty"`
3313
3314
3315
3316
3317
3318 ForceSendFields []string `json:"-"`
3319
3320
3321
3322
3323 NullFields []string `json:"-"`
3324 }
3325
3326 func (s *UrlMap) MarshalJSON() ([]byte, error) {
3327 type NoMethod UrlMap
3328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3329 }
3330
3331
3332
3333 type Version struct {
3334
3335
3336
3337 ApiConfig *ApiConfigHandler `json:"apiConfig,omitempty"`
3338
3339
3340 AppEngineApis bool `json:"appEngineApis,omitempty"`
3341
3342
3343
3344 AutomaticScaling *AutomaticScaling `json:"automaticScaling,omitempty"`
3345
3346
3347
3348
3349 BasicScaling *BasicScaling `json:"basicScaling,omitempty"`
3350
3351
3352 BetaSettings map[string]string `json:"betaSettings,omitempty"`
3353
3354
3355 BuildEnvVariables map[string]string `json:"buildEnvVariables,omitempty"`
3356
3357 CreateTime string `json:"createTime,omitempty"`
3358
3359 CreatedBy string `json:"createdBy,omitempty"`
3360
3361
3362
3363
3364
3365
3366 DefaultExpiration string `json:"defaultExpiration,omitempty"`
3367
3368
3369 Deployment *Deployment `json:"deployment,omitempty"`
3370
3371
3372 DiskUsageBytes int64 `json:"diskUsageBytes,omitempty,string"`
3373
3374
3375
3376 EndpointsApiService *EndpointsApiService `json:"endpointsApiService,omitempty"`
3377
3378 Entrypoint *Entrypoint `json:"entrypoint,omitempty"`
3379
3380 Env string `json:"env,omitempty"`
3381
3382
3383 EnvVariables map[string]string `json:"envVariables,omitempty"`
3384
3385
3386 ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"`
3387
3388 FlexibleRuntimeSettings *FlexibleRuntimeSettings `json:"flexibleRuntimeSettings,omitempty"`
3389
3390
3391
3392 GeneratedCustomerMetadata googleapi.RawMessage `json:"generatedCustomerMetadata,omitempty"`
3393
3394
3395
3396
3397 Handlers []*UrlMap `json:"handlers,omitempty"`
3398
3399
3400
3401 HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
3402
3403
3404
3405 Id string `json:"id,omitempty"`
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425 InboundServices []string `json:"inboundServices,omitempty"`
3426
3427
3428
3429
3430 InstanceClass string `json:"instanceClass,omitempty"`
3431
3432
3433
3434 Libraries []*Library `json:"libraries,omitempty"`
3435
3436
3437 LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"`
3438
3439
3440
3441 ManualScaling *ManualScaling `json:"manualScaling,omitempty"`
3442
3443
3444 Name string `json:"name,omitempty"`
3445
3446
3447 Network *Network `json:"network,omitempty"`
3448
3449
3450
3451 NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"`
3452
3453
3454 ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"`
3455
3456
3457 Resources *Resources `json:"resources,omitempty"`
3458
3459 Runtime string `json:"runtime,omitempty"`
3460
3461
3462
3463 RuntimeApiVersion string `json:"runtimeApiVersion,omitempty"`
3464
3465
3466 RuntimeChannel string `json:"runtimeChannel,omitempty"`
3467
3468 RuntimeMainExecutablePath string `json:"runtimeMainExecutablePath,omitempty"`
3469
3470
3471
3472 ServiceAccount string `json:"serviceAccount,omitempty"`
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483 ServingStatus string `json:"servingStatus,omitempty"`
3484
3485
3486 Threadsafe bool `json:"threadsafe,omitempty"`
3487
3488
3489 VersionUrl string `json:"versionUrl,omitempty"`
3490
3491 Vm bool `json:"vm,omitempty"`
3492
3493 VpcAccessConnector *VpcAccessConnector `json:"vpcAccessConnector,omitempty"`
3494
3495
3496 Zones []string `json:"zones,omitempty"`
3497
3498
3499 googleapi.ServerResponse `json:"-"`
3500
3501
3502
3503
3504
3505 ForceSendFields []string `json:"-"`
3506
3507
3508
3509
3510 NullFields []string `json:"-"`
3511 }
3512
3513 func (s *Version) MarshalJSON() ([]byte, error) {
3514 type NoMethod Version
3515 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3516 }
3517
3518
3519
3520 type Volume struct {
3521
3522 Name string `json:"name,omitempty"`
3523
3524 SizeGb float64 `json:"sizeGb,omitempty"`
3525
3526 VolumeType string `json:"volumeType,omitempty"`
3527
3528
3529
3530
3531
3532 ForceSendFields []string `json:"-"`
3533
3534
3535
3536
3537 NullFields []string `json:"-"`
3538 }
3539
3540 func (s *Volume) MarshalJSON() ([]byte, error) {
3541 type NoMethod Volume
3542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3543 }
3544
3545 func (s *Volume) UnmarshalJSON(data []byte) error {
3546 type NoMethod Volume
3547 var s1 struct {
3548 SizeGb gensupport.JSONFloat64 `json:"sizeGb"`
3549 *NoMethod
3550 }
3551 s1.NoMethod = (*NoMethod)(s)
3552 if err := json.Unmarshal(data, &s1); err != nil {
3553 return err
3554 }
3555 s.SizeGb = float64(s1.SizeGb)
3556 return nil
3557 }
3558
3559
3560 type VpcAccessConnector struct {
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570 EgressSetting string `json:"egressSetting,omitempty"`
3571
3572
3573 Name string `json:"name,omitempty"`
3574
3575
3576
3577
3578
3579 ForceSendFields []string `json:"-"`
3580
3581
3582
3583
3584 NullFields []string `json:"-"`
3585 }
3586
3587 func (s *VpcAccessConnector) MarshalJSON() ([]byte, error) {
3588 type NoMethod VpcAccessConnector
3589 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3590 }
3591
3592
3593 type ZipInfo struct {
3594
3595
3596
3597
3598 FilesCount int64 `json:"filesCount,omitempty"`
3599
3600
3601 SourceUrl string `json:"sourceUrl,omitempty"`
3602
3603
3604
3605
3606
3607 ForceSendFields []string `json:"-"`
3608
3609
3610
3611
3612 NullFields []string `json:"-"`
3613 }
3614
3615 func (s *ZipInfo) MarshalJSON() ([]byte, error) {
3616 type NoMethod ZipInfo
3617 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3618 }
3619
3620 type AppsCreateCall struct {
3621 s *APIService
3622 application *Application
3623 urlParams_ gensupport.URLParams
3624 ctx_ context.Context
3625 header_ http.Header
3626 }
3627
3628
3629
3630
3631
3632
3633
3634 func (r *AppsService) Create(application *Application) *AppsCreateCall {
3635 c := &AppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3636 c.application = application
3637 return c
3638 }
3639
3640
3641
3642
3643 func (c *AppsCreateCall) Fields(s ...googleapi.Field) *AppsCreateCall {
3644 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3645 return c
3646 }
3647
3648
3649 func (c *AppsCreateCall) Context(ctx context.Context) *AppsCreateCall {
3650 c.ctx_ = ctx
3651 return c
3652 }
3653
3654
3655
3656 func (c *AppsCreateCall) Header() http.Header {
3657 if c.header_ == nil {
3658 c.header_ = make(http.Header)
3659 }
3660 return c.header_
3661 }
3662
3663 func (c *AppsCreateCall) doRequest(alt string) (*http.Response, error) {
3664 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3665 var body io.Reader = nil
3666 body, err := googleapi.WithoutDataWrapper.JSONReader(c.application)
3667 if err != nil {
3668 return nil, err
3669 }
3670 c.urlParams_.Set("alt", alt)
3671 c.urlParams_.Set("prettyPrint", "false")
3672 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps")
3673 urls += "?" + c.urlParams_.Encode()
3674 req, err := http.NewRequest("POST", urls, body)
3675 if err != nil {
3676 return nil, err
3677 }
3678 req.Header = reqHeaders
3679 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3680 }
3681
3682
3683
3684
3685
3686
3687 func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
3688 gensupport.SetOptions(c.urlParams_, opts...)
3689 res, err := c.doRequest("json")
3690 if res != nil && res.StatusCode == http.StatusNotModified {
3691 if res.Body != nil {
3692 res.Body.Close()
3693 }
3694 return nil, gensupport.WrapError(&googleapi.Error{
3695 Code: res.StatusCode,
3696 Header: res.Header,
3697 })
3698 }
3699 if err != nil {
3700 return nil, err
3701 }
3702 defer googleapi.CloseBody(res)
3703 if err := googleapi.CheckResponse(res); err != nil {
3704 return nil, gensupport.WrapError(err)
3705 }
3706 ret := &Operation{
3707 ServerResponse: googleapi.ServerResponse{
3708 Header: res.Header,
3709 HTTPStatusCode: res.StatusCode,
3710 },
3711 }
3712 target := &ret
3713 if err := gensupport.DecodeResponse(target, res); err != nil {
3714 return nil, err
3715 }
3716 return ret, nil
3717 }
3718
3719 type AppsGetCall struct {
3720 s *APIService
3721 appsId string
3722 urlParams_ gensupport.URLParams
3723 ifNoneMatch_ string
3724 ctx_ context.Context
3725 header_ http.Header
3726 }
3727
3728
3729
3730
3731
3732 func (r *AppsService) Get(appsId string) *AppsGetCall {
3733 c := &AppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3734 c.appsId = appsId
3735 return c
3736 }
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751 func (c *AppsGetCall) IncludeExtraData(includeExtraData string) *AppsGetCall {
3752 c.urlParams_.Set("includeExtraData", includeExtraData)
3753 return c
3754 }
3755
3756
3757
3758
3759 func (c *AppsGetCall) Fields(s ...googleapi.Field) *AppsGetCall {
3760 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3761 return c
3762 }
3763
3764
3765
3766
3767 func (c *AppsGetCall) IfNoneMatch(entityTag string) *AppsGetCall {
3768 c.ifNoneMatch_ = entityTag
3769 return c
3770 }
3771
3772
3773 func (c *AppsGetCall) Context(ctx context.Context) *AppsGetCall {
3774 c.ctx_ = ctx
3775 return c
3776 }
3777
3778
3779
3780 func (c *AppsGetCall) Header() http.Header {
3781 if c.header_ == nil {
3782 c.header_ = make(http.Header)
3783 }
3784 return c.header_
3785 }
3786
3787 func (c *AppsGetCall) doRequest(alt string) (*http.Response, error) {
3788 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3789 if c.ifNoneMatch_ != "" {
3790 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3791 }
3792 var body io.Reader = nil
3793 c.urlParams_.Set("alt", alt)
3794 c.urlParams_.Set("prettyPrint", "false")
3795 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}")
3796 urls += "?" + c.urlParams_.Encode()
3797 req, err := http.NewRequest("GET", urls, body)
3798 if err != nil {
3799 return nil, err
3800 }
3801 req.Header = reqHeaders
3802 googleapi.Expand(req.URL, map[string]string{
3803 "appsId": c.appsId,
3804 })
3805 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3806 }
3807
3808
3809
3810
3811
3812
3813 func (c *AppsGetCall) Do(opts ...googleapi.CallOption) (*Application, error) {
3814 gensupport.SetOptions(c.urlParams_, opts...)
3815 res, err := c.doRequest("json")
3816 if res != nil && res.StatusCode == http.StatusNotModified {
3817 if res.Body != nil {
3818 res.Body.Close()
3819 }
3820 return nil, gensupport.WrapError(&googleapi.Error{
3821 Code: res.StatusCode,
3822 Header: res.Header,
3823 })
3824 }
3825 if err != nil {
3826 return nil, err
3827 }
3828 defer googleapi.CloseBody(res)
3829 if err := googleapi.CheckResponse(res); err != nil {
3830 return nil, gensupport.WrapError(err)
3831 }
3832 ret := &Application{
3833 ServerResponse: googleapi.ServerResponse{
3834 Header: res.Header,
3835 HTTPStatusCode: res.StatusCode,
3836 },
3837 }
3838 target := &ret
3839 if err := gensupport.DecodeResponse(target, res); err != nil {
3840 return nil, err
3841 }
3842 return ret, nil
3843 }
3844
3845 type AppsListRuntimesCall struct {
3846 s *APIService
3847 appsId string
3848 urlParams_ gensupport.URLParams
3849 ifNoneMatch_ string
3850 ctx_ context.Context
3851 header_ http.Header
3852 }
3853
3854
3855
3856
3857
3858 func (r *AppsService) ListRuntimes(appsId string) *AppsListRuntimesCall {
3859 c := &AppsListRuntimesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3860 c.appsId = appsId
3861 return c
3862 }
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872 func (c *AppsListRuntimesCall) Environment(environment string) *AppsListRuntimesCall {
3873 c.urlParams_.Set("environment", environment)
3874 return c
3875 }
3876
3877
3878
3879
3880 func (c *AppsListRuntimesCall) Fields(s ...googleapi.Field) *AppsListRuntimesCall {
3881 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3882 return c
3883 }
3884
3885
3886
3887
3888 func (c *AppsListRuntimesCall) IfNoneMatch(entityTag string) *AppsListRuntimesCall {
3889 c.ifNoneMatch_ = entityTag
3890 return c
3891 }
3892
3893
3894 func (c *AppsListRuntimesCall) Context(ctx context.Context) *AppsListRuntimesCall {
3895 c.ctx_ = ctx
3896 return c
3897 }
3898
3899
3900
3901 func (c *AppsListRuntimesCall) Header() http.Header {
3902 if c.header_ == nil {
3903 c.header_ = make(http.Header)
3904 }
3905 return c.header_
3906 }
3907
3908 func (c *AppsListRuntimesCall) doRequest(alt string) (*http.Response, error) {
3909 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3910 if c.ifNoneMatch_ != "" {
3911 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3912 }
3913 var body io.Reader = nil
3914 c.urlParams_.Set("alt", alt)
3915 c.urlParams_.Set("prettyPrint", "false")
3916 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}:listRuntimes")
3917 urls += "?" + c.urlParams_.Encode()
3918 req, err := http.NewRequest("GET", urls, body)
3919 if err != nil {
3920 return nil, err
3921 }
3922 req.Header = reqHeaders
3923 googleapi.Expand(req.URL, map[string]string{
3924 "appsId": c.appsId,
3925 })
3926 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3927 }
3928
3929
3930
3931
3932
3933
3934
3935 func (c *AppsListRuntimesCall) Do(opts ...googleapi.CallOption) (*ListRuntimesResponse, error) {
3936 gensupport.SetOptions(c.urlParams_, opts...)
3937 res, err := c.doRequest("json")
3938 if res != nil && res.StatusCode == http.StatusNotModified {
3939 if res.Body != nil {
3940 res.Body.Close()
3941 }
3942 return nil, gensupport.WrapError(&googleapi.Error{
3943 Code: res.StatusCode,
3944 Header: res.Header,
3945 })
3946 }
3947 if err != nil {
3948 return nil, err
3949 }
3950 defer googleapi.CloseBody(res)
3951 if err := googleapi.CheckResponse(res); err != nil {
3952 return nil, gensupport.WrapError(err)
3953 }
3954 ret := &ListRuntimesResponse{
3955 ServerResponse: googleapi.ServerResponse{
3956 Header: res.Header,
3957 HTTPStatusCode: res.StatusCode,
3958 },
3959 }
3960 target := &ret
3961 if err := gensupport.DecodeResponse(target, res); err != nil {
3962 return nil, err
3963 }
3964 return ret, nil
3965 }
3966
3967 type AppsPatchCall struct {
3968 s *APIService
3969 appsId string
3970 application *Application
3971 urlParams_ gensupport.URLParams
3972 ctx_ context.Context
3973 header_ http.Header
3974 }
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984 func (r *AppsService) Patch(appsId string, application *Application) *AppsPatchCall {
3985 c := &AppsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3986 c.appsId = appsId
3987 c.application = application
3988 return c
3989 }
3990
3991
3992
3993 func (c *AppsPatchCall) UpdateMask(updateMask string) *AppsPatchCall {
3994 c.urlParams_.Set("updateMask", updateMask)
3995 return c
3996 }
3997
3998
3999
4000
4001 func (c *AppsPatchCall) Fields(s ...googleapi.Field) *AppsPatchCall {
4002 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4003 return c
4004 }
4005
4006
4007 func (c *AppsPatchCall) Context(ctx context.Context) *AppsPatchCall {
4008 c.ctx_ = ctx
4009 return c
4010 }
4011
4012
4013
4014 func (c *AppsPatchCall) Header() http.Header {
4015 if c.header_ == nil {
4016 c.header_ = make(http.Header)
4017 }
4018 return c.header_
4019 }
4020
4021 func (c *AppsPatchCall) doRequest(alt string) (*http.Response, error) {
4022 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4023 var body io.Reader = nil
4024 body, err := googleapi.WithoutDataWrapper.JSONReader(c.application)
4025 if err != nil {
4026 return nil, err
4027 }
4028 c.urlParams_.Set("alt", alt)
4029 c.urlParams_.Set("prettyPrint", "false")
4030 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}")
4031 urls += "?" + c.urlParams_.Encode()
4032 req, err := http.NewRequest("PATCH", urls, body)
4033 if err != nil {
4034 return nil, err
4035 }
4036 req.Header = reqHeaders
4037 googleapi.Expand(req.URL, map[string]string{
4038 "appsId": c.appsId,
4039 })
4040 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4041 }
4042
4043
4044
4045
4046
4047
4048 func (c *AppsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4049 gensupport.SetOptions(c.urlParams_, opts...)
4050 res, err := c.doRequest("json")
4051 if res != nil && res.StatusCode == http.StatusNotModified {
4052 if res.Body != nil {
4053 res.Body.Close()
4054 }
4055 return nil, gensupport.WrapError(&googleapi.Error{
4056 Code: res.StatusCode,
4057 Header: res.Header,
4058 })
4059 }
4060 if err != nil {
4061 return nil, err
4062 }
4063 defer googleapi.CloseBody(res)
4064 if err := googleapi.CheckResponse(res); err != nil {
4065 return nil, gensupport.WrapError(err)
4066 }
4067 ret := &Operation{
4068 ServerResponse: googleapi.ServerResponse{
4069 Header: res.Header,
4070 HTTPStatusCode: res.StatusCode,
4071 },
4072 }
4073 target := &ret
4074 if err := gensupport.DecodeResponse(target, res); err != nil {
4075 return nil, err
4076 }
4077 return ret, nil
4078 }
4079
4080 type AppsRepairCall struct {
4081 s *APIService
4082 appsId string
4083 repairapplicationrequest *RepairApplicationRequest
4084 urlParams_ gensupport.URLParams
4085 ctx_ context.Context
4086 header_ http.Header
4087 }
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102 func (r *AppsService) Repair(appsId string, repairapplicationrequest *RepairApplicationRequest) *AppsRepairCall {
4103 c := &AppsRepairCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4104 c.appsId = appsId
4105 c.repairapplicationrequest = repairapplicationrequest
4106 return c
4107 }
4108
4109
4110
4111
4112 func (c *AppsRepairCall) Fields(s ...googleapi.Field) *AppsRepairCall {
4113 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4114 return c
4115 }
4116
4117
4118 func (c *AppsRepairCall) Context(ctx context.Context) *AppsRepairCall {
4119 c.ctx_ = ctx
4120 return c
4121 }
4122
4123
4124
4125 func (c *AppsRepairCall) Header() http.Header {
4126 if c.header_ == nil {
4127 c.header_ = make(http.Header)
4128 }
4129 return c.header_
4130 }
4131
4132 func (c *AppsRepairCall) doRequest(alt string) (*http.Response, error) {
4133 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4134 var body io.Reader = nil
4135 body, err := googleapi.WithoutDataWrapper.JSONReader(c.repairapplicationrequest)
4136 if err != nil {
4137 return nil, err
4138 }
4139 c.urlParams_.Set("alt", alt)
4140 c.urlParams_.Set("prettyPrint", "false")
4141 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}:repair")
4142 urls += "?" + c.urlParams_.Encode()
4143 req, err := http.NewRequest("POST", urls, body)
4144 if err != nil {
4145 return nil, err
4146 }
4147 req.Header = reqHeaders
4148 googleapi.Expand(req.URL, map[string]string{
4149 "appsId": c.appsId,
4150 })
4151 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4152 }
4153
4154
4155
4156
4157
4158
4159 func (c *AppsRepairCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4160 gensupport.SetOptions(c.urlParams_, opts...)
4161 res, err := c.doRequest("json")
4162 if res != nil && res.StatusCode == http.StatusNotModified {
4163 if res.Body != nil {
4164 res.Body.Close()
4165 }
4166 return nil, gensupport.WrapError(&googleapi.Error{
4167 Code: res.StatusCode,
4168 Header: res.Header,
4169 })
4170 }
4171 if err != nil {
4172 return nil, err
4173 }
4174 defer googleapi.CloseBody(res)
4175 if err := googleapi.CheckResponse(res); err != nil {
4176 return nil, gensupport.WrapError(err)
4177 }
4178 ret := &Operation{
4179 ServerResponse: googleapi.ServerResponse{
4180 Header: res.Header,
4181 HTTPStatusCode: res.StatusCode,
4182 },
4183 }
4184 target := &ret
4185 if err := gensupport.DecodeResponse(target, res); err != nil {
4186 return nil, err
4187 }
4188 return ret, nil
4189 }
4190
4191 type AppsAuthorizedCertificatesCreateCall struct {
4192 s *APIService
4193 appsId string
4194 authorizedcertificate *AuthorizedCertificate
4195 urlParams_ gensupport.URLParams
4196 ctx_ context.Context
4197 header_ http.Header
4198 }
4199
4200
4201
4202
4203
4204 func (r *AppsAuthorizedCertificatesService) Create(appsId string, authorizedcertificate *AuthorizedCertificate) *AppsAuthorizedCertificatesCreateCall {
4205 c := &AppsAuthorizedCertificatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4206 c.appsId = appsId
4207 c.authorizedcertificate = authorizedcertificate
4208 return c
4209 }
4210
4211
4212
4213
4214 func (c *AppsAuthorizedCertificatesCreateCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesCreateCall {
4215 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4216 return c
4217 }
4218
4219
4220 func (c *AppsAuthorizedCertificatesCreateCall) Context(ctx context.Context) *AppsAuthorizedCertificatesCreateCall {
4221 c.ctx_ = ctx
4222 return c
4223 }
4224
4225
4226
4227 func (c *AppsAuthorizedCertificatesCreateCall) Header() http.Header {
4228 if c.header_ == nil {
4229 c.header_ = make(http.Header)
4230 }
4231 return c.header_
4232 }
4233
4234 func (c *AppsAuthorizedCertificatesCreateCall) doRequest(alt string) (*http.Response, error) {
4235 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4236 var body io.Reader = nil
4237 body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedcertificate)
4238 if err != nil {
4239 return nil, err
4240 }
4241 c.urlParams_.Set("alt", alt)
4242 c.urlParams_.Set("prettyPrint", "false")
4243 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/authorizedCertificates")
4244 urls += "?" + c.urlParams_.Encode()
4245 req, err := http.NewRequest("POST", urls, body)
4246 if err != nil {
4247 return nil, err
4248 }
4249 req.Header = reqHeaders
4250 googleapi.Expand(req.URL, map[string]string{
4251 "appsId": c.appsId,
4252 })
4253 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4254 }
4255
4256
4257
4258
4259
4260
4261
4262 func (c *AppsAuthorizedCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
4263 gensupport.SetOptions(c.urlParams_, opts...)
4264 res, err := c.doRequest("json")
4265 if res != nil && res.StatusCode == http.StatusNotModified {
4266 if res.Body != nil {
4267 res.Body.Close()
4268 }
4269 return nil, gensupport.WrapError(&googleapi.Error{
4270 Code: res.StatusCode,
4271 Header: res.Header,
4272 })
4273 }
4274 if err != nil {
4275 return nil, err
4276 }
4277 defer googleapi.CloseBody(res)
4278 if err := googleapi.CheckResponse(res); err != nil {
4279 return nil, gensupport.WrapError(err)
4280 }
4281 ret := &AuthorizedCertificate{
4282 ServerResponse: googleapi.ServerResponse{
4283 Header: res.Header,
4284 HTTPStatusCode: res.StatusCode,
4285 },
4286 }
4287 target := &ret
4288 if err := gensupport.DecodeResponse(target, res); err != nil {
4289 return nil, err
4290 }
4291 return ret, nil
4292 }
4293
4294 type AppsAuthorizedCertificatesDeleteCall struct {
4295 s *APIService
4296 appsId string
4297 authorizedCertificatesId string
4298 urlParams_ gensupport.URLParams
4299 ctx_ context.Context
4300 header_ http.Header
4301 }
4302
4303
4304
4305
4306
4307
4308 func (r *AppsAuthorizedCertificatesService) Delete(appsId string, authorizedCertificatesId string) *AppsAuthorizedCertificatesDeleteCall {
4309 c := &AppsAuthorizedCertificatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4310 c.appsId = appsId
4311 c.authorizedCertificatesId = authorizedCertificatesId
4312 return c
4313 }
4314
4315
4316
4317
4318 func (c *AppsAuthorizedCertificatesDeleteCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesDeleteCall {
4319 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4320 return c
4321 }
4322
4323
4324 func (c *AppsAuthorizedCertificatesDeleteCall) Context(ctx context.Context) *AppsAuthorizedCertificatesDeleteCall {
4325 c.ctx_ = ctx
4326 return c
4327 }
4328
4329
4330
4331 func (c *AppsAuthorizedCertificatesDeleteCall) Header() http.Header {
4332 if c.header_ == nil {
4333 c.header_ = make(http.Header)
4334 }
4335 return c.header_
4336 }
4337
4338 func (c *AppsAuthorizedCertificatesDeleteCall) doRequest(alt string) (*http.Response, error) {
4339 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4340 var body io.Reader = nil
4341 c.urlParams_.Set("alt", alt)
4342 c.urlParams_.Set("prettyPrint", "false")
4343 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
4344 urls += "?" + c.urlParams_.Encode()
4345 req, err := http.NewRequest("DELETE", urls, body)
4346 if err != nil {
4347 return nil, err
4348 }
4349 req.Header = reqHeaders
4350 googleapi.Expand(req.URL, map[string]string{
4351 "appsId": c.appsId,
4352 "authorizedCertificatesId": c.authorizedCertificatesId,
4353 })
4354 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4355 }
4356
4357
4358
4359
4360
4361
4362 func (c *AppsAuthorizedCertificatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
4363 gensupport.SetOptions(c.urlParams_, opts...)
4364 res, err := c.doRequest("json")
4365 if res != nil && res.StatusCode == http.StatusNotModified {
4366 if res.Body != nil {
4367 res.Body.Close()
4368 }
4369 return nil, gensupport.WrapError(&googleapi.Error{
4370 Code: res.StatusCode,
4371 Header: res.Header,
4372 })
4373 }
4374 if err != nil {
4375 return nil, err
4376 }
4377 defer googleapi.CloseBody(res)
4378 if err := googleapi.CheckResponse(res); err != nil {
4379 return nil, gensupport.WrapError(err)
4380 }
4381 ret := &Empty{
4382 ServerResponse: googleapi.ServerResponse{
4383 Header: res.Header,
4384 HTTPStatusCode: res.StatusCode,
4385 },
4386 }
4387 target := &ret
4388 if err := gensupport.DecodeResponse(target, res); err != nil {
4389 return nil, err
4390 }
4391 return ret, nil
4392 }
4393
4394 type AppsAuthorizedCertificatesGetCall struct {
4395 s *APIService
4396 appsId string
4397 authorizedCertificatesId string
4398 urlParams_ gensupport.URLParams
4399 ifNoneMatch_ string
4400 ctx_ context.Context
4401 header_ http.Header
4402 }
4403
4404
4405
4406
4407
4408
4409 func (r *AppsAuthorizedCertificatesService) Get(appsId string, authorizedCertificatesId string) *AppsAuthorizedCertificatesGetCall {
4410 c := &AppsAuthorizedCertificatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4411 c.appsId = appsId
4412 c.authorizedCertificatesId = authorizedCertificatesId
4413 return c
4414 }
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428 func (c *AppsAuthorizedCertificatesGetCall) View(view string) *AppsAuthorizedCertificatesGetCall {
4429 c.urlParams_.Set("view", view)
4430 return c
4431 }
4432
4433
4434
4435
4436 func (c *AppsAuthorizedCertificatesGetCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesGetCall {
4437 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4438 return c
4439 }
4440
4441
4442
4443
4444 func (c *AppsAuthorizedCertificatesGetCall) IfNoneMatch(entityTag string) *AppsAuthorizedCertificatesGetCall {
4445 c.ifNoneMatch_ = entityTag
4446 return c
4447 }
4448
4449
4450 func (c *AppsAuthorizedCertificatesGetCall) Context(ctx context.Context) *AppsAuthorizedCertificatesGetCall {
4451 c.ctx_ = ctx
4452 return c
4453 }
4454
4455
4456
4457 func (c *AppsAuthorizedCertificatesGetCall) Header() http.Header {
4458 if c.header_ == nil {
4459 c.header_ = make(http.Header)
4460 }
4461 return c.header_
4462 }
4463
4464 func (c *AppsAuthorizedCertificatesGetCall) doRequest(alt string) (*http.Response, error) {
4465 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4466 if c.ifNoneMatch_ != "" {
4467 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4468 }
4469 var body io.Reader = nil
4470 c.urlParams_.Set("alt", alt)
4471 c.urlParams_.Set("prettyPrint", "false")
4472 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
4473 urls += "?" + c.urlParams_.Encode()
4474 req, err := http.NewRequest("GET", urls, body)
4475 if err != nil {
4476 return nil, err
4477 }
4478 req.Header = reqHeaders
4479 googleapi.Expand(req.URL, map[string]string{
4480 "appsId": c.appsId,
4481 "authorizedCertificatesId": c.authorizedCertificatesId,
4482 })
4483 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4484 }
4485
4486
4487
4488
4489
4490
4491
4492 func (c *AppsAuthorizedCertificatesGetCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
4493 gensupport.SetOptions(c.urlParams_, opts...)
4494 res, err := c.doRequest("json")
4495 if res != nil && res.StatusCode == http.StatusNotModified {
4496 if res.Body != nil {
4497 res.Body.Close()
4498 }
4499 return nil, gensupport.WrapError(&googleapi.Error{
4500 Code: res.StatusCode,
4501 Header: res.Header,
4502 })
4503 }
4504 if err != nil {
4505 return nil, err
4506 }
4507 defer googleapi.CloseBody(res)
4508 if err := googleapi.CheckResponse(res); err != nil {
4509 return nil, gensupport.WrapError(err)
4510 }
4511 ret := &AuthorizedCertificate{
4512 ServerResponse: googleapi.ServerResponse{
4513 Header: res.Header,
4514 HTTPStatusCode: res.StatusCode,
4515 },
4516 }
4517 target := &ret
4518 if err := gensupport.DecodeResponse(target, res); err != nil {
4519 return nil, err
4520 }
4521 return ret, nil
4522 }
4523
4524 type AppsAuthorizedCertificatesListCall struct {
4525 s *APIService
4526 appsId string
4527 urlParams_ gensupport.URLParams
4528 ifNoneMatch_ string
4529 ctx_ context.Context
4530 header_ http.Header
4531 }
4532
4533
4534
4535
4536
4537 func (r *AppsAuthorizedCertificatesService) List(appsId string) *AppsAuthorizedCertificatesListCall {
4538 c := &AppsAuthorizedCertificatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4539 c.appsId = appsId
4540 return c
4541 }
4542
4543
4544
4545 func (c *AppsAuthorizedCertificatesListCall) PageSize(pageSize int64) *AppsAuthorizedCertificatesListCall {
4546 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4547 return c
4548 }
4549
4550
4551
4552 func (c *AppsAuthorizedCertificatesListCall) PageToken(pageToken string) *AppsAuthorizedCertificatesListCall {
4553 c.urlParams_.Set("pageToken", pageToken)
4554 return c
4555 }
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 func (c *AppsAuthorizedCertificatesListCall) View(view string) *AppsAuthorizedCertificatesListCall {
4570 c.urlParams_.Set("view", view)
4571 return c
4572 }
4573
4574
4575
4576
4577 func (c *AppsAuthorizedCertificatesListCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesListCall {
4578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4579 return c
4580 }
4581
4582
4583
4584
4585 func (c *AppsAuthorizedCertificatesListCall) IfNoneMatch(entityTag string) *AppsAuthorizedCertificatesListCall {
4586 c.ifNoneMatch_ = entityTag
4587 return c
4588 }
4589
4590
4591 func (c *AppsAuthorizedCertificatesListCall) Context(ctx context.Context) *AppsAuthorizedCertificatesListCall {
4592 c.ctx_ = ctx
4593 return c
4594 }
4595
4596
4597
4598 func (c *AppsAuthorizedCertificatesListCall) Header() http.Header {
4599 if c.header_ == nil {
4600 c.header_ = make(http.Header)
4601 }
4602 return c.header_
4603 }
4604
4605 func (c *AppsAuthorizedCertificatesListCall) doRequest(alt string) (*http.Response, error) {
4606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4607 if c.ifNoneMatch_ != "" {
4608 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4609 }
4610 var body io.Reader = nil
4611 c.urlParams_.Set("alt", alt)
4612 c.urlParams_.Set("prettyPrint", "false")
4613 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/authorizedCertificates")
4614 urls += "?" + c.urlParams_.Encode()
4615 req, err := http.NewRequest("GET", urls, body)
4616 if err != nil {
4617 return nil, err
4618 }
4619 req.Header = reqHeaders
4620 googleapi.Expand(req.URL, map[string]string{
4621 "appsId": c.appsId,
4622 })
4623 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4624 }
4625
4626
4627
4628
4629
4630
4631
4632 func (c *AppsAuthorizedCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedCertificatesResponse, error) {
4633 gensupport.SetOptions(c.urlParams_, opts...)
4634 res, err := c.doRequest("json")
4635 if res != nil && res.StatusCode == http.StatusNotModified {
4636 if res.Body != nil {
4637 res.Body.Close()
4638 }
4639 return nil, gensupport.WrapError(&googleapi.Error{
4640 Code: res.StatusCode,
4641 Header: res.Header,
4642 })
4643 }
4644 if err != nil {
4645 return nil, err
4646 }
4647 defer googleapi.CloseBody(res)
4648 if err := googleapi.CheckResponse(res); err != nil {
4649 return nil, gensupport.WrapError(err)
4650 }
4651 ret := &ListAuthorizedCertificatesResponse{
4652 ServerResponse: googleapi.ServerResponse{
4653 Header: res.Header,
4654 HTTPStatusCode: res.StatusCode,
4655 },
4656 }
4657 target := &ret
4658 if err := gensupport.DecodeResponse(target, res); err != nil {
4659 return nil, err
4660 }
4661 return ret, nil
4662 }
4663
4664
4665
4666
4667 func (c *AppsAuthorizedCertificatesListCall) Pages(ctx context.Context, f func(*ListAuthorizedCertificatesResponse) error) error {
4668 c.ctx_ = ctx
4669 defer c.PageToken(c.urlParams_.Get("pageToken"))
4670 for {
4671 x, err := c.Do()
4672 if err != nil {
4673 return err
4674 }
4675 if err := f(x); err != nil {
4676 return err
4677 }
4678 if x.NextPageToken == "" {
4679 return nil
4680 }
4681 c.PageToken(x.NextPageToken)
4682 }
4683 }
4684
4685 type AppsAuthorizedCertificatesPatchCall struct {
4686 s *APIService
4687 appsId string
4688 authorizedCertificatesId string
4689 authorizedcertificate *AuthorizedCertificate
4690 urlParams_ gensupport.URLParams
4691 ctx_ context.Context
4692 header_ http.Header
4693 }
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703 func (r *AppsAuthorizedCertificatesService) Patch(appsId string, authorizedCertificatesId string, authorizedcertificate *AuthorizedCertificate) *AppsAuthorizedCertificatesPatchCall {
4704 c := &AppsAuthorizedCertificatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4705 c.appsId = appsId
4706 c.authorizedCertificatesId = authorizedCertificatesId
4707 c.authorizedcertificate = authorizedcertificate
4708 return c
4709 }
4710
4711
4712
4713
4714 func (c *AppsAuthorizedCertificatesPatchCall) UpdateMask(updateMask string) *AppsAuthorizedCertificatesPatchCall {
4715 c.urlParams_.Set("updateMask", updateMask)
4716 return c
4717 }
4718
4719
4720
4721
4722 func (c *AppsAuthorizedCertificatesPatchCall) Fields(s ...googleapi.Field) *AppsAuthorizedCertificatesPatchCall {
4723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4724 return c
4725 }
4726
4727
4728 func (c *AppsAuthorizedCertificatesPatchCall) Context(ctx context.Context) *AppsAuthorizedCertificatesPatchCall {
4729 c.ctx_ = ctx
4730 return c
4731 }
4732
4733
4734
4735 func (c *AppsAuthorizedCertificatesPatchCall) Header() http.Header {
4736 if c.header_ == nil {
4737 c.header_ = make(http.Header)
4738 }
4739 return c.header_
4740 }
4741
4742 func (c *AppsAuthorizedCertificatesPatchCall) doRequest(alt string) (*http.Response, error) {
4743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4744 var body io.Reader = nil
4745 body, err := googleapi.WithoutDataWrapper.JSONReader(c.authorizedcertificate)
4746 if err != nil {
4747 return nil, err
4748 }
4749 c.urlParams_.Set("alt", alt)
4750 c.urlParams_.Set("prettyPrint", "false")
4751 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}")
4752 urls += "?" + c.urlParams_.Encode()
4753 req, err := http.NewRequest("PATCH", urls, body)
4754 if err != nil {
4755 return nil, err
4756 }
4757 req.Header = reqHeaders
4758 googleapi.Expand(req.URL, map[string]string{
4759 "appsId": c.appsId,
4760 "authorizedCertificatesId": c.authorizedCertificatesId,
4761 })
4762 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4763 }
4764
4765
4766
4767
4768
4769
4770
4771 func (c *AppsAuthorizedCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*AuthorizedCertificate, error) {
4772 gensupport.SetOptions(c.urlParams_, opts...)
4773 res, err := c.doRequest("json")
4774 if res != nil && res.StatusCode == http.StatusNotModified {
4775 if res.Body != nil {
4776 res.Body.Close()
4777 }
4778 return nil, gensupport.WrapError(&googleapi.Error{
4779 Code: res.StatusCode,
4780 Header: res.Header,
4781 })
4782 }
4783 if err != nil {
4784 return nil, err
4785 }
4786 defer googleapi.CloseBody(res)
4787 if err := googleapi.CheckResponse(res); err != nil {
4788 return nil, gensupport.WrapError(err)
4789 }
4790 ret := &AuthorizedCertificate{
4791 ServerResponse: googleapi.ServerResponse{
4792 Header: res.Header,
4793 HTTPStatusCode: res.StatusCode,
4794 },
4795 }
4796 target := &ret
4797 if err := gensupport.DecodeResponse(target, res); err != nil {
4798 return nil, err
4799 }
4800 return ret, nil
4801 }
4802
4803 type AppsAuthorizedDomainsListCall struct {
4804 s *APIService
4805 appsId string
4806 urlParams_ gensupport.URLParams
4807 ifNoneMatch_ string
4808 ctx_ context.Context
4809 header_ http.Header
4810 }
4811
4812
4813
4814
4815
4816 func (r *AppsAuthorizedDomainsService) List(appsId string) *AppsAuthorizedDomainsListCall {
4817 c := &AppsAuthorizedDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4818 c.appsId = appsId
4819 return c
4820 }
4821
4822
4823
4824 func (c *AppsAuthorizedDomainsListCall) PageSize(pageSize int64) *AppsAuthorizedDomainsListCall {
4825 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4826 return c
4827 }
4828
4829
4830
4831 func (c *AppsAuthorizedDomainsListCall) PageToken(pageToken string) *AppsAuthorizedDomainsListCall {
4832 c.urlParams_.Set("pageToken", pageToken)
4833 return c
4834 }
4835
4836
4837
4838
4839 func (c *AppsAuthorizedDomainsListCall) Fields(s ...googleapi.Field) *AppsAuthorizedDomainsListCall {
4840 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4841 return c
4842 }
4843
4844
4845
4846
4847 func (c *AppsAuthorizedDomainsListCall) IfNoneMatch(entityTag string) *AppsAuthorizedDomainsListCall {
4848 c.ifNoneMatch_ = entityTag
4849 return c
4850 }
4851
4852
4853 func (c *AppsAuthorizedDomainsListCall) Context(ctx context.Context) *AppsAuthorizedDomainsListCall {
4854 c.ctx_ = ctx
4855 return c
4856 }
4857
4858
4859
4860 func (c *AppsAuthorizedDomainsListCall) Header() http.Header {
4861 if c.header_ == nil {
4862 c.header_ = make(http.Header)
4863 }
4864 return c.header_
4865 }
4866
4867 func (c *AppsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) {
4868 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4869 if c.ifNoneMatch_ != "" {
4870 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4871 }
4872 var body io.Reader = nil
4873 c.urlParams_.Set("alt", alt)
4874 c.urlParams_.Set("prettyPrint", "false")
4875 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/authorizedDomains")
4876 urls += "?" + c.urlParams_.Encode()
4877 req, err := http.NewRequest("GET", urls, body)
4878 if err != nil {
4879 return nil, err
4880 }
4881 req.Header = reqHeaders
4882 googleapi.Expand(req.URL, map[string]string{
4883 "appsId": c.appsId,
4884 })
4885 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4886 }
4887
4888
4889
4890
4891
4892
4893
4894 func (c *AppsAuthorizedDomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
4895 gensupport.SetOptions(c.urlParams_, opts...)
4896 res, err := c.doRequest("json")
4897 if res != nil && res.StatusCode == http.StatusNotModified {
4898 if res.Body != nil {
4899 res.Body.Close()
4900 }
4901 return nil, gensupport.WrapError(&googleapi.Error{
4902 Code: res.StatusCode,
4903 Header: res.Header,
4904 })
4905 }
4906 if err != nil {
4907 return nil, err
4908 }
4909 defer googleapi.CloseBody(res)
4910 if err := googleapi.CheckResponse(res); err != nil {
4911 return nil, gensupport.WrapError(err)
4912 }
4913 ret := &ListAuthorizedDomainsResponse{
4914 ServerResponse: googleapi.ServerResponse{
4915 Header: res.Header,
4916 HTTPStatusCode: res.StatusCode,
4917 },
4918 }
4919 target := &ret
4920 if err := gensupport.DecodeResponse(target, res); err != nil {
4921 return nil, err
4922 }
4923 return ret, nil
4924 }
4925
4926
4927
4928
4929 func (c *AppsAuthorizedDomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
4930 c.ctx_ = ctx
4931 defer c.PageToken(c.urlParams_.Get("pageToken"))
4932 for {
4933 x, err := c.Do()
4934 if err != nil {
4935 return err
4936 }
4937 if err := f(x); err != nil {
4938 return err
4939 }
4940 if x.NextPageToken == "" {
4941 return nil
4942 }
4943 c.PageToken(x.NextPageToken)
4944 }
4945 }
4946
4947 type AppsDomainMappingsCreateCall struct {
4948 s *APIService
4949 appsId string
4950 domainmapping *DomainMapping
4951 urlParams_ gensupport.URLParams
4952 ctx_ context.Context
4953 header_ http.Header
4954 }
4955
4956
4957
4958
4959
4960
4961
4962 func (r *AppsDomainMappingsService) Create(appsId string, domainmapping *DomainMapping) *AppsDomainMappingsCreateCall {
4963 c := &AppsDomainMappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4964 c.appsId = appsId
4965 c.domainmapping = domainmapping
4966 return c
4967 }
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 func (c *AppsDomainMappingsCreateCall) OverrideStrategy(overrideStrategy string) *AppsDomainMappingsCreateCall {
4990 c.urlParams_.Set("overrideStrategy", overrideStrategy)
4991 return c
4992 }
4993
4994
4995
4996
4997 func (c *AppsDomainMappingsCreateCall) Fields(s ...googleapi.Field) *AppsDomainMappingsCreateCall {
4998 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4999 return c
5000 }
5001
5002
5003 func (c *AppsDomainMappingsCreateCall) Context(ctx context.Context) *AppsDomainMappingsCreateCall {
5004 c.ctx_ = ctx
5005 return c
5006 }
5007
5008
5009
5010 func (c *AppsDomainMappingsCreateCall) Header() http.Header {
5011 if c.header_ == nil {
5012 c.header_ = make(http.Header)
5013 }
5014 return c.header_
5015 }
5016
5017 func (c *AppsDomainMappingsCreateCall) doRequest(alt string) (*http.Response, error) {
5018 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5019 var body io.Reader = nil
5020 body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
5021 if err != nil {
5022 return nil, err
5023 }
5024 c.urlParams_.Set("alt", alt)
5025 c.urlParams_.Set("prettyPrint", "false")
5026 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/domainMappings")
5027 urls += "?" + c.urlParams_.Encode()
5028 req, err := http.NewRequest("POST", urls, body)
5029 if err != nil {
5030 return nil, err
5031 }
5032 req.Header = reqHeaders
5033 googleapi.Expand(req.URL, map[string]string{
5034 "appsId": c.appsId,
5035 })
5036 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5037 }
5038
5039
5040
5041
5042
5043
5044 func (c *AppsDomainMappingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5045 gensupport.SetOptions(c.urlParams_, opts...)
5046 res, err := c.doRequest("json")
5047 if res != nil && res.StatusCode == http.StatusNotModified {
5048 if res.Body != nil {
5049 res.Body.Close()
5050 }
5051 return nil, gensupport.WrapError(&googleapi.Error{
5052 Code: res.StatusCode,
5053 Header: res.Header,
5054 })
5055 }
5056 if err != nil {
5057 return nil, err
5058 }
5059 defer googleapi.CloseBody(res)
5060 if err := googleapi.CheckResponse(res); err != nil {
5061 return nil, gensupport.WrapError(err)
5062 }
5063 ret := &Operation{
5064 ServerResponse: googleapi.ServerResponse{
5065 Header: res.Header,
5066 HTTPStatusCode: res.StatusCode,
5067 },
5068 }
5069 target := &ret
5070 if err := gensupport.DecodeResponse(target, res); err != nil {
5071 return nil, err
5072 }
5073 return ret, nil
5074 }
5075
5076 type AppsDomainMappingsDeleteCall struct {
5077 s *APIService
5078 appsId string
5079 domainMappingsId string
5080 urlParams_ gensupport.URLParams
5081 ctx_ context.Context
5082 header_ http.Header
5083 }
5084
5085
5086
5087
5088
5089
5090
5091
5092 func (r *AppsDomainMappingsService) Delete(appsId string, domainMappingsId string) *AppsDomainMappingsDeleteCall {
5093 c := &AppsDomainMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5094 c.appsId = appsId
5095 c.domainMappingsId = domainMappingsId
5096 return c
5097 }
5098
5099
5100
5101
5102 func (c *AppsDomainMappingsDeleteCall) Fields(s ...googleapi.Field) *AppsDomainMappingsDeleteCall {
5103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5104 return c
5105 }
5106
5107
5108 func (c *AppsDomainMappingsDeleteCall) Context(ctx context.Context) *AppsDomainMappingsDeleteCall {
5109 c.ctx_ = ctx
5110 return c
5111 }
5112
5113
5114
5115 func (c *AppsDomainMappingsDeleteCall) Header() http.Header {
5116 if c.header_ == nil {
5117 c.header_ = make(http.Header)
5118 }
5119 return c.header_
5120 }
5121
5122 func (c *AppsDomainMappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
5123 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5124 var body io.Reader = nil
5125 c.urlParams_.Set("alt", alt)
5126 c.urlParams_.Set("prettyPrint", "false")
5127 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/domainMappings/{domainMappingsId}")
5128 urls += "?" + c.urlParams_.Encode()
5129 req, err := http.NewRequest("DELETE", urls, body)
5130 if err != nil {
5131 return nil, err
5132 }
5133 req.Header = reqHeaders
5134 googleapi.Expand(req.URL, map[string]string{
5135 "appsId": c.appsId,
5136 "domainMappingsId": c.domainMappingsId,
5137 })
5138 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5139 }
5140
5141
5142
5143
5144
5145
5146 func (c *AppsDomainMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5147 gensupport.SetOptions(c.urlParams_, opts...)
5148 res, err := c.doRequest("json")
5149 if res != nil && res.StatusCode == http.StatusNotModified {
5150 if res.Body != nil {
5151 res.Body.Close()
5152 }
5153 return nil, gensupport.WrapError(&googleapi.Error{
5154 Code: res.StatusCode,
5155 Header: res.Header,
5156 })
5157 }
5158 if err != nil {
5159 return nil, err
5160 }
5161 defer googleapi.CloseBody(res)
5162 if err := googleapi.CheckResponse(res); err != nil {
5163 return nil, gensupport.WrapError(err)
5164 }
5165 ret := &Operation{
5166 ServerResponse: googleapi.ServerResponse{
5167 Header: res.Header,
5168 HTTPStatusCode: res.StatusCode,
5169 },
5170 }
5171 target := &ret
5172 if err := gensupport.DecodeResponse(target, res); err != nil {
5173 return nil, err
5174 }
5175 return ret, nil
5176 }
5177
5178 type AppsDomainMappingsGetCall struct {
5179 s *APIService
5180 appsId string
5181 domainMappingsId string
5182 urlParams_ gensupport.URLParams
5183 ifNoneMatch_ string
5184 ctx_ context.Context
5185 header_ http.Header
5186 }
5187
5188
5189
5190
5191
5192
5193 func (r *AppsDomainMappingsService) Get(appsId string, domainMappingsId string) *AppsDomainMappingsGetCall {
5194 c := &AppsDomainMappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5195 c.appsId = appsId
5196 c.domainMappingsId = domainMappingsId
5197 return c
5198 }
5199
5200
5201
5202
5203 func (c *AppsDomainMappingsGetCall) Fields(s ...googleapi.Field) *AppsDomainMappingsGetCall {
5204 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5205 return c
5206 }
5207
5208
5209
5210
5211 func (c *AppsDomainMappingsGetCall) IfNoneMatch(entityTag string) *AppsDomainMappingsGetCall {
5212 c.ifNoneMatch_ = entityTag
5213 return c
5214 }
5215
5216
5217 func (c *AppsDomainMappingsGetCall) Context(ctx context.Context) *AppsDomainMappingsGetCall {
5218 c.ctx_ = ctx
5219 return c
5220 }
5221
5222
5223
5224 func (c *AppsDomainMappingsGetCall) Header() http.Header {
5225 if c.header_ == nil {
5226 c.header_ = make(http.Header)
5227 }
5228 return c.header_
5229 }
5230
5231 func (c *AppsDomainMappingsGetCall) doRequest(alt string) (*http.Response, error) {
5232 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5233 if c.ifNoneMatch_ != "" {
5234 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5235 }
5236 var body io.Reader = nil
5237 c.urlParams_.Set("alt", alt)
5238 c.urlParams_.Set("prettyPrint", "false")
5239 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/domainMappings/{domainMappingsId}")
5240 urls += "?" + c.urlParams_.Encode()
5241 req, err := http.NewRequest("GET", urls, body)
5242 if err != nil {
5243 return nil, err
5244 }
5245 req.Header = reqHeaders
5246 googleapi.Expand(req.URL, map[string]string{
5247 "appsId": c.appsId,
5248 "domainMappingsId": c.domainMappingsId,
5249 })
5250 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5251 }
5252
5253
5254
5255
5256
5257
5258 func (c *AppsDomainMappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
5259 gensupport.SetOptions(c.urlParams_, opts...)
5260 res, err := c.doRequest("json")
5261 if res != nil && res.StatusCode == http.StatusNotModified {
5262 if res.Body != nil {
5263 res.Body.Close()
5264 }
5265 return nil, gensupport.WrapError(&googleapi.Error{
5266 Code: res.StatusCode,
5267 Header: res.Header,
5268 })
5269 }
5270 if err != nil {
5271 return nil, err
5272 }
5273 defer googleapi.CloseBody(res)
5274 if err := googleapi.CheckResponse(res); err != nil {
5275 return nil, gensupport.WrapError(err)
5276 }
5277 ret := &DomainMapping{
5278 ServerResponse: googleapi.ServerResponse{
5279 Header: res.Header,
5280 HTTPStatusCode: res.StatusCode,
5281 },
5282 }
5283 target := &ret
5284 if err := gensupport.DecodeResponse(target, res); err != nil {
5285 return nil, err
5286 }
5287 return ret, nil
5288 }
5289
5290 type AppsDomainMappingsListCall struct {
5291 s *APIService
5292 appsId string
5293 urlParams_ gensupport.URLParams
5294 ifNoneMatch_ string
5295 ctx_ context.Context
5296 header_ http.Header
5297 }
5298
5299
5300
5301
5302
5303 func (r *AppsDomainMappingsService) List(appsId string) *AppsDomainMappingsListCall {
5304 c := &AppsDomainMappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5305 c.appsId = appsId
5306 return c
5307 }
5308
5309
5310
5311 func (c *AppsDomainMappingsListCall) PageSize(pageSize int64) *AppsDomainMappingsListCall {
5312 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5313 return c
5314 }
5315
5316
5317
5318 func (c *AppsDomainMappingsListCall) PageToken(pageToken string) *AppsDomainMappingsListCall {
5319 c.urlParams_.Set("pageToken", pageToken)
5320 return c
5321 }
5322
5323
5324
5325
5326 func (c *AppsDomainMappingsListCall) Fields(s ...googleapi.Field) *AppsDomainMappingsListCall {
5327 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5328 return c
5329 }
5330
5331
5332
5333
5334 func (c *AppsDomainMappingsListCall) IfNoneMatch(entityTag string) *AppsDomainMappingsListCall {
5335 c.ifNoneMatch_ = entityTag
5336 return c
5337 }
5338
5339
5340 func (c *AppsDomainMappingsListCall) Context(ctx context.Context) *AppsDomainMappingsListCall {
5341 c.ctx_ = ctx
5342 return c
5343 }
5344
5345
5346
5347 func (c *AppsDomainMappingsListCall) Header() http.Header {
5348 if c.header_ == nil {
5349 c.header_ = make(http.Header)
5350 }
5351 return c.header_
5352 }
5353
5354 func (c *AppsDomainMappingsListCall) doRequest(alt string) (*http.Response, error) {
5355 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5356 if c.ifNoneMatch_ != "" {
5357 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5358 }
5359 var body io.Reader = nil
5360 c.urlParams_.Set("alt", alt)
5361 c.urlParams_.Set("prettyPrint", "false")
5362 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/domainMappings")
5363 urls += "?" + c.urlParams_.Encode()
5364 req, err := http.NewRequest("GET", urls, body)
5365 if err != nil {
5366 return nil, err
5367 }
5368 req.Header = reqHeaders
5369 googleapi.Expand(req.URL, map[string]string{
5370 "appsId": c.appsId,
5371 })
5372 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5373 }
5374
5375
5376
5377
5378
5379
5380
5381 func (c *AppsDomainMappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
5382 gensupport.SetOptions(c.urlParams_, opts...)
5383 res, err := c.doRequest("json")
5384 if res != nil && res.StatusCode == http.StatusNotModified {
5385 if res.Body != nil {
5386 res.Body.Close()
5387 }
5388 return nil, gensupport.WrapError(&googleapi.Error{
5389 Code: res.StatusCode,
5390 Header: res.Header,
5391 })
5392 }
5393 if err != nil {
5394 return nil, err
5395 }
5396 defer googleapi.CloseBody(res)
5397 if err := googleapi.CheckResponse(res); err != nil {
5398 return nil, gensupport.WrapError(err)
5399 }
5400 ret := &ListDomainMappingsResponse{
5401 ServerResponse: googleapi.ServerResponse{
5402 Header: res.Header,
5403 HTTPStatusCode: res.StatusCode,
5404 },
5405 }
5406 target := &ret
5407 if err := gensupport.DecodeResponse(target, res); err != nil {
5408 return nil, err
5409 }
5410 return ret, nil
5411 }
5412
5413
5414
5415
5416 func (c *AppsDomainMappingsListCall) Pages(ctx context.Context, f func(*ListDomainMappingsResponse) error) error {
5417 c.ctx_ = ctx
5418 defer c.PageToken(c.urlParams_.Get("pageToken"))
5419 for {
5420 x, err := c.Do()
5421 if err != nil {
5422 return err
5423 }
5424 if err := f(x); err != nil {
5425 return err
5426 }
5427 if x.NextPageToken == "" {
5428 return nil
5429 }
5430 c.PageToken(x.NextPageToken)
5431 }
5432 }
5433
5434 type AppsDomainMappingsPatchCall struct {
5435 s *APIService
5436 appsId string
5437 domainMappingsId string
5438 domainmapping *DomainMapping
5439 urlParams_ gensupport.URLParams
5440 ctx_ context.Context
5441 header_ http.Header
5442 }
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 func (r *AppsDomainMappingsService) Patch(appsId string, domainMappingsId string, domainmapping *DomainMapping) *AppsDomainMappingsPatchCall {
5453 c := &AppsDomainMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5454 c.appsId = appsId
5455 c.domainMappingsId = domainMappingsId
5456 c.domainmapping = domainmapping
5457 return c
5458 }
5459
5460
5461
5462 func (c *AppsDomainMappingsPatchCall) UpdateMask(updateMask string) *AppsDomainMappingsPatchCall {
5463 c.urlParams_.Set("updateMask", updateMask)
5464 return c
5465 }
5466
5467
5468
5469
5470 func (c *AppsDomainMappingsPatchCall) Fields(s ...googleapi.Field) *AppsDomainMappingsPatchCall {
5471 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5472 return c
5473 }
5474
5475
5476 func (c *AppsDomainMappingsPatchCall) Context(ctx context.Context) *AppsDomainMappingsPatchCall {
5477 c.ctx_ = ctx
5478 return c
5479 }
5480
5481
5482
5483 func (c *AppsDomainMappingsPatchCall) Header() http.Header {
5484 if c.header_ == nil {
5485 c.header_ = make(http.Header)
5486 }
5487 return c.header_
5488 }
5489
5490 func (c *AppsDomainMappingsPatchCall) doRequest(alt string) (*http.Response, error) {
5491 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5492 var body io.Reader = nil
5493 body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
5494 if err != nil {
5495 return nil, err
5496 }
5497 c.urlParams_.Set("alt", alt)
5498 c.urlParams_.Set("prettyPrint", "false")
5499 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/domainMappings/{domainMappingsId}")
5500 urls += "?" + c.urlParams_.Encode()
5501 req, err := http.NewRequest("PATCH", urls, body)
5502 if err != nil {
5503 return nil, err
5504 }
5505 req.Header = reqHeaders
5506 googleapi.Expand(req.URL, map[string]string{
5507 "appsId": c.appsId,
5508 "domainMappingsId": c.domainMappingsId,
5509 })
5510 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5511 }
5512
5513
5514
5515
5516
5517
5518 func (c *AppsDomainMappingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5519 gensupport.SetOptions(c.urlParams_, opts...)
5520 res, err := c.doRequest("json")
5521 if res != nil && res.StatusCode == http.StatusNotModified {
5522 if res.Body != nil {
5523 res.Body.Close()
5524 }
5525 return nil, gensupport.WrapError(&googleapi.Error{
5526 Code: res.StatusCode,
5527 Header: res.Header,
5528 })
5529 }
5530 if err != nil {
5531 return nil, err
5532 }
5533 defer googleapi.CloseBody(res)
5534 if err := googleapi.CheckResponse(res); err != nil {
5535 return nil, gensupport.WrapError(err)
5536 }
5537 ret := &Operation{
5538 ServerResponse: googleapi.ServerResponse{
5539 Header: res.Header,
5540 HTTPStatusCode: res.StatusCode,
5541 },
5542 }
5543 target := &ret
5544 if err := gensupport.DecodeResponse(target, res); err != nil {
5545 return nil, err
5546 }
5547 return ret, nil
5548 }
5549
5550 type AppsFirewallIngressRulesBatchUpdateCall struct {
5551 s *APIService
5552 appsId string
5553 batchupdateingressrulesrequest *BatchUpdateIngressRulesRequest
5554 urlParams_ gensupport.URLParams
5555 ctx_ context.Context
5556 header_ http.Header
5557 }
5558
5559
5560
5561
5562
5563
5564
5565
5566 func (r *AppsFirewallIngressRulesService) BatchUpdate(appsId string, batchupdateingressrulesrequest *BatchUpdateIngressRulesRequest) *AppsFirewallIngressRulesBatchUpdateCall {
5567 c := &AppsFirewallIngressRulesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5568 c.appsId = appsId
5569 c.batchupdateingressrulesrequest = batchupdateingressrulesrequest
5570 return c
5571 }
5572
5573
5574
5575
5576 func (c *AppsFirewallIngressRulesBatchUpdateCall) Fields(s ...googleapi.Field) *AppsFirewallIngressRulesBatchUpdateCall {
5577 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5578 return c
5579 }
5580
5581
5582 func (c *AppsFirewallIngressRulesBatchUpdateCall) Context(ctx context.Context) *AppsFirewallIngressRulesBatchUpdateCall {
5583 c.ctx_ = ctx
5584 return c
5585 }
5586
5587
5588
5589 func (c *AppsFirewallIngressRulesBatchUpdateCall) Header() http.Header {
5590 if c.header_ == nil {
5591 c.header_ = make(http.Header)
5592 }
5593 return c.header_
5594 }
5595
5596 func (c *AppsFirewallIngressRulesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
5597 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5598 var body io.Reader = nil
5599 body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdateingressrulesrequest)
5600 if err != nil {
5601 return nil, err
5602 }
5603 c.urlParams_.Set("alt", alt)
5604 c.urlParams_.Set("prettyPrint", "false")
5605 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate")
5606 urls += "?" + c.urlParams_.Encode()
5607 req, err := http.NewRequest("POST", urls, body)
5608 if err != nil {
5609 return nil, err
5610 }
5611 req.Header = reqHeaders
5612 googleapi.Expand(req.URL, map[string]string{
5613 "appsId": c.appsId,
5614 })
5615 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5616 }
5617
5618
5619
5620
5621
5622
5623
5624 func (c *AppsFirewallIngressRulesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateIngressRulesResponse, error) {
5625 gensupport.SetOptions(c.urlParams_, opts...)
5626 res, err := c.doRequest("json")
5627 if res != nil && res.StatusCode == http.StatusNotModified {
5628 if res.Body != nil {
5629 res.Body.Close()
5630 }
5631 return nil, gensupport.WrapError(&googleapi.Error{
5632 Code: res.StatusCode,
5633 Header: res.Header,
5634 })
5635 }
5636 if err != nil {
5637 return nil, err
5638 }
5639 defer googleapi.CloseBody(res)
5640 if err := googleapi.CheckResponse(res); err != nil {
5641 return nil, gensupport.WrapError(err)
5642 }
5643 ret := &BatchUpdateIngressRulesResponse{
5644 ServerResponse: googleapi.ServerResponse{
5645 Header: res.Header,
5646 HTTPStatusCode: res.StatusCode,
5647 },
5648 }
5649 target := &ret
5650 if err := gensupport.DecodeResponse(target, res); err != nil {
5651 return nil, err
5652 }
5653 return ret, nil
5654 }
5655
5656 type AppsFirewallIngressRulesCreateCall struct {
5657 s *APIService
5658 appsId string
5659 firewallrule *FirewallRule
5660 urlParams_ gensupport.URLParams
5661 ctx_ context.Context
5662 header_ http.Header
5663 }
5664
5665
5666
5667
5668
5669 func (r *AppsFirewallIngressRulesService) Create(appsId string, firewallrule *FirewallRule) *AppsFirewallIngressRulesCreateCall {
5670 c := &AppsFirewallIngressRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5671 c.appsId = appsId
5672 c.firewallrule = firewallrule
5673 return c
5674 }
5675
5676
5677
5678
5679 func (c *AppsFirewallIngressRulesCreateCall) Fields(s ...googleapi.Field) *AppsFirewallIngressRulesCreateCall {
5680 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5681 return c
5682 }
5683
5684
5685 func (c *AppsFirewallIngressRulesCreateCall) Context(ctx context.Context) *AppsFirewallIngressRulesCreateCall {
5686 c.ctx_ = ctx
5687 return c
5688 }
5689
5690
5691
5692 func (c *AppsFirewallIngressRulesCreateCall) Header() http.Header {
5693 if c.header_ == nil {
5694 c.header_ = make(http.Header)
5695 }
5696 return c.header_
5697 }
5698
5699 func (c *AppsFirewallIngressRulesCreateCall) doRequest(alt string) (*http.Response, error) {
5700 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5701 var body io.Reader = nil
5702 body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewallrule)
5703 if err != nil {
5704 return nil, err
5705 }
5706 c.urlParams_.Set("alt", alt)
5707 c.urlParams_.Set("prettyPrint", "false")
5708 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/firewall/ingressRules")
5709 urls += "?" + c.urlParams_.Encode()
5710 req, err := http.NewRequest("POST", urls, body)
5711 if err != nil {
5712 return nil, err
5713 }
5714 req.Header = reqHeaders
5715 googleapi.Expand(req.URL, map[string]string{
5716 "appsId": c.appsId,
5717 })
5718 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5719 }
5720
5721
5722
5723
5724
5725
5726 func (c *AppsFirewallIngressRulesCreateCall) Do(opts ...googleapi.CallOption) (*FirewallRule, error) {
5727 gensupport.SetOptions(c.urlParams_, opts...)
5728 res, err := c.doRequest("json")
5729 if res != nil && res.StatusCode == http.StatusNotModified {
5730 if res.Body != nil {
5731 res.Body.Close()
5732 }
5733 return nil, gensupport.WrapError(&googleapi.Error{
5734 Code: res.StatusCode,
5735 Header: res.Header,
5736 })
5737 }
5738 if err != nil {
5739 return nil, err
5740 }
5741 defer googleapi.CloseBody(res)
5742 if err := googleapi.CheckResponse(res); err != nil {
5743 return nil, gensupport.WrapError(err)
5744 }
5745 ret := &FirewallRule{
5746 ServerResponse: googleapi.ServerResponse{
5747 Header: res.Header,
5748 HTTPStatusCode: res.StatusCode,
5749 },
5750 }
5751 target := &ret
5752 if err := gensupport.DecodeResponse(target, res); err != nil {
5753 return nil, err
5754 }
5755 return ret, nil
5756 }
5757
5758 type AppsFirewallIngressRulesDeleteCall struct {
5759 s *APIService
5760 appsId string
5761 ingressRulesId string
5762 urlParams_ gensupport.URLParams
5763 ctx_ context.Context
5764 header_ http.Header
5765 }
5766
5767
5768
5769
5770
5771
5772 func (r *AppsFirewallIngressRulesService) Delete(appsId string, ingressRulesId string) *AppsFirewallIngressRulesDeleteCall {
5773 c := &AppsFirewallIngressRulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5774 c.appsId = appsId
5775 c.ingressRulesId = ingressRulesId
5776 return c
5777 }
5778
5779
5780
5781
5782 func (c *AppsFirewallIngressRulesDeleteCall) Fields(s ...googleapi.Field) *AppsFirewallIngressRulesDeleteCall {
5783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5784 return c
5785 }
5786
5787
5788 func (c *AppsFirewallIngressRulesDeleteCall) Context(ctx context.Context) *AppsFirewallIngressRulesDeleteCall {
5789 c.ctx_ = ctx
5790 return c
5791 }
5792
5793
5794
5795 func (c *AppsFirewallIngressRulesDeleteCall) Header() http.Header {
5796 if c.header_ == nil {
5797 c.header_ = make(http.Header)
5798 }
5799 return c.header_
5800 }
5801
5802 func (c *AppsFirewallIngressRulesDeleteCall) doRequest(alt string) (*http.Response, error) {
5803 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5804 var body io.Reader = nil
5805 c.urlParams_.Set("alt", alt)
5806 c.urlParams_.Set("prettyPrint", "false")
5807 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}")
5808 urls += "?" + c.urlParams_.Encode()
5809 req, err := http.NewRequest("DELETE", urls, body)
5810 if err != nil {
5811 return nil, err
5812 }
5813 req.Header = reqHeaders
5814 googleapi.Expand(req.URL, map[string]string{
5815 "appsId": c.appsId,
5816 "ingressRulesId": c.ingressRulesId,
5817 })
5818 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5819 }
5820
5821
5822
5823
5824
5825
5826 func (c *AppsFirewallIngressRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
5827 gensupport.SetOptions(c.urlParams_, opts...)
5828 res, err := c.doRequest("json")
5829 if res != nil && res.StatusCode == http.StatusNotModified {
5830 if res.Body != nil {
5831 res.Body.Close()
5832 }
5833 return nil, gensupport.WrapError(&googleapi.Error{
5834 Code: res.StatusCode,
5835 Header: res.Header,
5836 })
5837 }
5838 if err != nil {
5839 return nil, err
5840 }
5841 defer googleapi.CloseBody(res)
5842 if err := googleapi.CheckResponse(res); err != nil {
5843 return nil, gensupport.WrapError(err)
5844 }
5845 ret := &Empty{
5846 ServerResponse: googleapi.ServerResponse{
5847 Header: res.Header,
5848 HTTPStatusCode: res.StatusCode,
5849 },
5850 }
5851 target := &ret
5852 if err := gensupport.DecodeResponse(target, res); err != nil {
5853 return nil, err
5854 }
5855 return ret, nil
5856 }
5857
5858 type AppsFirewallIngressRulesGetCall struct {
5859 s *APIService
5860 appsId string
5861 ingressRulesId string
5862 urlParams_ gensupport.URLParams
5863 ifNoneMatch_ string
5864 ctx_ context.Context
5865 header_ http.Header
5866 }
5867
5868
5869
5870
5871
5872
5873 func (r *AppsFirewallIngressRulesService) Get(appsId string, ingressRulesId string) *AppsFirewallIngressRulesGetCall {
5874 c := &AppsFirewallIngressRulesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5875 c.appsId = appsId
5876 c.ingressRulesId = ingressRulesId
5877 return c
5878 }
5879
5880
5881
5882
5883 func (c *AppsFirewallIngressRulesGetCall) Fields(s ...googleapi.Field) *AppsFirewallIngressRulesGetCall {
5884 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5885 return c
5886 }
5887
5888
5889
5890
5891 func (c *AppsFirewallIngressRulesGetCall) IfNoneMatch(entityTag string) *AppsFirewallIngressRulesGetCall {
5892 c.ifNoneMatch_ = entityTag
5893 return c
5894 }
5895
5896
5897 func (c *AppsFirewallIngressRulesGetCall) Context(ctx context.Context) *AppsFirewallIngressRulesGetCall {
5898 c.ctx_ = ctx
5899 return c
5900 }
5901
5902
5903
5904 func (c *AppsFirewallIngressRulesGetCall) Header() http.Header {
5905 if c.header_ == nil {
5906 c.header_ = make(http.Header)
5907 }
5908 return c.header_
5909 }
5910
5911 func (c *AppsFirewallIngressRulesGetCall) doRequest(alt string) (*http.Response, error) {
5912 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5913 if c.ifNoneMatch_ != "" {
5914 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5915 }
5916 var body io.Reader = nil
5917 c.urlParams_.Set("alt", alt)
5918 c.urlParams_.Set("prettyPrint", "false")
5919 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}")
5920 urls += "?" + c.urlParams_.Encode()
5921 req, err := http.NewRequest("GET", urls, body)
5922 if err != nil {
5923 return nil, err
5924 }
5925 req.Header = reqHeaders
5926 googleapi.Expand(req.URL, map[string]string{
5927 "appsId": c.appsId,
5928 "ingressRulesId": c.ingressRulesId,
5929 })
5930 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5931 }
5932
5933
5934
5935
5936
5937
5938 func (c *AppsFirewallIngressRulesGetCall) Do(opts ...googleapi.CallOption) (*FirewallRule, error) {
5939 gensupport.SetOptions(c.urlParams_, opts...)
5940 res, err := c.doRequest("json")
5941 if res != nil && res.StatusCode == http.StatusNotModified {
5942 if res.Body != nil {
5943 res.Body.Close()
5944 }
5945 return nil, gensupport.WrapError(&googleapi.Error{
5946 Code: res.StatusCode,
5947 Header: res.Header,
5948 })
5949 }
5950 if err != nil {
5951 return nil, err
5952 }
5953 defer googleapi.CloseBody(res)
5954 if err := googleapi.CheckResponse(res); err != nil {
5955 return nil, gensupport.WrapError(err)
5956 }
5957 ret := &FirewallRule{
5958 ServerResponse: googleapi.ServerResponse{
5959 Header: res.Header,
5960 HTTPStatusCode: res.StatusCode,
5961 },
5962 }
5963 target := &ret
5964 if err := gensupport.DecodeResponse(target, res); err != nil {
5965 return nil, err
5966 }
5967 return ret, nil
5968 }
5969
5970 type AppsFirewallIngressRulesListCall struct {
5971 s *APIService
5972 appsId string
5973 urlParams_ gensupport.URLParams
5974 ifNoneMatch_ string
5975 ctx_ context.Context
5976 header_ http.Header
5977 }
5978
5979
5980
5981
5982
5983 func (r *AppsFirewallIngressRulesService) List(appsId string) *AppsFirewallIngressRulesListCall {
5984 c := &AppsFirewallIngressRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5985 c.appsId = appsId
5986 return c
5987 }
5988
5989
5990
5991
5992 func (c *AppsFirewallIngressRulesListCall) MatchingAddress(matchingAddress string) *AppsFirewallIngressRulesListCall {
5993 c.urlParams_.Set("matchingAddress", matchingAddress)
5994 return c
5995 }
5996
5997
5998
5999 func (c *AppsFirewallIngressRulesListCall) PageSize(pageSize int64) *AppsFirewallIngressRulesListCall {
6000 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6001 return c
6002 }
6003
6004
6005
6006 func (c *AppsFirewallIngressRulesListCall) PageToken(pageToken string) *AppsFirewallIngressRulesListCall {
6007 c.urlParams_.Set("pageToken", pageToken)
6008 return c
6009 }
6010
6011
6012
6013
6014 func (c *AppsFirewallIngressRulesListCall) Fields(s ...googleapi.Field) *AppsFirewallIngressRulesListCall {
6015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6016 return c
6017 }
6018
6019
6020
6021
6022 func (c *AppsFirewallIngressRulesListCall) IfNoneMatch(entityTag string) *AppsFirewallIngressRulesListCall {
6023 c.ifNoneMatch_ = entityTag
6024 return c
6025 }
6026
6027
6028 func (c *AppsFirewallIngressRulesListCall) Context(ctx context.Context) *AppsFirewallIngressRulesListCall {
6029 c.ctx_ = ctx
6030 return c
6031 }
6032
6033
6034
6035 func (c *AppsFirewallIngressRulesListCall) Header() http.Header {
6036 if c.header_ == nil {
6037 c.header_ = make(http.Header)
6038 }
6039 return c.header_
6040 }
6041
6042 func (c *AppsFirewallIngressRulesListCall) doRequest(alt string) (*http.Response, error) {
6043 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6044 if c.ifNoneMatch_ != "" {
6045 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6046 }
6047 var body io.Reader = nil
6048 c.urlParams_.Set("alt", alt)
6049 c.urlParams_.Set("prettyPrint", "false")
6050 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/firewall/ingressRules")
6051 urls += "?" + c.urlParams_.Encode()
6052 req, err := http.NewRequest("GET", urls, body)
6053 if err != nil {
6054 return nil, err
6055 }
6056 req.Header = reqHeaders
6057 googleapi.Expand(req.URL, map[string]string{
6058 "appsId": c.appsId,
6059 })
6060 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6061 }
6062
6063
6064
6065
6066
6067
6068
6069 func (c *AppsFirewallIngressRulesListCall) Do(opts ...googleapi.CallOption) (*ListIngressRulesResponse, error) {
6070 gensupport.SetOptions(c.urlParams_, opts...)
6071 res, err := c.doRequest("json")
6072 if res != nil && res.StatusCode == http.StatusNotModified {
6073 if res.Body != nil {
6074 res.Body.Close()
6075 }
6076 return nil, gensupport.WrapError(&googleapi.Error{
6077 Code: res.StatusCode,
6078 Header: res.Header,
6079 })
6080 }
6081 if err != nil {
6082 return nil, err
6083 }
6084 defer googleapi.CloseBody(res)
6085 if err := googleapi.CheckResponse(res); err != nil {
6086 return nil, gensupport.WrapError(err)
6087 }
6088 ret := &ListIngressRulesResponse{
6089 ServerResponse: googleapi.ServerResponse{
6090 Header: res.Header,
6091 HTTPStatusCode: res.StatusCode,
6092 },
6093 }
6094 target := &ret
6095 if err := gensupport.DecodeResponse(target, res); err != nil {
6096 return nil, err
6097 }
6098 return ret, nil
6099 }
6100
6101
6102
6103
6104 func (c *AppsFirewallIngressRulesListCall) Pages(ctx context.Context, f func(*ListIngressRulesResponse) error) error {
6105 c.ctx_ = ctx
6106 defer c.PageToken(c.urlParams_.Get("pageToken"))
6107 for {
6108 x, err := c.Do()
6109 if err != nil {
6110 return err
6111 }
6112 if err := f(x); err != nil {
6113 return err
6114 }
6115 if x.NextPageToken == "" {
6116 return nil
6117 }
6118 c.PageToken(x.NextPageToken)
6119 }
6120 }
6121
6122 type AppsFirewallIngressRulesPatchCall struct {
6123 s *APIService
6124 appsId string
6125 ingressRulesId string
6126 firewallrule *FirewallRule
6127 urlParams_ gensupport.URLParams
6128 ctx_ context.Context
6129 header_ http.Header
6130 }
6131
6132
6133
6134
6135
6136
6137 func (r *AppsFirewallIngressRulesService) Patch(appsId string, ingressRulesId string, firewallrule *FirewallRule) *AppsFirewallIngressRulesPatchCall {
6138 c := &AppsFirewallIngressRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6139 c.appsId = appsId
6140 c.ingressRulesId = ingressRulesId
6141 c.firewallrule = firewallrule
6142 return c
6143 }
6144
6145
6146
6147 func (c *AppsFirewallIngressRulesPatchCall) UpdateMask(updateMask string) *AppsFirewallIngressRulesPatchCall {
6148 c.urlParams_.Set("updateMask", updateMask)
6149 return c
6150 }
6151
6152
6153
6154
6155 func (c *AppsFirewallIngressRulesPatchCall) Fields(s ...googleapi.Field) *AppsFirewallIngressRulesPatchCall {
6156 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6157 return c
6158 }
6159
6160
6161 func (c *AppsFirewallIngressRulesPatchCall) Context(ctx context.Context) *AppsFirewallIngressRulesPatchCall {
6162 c.ctx_ = ctx
6163 return c
6164 }
6165
6166
6167
6168 func (c *AppsFirewallIngressRulesPatchCall) Header() http.Header {
6169 if c.header_ == nil {
6170 c.header_ = make(http.Header)
6171 }
6172 return c.header_
6173 }
6174
6175 func (c *AppsFirewallIngressRulesPatchCall) doRequest(alt string) (*http.Response, error) {
6176 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6177 var body io.Reader = nil
6178 body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewallrule)
6179 if err != nil {
6180 return nil, err
6181 }
6182 c.urlParams_.Set("alt", alt)
6183 c.urlParams_.Set("prettyPrint", "false")
6184 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}")
6185 urls += "?" + c.urlParams_.Encode()
6186 req, err := http.NewRequest("PATCH", urls, body)
6187 if err != nil {
6188 return nil, err
6189 }
6190 req.Header = reqHeaders
6191 googleapi.Expand(req.URL, map[string]string{
6192 "appsId": c.appsId,
6193 "ingressRulesId": c.ingressRulesId,
6194 })
6195 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6196 }
6197
6198
6199
6200
6201
6202
6203 func (c *AppsFirewallIngressRulesPatchCall) Do(opts ...googleapi.CallOption) (*FirewallRule, error) {
6204 gensupport.SetOptions(c.urlParams_, opts...)
6205 res, err := c.doRequest("json")
6206 if res != nil && res.StatusCode == http.StatusNotModified {
6207 if res.Body != nil {
6208 res.Body.Close()
6209 }
6210 return nil, gensupport.WrapError(&googleapi.Error{
6211 Code: res.StatusCode,
6212 Header: res.Header,
6213 })
6214 }
6215 if err != nil {
6216 return nil, err
6217 }
6218 defer googleapi.CloseBody(res)
6219 if err := googleapi.CheckResponse(res); err != nil {
6220 return nil, gensupport.WrapError(err)
6221 }
6222 ret := &FirewallRule{
6223 ServerResponse: googleapi.ServerResponse{
6224 Header: res.Header,
6225 HTTPStatusCode: res.StatusCode,
6226 },
6227 }
6228 target := &ret
6229 if err := gensupport.DecodeResponse(target, res); err != nil {
6230 return nil, err
6231 }
6232 return ret, nil
6233 }
6234
6235 type AppsLocationsGetCall struct {
6236 s *APIService
6237 appsId string
6238 locationsId string
6239 urlParams_ gensupport.URLParams
6240 ifNoneMatch_ string
6241 ctx_ context.Context
6242 header_ http.Header
6243 }
6244
6245
6246
6247
6248
6249 func (r *AppsLocationsService) Get(appsId string, locationsId string) *AppsLocationsGetCall {
6250 c := &AppsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6251 c.appsId = appsId
6252 c.locationsId = locationsId
6253 return c
6254 }
6255
6256
6257
6258
6259 func (c *AppsLocationsGetCall) Fields(s ...googleapi.Field) *AppsLocationsGetCall {
6260 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6261 return c
6262 }
6263
6264
6265
6266
6267 func (c *AppsLocationsGetCall) IfNoneMatch(entityTag string) *AppsLocationsGetCall {
6268 c.ifNoneMatch_ = entityTag
6269 return c
6270 }
6271
6272
6273 func (c *AppsLocationsGetCall) Context(ctx context.Context) *AppsLocationsGetCall {
6274 c.ctx_ = ctx
6275 return c
6276 }
6277
6278
6279
6280 func (c *AppsLocationsGetCall) Header() http.Header {
6281 if c.header_ == nil {
6282 c.header_ = make(http.Header)
6283 }
6284 return c.header_
6285 }
6286
6287 func (c *AppsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
6288 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6289 if c.ifNoneMatch_ != "" {
6290 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6291 }
6292 var body io.Reader = nil
6293 c.urlParams_.Set("alt", alt)
6294 c.urlParams_.Set("prettyPrint", "false")
6295 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/locations/{locationsId}")
6296 urls += "?" + c.urlParams_.Encode()
6297 req, err := http.NewRequest("GET", urls, body)
6298 if err != nil {
6299 return nil, err
6300 }
6301 req.Header = reqHeaders
6302 googleapi.Expand(req.URL, map[string]string{
6303 "appsId": c.appsId,
6304 "locationsId": c.locationsId,
6305 })
6306 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6307 }
6308
6309
6310
6311
6312
6313
6314 func (c *AppsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
6315 gensupport.SetOptions(c.urlParams_, opts...)
6316 res, err := c.doRequest("json")
6317 if res != nil && res.StatusCode == http.StatusNotModified {
6318 if res.Body != nil {
6319 res.Body.Close()
6320 }
6321 return nil, gensupport.WrapError(&googleapi.Error{
6322 Code: res.StatusCode,
6323 Header: res.Header,
6324 })
6325 }
6326 if err != nil {
6327 return nil, err
6328 }
6329 defer googleapi.CloseBody(res)
6330 if err := googleapi.CheckResponse(res); err != nil {
6331 return nil, gensupport.WrapError(err)
6332 }
6333 ret := &Location{
6334 ServerResponse: googleapi.ServerResponse{
6335 Header: res.Header,
6336 HTTPStatusCode: res.StatusCode,
6337 },
6338 }
6339 target := &ret
6340 if err := gensupport.DecodeResponse(target, res); err != nil {
6341 return nil, err
6342 }
6343 return ret, nil
6344 }
6345
6346 type AppsLocationsListCall struct {
6347 s *APIService
6348 appsId string
6349 urlParams_ gensupport.URLParams
6350 ifNoneMatch_ string
6351 ctx_ context.Context
6352 header_ http.Header
6353 }
6354
6355
6356
6357
6358
6359 func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall {
6360 c := &AppsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6361 c.appsId = appsId
6362 return c
6363 }
6364
6365
6366
6367
6368
6369 func (c *AppsLocationsListCall) Filter(filter string) *AppsLocationsListCall {
6370 c.urlParams_.Set("filter", filter)
6371 return c
6372 }
6373
6374
6375
6376 func (c *AppsLocationsListCall) PageSize(pageSize int64) *AppsLocationsListCall {
6377 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6378 return c
6379 }
6380
6381
6382
6383
6384 func (c *AppsLocationsListCall) PageToken(pageToken string) *AppsLocationsListCall {
6385 c.urlParams_.Set("pageToken", pageToken)
6386 return c
6387 }
6388
6389
6390
6391
6392 func (c *AppsLocationsListCall) Fields(s ...googleapi.Field) *AppsLocationsListCall {
6393 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6394 return c
6395 }
6396
6397
6398
6399
6400 func (c *AppsLocationsListCall) IfNoneMatch(entityTag string) *AppsLocationsListCall {
6401 c.ifNoneMatch_ = entityTag
6402 return c
6403 }
6404
6405
6406 func (c *AppsLocationsListCall) Context(ctx context.Context) *AppsLocationsListCall {
6407 c.ctx_ = ctx
6408 return c
6409 }
6410
6411
6412
6413 func (c *AppsLocationsListCall) Header() http.Header {
6414 if c.header_ == nil {
6415 c.header_ = make(http.Header)
6416 }
6417 return c.header_
6418 }
6419
6420 func (c *AppsLocationsListCall) doRequest(alt string) (*http.Response, error) {
6421 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6422 if c.ifNoneMatch_ != "" {
6423 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6424 }
6425 var body io.Reader = nil
6426 c.urlParams_.Set("alt", alt)
6427 c.urlParams_.Set("prettyPrint", "false")
6428 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/locations")
6429 urls += "?" + c.urlParams_.Encode()
6430 req, err := http.NewRequest("GET", urls, body)
6431 if err != nil {
6432 return nil, err
6433 }
6434 req.Header = reqHeaders
6435 googleapi.Expand(req.URL, map[string]string{
6436 "appsId": c.appsId,
6437 })
6438 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6439 }
6440
6441
6442
6443
6444
6445
6446
6447 func (c *AppsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
6448 gensupport.SetOptions(c.urlParams_, opts...)
6449 res, err := c.doRequest("json")
6450 if res != nil && res.StatusCode == http.StatusNotModified {
6451 if res.Body != nil {
6452 res.Body.Close()
6453 }
6454 return nil, gensupport.WrapError(&googleapi.Error{
6455 Code: res.StatusCode,
6456 Header: res.Header,
6457 })
6458 }
6459 if err != nil {
6460 return nil, err
6461 }
6462 defer googleapi.CloseBody(res)
6463 if err := googleapi.CheckResponse(res); err != nil {
6464 return nil, gensupport.WrapError(err)
6465 }
6466 ret := &ListLocationsResponse{
6467 ServerResponse: googleapi.ServerResponse{
6468 Header: res.Header,
6469 HTTPStatusCode: res.StatusCode,
6470 },
6471 }
6472 target := &ret
6473 if err := gensupport.DecodeResponse(target, res); err != nil {
6474 return nil, err
6475 }
6476 return ret, nil
6477 }
6478
6479
6480
6481
6482 func (c *AppsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
6483 c.ctx_ = ctx
6484 defer c.PageToken(c.urlParams_.Get("pageToken"))
6485 for {
6486 x, err := c.Do()
6487 if err != nil {
6488 return err
6489 }
6490 if err := f(x); err != nil {
6491 return err
6492 }
6493 if x.NextPageToken == "" {
6494 return nil
6495 }
6496 c.PageToken(x.NextPageToken)
6497 }
6498 }
6499
6500 type AppsOperationsGetCall struct {
6501 s *APIService
6502 appsId string
6503 operationsId string
6504 urlParams_ gensupport.URLParams
6505 ifNoneMatch_ string
6506 ctx_ context.Context
6507 header_ http.Header
6508 }
6509
6510
6511
6512
6513
6514
6515
6516 func (r *AppsOperationsService) Get(appsId string, operationsId string) *AppsOperationsGetCall {
6517 c := &AppsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6518 c.appsId = appsId
6519 c.operationsId = operationsId
6520 return c
6521 }
6522
6523
6524
6525
6526 func (c *AppsOperationsGetCall) Fields(s ...googleapi.Field) *AppsOperationsGetCall {
6527 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6528 return c
6529 }
6530
6531
6532
6533
6534 func (c *AppsOperationsGetCall) IfNoneMatch(entityTag string) *AppsOperationsGetCall {
6535 c.ifNoneMatch_ = entityTag
6536 return c
6537 }
6538
6539
6540 func (c *AppsOperationsGetCall) Context(ctx context.Context) *AppsOperationsGetCall {
6541 c.ctx_ = ctx
6542 return c
6543 }
6544
6545
6546
6547 func (c *AppsOperationsGetCall) Header() http.Header {
6548 if c.header_ == nil {
6549 c.header_ = make(http.Header)
6550 }
6551 return c.header_
6552 }
6553
6554 func (c *AppsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
6555 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6556 if c.ifNoneMatch_ != "" {
6557 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6558 }
6559 var body io.Reader = nil
6560 c.urlParams_.Set("alt", alt)
6561 c.urlParams_.Set("prettyPrint", "false")
6562 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/operations/{operationsId}")
6563 urls += "?" + c.urlParams_.Encode()
6564 req, err := http.NewRequest("GET", urls, body)
6565 if err != nil {
6566 return nil, err
6567 }
6568 req.Header = reqHeaders
6569 googleapi.Expand(req.URL, map[string]string{
6570 "appsId": c.appsId,
6571 "operationsId": c.operationsId,
6572 })
6573 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6574 }
6575
6576
6577
6578
6579
6580
6581 func (c *AppsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6582 gensupport.SetOptions(c.urlParams_, opts...)
6583 res, err := c.doRequest("json")
6584 if res != nil && res.StatusCode == http.StatusNotModified {
6585 if res.Body != nil {
6586 res.Body.Close()
6587 }
6588 return nil, gensupport.WrapError(&googleapi.Error{
6589 Code: res.StatusCode,
6590 Header: res.Header,
6591 })
6592 }
6593 if err != nil {
6594 return nil, err
6595 }
6596 defer googleapi.CloseBody(res)
6597 if err := googleapi.CheckResponse(res); err != nil {
6598 return nil, gensupport.WrapError(err)
6599 }
6600 ret := &Operation{
6601 ServerResponse: googleapi.ServerResponse{
6602 Header: res.Header,
6603 HTTPStatusCode: res.StatusCode,
6604 },
6605 }
6606 target := &ret
6607 if err := gensupport.DecodeResponse(target, res); err != nil {
6608 return nil, err
6609 }
6610 return ret, nil
6611 }
6612
6613 type AppsOperationsListCall struct {
6614 s *APIService
6615 appsId string
6616 urlParams_ gensupport.URLParams
6617 ifNoneMatch_ string
6618 ctx_ context.Context
6619 header_ http.Header
6620 }
6621
6622
6623
6624
6625
6626 func (r *AppsOperationsService) List(appsId string) *AppsOperationsListCall {
6627 c := &AppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6628 c.appsId = appsId
6629 return c
6630 }
6631
6632
6633 func (c *AppsOperationsListCall) Filter(filter string) *AppsOperationsListCall {
6634 c.urlParams_.Set("filter", filter)
6635 return c
6636 }
6637
6638
6639
6640 func (c *AppsOperationsListCall) PageSize(pageSize int64) *AppsOperationsListCall {
6641 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6642 return c
6643 }
6644
6645
6646
6647 func (c *AppsOperationsListCall) PageToken(pageToken string) *AppsOperationsListCall {
6648 c.urlParams_.Set("pageToken", pageToken)
6649 return c
6650 }
6651
6652
6653
6654
6655 func (c *AppsOperationsListCall) Fields(s ...googleapi.Field) *AppsOperationsListCall {
6656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6657 return c
6658 }
6659
6660
6661
6662
6663 func (c *AppsOperationsListCall) IfNoneMatch(entityTag string) *AppsOperationsListCall {
6664 c.ifNoneMatch_ = entityTag
6665 return c
6666 }
6667
6668
6669 func (c *AppsOperationsListCall) Context(ctx context.Context) *AppsOperationsListCall {
6670 c.ctx_ = ctx
6671 return c
6672 }
6673
6674
6675
6676 func (c *AppsOperationsListCall) Header() http.Header {
6677 if c.header_ == nil {
6678 c.header_ = make(http.Header)
6679 }
6680 return c.header_
6681 }
6682
6683 func (c *AppsOperationsListCall) doRequest(alt string) (*http.Response, error) {
6684 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6685 if c.ifNoneMatch_ != "" {
6686 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6687 }
6688 var body io.Reader = nil
6689 c.urlParams_.Set("alt", alt)
6690 c.urlParams_.Set("prettyPrint", "false")
6691 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/operations")
6692 urls += "?" + c.urlParams_.Encode()
6693 req, err := http.NewRequest("GET", urls, body)
6694 if err != nil {
6695 return nil, err
6696 }
6697 req.Header = reqHeaders
6698 googleapi.Expand(req.URL, map[string]string{
6699 "appsId": c.appsId,
6700 })
6701 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6702 }
6703
6704
6705
6706
6707
6708
6709
6710 func (c *AppsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
6711 gensupport.SetOptions(c.urlParams_, opts...)
6712 res, err := c.doRequest("json")
6713 if res != nil && res.StatusCode == http.StatusNotModified {
6714 if res.Body != nil {
6715 res.Body.Close()
6716 }
6717 return nil, gensupport.WrapError(&googleapi.Error{
6718 Code: res.StatusCode,
6719 Header: res.Header,
6720 })
6721 }
6722 if err != nil {
6723 return nil, err
6724 }
6725 defer googleapi.CloseBody(res)
6726 if err := googleapi.CheckResponse(res); err != nil {
6727 return nil, gensupport.WrapError(err)
6728 }
6729 ret := &ListOperationsResponse{
6730 ServerResponse: googleapi.ServerResponse{
6731 Header: res.Header,
6732 HTTPStatusCode: res.StatusCode,
6733 },
6734 }
6735 target := &ret
6736 if err := gensupport.DecodeResponse(target, res); err != nil {
6737 return nil, err
6738 }
6739 return ret, nil
6740 }
6741
6742
6743
6744
6745 func (c *AppsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
6746 c.ctx_ = ctx
6747 defer c.PageToken(c.urlParams_.Get("pageToken"))
6748 for {
6749 x, err := c.Do()
6750 if err != nil {
6751 return err
6752 }
6753 if err := f(x); err != nil {
6754 return err
6755 }
6756 if x.NextPageToken == "" {
6757 return nil
6758 }
6759 c.PageToken(x.NextPageToken)
6760 }
6761 }
6762
6763 type AppsServicesDeleteCall struct {
6764 s *APIService
6765 appsId string
6766 servicesId string
6767 urlParams_ gensupport.URLParams
6768 ctx_ context.Context
6769 header_ http.Header
6770 }
6771
6772
6773
6774
6775
6776
6777 func (r *AppsServicesService) Delete(appsId string, servicesId string) *AppsServicesDeleteCall {
6778 c := &AppsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6779 c.appsId = appsId
6780 c.servicesId = servicesId
6781 return c
6782 }
6783
6784
6785
6786
6787 func (c *AppsServicesDeleteCall) Fields(s ...googleapi.Field) *AppsServicesDeleteCall {
6788 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6789 return c
6790 }
6791
6792
6793 func (c *AppsServicesDeleteCall) Context(ctx context.Context) *AppsServicesDeleteCall {
6794 c.ctx_ = ctx
6795 return c
6796 }
6797
6798
6799
6800 func (c *AppsServicesDeleteCall) Header() http.Header {
6801 if c.header_ == nil {
6802 c.header_ = make(http.Header)
6803 }
6804 return c.header_
6805 }
6806
6807 func (c *AppsServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
6808 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6809 var body io.Reader = nil
6810 c.urlParams_.Set("alt", alt)
6811 c.urlParams_.Set("prettyPrint", "false")
6812 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}")
6813 urls += "?" + c.urlParams_.Encode()
6814 req, err := http.NewRequest("DELETE", urls, body)
6815 if err != nil {
6816 return nil, err
6817 }
6818 req.Header = reqHeaders
6819 googleapi.Expand(req.URL, map[string]string{
6820 "appsId": c.appsId,
6821 "servicesId": c.servicesId,
6822 })
6823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6824 }
6825
6826
6827
6828
6829
6830
6831 func (c *AppsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6832 gensupport.SetOptions(c.urlParams_, opts...)
6833 res, err := c.doRequest("json")
6834 if res != nil && res.StatusCode == http.StatusNotModified {
6835 if res.Body != nil {
6836 res.Body.Close()
6837 }
6838 return nil, gensupport.WrapError(&googleapi.Error{
6839 Code: res.StatusCode,
6840 Header: res.Header,
6841 })
6842 }
6843 if err != nil {
6844 return nil, err
6845 }
6846 defer googleapi.CloseBody(res)
6847 if err := googleapi.CheckResponse(res); err != nil {
6848 return nil, gensupport.WrapError(err)
6849 }
6850 ret := &Operation{
6851 ServerResponse: googleapi.ServerResponse{
6852 Header: res.Header,
6853 HTTPStatusCode: res.StatusCode,
6854 },
6855 }
6856 target := &ret
6857 if err := gensupport.DecodeResponse(target, res); err != nil {
6858 return nil, err
6859 }
6860 return ret, nil
6861 }
6862
6863 type AppsServicesGetCall struct {
6864 s *APIService
6865 appsId string
6866 servicesId string
6867 urlParams_ gensupport.URLParams
6868 ifNoneMatch_ string
6869 ctx_ context.Context
6870 header_ http.Header
6871 }
6872
6873
6874
6875
6876
6877
6878 func (r *AppsServicesService) Get(appsId string, servicesId string) *AppsServicesGetCall {
6879 c := &AppsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6880 c.appsId = appsId
6881 c.servicesId = servicesId
6882 return c
6883 }
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898 func (c *AppsServicesGetCall) IncludeExtraData(includeExtraData string) *AppsServicesGetCall {
6899 c.urlParams_.Set("includeExtraData", includeExtraData)
6900 return c
6901 }
6902
6903
6904
6905
6906 func (c *AppsServicesGetCall) Fields(s ...googleapi.Field) *AppsServicesGetCall {
6907 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6908 return c
6909 }
6910
6911
6912
6913
6914 func (c *AppsServicesGetCall) IfNoneMatch(entityTag string) *AppsServicesGetCall {
6915 c.ifNoneMatch_ = entityTag
6916 return c
6917 }
6918
6919
6920 func (c *AppsServicesGetCall) Context(ctx context.Context) *AppsServicesGetCall {
6921 c.ctx_ = ctx
6922 return c
6923 }
6924
6925
6926
6927 func (c *AppsServicesGetCall) Header() http.Header {
6928 if c.header_ == nil {
6929 c.header_ = make(http.Header)
6930 }
6931 return c.header_
6932 }
6933
6934 func (c *AppsServicesGetCall) doRequest(alt string) (*http.Response, error) {
6935 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6936 if c.ifNoneMatch_ != "" {
6937 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6938 }
6939 var body io.Reader = nil
6940 c.urlParams_.Set("alt", alt)
6941 c.urlParams_.Set("prettyPrint", "false")
6942 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}")
6943 urls += "?" + c.urlParams_.Encode()
6944 req, err := http.NewRequest("GET", urls, body)
6945 if err != nil {
6946 return nil, err
6947 }
6948 req.Header = reqHeaders
6949 googleapi.Expand(req.URL, map[string]string{
6950 "appsId": c.appsId,
6951 "servicesId": c.servicesId,
6952 })
6953 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6954 }
6955
6956
6957
6958
6959
6960
6961 func (c *AppsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
6962 gensupport.SetOptions(c.urlParams_, opts...)
6963 res, err := c.doRequest("json")
6964 if res != nil && res.StatusCode == http.StatusNotModified {
6965 if res.Body != nil {
6966 res.Body.Close()
6967 }
6968 return nil, gensupport.WrapError(&googleapi.Error{
6969 Code: res.StatusCode,
6970 Header: res.Header,
6971 })
6972 }
6973 if err != nil {
6974 return nil, err
6975 }
6976 defer googleapi.CloseBody(res)
6977 if err := googleapi.CheckResponse(res); err != nil {
6978 return nil, gensupport.WrapError(err)
6979 }
6980 ret := &Service{
6981 ServerResponse: googleapi.ServerResponse{
6982 Header: res.Header,
6983 HTTPStatusCode: res.StatusCode,
6984 },
6985 }
6986 target := &ret
6987 if err := gensupport.DecodeResponse(target, res); err != nil {
6988 return nil, err
6989 }
6990 return ret, nil
6991 }
6992
6993 type AppsServicesListCall struct {
6994 s *APIService
6995 appsId string
6996 urlParams_ gensupport.URLParams
6997 ifNoneMatch_ string
6998 ctx_ context.Context
6999 header_ http.Header
7000 }
7001
7002
7003
7004
7005
7006 func (r *AppsServicesService) List(appsId string) *AppsServicesListCall {
7007 c := &AppsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7008 c.appsId = appsId
7009 return c
7010 }
7011
7012
7013
7014 func (c *AppsServicesListCall) PageSize(pageSize int64) *AppsServicesListCall {
7015 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7016 return c
7017 }
7018
7019
7020
7021 func (c *AppsServicesListCall) PageToken(pageToken string) *AppsServicesListCall {
7022 c.urlParams_.Set("pageToken", pageToken)
7023 return c
7024 }
7025
7026
7027
7028
7029 func (c *AppsServicesListCall) Fields(s ...googleapi.Field) *AppsServicesListCall {
7030 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7031 return c
7032 }
7033
7034
7035
7036
7037 func (c *AppsServicesListCall) IfNoneMatch(entityTag string) *AppsServicesListCall {
7038 c.ifNoneMatch_ = entityTag
7039 return c
7040 }
7041
7042
7043 func (c *AppsServicesListCall) Context(ctx context.Context) *AppsServicesListCall {
7044 c.ctx_ = ctx
7045 return c
7046 }
7047
7048
7049
7050 func (c *AppsServicesListCall) Header() http.Header {
7051 if c.header_ == nil {
7052 c.header_ = make(http.Header)
7053 }
7054 return c.header_
7055 }
7056
7057 func (c *AppsServicesListCall) doRequest(alt string) (*http.Response, error) {
7058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7059 if c.ifNoneMatch_ != "" {
7060 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7061 }
7062 var body io.Reader = nil
7063 c.urlParams_.Set("alt", alt)
7064 c.urlParams_.Set("prettyPrint", "false")
7065 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services")
7066 urls += "?" + c.urlParams_.Encode()
7067 req, err := http.NewRequest("GET", urls, body)
7068 if err != nil {
7069 return nil, err
7070 }
7071 req.Header = reqHeaders
7072 googleapi.Expand(req.URL, map[string]string{
7073 "appsId": c.appsId,
7074 })
7075 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7076 }
7077
7078
7079
7080
7081
7082
7083
7084 func (c *AppsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
7085 gensupport.SetOptions(c.urlParams_, opts...)
7086 res, err := c.doRequest("json")
7087 if res != nil && res.StatusCode == http.StatusNotModified {
7088 if res.Body != nil {
7089 res.Body.Close()
7090 }
7091 return nil, gensupport.WrapError(&googleapi.Error{
7092 Code: res.StatusCode,
7093 Header: res.Header,
7094 })
7095 }
7096 if err != nil {
7097 return nil, err
7098 }
7099 defer googleapi.CloseBody(res)
7100 if err := googleapi.CheckResponse(res); err != nil {
7101 return nil, gensupport.WrapError(err)
7102 }
7103 ret := &ListServicesResponse{
7104 ServerResponse: googleapi.ServerResponse{
7105 Header: res.Header,
7106 HTTPStatusCode: res.StatusCode,
7107 },
7108 }
7109 target := &ret
7110 if err := gensupport.DecodeResponse(target, res); err != nil {
7111 return nil, err
7112 }
7113 return ret, nil
7114 }
7115
7116
7117
7118
7119 func (c *AppsServicesListCall) Pages(ctx context.Context, f func(*ListServicesResponse) error) error {
7120 c.ctx_ = ctx
7121 defer c.PageToken(c.urlParams_.Get("pageToken"))
7122 for {
7123 x, err := c.Do()
7124 if err != nil {
7125 return err
7126 }
7127 if err := f(x); err != nil {
7128 return err
7129 }
7130 if x.NextPageToken == "" {
7131 return nil
7132 }
7133 c.PageToken(x.NextPageToken)
7134 }
7135 }
7136
7137 type AppsServicesPatchCall struct {
7138 s *APIService
7139 appsId string
7140 servicesId string
7141 service *Service
7142 urlParams_ gensupport.URLParams
7143 ctx_ context.Context
7144 header_ http.Header
7145 }
7146
7147
7148
7149
7150
7151
7152 func (r *AppsServicesService) Patch(appsId string, servicesId string, service *Service) *AppsServicesPatchCall {
7153 c := &AppsServicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7154 c.appsId = appsId
7155 c.servicesId = servicesId
7156 c.service = service
7157 return c
7158 }
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174 func (c *AppsServicesPatchCall) MigrateTraffic(migrateTraffic bool) *AppsServicesPatchCall {
7175 c.urlParams_.Set("migrateTraffic", fmt.Sprint(migrateTraffic))
7176 return c
7177 }
7178
7179
7180
7181 func (c *AppsServicesPatchCall) UpdateMask(updateMask string) *AppsServicesPatchCall {
7182 c.urlParams_.Set("updateMask", updateMask)
7183 return c
7184 }
7185
7186
7187
7188
7189 func (c *AppsServicesPatchCall) Fields(s ...googleapi.Field) *AppsServicesPatchCall {
7190 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7191 return c
7192 }
7193
7194
7195 func (c *AppsServicesPatchCall) Context(ctx context.Context) *AppsServicesPatchCall {
7196 c.ctx_ = ctx
7197 return c
7198 }
7199
7200
7201
7202 func (c *AppsServicesPatchCall) Header() http.Header {
7203 if c.header_ == nil {
7204 c.header_ = make(http.Header)
7205 }
7206 return c.header_
7207 }
7208
7209 func (c *AppsServicesPatchCall) doRequest(alt string) (*http.Response, error) {
7210 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7211 var body io.Reader = nil
7212 body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
7213 if err != nil {
7214 return nil, err
7215 }
7216 c.urlParams_.Set("alt", alt)
7217 c.urlParams_.Set("prettyPrint", "false")
7218 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}")
7219 urls += "?" + c.urlParams_.Encode()
7220 req, err := http.NewRequest("PATCH", urls, body)
7221 if err != nil {
7222 return nil, err
7223 }
7224 req.Header = reqHeaders
7225 googleapi.Expand(req.URL, map[string]string{
7226 "appsId": c.appsId,
7227 "servicesId": c.servicesId,
7228 })
7229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7230 }
7231
7232
7233
7234
7235
7236
7237 func (c *AppsServicesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7238 gensupport.SetOptions(c.urlParams_, opts...)
7239 res, err := c.doRequest("json")
7240 if res != nil && res.StatusCode == http.StatusNotModified {
7241 if res.Body != nil {
7242 res.Body.Close()
7243 }
7244 return nil, gensupport.WrapError(&googleapi.Error{
7245 Code: res.StatusCode,
7246 Header: res.Header,
7247 })
7248 }
7249 if err != nil {
7250 return nil, err
7251 }
7252 defer googleapi.CloseBody(res)
7253 if err := googleapi.CheckResponse(res); err != nil {
7254 return nil, gensupport.WrapError(err)
7255 }
7256 ret := &Operation{
7257 ServerResponse: googleapi.ServerResponse{
7258 Header: res.Header,
7259 HTTPStatusCode: res.StatusCode,
7260 },
7261 }
7262 target := &ret
7263 if err := gensupport.DecodeResponse(target, res); err != nil {
7264 return nil, err
7265 }
7266 return ret, nil
7267 }
7268
7269 type AppsServicesVersionsCreateCall struct {
7270 s *APIService
7271 appsId string
7272 servicesId string
7273 version *Version
7274 urlParams_ gensupport.URLParams
7275 ctx_ context.Context
7276 header_ http.Header
7277 }
7278
7279
7280
7281
7282
7283
7284 func (r *AppsServicesVersionsService) Create(appsId string, servicesId string, version *Version) *AppsServicesVersionsCreateCall {
7285 c := &AppsServicesVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7286 c.appsId = appsId
7287 c.servicesId = servicesId
7288 c.version = version
7289 return c
7290 }
7291
7292
7293
7294
7295 func (c *AppsServicesVersionsCreateCall) Fields(s ...googleapi.Field) *AppsServicesVersionsCreateCall {
7296 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7297 return c
7298 }
7299
7300
7301 func (c *AppsServicesVersionsCreateCall) Context(ctx context.Context) *AppsServicesVersionsCreateCall {
7302 c.ctx_ = ctx
7303 return c
7304 }
7305
7306
7307
7308 func (c *AppsServicesVersionsCreateCall) Header() http.Header {
7309 if c.header_ == nil {
7310 c.header_ = make(http.Header)
7311 }
7312 return c.header_
7313 }
7314
7315 func (c *AppsServicesVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
7316 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7317 var body io.Reader = nil
7318 body, err := googleapi.WithoutDataWrapper.JSONReader(c.version)
7319 if err != nil {
7320 return nil, err
7321 }
7322 c.urlParams_.Set("alt", alt)
7323 c.urlParams_.Set("prettyPrint", "false")
7324 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions")
7325 urls += "?" + c.urlParams_.Encode()
7326 req, err := http.NewRequest("POST", urls, body)
7327 if err != nil {
7328 return nil, err
7329 }
7330 req.Header = reqHeaders
7331 googleapi.Expand(req.URL, map[string]string{
7332 "appsId": c.appsId,
7333 "servicesId": c.servicesId,
7334 })
7335 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7336 }
7337
7338
7339
7340
7341
7342
7343 func (c *AppsServicesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7344 gensupport.SetOptions(c.urlParams_, opts...)
7345 res, err := c.doRequest("json")
7346 if res != nil && res.StatusCode == http.StatusNotModified {
7347 if res.Body != nil {
7348 res.Body.Close()
7349 }
7350 return nil, gensupport.WrapError(&googleapi.Error{
7351 Code: res.StatusCode,
7352 Header: res.Header,
7353 })
7354 }
7355 if err != nil {
7356 return nil, err
7357 }
7358 defer googleapi.CloseBody(res)
7359 if err := googleapi.CheckResponse(res); err != nil {
7360 return nil, gensupport.WrapError(err)
7361 }
7362 ret := &Operation{
7363 ServerResponse: googleapi.ServerResponse{
7364 Header: res.Header,
7365 HTTPStatusCode: res.StatusCode,
7366 },
7367 }
7368 target := &ret
7369 if err := gensupport.DecodeResponse(target, res); err != nil {
7370 return nil, err
7371 }
7372 return ret, nil
7373 }
7374
7375 type AppsServicesVersionsDeleteCall struct {
7376 s *APIService
7377 appsId string
7378 servicesId string
7379 versionsId string
7380 urlParams_ gensupport.URLParams
7381 ctx_ context.Context
7382 header_ http.Header
7383 }
7384
7385
7386
7387
7388
7389
7390
7391 func (r *AppsServicesVersionsService) Delete(appsId string, servicesId string, versionsId string) *AppsServicesVersionsDeleteCall {
7392 c := &AppsServicesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7393 c.appsId = appsId
7394 c.servicesId = servicesId
7395 c.versionsId = versionsId
7396 return c
7397 }
7398
7399
7400
7401
7402 func (c *AppsServicesVersionsDeleteCall) Fields(s ...googleapi.Field) *AppsServicesVersionsDeleteCall {
7403 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7404 return c
7405 }
7406
7407
7408 func (c *AppsServicesVersionsDeleteCall) Context(ctx context.Context) *AppsServicesVersionsDeleteCall {
7409 c.ctx_ = ctx
7410 return c
7411 }
7412
7413
7414
7415 func (c *AppsServicesVersionsDeleteCall) Header() http.Header {
7416 if c.header_ == nil {
7417 c.header_ = make(http.Header)
7418 }
7419 return c.header_
7420 }
7421
7422 func (c *AppsServicesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
7423 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7424 var body io.Reader = nil
7425 c.urlParams_.Set("alt", alt)
7426 c.urlParams_.Set("prettyPrint", "false")
7427 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}")
7428 urls += "?" + c.urlParams_.Encode()
7429 req, err := http.NewRequest("DELETE", urls, body)
7430 if err != nil {
7431 return nil, err
7432 }
7433 req.Header = reqHeaders
7434 googleapi.Expand(req.URL, map[string]string{
7435 "appsId": c.appsId,
7436 "servicesId": c.servicesId,
7437 "versionsId": c.versionsId,
7438 })
7439 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7440 }
7441
7442
7443
7444
7445
7446
7447 func (c *AppsServicesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7448 gensupport.SetOptions(c.urlParams_, opts...)
7449 res, err := c.doRequest("json")
7450 if res != nil && res.StatusCode == http.StatusNotModified {
7451 if res.Body != nil {
7452 res.Body.Close()
7453 }
7454 return nil, gensupport.WrapError(&googleapi.Error{
7455 Code: res.StatusCode,
7456 Header: res.Header,
7457 })
7458 }
7459 if err != nil {
7460 return nil, err
7461 }
7462 defer googleapi.CloseBody(res)
7463 if err := googleapi.CheckResponse(res); err != nil {
7464 return nil, gensupport.WrapError(err)
7465 }
7466 ret := &Operation{
7467 ServerResponse: googleapi.ServerResponse{
7468 Header: res.Header,
7469 HTTPStatusCode: res.StatusCode,
7470 },
7471 }
7472 target := &ret
7473 if err := gensupport.DecodeResponse(target, res); err != nil {
7474 return nil, err
7475 }
7476 return ret, nil
7477 }
7478
7479 type AppsServicesVersionsGetCall struct {
7480 s *APIService
7481 appsId string
7482 servicesId string
7483 versionsId string
7484 urlParams_ gensupport.URLParams
7485 ifNoneMatch_ string
7486 ctx_ context.Context
7487 header_ http.Header
7488 }
7489
7490
7491
7492
7493
7494
7495
7496
7497 func (r *AppsServicesVersionsService) Get(appsId string, servicesId string, versionsId string) *AppsServicesVersionsGetCall {
7498 c := &AppsServicesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7499 c.appsId = appsId
7500 c.servicesId = servicesId
7501 c.versionsId = versionsId
7502 return c
7503 }
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 func (c *AppsServicesVersionsGetCall) IncludeExtraData(includeExtraData string) *AppsServicesVersionsGetCall {
7519 c.urlParams_.Set("includeExtraData", includeExtraData)
7520 return c
7521 }
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 func (c *AppsServicesVersionsGetCall) View(view string) *AppsServicesVersionsGetCall {
7537 c.urlParams_.Set("view", view)
7538 return c
7539 }
7540
7541
7542
7543
7544 func (c *AppsServicesVersionsGetCall) Fields(s ...googleapi.Field) *AppsServicesVersionsGetCall {
7545 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7546 return c
7547 }
7548
7549
7550
7551
7552 func (c *AppsServicesVersionsGetCall) IfNoneMatch(entityTag string) *AppsServicesVersionsGetCall {
7553 c.ifNoneMatch_ = entityTag
7554 return c
7555 }
7556
7557
7558 func (c *AppsServicesVersionsGetCall) Context(ctx context.Context) *AppsServicesVersionsGetCall {
7559 c.ctx_ = ctx
7560 return c
7561 }
7562
7563
7564
7565 func (c *AppsServicesVersionsGetCall) Header() http.Header {
7566 if c.header_ == nil {
7567 c.header_ = make(http.Header)
7568 }
7569 return c.header_
7570 }
7571
7572 func (c *AppsServicesVersionsGetCall) doRequest(alt string) (*http.Response, error) {
7573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7574 if c.ifNoneMatch_ != "" {
7575 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7576 }
7577 var body io.Reader = nil
7578 c.urlParams_.Set("alt", alt)
7579 c.urlParams_.Set("prettyPrint", "false")
7580 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}")
7581 urls += "?" + c.urlParams_.Encode()
7582 req, err := http.NewRequest("GET", urls, body)
7583 if err != nil {
7584 return nil, err
7585 }
7586 req.Header = reqHeaders
7587 googleapi.Expand(req.URL, map[string]string{
7588 "appsId": c.appsId,
7589 "servicesId": c.servicesId,
7590 "versionsId": c.versionsId,
7591 })
7592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7593 }
7594
7595
7596
7597
7598
7599
7600 func (c *AppsServicesVersionsGetCall) Do(opts ...googleapi.CallOption) (*Version, error) {
7601 gensupport.SetOptions(c.urlParams_, opts...)
7602 res, err := c.doRequest("json")
7603 if res != nil && res.StatusCode == http.StatusNotModified {
7604 if res.Body != nil {
7605 res.Body.Close()
7606 }
7607 return nil, gensupport.WrapError(&googleapi.Error{
7608 Code: res.StatusCode,
7609 Header: res.Header,
7610 })
7611 }
7612 if err != nil {
7613 return nil, err
7614 }
7615 defer googleapi.CloseBody(res)
7616 if err := googleapi.CheckResponse(res); err != nil {
7617 return nil, gensupport.WrapError(err)
7618 }
7619 ret := &Version{
7620 ServerResponse: googleapi.ServerResponse{
7621 Header: res.Header,
7622 HTTPStatusCode: res.StatusCode,
7623 },
7624 }
7625 target := &ret
7626 if err := gensupport.DecodeResponse(target, res); err != nil {
7627 return nil, err
7628 }
7629 return ret, nil
7630 }
7631
7632 type AppsServicesVersionsListCall struct {
7633 s *APIService
7634 appsId string
7635 servicesId string
7636 urlParams_ gensupport.URLParams
7637 ifNoneMatch_ string
7638 ctx_ context.Context
7639 header_ http.Header
7640 }
7641
7642
7643
7644
7645
7646
7647 func (r *AppsServicesVersionsService) List(appsId string, servicesId string) *AppsServicesVersionsListCall {
7648 c := &AppsServicesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7649 c.appsId = appsId
7650 c.servicesId = servicesId
7651 return c
7652 }
7653
7654
7655
7656 func (c *AppsServicesVersionsListCall) PageSize(pageSize int64) *AppsServicesVersionsListCall {
7657 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7658 return c
7659 }
7660
7661
7662
7663 func (c *AppsServicesVersionsListCall) PageToken(pageToken string) *AppsServicesVersionsListCall {
7664 c.urlParams_.Set("pageToken", pageToken)
7665 return c
7666 }
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681 func (c *AppsServicesVersionsListCall) View(view string) *AppsServicesVersionsListCall {
7682 c.urlParams_.Set("view", view)
7683 return c
7684 }
7685
7686
7687
7688
7689 func (c *AppsServicesVersionsListCall) Fields(s ...googleapi.Field) *AppsServicesVersionsListCall {
7690 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7691 return c
7692 }
7693
7694
7695
7696
7697 func (c *AppsServicesVersionsListCall) IfNoneMatch(entityTag string) *AppsServicesVersionsListCall {
7698 c.ifNoneMatch_ = entityTag
7699 return c
7700 }
7701
7702
7703 func (c *AppsServicesVersionsListCall) Context(ctx context.Context) *AppsServicesVersionsListCall {
7704 c.ctx_ = ctx
7705 return c
7706 }
7707
7708
7709
7710 func (c *AppsServicesVersionsListCall) Header() http.Header {
7711 if c.header_ == nil {
7712 c.header_ = make(http.Header)
7713 }
7714 return c.header_
7715 }
7716
7717 func (c *AppsServicesVersionsListCall) doRequest(alt string) (*http.Response, error) {
7718 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7719 if c.ifNoneMatch_ != "" {
7720 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7721 }
7722 var body io.Reader = nil
7723 c.urlParams_.Set("alt", alt)
7724 c.urlParams_.Set("prettyPrint", "false")
7725 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions")
7726 urls += "?" + c.urlParams_.Encode()
7727 req, err := http.NewRequest("GET", urls, body)
7728 if err != nil {
7729 return nil, err
7730 }
7731 req.Header = reqHeaders
7732 googleapi.Expand(req.URL, map[string]string{
7733 "appsId": c.appsId,
7734 "servicesId": c.servicesId,
7735 })
7736 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7737 }
7738
7739
7740
7741
7742
7743
7744
7745 func (c *AppsServicesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListVersionsResponse, error) {
7746 gensupport.SetOptions(c.urlParams_, opts...)
7747 res, err := c.doRequest("json")
7748 if res != nil && res.StatusCode == http.StatusNotModified {
7749 if res.Body != nil {
7750 res.Body.Close()
7751 }
7752 return nil, gensupport.WrapError(&googleapi.Error{
7753 Code: res.StatusCode,
7754 Header: res.Header,
7755 })
7756 }
7757 if err != nil {
7758 return nil, err
7759 }
7760 defer googleapi.CloseBody(res)
7761 if err := googleapi.CheckResponse(res); err != nil {
7762 return nil, gensupport.WrapError(err)
7763 }
7764 ret := &ListVersionsResponse{
7765 ServerResponse: googleapi.ServerResponse{
7766 Header: res.Header,
7767 HTTPStatusCode: res.StatusCode,
7768 },
7769 }
7770 target := &ret
7771 if err := gensupport.DecodeResponse(target, res); err != nil {
7772 return nil, err
7773 }
7774 return ret, nil
7775 }
7776
7777
7778
7779
7780 func (c *AppsServicesVersionsListCall) Pages(ctx context.Context, f func(*ListVersionsResponse) error) error {
7781 c.ctx_ = ctx
7782 defer c.PageToken(c.urlParams_.Get("pageToken"))
7783 for {
7784 x, err := c.Do()
7785 if err != nil {
7786 return err
7787 }
7788 if err := f(x); err != nil {
7789 return err
7790 }
7791 if x.NextPageToken == "" {
7792 return nil
7793 }
7794 c.PageToken(x.NextPageToken)
7795 }
7796 }
7797
7798 type AppsServicesVersionsPatchCall struct {
7799 s *APIService
7800 appsId string
7801 servicesId string
7802 versionsId string
7803 version *Version
7804 urlParams_ gensupport.URLParams
7805 ctx_ context.Context
7806 header_ http.Header
7807 }
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 func (r *AppsServicesVersionsService) Patch(appsId string, servicesId string, versionsId string, version *Version) *AppsServicesVersionsPatchCall {
7847 c := &AppsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7848 c.appsId = appsId
7849 c.servicesId = servicesId
7850 c.versionsId = versionsId
7851 c.version = version
7852 return c
7853 }
7854
7855
7856
7857 func (c *AppsServicesVersionsPatchCall) UpdateMask(updateMask string) *AppsServicesVersionsPatchCall {
7858 c.urlParams_.Set("updateMask", updateMask)
7859 return c
7860 }
7861
7862
7863
7864
7865 func (c *AppsServicesVersionsPatchCall) Fields(s ...googleapi.Field) *AppsServicesVersionsPatchCall {
7866 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7867 return c
7868 }
7869
7870
7871 func (c *AppsServicesVersionsPatchCall) Context(ctx context.Context) *AppsServicesVersionsPatchCall {
7872 c.ctx_ = ctx
7873 return c
7874 }
7875
7876
7877
7878 func (c *AppsServicesVersionsPatchCall) Header() http.Header {
7879 if c.header_ == nil {
7880 c.header_ = make(http.Header)
7881 }
7882 return c.header_
7883 }
7884
7885 func (c *AppsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
7886 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7887 var body io.Reader = nil
7888 body, err := googleapi.WithoutDataWrapper.JSONReader(c.version)
7889 if err != nil {
7890 return nil, err
7891 }
7892 c.urlParams_.Set("alt", alt)
7893 c.urlParams_.Set("prettyPrint", "false")
7894 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}")
7895 urls += "?" + c.urlParams_.Encode()
7896 req, err := http.NewRequest("PATCH", urls, body)
7897 if err != nil {
7898 return nil, err
7899 }
7900 req.Header = reqHeaders
7901 googleapi.Expand(req.URL, map[string]string{
7902 "appsId": c.appsId,
7903 "servicesId": c.servicesId,
7904 "versionsId": c.versionsId,
7905 })
7906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7907 }
7908
7909
7910
7911
7912
7913
7914 func (c *AppsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7915 gensupport.SetOptions(c.urlParams_, opts...)
7916 res, err := c.doRequest("json")
7917 if res != nil && res.StatusCode == http.StatusNotModified {
7918 if res.Body != nil {
7919 res.Body.Close()
7920 }
7921 return nil, gensupport.WrapError(&googleapi.Error{
7922 Code: res.StatusCode,
7923 Header: res.Header,
7924 })
7925 }
7926 if err != nil {
7927 return nil, err
7928 }
7929 defer googleapi.CloseBody(res)
7930 if err := googleapi.CheckResponse(res); err != nil {
7931 return nil, gensupport.WrapError(err)
7932 }
7933 ret := &Operation{
7934 ServerResponse: googleapi.ServerResponse{
7935 Header: res.Header,
7936 HTTPStatusCode: res.StatusCode,
7937 },
7938 }
7939 target := &ret
7940 if err := gensupport.DecodeResponse(target, res); err != nil {
7941 return nil, err
7942 }
7943 return ret, nil
7944 }
7945
7946 type AppsServicesVersionsInstancesDebugCall struct {
7947 s *APIService
7948 appsId string
7949 servicesId string
7950 versionsId string
7951 instancesId string
7952 debuginstancerequest *DebugInstanceRequest
7953 urlParams_ gensupport.URLParams
7954 ctx_ context.Context
7955 header_ http.Header
7956 }
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 func (r *AppsServicesVersionsInstancesService) Debug(appsId string, servicesId string, versionsId string, instancesId string, debuginstancerequest *DebugInstanceRequest) *AppsServicesVersionsInstancesDebugCall {
7971 c := &AppsServicesVersionsInstancesDebugCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7972 c.appsId = appsId
7973 c.servicesId = servicesId
7974 c.versionsId = versionsId
7975 c.instancesId = instancesId
7976 c.debuginstancerequest = debuginstancerequest
7977 return c
7978 }
7979
7980
7981
7982
7983 func (c *AppsServicesVersionsInstancesDebugCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesDebugCall {
7984 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7985 return c
7986 }
7987
7988
7989 func (c *AppsServicesVersionsInstancesDebugCall) Context(ctx context.Context) *AppsServicesVersionsInstancesDebugCall {
7990 c.ctx_ = ctx
7991 return c
7992 }
7993
7994
7995
7996 func (c *AppsServicesVersionsInstancesDebugCall) Header() http.Header {
7997 if c.header_ == nil {
7998 c.header_ = make(http.Header)
7999 }
8000 return c.header_
8001 }
8002
8003 func (c *AppsServicesVersionsInstancesDebugCall) doRequest(alt string) (*http.Response, error) {
8004 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8005 var body io.Reader = nil
8006 body, err := googleapi.WithoutDataWrapper.JSONReader(c.debuginstancerequest)
8007 if err != nil {
8008 return nil, err
8009 }
8010 c.urlParams_.Set("alt", alt)
8011 c.urlParams_.Set("prettyPrint", "false")
8012 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug")
8013 urls += "?" + c.urlParams_.Encode()
8014 req, err := http.NewRequest("POST", urls, body)
8015 if err != nil {
8016 return nil, err
8017 }
8018 req.Header = reqHeaders
8019 googleapi.Expand(req.URL, map[string]string{
8020 "appsId": c.appsId,
8021 "servicesId": c.servicesId,
8022 "versionsId": c.versionsId,
8023 "instancesId": c.instancesId,
8024 })
8025 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8026 }
8027
8028
8029
8030
8031
8032
8033 func (c *AppsServicesVersionsInstancesDebugCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8034 gensupport.SetOptions(c.urlParams_, opts...)
8035 res, err := c.doRequest("json")
8036 if res != nil && res.StatusCode == http.StatusNotModified {
8037 if res.Body != nil {
8038 res.Body.Close()
8039 }
8040 return nil, gensupport.WrapError(&googleapi.Error{
8041 Code: res.StatusCode,
8042 Header: res.Header,
8043 })
8044 }
8045 if err != nil {
8046 return nil, err
8047 }
8048 defer googleapi.CloseBody(res)
8049 if err := googleapi.CheckResponse(res); err != nil {
8050 return nil, gensupport.WrapError(err)
8051 }
8052 ret := &Operation{
8053 ServerResponse: googleapi.ServerResponse{
8054 Header: res.Header,
8055 HTTPStatusCode: res.StatusCode,
8056 },
8057 }
8058 target := &ret
8059 if err := gensupport.DecodeResponse(target, res); err != nil {
8060 return nil, err
8061 }
8062 return ret, nil
8063 }
8064
8065 type AppsServicesVersionsInstancesDeleteCall struct {
8066 s *APIService
8067 appsId string
8068 servicesId string
8069 versionsId string
8070 instancesId string
8071 urlParams_ gensupport.URLParams
8072 ctx_ context.Context
8073 header_ http.Header
8074 }
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 func (r *AppsServicesVersionsInstancesService) Delete(appsId string, servicesId string, versionsId string, instancesId string) *AppsServicesVersionsInstancesDeleteCall {
8094 c := &AppsServicesVersionsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8095 c.appsId = appsId
8096 c.servicesId = servicesId
8097 c.versionsId = versionsId
8098 c.instancesId = instancesId
8099 return c
8100 }
8101
8102
8103
8104
8105 func (c *AppsServicesVersionsInstancesDeleteCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesDeleteCall {
8106 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8107 return c
8108 }
8109
8110
8111 func (c *AppsServicesVersionsInstancesDeleteCall) Context(ctx context.Context) *AppsServicesVersionsInstancesDeleteCall {
8112 c.ctx_ = ctx
8113 return c
8114 }
8115
8116
8117
8118 func (c *AppsServicesVersionsInstancesDeleteCall) Header() http.Header {
8119 if c.header_ == nil {
8120 c.header_ = make(http.Header)
8121 }
8122 return c.header_
8123 }
8124
8125 func (c *AppsServicesVersionsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
8126 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8127 var body io.Reader = nil
8128 c.urlParams_.Set("alt", alt)
8129 c.urlParams_.Set("prettyPrint", "false")
8130 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}")
8131 urls += "?" + c.urlParams_.Encode()
8132 req, err := http.NewRequest("DELETE", urls, body)
8133 if err != nil {
8134 return nil, err
8135 }
8136 req.Header = reqHeaders
8137 googleapi.Expand(req.URL, map[string]string{
8138 "appsId": c.appsId,
8139 "servicesId": c.servicesId,
8140 "versionsId": c.versionsId,
8141 "instancesId": c.instancesId,
8142 })
8143 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8144 }
8145
8146
8147
8148
8149
8150
8151 func (c *AppsServicesVersionsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8152 gensupport.SetOptions(c.urlParams_, opts...)
8153 res, err := c.doRequest("json")
8154 if res != nil && res.StatusCode == http.StatusNotModified {
8155 if res.Body != nil {
8156 res.Body.Close()
8157 }
8158 return nil, gensupport.WrapError(&googleapi.Error{
8159 Code: res.StatusCode,
8160 Header: res.Header,
8161 })
8162 }
8163 if err != nil {
8164 return nil, err
8165 }
8166 defer googleapi.CloseBody(res)
8167 if err := googleapi.CheckResponse(res); err != nil {
8168 return nil, gensupport.WrapError(err)
8169 }
8170 ret := &Operation{
8171 ServerResponse: googleapi.ServerResponse{
8172 Header: res.Header,
8173 HTTPStatusCode: res.StatusCode,
8174 },
8175 }
8176 target := &ret
8177 if err := gensupport.DecodeResponse(target, res); err != nil {
8178 return nil, err
8179 }
8180 return ret, nil
8181 }
8182
8183 type AppsServicesVersionsInstancesGetCall struct {
8184 s *APIService
8185 appsId string
8186 servicesId string
8187 versionsId string
8188 instancesId string
8189 urlParams_ gensupport.URLParams
8190 ifNoneMatch_ string
8191 ctx_ context.Context
8192 header_ http.Header
8193 }
8194
8195
8196
8197
8198
8199
8200
8201
8202 func (r *AppsServicesVersionsInstancesService) Get(appsId string, servicesId string, versionsId string, instancesId string) *AppsServicesVersionsInstancesGetCall {
8203 c := &AppsServicesVersionsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8204 c.appsId = appsId
8205 c.servicesId = servicesId
8206 c.versionsId = versionsId
8207 c.instancesId = instancesId
8208 return c
8209 }
8210
8211
8212
8213
8214 func (c *AppsServicesVersionsInstancesGetCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesGetCall {
8215 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8216 return c
8217 }
8218
8219
8220
8221
8222 func (c *AppsServicesVersionsInstancesGetCall) IfNoneMatch(entityTag string) *AppsServicesVersionsInstancesGetCall {
8223 c.ifNoneMatch_ = entityTag
8224 return c
8225 }
8226
8227
8228 func (c *AppsServicesVersionsInstancesGetCall) Context(ctx context.Context) *AppsServicesVersionsInstancesGetCall {
8229 c.ctx_ = ctx
8230 return c
8231 }
8232
8233
8234
8235 func (c *AppsServicesVersionsInstancesGetCall) Header() http.Header {
8236 if c.header_ == nil {
8237 c.header_ = make(http.Header)
8238 }
8239 return c.header_
8240 }
8241
8242 func (c *AppsServicesVersionsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
8243 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8244 if c.ifNoneMatch_ != "" {
8245 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8246 }
8247 var body io.Reader = nil
8248 c.urlParams_.Set("alt", alt)
8249 c.urlParams_.Set("prettyPrint", "false")
8250 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}")
8251 urls += "?" + c.urlParams_.Encode()
8252 req, err := http.NewRequest("GET", urls, body)
8253 if err != nil {
8254 return nil, err
8255 }
8256 req.Header = reqHeaders
8257 googleapi.Expand(req.URL, map[string]string{
8258 "appsId": c.appsId,
8259 "servicesId": c.servicesId,
8260 "versionsId": c.versionsId,
8261 "instancesId": c.instancesId,
8262 })
8263 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8264 }
8265
8266
8267
8268
8269
8270
8271 func (c *AppsServicesVersionsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error) {
8272 gensupport.SetOptions(c.urlParams_, opts...)
8273 res, err := c.doRequest("json")
8274 if res != nil && res.StatusCode == http.StatusNotModified {
8275 if res.Body != nil {
8276 res.Body.Close()
8277 }
8278 return nil, gensupport.WrapError(&googleapi.Error{
8279 Code: res.StatusCode,
8280 Header: res.Header,
8281 })
8282 }
8283 if err != nil {
8284 return nil, err
8285 }
8286 defer googleapi.CloseBody(res)
8287 if err := googleapi.CheckResponse(res); err != nil {
8288 return nil, gensupport.WrapError(err)
8289 }
8290 ret := &Instance{
8291 ServerResponse: googleapi.ServerResponse{
8292 Header: res.Header,
8293 HTTPStatusCode: res.StatusCode,
8294 },
8295 }
8296 target := &ret
8297 if err := gensupport.DecodeResponse(target, res); err != nil {
8298 return nil, err
8299 }
8300 return ret, nil
8301 }
8302
8303 type AppsServicesVersionsInstancesListCall struct {
8304 s *APIService
8305 appsId string
8306 servicesId string
8307 versionsId string
8308 urlParams_ gensupport.URLParams
8309 ifNoneMatch_ string
8310 ctx_ context.Context
8311 header_ http.Header
8312 }
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322 func (r *AppsServicesVersionsInstancesService) List(appsId string, servicesId string, versionsId string) *AppsServicesVersionsInstancesListCall {
8323 c := &AppsServicesVersionsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8324 c.appsId = appsId
8325 c.servicesId = servicesId
8326 c.versionsId = versionsId
8327 return c
8328 }
8329
8330
8331
8332 func (c *AppsServicesVersionsInstancesListCall) PageSize(pageSize int64) *AppsServicesVersionsInstancesListCall {
8333 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8334 return c
8335 }
8336
8337
8338
8339 func (c *AppsServicesVersionsInstancesListCall) PageToken(pageToken string) *AppsServicesVersionsInstancesListCall {
8340 c.urlParams_.Set("pageToken", pageToken)
8341 return c
8342 }
8343
8344
8345
8346
8347 func (c *AppsServicesVersionsInstancesListCall) Fields(s ...googleapi.Field) *AppsServicesVersionsInstancesListCall {
8348 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8349 return c
8350 }
8351
8352
8353
8354
8355 func (c *AppsServicesVersionsInstancesListCall) IfNoneMatch(entityTag string) *AppsServicesVersionsInstancesListCall {
8356 c.ifNoneMatch_ = entityTag
8357 return c
8358 }
8359
8360
8361 func (c *AppsServicesVersionsInstancesListCall) Context(ctx context.Context) *AppsServicesVersionsInstancesListCall {
8362 c.ctx_ = ctx
8363 return c
8364 }
8365
8366
8367
8368 func (c *AppsServicesVersionsInstancesListCall) Header() http.Header {
8369 if c.header_ == nil {
8370 c.header_ = make(http.Header)
8371 }
8372 return c.header_
8373 }
8374
8375 func (c *AppsServicesVersionsInstancesListCall) doRequest(alt string) (*http.Response, error) {
8376 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8377 if c.ifNoneMatch_ != "" {
8378 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8379 }
8380 var body io.Reader = nil
8381 c.urlParams_.Set("alt", alt)
8382 c.urlParams_.Set("prettyPrint", "false")
8383 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances")
8384 urls += "?" + c.urlParams_.Encode()
8385 req, err := http.NewRequest("GET", urls, body)
8386 if err != nil {
8387 return nil, err
8388 }
8389 req.Header = reqHeaders
8390 googleapi.Expand(req.URL, map[string]string{
8391 "appsId": c.appsId,
8392 "servicesId": c.servicesId,
8393 "versionsId": c.versionsId,
8394 })
8395 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8396 }
8397
8398
8399
8400
8401
8402
8403
8404 func (c *AppsServicesVersionsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error) {
8405 gensupport.SetOptions(c.urlParams_, opts...)
8406 res, err := c.doRequest("json")
8407 if res != nil && res.StatusCode == http.StatusNotModified {
8408 if res.Body != nil {
8409 res.Body.Close()
8410 }
8411 return nil, gensupport.WrapError(&googleapi.Error{
8412 Code: res.StatusCode,
8413 Header: res.Header,
8414 })
8415 }
8416 if err != nil {
8417 return nil, err
8418 }
8419 defer googleapi.CloseBody(res)
8420 if err := googleapi.CheckResponse(res); err != nil {
8421 return nil, gensupport.WrapError(err)
8422 }
8423 ret := &ListInstancesResponse{
8424 ServerResponse: googleapi.ServerResponse{
8425 Header: res.Header,
8426 HTTPStatusCode: res.StatusCode,
8427 },
8428 }
8429 target := &ret
8430 if err := gensupport.DecodeResponse(target, res); err != nil {
8431 return nil, err
8432 }
8433 return ret, nil
8434 }
8435
8436
8437
8438
8439 func (c *AppsServicesVersionsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error {
8440 c.ctx_ = ctx
8441 defer c.PageToken(c.urlParams_.Get("pageToken"))
8442 for {
8443 x, err := c.Do()
8444 if err != nil {
8445 return err
8446 }
8447 if err := f(x); err != nil {
8448 return err
8449 }
8450 if x.NextPageToken == "" {
8451 return nil
8452 }
8453 c.PageToken(x.NextPageToken)
8454 }
8455 }
8456
8457 type ProjectsLocationsGetCall struct {
8458 s *APIService
8459 projectsId string
8460 locationsId string
8461 urlParams_ gensupport.URLParams
8462 ifNoneMatch_ string
8463 ctx_ context.Context
8464 header_ http.Header
8465 }
8466
8467
8468
8469
8470
8471 func (r *ProjectsLocationsService) Get(projectsId string, locationsId string) *ProjectsLocationsGetCall {
8472 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8473 c.projectsId = projectsId
8474 c.locationsId = locationsId
8475 return c
8476 }
8477
8478
8479
8480
8481 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
8482 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8483 return c
8484 }
8485
8486
8487
8488
8489 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
8490 c.ifNoneMatch_ = entityTag
8491 return c
8492 }
8493
8494
8495 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
8496 c.ctx_ = ctx
8497 return c
8498 }
8499
8500
8501
8502 func (c *ProjectsLocationsGetCall) Header() http.Header {
8503 if c.header_ == nil {
8504 c.header_ = make(http.Header)
8505 }
8506 return c.header_
8507 }
8508
8509 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
8510 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8511 if c.ifNoneMatch_ != "" {
8512 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8513 }
8514 var body io.Reader = nil
8515 c.urlParams_.Set("alt", alt)
8516 c.urlParams_.Set("prettyPrint", "false")
8517 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}")
8518 urls += "?" + c.urlParams_.Encode()
8519 req, err := http.NewRequest("GET", urls, body)
8520 if err != nil {
8521 return nil, err
8522 }
8523 req.Header = reqHeaders
8524 googleapi.Expand(req.URL, map[string]string{
8525 "projectsId": c.projectsId,
8526 "locationsId": c.locationsId,
8527 })
8528 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8529 }
8530
8531
8532
8533
8534
8535
8536 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
8537 gensupport.SetOptions(c.urlParams_, opts...)
8538 res, err := c.doRequest("json")
8539 if res != nil && res.StatusCode == http.StatusNotModified {
8540 if res.Body != nil {
8541 res.Body.Close()
8542 }
8543 return nil, gensupport.WrapError(&googleapi.Error{
8544 Code: res.StatusCode,
8545 Header: res.Header,
8546 })
8547 }
8548 if err != nil {
8549 return nil, err
8550 }
8551 defer googleapi.CloseBody(res)
8552 if err := googleapi.CheckResponse(res); err != nil {
8553 return nil, gensupport.WrapError(err)
8554 }
8555 ret := &Location{
8556 ServerResponse: googleapi.ServerResponse{
8557 Header: res.Header,
8558 HTTPStatusCode: res.StatusCode,
8559 },
8560 }
8561 target := &ret
8562 if err := gensupport.DecodeResponse(target, res); err != nil {
8563 return nil, err
8564 }
8565 return ret, nil
8566 }
8567
8568 type ProjectsLocationsListCall struct {
8569 s *APIService
8570 projectsId string
8571 urlParams_ gensupport.URLParams
8572 ifNoneMatch_ string
8573 ctx_ context.Context
8574 header_ http.Header
8575 }
8576
8577
8578
8579
8580
8581 func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsListCall {
8582 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8583 c.projectsId = projectsId
8584 return c
8585 }
8586
8587
8588
8589
8590
8591 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
8592 c.urlParams_.Set("filter", filter)
8593 return c
8594 }
8595
8596
8597
8598 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
8599 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8600 return c
8601 }
8602
8603
8604
8605
8606 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
8607 c.urlParams_.Set("pageToken", pageToken)
8608 return c
8609 }
8610
8611
8612
8613
8614 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
8615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8616 return c
8617 }
8618
8619
8620
8621
8622 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
8623 c.ifNoneMatch_ = entityTag
8624 return c
8625 }
8626
8627
8628 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
8629 c.ctx_ = ctx
8630 return c
8631 }
8632
8633
8634
8635 func (c *ProjectsLocationsListCall) Header() http.Header {
8636 if c.header_ == nil {
8637 c.header_ = make(http.Header)
8638 }
8639 return c.header_
8640 }
8641
8642 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
8643 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8644 if c.ifNoneMatch_ != "" {
8645 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8646 }
8647 var body io.Reader = nil
8648 c.urlParams_.Set("alt", alt)
8649 c.urlParams_.Set("prettyPrint", "false")
8650 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations")
8651 urls += "?" + c.urlParams_.Encode()
8652 req, err := http.NewRequest("GET", urls, body)
8653 if err != nil {
8654 return nil, err
8655 }
8656 req.Header = reqHeaders
8657 googleapi.Expand(req.URL, map[string]string{
8658 "projectsId": c.projectsId,
8659 })
8660 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8661 }
8662
8663
8664
8665
8666
8667
8668
8669 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
8670 gensupport.SetOptions(c.urlParams_, opts...)
8671 res, err := c.doRequest("json")
8672 if res != nil && res.StatusCode == http.StatusNotModified {
8673 if res.Body != nil {
8674 res.Body.Close()
8675 }
8676 return nil, gensupport.WrapError(&googleapi.Error{
8677 Code: res.StatusCode,
8678 Header: res.Header,
8679 })
8680 }
8681 if err != nil {
8682 return nil, err
8683 }
8684 defer googleapi.CloseBody(res)
8685 if err := googleapi.CheckResponse(res); err != nil {
8686 return nil, gensupport.WrapError(err)
8687 }
8688 ret := &ListLocationsResponse{
8689 ServerResponse: googleapi.ServerResponse{
8690 Header: res.Header,
8691 HTTPStatusCode: res.StatusCode,
8692 },
8693 }
8694 target := &ret
8695 if err := gensupport.DecodeResponse(target, res); err != nil {
8696 return nil, err
8697 }
8698 return ret, nil
8699 }
8700
8701
8702
8703
8704 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
8705 c.ctx_ = ctx
8706 defer c.PageToken(c.urlParams_.Get("pageToken"))
8707 for {
8708 x, err := c.Do()
8709 if err != nil {
8710 return err
8711 }
8712 if err := f(x); err != nil {
8713 return err
8714 }
8715 if x.NextPageToken == "" {
8716 return nil
8717 }
8718 c.PageToken(x.NextPageToken)
8719 }
8720 }
8721
8722 type ProjectsLocationsApplicationsAuthorizedDomainsListCall struct {
8723 s *APIService
8724 projectsId string
8725 locationsId string
8726 applicationsId string
8727 urlParams_ gensupport.URLParams
8728 ifNoneMatch_ string
8729 ctx_ context.Context
8730 header_ http.Header
8731 }
8732
8733
8734
8735
8736
8737
8738
8739 func (r *ProjectsLocationsApplicationsAuthorizedDomainsService) List(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
8740 c := &ProjectsLocationsApplicationsAuthorizedDomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8741 c.projectsId = projectsId
8742 c.locationsId = locationsId
8743 c.applicationsId = applicationsId
8744 return c
8745 }
8746
8747
8748
8749 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) PageSize(pageSize int64) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
8750 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8751 return c
8752 }
8753
8754
8755
8756 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) PageToken(pageToken string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
8757 c.urlParams_.Set("pageToken", pageToken)
8758 return c
8759 }
8760
8761
8762
8763
8764 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
8765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8766 return c
8767 }
8768
8769
8770
8771
8772 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
8773 c.ifNoneMatch_ = entityTag
8774 return c
8775 }
8776
8777
8778 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Context(ctx context.Context) *ProjectsLocationsApplicationsAuthorizedDomainsListCall {
8779 c.ctx_ = ctx
8780 return c
8781 }
8782
8783
8784
8785 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Header() http.Header {
8786 if c.header_ == nil {
8787 c.header_ = make(http.Header)
8788 }
8789 return c.header_
8790 }
8791
8792 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) doRequest(alt string) (*http.Response, error) {
8793 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8794 if c.ifNoneMatch_ != "" {
8795 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8796 }
8797 var body io.Reader = nil
8798 c.urlParams_.Set("alt", alt)
8799 c.urlParams_.Set("prettyPrint", "false")
8800 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains")
8801 urls += "?" + c.urlParams_.Encode()
8802 req, err := http.NewRequest("GET", urls, body)
8803 if err != nil {
8804 return nil, err
8805 }
8806 req.Header = reqHeaders
8807 googleapi.Expand(req.URL, map[string]string{
8808 "projectsId": c.projectsId,
8809 "locationsId": c.locationsId,
8810 "applicationsId": c.applicationsId,
8811 })
8812 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8813 }
8814
8815
8816
8817
8818
8819
8820
8821 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
8822 gensupport.SetOptions(c.urlParams_, opts...)
8823 res, err := c.doRequest("json")
8824 if res != nil && res.StatusCode == http.StatusNotModified {
8825 if res.Body != nil {
8826 res.Body.Close()
8827 }
8828 return nil, gensupport.WrapError(&googleapi.Error{
8829 Code: res.StatusCode,
8830 Header: res.Header,
8831 })
8832 }
8833 if err != nil {
8834 return nil, err
8835 }
8836 defer googleapi.CloseBody(res)
8837 if err := googleapi.CheckResponse(res); err != nil {
8838 return nil, gensupport.WrapError(err)
8839 }
8840 ret := &ListAuthorizedDomainsResponse{
8841 ServerResponse: googleapi.ServerResponse{
8842 Header: res.Header,
8843 HTTPStatusCode: res.StatusCode,
8844 },
8845 }
8846 target := &ret
8847 if err := gensupport.DecodeResponse(target, res); err != nil {
8848 return nil, err
8849 }
8850 return ret, nil
8851 }
8852
8853
8854
8855
8856 func (c *ProjectsLocationsApplicationsAuthorizedDomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
8857 c.ctx_ = ctx
8858 defer c.PageToken(c.urlParams_.Get("pageToken"))
8859 for {
8860 x, err := c.Do()
8861 if err != nil {
8862 return err
8863 }
8864 if err := f(x); err != nil {
8865 return err
8866 }
8867 if x.NextPageToken == "" {
8868 return nil
8869 }
8870 c.PageToken(x.NextPageToken)
8871 }
8872 }
8873
8874 type ProjectsLocationsOperationsGetCall struct {
8875 s *APIService
8876 projectsId string
8877 locationsId string
8878 operationsId string
8879 urlParams_ gensupport.URLParams
8880 ifNoneMatch_ string
8881 ctx_ context.Context
8882 header_ http.Header
8883 }
8884
8885
8886
8887
8888
8889
8890
8891
8892 func (r *ProjectsLocationsOperationsService) Get(projectsId string, locationsId string, operationsId string) *ProjectsLocationsOperationsGetCall {
8893 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8894 c.projectsId = projectsId
8895 c.locationsId = locationsId
8896 c.operationsId = operationsId
8897 return c
8898 }
8899
8900
8901
8902
8903 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
8904 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8905 return c
8906 }
8907
8908
8909
8910
8911 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
8912 c.ifNoneMatch_ = entityTag
8913 return c
8914 }
8915
8916
8917 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
8918 c.ctx_ = ctx
8919 return c
8920 }
8921
8922
8923
8924 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
8925 if c.header_ == nil {
8926 c.header_ = make(http.Header)
8927 }
8928 return c.header_
8929 }
8930
8931 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
8932 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8933 if c.ifNoneMatch_ != "" {
8934 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8935 }
8936 var body io.Reader = nil
8937 c.urlParams_.Set("alt", alt)
8938 c.urlParams_.Set("prettyPrint", "false")
8939 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}")
8940 urls += "?" + c.urlParams_.Encode()
8941 req, err := http.NewRequest("GET", urls, body)
8942 if err != nil {
8943 return nil, err
8944 }
8945 req.Header = reqHeaders
8946 googleapi.Expand(req.URL, map[string]string{
8947 "projectsId": c.projectsId,
8948 "locationsId": c.locationsId,
8949 "operationsId": c.operationsId,
8950 })
8951 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8952 }
8953
8954
8955
8956
8957
8958
8959 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8960 gensupport.SetOptions(c.urlParams_, opts...)
8961 res, err := c.doRequest("json")
8962 if res != nil && res.StatusCode == http.StatusNotModified {
8963 if res.Body != nil {
8964 res.Body.Close()
8965 }
8966 return nil, gensupport.WrapError(&googleapi.Error{
8967 Code: res.StatusCode,
8968 Header: res.Header,
8969 })
8970 }
8971 if err != nil {
8972 return nil, err
8973 }
8974 defer googleapi.CloseBody(res)
8975 if err := googleapi.CheckResponse(res); err != nil {
8976 return nil, gensupport.WrapError(err)
8977 }
8978 ret := &Operation{
8979 ServerResponse: googleapi.ServerResponse{
8980 Header: res.Header,
8981 HTTPStatusCode: res.StatusCode,
8982 },
8983 }
8984 target := &ret
8985 if err := gensupport.DecodeResponse(target, res); err != nil {
8986 return nil, err
8987 }
8988 return ret, nil
8989 }
8990
8991 type ProjectsLocationsOperationsListCall struct {
8992 s *APIService
8993 projectsId string
8994 locationsId string
8995 urlParams_ gensupport.URLParams
8996 ifNoneMatch_ string
8997 ctx_ context.Context
8998 header_ http.Header
8999 }
9000
9001
9002
9003
9004
9005
9006 func (r *ProjectsLocationsOperationsService) List(projectsId string, locationsId string) *ProjectsLocationsOperationsListCall {
9007 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9008 c.projectsId = projectsId
9009 c.locationsId = locationsId
9010 return c
9011 }
9012
9013
9014 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
9015 c.urlParams_.Set("filter", filter)
9016 return c
9017 }
9018
9019
9020
9021 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
9022 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9023 return c
9024 }
9025
9026
9027
9028 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
9029 c.urlParams_.Set("pageToken", pageToken)
9030 return c
9031 }
9032
9033
9034
9035
9036 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
9037 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9038 return c
9039 }
9040
9041
9042
9043
9044 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
9045 c.ifNoneMatch_ = entityTag
9046 return c
9047 }
9048
9049
9050 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
9051 c.ctx_ = ctx
9052 return c
9053 }
9054
9055
9056
9057 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
9058 if c.header_ == nil {
9059 c.header_ = make(http.Header)
9060 }
9061 return c.header_
9062 }
9063
9064 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
9065 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9066 if c.ifNoneMatch_ != "" {
9067 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9068 }
9069 var body io.Reader = nil
9070 c.urlParams_.Set("alt", alt)
9071 c.urlParams_.Set("prettyPrint", "false")
9072 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/operations")
9073 urls += "?" + c.urlParams_.Encode()
9074 req, err := http.NewRequest("GET", urls, body)
9075 if err != nil {
9076 return nil, err
9077 }
9078 req.Header = reqHeaders
9079 googleapi.Expand(req.URL, map[string]string{
9080 "projectsId": c.projectsId,
9081 "locationsId": c.locationsId,
9082 })
9083 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9084 }
9085
9086
9087
9088
9089
9090
9091
9092 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
9093 gensupport.SetOptions(c.urlParams_, opts...)
9094 res, err := c.doRequest("json")
9095 if res != nil && res.StatusCode == http.StatusNotModified {
9096 if res.Body != nil {
9097 res.Body.Close()
9098 }
9099 return nil, gensupport.WrapError(&googleapi.Error{
9100 Code: res.StatusCode,
9101 Header: res.Header,
9102 })
9103 }
9104 if err != nil {
9105 return nil, err
9106 }
9107 defer googleapi.CloseBody(res)
9108 if err := googleapi.CheckResponse(res); err != nil {
9109 return nil, gensupport.WrapError(err)
9110 }
9111 ret := &ListOperationsResponse{
9112 ServerResponse: googleapi.ServerResponse{
9113 Header: res.Header,
9114 HTTPStatusCode: res.StatusCode,
9115 },
9116 }
9117 target := &ret
9118 if err := gensupport.DecodeResponse(target, res); err != nil {
9119 return nil, err
9120 }
9121 return ret, nil
9122 }
9123
9124
9125
9126
9127 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
9128 c.ctx_ = ctx
9129 defer c.PageToken(c.urlParams_.Get("pageToken"))
9130 for {
9131 x, err := c.Do()
9132 if err != nil {
9133 return err
9134 }
9135 if err := f(x); err != nil {
9136 return err
9137 }
9138 if x.NextPageToken == "" {
9139 return nil
9140 }
9141 c.PageToken(x.NextPageToken)
9142 }
9143 }
9144
View as plain text