예제 #1
0
 /// <summary>
 /// Initializes a new instance of the ProductEntityBaseParameters
 /// class.
 /// </summary>
 /// <param name="description">Product description. May include HTML
 /// formatting tags.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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. Possible values include:
 /// 'notPublished', 'published'</param>
 public ProductEntityBaseParameters(string description = default(string), string terms = default(string), bool?subscriptionRequired = default(bool?), bool?approvalRequired = default(bool?), int?subscriptionsLimit = default(int?), ProductState?state = default(ProductState?))
 {
     Description          = description;
     Terms                = terms;
     SubscriptionRequired = subscriptionRequired;
     ApprovalRequired     = approvalRequired;
     SubscriptionsLimit   = subscriptionsLimit;
     State                = state;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ProductContract class.
 /// </summary>
 /// <param name="displayName">Product name.</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type for API Management
 /// resource.</param>
 /// <param name="description">Product description. May include HTML
 /// formatting tags.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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. Possible values include:
 /// 'notPublished', 'published'</param>
 public ProductContract(string displayName, string id = default(string), string name = default(string), string type = default(string), string description = default(string), string terms = default(string), bool?subscriptionRequired = default(bool?), bool?approvalRequired = default(bool?), int?subscriptionsLimit = default(int?), ProductState?state = default(ProductState?))
     : base(id, name, type)
 {
     Description          = description;
     Terms                = terms;
     SubscriptionRequired = subscriptionRequired;
     ApprovalRequired     = approvalRequired;
     SubscriptionsLimit   = subscriptionsLimit;
     State                = state;
     DisplayName          = displayName;
     CustomInit();
 }
예제 #3
0
 /// <summary>
 /// Get an existing Product resource's state with the given name, ID, and optional extra
 /// properties used to qualify the lookup.
 /// </summary>
 ///
 /// <param name="name">The unique name of the resulting resource.</param>
 /// <param name="id">The unique provider ID of the resource to lookup.</param>
 /// <param name="state">Any extra arguments used during the lookup.</param>
 /// <param name="options">A bag of options that control this resource's behavior</param>
 public static Product Get(string name, Input <string> id, ProductState?state = null, CustomResourceOptions?options = null)
 {
     return(new Product(name, id, state, options));
 }
예제 #4
0
 private Product(string name, Input <string> id, ProductState?state = null, CustomResourceOptions?options = null)
     : base("azure:apimanagement/product:Product", name, state, MakeResourceOptions(options, id))
 {
 }
예제 #5
0
 internal static string ToSerializedValue(this ProductState?value)
 {
     return(value == null ? null : ((ProductState)value).ToSerializedValue());
 }
예제 #6
0
 private Product(string name, Input <string> id, ProductState?state = null, CustomResourceOptions?options = null)
     : base("alicloud:mhub/product:Product", name, state, MakeResourceOptions(options, id))
 {
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the
 /// ProductTagResourceContractProperties class.
 /// </summary>
 /// <param name="name">Product name.</param>
 /// <param name="description">Product description. May include HTML
 /// formatting tags.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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.</param>
 /// <param name="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. Possible values include:
 /// 'notPublished', 'published'</param>
 /// <param name="id">Identifier of the product in the form of
 /// /products/{productId}</param>
 public ProductTagResourceContractProperties(string name, string description = default(string), string terms = default(string), bool?subscriptionRequired = default(bool?), bool?approvalRequired = default(bool?), int?subscriptionsLimit = default(int?), ProductState?state = default(ProductState?), string id = default(string))
     : base(description, terms, subscriptionRequired, approvalRequired, subscriptionsLimit, state)
 {
     Id   = id;
     Name = name;
     CustomInit();
 }