1 package commitmentplans
2
3
4
5
6
7
8
9 import (
10 "context"
11 "encoding/json"
12 "github.com/Azure/go-autorest/autorest"
13 "github.com/Azure/go-autorest/autorest/date"
14 "github.com/Azure/go-autorest/autorest/to"
15 "github.com/Azure/go-autorest/tracing"
16 "net/http"
17 )
18
19
20 const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/machinelearning/mgmt/2016-05-01-preview/commitmentplans"
21
22
23 type CatalogSku struct {
24
25 ResourceType *string `json:"resourceType,omitempty"`
26
27 Name *string `json:"name,omitempty"`
28
29 Tier *string `json:"tier,omitempty"`
30
31 Locations *[]string `json:"locations,omitempty"`
32
33 Capacity *SkuCapacity `json:"capacity,omitempty"`
34
35 Capabilities *[]SkuCapability `json:"capabilities,omitempty"`
36
37 Costs *[]SkuCost `json:"costs,omitempty"`
38
39 Restrictions *[]SkuRestrictions `json:"restrictions,omitempty"`
40 }
41
42
43 func (cs CatalogSku) MarshalJSON() ([]byte, error) {
44 objectMap := make(map[string]interface{})
45 return json.Marshal(objectMap)
46 }
47
48
49
50 type CommitmentAssociation struct {
51 autorest.Response `json:"-"`
52
53 Etag *string `json:"etag,omitempty"`
54
55 Properties *CommitmentAssociationProperties `json:"properties,omitempty"`
56
57 ID *string `json:"id,omitempty"`
58
59 Name *string `json:"name,omitempty"`
60
61 Location *string `json:"location,omitempty"`
62
63 Type *string `json:"type,omitempty"`
64
65 Tags map[string]*string `json:"tags"`
66 }
67
68
69 func (ca CommitmentAssociation) MarshalJSON() ([]byte, error) {
70 objectMap := make(map[string]interface{})
71 if ca.Etag != nil {
72 objectMap["etag"] = ca.Etag
73 }
74 if ca.Properties != nil {
75 objectMap["properties"] = ca.Properties
76 }
77 if ca.Location != nil {
78 objectMap["location"] = ca.Location
79 }
80 if ca.Tags != nil {
81 objectMap["tags"] = ca.Tags
82 }
83 return json.Marshal(objectMap)
84 }
85
86
87 type CommitmentAssociationListResult struct {
88 autorest.Response `json:"-"`
89
90 NextLink *string `json:"nextLink,omitempty"`
91
92 Value *[]CommitmentAssociation `json:"value,omitempty"`
93 }
94
95
96
97 type CommitmentAssociationListResultIterator struct {
98 i int
99 page CommitmentAssociationListResultPage
100 }
101
102
103
104 func (iter *CommitmentAssociationListResultIterator) NextWithContext(ctx context.Context) (err error) {
105 if tracing.IsEnabled() {
106 ctx = tracing.StartSpan(ctx, fqdn+"/CommitmentAssociationListResultIterator.NextWithContext")
107 defer func() {
108 sc := -1
109 if iter.Response().Response.Response != nil {
110 sc = iter.Response().Response.Response.StatusCode
111 }
112 tracing.EndSpan(ctx, sc, err)
113 }()
114 }
115 iter.i++
116 if iter.i < len(iter.page.Values()) {
117 return nil
118 }
119 err = iter.page.NextWithContext(ctx)
120 if err != nil {
121 iter.i--
122 return err
123 }
124 iter.i = 0
125 return nil
126 }
127
128
129
130
131 func (iter *CommitmentAssociationListResultIterator) Next() error {
132 return iter.NextWithContext(context.Background())
133 }
134
135
136 func (iter CommitmentAssociationListResultIterator) NotDone() bool {
137 return iter.page.NotDone() && iter.i < len(iter.page.Values())
138 }
139
140
141 func (iter CommitmentAssociationListResultIterator) Response() CommitmentAssociationListResult {
142 return iter.page.Response()
143 }
144
145
146
147 func (iter CommitmentAssociationListResultIterator) Value() CommitmentAssociation {
148 if !iter.page.NotDone() {
149 return CommitmentAssociation{}
150 }
151 return iter.page.Values()[iter.i]
152 }
153
154
155 func NewCommitmentAssociationListResultIterator(page CommitmentAssociationListResultPage) CommitmentAssociationListResultIterator {
156 return CommitmentAssociationListResultIterator{page: page}
157 }
158
159
160 func (calr CommitmentAssociationListResult) IsEmpty() bool {
161 return calr.Value == nil || len(*calr.Value) == 0
162 }
163
164
165 func (calr CommitmentAssociationListResult) hasNextLink() bool {
166 return calr.NextLink != nil && len(*calr.NextLink) != 0
167 }
168
169
170
171 func (calr CommitmentAssociationListResult) commitmentAssociationListResultPreparer(ctx context.Context) (*http.Request, error) {
172 if !calr.hasNextLink() {
173 return nil, nil
174 }
175 return autorest.Prepare((&http.Request{}).WithContext(ctx),
176 autorest.AsJSON(),
177 autorest.AsGet(),
178 autorest.WithBaseURL(to.String(calr.NextLink)))
179 }
180
181
182 type CommitmentAssociationListResultPage struct {
183 fn func(context.Context, CommitmentAssociationListResult) (CommitmentAssociationListResult, error)
184 calr CommitmentAssociationListResult
185 }
186
187
188
189 func (page *CommitmentAssociationListResultPage) NextWithContext(ctx context.Context) (err error) {
190 if tracing.IsEnabled() {
191 ctx = tracing.StartSpan(ctx, fqdn+"/CommitmentAssociationListResultPage.NextWithContext")
192 defer func() {
193 sc := -1
194 if page.Response().Response.Response != nil {
195 sc = page.Response().Response.Response.StatusCode
196 }
197 tracing.EndSpan(ctx, sc, err)
198 }()
199 }
200 for {
201 next, err := page.fn(ctx, page.calr)
202 if err != nil {
203 return err
204 }
205 page.calr = next
206 if !next.hasNextLink() || !next.IsEmpty() {
207 break
208 }
209 }
210 return nil
211 }
212
213
214
215
216 func (page *CommitmentAssociationListResultPage) Next() error {
217 return page.NextWithContext(context.Background())
218 }
219
220
221 func (page CommitmentAssociationListResultPage) NotDone() bool {
222 return !page.calr.IsEmpty()
223 }
224
225
226 func (page CommitmentAssociationListResultPage) Response() CommitmentAssociationListResult {
227 return page.calr
228 }
229
230
231 func (page CommitmentAssociationListResultPage) Values() []CommitmentAssociation {
232 if page.calr.IsEmpty() {
233 return nil
234 }
235 return *page.calr.Value
236 }
237
238
239 func NewCommitmentAssociationListResultPage(cur CommitmentAssociationListResult, getNextPage func(context.Context, CommitmentAssociationListResult) (CommitmentAssociationListResult, error)) CommitmentAssociationListResultPage {
240 return CommitmentAssociationListResultPage{
241 fn: getNextPage,
242 calr: cur,
243 }
244 }
245
246
247 type CommitmentAssociationProperties struct {
248
249 AssociatedResourceID *string `json:"associatedResourceId,omitempty"`
250
251 CommitmentPlanID *string `json:"commitmentPlanId,omitempty"`
252
253 CreationDate *date.Time `json:"creationDate,omitempty"`
254 }
255
256
257 func (capVar CommitmentAssociationProperties) MarshalJSON() ([]byte, error) {
258 objectMap := make(map[string]interface{})
259 return json.Marshal(objectMap)
260 }
261
262
263 type CommitmentPlan struct {
264 autorest.Response `json:"-"`
265
266 Etag *string `json:"etag,omitempty"`
267
268 Properties *Properties `json:"properties,omitempty"`
269
270 Sku *ResourceSku `json:"sku,omitempty"`
271
272 ID *string `json:"id,omitempty"`
273
274 Name *string `json:"name,omitempty"`
275
276 Location *string `json:"location,omitempty"`
277
278 Type *string `json:"type,omitempty"`
279
280 Tags map[string]*string `json:"tags"`
281 }
282
283
284 func (cp CommitmentPlan) MarshalJSON() ([]byte, error) {
285 objectMap := make(map[string]interface{})
286 if cp.Etag != nil {
287 objectMap["etag"] = cp.Etag
288 }
289 if cp.Sku != nil {
290 objectMap["sku"] = cp.Sku
291 }
292 if cp.Location != nil {
293 objectMap["location"] = cp.Location
294 }
295 if cp.Tags != nil {
296 objectMap["tags"] = cp.Tags
297 }
298 return json.Marshal(objectMap)
299 }
300
301
302 type ListResult struct {
303 autorest.Response `json:"-"`
304
305 NextLink *string `json:"nextLink,omitempty"`
306
307 Value *[]CommitmentPlan `json:"value,omitempty"`
308 }
309
310
311 type ListResultIterator struct {
312 i int
313 page ListResultPage
314 }
315
316
317
318 func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) {
319 if tracing.IsEnabled() {
320 ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.NextWithContext")
321 defer func() {
322 sc := -1
323 if iter.Response().Response.Response != nil {
324 sc = iter.Response().Response.Response.StatusCode
325 }
326 tracing.EndSpan(ctx, sc, err)
327 }()
328 }
329 iter.i++
330 if iter.i < len(iter.page.Values()) {
331 return nil
332 }
333 err = iter.page.NextWithContext(ctx)
334 if err != nil {
335 iter.i--
336 return err
337 }
338 iter.i = 0
339 return nil
340 }
341
342
343
344
345 func (iter *ListResultIterator) Next() error {
346 return iter.NextWithContext(context.Background())
347 }
348
349
350 func (iter ListResultIterator) NotDone() bool {
351 return iter.page.NotDone() && iter.i < len(iter.page.Values())
352 }
353
354
355 func (iter ListResultIterator) Response() ListResult {
356 return iter.page.Response()
357 }
358
359
360
361 func (iter ListResultIterator) Value() CommitmentPlan {
362 if !iter.page.NotDone() {
363 return CommitmentPlan{}
364 }
365 return iter.page.Values()[iter.i]
366 }
367
368
369 func NewListResultIterator(page ListResultPage) ListResultIterator {
370 return ListResultIterator{page: page}
371 }
372
373
374 func (lr ListResult) IsEmpty() bool {
375 return lr.Value == nil || len(*lr.Value) == 0
376 }
377
378
379 func (lr ListResult) hasNextLink() bool {
380 return lr.NextLink != nil && len(*lr.NextLink) != 0
381 }
382
383
384
385 func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) {
386 if !lr.hasNextLink() {
387 return nil, nil
388 }
389 return autorest.Prepare((&http.Request{}).WithContext(ctx),
390 autorest.AsJSON(),
391 autorest.AsGet(),
392 autorest.WithBaseURL(to.String(lr.NextLink)))
393 }
394
395
396 type ListResultPage struct {
397 fn func(context.Context, ListResult) (ListResult, error)
398 lr ListResult
399 }
400
401
402
403 func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) {
404 if tracing.IsEnabled() {
405 ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.NextWithContext")
406 defer func() {
407 sc := -1
408 if page.Response().Response.Response != nil {
409 sc = page.Response().Response.Response.StatusCode
410 }
411 tracing.EndSpan(ctx, sc, err)
412 }()
413 }
414 for {
415 next, err := page.fn(ctx, page.lr)
416 if err != nil {
417 return err
418 }
419 page.lr = next
420 if !next.hasNextLink() || !next.IsEmpty() {
421 break
422 }
423 }
424 return nil
425 }
426
427
428
429
430 func (page *ListResultPage) Next() error {
431 return page.NextWithContext(context.Background())
432 }
433
434
435 func (page ListResultPage) NotDone() bool {
436 return !page.lr.IsEmpty()
437 }
438
439
440 func (page ListResultPage) Response() ListResult {
441 return page.lr
442 }
443
444
445 func (page ListResultPage) Values() []CommitmentPlan {
446 if page.lr.IsEmpty() {
447 return nil
448 }
449 return *page.lr.Value
450 }
451
452
453 func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage {
454 return ListResultPage{
455 fn: getNextPage,
456 lr: cur,
457 }
458 }
459
460
461
462 type MoveCommitmentAssociationRequest struct {
463
464 DestinationPlanID *string `json:"destinationPlanId,omitempty"`
465 }
466
467
468 type OperationDisplayInfo struct {
469
470 Description *string `json:"description,omitempty"`
471
472 Operation *string `json:"operation,omitempty"`
473
474 Provider *string `json:"provider,omitempty"`
475
476 Resource *string `json:"resource,omitempty"`
477 }
478
479
480 func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) {
481 objectMap := make(map[string]interface{})
482 return json.Marshal(objectMap)
483 }
484
485
486 type OperationEntity struct {
487
488 Name *string `json:"name,omitempty"`
489
490 Display *OperationDisplayInfo `json:"display,omitempty"`
491 }
492
493
494 func (oe OperationEntity) MarshalJSON() ([]byte, error) {
495 objectMap := make(map[string]interface{})
496 if oe.Display != nil {
497 objectMap["display"] = oe.Display
498 }
499 return json.Marshal(objectMap)
500 }
501
502
503 type OperationEntityListResult struct {
504 autorest.Response `json:"-"`
505
506 Value *[]OperationEntity `json:"value,omitempty"`
507 }
508
509
510 func (oelr OperationEntityListResult) MarshalJSON() ([]byte, error) {
511 objectMap := make(map[string]interface{})
512 return json.Marshal(objectMap)
513 }
514
515
516 type PatchPayload struct {
517
518 Tags map[string]*string `json:"tags"`
519
520 Sku *ResourceSku `json:"sku,omitempty"`
521 }
522
523
524 func (pp PatchPayload) MarshalJSON() ([]byte, error) {
525 objectMap := make(map[string]interface{})
526 if pp.Tags != nil {
527 objectMap["tags"] = pp.Tags
528 }
529 if pp.Sku != nil {
530 objectMap["sku"] = pp.Sku
531 }
532 return json.Marshal(objectMap)
533 }
534
535
536 type PlanQuantity struct {
537
538 Allowance *float64 `json:"allowance,omitempty"`
539
540 Amount *float64 `json:"amount,omitempty"`
541
542 IncludedQuantityMeter *string `json:"includedQuantityMeter,omitempty"`
543
544 OverageMeter *string `json:"overageMeter,omitempty"`
545 }
546
547
548 func (pq PlanQuantity) MarshalJSON() ([]byte, error) {
549 objectMap := make(map[string]interface{})
550 return json.Marshal(objectMap)
551 }
552
553
554
555 type PlanUsageHistory struct {
556
557 PlanDeletionOverage map[string]*float64 `json:"planDeletionOverage"`
558
559 PlanMigrationOverage map[string]*float64 `json:"planMigrationOverage"`
560
561 PlanQuantitiesAfterUsage map[string]*float64 `json:"planQuantitiesAfterUsage"`
562
563 PlanQuantitiesBeforeUsage map[string]*float64 `json:"planQuantitiesBeforeUsage"`
564
565 PlanUsageOverage map[string]*float64 `json:"planUsageOverage"`
566
567 Usage map[string]*float64 `json:"usage"`
568
569 UsageDate *date.Time `json:"usageDate,omitempty"`
570 }
571
572
573 func (puh PlanUsageHistory) MarshalJSON() ([]byte, error) {
574 objectMap := make(map[string]interface{})
575 if puh.PlanDeletionOverage != nil {
576 objectMap["planDeletionOverage"] = puh.PlanDeletionOverage
577 }
578 if puh.PlanMigrationOverage != nil {
579 objectMap["planMigrationOverage"] = puh.PlanMigrationOverage
580 }
581 if puh.PlanQuantitiesAfterUsage != nil {
582 objectMap["planQuantitiesAfterUsage"] = puh.PlanQuantitiesAfterUsage
583 }
584 if puh.PlanQuantitiesBeforeUsage != nil {
585 objectMap["planQuantitiesBeforeUsage"] = puh.PlanQuantitiesBeforeUsage
586 }
587 if puh.PlanUsageOverage != nil {
588 objectMap["planUsageOverage"] = puh.PlanUsageOverage
589 }
590 if puh.Usage != nil {
591 objectMap["usage"] = puh.Usage
592 }
593 if puh.UsageDate != nil {
594 objectMap["usageDate"] = puh.UsageDate
595 }
596 return json.Marshal(objectMap)
597 }
598
599
600 type PlanUsageHistoryListResult struct {
601 autorest.Response `json:"-"`
602
603 NextLink *string `json:"nextLink,omitempty"`
604
605 Value *[]PlanUsageHistory `json:"value,omitempty"`
606 }
607
608
609 type PlanUsageHistoryListResultIterator struct {
610 i int
611 page PlanUsageHistoryListResultPage
612 }
613
614
615
616 func (iter *PlanUsageHistoryListResultIterator) NextWithContext(ctx context.Context) (err error) {
617 if tracing.IsEnabled() {
618 ctx = tracing.StartSpan(ctx, fqdn+"/PlanUsageHistoryListResultIterator.NextWithContext")
619 defer func() {
620 sc := -1
621 if iter.Response().Response.Response != nil {
622 sc = iter.Response().Response.Response.StatusCode
623 }
624 tracing.EndSpan(ctx, sc, err)
625 }()
626 }
627 iter.i++
628 if iter.i < len(iter.page.Values()) {
629 return nil
630 }
631 err = iter.page.NextWithContext(ctx)
632 if err != nil {
633 iter.i--
634 return err
635 }
636 iter.i = 0
637 return nil
638 }
639
640
641
642
643 func (iter *PlanUsageHistoryListResultIterator) Next() error {
644 return iter.NextWithContext(context.Background())
645 }
646
647
648 func (iter PlanUsageHistoryListResultIterator) NotDone() bool {
649 return iter.page.NotDone() && iter.i < len(iter.page.Values())
650 }
651
652
653 func (iter PlanUsageHistoryListResultIterator) Response() PlanUsageHistoryListResult {
654 return iter.page.Response()
655 }
656
657
658
659 func (iter PlanUsageHistoryListResultIterator) Value() PlanUsageHistory {
660 if !iter.page.NotDone() {
661 return PlanUsageHistory{}
662 }
663 return iter.page.Values()[iter.i]
664 }
665
666
667 func NewPlanUsageHistoryListResultIterator(page PlanUsageHistoryListResultPage) PlanUsageHistoryListResultIterator {
668 return PlanUsageHistoryListResultIterator{page: page}
669 }
670
671
672 func (puhlr PlanUsageHistoryListResult) IsEmpty() bool {
673 return puhlr.Value == nil || len(*puhlr.Value) == 0
674 }
675
676
677 func (puhlr PlanUsageHistoryListResult) hasNextLink() bool {
678 return puhlr.NextLink != nil && len(*puhlr.NextLink) != 0
679 }
680
681
682
683 func (puhlr PlanUsageHistoryListResult) planUsageHistoryListResultPreparer(ctx context.Context) (*http.Request, error) {
684 if !puhlr.hasNextLink() {
685 return nil, nil
686 }
687 return autorest.Prepare((&http.Request{}).WithContext(ctx),
688 autorest.AsJSON(),
689 autorest.AsGet(),
690 autorest.WithBaseURL(to.String(puhlr.NextLink)))
691 }
692
693
694 type PlanUsageHistoryListResultPage struct {
695 fn func(context.Context, PlanUsageHistoryListResult) (PlanUsageHistoryListResult, error)
696 puhlr PlanUsageHistoryListResult
697 }
698
699
700
701 func (page *PlanUsageHistoryListResultPage) NextWithContext(ctx context.Context) (err error) {
702 if tracing.IsEnabled() {
703 ctx = tracing.StartSpan(ctx, fqdn+"/PlanUsageHistoryListResultPage.NextWithContext")
704 defer func() {
705 sc := -1
706 if page.Response().Response.Response != nil {
707 sc = page.Response().Response.Response.StatusCode
708 }
709 tracing.EndSpan(ctx, sc, err)
710 }()
711 }
712 for {
713 next, err := page.fn(ctx, page.puhlr)
714 if err != nil {
715 return err
716 }
717 page.puhlr = next
718 if !next.hasNextLink() || !next.IsEmpty() {
719 break
720 }
721 }
722 return nil
723 }
724
725
726
727
728 func (page *PlanUsageHistoryListResultPage) Next() error {
729 return page.NextWithContext(context.Background())
730 }
731
732
733 func (page PlanUsageHistoryListResultPage) NotDone() bool {
734 return !page.puhlr.IsEmpty()
735 }
736
737
738 func (page PlanUsageHistoryListResultPage) Response() PlanUsageHistoryListResult {
739 return page.puhlr
740 }
741
742
743 func (page PlanUsageHistoryListResultPage) Values() []PlanUsageHistory {
744 if page.puhlr.IsEmpty() {
745 return nil
746 }
747 return *page.puhlr.Value
748 }
749
750
751 func NewPlanUsageHistoryListResultPage(cur PlanUsageHistoryListResult, getNextPage func(context.Context, PlanUsageHistoryListResult) (PlanUsageHistoryListResult, error)) PlanUsageHistoryListResultPage {
752 return PlanUsageHistoryListResultPage{
753 fn: getNextPage,
754 puhlr: cur,
755 }
756 }
757
758
759 type Properties struct {
760
761 ChargeForOverage *bool `json:"chargeForOverage,omitempty"`
762
763 ChargeForPlan *bool `json:"chargeForPlan,omitempty"`
764
765 CreationDate *date.Time `json:"creationDate,omitempty"`
766
767 IncludedQuantities map[string]*PlanQuantity `json:"includedQuantities"`
768
769 MaxAssociationLimit *int32 `json:"maxAssociationLimit,omitempty"`
770
771 MaxCapacityLimit *int32 `json:"maxCapacityLimit,omitempty"`
772
773 MinCapacityLimit *int32 `json:"minCapacityLimit,omitempty"`
774
775 PlanMeter *string `json:"planMeter,omitempty"`
776
777 RefillFrequencyInDays *int32 `json:"refillFrequencyInDays,omitempty"`
778
779 SuspendPlanOnOverage *bool `json:"suspendPlanOnOverage,omitempty"`
780 }
781
782
783 func (p Properties) MarshalJSON() ([]byte, error) {
784 objectMap := make(map[string]interface{})
785 return json.Marshal(objectMap)
786 }
787
788
789 type Resource struct {
790
791 ID *string `json:"id,omitempty"`
792
793 Name *string `json:"name,omitempty"`
794
795 Location *string `json:"location,omitempty"`
796
797 Type *string `json:"type,omitempty"`
798
799 Tags map[string]*string `json:"tags"`
800 }
801
802
803 func (r Resource) MarshalJSON() ([]byte, error) {
804 objectMap := make(map[string]interface{})
805 if r.Location != nil {
806 objectMap["location"] = r.Location
807 }
808 if r.Tags != nil {
809 objectMap["tags"] = r.Tags
810 }
811 return json.Marshal(objectMap)
812 }
813
814
815 type ResourceSku struct {
816
817 Capacity *int32 `json:"capacity,omitempty"`
818
819 Name *string `json:"name,omitempty"`
820
821 Tier *string `json:"tier,omitempty"`
822 }
823
824
825 type SkuCapability struct {
826
827 Name *string `json:"name,omitempty"`
828
829 Value *string `json:"value,omitempty"`
830 }
831
832
833 func (sc SkuCapability) MarshalJSON() ([]byte, error) {
834 objectMap := make(map[string]interface{})
835 return json.Marshal(objectMap)
836 }
837
838
839 type SkuCapacity struct {
840
841 Minimum *int64 `json:"minimum,omitempty"`
842
843 Maximum *int64 `json:"maximum,omitempty"`
844
845 Default *int64 `json:"default,omitempty"`
846
847 ScaleType SkuCapacityScaleType `json:"scaleType,omitempty"`
848 }
849
850
851 func (sc SkuCapacity) MarshalJSON() ([]byte, error) {
852 objectMap := make(map[string]interface{})
853 return json.Marshal(objectMap)
854 }
855
856
857 type SkuCost struct {
858
859 MeterID *string `json:"meterID,omitempty"`
860
861 Quantity *int64 `json:"quantity,omitempty"`
862
863 ExtendedUnit *string `json:"extendedUnit,omitempty"`
864 }
865
866
867 func (sc SkuCost) MarshalJSON() ([]byte, error) {
868 objectMap := make(map[string]interface{})
869 return json.Marshal(objectMap)
870 }
871
872
873 type SkuListResult struct {
874 autorest.Response `json:"-"`
875
876 Value *[]CatalogSku `json:"value,omitempty"`
877 }
878
879
880 func (slr SkuListResult) MarshalJSON() ([]byte, error) {
881 objectMap := make(map[string]interface{})
882 return json.Marshal(objectMap)
883 }
884
885
886 type SkuRestrictions struct {
887
888 Type ResourceSkuRestrictionsType `json:"type,omitempty"`
889
890 Values *[]string `json:"values,omitempty"`
891
892 ReasonCode ResourceSkuRestrictionsReasonCode `json:"reasonCode,omitempty"`
893 }
894
895
896 func (sr SkuRestrictions) MarshalJSON() ([]byte, error) {
897 objectMap := make(map[string]interface{})
898 return json.Marshal(objectMap)
899 }
900
View as plain text