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