/// <summary> /// Initializes a new instance of the NamespaceResourceInner class. /// </summary> /// <param name="tags">Resource tags</param> /// <param name="status">State of the Namespace. Possible values /// include: 'Unknown', 'Creating', 'Created', 'Activating', /// 'Enabling', 'Active', 'Disabling', 'Disabled', 'SoftDeleting', /// 'SoftDeleted', 'Removing', 'Removed', 'Failed'</param> /// <param name="provisioningState">Provisioning state of the /// Namespace.</param> /// <param name="createdAt">The time the Namespace was created.</param> /// <param name="updatedAt">The time the Namespace was updated.</param> /// <param name="serviceBusEndpoint">Endpoint you can use to perform /// Service Bus operations.</param> /// <param name="metricId">Identifier for Azure Insights /// metrics</param> /// <param name="enabled">Specifies whether this instance is /// enabled.</param> public NamespaceResourceInner(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), Sku sku = default(Sku), NamespaceState?status = default(NamespaceState?), string provisioningState = default(string), System.DateTime?createdAt = default(System.DateTime?), System.DateTime?updatedAt = default(System.DateTime?), string serviceBusEndpoint = default(string), string metricId = default(string), bool?enabled = default(bool?)) : base(location, id, name, type, tags) { Sku = sku; Status = status; ProvisioningState = provisioningState; CreatedAt = createdAt; UpdatedAt = updatedAt; ServiceBusEndpoint = serviceBusEndpoint; MetricId = metricId; Enabled = enabled; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// NamespaceCreateOrUpdateParametersInner class. /// </summary> /// <param name="location">Namespace location.</param> /// <param name="tags">Namespace tags.</param> /// <param name="status">State of the Namespace. Possible values /// include: 'Unknown', 'Creating', 'Created', 'Activating', /// 'Enabling', 'Active', 'Disabling', 'Disabled', 'SoftDeleting', /// 'SoftDeleted', 'Removing', 'Removed', 'Failed'</param> /// <param name="provisioningState">Provisioning state of the /// Namespace.</param> /// <param name="createdAt">The time the Namespace was created.</param> /// <param name="updatedAt">The time the Namespace was updated.</param> /// <param name="serviceBusEndpoint">Endpoint you can use to perform /// Service Bus operations.</param> /// <param name="metricId">Identifier for Azure Insights /// metrics</param> /// <param name="enabled">Specifies whether this instance is /// enabled.</param> public NamespaceCreateOrUpdateParametersInner(string location, Sku sku = default(Sku), IDictionary <string, string> tags = default(IDictionary <string, string>), NamespaceState?status = default(NamespaceState?), string provisioningState = default(string), System.DateTime?createdAt = default(System.DateTime?), System.DateTime?updatedAt = default(System.DateTime?), string serviceBusEndpoint = default(string), string metricId = default(string), bool?enabled = default(bool?)) { Location = location; Sku = sku; Tags = tags; Status = status; ProvisioningState = provisioningState; CreatedAt = createdAt; UpdatedAt = updatedAt; ServiceBusEndpoint = serviceBusEndpoint; MetricId = metricId; Enabled = enabled; CustomInit(); }
private Namespace(string name, Input <string> id, NamespaceState?state = null, CustomResourceOptions?options = null) : base("azure:notificationhub/namespace:Namespace", name, state, MakeResourceOptions(options, id)) { }
/// <summary> /// Get an existing Namespace 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 Namespace Get(string name, Input <string> id, NamespaceState?state = null, CustomResourceOptions?options = null) { return(new Namespace(name, id, state, options)); }
public PSNamespaceAttributes UpdateNamespace(string resourceGroupName, string namespaceName, string location, string skuName, int?skuCapacity, NamespaceState?state, Dictionary <string, string> tags, bool?isAutoInflateEnabled, int?maximumThroughputUnits) { var parameter = new EHNamespace() { Location = location }; Sku tempSku = new Sku(); if (skuName != null) { tempSku.Name = skuName; tempSku.Tier = skuName; } if (skuCapacity.HasValue) { tempSku.Capacity = skuCapacity; } parameter.Sku = tempSku; if (tags != null && tags.Count() > 0) { parameter.Tags = new Dictionary <string, string>(tags); } if (isAutoInflateEnabled.HasValue) { parameter.IsAutoInflateEnabled = isAutoInflateEnabled; } if (maximumThroughputUnits.HasValue) { parameter.MaximumThroughputUnits = maximumThroughputUnits; } var response = Client.Namespaces.Update(resourceGroupName, namespaceName, parameter); return(new PSNamespaceAttributes(response)); }
private Namespace(string name, Input <string> id, NamespaceState?state = null, CustomResourceOptions?options = null) : base("vault:index/namespace:Namespace", name, state, MakeResourceOptions(options, id)) { }
private Namespace(string name, Input <string> id, NamespaceState?state = null, CustomResourceOptions?options = null) : base("gcp:servicedirectory/namespace:Namespace", name, state, MakeResourceOptions(options, id)) { }
internal static string ToSerializedValue(this NamespaceState?value) { return(value == null ? null : ((NamespaceState)value).ToSerializedValue()); }
private Namespace(string name, Input <string> id, NamespaceState?state = null, CustomResourceOptions?options = null) : base("alicloud:schedulerx/namespace:Namespace", name, state, MakeResourceOptions(options, id)) { }