-
Notifications
You must be signed in to change notification settings - Fork 188
/
service_product_spec_arm_types_gen.go
65 lines (51 loc) · 3.14 KB
/
service_product_spec_arm_types_gen.go
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
57
58
59
60
61
62
63
64
65
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20220801
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type Service_Product_Spec_ARM struct {
Name string `json:"name,omitempty"`
// Properties: Product entity contract properties.
Properties *ProductContractProperties_ARM `json:"properties,omitempty"`
}
var _ genruntime.ARMResourceSpec = &Service_Product_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2022-08-01"
func (product Service_Product_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (product *Service_Product_Spec_ARM) GetName() string {
return product.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.ApiManagement/service/products"
func (product *Service_Product_Spec_ARM) GetType() string {
return "Microsoft.ApiManagement/service/products"
}
// Product profile.
type ProductContractProperties_ARM struct {
// ApprovalRequired: whether subscription approval is required. If false, new subscriptions will be approved automatically
// enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually
// approve the subscription before the developer can any of the product’s APIs. Can be present only if
// subscriptionRequired property is present and has a value of false.
ApprovalRequired *bool `json:"approvalRequired,omitempty"`
// Description: Product description. May include HTML formatting tags.
Description *string `json:"description,omitempty"`
// DisplayName: Product name.
DisplayName *string `json:"displayName,omitempty"`
// State: whether product is published or not. Published products are discoverable by users of developer portal. Non
// published products are visible only to administrators. Default state of Product is notPublished.
State *ProductContractProperties_State `json:"state,omitempty"`
// SubscriptionRequired: Whether a product subscription is required for accessing APIs included in this product. If true,
// the product is referred to as "protected" and a valid subscription key is required for a request to an API included in
// the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product
// can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be
// true.
SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"`
// SubscriptionsLimit: Whether the number of subscriptions a user can have to this product at the same time. Set to null or
// omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has
// a value of false.
SubscriptionsLimit *int `json:"subscriptionsLimit,omitempty"`
// Terms: Product terms of use. Developers trying to subscribe to the product will be presented and required to accept
// these terms before they can complete the subscription process.
Terms *string `json:"terms,omitempty"`
}