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 cloudbilling
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 = "cloudbilling:v1beta"
95 const apiName = "cloudbilling"
96 const apiVersion = "v1beta"
97 const basePath = "https://cloudbilling.googleapis.com/"
98 const basePathTemplate = "https://cloudbilling.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://cloudbilling.mtls.googleapis.com/"
100
101
102 const (
103
104 CloudBillingScope = "https://www.googleapis.com/auth/cloud-billing"
105
106
107 CloudBillingReadonlyScope = "https://www.googleapis.com/auth/cloud-billing.readonly"
108
109
110
111 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
112 )
113
114
115 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
116 scopesOption := internaloption.WithDefaultScopes(
117 "https://www.googleapis.com/auth/cloud-billing",
118 "https://www.googleapis.com/auth/cloud-billing.readonly",
119 "https://www.googleapis.com/auth/cloud-platform",
120 )
121
122 opts = append([]option.ClientOption{scopesOption}, opts...)
123 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
124 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
125 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
126 opts = append(opts, internaloption.EnableNewAuthLibrary())
127 client, endpoint, err := htransport.NewClient(ctx, opts...)
128 if err != nil {
129 return nil, err
130 }
131 s, err := New(client)
132 if err != nil {
133 return nil, err
134 }
135 if endpoint != "" {
136 s.BasePath = endpoint
137 }
138 return s, nil
139 }
140
141
142
143
144
145
146 func New(client *http.Client) (*Service, error) {
147 if client == nil {
148 return nil, errors.New("client is nil")
149 }
150 s := &Service{client: client, BasePath: basePath}
151 s.BillingAccounts = NewBillingAccountsService(s)
152 s.SkuGroups = NewSkuGroupsService(s)
153 s.Skus = NewSkusService(s)
154 s.V1beta = NewV1betaService(s)
155 return s, nil
156 }
157
158 type Service struct {
159 client *http.Client
160 BasePath string
161 UserAgent string
162
163 BillingAccounts *BillingAccountsService
164
165 SkuGroups *SkuGroupsService
166
167 Skus *SkusService
168
169 V1beta *V1betaService
170 }
171
172 func (s *Service) userAgent() string {
173 if s.UserAgent == "" {
174 return googleapi.UserAgent
175 }
176 return googleapi.UserAgent + " " + s.UserAgent
177 }
178
179 func NewBillingAccountsService(s *Service) *BillingAccountsService {
180 rs := &BillingAccountsService{s: s}
181 rs.Services = NewBillingAccountsServicesService(s)
182 rs.SkuGroups = NewBillingAccountsSkuGroupsService(s)
183 rs.Skus = NewBillingAccountsSkusService(s)
184 return rs
185 }
186
187 type BillingAccountsService struct {
188 s *Service
189
190 Services *BillingAccountsServicesService
191
192 SkuGroups *BillingAccountsSkuGroupsService
193
194 Skus *BillingAccountsSkusService
195 }
196
197 func NewBillingAccountsServicesService(s *Service) *BillingAccountsServicesService {
198 rs := &BillingAccountsServicesService{s: s}
199 return rs
200 }
201
202 type BillingAccountsServicesService struct {
203 s *Service
204 }
205
206 func NewBillingAccountsSkuGroupsService(s *Service) *BillingAccountsSkuGroupsService {
207 rs := &BillingAccountsSkuGroupsService{s: s}
208 rs.Skus = NewBillingAccountsSkuGroupsSkusService(s)
209 return rs
210 }
211
212 type BillingAccountsSkuGroupsService struct {
213 s *Service
214
215 Skus *BillingAccountsSkuGroupsSkusService
216 }
217
218 func NewBillingAccountsSkuGroupsSkusService(s *Service) *BillingAccountsSkuGroupsSkusService {
219 rs := &BillingAccountsSkuGroupsSkusService{s: s}
220 return rs
221 }
222
223 type BillingAccountsSkuGroupsSkusService struct {
224 s *Service
225 }
226
227 func NewBillingAccountsSkusService(s *Service) *BillingAccountsSkusService {
228 rs := &BillingAccountsSkusService{s: s}
229 rs.Price = NewBillingAccountsSkusPriceService(s)
230 rs.Prices = NewBillingAccountsSkusPricesService(s)
231 return rs
232 }
233
234 type BillingAccountsSkusService struct {
235 s *Service
236
237 Price *BillingAccountsSkusPriceService
238
239 Prices *BillingAccountsSkusPricesService
240 }
241
242 func NewBillingAccountsSkusPriceService(s *Service) *BillingAccountsSkusPriceService {
243 rs := &BillingAccountsSkusPriceService{s: s}
244 return rs
245 }
246
247 type BillingAccountsSkusPriceService struct {
248 s *Service
249 }
250
251 func NewBillingAccountsSkusPricesService(s *Service) *BillingAccountsSkusPricesService {
252 rs := &BillingAccountsSkusPricesService{s: s}
253 return rs
254 }
255
256 type BillingAccountsSkusPricesService struct {
257 s *Service
258 }
259
260 func NewSkuGroupsService(s *Service) *SkuGroupsService {
261 rs := &SkuGroupsService{s: s}
262 rs.Skus = NewSkuGroupsSkusService(s)
263 return rs
264 }
265
266 type SkuGroupsService struct {
267 s *Service
268
269 Skus *SkuGroupsSkusService
270 }
271
272 func NewSkuGroupsSkusService(s *Service) *SkuGroupsSkusService {
273 rs := &SkuGroupsSkusService{s: s}
274 return rs
275 }
276
277 type SkuGroupsSkusService struct {
278 s *Service
279 }
280
281 func NewSkusService(s *Service) *SkusService {
282 rs := &SkusService{s: s}
283 rs.Price = NewSkusPriceService(s)
284 rs.Prices = NewSkusPricesService(s)
285 return rs
286 }
287
288 type SkusService struct {
289 s *Service
290
291 Price *SkusPriceService
292
293 Prices *SkusPricesService
294 }
295
296 func NewSkusPriceService(s *Service) *SkusPriceService {
297 rs := &SkusPriceService{s: s}
298 return rs
299 }
300
301 type SkusPriceService struct {
302 s *Service
303 }
304
305 func NewSkusPricesService(s *Service) *SkusPricesService {
306 rs := &SkusPricesService{s: s}
307 return rs
308 }
309
310 type SkusPricesService struct {
311 s *Service
312 }
313
314 func NewV1betaService(s *Service) *V1betaService {
315 rs := &V1betaService{s: s}
316 return rs
317 }
318
319 type V1betaService struct {
320 s *Service
321 }
322
323
324 type CacheFillRegions struct {
325
326
327
328
329
330
331
332
333
334
335
336 DestinationRegion string `json:"destinationRegion,omitempty"`
337
338
339
340
341
342
343
344
345
346 SourceRegion string `json:"sourceRegion,omitempty"`
347
348
349
350
351
352 ForceSendFields []string `json:"-"`
353
354
355
356
357 NullFields []string `json:"-"`
358 }
359
360 func (s *CacheFillRegions) MarshalJSON() ([]byte, error) {
361 type NoMethod CacheFillRegions
362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
363 }
364
365
366 type CloudCdnEgressWorkload struct {
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382 CacheEgressDestination string `json:"cacheEgressDestination,omitempty"`
383
384
385
386
387 CacheEgressRate *Usage `json:"cacheEgressRate,omitempty"`
388
389
390
391
392
393 ForceSendFields []string `json:"-"`
394
395
396
397
398 NullFields []string `json:"-"`
399 }
400
401 func (s *CloudCdnEgressWorkload) MarshalJSON() ([]byte, error) {
402 type NoMethod CloudCdnEgressWorkload
403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
404 }
405
406
407 type CloudCdnWorkload struct {
408
409
410
411
412
413
414
415
416 CacheFillOriginService string `json:"cacheFillOriginService,omitempty"`
417
418
419 CacheFillRate *Usage `json:"cacheFillRate,omitempty"`
420
421
422
423 CacheFillRegions *CacheFillRegions `json:"cacheFillRegions,omitempty"`
424
425
426 CacheLookUpRate *Usage `json:"cacheLookUpRate,omitempty"`
427
428
429
430
431
432 ForceSendFields []string `json:"-"`
433
434
435
436
437 NullFields []string `json:"-"`
438 }
439
440 func (s *CloudCdnWorkload) MarshalJSON() ([]byte, error) {
441 type NoMethod CloudCdnWorkload
442 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
443 }
444
445
446
447
448 type CloudInterconnectEgressWorkload struct {
449
450
451
452
453 EgressRate *Usage `json:"egressRate,omitempty"`
454
455
456
457
458
459
460
461
462
463
464
465
466 InterconnectConnectionLocation string `json:"interconnectConnectionLocation,omitempty"`
467
468
469
470
471
472 ForceSendFields []string `json:"-"`
473
474
475
476
477 NullFields []string `json:"-"`
478 }
479
480 func (s *CloudInterconnectEgressWorkload) MarshalJSON() ([]byte, error) {
481 type NoMethod CloudInterconnectEgressWorkload
482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
483 }
484
485
486 type CloudInterconnectWorkload struct {
487
488 InterconnectAttachments []*VlanAttachment `json:"interconnectAttachments,omitempty"`
489
490
491
492
493
494
495 InterconnectType string `json:"interconnectType,omitempty"`
496
497
498
499
500
501
502 LinkType string `json:"linkType,omitempty"`
503
504
505 ProvisionedLinkCount *Usage `json:"provisionedLinkCount,omitempty"`
506
507
508
509
510
511 ForceSendFields []string `json:"-"`
512
513
514
515
516 NullFields []string `json:"-"`
517 }
518
519 func (s *CloudInterconnectWorkload) MarshalJSON() ([]byte, error) {
520 type NoMethod CloudInterconnectWorkload
521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
522 }
523
524
525
526
527
528
529 type CloudStorageEgressWorkload struct {
530
531
532
533
534
535
536
537
538
539 DestinationContinent string `json:"destinationContinent,omitempty"`
540
541
542
543
544
545 EgressRate *Usage `json:"egressRate,omitempty"`
546
547
548
549
550
551
552
553
554
555 SourceContinent string `json:"sourceContinent,omitempty"`
556
557
558
559
560
561 ForceSendFields []string `json:"-"`
562
563
564
565
566 NullFields []string `json:"-"`
567 }
568
569 func (s *CloudStorageEgressWorkload) MarshalJSON() ([]byte, error) {
570 type NoMethod CloudStorageEgressWorkload
571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
572 }
573
574
575 type CloudStorageWorkload struct {
576
577
578
579 DataRetrieval *Usage `json:"dataRetrieval,omitempty"`
580
581
582
583 DataStored *Usage `json:"dataStored,omitempty"`
584
585 DualRegion *DualRegional `json:"dualRegion,omitempty"`
586
587 MultiRegion *MultiRegional `json:"multiRegion,omitempty"`
588
589
590
591
592
593 OperationA *Usage `json:"operationA,omitempty"`
594
595
596
597
598
599 OperationB *Usage `json:"operationB,omitempty"`
600
601 Region *Regional `json:"region,omitempty"`
602
603
604
605 StorageClass string `json:"storageClass,omitempty"`
606
607
608
609
610
611 ForceSendFields []string `json:"-"`
612
613
614
615
616 NullFields []string `json:"-"`
617 }
618
619 func (s *CloudStorageWorkload) MarshalJSON() ([]byte, error) {
620 type NoMethod CloudStorageWorkload
621 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
622 }
623
624
625
626
627
628
629
630 type Commitment struct {
631
632
633
634 Name string `json:"name,omitempty"`
635
636 VmResourceBasedCud *VmResourceBasedCud `json:"vmResourceBasedCud,omitempty"`
637
638
639
640
641
642 ForceSendFields []string `json:"-"`
643
644
645
646
647 NullFields []string `json:"-"`
648 }
649
650 func (s *Commitment) MarshalJSON() ([]byte, error) {
651 type NoMethod Commitment
652 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
653 }
654
655
656 type CommitmentCostEstimate struct {
657
658 CommitmentTotalCostEstimate *CostEstimate `json:"commitmentTotalCostEstimate,omitempty"`
659
660 Name string `json:"name,omitempty"`
661
662 SkuCostEstimates []*SkuCostEstimate `json:"skuCostEstimates,omitempty"`
663
664
665
666
667
668 ForceSendFields []string `json:"-"`
669
670
671
672
673 NullFields []string `json:"-"`
674 }
675
676 func (s *CommitmentCostEstimate) MarshalJSON() ([]byte, error) {
677 type NoMethod CommitmentCostEstimate
678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
679 }
680
681
682
683 type ComputeVmWorkload struct {
684
685
686 EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"`
687
688 GuestAccelerator *GuestAccelerator `json:"guestAccelerator,omitempty"`
689
690
691 InstancesRunning *Usage `json:"instancesRunning,omitempty"`
692
693 Licenses []string `json:"licenses,omitempty"`
694
695 MachineType *MachineType `json:"machineType,omitempty"`
696
697
698 PersistentDisks []*PersistentDisk `json:"persistentDisks,omitempty"`
699
700 Preemptible bool `json:"preemptible,omitempty"`
701
702
703 Region string `json:"region,omitempty"`
704
705
706
707
708
709 ForceSendFields []string `json:"-"`
710
711
712
713
714 NullFields []string `json:"-"`
715 }
716
717 func (s *ComputeVmWorkload) MarshalJSON() ([]byte, error) {
718 type NoMethod ComputeVmWorkload
719 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
720 }
721
722
723 type CostEstimate struct {
724
725 CreditEstimates []*CreditEstimate `json:"creditEstimates,omitempty"`
726
727 NetCostEstimate *Money `json:"netCostEstimate,omitempty"`
728
729 PreCreditCostEstimate *Money `json:"preCreditCostEstimate,omitempty"`
730
731
732
733
734
735 ForceSendFields []string `json:"-"`
736
737
738
739
740 NullFields []string `json:"-"`
741 }
742
743 func (s *CostEstimate) MarshalJSON() ([]byte, error) {
744 type NoMethod CostEstimate
745 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
746 }
747
748
749
750 type CostEstimationResult struct {
751
752 CurrencyCode string `json:"currencyCode,omitempty"`
753
754
755 SegmentCostEstimates []*SegmentCostEstimate `json:"segmentCostEstimates,omitempty"`
756
757 Skus []*Sku `json:"skus,omitempty"`
758
759
760
761
762
763 ForceSendFields []string `json:"-"`
764
765
766
767
768 NullFields []string `json:"-"`
769 }
770
771 func (s *CostEstimationResult) MarshalJSON() ([]byte, error) {
772 type NoMethod CostEstimationResult
773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
774 }
775
776
777
778
779 type CostScenario struct {
780
781
782
783
784 Commitments []*Commitment `json:"commitments,omitempty"`
785
786 ScenarioConfig *ScenarioConfig `json:"scenarioConfig,omitempty"`
787
788
789 Workloads []*Workload `json:"workloads,omitempty"`
790
791
792
793
794
795 ForceSendFields []string `json:"-"`
796
797
798
799
800 NullFields []string `json:"-"`
801 }
802
803 func (s *CostScenario) MarshalJSON() ([]byte, error) {
804 type NoMethod CostScenario
805 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
806 }
807
808
809 type CreditEstimate struct {
810
811 CreditAmount *Money `json:"creditAmount,omitempty"`
812
813 CreditDescription string `json:"creditDescription,omitempty"`
814
815 CreditType string `json:"creditType,omitempty"`
816
817
818
819
820
821 ForceSendFields []string `json:"-"`
822
823
824
825
826 NullFields []string `json:"-"`
827 }
828
829 func (s *CreditEstimate) MarshalJSON() ([]byte, error) {
830 type NoMethod CreditEstimate
831 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
832 }
833
834
835 type CustomMachineType struct {
836
837
838
839 MachineSeries string `json:"machineSeries,omitempty"`
840
841
842
843
844 MemorySizeGb float64 `json:"memorySizeGb,omitempty"`
845
846
847
848 VirtualCpuCount int64 `json:"virtualCpuCount,omitempty,string"`
849
850
851
852
853
854 ForceSendFields []string `json:"-"`
855
856
857
858
859 NullFields []string `json:"-"`
860 }
861
862 func (s *CustomMachineType) MarshalJSON() ([]byte, error) {
863 type NoMethod CustomMachineType
864 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
865 }
866
867 func (s *CustomMachineType) UnmarshalJSON(data []byte) error {
868 type NoMethod CustomMachineType
869 var s1 struct {
870 MemorySizeGb gensupport.JSONFloat64 `json:"memorySizeGb"`
871 *NoMethod
872 }
873 s1.NoMethod = (*NoMethod)(s)
874 if err := json.Unmarshal(data, &s1); err != nil {
875 return err
876 }
877 s.MemorySizeGb = float64(s1.MemorySizeGb)
878 return nil
879 }
880
881
882
883
884
885
886 type Decimal struct {
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923 Value string `json:"value,omitempty"`
924
925
926
927
928
929 ForceSendFields []string `json:"-"`
930
931
932
933
934 NullFields []string `json:"-"`
935 }
936
937 func (s *Decimal) MarshalJSON() ([]byte, error) {
938 type NoMethod Decimal
939 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
940 }
941
942
943 type DualRegional struct {
944
945
946
947 Name string `json:"name,omitempty"`
948
949
950
951
952
953 ForceSendFields []string `json:"-"`
954
955
956
957
958 NullFields []string `json:"-"`
959 }
960
961 func (s *DualRegional) MarshalJSON() ([]byte, error) {
962 type NoMethod DualRegional
963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
964 }
965
966
967
968 type EstimateCostScenarioForBillingAccountRequest struct {
969
970 CostScenario *CostScenario `json:"costScenario,omitempty"`
971
972
973
974
975
976 ForceSendFields []string `json:"-"`
977
978
979
980
981 NullFields []string `json:"-"`
982 }
983
984 func (s *EstimateCostScenarioForBillingAccountRequest) MarshalJSON() ([]byte, error) {
985 type NoMethod EstimateCostScenarioForBillingAccountRequest
986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
987 }
988
989
990
991 type EstimateCostScenarioForBillingAccountResponse struct {
992
993 CostEstimationResult *CostEstimationResult `json:"costEstimationResult,omitempty"`
994
995
996 googleapi.ServerResponse `json:"-"`
997
998
999
1000
1001
1002 ForceSendFields []string `json:"-"`
1003
1004
1005
1006
1007 NullFields []string `json:"-"`
1008 }
1009
1010 func (s *EstimateCostScenarioForBillingAccountResponse) MarshalJSON() ([]byte, error) {
1011 type NoMethod EstimateCostScenarioForBillingAccountResponse
1012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1013 }
1014
1015
1016
1017 type EstimateCostScenarioWithListPriceRequest struct {
1018
1019 CostScenario *CostScenario `json:"costScenario,omitempty"`
1020
1021
1022
1023
1024
1025 ForceSendFields []string `json:"-"`
1026
1027
1028
1029
1030 NullFields []string `json:"-"`
1031 }
1032
1033 func (s *EstimateCostScenarioWithListPriceRequest) MarshalJSON() ([]byte, error) {
1034 type NoMethod EstimateCostScenarioWithListPriceRequest
1035 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1036 }
1037
1038
1039
1040 type EstimateCostScenarioWithListPriceResponse struct {
1041
1042 CostEstimationResult *CostEstimationResult `json:"costEstimationResult,omitempty"`
1043
1044
1045 googleapi.ServerResponse `json:"-"`
1046
1047
1048
1049
1050
1051 ForceSendFields []string `json:"-"`
1052
1053
1054
1055
1056 NullFields []string `json:"-"`
1057 }
1058
1059 func (s *EstimateCostScenarioWithListPriceResponse) MarshalJSON() ([]byte, error) {
1060 type NoMethod EstimateCostScenarioWithListPriceResponse
1061 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1062 }
1063
1064
1065 type EstimationTimePoint struct {
1066
1067
1068 EstimationTimeFrameOffset string `json:"estimationTimeFrameOffset,omitempty"`
1069
1070
1071
1072
1073
1074 ForceSendFields []string `json:"-"`
1075
1076
1077
1078
1079 NullFields []string `json:"-"`
1080 }
1081
1082 func (s *EstimationTimePoint) MarshalJSON() ([]byte, error) {
1083 type NoMethod EstimationTimePoint
1084 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1085 }
1086
1087
1088
1089
1090 type GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo struct {
1091
1092
1093
1094
1095
1096
1097
1098 Interval string `json:"interval,omitempty"`
1099
1100
1101
1102
1103
1104
1105
1106
1107 Level string `json:"level,omitempty"`
1108
1109
1110
1111
1112
1113 ForceSendFields []string `json:"-"`
1114
1115
1116
1117
1118 NullFields []string `json:"-"`
1119 }
1120
1121 func (s *GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo) MarshalJSON() ([]byte, error) {
1122 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo
1123 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1124 }
1125
1126
1127
1128 type GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice struct {
1129
1130 CurrencyCode string `json:"currencyCode,omitempty"`
1131
1132 Name string `json:"name,omitempty"`
1133
1134 PriceReason *GoogleCloudBillingBillingaccountpricesV1betaPriceReason `json:"priceReason,omitempty"`
1135
1136
1137 Rate *GoogleCloudBillingBillingaccountpricesV1betaRate `json:"rate,omitempty"`
1138
1139
1140 ValueType string `json:"valueType,omitempty"`
1141
1142
1143 googleapi.ServerResponse `json:"-"`
1144
1145
1146
1147
1148
1149 ForceSendFields []string `json:"-"`
1150
1151
1152
1153
1154 NullFields []string `json:"-"`
1155 }
1156
1157 func (s *GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice) MarshalJSON() ([]byte, error) {
1158 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice
1159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1160 }
1161
1162
1163
1164 type GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice struct {
1165 }
1166
1167
1168
1169 type GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount struct {
1170
1171 DiscountPercent *Decimal `json:"discountPercent,omitempty"`
1172
1173
1174
1175 DiscountScopeType string `json:"discountScopeType,omitempty"`
1176
1177 FixTime string `json:"fixTime,omitempty"`
1178
1179 SkuGroup string `json:"skuGroup,omitempty"`
1180
1181
1182
1183
1184
1185 ForceSendFields []string `json:"-"`
1186
1187
1188
1189
1190 NullFields []string `json:"-"`
1191 }
1192
1193 func (s *GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount) MarshalJSON() ([]byte, error) {
1194 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount
1195 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1196 }
1197
1198
1199
1200 type GoogleCloudBillingBillingaccountpricesV1betaFixedPrice struct {
1201 }
1202
1203
1204
1205
1206 type GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount struct {
1207
1208 DiscountPercent *Decimal `json:"discountPercent,omitempty"`
1209
1210
1211
1212 DiscountScopeType string `json:"discountScopeType,omitempty"`
1213
1214 SkuGroup string `json:"skuGroup,omitempty"`
1215
1216
1217
1218
1219
1220 ForceSendFields []string `json:"-"`
1221
1222
1223
1224
1225 NullFields []string `json:"-"`
1226 }
1227
1228 func (s *GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount) MarshalJSON() ([]byte, error) {
1229 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount
1230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1231 }
1232
1233
1234
1235
1236 type GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse struct {
1237
1238 BillingAccountPrices []*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice `json:"billingAccountPrices,omitempty"`
1239
1240
1241
1242 NextPageToken string `json:"nextPageToken,omitempty"`
1243
1244
1245 googleapi.ServerResponse `json:"-"`
1246
1247
1248
1249
1250
1251 ForceSendFields []string `json:"-"`
1252
1253
1254
1255
1256 NullFields []string `json:"-"`
1257 }
1258
1259 func (s *GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) MarshalJSON() ([]byte, error) {
1260 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse
1261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1262 }
1263
1264
1265
1266
1267
1268
1269
1270 type GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling struct {
1271 }
1272
1273
1274
1275
1276
1277 type GoogleCloudBillingBillingaccountpricesV1betaMergedPrice struct {
1278 }
1279
1280
1281
1282 type GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice struct {
1283
1284
1285 SourceSku string `json:"sourceSku,omitempty"`
1286
1287
1288
1289
1290
1291 ForceSendFields []string `json:"-"`
1292
1293
1294
1295
1296 NullFields []string `json:"-"`
1297 }
1298
1299 func (s *GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice) MarshalJSON() ([]byte, error) {
1300 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
1301 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1302 }
1303
1304
1305
1306
1307 type GoogleCloudBillingBillingaccountpricesV1betaPriceReason struct {
1308
1309 DefaultPrice *GoogleCloudBillingBillingaccountpricesV1betaDefaultPrice `json:"defaultPrice,omitempty"`
1310
1311
1312 FixedDiscount *GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount `json:"fixedDiscount,omitempty"`
1313
1314 FixedPrice *GoogleCloudBillingBillingaccountpricesV1betaFixedPrice `json:"fixedPrice,omitempty"`
1315
1316
1317 FloatingDiscount *GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount `json:"floatingDiscount,omitempty"`
1318
1319
1320
1321
1322
1323 ListPriceAsCeiling *GoogleCloudBillingBillingaccountpricesV1betaListPriceAsCeiling `json:"listPriceAsCeiling,omitempty"`
1324
1325 MergedPrice *GoogleCloudBillingBillingaccountpricesV1betaMergedPrice `json:"mergedPrice,omitempty"`
1326
1327 MigratedPrice *GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice `json:"migratedPrice,omitempty"`
1328
1329
1330
1331 Type string `json:"type,omitempty"`
1332
1333
1334
1335
1336
1337 ForceSendFields []string `json:"-"`
1338
1339
1340
1341
1342 NullFields []string `json:"-"`
1343 }
1344
1345 func (s *GoogleCloudBillingBillingaccountpricesV1betaPriceReason) MarshalJSON() ([]byte, error) {
1346 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaPriceReason
1347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1348 }
1349
1350
1351
1352
1353 type GoogleCloudBillingBillingaccountpricesV1betaRate struct {
1354
1355
1356 AggregationInfo *GoogleCloudBillingBillingaccountpricesV1betaAggregationInfo `json:"aggregationInfo,omitempty"`
1357
1358 Tiers []*GoogleCloudBillingBillingaccountpricesV1betaRateTier `json:"tiers,omitempty"`
1359
1360 UnitInfo *GoogleCloudBillingBillingaccountpricesV1betaUnitInfo `json:"unitInfo,omitempty"`
1361
1362
1363
1364
1365
1366 ForceSendFields []string `json:"-"`
1367
1368
1369
1370
1371 NullFields []string `json:"-"`
1372 }
1373
1374 func (s *GoogleCloudBillingBillingaccountpricesV1betaRate) MarshalJSON() ([]byte, error) {
1375 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaRate
1376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1377 }
1378
1379
1380
1381 type GoogleCloudBillingBillingaccountpricesV1betaRateTier struct {
1382
1383 ContractPrice *Money `json:"contractPrice,omitempty"`
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395 EffectiveDiscountPercent *Decimal `json:"effectiveDiscountPercent,omitempty"`
1396
1397 ListPrice *Money `json:"listPrice,omitempty"`
1398
1399
1400 StartAmount *Decimal `json:"startAmount,omitempty"`
1401
1402
1403
1404
1405
1406 ForceSendFields []string `json:"-"`
1407
1408
1409
1410
1411 NullFields []string `json:"-"`
1412 }
1413
1414 func (s *GoogleCloudBillingBillingaccountpricesV1betaRateTier) MarshalJSON() ([]byte, error) {
1415 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaRateTier
1416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1417 }
1418
1419
1420
1421 type GoogleCloudBillingBillingaccountpricesV1betaUnitInfo struct {
1422
1423 Unit string `json:"unit,omitempty"`
1424
1425
1426 UnitDescription string `json:"unitDescription,omitempty"`
1427
1428
1429 UnitQuantity *Decimal `json:"unitQuantity,omitempty"`
1430
1431
1432
1433
1434
1435 ForceSendFields []string `json:"-"`
1436
1437
1438
1439
1440 NullFields []string `json:"-"`
1441 }
1442
1443 func (s *GoogleCloudBillingBillingaccountpricesV1betaUnitInfo) MarshalJSON() ([]byte, error) {
1444 type NoMethod GoogleCloudBillingBillingaccountpricesV1betaUnitInfo
1445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1446 }
1447
1448
1449
1450 type GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService struct {
1451
1452
1453 DisplayName string `json:"displayName,omitempty"`
1454
1455
1456 Name string `json:"name,omitempty"`
1457
1458
1459 ServiceId string `json:"serviceId,omitempty"`
1460
1461
1462 googleapi.ServerResponse `json:"-"`
1463
1464
1465
1466
1467
1468 ForceSendFields []string `json:"-"`
1469
1470
1471
1472
1473 NullFields []string `json:"-"`
1474 }
1475
1476 func (s *GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService) MarshalJSON() ([]byte, error) {
1477 type NoMethod GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService
1478 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1479 }
1480
1481
1482
1483 type GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse struct {
1484
1485 BillingAccountServices []*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService `json:"billingAccountServices,omitempty"`
1486
1487
1488
1489 NextPageToken string `json:"nextPageToken,omitempty"`
1490
1491
1492 googleapi.ServerResponse `json:"-"`
1493
1494
1495
1496
1497
1498 ForceSendFields []string `json:"-"`
1499
1500
1501
1502
1503 NullFields []string `json:"-"`
1504 }
1505
1506 func (s *GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) MarshalJSON() ([]byte, error) {
1507 type NoMethod GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse
1508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1509 }
1510
1511
1512
1513
1514
1515
1516 type GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup struct {
1517
1518
1519 DisplayName string `json:"displayName,omitempty"`
1520
1521
1522
1523 Name string `json:"name,omitempty"`
1524
1525
1526 googleapi.ServerResponse `json:"-"`
1527
1528
1529
1530
1531
1532 ForceSendFields []string `json:"-"`
1533
1534
1535
1536
1537 NullFields []string `json:"-"`
1538 }
1539
1540 func (s *GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup) MarshalJSON() ([]byte, error) {
1541 type NoMethod GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup
1542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1543 }
1544
1545
1546
1547 type GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse struct {
1548
1549
1550 BillingAccountSkuGroups []*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup `json:"billingAccountSkuGroups,omitempty"`
1551
1552
1553
1554 NextPageToken string `json:"nextPageToken,omitempty"`
1555
1556
1557 googleapi.ServerResponse `json:"-"`
1558
1559
1560
1561
1562
1563 ForceSendFields []string `json:"-"`
1564
1565
1566
1567
1568 NullFields []string `json:"-"`
1569 }
1570
1571 func (s *GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) MarshalJSON() ([]byte, error) {
1572 type NoMethod GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse
1573 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1574 }
1575
1576
1577
1578 type GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku struct {
1579
1580
1581 BillingAccountService string `json:"billingAccountService,omitempty"`
1582
1583
1584 DisplayName string `json:"displayName,omitempty"`
1585
1586
1587 GeoTaxonomy *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy `json:"geoTaxonomy,omitempty"`
1588
1589
1590
1591 Name string `json:"name,omitempty"`
1592
1593
1594 ProductTaxonomy *GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy `json:"productTaxonomy,omitempty"`
1595
1596
1597 SkuId string `json:"skuId,omitempty"`
1598
1599
1600 googleapi.ServerResponse `json:"-"`
1601
1602
1603
1604
1605
1606 ForceSendFields []string `json:"-"`
1607
1608
1609
1610
1611 NullFields []string `json:"-"`
1612 }
1613
1614 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku) MarshalJSON() ([]byte, error) {
1615 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku
1616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1617 }
1618
1619
1620
1621
1622 type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy struct {
1623
1624 GlobalMetadata *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal `json:"globalMetadata,omitempty"`
1625
1626
1627 MultiRegionalMetadata *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional `json:"multiRegionalMetadata,omitempty"`
1628
1629 RegionalMetadata *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional `json:"regionalMetadata,omitempty"`
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639 Type string `json:"type,omitempty"`
1640
1641
1642
1643
1644
1645 ForceSendFields []string `json:"-"`
1646
1647
1648
1649
1650 NullFields []string `json:"-"`
1651 }
1652
1653 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy) MarshalJSON() ([]byte, error) {
1654 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomy
1655 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1656 }
1657
1658
1659
1660 type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyGlobal struct {
1661 }
1662
1663
1664
1665 type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional struct {
1666
1667
1668 Regions []*GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion `json:"regions,omitempty"`
1669
1670
1671
1672
1673
1674 ForceSendFields []string `json:"-"`
1675
1676
1677
1678
1679 NullFields []string `json:"-"`
1680 }
1681
1682 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional) MarshalJSON() ([]byte, error) {
1683 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyMultiRegional
1684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1685 }
1686
1687
1688
1689 type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion struct {
1690
1691 Region string `json:"region,omitempty"`
1692
1693
1694
1695
1696
1697 ForceSendFields []string `json:"-"`
1698
1699
1700
1701
1702 NullFields []string `json:"-"`
1703 }
1704
1705 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion) MarshalJSON() ([]byte, error) {
1706 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion
1707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1708 }
1709
1710
1711
1712 type GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional struct {
1713
1714
1715 Region *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegion `json:"region,omitempty"`
1716
1717
1718
1719
1720
1721 ForceSendFields []string `json:"-"`
1722
1723
1724
1725
1726 NullFields []string `json:"-"`
1727 }
1728
1729 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional) MarshalJSON() ([]byte, error) {
1730 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaGeoTaxonomyRegional
1731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1732 }
1733
1734
1735
1736 type GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse struct {
1737
1738 BillingAccountSkuGroupSkus []*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku `json:"billingAccountSkuGroupSkus,omitempty"`
1739
1740
1741
1742 NextPageToken string `json:"nextPageToken,omitempty"`
1743
1744
1745 googleapi.ServerResponse `json:"-"`
1746
1747
1748
1749
1750
1751 ForceSendFields []string `json:"-"`
1752
1753
1754
1755
1756 NullFields []string `json:"-"`
1757 }
1758
1759 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) MarshalJSON() ([]byte, error) {
1760 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse
1761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1762 }
1763
1764
1765
1766
1767 type GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy struct {
1768
1769
1770 TaxonomyCategories []*GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory `json:"taxonomyCategories,omitempty"`
1771
1772
1773
1774
1775
1776 ForceSendFields []string `json:"-"`
1777
1778
1779
1780
1781 NullFields []string `json:"-"`
1782 }
1783
1784 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy) MarshalJSON() ([]byte, error) {
1785 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaProductTaxonomy
1786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1787 }
1788
1789
1790
1791 type GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory struct {
1792
1793 Category string `json:"category,omitempty"`
1794
1795
1796
1797
1798
1799 ForceSendFields []string `json:"-"`
1800
1801
1802
1803
1804 NullFields []string `json:"-"`
1805 }
1806
1807 func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory) MarshalJSON() ([]byte, error) {
1808 type NoMethod GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory
1809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1810 }
1811
1812
1813
1814
1815
1816 type GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku struct {
1817
1818
1819 BillingAccountService string `json:"billingAccountService,omitempty"`
1820
1821
1822 DisplayName string `json:"displayName,omitempty"`
1823
1824 GeoTaxonomy *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy `json:"geoTaxonomy,omitempty"`
1825
1826
1827 Name string `json:"name,omitempty"`
1828
1829
1830 ProductTaxonomy *GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy `json:"productTaxonomy,omitempty"`
1831
1832
1833 SkuId string `json:"skuId,omitempty"`
1834
1835
1836 googleapi.ServerResponse `json:"-"`
1837
1838
1839
1840
1841
1842 ForceSendFields []string `json:"-"`
1843
1844
1845
1846
1847 NullFields []string `json:"-"`
1848 }
1849
1850 func (s *GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku) MarshalJSON() ([]byte, error) {
1851 type NoMethod GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku
1852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1853 }
1854
1855
1856
1857
1858 type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy struct {
1859
1860 GlobalMetadata *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal `json:"globalMetadata,omitempty"`
1861
1862
1863 MultiRegionalMetadata *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional `json:"multiRegionalMetadata,omitempty"`
1864
1865 RegionalMetadata *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional `json:"regionalMetadata,omitempty"`
1866
1867
1868
1869
1870
1871
1872
1873
1874 Type string `json:"type,omitempty"`
1875
1876
1877
1878
1879
1880 ForceSendFields []string `json:"-"`
1881
1882
1883
1884
1885 NullFields []string `json:"-"`
1886 }
1887
1888 func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy) MarshalJSON() ([]byte, error) {
1889 type NoMethod GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomy
1890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1891 }
1892
1893
1894
1895 type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyGlobal struct {
1896 }
1897
1898
1899
1900 type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional struct {
1901
1902
1903 Regions []*GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion `json:"regions,omitempty"`
1904
1905
1906
1907
1908
1909 ForceSendFields []string `json:"-"`
1910
1911
1912
1913
1914 NullFields []string `json:"-"`
1915 }
1916
1917 func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional) MarshalJSON() ([]byte, error) {
1918 type NoMethod GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyMultiRegional
1919 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1920 }
1921
1922
1923
1924 type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion struct {
1925
1926 Region string `json:"region,omitempty"`
1927
1928
1929
1930
1931
1932 ForceSendFields []string `json:"-"`
1933
1934
1935
1936
1937 NullFields []string `json:"-"`
1938 }
1939
1940 func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion) MarshalJSON() ([]byte, error) {
1941 type NoMethod GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion
1942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1943 }
1944
1945
1946
1947 type GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional struct {
1948
1949
1950 Region *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegion `json:"region,omitempty"`
1951
1952
1953
1954
1955
1956 ForceSendFields []string `json:"-"`
1957
1958
1959
1960
1961 NullFields []string `json:"-"`
1962 }
1963
1964 func (s *GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional) MarshalJSON() ([]byte, error) {
1965 type NoMethod GoogleCloudBillingBillingaccountskusV1betaGeoTaxonomyRegional
1966 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1967 }
1968
1969
1970
1971 type GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse struct {
1972
1973 BillingAccountSkus []*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku `json:"billingAccountSkus,omitempty"`
1974
1975
1976
1977 NextPageToken string `json:"nextPageToken,omitempty"`
1978
1979
1980 googleapi.ServerResponse `json:"-"`
1981
1982
1983
1984
1985
1986 ForceSendFields []string `json:"-"`
1987
1988
1989
1990
1991 NullFields []string `json:"-"`
1992 }
1993
1994 func (s *GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) MarshalJSON() ([]byte, error) {
1995 type NoMethod GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse
1996 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1997 }
1998
1999
2000
2001
2002 type GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy struct {
2003
2004
2005 TaxonomyCategories []*GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory `json:"taxonomyCategories,omitempty"`
2006
2007
2008
2009
2010
2011 ForceSendFields []string `json:"-"`
2012
2013
2014
2015
2016 NullFields []string `json:"-"`
2017 }
2018
2019 func (s *GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy) MarshalJSON() ([]byte, error) {
2020 type NoMethod GoogleCloudBillingBillingaccountskusV1betaProductTaxonomy
2021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2022 }
2023
2024
2025
2026 type GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory struct {
2027
2028 Category string `json:"category,omitempty"`
2029
2030
2031
2032
2033
2034 ForceSendFields []string `json:"-"`
2035
2036
2037
2038
2039 NullFields []string `json:"-"`
2040 }
2041
2042 func (s *GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory) MarshalJSON() ([]byte, error) {
2043 type NoMethod GoogleCloudBillingBillingaccountskusV1betaTaxonomyCategory
2044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2045 }
2046
2047
2048
2049 type GoogleCloudBillingPricesV1betaAggregationInfo struct {
2050
2051
2052
2053
2054
2055
2056
2057 Interval string `json:"interval,omitempty"`
2058
2059
2060
2061
2062
2063
2064
2065
2066 Level string `json:"level,omitempty"`
2067
2068
2069
2070
2071
2072 ForceSendFields []string `json:"-"`
2073
2074
2075
2076
2077 NullFields []string `json:"-"`
2078 }
2079
2080 func (s *GoogleCloudBillingPricesV1betaAggregationInfo) MarshalJSON() ([]byte, error) {
2081 type NoMethod GoogleCloudBillingPricesV1betaAggregationInfo
2082 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2083 }
2084
2085
2086
2087 type GoogleCloudBillingPricesV1betaListPricesResponse struct {
2088
2089
2090
2091 NextPageToken string `json:"nextPageToken,omitempty"`
2092
2093 Prices []*GoogleCloudBillingPricesV1betaPrice `json:"prices,omitempty"`
2094
2095
2096 googleapi.ServerResponse `json:"-"`
2097
2098
2099
2100
2101
2102 ForceSendFields []string `json:"-"`
2103
2104
2105
2106
2107 NullFields []string `json:"-"`
2108 }
2109
2110 func (s *GoogleCloudBillingPricesV1betaListPricesResponse) MarshalJSON() ([]byte, error) {
2111 type NoMethod GoogleCloudBillingPricesV1betaListPricesResponse
2112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2113 }
2114
2115
2116
2117 type GoogleCloudBillingPricesV1betaPrice struct {
2118
2119 CurrencyCode string `json:"currencyCode,omitempty"`
2120
2121 Name string `json:"name,omitempty"`
2122
2123
2124 Rate *GoogleCloudBillingPricesV1betaRate `json:"rate,omitempty"`
2125
2126 ValueType string `json:"valueType,omitempty"`
2127
2128
2129 googleapi.ServerResponse `json:"-"`
2130
2131
2132
2133
2134
2135 ForceSendFields []string `json:"-"`
2136
2137
2138
2139
2140 NullFields []string `json:"-"`
2141 }
2142
2143 func (s *GoogleCloudBillingPricesV1betaPrice) MarshalJSON() ([]byte, error) {
2144 type NoMethod GoogleCloudBillingPricesV1betaPrice
2145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2146 }
2147
2148
2149
2150
2151 type GoogleCloudBillingPricesV1betaRate struct {
2152
2153
2154 AggregationInfo *GoogleCloudBillingPricesV1betaAggregationInfo `json:"aggregationInfo,omitempty"`
2155
2156 Tiers []*GoogleCloudBillingPricesV1betaRateTier `json:"tiers,omitempty"`
2157
2158 UnitInfo *GoogleCloudBillingPricesV1betaUnitInfo `json:"unitInfo,omitempty"`
2159
2160
2161
2162
2163
2164 ForceSendFields []string `json:"-"`
2165
2166
2167
2168
2169 NullFields []string `json:"-"`
2170 }
2171
2172 func (s *GoogleCloudBillingPricesV1betaRate) MarshalJSON() ([]byte, error) {
2173 type NoMethod GoogleCloudBillingPricesV1betaRate
2174 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2175 }
2176
2177
2178 type GoogleCloudBillingPricesV1betaRateTier struct {
2179
2180 ListPrice *Money `json:"listPrice,omitempty"`
2181
2182
2183 StartAmount *Decimal `json:"startAmount,omitempty"`
2184
2185
2186
2187
2188
2189 ForceSendFields []string `json:"-"`
2190
2191
2192
2193
2194 NullFields []string `json:"-"`
2195 }
2196
2197 func (s *GoogleCloudBillingPricesV1betaRateTier) MarshalJSON() ([]byte, error) {
2198 type NoMethod GoogleCloudBillingPricesV1betaRateTier
2199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2200 }
2201
2202
2203
2204 type GoogleCloudBillingPricesV1betaUnitInfo struct {
2205
2206 Unit string `json:"unit,omitempty"`
2207
2208
2209 UnitDescription string `json:"unitDescription,omitempty"`
2210
2211
2212 UnitQuantity *Decimal `json:"unitQuantity,omitempty"`
2213
2214
2215
2216
2217
2218 ForceSendFields []string `json:"-"`
2219
2220
2221
2222
2223 NullFields []string `json:"-"`
2224 }
2225
2226 func (s *GoogleCloudBillingPricesV1betaUnitInfo) MarshalJSON() ([]byte, error) {
2227 type NoMethod GoogleCloudBillingPricesV1betaUnitInfo
2228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2229 }
2230
2231
2232
2233 type GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse struct {
2234
2235
2236
2237 NextPageToken string `json:"nextPageToken,omitempty"`
2238
2239 SkuGroups []*GoogleCloudBillingSkugroupsV1betaSkuGroup `json:"skuGroups,omitempty"`
2240
2241
2242 googleapi.ServerResponse `json:"-"`
2243
2244
2245
2246
2247
2248 ForceSendFields []string `json:"-"`
2249
2250
2251
2252
2253 NullFields []string `json:"-"`
2254 }
2255
2256 func (s *GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse) MarshalJSON() ([]byte, error) {
2257 type NoMethod GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse
2258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2259 }
2260
2261
2262
2263
2264
2265
2266 type GoogleCloudBillingSkugroupsV1betaSkuGroup struct {
2267
2268 DisplayName string `json:"displayName,omitempty"`
2269
2270
2271 Name string `json:"name,omitempty"`
2272
2273
2274 googleapi.ServerResponse `json:"-"`
2275
2276
2277
2278
2279
2280 ForceSendFields []string `json:"-"`
2281
2282
2283
2284
2285 NullFields []string `json:"-"`
2286 }
2287
2288 func (s *GoogleCloudBillingSkugroupsV1betaSkuGroup) MarshalJSON() ([]byte, error) {
2289 type NoMethod GoogleCloudBillingSkugroupsV1betaSkuGroup
2290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2291 }
2292
2293
2294
2295
2296 type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy struct {
2297
2298 GlobalMetadata *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal `json:"globalMetadata,omitempty"`
2299
2300
2301 MultiRegionalMetadata *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional `json:"multiRegionalMetadata,omitempty"`
2302
2303 RegionalMetadata *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional `json:"regionalMetadata,omitempty"`
2304
2305
2306
2307
2308
2309
2310
2311
2312 Type string `json:"type,omitempty"`
2313
2314
2315
2316
2317
2318 ForceSendFields []string `json:"-"`
2319
2320
2321
2322
2323 NullFields []string `json:"-"`
2324 }
2325
2326 func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy) MarshalJSON() ([]byte, error) {
2327 type NoMethod GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy
2328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2329 }
2330
2331
2332
2333 type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyGlobal struct {
2334 }
2335
2336
2337
2338 type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional struct {
2339
2340
2341 Regions []*GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion `json:"regions,omitempty"`
2342
2343
2344
2345
2346
2347 ForceSendFields []string `json:"-"`
2348
2349
2350
2351
2352 NullFields []string `json:"-"`
2353 }
2354
2355 func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional) MarshalJSON() ([]byte, error) {
2356 type NoMethod GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyMultiRegional
2357 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2358 }
2359
2360
2361
2362 type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion struct {
2363
2364 Region string `json:"region,omitempty"`
2365
2366
2367
2368
2369
2370 ForceSendFields []string `json:"-"`
2371
2372
2373
2374
2375 NullFields []string `json:"-"`
2376 }
2377
2378 func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion) MarshalJSON() ([]byte, error) {
2379 type NoMethod GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion
2380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2381 }
2382
2383
2384
2385 type GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional struct {
2386
2387
2388 Region *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegion `json:"region,omitempty"`
2389
2390
2391
2392
2393
2394 ForceSendFields []string `json:"-"`
2395
2396
2397
2398
2399 NullFields []string `json:"-"`
2400 }
2401
2402 func (s *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional) MarshalJSON() ([]byte, error) {
2403 type NoMethod GoogleCloudBillingSkugroupskusV1betaGeoTaxonomyRegional
2404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2405 }
2406
2407
2408
2409 type GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse struct {
2410
2411
2412
2413 NextPageToken string `json:"nextPageToken,omitempty"`
2414
2415 SkuGroupSkus []*GoogleCloudBillingSkugroupskusV1betaSkuGroupSku `json:"skuGroupSkus,omitempty"`
2416
2417
2418 googleapi.ServerResponse `json:"-"`
2419
2420
2421
2422
2423
2424 ForceSendFields []string `json:"-"`
2425
2426
2427
2428
2429 NullFields []string `json:"-"`
2430 }
2431
2432 func (s *GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse) MarshalJSON() ([]byte, error) {
2433 type NoMethod GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse
2434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2435 }
2436
2437
2438
2439 type GoogleCloudBillingSkugroupskusV1betaProductTaxonomy struct {
2440
2441
2442 TaxonomyCategories []*GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory `json:"taxonomyCategories,omitempty"`
2443
2444
2445
2446
2447
2448 ForceSendFields []string `json:"-"`
2449
2450
2451
2452
2453 NullFields []string `json:"-"`
2454 }
2455
2456 func (s *GoogleCloudBillingSkugroupskusV1betaProductTaxonomy) MarshalJSON() ([]byte, error) {
2457 type NoMethod GoogleCloudBillingSkugroupskusV1betaProductTaxonomy
2458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2459 }
2460
2461
2462
2463
2464
2465
2466 type GoogleCloudBillingSkugroupskusV1betaSkuGroupSku struct {
2467
2468
2469 DisplayName string `json:"displayName,omitempty"`
2470
2471 GeoTaxonomy *GoogleCloudBillingSkugroupskusV1betaGeoTaxonomy `json:"geoTaxonomy,omitempty"`
2472
2473
2474 Name string `json:"name,omitempty"`
2475
2476 ProductTaxonomy *GoogleCloudBillingSkugroupskusV1betaProductTaxonomy `json:"productTaxonomy,omitempty"`
2477
2478 Service string `json:"service,omitempty"`
2479
2480
2481 SkuId string `json:"skuId,omitempty"`
2482
2483
2484 googleapi.ServerResponse `json:"-"`
2485
2486
2487
2488
2489
2490 ForceSendFields []string `json:"-"`
2491
2492
2493
2494
2495 NullFields []string `json:"-"`
2496 }
2497
2498 func (s *GoogleCloudBillingSkugroupskusV1betaSkuGroupSku) MarshalJSON() ([]byte, error) {
2499 type NoMethod GoogleCloudBillingSkugroupskusV1betaSkuGroupSku
2500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2501 }
2502
2503
2504
2505 type GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory struct {
2506
2507 Category string `json:"category,omitempty"`
2508
2509
2510
2511
2512
2513 ForceSendFields []string `json:"-"`
2514
2515
2516
2517
2518 NullFields []string `json:"-"`
2519 }
2520
2521 func (s *GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory) MarshalJSON() ([]byte, error) {
2522 type NoMethod GoogleCloudBillingSkugroupskusV1betaTaxonomyCategory
2523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2524 }
2525
2526
2527
2528 type GuestAccelerator struct {
2529
2530
2531 AcceleratorCount int64 `json:"acceleratorCount,omitempty,string"`
2532
2533
2534 AcceleratorType string `json:"acceleratorType,omitempty"`
2535
2536
2537
2538
2539
2540 ForceSendFields []string `json:"-"`
2541
2542
2543
2544
2545 NullFields []string `json:"-"`
2546 }
2547
2548 func (s *GuestAccelerator) MarshalJSON() ([]byte, error) {
2549 type NoMethod GuestAccelerator
2550 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2551 }
2552
2553
2554 type InterRegionEgress struct {
2555
2556
2557
2558 DestinationRegion string `json:"destinationRegion,omitempty"`
2559
2560
2561 EgressRate *Usage `json:"egressRate,omitempty"`
2562
2563
2564
2565 SourceRegion string `json:"sourceRegion,omitempty"`
2566
2567
2568
2569
2570
2571 ForceSendFields []string `json:"-"`
2572
2573
2574
2575
2576 NullFields []string `json:"-"`
2577 }
2578
2579 func (s *InterRegionEgress) MarshalJSON() ([]byte, error) {
2580 type NoMethod InterRegionEgress
2581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2582 }
2583
2584
2585
2586
2587 type IntraRegionEgress struct {
2588
2589
2590 EgressRate *Usage `json:"egressRate,omitempty"`
2591
2592
2593
2594
2595
2596 ForceSendFields []string `json:"-"`
2597
2598
2599
2600
2601 NullFields []string `json:"-"`
2602 }
2603
2604 func (s *IntraRegionEgress) MarshalJSON() ([]byte, error) {
2605 type NoMethod IntraRegionEgress
2606 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2607 }
2608
2609
2610 type MachineType struct {
2611 CustomMachineType *CustomMachineType `json:"customMachineType,omitempty"`
2612 PredefinedMachineType *PredefinedMachineType `json:"predefinedMachineType,omitempty"`
2613
2614
2615
2616
2617
2618 ForceSendFields []string `json:"-"`
2619
2620
2621
2622
2623 NullFields []string `json:"-"`
2624 }
2625
2626 func (s *MachineType) MarshalJSON() ([]byte, error) {
2627 type NoMethod MachineType
2628 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2629 }
2630
2631
2632 type Money struct {
2633
2634 CurrencyCode string `json:"currencyCode,omitempty"`
2635
2636
2637
2638
2639
2640 Nanos int64 `json:"nanos,omitempty"`
2641
2642
2643 Units int64 `json:"units,omitempty,string"`
2644
2645
2646
2647
2648
2649 ForceSendFields []string `json:"-"`
2650
2651
2652
2653
2654 NullFields []string `json:"-"`
2655 }
2656
2657 func (s *Money) MarshalJSON() ([]byte, error) {
2658 type NoMethod Money
2659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2660 }
2661
2662
2663 type MultiRegional struct {
2664
2665
2666
2667 Name string `json:"name,omitempty"`
2668
2669
2670
2671
2672
2673 ForceSendFields []string `json:"-"`
2674
2675
2676
2677
2678 NullFields []string `json:"-"`
2679 }
2680
2681 func (s *MultiRegional) MarshalJSON() ([]byte, error) {
2682 type NoMethod MultiRegional
2683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2684 }
2685
2686
2687 type PersistentDisk struct {
2688
2689 DiskSize *Usage `json:"diskSize,omitempty"`
2690
2691
2692
2693 DiskType string `json:"diskType,omitempty"`
2694
2695
2696
2697 ProvisionedIops *Usage `json:"provisionedIops,omitempty"`
2698
2699
2700
2701
2702
2703
2704
2705
2706 Scope string `json:"scope,omitempty"`
2707
2708
2709
2710
2711
2712 ForceSendFields []string `json:"-"`
2713
2714
2715
2716
2717 NullFields []string `json:"-"`
2718 }
2719
2720 func (s *PersistentDisk) MarshalJSON() ([]byte, error) {
2721 type NoMethod PersistentDisk
2722 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2723 }
2724
2725
2726 type PredefinedMachineType struct {
2727
2728
2729
2730 MachineType string `json:"machineType,omitempty"`
2731
2732
2733
2734
2735
2736 ForceSendFields []string `json:"-"`
2737
2738
2739
2740
2741 NullFields []string `json:"-"`
2742 }
2743
2744 func (s *PredefinedMachineType) MarshalJSON() ([]byte, error) {
2745 type NoMethod PredefinedMachineType
2746 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2747 }
2748
2749
2750
2751 type PremiumTierEgressWorkload struct {
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769 DestinationContinent string `json:"destinationContinent,omitempty"`
2770
2771
2772
2773 EgressRate *Usage `json:"egressRate,omitempty"`
2774
2775
2776 SourceRegion string `json:"sourceRegion,omitempty"`
2777
2778
2779
2780
2781
2782 ForceSendFields []string `json:"-"`
2783
2784
2785
2786
2787 NullFields []string `json:"-"`
2788 }
2789
2790 func (s *PremiumTierEgressWorkload) MarshalJSON() ([]byte, error) {
2791 type NoMethod PremiumTierEgressWorkload
2792 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2793 }
2794
2795
2796 type Price struct {
2797
2798
2799 EffectiveTime *EstimationTimePoint `json:"effectiveTime,omitempty"`
2800
2801 PriceType string `json:"priceType,omitempty"`
2802
2803 Rate *Rate `json:"rate,omitempty"`
2804
2805
2806
2807
2808
2809 ForceSendFields []string `json:"-"`
2810
2811
2812
2813
2814 NullFields []string `json:"-"`
2815 }
2816
2817 func (s *Price) MarshalJSON() ([]byte, error) {
2818 type NoMethod Price
2819 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2820 }
2821
2822
2823 type Rate struct {
2824
2825 Tiers []*RateTier `json:"tiers,omitempty"`
2826
2827
2828
2829 Unit string `json:"unit,omitempty"`
2830
2831
2832 UnitCount float64 `json:"unitCount,omitempty"`
2833
2834
2835
2836
2837
2838 ForceSendFields []string `json:"-"`
2839
2840
2841
2842
2843 NullFields []string `json:"-"`
2844 }
2845
2846 func (s *Rate) MarshalJSON() ([]byte, error) {
2847 type NoMethod Rate
2848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2849 }
2850
2851 func (s *Rate) UnmarshalJSON(data []byte) error {
2852 type NoMethod Rate
2853 var s1 struct {
2854 UnitCount gensupport.JSONFloat64 `json:"unitCount"`
2855 *NoMethod
2856 }
2857 s1.NoMethod = (*NoMethod)(s)
2858 if err := json.Unmarshal(data, &s1); err != nil {
2859 return err
2860 }
2861 s.UnitCount = float64(s1.UnitCount)
2862 return nil
2863 }
2864
2865
2866 type RateTier struct {
2867
2868 Price *Money `json:"price,omitempty"`
2869
2870
2871
2872 StartAmount float64 `json:"startAmount,omitempty"`
2873
2874
2875
2876
2877
2878 ForceSendFields []string `json:"-"`
2879
2880
2881
2882
2883 NullFields []string `json:"-"`
2884 }
2885
2886 func (s *RateTier) MarshalJSON() ([]byte, error) {
2887 type NoMethod RateTier
2888 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2889 }
2890
2891 func (s *RateTier) UnmarshalJSON(data []byte) error {
2892 type NoMethod RateTier
2893 var s1 struct {
2894 StartAmount gensupport.JSONFloat64 `json:"startAmount"`
2895 *NoMethod
2896 }
2897 s1.NoMethod = (*NoMethod)(s)
2898 if err := json.Unmarshal(data, &s1); err != nil {
2899 return err
2900 }
2901 s.StartAmount = float64(s1.StartAmount)
2902 return nil
2903 }
2904
2905
2906 type Regional struct {
2907
2908
2909
2910 Name string `json:"name,omitempty"`
2911
2912
2913
2914
2915
2916 ForceSendFields []string `json:"-"`
2917
2918
2919
2920
2921 NullFields []string `json:"-"`
2922 }
2923
2924 func (s *Regional) MarshalJSON() ([]byte, error) {
2925 type NoMethod Regional
2926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2927 }
2928
2929
2930
2931 type ScenarioConfig struct {
2932
2933
2934
2935
2936
2937
2938
2939 EstimateDuration string `json:"estimateDuration,omitempty"`
2940
2941
2942
2943
2944
2945 ForceSendFields []string `json:"-"`
2946
2947
2948
2949
2950 NullFields []string `json:"-"`
2951 }
2952
2953 func (s *ScenarioConfig) MarshalJSON() ([]byte, error) {
2954 type NoMethod ScenarioConfig
2955 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2956 }
2957
2958
2959 type SegmentCostEstimate struct {
2960
2961 CommitmentCostEstimates []*CommitmentCostEstimate `json:"commitmentCostEstimates,omitempty"`
2962
2963 SegmentStartTime *EstimationTimePoint `json:"segmentStartTime,omitempty"`
2964
2965 SegmentTotalCostEstimate *CostEstimate `json:"segmentTotalCostEstimate,omitempty"`
2966
2967 WorkloadCostEstimates []*WorkloadCostEstimate `json:"workloadCostEstimates,omitempty"`
2968
2969
2970
2971
2972
2973 ForceSendFields []string `json:"-"`
2974
2975
2976
2977
2978 NullFields []string `json:"-"`
2979 }
2980
2981 func (s *SegmentCostEstimate) MarshalJSON() ([]byte, error) {
2982 type NoMethod SegmentCostEstimate
2983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2984 }
2985
2986
2987 type Sku struct {
2988
2989
2990 DisplayName string `json:"displayName,omitempty"`
2991
2992
2993
2994 Prices []*Price `json:"prices,omitempty"`
2995
2996
2997 Sku string `json:"sku,omitempty"`
2998
2999
3000
3001
3002
3003 ForceSendFields []string `json:"-"`
3004
3005
3006
3007
3008 NullFields []string `json:"-"`
3009 }
3010
3011 func (s *Sku) MarshalJSON() ([]byte, error) {
3012 type NoMethod Sku
3013 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3014 }
3015
3016
3017 type SkuCostEstimate struct {
3018
3019 CostEstimate *CostEstimate `json:"costEstimate,omitempty"`
3020
3021
3022
3023 Sku string `json:"sku,omitempty"`
3024
3025 UsageAmount float64 `json:"usageAmount,omitempty"`
3026
3027 UsageUnit string `json:"usageUnit,omitempty"`
3028
3029
3030
3031
3032
3033 ForceSendFields []string `json:"-"`
3034
3035
3036
3037
3038 NullFields []string `json:"-"`
3039 }
3040
3041 func (s *SkuCostEstimate) MarshalJSON() ([]byte, error) {
3042 type NoMethod SkuCostEstimate
3043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3044 }
3045
3046 func (s *SkuCostEstimate) UnmarshalJSON(data []byte) error {
3047 type NoMethod SkuCostEstimate
3048 var s1 struct {
3049 UsageAmount gensupport.JSONFloat64 `json:"usageAmount"`
3050 *NoMethod
3051 }
3052 s1.NoMethod = (*NoMethod)(s)
3053 if err := json.Unmarshal(data, &s1); err != nil {
3054 return err
3055 }
3056 s.UsageAmount = float64(s1.UsageAmount)
3057 return nil
3058 }
3059
3060
3061 type StandardTierEgressWorkload struct {
3062
3063
3064
3065 EgressRate *Usage `json:"egressRate,omitempty"`
3066
3067
3068
3069 SourceRegion string `json:"sourceRegion,omitempty"`
3070
3071
3072
3073
3074
3075 ForceSendFields []string `json:"-"`
3076
3077
3078
3079
3080 NullFields []string `json:"-"`
3081 }
3082
3083 func (s *StandardTierEgressWorkload) MarshalJSON() ([]byte, error) {
3084 type NoMethod StandardTierEgressWorkload
3085 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3086 }
3087
3088
3089 type Usage struct {
3090
3091 UsageRateTimeline *UsageRateTimeline `json:"usageRateTimeline,omitempty"`
3092
3093
3094
3095
3096
3097 ForceSendFields []string `json:"-"`
3098
3099
3100
3101
3102 NullFields []string `json:"-"`
3103 }
3104
3105 func (s *Usage) MarshalJSON() ([]byte, error) {
3106 type NoMethod Usage
3107 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3108 }
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120 type UsageRateTimeline struct {
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140 Unit string `json:"unit,omitempty"`
3141
3142
3143
3144 UsageRateTimelineEntries []*UsageRateTimelineEntry `json:"usageRateTimelineEntries,omitempty"`
3145
3146
3147
3148
3149
3150 ForceSendFields []string `json:"-"`
3151
3152
3153
3154
3155 NullFields []string `json:"-"`
3156 }
3157
3158 func (s *UsageRateTimeline) MarshalJSON() ([]byte, error) {
3159 type NoMethod UsageRateTimeline
3160 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3161 }
3162
3163
3164
3165 type UsageRateTimelineEntry struct {
3166
3167
3168
3169
3170 EffectiveTime *EstimationTimePoint `json:"effectiveTime,omitempty"`
3171
3172 UsageRate float64 `json:"usageRate,omitempty"`
3173
3174
3175
3176
3177
3178 ForceSendFields []string `json:"-"`
3179
3180
3181
3182
3183 NullFields []string `json:"-"`
3184 }
3185
3186 func (s *UsageRateTimelineEntry) MarshalJSON() ([]byte, error) {
3187 type NoMethod UsageRateTimelineEntry
3188 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3189 }
3190
3191 func (s *UsageRateTimelineEntry) UnmarshalJSON(data []byte) error {
3192 type NoMethod UsageRateTimelineEntry
3193 var s1 struct {
3194 UsageRate gensupport.JSONFloat64 `json:"usageRate"`
3195 *NoMethod
3196 }
3197 s1.NoMethod = (*NoMethod)(s)
3198 if err := json.Unmarshal(data, &s1); err != nil {
3199 return err
3200 }
3201 s.UsageRate = float64(s1.UsageRate)
3202 return nil
3203 }
3204
3205
3206 type VlanAttachment struct {
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225 Bandwidth string `json:"bandwidth,omitempty"`
3226
3227
3228 VlanCount *Usage `json:"vlanCount,omitempty"`
3229
3230
3231
3232
3233
3234 ForceSendFields []string `json:"-"`
3235
3236
3237
3238
3239 NullFields []string `json:"-"`
3240 }
3241
3242 func (s *VlanAttachment) MarshalJSON() ([]byte, error) {
3243 type NoMethod VlanAttachment
3244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3245 }
3246
3247
3248 type VmResourceBasedCud struct {
3249
3250 GuestAccelerator *GuestAccelerator `json:"guestAccelerator,omitempty"`
3251
3252
3253
3254
3255
3256
3257
3258 MachineSeries string `json:"machineSeries,omitempty"`
3259
3260
3261 MemorySizeGb float64 `json:"memorySizeGb,omitempty"`
3262
3263
3264
3265
3266
3267
3268 Plan string `json:"plan,omitempty"`
3269
3270 Region string `json:"region,omitempty"`
3271
3272
3273 VirtualCpuCount int64 `json:"virtualCpuCount,omitempty,string"`
3274
3275
3276
3277
3278
3279 ForceSendFields []string `json:"-"`
3280
3281
3282
3283
3284 NullFields []string `json:"-"`
3285 }
3286
3287 func (s *VmResourceBasedCud) MarshalJSON() ([]byte, error) {
3288 type NoMethod VmResourceBasedCud
3289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3290 }
3291
3292 func (s *VmResourceBasedCud) UnmarshalJSON(data []byte) error {
3293 type NoMethod VmResourceBasedCud
3294 var s1 struct {
3295 MemorySizeGb gensupport.JSONFloat64 `json:"memorySizeGb"`
3296 *NoMethod
3297 }
3298 s1.NoMethod = (*NoMethod)(s)
3299 if err := json.Unmarshal(data, &s1); err != nil {
3300 return err
3301 }
3302 s.MemorySizeGb = float64(s1.MemorySizeGb)
3303 return nil
3304 }
3305
3306
3307 type VmToVmEgressWorkload struct {
3308 InterRegionEgress *InterRegionEgress `json:"interRegionEgress,omitempty"`
3309 IntraRegionEgress *IntraRegionEgress `json:"intraRegionEgress,omitempty"`
3310
3311
3312
3313
3314
3315 ForceSendFields []string `json:"-"`
3316
3317
3318
3319
3320 NullFields []string `json:"-"`
3321 }
3322
3323 func (s *VmToVmEgressWorkload) MarshalJSON() ([]byte, error) {
3324 type NoMethod VmToVmEgressWorkload
3325 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3326 }
3327
3328
3329
3330
3331
3332 type Workload struct {
3333
3334 CloudCdnEgressWorkload *CloudCdnEgressWorkload `json:"cloudCdnEgressWorkload,omitempty"`
3335
3336 CloudCdnWorkload *CloudCdnWorkload `json:"cloudCdnWorkload,omitempty"`
3337
3338
3339 CloudInterconnectEgressWorkload *CloudInterconnectEgressWorkload `json:"cloudInterconnectEgressWorkload,omitempty"`
3340
3341 CloudInterconnectWorkload *CloudInterconnectWorkload `json:"cloudInterconnectWorkload,omitempty"`
3342
3343 CloudStorageEgressWorkload *CloudStorageEgressWorkload `json:"cloudStorageEgressWorkload,omitempty"`
3344
3345 CloudStorageWorkload *CloudStorageWorkload `json:"cloudStorageWorkload,omitempty"`
3346
3347 ComputeVmWorkload *ComputeVmWorkload `json:"computeVmWorkload,omitempty"`
3348
3349
3350 Name string `json:"name,omitempty"`
3351
3352 PremiumTierEgressWorkload *PremiumTierEgressWorkload `json:"premiumTierEgressWorkload,omitempty"`
3353
3354 StandardTierEgressWorkload *StandardTierEgressWorkload `json:"standardTierEgressWorkload,omitempty"`
3355
3356 VmToVmEgressWorkload *VmToVmEgressWorkload `json:"vmToVmEgressWorkload,omitempty"`
3357
3358
3359
3360
3361
3362 ForceSendFields []string `json:"-"`
3363
3364
3365
3366
3367 NullFields []string `json:"-"`
3368 }
3369
3370 func (s *Workload) MarshalJSON() ([]byte, error) {
3371 type NoMethod Workload
3372 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3373 }
3374
3375
3376 type WorkloadCostEstimate struct {
3377
3378 Name string `json:"name,omitempty"`
3379
3380 SkuCostEstimates []*SkuCostEstimate `json:"skuCostEstimates,omitempty"`
3381
3382 WorkloadTotalCostEstimate *CostEstimate `json:"workloadTotalCostEstimate,omitempty"`
3383
3384
3385
3386
3387
3388 ForceSendFields []string `json:"-"`
3389
3390
3391
3392
3393 NullFields []string `json:"-"`
3394 }
3395
3396 func (s *WorkloadCostEstimate) MarshalJSON() ([]byte, error) {
3397 type NoMethod WorkloadCostEstimate
3398 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3399 }
3400
3401 type BillingAccountsEstimateCostScenarioCall struct {
3402 s *Service
3403 billingAccount string
3404 estimatecostscenarioforbillingaccountrequest *EstimateCostScenarioForBillingAccountRequest
3405 urlParams_ gensupport.URLParams
3406 ctx_ context.Context
3407 header_ http.Header
3408 }
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418 func (r *BillingAccountsService) EstimateCostScenario(billingAccount string, estimatecostscenarioforbillingaccountrequest *EstimateCostScenarioForBillingAccountRequest) *BillingAccountsEstimateCostScenarioCall {
3419 c := &BillingAccountsEstimateCostScenarioCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3420 c.billingAccount = billingAccount
3421 c.estimatecostscenarioforbillingaccountrequest = estimatecostscenarioforbillingaccountrequest
3422 return c
3423 }
3424
3425
3426
3427
3428 func (c *BillingAccountsEstimateCostScenarioCall) Fields(s ...googleapi.Field) *BillingAccountsEstimateCostScenarioCall {
3429 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3430 return c
3431 }
3432
3433
3434 func (c *BillingAccountsEstimateCostScenarioCall) Context(ctx context.Context) *BillingAccountsEstimateCostScenarioCall {
3435 c.ctx_ = ctx
3436 return c
3437 }
3438
3439
3440
3441 func (c *BillingAccountsEstimateCostScenarioCall) Header() http.Header {
3442 if c.header_ == nil {
3443 c.header_ = make(http.Header)
3444 }
3445 return c.header_
3446 }
3447
3448 func (c *BillingAccountsEstimateCostScenarioCall) doRequest(alt string) (*http.Response, error) {
3449 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3450 var body io.Reader = nil
3451 body, err := googleapi.WithoutDataWrapper.JSONReader(c.estimatecostscenarioforbillingaccountrequest)
3452 if err != nil {
3453 return nil, err
3454 }
3455 c.urlParams_.Set("alt", alt)
3456 c.urlParams_.Set("prettyPrint", "false")
3457 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+billingAccount}:estimateCostScenario")
3458 urls += "?" + c.urlParams_.Encode()
3459 req, err := http.NewRequest("POST", urls, body)
3460 if err != nil {
3461 return nil, err
3462 }
3463 req.Header = reqHeaders
3464 googleapi.Expand(req.URL, map[string]string{
3465 "billingAccount": c.billingAccount,
3466 })
3467 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3468 }
3469
3470
3471
3472
3473
3474
3475
3476 func (c *BillingAccountsEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioForBillingAccountResponse, error) {
3477 gensupport.SetOptions(c.urlParams_, opts...)
3478 res, err := c.doRequest("json")
3479 if res != nil && res.StatusCode == http.StatusNotModified {
3480 if res.Body != nil {
3481 res.Body.Close()
3482 }
3483 return nil, gensupport.WrapError(&googleapi.Error{
3484 Code: res.StatusCode,
3485 Header: res.Header,
3486 })
3487 }
3488 if err != nil {
3489 return nil, err
3490 }
3491 defer googleapi.CloseBody(res)
3492 if err := googleapi.CheckResponse(res); err != nil {
3493 return nil, gensupport.WrapError(err)
3494 }
3495 ret := &EstimateCostScenarioForBillingAccountResponse{
3496 ServerResponse: googleapi.ServerResponse{
3497 Header: res.Header,
3498 HTTPStatusCode: res.StatusCode,
3499 },
3500 }
3501 target := &ret
3502 if err := gensupport.DecodeResponse(target, res); err != nil {
3503 return nil, err
3504 }
3505 return ret, nil
3506 }
3507
3508 type BillingAccountsServicesGetCall struct {
3509 s *Service
3510 name string
3511 urlParams_ gensupport.URLParams
3512 ifNoneMatch_ string
3513 ctx_ context.Context
3514 header_ http.Header
3515 }
3516
3517
3518
3519
3520
3521 func (r *BillingAccountsServicesService) Get(name string) *BillingAccountsServicesGetCall {
3522 c := &BillingAccountsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3523 c.name = name
3524 return c
3525 }
3526
3527
3528
3529
3530 func (c *BillingAccountsServicesGetCall) Fields(s ...googleapi.Field) *BillingAccountsServicesGetCall {
3531 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3532 return c
3533 }
3534
3535
3536
3537
3538 func (c *BillingAccountsServicesGetCall) IfNoneMatch(entityTag string) *BillingAccountsServicesGetCall {
3539 c.ifNoneMatch_ = entityTag
3540 return c
3541 }
3542
3543
3544 func (c *BillingAccountsServicesGetCall) Context(ctx context.Context) *BillingAccountsServicesGetCall {
3545 c.ctx_ = ctx
3546 return c
3547 }
3548
3549
3550
3551 func (c *BillingAccountsServicesGetCall) Header() http.Header {
3552 if c.header_ == nil {
3553 c.header_ = make(http.Header)
3554 }
3555 return c.header_
3556 }
3557
3558 func (c *BillingAccountsServicesGetCall) doRequest(alt string) (*http.Response, error) {
3559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3560 if c.ifNoneMatch_ != "" {
3561 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3562 }
3563 var body io.Reader = nil
3564 c.urlParams_.Set("alt", alt)
3565 c.urlParams_.Set("prettyPrint", "false")
3566 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
3567 urls += "?" + c.urlParams_.Encode()
3568 req, err := http.NewRequest("GET", urls, body)
3569 if err != nil {
3570 return nil, err
3571 }
3572 req.Header = reqHeaders
3573 googleapi.Expand(req.URL, map[string]string{
3574 "name": c.name,
3575 })
3576 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3577 }
3578
3579
3580
3581
3582
3583
3584
3585 func (c *BillingAccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService, error) {
3586 gensupport.SetOptions(c.urlParams_, opts...)
3587 res, err := c.doRequest("json")
3588 if res != nil && res.StatusCode == http.StatusNotModified {
3589 if res.Body != nil {
3590 res.Body.Close()
3591 }
3592 return nil, gensupport.WrapError(&googleapi.Error{
3593 Code: res.StatusCode,
3594 Header: res.Header,
3595 })
3596 }
3597 if err != nil {
3598 return nil, err
3599 }
3600 defer googleapi.CloseBody(res)
3601 if err := googleapi.CheckResponse(res); err != nil {
3602 return nil, gensupport.WrapError(err)
3603 }
3604 ret := &GoogleCloudBillingBillingaccountservicesV1betaBillingAccountService{
3605 ServerResponse: googleapi.ServerResponse{
3606 Header: res.Header,
3607 HTTPStatusCode: res.StatusCode,
3608 },
3609 }
3610 target := &ret
3611 if err := gensupport.DecodeResponse(target, res); err != nil {
3612 return nil, err
3613 }
3614 return ret, nil
3615 }
3616
3617 type BillingAccountsServicesListCall struct {
3618 s *Service
3619 parent string
3620 urlParams_ gensupport.URLParams
3621 ifNoneMatch_ string
3622 ctx_ context.Context
3623 header_ http.Header
3624 }
3625
3626
3627
3628
3629
3630 func (r *BillingAccountsServicesService) List(parent string) *BillingAccountsServicesListCall {
3631 c := &BillingAccountsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3632 c.parent = parent
3633 return c
3634 }
3635
3636
3637
3638
3639 func (c *BillingAccountsServicesListCall) PageSize(pageSize int64) *BillingAccountsServicesListCall {
3640 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3641 return c
3642 }
3643
3644
3645
3646
3647 func (c *BillingAccountsServicesListCall) PageToken(pageToken string) *BillingAccountsServicesListCall {
3648 c.urlParams_.Set("pageToken", pageToken)
3649 return c
3650 }
3651
3652
3653
3654
3655 func (c *BillingAccountsServicesListCall) Fields(s ...googleapi.Field) *BillingAccountsServicesListCall {
3656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3657 return c
3658 }
3659
3660
3661
3662
3663 func (c *BillingAccountsServicesListCall) IfNoneMatch(entityTag string) *BillingAccountsServicesListCall {
3664 c.ifNoneMatch_ = entityTag
3665 return c
3666 }
3667
3668
3669 func (c *BillingAccountsServicesListCall) Context(ctx context.Context) *BillingAccountsServicesListCall {
3670 c.ctx_ = ctx
3671 return c
3672 }
3673
3674
3675
3676 func (c *BillingAccountsServicesListCall) Header() http.Header {
3677 if c.header_ == nil {
3678 c.header_ = make(http.Header)
3679 }
3680 return c.header_
3681 }
3682
3683 func (c *BillingAccountsServicesListCall) doRequest(alt string) (*http.Response, error) {
3684 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3685 if c.ifNoneMatch_ != "" {
3686 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3687 }
3688 var body io.Reader = nil
3689 c.urlParams_.Set("alt", alt)
3690 c.urlParams_.Set("prettyPrint", "false")
3691 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/services")
3692 urls += "?" + c.urlParams_.Encode()
3693 req, err := http.NewRequest("GET", urls, body)
3694 if err != nil {
3695 return nil, err
3696 }
3697 req.Header = reqHeaders
3698 googleapi.Expand(req.URL, map[string]string{
3699 "parent": c.parent,
3700 })
3701 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3702 }
3703
3704
3705
3706
3707
3708
3709
3710 func (c *BillingAccountsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse, error) {
3711 gensupport.SetOptions(c.urlParams_, opts...)
3712 res, err := c.doRequest("json")
3713 if res != nil && res.StatusCode == http.StatusNotModified {
3714 if res.Body != nil {
3715 res.Body.Close()
3716 }
3717 return nil, gensupport.WrapError(&googleapi.Error{
3718 Code: res.StatusCode,
3719 Header: res.Header,
3720 })
3721 }
3722 if err != nil {
3723 return nil, err
3724 }
3725 defer googleapi.CloseBody(res)
3726 if err := googleapi.CheckResponse(res); err != nil {
3727 return nil, gensupport.WrapError(err)
3728 }
3729 ret := &GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse{
3730 ServerResponse: googleapi.ServerResponse{
3731 Header: res.Header,
3732 HTTPStatusCode: res.StatusCode,
3733 },
3734 }
3735 target := &ret
3736 if err := gensupport.DecodeResponse(target, res); err != nil {
3737 return nil, err
3738 }
3739 return ret, nil
3740 }
3741
3742
3743
3744
3745 func (c *BillingAccountsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountservicesV1betaListBillingAccountServicesResponse) error) error {
3746 c.ctx_ = ctx
3747 defer c.PageToken(c.urlParams_.Get("pageToken"))
3748 for {
3749 x, err := c.Do()
3750 if err != nil {
3751 return err
3752 }
3753 if err := f(x); err != nil {
3754 return err
3755 }
3756 if x.NextPageToken == "" {
3757 return nil
3758 }
3759 c.PageToken(x.NextPageToken)
3760 }
3761 }
3762
3763 type BillingAccountsSkuGroupsGetCall struct {
3764 s *Service
3765 name string
3766 urlParams_ gensupport.URLParams
3767 ifNoneMatch_ string
3768 ctx_ context.Context
3769 header_ http.Header
3770 }
3771
3772
3773
3774
3775
3776 func (r *BillingAccountsSkuGroupsService) Get(name string) *BillingAccountsSkuGroupsGetCall {
3777 c := &BillingAccountsSkuGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3778 c.name = name
3779 return c
3780 }
3781
3782
3783
3784
3785 func (c *BillingAccountsSkuGroupsGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsGetCall {
3786 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3787 return c
3788 }
3789
3790
3791
3792
3793 func (c *BillingAccountsSkuGroupsGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsGetCall {
3794 c.ifNoneMatch_ = entityTag
3795 return c
3796 }
3797
3798
3799 func (c *BillingAccountsSkuGroupsGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsGetCall {
3800 c.ctx_ = ctx
3801 return c
3802 }
3803
3804
3805
3806 func (c *BillingAccountsSkuGroupsGetCall) Header() http.Header {
3807 if c.header_ == nil {
3808 c.header_ = make(http.Header)
3809 }
3810 return c.header_
3811 }
3812
3813 func (c *BillingAccountsSkuGroupsGetCall) doRequest(alt string) (*http.Response, error) {
3814 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3815 if c.ifNoneMatch_ != "" {
3816 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3817 }
3818 var body io.Reader = nil
3819 c.urlParams_.Set("alt", alt)
3820 c.urlParams_.Set("prettyPrint", "false")
3821 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
3822 urls += "?" + c.urlParams_.Encode()
3823 req, err := http.NewRequest("GET", urls, body)
3824 if err != nil {
3825 return nil, err
3826 }
3827 req.Header = reqHeaders
3828 googleapi.Expand(req.URL, map[string]string{
3829 "name": c.name,
3830 })
3831 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3832 }
3833
3834
3835
3836
3837
3838
3839
3840 func (c *BillingAccountsSkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup, error) {
3841 gensupport.SetOptions(c.urlParams_, opts...)
3842 res, err := c.doRequest("json")
3843 if res != nil && res.StatusCode == http.StatusNotModified {
3844 if res.Body != nil {
3845 res.Body.Close()
3846 }
3847 return nil, gensupport.WrapError(&googleapi.Error{
3848 Code: res.StatusCode,
3849 Header: res.Header,
3850 })
3851 }
3852 if err != nil {
3853 return nil, err
3854 }
3855 defer googleapi.CloseBody(res)
3856 if err := googleapi.CheckResponse(res); err != nil {
3857 return nil, gensupport.WrapError(err)
3858 }
3859 ret := &GoogleCloudBillingBillingaccountskugroupsV1betaBillingAccountSkuGroup{
3860 ServerResponse: googleapi.ServerResponse{
3861 Header: res.Header,
3862 HTTPStatusCode: res.StatusCode,
3863 },
3864 }
3865 target := &ret
3866 if err := gensupport.DecodeResponse(target, res); err != nil {
3867 return nil, err
3868 }
3869 return ret, nil
3870 }
3871
3872 type BillingAccountsSkuGroupsListCall struct {
3873 s *Service
3874 parent string
3875 urlParams_ gensupport.URLParams
3876 ifNoneMatch_ string
3877 ctx_ context.Context
3878 header_ http.Header
3879 }
3880
3881
3882
3883
3884
3885 func (r *BillingAccountsSkuGroupsService) List(parent string) *BillingAccountsSkuGroupsListCall {
3886 c := &BillingAccountsSkuGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3887 c.parent = parent
3888 return c
3889 }
3890
3891
3892
3893
3894 func (c *BillingAccountsSkuGroupsListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsListCall {
3895 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3896 return c
3897 }
3898
3899
3900
3901
3902 func (c *BillingAccountsSkuGroupsListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsListCall {
3903 c.urlParams_.Set("pageToken", pageToken)
3904 return c
3905 }
3906
3907
3908
3909
3910 func (c *BillingAccountsSkuGroupsListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsListCall {
3911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3912 return c
3913 }
3914
3915
3916
3917
3918 func (c *BillingAccountsSkuGroupsListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsListCall {
3919 c.ifNoneMatch_ = entityTag
3920 return c
3921 }
3922
3923
3924 func (c *BillingAccountsSkuGroupsListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsListCall {
3925 c.ctx_ = ctx
3926 return c
3927 }
3928
3929
3930
3931 func (c *BillingAccountsSkuGroupsListCall) Header() http.Header {
3932 if c.header_ == nil {
3933 c.header_ = make(http.Header)
3934 }
3935 return c.header_
3936 }
3937
3938 func (c *BillingAccountsSkuGroupsListCall) doRequest(alt string) (*http.Response, error) {
3939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
3940 if c.ifNoneMatch_ != "" {
3941 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
3942 }
3943 var body io.Reader = nil
3944 c.urlParams_.Set("alt", alt)
3945 c.urlParams_.Set("prettyPrint", "false")
3946 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skuGroups")
3947 urls += "?" + c.urlParams_.Encode()
3948 req, err := http.NewRequest("GET", urls, body)
3949 if err != nil {
3950 return nil, err
3951 }
3952 req.Header = reqHeaders
3953 googleapi.Expand(req.URL, map[string]string{
3954 "parent": c.parent,
3955 })
3956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3957 }
3958
3959
3960
3961
3962
3963
3964
3965 func (c *BillingAccountsSkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse, error) {
3966 gensupport.SetOptions(c.urlParams_, opts...)
3967 res, err := c.doRequest("json")
3968 if res != nil && res.StatusCode == http.StatusNotModified {
3969 if res.Body != nil {
3970 res.Body.Close()
3971 }
3972 return nil, gensupport.WrapError(&googleapi.Error{
3973 Code: res.StatusCode,
3974 Header: res.Header,
3975 })
3976 }
3977 if err != nil {
3978 return nil, err
3979 }
3980 defer googleapi.CloseBody(res)
3981 if err := googleapi.CheckResponse(res); err != nil {
3982 return nil, gensupport.WrapError(err)
3983 }
3984 ret := &GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse{
3985 ServerResponse: googleapi.ServerResponse{
3986 Header: res.Header,
3987 HTTPStatusCode: res.StatusCode,
3988 },
3989 }
3990 target := &ret
3991 if err := gensupport.DecodeResponse(target, res); err != nil {
3992 return nil, err
3993 }
3994 return ret, nil
3995 }
3996
3997
3998
3999
4000 func (c *BillingAccountsSkuGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupsV1betaListBillingAccountSkuGroupsResponse) error) error {
4001 c.ctx_ = ctx
4002 defer c.PageToken(c.urlParams_.Get("pageToken"))
4003 for {
4004 x, err := c.Do()
4005 if err != nil {
4006 return err
4007 }
4008 if err := f(x); err != nil {
4009 return err
4010 }
4011 if x.NextPageToken == "" {
4012 return nil
4013 }
4014 c.PageToken(x.NextPageToken)
4015 }
4016 }
4017
4018 type BillingAccountsSkuGroupsSkusGetCall struct {
4019 s *Service
4020 name string
4021 urlParams_ gensupport.URLParams
4022 ifNoneMatch_ string
4023 ctx_ context.Context
4024 header_ http.Header
4025 }
4026
4027
4028
4029
4030
4031 func (r *BillingAccountsSkuGroupsSkusService) Get(name string) *BillingAccountsSkuGroupsSkusGetCall {
4032 c := &BillingAccountsSkuGroupsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4033 c.name = name
4034 return c
4035 }
4036
4037
4038
4039
4040 func (c *BillingAccountsSkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusGetCall {
4041 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4042 return c
4043 }
4044
4045
4046
4047
4048 func (c *BillingAccountsSkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusGetCall {
4049 c.ifNoneMatch_ = entityTag
4050 return c
4051 }
4052
4053
4054 func (c *BillingAccountsSkuGroupsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusGetCall {
4055 c.ctx_ = ctx
4056 return c
4057 }
4058
4059
4060
4061 func (c *BillingAccountsSkuGroupsSkusGetCall) Header() http.Header {
4062 if c.header_ == nil {
4063 c.header_ = make(http.Header)
4064 }
4065 return c.header_
4066 }
4067
4068 func (c *BillingAccountsSkuGroupsSkusGetCall) doRequest(alt string) (*http.Response, error) {
4069 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4070 if c.ifNoneMatch_ != "" {
4071 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4072 }
4073 var body io.Reader = nil
4074 c.urlParams_.Set("alt", alt)
4075 c.urlParams_.Set("prettyPrint", "false")
4076 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
4077 urls += "?" + c.urlParams_.Encode()
4078 req, err := http.NewRequest("GET", urls, body)
4079 if err != nil {
4080 return nil, err
4081 }
4082 req.Header = reqHeaders
4083 googleapi.Expand(req.URL, map[string]string{
4084 "name": c.name,
4085 })
4086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4087 }
4088
4089
4090
4091
4092
4093
4094
4095 func (c *BillingAccountsSkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku, error) {
4096 gensupport.SetOptions(c.urlParams_, opts...)
4097 res, err := c.doRequest("json")
4098 if res != nil && res.StatusCode == http.StatusNotModified {
4099 if res.Body != nil {
4100 res.Body.Close()
4101 }
4102 return nil, gensupport.WrapError(&googleapi.Error{
4103 Code: res.StatusCode,
4104 Header: res.Header,
4105 })
4106 }
4107 if err != nil {
4108 return nil, err
4109 }
4110 defer googleapi.CloseBody(res)
4111 if err := googleapi.CheckResponse(res); err != nil {
4112 return nil, gensupport.WrapError(err)
4113 }
4114 ret := &GoogleCloudBillingBillingaccountskugroupskusV1betaBillingAccountSkuGroupSku{
4115 ServerResponse: googleapi.ServerResponse{
4116 Header: res.Header,
4117 HTTPStatusCode: res.StatusCode,
4118 },
4119 }
4120 target := &ret
4121 if err := gensupport.DecodeResponse(target, res); err != nil {
4122 return nil, err
4123 }
4124 return ret, nil
4125 }
4126
4127 type BillingAccountsSkuGroupsSkusListCall struct {
4128 s *Service
4129 parent string
4130 urlParams_ gensupport.URLParams
4131 ifNoneMatch_ string
4132 ctx_ context.Context
4133 header_ http.Header
4134 }
4135
4136
4137
4138
4139
4140 func (r *BillingAccountsSkuGroupsSkusService) List(parent string) *BillingAccountsSkuGroupsSkusListCall {
4141 c := &BillingAccountsSkuGroupsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4142 c.parent = parent
4143 return c
4144 }
4145
4146
4147
4148
4149 func (c *BillingAccountsSkuGroupsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkuGroupsSkusListCall {
4150 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4151 return c
4152 }
4153
4154
4155
4156
4157 func (c *BillingAccountsSkuGroupsSkusListCall) PageToken(pageToken string) *BillingAccountsSkuGroupsSkusListCall {
4158 c.urlParams_.Set("pageToken", pageToken)
4159 return c
4160 }
4161
4162
4163
4164
4165 func (c *BillingAccountsSkuGroupsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkuGroupsSkusListCall {
4166 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4167 return c
4168 }
4169
4170
4171
4172
4173 func (c *BillingAccountsSkuGroupsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkuGroupsSkusListCall {
4174 c.ifNoneMatch_ = entityTag
4175 return c
4176 }
4177
4178
4179 func (c *BillingAccountsSkuGroupsSkusListCall) Context(ctx context.Context) *BillingAccountsSkuGroupsSkusListCall {
4180 c.ctx_ = ctx
4181 return c
4182 }
4183
4184
4185
4186 func (c *BillingAccountsSkuGroupsSkusListCall) Header() http.Header {
4187 if c.header_ == nil {
4188 c.header_ = make(http.Header)
4189 }
4190 return c.header_
4191 }
4192
4193 func (c *BillingAccountsSkuGroupsSkusListCall) doRequest(alt string) (*http.Response, error) {
4194 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4195 if c.ifNoneMatch_ != "" {
4196 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4197 }
4198 var body io.Reader = nil
4199 c.urlParams_.Set("alt", alt)
4200 c.urlParams_.Set("prettyPrint", "false")
4201 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus")
4202 urls += "?" + c.urlParams_.Encode()
4203 req, err := http.NewRequest("GET", urls, body)
4204 if err != nil {
4205 return nil, err
4206 }
4207 req.Header = reqHeaders
4208 googleapi.Expand(req.URL, map[string]string{
4209 "parent": c.parent,
4210 })
4211 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4212 }
4213
4214
4215
4216
4217
4218
4219
4220 func (c *BillingAccountsSkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse, error) {
4221 gensupport.SetOptions(c.urlParams_, opts...)
4222 res, err := c.doRequest("json")
4223 if res != nil && res.StatusCode == http.StatusNotModified {
4224 if res.Body != nil {
4225 res.Body.Close()
4226 }
4227 return nil, gensupport.WrapError(&googleapi.Error{
4228 Code: res.StatusCode,
4229 Header: res.Header,
4230 })
4231 }
4232 if err != nil {
4233 return nil, err
4234 }
4235 defer googleapi.CloseBody(res)
4236 if err := googleapi.CheckResponse(res); err != nil {
4237 return nil, gensupport.WrapError(err)
4238 }
4239 ret := &GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse{
4240 ServerResponse: googleapi.ServerResponse{
4241 Header: res.Header,
4242 HTTPStatusCode: res.StatusCode,
4243 },
4244 }
4245 target := &ret
4246 if err := gensupport.DecodeResponse(target, res); err != nil {
4247 return nil, err
4248 }
4249 return ret, nil
4250 }
4251
4252
4253
4254
4255 func (c *BillingAccountsSkuGroupsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskugroupskusV1betaListBillingAccountSkuGroupSkusResponse) error) error {
4256 c.ctx_ = ctx
4257 defer c.PageToken(c.urlParams_.Get("pageToken"))
4258 for {
4259 x, err := c.Do()
4260 if err != nil {
4261 return err
4262 }
4263 if err := f(x); err != nil {
4264 return err
4265 }
4266 if x.NextPageToken == "" {
4267 return nil
4268 }
4269 c.PageToken(x.NextPageToken)
4270 }
4271 }
4272
4273 type BillingAccountsSkusGetCall struct {
4274 s *Service
4275 name string
4276 urlParams_ gensupport.URLParams
4277 ifNoneMatch_ string
4278 ctx_ context.Context
4279 header_ http.Header
4280 }
4281
4282
4283
4284
4285
4286 func (r *BillingAccountsSkusService) Get(name string) *BillingAccountsSkusGetCall {
4287 c := &BillingAccountsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4288 c.name = name
4289 return c
4290 }
4291
4292
4293
4294
4295 func (c *BillingAccountsSkusGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusGetCall {
4296 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4297 return c
4298 }
4299
4300
4301
4302
4303 func (c *BillingAccountsSkusGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusGetCall {
4304 c.ifNoneMatch_ = entityTag
4305 return c
4306 }
4307
4308
4309 func (c *BillingAccountsSkusGetCall) Context(ctx context.Context) *BillingAccountsSkusGetCall {
4310 c.ctx_ = ctx
4311 return c
4312 }
4313
4314
4315
4316 func (c *BillingAccountsSkusGetCall) Header() http.Header {
4317 if c.header_ == nil {
4318 c.header_ = make(http.Header)
4319 }
4320 return c.header_
4321 }
4322
4323 func (c *BillingAccountsSkusGetCall) doRequest(alt string) (*http.Response, error) {
4324 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4325 if c.ifNoneMatch_ != "" {
4326 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4327 }
4328 var body io.Reader = nil
4329 c.urlParams_.Set("alt", alt)
4330 c.urlParams_.Set("prettyPrint", "false")
4331 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
4332 urls += "?" + c.urlParams_.Encode()
4333 req, err := http.NewRequest("GET", urls, body)
4334 if err != nil {
4335 return nil, err
4336 }
4337 req.Header = reqHeaders
4338 googleapi.Expand(req.URL, map[string]string{
4339 "name": c.name,
4340 })
4341 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4342 }
4343
4344
4345
4346
4347
4348
4349
4350 func (c *BillingAccountsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku, error) {
4351 gensupport.SetOptions(c.urlParams_, opts...)
4352 res, err := c.doRequest("json")
4353 if res != nil && res.StatusCode == http.StatusNotModified {
4354 if res.Body != nil {
4355 res.Body.Close()
4356 }
4357 return nil, gensupport.WrapError(&googleapi.Error{
4358 Code: res.StatusCode,
4359 Header: res.Header,
4360 })
4361 }
4362 if err != nil {
4363 return nil, err
4364 }
4365 defer googleapi.CloseBody(res)
4366 if err := googleapi.CheckResponse(res); err != nil {
4367 return nil, gensupport.WrapError(err)
4368 }
4369 ret := &GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku{
4370 ServerResponse: googleapi.ServerResponse{
4371 Header: res.Header,
4372 HTTPStatusCode: res.StatusCode,
4373 },
4374 }
4375 target := &ret
4376 if err := gensupport.DecodeResponse(target, res); err != nil {
4377 return nil, err
4378 }
4379 return ret, nil
4380 }
4381
4382 type BillingAccountsSkusListCall struct {
4383 s *Service
4384 parent string
4385 urlParams_ gensupport.URLParams
4386 ifNoneMatch_ string
4387 ctx_ context.Context
4388 header_ http.Header
4389 }
4390
4391
4392
4393
4394
4395 func (r *BillingAccountsSkusService) List(parent string) *BillingAccountsSkusListCall {
4396 c := &BillingAccountsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4397 c.parent = parent
4398 return c
4399 }
4400
4401
4402
4403
4404
4405
4406 func (c *BillingAccountsSkusListCall) Filter(filter string) *BillingAccountsSkusListCall {
4407 c.urlParams_.Set("filter", filter)
4408 return c
4409 }
4410
4411
4412
4413
4414 func (c *BillingAccountsSkusListCall) PageSize(pageSize int64) *BillingAccountsSkusListCall {
4415 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4416 return c
4417 }
4418
4419
4420
4421
4422 func (c *BillingAccountsSkusListCall) PageToken(pageToken string) *BillingAccountsSkusListCall {
4423 c.urlParams_.Set("pageToken", pageToken)
4424 return c
4425 }
4426
4427
4428
4429
4430 func (c *BillingAccountsSkusListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusListCall {
4431 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4432 return c
4433 }
4434
4435
4436
4437
4438 func (c *BillingAccountsSkusListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusListCall {
4439 c.ifNoneMatch_ = entityTag
4440 return c
4441 }
4442
4443
4444 func (c *BillingAccountsSkusListCall) Context(ctx context.Context) *BillingAccountsSkusListCall {
4445 c.ctx_ = ctx
4446 return c
4447 }
4448
4449
4450
4451 func (c *BillingAccountsSkusListCall) Header() http.Header {
4452 if c.header_ == nil {
4453 c.header_ = make(http.Header)
4454 }
4455 return c.header_
4456 }
4457
4458 func (c *BillingAccountsSkusListCall) doRequest(alt string) (*http.Response, error) {
4459 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4460 if c.ifNoneMatch_ != "" {
4461 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4462 }
4463 var body io.Reader = nil
4464 c.urlParams_.Set("alt", alt)
4465 c.urlParams_.Set("prettyPrint", "false")
4466 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus")
4467 urls += "?" + c.urlParams_.Encode()
4468 req, err := http.NewRequest("GET", urls, body)
4469 if err != nil {
4470 return nil, err
4471 }
4472 req.Header = reqHeaders
4473 googleapi.Expand(req.URL, map[string]string{
4474 "parent": c.parent,
4475 })
4476 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4477 }
4478
4479
4480
4481
4482
4483
4484
4485 func (c *BillingAccountsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse, error) {
4486 gensupport.SetOptions(c.urlParams_, opts...)
4487 res, err := c.doRequest("json")
4488 if res != nil && res.StatusCode == http.StatusNotModified {
4489 if res.Body != nil {
4490 res.Body.Close()
4491 }
4492 return nil, gensupport.WrapError(&googleapi.Error{
4493 Code: res.StatusCode,
4494 Header: res.Header,
4495 })
4496 }
4497 if err != nil {
4498 return nil, err
4499 }
4500 defer googleapi.CloseBody(res)
4501 if err := googleapi.CheckResponse(res); err != nil {
4502 return nil, gensupport.WrapError(err)
4503 }
4504 ret := &GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse{
4505 ServerResponse: googleapi.ServerResponse{
4506 Header: res.Header,
4507 HTTPStatusCode: res.StatusCode,
4508 },
4509 }
4510 target := &ret
4511 if err := gensupport.DecodeResponse(target, res); err != nil {
4512 return nil, err
4513 }
4514 return ret, nil
4515 }
4516
4517
4518
4519
4520 func (c *BillingAccountsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountskusV1betaListBillingAccountSkusResponse) error) error {
4521 c.ctx_ = ctx
4522 defer c.PageToken(c.urlParams_.Get("pageToken"))
4523 for {
4524 x, err := c.Do()
4525 if err != nil {
4526 return err
4527 }
4528 if err := f(x); err != nil {
4529 return err
4530 }
4531 if x.NextPageToken == "" {
4532 return nil
4533 }
4534 c.PageToken(x.NextPageToken)
4535 }
4536 }
4537
4538 type BillingAccountsSkusPriceGetCall struct {
4539 s *Service
4540 name string
4541 urlParams_ gensupport.URLParams
4542 ifNoneMatch_ string
4543 ctx_ context.Context
4544 header_ http.Header
4545 }
4546
4547
4548
4549
4550
4551 func (r *BillingAccountsSkusPriceService) Get(name string) *BillingAccountsSkusPriceGetCall {
4552 c := &BillingAccountsSkusPriceGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4553 c.name = name
4554 return c
4555 }
4556
4557
4558
4559
4560 func (c *BillingAccountsSkusPriceGetCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPriceGetCall {
4561 c.urlParams_.Set("currencyCode", currencyCode)
4562 return c
4563 }
4564
4565
4566
4567
4568 func (c *BillingAccountsSkusPriceGetCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPriceGetCall {
4569 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4570 return c
4571 }
4572
4573
4574
4575
4576 func (c *BillingAccountsSkusPriceGetCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPriceGetCall {
4577 c.ifNoneMatch_ = entityTag
4578 return c
4579 }
4580
4581
4582 func (c *BillingAccountsSkusPriceGetCall) Context(ctx context.Context) *BillingAccountsSkusPriceGetCall {
4583 c.ctx_ = ctx
4584 return c
4585 }
4586
4587
4588
4589 func (c *BillingAccountsSkusPriceGetCall) Header() http.Header {
4590 if c.header_ == nil {
4591 c.header_ = make(http.Header)
4592 }
4593 return c.header_
4594 }
4595
4596 func (c *BillingAccountsSkusPriceGetCall) doRequest(alt string) (*http.Response, error) {
4597 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4598 if c.ifNoneMatch_ != "" {
4599 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4600 }
4601 var body io.Reader = nil
4602 c.urlParams_.Set("alt", alt)
4603 c.urlParams_.Set("prettyPrint", "false")
4604 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
4605 urls += "?" + c.urlParams_.Encode()
4606 req, err := http.NewRequest("GET", urls, body)
4607 if err != nil {
4608 return nil, err
4609 }
4610 req.Header = reqHeaders
4611 googleapi.Expand(req.URL, map[string]string{
4612 "name": c.name,
4613 })
4614 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4615 }
4616
4617
4618
4619
4620
4621
4622
4623 func (c *BillingAccountsSkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice, error) {
4624 gensupport.SetOptions(c.urlParams_, opts...)
4625 res, err := c.doRequest("json")
4626 if res != nil && res.StatusCode == http.StatusNotModified {
4627 if res.Body != nil {
4628 res.Body.Close()
4629 }
4630 return nil, gensupport.WrapError(&googleapi.Error{
4631 Code: res.StatusCode,
4632 Header: res.Header,
4633 })
4634 }
4635 if err != nil {
4636 return nil, err
4637 }
4638 defer googleapi.CloseBody(res)
4639 if err := googleapi.CheckResponse(res); err != nil {
4640 return nil, gensupport.WrapError(err)
4641 }
4642 ret := &GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice{
4643 ServerResponse: googleapi.ServerResponse{
4644 Header: res.Header,
4645 HTTPStatusCode: res.StatusCode,
4646 },
4647 }
4648 target := &ret
4649 if err := gensupport.DecodeResponse(target, res); err != nil {
4650 return nil, err
4651 }
4652 return ret, nil
4653 }
4654
4655 type BillingAccountsSkusPricesListCall struct {
4656 s *Service
4657 parent string
4658 urlParams_ gensupport.URLParams
4659 ifNoneMatch_ string
4660 ctx_ context.Context
4661 header_ http.Header
4662 }
4663
4664
4665
4666
4667
4668
4669
4670 func (r *BillingAccountsSkusPricesService) List(parent string) *BillingAccountsSkusPricesListCall {
4671 c := &BillingAccountsSkusPricesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4672 c.parent = parent
4673 return c
4674 }
4675
4676
4677
4678
4679 func (c *BillingAccountsSkusPricesListCall) CurrencyCode(currencyCode string) *BillingAccountsSkusPricesListCall {
4680 c.urlParams_.Set("currencyCode", currencyCode)
4681 return c
4682 }
4683
4684
4685
4686
4687 func (c *BillingAccountsSkusPricesListCall) PageSize(pageSize int64) *BillingAccountsSkusPricesListCall {
4688 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4689 return c
4690 }
4691
4692
4693
4694
4695 func (c *BillingAccountsSkusPricesListCall) PageToken(pageToken string) *BillingAccountsSkusPricesListCall {
4696 c.urlParams_.Set("pageToken", pageToken)
4697 return c
4698 }
4699
4700
4701
4702
4703 func (c *BillingAccountsSkusPricesListCall) Fields(s ...googleapi.Field) *BillingAccountsSkusPricesListCall {
4704 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4705 return c
4706 }
4707
4708
4709
4710
4711 func (c *BillingAccountsSkusPricesListCall) IfNoneMatch(entityTag string) *BillingAccountsSkusPricesListCall {
4712 c.ifNoneMatch_ = entityTag
4713 return c
4714 }
4715
4716
4717 func (c *BillingAccountsSkusPricesListCall) Context(ctx context.Context) *BillingAccountsSkusPricesListCall {
4718 c.ctx_ = ctx
4719 return c
4720 }
4721
4722
4723
4724 func (c *BillingAccountsSkusPricesListCall) Header() http.Header {
4725 if c.header_ == nil {
4726 c.header_ = make(http.Header)
4727 }
4728 return c.header_
4729 }
4730
4731 func (c *BillingAccountsSkusPricesListCall) doRequest(alt string) (*http.Response, error) {
4732 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4733 if c.ifNoneMatch_ != "" {
4734 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4735 }
4736 var body io.Reader = nil
4737 c.urlParams_.Set("alt", alt)
4738 c.urlParams_.Set("prettyPrint", "false")
4739 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/prices")
4740 urls += "?" + c.urlParams_.Encode()
4741 req, err := http.NewRequest("GET", urls, body)
4742 if err != nil {
4743 return nil, err
4744 }
4745 req.Header = reqHeaders
4746 googleapi.Expand(req.URL, map[string]string{
4747 "parent": c.parent,
4748 })
4749 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4750 }
4751
4752
4753
4754
4755
4756
4757
4758 func (c *BillingAccountsSkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse, error) {
4759 gensupport.SetOptions(c.urlParams_, opts...)
4760 res, err := c.doRequest("json")
4761 if res != nil && res.StatusCode == http.StatusNotModified {
4762 if res.Body != nil {
4763 res.Body.Close()
4764 }
4765 return nil, gensupport.WrapError(&googleapi.Error{
4766 Code: res.StatusCode,
4767 Header: res.Header,
4768 })
4769 }
4770 if err != nil {
4771 return nil, err
4772 }
4773 defer googleapi.CloseBody(res)
4774 if err := googleapi.CheckResponse(res); err != nil {
4775 return nil, gensupport.WrapError(err)
4776 }
4777 ret := &GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse{
4778 ServerResponse: googleapi.ServerResponse{
4779 Header: res.Header,
4780 HTTPStatusCode: res.StatusCode,
4781 },
4782 }
4783 target := &ret
4784 if err := gensupport.DecodeResponse(target, res); err != nil {
4785 return nil, err
4786 }
4787 return ret, nil
4788 }
4789
4790
4791
4792
4793 func (c *BillingAccountsSkusPricesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingBillingaccountpricesV1betaListBillingAccountPricesResponse) error) error {
4794 c.ctx_ = ctx
4795 defer c.PageToken(c.urlParams_.Get("pageToken"))
4796 for {
4797 x, err := c.Do()
4798 if err != nil {
4799 return err
4800 }
4801 if err := f(x); err != nil {
4802 return err
4803 }
4804 if x.NextPageToken == "" {
4805 return nil
4806 }
4807 c.PageToken(x.NextPageToken)
4808 }
4809 }
4810
4811 type SkuGroupsGetCall struct {
4812 s *Service
4813 name string
4814 urlParams_ gensupport.URLParams
4815 ifNoneMatch_ string
4816 ctx_ context.Context
4817 header_ http.Header
4818 }
4819
4820
4821
4822
4823 func (r *SkuGroupsService) Get(name string) *SkuGroupsGetCall {
4824 c := &SkuGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4825 c.name = name
4826 return c
4827 }
4828
4829
4830
4831
4832 func (c *SkuGroupsGetCall) Fields(s ...googleapi.Field) *SkuGroupsGetCall {
4833 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4834 return c
4835 }
4836
4837
4838
4839
4840 func (c *SkuGroupsGetCall) IfNoneMatch(entityTag string) *SkuGroupsGetCall {
4841 c.ifNoneMatch_ = entityTag
4842 return c
4843 }
4844
4845
4846 func (c *SkuGroupsGetCall) Context(ctx context.Context) *SkuGroupsGetCall {
4847 c.ctx_ = ctx
4848 return c
4849 }
4850
4851
4852
4853 func (c *SkuGroupsGetCall) Header() http.Header {
4854 if c.header_ == nil {
4855 c.header_ = make(http.Header)
4856 }
4857 return c.header_
4858 }
4859
4860 func (c *SkuGroupsGetCall) doRequest(alt string) (*http.Response, error) {
4861 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4862 if c.ifNoneMatch_ != "" {
4863 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4864 }
4865 var body io.Reader = nil
4866 c.urlParams_.Set("alt", alt)
4867 c.urlParams_.Set("prettyPrint", "false")
4868 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
4869 urls += "?" + c.urlParams_.Encode()
4870 req, err := http.NewRequest("GET", urls, body)
4871 if err != nil {
4872 return nil, err
4873 }
4874 req.Header = reqHeaders
4875 googleapi.Expand(req.URL, map[string]string{
4876 "name": c.name,
4877 })
4878 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4879 }
4880
4881
4882
4883
4884
4885
4886
4887 func (c *SkuGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupsV1betaSkuGroup, error) {
4888 gensupport.SetOptions(c.urlParams_, opts...)
4889 res, err := c.doRequest("json")
4890 if res != nil && res.StatusCode == http.StatusNotModified {
4891 if res.Body != nil {
4892 res.Body.Close()
4893 }
4894 return nil, gensupport.WrapError(&googleapi.Error{
4895 Code: res.StatusCode,
4896 Header: res.Header,
4897 })
4898 }
4899 if err != nil {
4900 return nil, err
4901 }
4902 defer googleapi.CloseBody(res)
4903 if err := googleapi.CheckResponse(res); err != nil {
4904 return nil, gensupport.WrapError(err)
4905 }
4906 ret := &GoogleCloudBillingSkugroupsV1betaSkuGroup{
4907 ServerResponse: googleapi.ServerResponse{
4908 Header: res.Header,
4909 HTTPStatusCode: res.StatusCode,
4910 },
4911 }
4912 target := &ret
4913 if err := gensupport.DecodeResponse(target, res); err != nil {
4914 return nil, err
4915 }
4916 return ret, nil
4917 }
4918
4919 type SkuGroupsListCall struct {
4920 s *Service
4921 urlParams_ gensupport.URLParams
4922 ifNoneMatch_ string
4923 ctx_ context.Context
4924 header_ http.Header
4925 }
4926
4927
4928 func (r *SkuGroupsService) List() *SkuGroupsListCall {
4929 c := &SkuGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4930 return c
4931 }
4932
4933
4934
4935
4936 func (c *SkuGroupsListCall) PageSize(pageSize int64) *SkuGroupsListCall {
4937 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4938 return c
4939 }
4940
4941
4942
4943
4944 func (c *SkuGroupsListCall) PageToken(pageToken string) *SkuGroupsListCall {
4945 c.urlParams_.Set("pageToken", pageToken)
4946 return c
4947 }
4948
4949
4950
4951
4952 func (c *SkuGroupsListCall) Fields(s ...googleapi.Field) *SkuGroupsListCall {
4953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4954 return c
4955 }
4956
4957
4958
4959
4960 func (c *SkuGroupsListCall) IfNoneMatch(entityTag string) *SkuGroupsListCall {
4961 c.ifNoneMatch_ = entityTag
4962 return c
4963 }
4964
4965
4966 func (c *SkuGroupsListCall) Context(ctx context.Context) *SkuGroupsListCall {
4967 c.ctx_ = ctx
4968 return c
4969 }
4970
4971
4972
4973 func (c *SkuGroupsListCall) Header() http.Header {
4974 if c.header_ == nil {
4975 c.header_ = make(http.Header)
4976 }
4977 return c.header_
4978 }
4979
4980 func (c *SkuGroupsListCall) doRequest(alt string) (*http.Response, error) {
4981 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4982 if c.ifNoneMatch_ != "" {
4983 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4984 }
4985 var body io.Reader = nil
4986 c.urlParams_.Set("alt", alt)
4987 c.urlParams_.Set("prettyPrint", "false")
4988 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/skuGroups")
4989 urls += "?" + c.urlParams_.Encode()
4990 req, err := http.NewRequest("GET", urls, body)
4991 if err != nil {
4992 return nil, err
4993 }
4994 req.Header = reqHeaders
4995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4996 }
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 func (c *SkuGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse, error) {
5007 gensupport.SetOptions(c.urlParams_, opts...)
5008 res, err := c.doRequest("json")
5009 if res != nil && res.StatusCode == http.StatusNotModified {
5010 if res.Body != nil {
5011 res.Body.Close()
5012 }
5013 return nil, gensupport.WrapError(&googleapi.Error{
5014 Code: res.StatusCode,
5015 Header: res.Header,
5016 })
5017 }
5018 if err != nil {
5019 return nil, err
5020 }
5021 defer googleapi.CloseBody(res)
5022 if err := googleapi.CheckResponse(res); err != nil {
5023 return nil, gensupport.WrapError(err)
5024 }
5025 ret := &GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse{
5026 ServerResponse: googleapi.ServerResponse{
5027 Header: res.Header,
5028 HTTPStatusCode: res.StatusCode,
5029 },
5030 }
5031 target := &ret
5032 if err := gensupport.DecodeResponse(target, res); err != nil {
5033 return nil, err
5034 }
5035 return ret, nil
5036 }
5037
5038
5039
5040
5041 func (c *SkuGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingSkugroupsV1betaListSkuGroupsResponse) error) error {
5042 c.ctx_ = ctx
5043 defer c.PageToken(c.urlParams_.Get("pageToken"))
5044 for {
5045 x, err := c.Do()
5046 if err != nil {
5047 return err
5048 }
5049 if err := f(x); err != nil {
5050 return err
5051 }
5052 if x.NextPageToken == "" {
5053 return nil
5054 }
5055 c.PageToken(x.NextPageToken)
5056 }
5057 }
5058
5059 type SkuGroupsSkusGetCall struct {
5060 s *Service
5061 name string
5062 urlParams_ gensupport.URLParams
5063 ifNoneMatch_ string
5064 ctx_ context.Context
5065 header_ http.Header
5066 }
5067
5068
5069
5070
5071
5072 func (r *SkuGroupsSkusService) Get(name string) *SkuGroupsSkusGetCall {
5073 c := &SkuGroupsSkusGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5074 c.name = name
5075 return c
5076 }
5077
5078
5079
5080
5081 func (c *SkuGroupsSkusGetCall) Fields(s ...googleapi.Field) *SkuGroupsSkusGetCall {
5082 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5083 return c
5084 }
5085
5086
5087
5088
5089 func (c *SkuGroupsSkusGetCall) IfNoneMatch(entityTag string) *SkuGroupsSkusGetCall {
5090 c.ifNoneMatch_ = entityTag
5091 return c
5092 }
5093
5094
5095 func (c *SkuGroupsSkusGetCall) Context(ctx context.Context) *SkuGroupsSkusGetCall {
5096 c.ctx_ = ctx
5097 return c
5098 }
5099
5100
5101
5102 func (c *SkuGroupsSkusGetCall) Header() http.Header {
5103 if c.header_ == nil {
5104 c.header_ = make(http.Header)
5105 }
5106 return c.header_
5107 }
5108
5109 func (c *SkuGroupsSkusGetCall) doRequest(alt string) (*http.Response, error) {
5110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5111 if c.ifNoneMatch_ != "" {
5112 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5113 }
5114 var body io.Reader = nil
5115 c.urlParams_.Set("alt", alt)
5116 c.urlParams_.Set("prettyPrint", "false")
5117 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
5118 urls += "?" + c.urlParams_.Encode()
5119 req, err := http.NewRequest("GET", urls, body)
5120 if err != nil {
5121 return nil, err
5122 }
5123 req.Header = reqHeaders
5124 googleapi.Expand(req.URL, map[string]string{
5125 "name": c.name,
5126 })
5127 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5128 }
5129
5130
5131
5132
5133
5134
5135
5136 func (c *SkuGroupsSkusGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupskusV1betaSkuGroupSku, error) {
5137 gensupport.SetOptions(c.urlParams_, opts...)
5138 res, err := c.doRequest("json")
5139 if res != nil && res.StatusCode == http.StatusNotModified {
5140 if res.Body != nil {
5141 res.Body.Close()
5142 }
5143 return nil, gensupport.WrapError(&googleapi.Error{
5144 Code: res.StatusCode,
5145 Header: res.Header,
5146 })
5147 }
5148 if err != nil {
5149 return nil, err
5150 }
5151 defer googleapi.CloseBody(res)
5152 if err := googleapi.CheckResponse(res); err != nil {
5153 return nil, gensupport.WrapError(err)
5154 }
5155 ret := &GoogleCloudBillingSkugroupskusV1betaSkuGroupSku{
5156 ServerResponse: googleapi.ServerResponse{
5157 Header: res.Header,
5158 HTTPStatusCode: res.StatusCode,
5159 },
5160 }
5161 target := &ret
5162 if err := gensupport.DecodeResponse(target, res); err != nil {
5163 return nil, err
5164 }
5165 return ret, nil
5166 }
5167
5168 type SkuGroupsSkusListCall struct {
5169 s *Service
5170 parent string
5171 urlParams_ gensupport.URLParams
5172 ifNoneMatch_ string
5173 ctx_ context.Context
5174 header_ http.Header
5175 }
5176
5177
5178
5179
5180
5181
5182 func (r *SkuGroupsSkusService) List(parent string) *SkuGroupsSkusListCall {
5183 c := &SkuGroupsSkusListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5184 c.parent = parent
5185 return c
5186 }
5187
5188
5189
5190
5191 func (c *SkuGroupsSkusListCall) PageSize(pageSize int64) *SkuGroupsSkusListCall {
5192 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5193 return c
5194 }
5195
5196
5197
5198
5199 func (c *SkuGroupsSkusListCall) PageToken(pageToken string) *SkuGroupsSkusListCall {
5200 c.urlParams_.Set("pageToken", pageToken)
5201 return c
5202 }
5203
5204
5205
5206
5207 func (c *SkuGroupsSkusListCall) Fields(s ...googleapi.Field) *SkuGroupsSkusListCall {
5208 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5209 return c
5210 }
5211
5212
5213
5214
5215 func (c *SkuGroupsSkusListCall) IfNoneMatch(entityTag string) *SkuGroupsSkusListCall {
5216 c.ifNoneMatch_ = entityTag
5217 return c
5218 }
5219
5220
5221 func (c *SkuGroupsSkusListCall) Context(ctx context.Context) *SkuGroupsSkusListCall {
5222 c.ctx_ = ctx
5223 return c
5224 }
5225
5226
5227
5228 func (c *SkuGroupsSkusListCall) Header() http.Header {
5229 if c.header_ == nil {
5230 c.header_ = make(http.Header)
5231 }
5232 return c.header_
5233 }
5234
5235 func (c *SkuGroupsSkusListCall) doRequest(alt string) (*http.Response, error) {
5236 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5237 if c.ifNoneMatch_ != "" {
5238 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5239 }
5240 var body io.Reader = nil
5241 c.urlParams_.Set("alt", alt)
5242 c.urlParams_.Set("prettyPrint", "false")
5243 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/skus")
5244 urls += "?" + c.urlParams_.Encode()
5245 req, err := http.NewRequest("GET", urls, body)
5246 if err != nil {
5247 return nil, err
5248 }
5249 req.Header = reqHeaders
5250 googleapi.Expand(req.URL, map[string]string{
5251 "parent": c.parent,
5252 })
5253 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5254 }
5255
5256
5257
5258
5259
5260
5261
5262 func (c *SkuGroupsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse, error) {
5263 gensupport.SetOptions(c.urlParams_, opts...)
5264 res, err := c.doRequest("json")
5265 if res != nil && res.StatusCode == http.StatusNotModified {
5266 if res.Body != nil {
5267 res.Body.Close()
5268 }
5269 return nil, gensupport.WrapError(&googleapi.Error{
5270 Code: res.StatusCode,
5271 Header: res.Header,
5272 })
5273 }
5274 if err != nil {
5275 return nil, err
5276 }
5277 defer googleapi.CloseBody(res)
5278 if err := googleapi.CheckResponse(res); err != nil {
5279 return nil, gensupport.WrapError(err)
5280 }
5281 ret := &GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse{
5282 ServerResponse: googleapi.ServerResponse{
5283 Header: res.Header,
5284 HTTPStatusCode: res.StatusCode,
5285 },
5286 }
5287 target := &ret
5288 if err := gensupport.DecodeResponse(target, res); err != nil {
5289 return nil, err
5290 }
5291 return ret, nil
5292 }
5293
5294
5295
5296
5297 func (c *SkuGroupsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingSkugroupskusV1betaListSkuGroupSkusResponse) error) error {
5298 c.ctx_ = ctx
5299 defer c.PageToken(c.urlParams_.Get("pageToken"))
5300 for {
5301 x, err := c.Do()
5302 if err != nil {
5303 return err
5304 }
5305 if err := f(x); err != nil {
5306 return err
5307 }
5308 if x.NextPageToken == "" {
5309 return nil
5310 }
5311 c.PageToken(x.NextPageToken)
5312 }
5313 }
5314
5315 type SkusPriceGetCall struct {
5316 s *Service
5317 name string
5318 urlParams_ gensupport.URLParams
5319 ifNoneMatch_ string
5320 ctx_ context.Context
5321 header_ http.Header
5322 }
5323
5324
5325
5326
5327 func (r *SkusPriceService) Get(name string) *SkusPriceGetCall {
5328 c := &SkusPriceGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5329 c.name = name
5330 return c
5331 }
5332
5333
5334
5335 func (c *SkusPriceGetCall) CurrencyCode(currencyCode string) *SkusPriceGetCall {
5336 c.urlParams_.Set("currencyCode", currencyCode)
5337 return c
5338 }
5339
5340
5341
5342
5343 func (c *SkusPriceGetCall) Fields(s ...googleapi.Field) *SkusPriceGetCall {
5344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5345 return c
5346 }
5347
5348
5349
5350
5351 func (c *SkusPriceGetCall) IfNoneMatch(entityTag string) *SkusPriceGetCall {
5352 c.ifNoneMatch_ = entityTag
5353 return c
5354 }
5355
5356
5357 func (c *SkusPriceGetCall) Context(ctx context.Context) *SkusPriceGetCall {
5358 c.ctx_ = ctx
5359 return c
5360 }
5361
5362
5363
5364 func (c *SkusPriceGetCall) Header() http.Header {
5365 if c.header_ == nil {
5366 c.header_ = make(http.Header)
5367 }
5368 return c.header_
5369 }
5370
5371 func (c *SkusPriceGetCall) doRequest(alt string) (*http.Response, error) {
5372 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5373 if c.ifNoneMatch_ != "" {
5374 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5375 }
5376 var body io.Reader = nil
5377 c.urlParams_.Set("alt", alt)
5378 c.urlParams_.Set("prettyPrint", "false")
5379 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
5380 urls += "?" + c.urlParams_.Encode()
5381 req, err := http.NewRequest("GET", urls, body)
5382 if err != nil {
5383 return nil, err
5384 }
5385 req.Header = reqHeaders
5386 googleapi.Expand(req.URL, map[string]string{
5387 "name": c.name,
5388 })
5389 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5390 }
5391
5392
5393
5394
5395
5396
5397
5398 func (c *SkusPriceGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingPricesV1betaPrice, error) {
5399 gensupport.SetOptions(c.urlParams_, opts...)
5400 res, err := c.doRequest("json")
5401 if res != nil && res.StatusCode == http.StatusNotModified {
5402 if res.Body != nil {
5403 res.Body.Close()
5404 }
5405 return nil, gensupport.WrapError(&googleapi.Error{
5406 Code: res.StatusCode,
5407 Header: res.Header,
5408 })
5409 }
5410 if err != nil {
5411 return nil, err
5412 }
5413 defer googleapi.CloseBody(res)
5414 if err := googleapi.CheckResponse(res); err != nil {
5415 return nil, gensupport.WrapError(err)
5416 }
5417 ret := &GoogleCloudBillingPricesV1betaPrice{
5418 ServerResponse: googleapi.ServerResponse{
5419 Header: res.Header,
5420 HTTPStatusCode: res.StatusCode,
5421 },
5422 }
5423 target := &ret
5424 if err := gensupport.DecodeResponse(target, res); err != nil {
5425 return nil, err
5426 }
5427 return ret, nil
5428 }
5429
5430 type SkusPricesListCall struct {
5431 s *Service
5432 parent string
5433 urlParams_ gensupport.URLParams
5434 ifNoneMatch_ string
5435 ctx_ context.Context
5436 header_ http.Header
5437 }
5438
5439
5440
5441
5442
5443
5444 func (r *SkusPricesService) List(parent string) *SkusPricesListCall {
5445 c := &SkusPricesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5446 c.parent = parent
5447 return c
5448 }
5449
5450
5451
5452 func (c *SkusPricesListCall) CurrencyCode(currencyCode string) *SkusPricesListCall {
5453 c.urlParams_.Set("currencyCode", currencyCode)
5454 return c
5455 }
5456
5457
5458
5459
5460 func (c *SkusPricesListCall) PageSize(pageSize int64) *SkusPricesListCall {
5461 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5462 return c
5463 }
5464
5465
5466
5467
5468 func (c *SkusPricesListCall) PageToken(pageToken string) *SkusPricesListCall {
5469 c.urlParams_.Set("pageToken", pageToken)
5470 return c
5471 }
5472
5473
5474
5475
5476 func (c *SkusPricesListCall) Fields(s ...googleapi.Field) *SkusPricesListCall {
5477 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5478 return c
5479 }
5480
5481
5482
5483
5484 func (c *SkusPricesListCall) IfNoneMatch(entityTag string) *SkusPricesListCall {
5485 c.ifNoneMatch_ = entityTag
5486 return c
5487 }
5488
5489
5490 func (c *SkusPricesListCall) Context(ctx context.Context) *SkusPricesListCall {
5491 c.ctx_ = ctx
5492 return c
5493 }
5494
5495
5496
5497 func (c *SkusPricesListCall) Header() http.Header {
5498 if c.header_ == nil {
5499 c.header_ = make(http.Header)
5500 }
5501 return c.header_
5502 }
5503
5504 func (c *SkusPricesListCall) doRequest(alt string) (*http.Response, error) {
5505 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5506 if c.ifNoneMatch_ != "" {
5507 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5508 }
5509 var body io.Reader = nil
5510 c.urlParams_.Set("alt", alt)
5511 c.urlParams_.Set("prettyPrint", "false")
5512 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/prices")
5513 urls += "?" + c.urlParams_.Encode()
5514 req, err := http.NewRequest("GET", urls, body)
5515 if err != nil {
5516 return nil, err
5517 }
5518 req.Header = reqHeaders
5519 googleapi.Expand(req.URL, map[string]string{
5520 "parent": c.parent,
5521 })
5522 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5523 }
5524
5525
5526
5527
5528
5529
5530
5531 func (c *SkusPricesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBillingPricesV1betaListPricesResponse, error) {
5532 gensupport.SetOptions(c.urlParams_, opts...)
5533 res, err := c.doRequest("json")
5534 if res != nil && res.StatusCode == http.StatusNotModified {
5535 if res.Body != nil {
5536 res.Body.Close()
5537 }
5538 return nil, gensupport.WrapError(&googleapi.Error{
5539 Code: res.StatusCode,
5540 Header: res.Header,
5541 })
5542 }
5543 if err != nil {
5544 return nil, err
5545 }
5546 defer googleapi.CloseBody(res)
5547 if err := googleapi.CheckResponse(res); err != nil {
5548 return nil, gensupport.WrapError(err)
5549 }
5550 ret := &GoogleCloudBillingPricesV1betaListPricesResponse{
5551 ServerResponse: googleapi.ServerResponse{
5552 Header: res.Header,
5553 HTTPStatusCode: res.StatusCode,
5554 },
5555 }
5556 target := &ret
5557 if err := gensupport.DecodeResponse(target, res); err != nil {
5558 return nil, err
5559 }
5560 return ret, nil
5561 }
5562
5563
5564
5565
5566 func (c *SkusPricesListCall) Pages(ctx context.Context, f func(*GoogleCloudBillingPricesV1betaListPricesResponse) error) error {
5567 c.ctx_ = ctx
5568 defer c.PageToken(c.urlParams_.Get("pageToken"))
5569 for {
5570 x, err := c.Do()
5571 if err != nil {
5572 return err
5573 }
5574 if err := f(x); err != nil {
5575 return err
5576 }
5577 if x.NextPageToken == "" {
5578 return nil
5579 }
5580 c.PageToken(x.NextPageToken)
5581 }
5582 }
5583
5584 type V1betaEstimateCostScenarioCall struct {
5585 s *Service
5586 estimatecostscenariowithlistpricerequest *EstimateCostScenarioWithListPriceRequest
5587 urlParams_ gensupport.URLParams
5588 ctx_ context.Context
5589 header_ http.Header
5590 }
5591
5592
5593
5594 func (r *V1betaService) EstimateCostScenario(estimatecostscenariowithlistpricerequest *EstimateCostScenarioWithListPriceRequest) *V1betaEstimateCostScenarioCall {
5595 c := &V1betaEstimateCostScenarioCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5596 c.estimatecostscenariowithlistpricerequest = estimatecostscenariowithlistpricerequest
5597 return c
5598 }
5599
5600
5601
5602
5603 func (c *V1betaEstimateCostScenarioCall) Fields(s ...googleapi.Field) *V1betaEstimateCostScenarioCall {
5604 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5605 return c
5606 }
5607
5608
5609 func (c *V1betaEstimateCostScenarioCall) Context(ctx context.Context) *V1betaEstimateCostScenarioCall {
5610 c.ctx_ = ctx
5611 return c
5612 }
5613
5614
5615
5616 func (c *V1betaEstimateCostScenarioCall) Header() http.Header {
5617 if c.header_ == nil {
5618 c.header_ = make(http.Header)
5619 }
5620 return c.header_
5621 }
5622
5623 func (c *V1betaEstimateCostScenarioCall) doRequest(alt string) (*http.Response, error) {
5624 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5625 var body io.Reader = nil
5626 body, err := googleapi.WithoutDataWrapper.JSONReader(c.estimatecostscenariowithlistpricerequest)
5627 if err != nil {
5628 return nil, err
5629 }
5630 c.urlParams_.Set("alt", alt)
5631 c.urlParams_.Set("prettyPrint", "false")
5632 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta:estimateCostScenario")
5633 urls += "?" + c.urlParams_.Encode()
5634 req, err := http.NewRequest("POST", urls, body)
5635 if err != nil {
5636 return nil, err
5637 }
5638 req.Header = reqHeaders
5639 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5640 }
5641
5642
5643
5644
5645
5646
5647
5648 func (c *V1betaEstimateCostScenarioCall) Do(opts ...googleapi.CallOption) (*EstimateCostScenarioWithListPriceResponse, error) {
5649 gensupport.SetOptions(c.urlParams_, opts...)
5650 res, err := c.doRequest("json")
5651 if res != nil && res.StatusCode == http.StatusNotModified {
5652 if res.Body != nil {
5653 res.Body.Close()
5654 }
5655 return nil, gensupport.WrapError(&googleapi.Error{
5656 Code: res.StatusCode,
5657 Header: res.Header,
5658 })
5659 }
5660 if err != nil {
5661 return nil, err
5662 }
5663 defer googleapi.CloseBody(res)
5664 if err := googleapi.CheckResponse(res); err != nil {
5665 return nil, gensupport.WrapError(err)
5666 }
5667 ret := &EstimateCostScenarioWithListPriceResponse{
5668 ServerResponse: googleapi.ServerResponse{
5669 Header: res.Header,
5670 HTTPStatusCode: res.StatusCode,
5671 },
5672 }
5673 target := &ret
5674 if err := gensupport.DecodeResponse(target, res); err != nil {
5675 return nil, err
5676 }
5677 return ret, nil
5678 }
5679
View as plain text