diff --git a/sdk/dotnet/KeyManager/ContainerV1.cs b/sdk/dotnet/KeyManager/ContainerV1.cs index 5249005d5..474e75dc6 100644 --- a/sdk/dotnet/KeyManager/ContainerV1.cs +++ b/sdk/dotnet/KeyManager/ContainerV1.cs @@ -89,7 +89,7 @@ namespace Pulumi.OpenStack.KeyManager /// Name = "my-subnet", /// }); /// - /// var lb1 = new OpenStack.LoadBalancer.LoadBalancer("lb_1", new() + /// var lb1 = new OpenStack.LbLoadbalancerV2("lb_1", new() /// { /// Name = "loadbalancer", /// VipSubnetId = subnet1.Apply(getSubnetResult => getSubnetResult.Id), diff --git a/sdk/dotnet/LbLoadbalancerV2.cs b/sdk/dotnet/LbLoadbalancerV2.cs new file mode 100644 index 000000000..b730beb1d --- /dev/null +++ b/sdk/dotnet/LbLoadbalancerV2.cs @@ -0,0 +1,458 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.OpenStack +{ + /// + /// Manages a V2 loadbalancer resource within OpenStack. + /// + /// > **Note:** This resource has attributes that depend on octavia minor versions. + /// Please ensure your Openstack cloud supports the required minor version. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using OpenStack = Pulumi.OpenStack; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var lb1 = new OpenStack.LbLoadbalancerV2("lb_1", new() + /// { + /// VipSubnetId = "d9415786-5f1a-428b-b35f-2f1523e146d2", + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// Load Balancer can be imported using the Load Balancer ID, e.g.: + /// + /// ```sh + /// $ pulumi import openstack:index/lbLoadbalancerV2:LbLoadbalancerV2 loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 + /// ``` + /// + [OpenStackResourceType("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2")] + public partial class LbLoadbalancerV2 : global::Pulumi.CustomResource + { + /// + /// The administrative state of the Loadbalancer. + /// A valid value is true (UP) or false (DOWN). + /// + [Output("adminStateUp")] + public Output AdminStateUp { get; private set; } = null!; + + /// + /// The availability zone of the Loadbalancer. + /// Changing this creates a new loadbalancer. Available only for Octavia + /// **minor version 2.14 or later**. + /// + [Output("availabilityZone")] + public Output AvailabilityZone { get; private set; } = null!; + + /// + /// Human-readable description for the Loadbalancer. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The UUID of a flavor. Changing this creates a new + /// loadbalancer. + /// + [Output("flavorId")] + public Output FlavorId { get; private set; } = null!; + + /// + /// The name of the provider. Changing this + /// creates a new loadbalancer. + /// + [Output("loadbalancerProvider")] + public Output LoadbalancerProvider { get; private set; } = null!; + + /// + /// Human-readable name for the Loadbalancer. Does not have + /// to be unique. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The region in which to obtain the V2 Networking client. + /// A Networking client is needed to create an LB member. If omitted, the + /// `region` argument of the provider is used. Changing this creates a new + /// LB member. + /// + [Output("region")] + public Output Region { get; private set; } = null!; + + /// + /// A list of security group IDs to apply to the + /// loadbalancer. The security groups must be specified by ID and not name (as + /// opposed to how they are configured with the Compute Instance). + /// + [Output("securityGroupIds")] + public Output> SecurityGroupIds { get; private set; } = null!; + + /// + /// A list of simple strings assigned to the loadbalancer. + /// Available only for Octavia **minor version 2.5 or later**. + /// + [Output("tags")] + public Output> Tags { get; private set; } = null!; + + /// + /// Required for admins. The UUID of the tenant who owns + /// the Loadbalancer. Only administrative users can specify a tenant UUID + /// other than their own. Changing this creates a new loadbalancer. + /// + [Output("tenantId")] + public Output TenantId { get; private set; } = null!; + + /// + /// The ip address of the load balancer. + /// Changing this creates a new loadbalancer. + /// + [Output("vipAddress")] + public Output VipAddress { get; private set; } = null!; + + /// + /// The network on which to allocate the + /// Loadbalancer's address. A tenant can only create Loadbalancers on networks + /// authorized by policy (e.g. networks that belong to them or networks that + /// are shared). Changing this creates a new loadbalancer. + /// It is available only for Octavia. + /// + [Output("vipNetworkId")] + public Output VipNetworkId { get; private set; } = null!; + + /// + /// The port UUID that the loadbalancer will use. + /// Changing this creates a new loadbalancer. It is available only for Octavia. + /// + [Output("vipPortId")] + public Output VipPortId { get; private set; } = null!; + + /// + /// The subnet on which to allocate the + /// Loadbalancer's address. A tenant can only create Loadbalancers on networks + /// authorized by policy (e.g. networks that belong to them or networks that + /// are shared). Changing this creates a new loadbalancer. + /// It is required to Neutron LBaaS but optional for Octavia. + /// + [Output("vipSubnetId")] + public Output VipSubnetId { get; private set; } = null!; + + + /// + /// Create a LbLoadbalancerV2 resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public LbLoadbalancerV2(string name, LbLoadbalancerV2Args? args = null, CustomResourceOptions? options = null) + : base("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2", name, args ?? new LbLoadbalancerV2Args(), MakeResourceOptions(options, "")) + { + } + + private LbLoadbalancerV2(string name, Input id, LbLoadbalancerV2State? state = null, CustomResourceOptions? options = null) + : base("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new global::Pulumi.Alias { Type = "openstack:loadbalancer/loadBalancer:LoadBalancer" }, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing LbLoadbalancerV2 resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static LbLoadbalancerV2 Get(string name, Input id, LbLoadbalancerV2State? state = null, CustomResourceOptions? options = null) + { + return new LbLoadbalancerV2(name, id, state, options); + } + } + + public sealed class LbLoadbalancerV2Args : global::Pulumi.ResourceArgs + { + /// + /// The administrative state of the Loadbalancer. + /// A valid value is true (UP) or false (DOWN). + /// + [Input("adminStateUp")] + public Input? AdminStateUp { get; set; } + + /// + /// The availability zone of the Loadbalancer. + /// Changing this creates a new loadbalancer. Available only for Octavia + /// **minor version 2.14 or later**. + /// + [Input("availabilityZone")] + public Input? AvailabilityZone { get; set; } + + /// + /// Human-readable description for the Loadbalancer. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The UUID of a flavor. Changing this creates a new + /// loadbalancer. + /// + [Input("flavorId")] + public Input? FlavorId { get; set; } + + /// + /// The name of the provider. Changing this + /// creates a new loadbalancer. + /// + [Input("loadbalancerProvider")] + public Input? LoadbalancerProvider { get; set; } + + /// + /// Human-readable name for the Loadbalancer. Does not have + /// to be unique. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The region in which to obtain the V2 Networking client. + /// A Networking client is needed to create an LB member. If omitted, the + /// `region` argument of the provider is used. Changing this creates a new + /// LB member. + /// + [Input("region")] + public Input? Region { get; set; } + + [Input("securityGroupIds")] + private InputList? _securityGroupIds; + + /// + /// A list of security group IDs to apply to the + /// loadbalancer. The security groups must be specified by ID and not name (as + /// opposed to how they are configured with the Compute Instance). + /// + public InputList SecurityGroupIds + { + get => _securityGroupIds ?? (_securityGroupIds = new InputList()); + set => _securityGroupIds = value; + } + + [Input("tags")] + private InputList? _tags; + + /// + /// A list of simple strings assigned to the loadbalancer. + /// Available only for Octavia **minor version 2.5 or later**. + /// + public InputList Tags + { + get => _tags ?? (_tags = new InputList()); + set => _tags = value; + } + + /// + /// Required for admins. The UUID of the tenant who owns + /// the Loadbalancer. Only administrative users can specify a tenant UUID + /// other than their own. Changing this creates a new loadbalancer. + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + /// + /// The ip address of the load balancer. + /// Changing this creates a new loadbalancer. + /// + [Input("vipAddress")] + public Input? VipAddress { get; set; } + + /// + /// The network on which to allocate the + /// Loadbalancer's address. A tenant can only create Loadbalancers on networks + /// authorized by policy (e.g. networks that belong to them or networks that + /// are shared). Changing this creates a new loadbalancer. + /// It is available only for Octavia. + /// + [Input("vipNetworkId")] + public Input? VipNetworkId { get; set; } + + /// + /// The port UUID that the loadbalancer will use. + /// Changing this creates a new loadbalancer. It is available only for Octavia. + /// + [Input("vipPortId")] + public Input? VipPortId { get; set; } + + /// + /// The subnet on which to allocate the + /// Loadbalancer's address. A tenant can only create Loadbalancers on networks + /// authorized by policy (e.g. networks that belong to them or networks that + /// are shared). Changing this creates a new loadbalancer. + /// It is required to Neutron LBaaS but optional for Octavia. + /// + [Input("vipSubnetId")] + public Input? VipSubnetId { get; set; } + + public LbLoadbalancerV2Args() + { + } + public static new LbLoadbalancerV2Args Empty => new LbLoadbalancerV2Args(); + } + + public sealed class LbLoadbalancerV2State : global::Pulumi.ResourceArgs + { + /// + /// The administrative state of the Loadbalancer. + /// A valid value is true (UP) or false (DOWN). + /// + [Input("adminStateUp")] + public Input? AdminStateUp { get; set; } + + /// + /// The availability zone of the Loadbalancer. + /// Changing this creates a new loadbalancer. Available only for Octavia + /// **minor version 2.14 or later**. + /// + [Input("availabilityZone")] + public Input? AvailabilityZone { get; set; } + + /// + /// Human-readable description for the Loadbalancer. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The UUID of a flavor. Changing this creates a new + /// loadbalancer. + /// + [Input("flavorId")] + public Input? FlavorId { get; set; } + + /// + /// The name of the provider. Changing this + /// creates a new loadbalancer. + /// + [Input("loadbalancerProvider")] + public Input? LoadbalancerProvider { get; set; } + + /// + /// Human-readable name for the Loadbalancer. Does not have + /// to be unique. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The region in which to obtain the V2 Networking client. + /// A Networking client is needed to create an LB member. If omitted, the + /// `region` argument of the provider is used. Changing this creates a new + /// LB member. + /// + [Input("region")] + public Input? Region { get; set; } + + [Input("securityGroupIds")] + private InputList? _securityGroupIds; + + /// + /// A list of security group IDs to apply to the + /// loadbalancer. The security groups must be specified by ID and not name (as + /// opposed to how they are configured with the Compute Instance). + /// + public InputList SecurityGroupIds + { + get => _securityGroupIds ?? (_securityGroupIds = new InputList()); + set => _securityGroupIds = value; + } + + [Input("tags")] + private InputList? _tags; + + /// + /// A list of simple strings assigned to the loadbalancer. + /// Available only for Octavia **minor version 2.5 or later**. + /// + public InputList Tags + { + get => _tags ?? (_tags = new InputList()); + set => _tags = value; + } + + /// + /// Required for admins. The UUID of the tenant who owns + /// the Loadbalancer. Only administrative users can specify a tenant UUID + /// other than their own. Changing this creates a new loadbalancer. + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + /// + /// The ip address of the load balancer. + /// Changing this creates a new loadbalancer. + /// + [Input("vipAddress")] + public Input? VipAddress { get; set; } + + /// + /// The network on which to allocate the + /// Loadbalancer's address. A tenant can only create Loadbalancers on networks + /// authorized by policy (e.g. networks that belong to them or networks that + /// are shared). Changing this creates a new loadbalancer. + /// It is available only for Octavia. + /// + [Input("vipNetworkId")] + public Input? VipNetworkId { get; set; } + + /// + /// The port UUID that the loadbalancer will use. + /// Changing this creates a new loadbalancer. It is available only for Octavia. + /// + [Input("vipPortId")] + public Input? VipPortId { get; set; } + + /// + /// The subnet on which to allocate the + /// Loadbalancer's address. A tenant can only create Loadbalancers on networks + /// authorized by policy (e.g. networks that belong to them or networks that + /// are shared). Changing this creates a new loadbalancer. + /// It is required to Neutron LBaaS but optional for Octavia. + /// + [Input("vipSubnetId")] + public Input? VipSubnetId { get; set; } + + public LbLoadbalancerV2State() + { + } + public static new LbLoadbalancerV2State Empty => new LbLoadbalancerV2State(); + } +} diff --git a/sdk/dotnet/LoadBalancer/L7PolicyV2.cs b/sdk/dotnet/LoadBalancer/L7PolicyV2.cs index f7630b041..1d7a9eb62 100644 --- a/sdk/dotnet/LoadBalancer/L7PolicyV2.cs +++ b/sdk/dotnet/LoadBalancer/L7PolicyV2.cs @@ -36,7 +36,7 @@ namespace Pulumi.OpenStack.LoadBalancer /// NetworkId = network1.Id, /// }); /// - /// var loadbalancer1 = new OpenStack.LoadBalancer.LoadBalancer("loadbalancer_1", new() + /// var loadbalancer1 = new OpenStack.LbLoadbalancerV2("loadbalancer_1", new() /// { /// Name = "loadbalancer_1", /// VipSubnetId = subnet1.Id, diff --git a/sdk/dotnet/LoadBalancer/L7RuleV2.cs b/sdk/dotnet/LoadBalancer/L7RuleV2.cs index f0a76d277..26fccfcd7 100644 --- a/sdk/dotnet/LoadBalancer/L7RuleV2.cs +++ b/sdk/dotnet/LoadBalancer/L7RuleV2.cs @@ -36,7 +36,7 @@ namespace Pulumi.OpenStack.LoadBalancer /// NetworkId = network1.Id, /// }); /// - /// var loadbalancer1 = new OpenStack.LoadBalancer.LoadBalancer("loadbalancer_1", new() + /// var loadbalancer1 = new OpenStack.LbLoadbalancerV2("loadbalancer_1", new() /// { /// Name = "loadbalancer_1", /// VipSubnetId = subnet1.Id, diff --git a/sdk/dotnet/LoadBalancer/LoadBalancer.cs b/sdk/dotnet/LoadBalancer/LoadBalancer.cs index 71ffacaf6..ddaf48192 100644 --- a/sdk/dotnet/LoadBalancer/LoadBalancer.cs +++ b/sdk/dotnet/LoadBalancer/LoadBalancer.cs @@ -9,146 +9,49 @@ namespace Pulumi.OpenStack.LoadBalancer { - /// - /// Manages a V2 loadbalancer resource within OpenStack. - /// - /// > **Note:** This resource has attributes that depend on octavia minor versions. - /// Please ensure your Openstack cloud supports the required minor version. - /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using OpenStack = Pulumi.OpenStack; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var lb1 = new OpenStack.LoadBalancer.LoadBalancer("lb_1", new() - /// { - /// VipSubnetId = "d9415786-5f1a-428b-b35f-2f1523e146d2", - /// }); - /// - /// }); - /// ``` - /// - /// ## Import - /// - /// Load Balancer can be imported using the Load Balancer ID, e.g.: - /// - /// ```sh - /// $ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 - /// ``` - /// + [Obsolete(@"openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2")] [OpenStackResourceType("openstack:loadbalancer/loadBalancer:LoadBalancer")] public partial class LoadBalancer : global::Pulumi.CustomResource { - /// - /// The administrative state of the Loadbalancer. - /// A valid value is true (UP) or false (DOWN). - /// [Output("adminStateUp")] public Output AdminStateUp { get; private set; } = null!; - /// - /// The availability zone of the Loadbalancer. - /// Changing this creates a new loadbalancer. Available only for Octavia - /// **minor version 2.14 or later**. - /// [Output("availabilityZone")] public Output AvailabilityZone { get; private set; } = null!; - /// - /// Human-readable description for the Loadbalancer. - /// [Output("description")] public Output Description { get; private set; } = null!; - /// - /// The UUID of a flavor. Changing this creates a new - /// loadbalancer. - /// [Output("flavorId")] public Output FlavorId { get; private set; } = null!; - /// - /// The name of the provider. Changing this - /// creates a new loadbalancer. - /// [Output("loadbalancerProvider")] public Output LoadbalancerProvider { get; private set; } = null!; - /// - /// Human-readable name for the Loadbalancer. Does not have - /// to be unique. - /// [Output("name")] public Output Name { get; private set; } = null!; - /// - /// The region in which to obtain the V2 Networking client. - /// A Networking client is needed to create an LB member. If omitted, the - /// `region` argument of the provider is used. Changing this creates a new - /// LB member. - /// [Output("region")] public Output Region { get; private set; } = null!; - /// - /// A list of security group IDs to apply to the - /// loadbalancer. The security groups must be specified by ID and not name (as - /// opposed to how they are configured with the Compute Instance). - /// [Output("securityGroupIds")] public Output> SecurityGroupIds { get; private set; } = null!; - /// - /// A list of simple strings assigned to the loadbalancer. - /// Available only for Octavia **minor version 2.5 or later**. - /// [Output("tags")] public Output> Tags { get; private set; } = null!; - /// - /// Required for admins. The UUID of the tenant who owns - /// the Loadbalancer. Only administrative users can specify a tenant UUID - /// other than their own. Changing this creates a new loadbalancer. - /// [Output("tenantId")] public Output TenantId { get; private set; } = null!; - /// - /// The ip address of the load balancer. - /// Changing this creates a new loadbalancer. - /// [Output("vipAddress")] public Output VipAddress { get; private set; } = null!; - /// - /// The network on which to allocate the - /// Loadbalancer's address. A tenant can only create Loadbalancers on networks - /// authorized by policy (e.g. networks that belong to them or networks that - /// are shared). Changing this creates a new loadbalancer. - /// It is available only for Octavia. - /// [Output("vipNetworkId")] public Output VipNetworkId { get; private set; } = null!; - /// - /// The port UUID that the loadbalancer will use. - /// Changing this creates a new loadbalancer. It is available only for Octavia. - /// [Output("vipPortId")] public Output VipPortId { get; private set; } = null!; - /// - /// The subnet on which to allocate the - /// Loadbalancer's address. A tenant can only create Loadbalancers on networks - /// authorized by policy (e.g. networks that belong to them or networks that - /// are shared). Changing this creates a new loadbalancer. - /// It is required to Neutron LBaaS but optional for Octavia. - /// [Output("vipSubnetId")] public Output VipSubnetId { get; private set; } = null!; @@ -198,65 +101,29 @@ public static LoadBalancer Get(string name, Input id, LoadBalancerState? public sealed class LoadBalancerArgs : global::Pulumi.ResourceArgs { - /// - /// The administrative state of the Loadbalancer. - /// A valid value is true (UP) or false (DOWN). - /// [Input("adminStateUp")] public Input? AdminStateUp { get; set; } - /// - /// The availability zone of the Loadbalancer. - /// Changing this creates a new loadbalancer. Available only for Octavia - /// **minor version 2.14 or later**. - /// [Input("availabilityZone")] public Input? AvailabilityZone { get; set; } - /// - /// Human-readable description for the Loadbalancer. - /// [Input("description")] public Input? Description { get; set; } - /// - /// The UUID of a flavor. Changing this creates a new - /// loadbalancer. - /// [Input("flavorId")] public Input? FlavorId { get; set; } - /// - /// The name of the provider. Changing this - /// creates a new loadbalancer. - /// [Input("loadbalancerProvider")] public Input? LoadbalancerProvider { get; set; } - /// - /// Human-readable name for the Loadbalancer. Does not have - /// to be unique. - /// [Input("name")] public Input? Name { get; set; } - /// - /// The region in which to obtain the V2 Networking client. - /// A Networking client is needed to create an LB member. If omitted, the - /// `region` argument of the provider is used. Changing this creates a new - /// LB member. - /// [Input("region")] public Input? Region { get; set; } [Input("securityGroupIds")] private InputList? _securityGroupIds; - - /// - /// A list of security group IDs to apply to the - /// loadbalancer. The security groups must be specified by ID and not name (as - /// opposed to how they are configured with the Compute Instance). - /// public InputList SecurityGroupIds { get => _securityGroupIds ?? (_securityGroupIds = new InputList()); @@ -265,56 +132,24 @@ public InputList SecurityGroupIds [Input("tags")] private InputList? _tags; - - /// - /// A list of simple strings assigned to the loadbalancer. - /// Available only for Octavia **minor version 2.5 or later**. - /// public InputList Tags { get => _tags ?? (_tags = new InputList()); set => _tags = value; } - /// - /// Required for admins. The UUID of the tenant who owns - /// the Loadbalancer. Only administrative users can specify a tenant UUID - /// other than their own. Changing this creates a new loadbalancer. - /// [Input("tenantId")] public Input? TenantId { get; set; } - /// - /// The ip address of the load balancer. - /// Changing this creates a new loadbalancer. - /// [Input("vipAddress")] public Input? VipAddress { get; set; } - /// - /// The network on which to allocate the - /// Loadbalancer's address. A tenant can only create Loadbalancers on networks - /// authorized by policy (e.g. networks that belong to them or networks that - /// are shared). Changing this creates a new loadbalancer. - /// It is available only for Octavia. - /// [Input("vipNetworkId")] public Input? VipNetworkId { get; set; } - /// - /// The port UUID that the loadbalancer will use. - /// Changing this creates a new loadbalancer. It is available only for Octavia. - /// [Input("vipPortId")] public Input? VipPortId { get; set; } - /// - /// The subnet on which to allocate the - /// Loadbalancer's address. A tenant can only create Loadbalancers on networks - /// authorized by policy (e.g. networks that belong to them or networks that - /// are shared). Changing this creates a new loadbalancer. - /// It is required to Neutron LBaaS but optional for Octavia. - /// [Input("vipSubnetId")] public Input? VipSubnetId { get; set; } @@ -326,65 +161,29 @@ public LoadBalancerArgs() public sealed class LoadBalancerState : global::Pulumi.ResourceArgs { - /// - /// The administrative state of the Loadbalancer. - /// A valid value is true (UP) or false (DOWN). - /// [Input("adminStateUp")] public Input? AdminStateUp { get; set; } - /// - /// The availability zone of the Loadbalancer. - /// Changing this creates a new loadbalancer. Available only for Octavia - /// **minor version 2.14 or later**. - /// [Input("availabilityZone")] public Input? AvailabilityZone { get; set; } - /// - /// Human-readable description for the Loadbalancer. - /// [Input("description")] public Input? Description { get; set; } - /// - /// The UUID of a flavor. Changing this creates a new - /// loadbalancer. - /// [Input("flavorId")] public Input? FlavorId { get; set; } - /// - /// The name of the provider. Changing this - /// creates a new loadbalancer. - /// [Input("loadbalancerProvider")] public Input? LoadbalancerProvider { get; set; } - /// - /// Human-readable name for the Loadbalancer. Does not have - /// to be unique. - /// [Input("name")] public Input? Name { get; set; } - /// - /// The region in which to obtain the V2 Networking client. - /// A Networking client is needed to create an LB member. If omitted, the - /// `region` argument of the provider is used. Changing this creates a new - /// LB member. - /// [Input("region")] public Input? Region { get; set; } [Input("securityGroupIds")] private InputList? _securityGroupIds; - - /// - /// A list of security group IDs to apply to the - /// loadbalancer. The security groups must be specified by ID and not name (as - /// opposed to how they are configured with the Compute Instance). - /// public InputList SecurityGroupIds { get => _securityGroupIds ?? (_securityGroupIds = new InputList()); @@ -393,56 +192,24 @@ public InputList SecurityGroupIds [Input("tags")] private InputList? _tags; - - /// - /// A list of simple strings assigned to the loadbalancer. - /// Available only for Octavia **minor version 2.5 or later**. - /// public InputList Tags { get => _tags ?? (_tags = new InputList()); set => _tags = value; } - /// - /// Required for admins. The UUID of the tenant who owns - /// the Loadbalancer. Only administrative users can specify a tenant UUID - /// other than their own. Changing this creates a new loadbalancer. - /// [Input("tenantId")] public Input? TenantId { get; set; } - /// - /// The ip address of the load balancer. - /// Changing this creates a new loadbalancer. - /// [Input("vipAddress")] public Input? VipAddress { get; set; } - /// - /// The network on which to allocate the - /// Loadbalancer's address. A tenant can only create Loadbalancers on networks - /// authorized by policy (e.g. networks that belong to them or networks that - /// are shared). Changing this creates a new loadbalancer. - /// It is available only for Octavia. - /// [Input("vipNetworkId")] public Input? VipNetworkId { get; set; } - /// - /// The port UUID that the loadbalancer will use. - /// Changing this creates a new loadbalancer. It is available only for Octavia. - /// [Input("vipPortId")] public Input? VipPortId { get; set; } - /// - /// The subnet on which to allocate the - /// Loadbalancer's address. A tenant can only create Loadbalancers on networks - /// authorized by policy (e.g. networks that belong to them or networks that - /// are shared). Changing this creates a new loadbalancer. - /// It is required to Neutron LBaaS but optional for Octavia. - /// [Input("vipSubnetId")] public Input? VipSubnetId { get; set; } diff --git a/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyArgs.cs b/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyArgs.cs index a4917a91d..33141cb71 100644 --- a/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyArgs.cs +++ b/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyArgs.cs @@ -12,9 +12,15 @@ namespace Pulumi.OpenStack.ObjectStorage.Inputs public sealed class ContainerVersioningLegacyArgs : global::Pulumi.ResourceArgs { + /// + /// Container in which versions will be stored. + /// [Input("location", required: true)] public Input Location { get; set; } = null!; + /// + /// Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + /// [Input("type", required: true)] public Input Type { get; set; } = null!; diff --git a/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyGetArgs.cs b/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyGetArgs.cs index 397f26035..8917e4e4e 100644 --- a/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyGetArgs.cs +++ b/sdk/dotnet/ObjectStorage/Inputs/ContainerVersioningLegacyGetArgs.cs @@ -12,9 +12,15 @@ namespace Pulumi.OpenStack.ObjectStorage.Inputs public sealed class ContainerVersioningLegacyGetArgs : global::Pulumi.ResourceArgs { + /// + /// Container in which versions will be stored. + /// [Input("location", required: true)] public Input Location { get; set; } = null!; + /// + /// Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + /// [Input("type", required: true)] public Input Type { get; set; } = null!; diff --git a/sdk/dotnet/ObjectStorage/Outputs/ContainerVersioningLegacy.cs b/sdk/dotnet/ObjectStorage/Outputs/ContainerVersioningLegacy.cs index b628dc030..a06610c01 100644 --- a/sdk/dotnet/ObjectStorage/Outputs/ContainerVersioningLegacy.cs +++ b/sdk/dotnet/ObjectStorage/Outputs/ContainerVersioningLegacy.cs @@ -13,7 +13,13 @@ namespace Pulumi.OpenStack.ObjectStorage.Outputs [OutputType] public sealed class ContainerVersioningLegacy { + /// + /// Container in which versions will be stored. + /// public readonly string Location; + /// + /// Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + /// public readonly string Type; [OutputConstructor] diff --git a/sdk/go/openstack/init.go b/sdk/go/openstack/init.go index fd9a4fbfe..9aa0e069c 100644 --- a/sdk/go/openstack/init.go +++ b/sdk/go/openstack/init.go @@ -11,6 +11,26 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +type module struct { + version semver.Version +} + +func (m *module) Version() semver.Version { + return m.version +} + +func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { + switch typ { + case "openstack:index/lbLoadbalancerV2:LbLoadbalancerV2": + r = &LbLoadbalancerV2{} + default: + return nil, fmt.Errorf("unknown resource type: %s", typ) + } + + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) + return +} + type pkg struct { version semver.Version } @@ -34,6 +54,11 @@ func init() { if err != nil { version = semver.Version{Major: 1} } + pulumi.RegisterResourceModule( + "openstack", + "index/lbLoadbalancerV2", + &module{version}, + ) pulumi.RegisterResourcePackage( "openstack", &pkg{version}, diff --git a/sdk/go/openstack/keymanager/containerV1.go b/sdk/go/openstack/keymanager/containerV1.go index ed2b8453d..204319314 100644 --- a/sdk/go/openstack/keymanager/containerV1.go +++ b/sdk/go/openstack/keymanager/containerV1.go @@ -25,6 +25,7 @@ import ( // // import ( // +// "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/keymanager" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/networking" @@ -107,7 +108,7 @@ import ( // if err != nil { // return err // } -// lb1, err := loadbalancer.NewLoadBalancer(ctx, "lb_1", &loadbalancer.LoadBalancerArgs{ +// lb1, err := openstack.NewLbLoadbalancerV2(ctx, "lb_1", &openstack.LbLoadbalancerV2Args{ // Name: pulumi.String("loadbalancer"), // VipSubnetId: pulumi.String(subnet1.Id), // }) diff --git a/sdk/go/openstack/lbLoadbalancerV2.go b/sdk/go/openstack/lbLoadbalancerV2.go new file mode 100644 index 000000000..4f6cf4ab0 --- /dev/null +++ b/sdk/go/openstack/lbLoadbalancerV2.go @@ -0,0 +1,597 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package openstack + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manages a V2 loadbalancer resource within OpenStack. +// +// > **Note:** This resource has attributes that depend on octavia minor versions. +// Please ensure your Openstack cloud supports the required minor version. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := openstack.NewLbLoadbalancerV2(ctx, "lb_1", &openstack.LbLoadbalancerV2Args{ +// VipSubnetId: pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// Load Balancer can be imported using the Load Balancer ID, e.g.: +// +// ```sh +// $ pulumi import openstack:index/lbLoadbalancerV2:LbLoadbalancerV2 loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 +// ``` +type LbLoadbalancerV2 struct { + pulumi.CustomResourceState + + // The administrative state of the Loadbalancer. + // A valid value is true (UP) or false (DOWN). + AdminStateUp pulumi.BoolPtrOutput `pulumi:"adminStateUp"` + // The availability zone of the Loadbalancer. + // Changing this creates a new loadbalancer. Available only for Octavia + // **minor version 2.14 or later**. + AvailabilityZone pulumi.StringPtrOutput `pulumi:"availabilityZone"` + // Human-readable description for the Loadbalancer. + Description pulumi.StringPtrOutput `pulumi:"description"` + // The UUID of a flavor. Changing this creates a new + // loadbalancer. + FlavorId pulumi.StringOutput `pulumi:"flavorId"` + // The name of the provider. Changing this + // creates a new loadbalancer. + LoadbalancerProvider pulumi.StringOutput `pulumi:"loadbalancerProvider"` + // Human-readable name for the Loadbalancer. Does not have + // to be unique. + Name pulumi.StringOutput `pulumi:"name"` + // The region in which to obtain the V2 Networking client. + // A Networking client is needed to create an LB member. If omitted, the + // `region` argument of the provider is used. Changing this creates a new + // LB member. + Region pulumi.StringOutput `pulumi:"region"` + // A list of security group IDs to apply to the + // loadbalancer. The security groups must be specified by ID and not name (as + // opposed to how they are configured with the Compute Instance). + SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"` + // A list of simple strings assigned to the loadbalancer. + // Available only for Octavia **minor version 2.5 or later**. + Tags pulumi.StringArrayOutput `pulumi:"tags"` + // Required for admins. The UUID of the tenant who owns + // the Loadbalancer. Only administrative users can specify a tenant UUID + // other than their own. Changing this creates a new loadbalancer. + TenantId pulumi.StringOutput `pulumi:"tenantId"` + // The ip address of the load balancer. + // Changing this creates a new loadbalancer. + VipAddress pulumi.StringOutput `pulumi:"vipAddress"` + // The network on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is available only for Octavia. + VipNetworkId pulumi.StringOutput `pulumi:"vipNetworkId"` + // The port UUID that the loadbalancer will use. + // Changing this creates a new loadbalancer. It is available only for Octavia. + VipPortId pulumi.StringOutput `pulumi:"vipPortId"` + // The subnet on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is required to Neutron LBaaS but optional for Octavia. + VipSubnetId pulumi.StringOutput `pulumi:"vipSubnetId"` +} + +// NewLbLoadbalancerV2 registers a new resource with the given unique name, arguments, and options. +func NewLbLoadbalancerV2(ctx *pulumi.Context, + name string, args *LbLoadbalancerV2Args, opts ...pulumi.ResourceOption) (*LbLoadbalancerV2, error) { + if args == nil { + args = &LbLoadbalancerV2Args{} + } + + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("openstack:loadbalancer/loadBalancer:LoadBalancer"), + }, + }) + opts = append(opts, aliases) + opts = internal.PkgResourceDefaultOpts(opts) + var resource LbLoadbalancerV2 + err := ctx.RegisterResource("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetLbLoadbalancerV2 gets an existing LbLoadbalancerV2 resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetLbLoadbalancerV2(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *LbLoadbalancerV2State, opts ...pulumi.ResourceOption) (*LbLoadbalancerV2, error) { + var resource LbLoadbalancerV2 + err := ctx.ReadResource("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering LbLoadbalancerV2 resources. +type lbLoadbalancerV2State struct { + // The administrative state of the Loadbalancer. + // A valid value is true (UP) or false (DOWN). + AdminStateUp *bool `pulumi:"adminStateUp"` + // The availability zone of the Loadbalancer. + // Changing this creates a new loadbalancer. Available only for Octavia + // **minor version 2.14 or later**. + AvailabilityZone *string `pulumi:"availabilityZone"` + // Human-readable description for the Loadbalancer. + Description *string `pulumi:"description"` + // The UUID of a flavor. Changing this creates a new + // loadbalancer. + FlavorId *string `pulumi:"flavorId"` + // The name of the provider. Changing this + // creates a new loadbalancer. + LoadbalancerProvider *string `pulumi:"loadbalancerProvider"` + // Human-readable name for the Loadbalancer. Does not have + // to be unique. + Name *string `pulumi:"name"` + // The region in which to obtain the V2 Networking client. + // A Networking client is needed to create an LB member. If omitted, the + // `region` argument of the provider is used. Changing this creates a new + // LB member. + Region *string `pulumi:"region"` + // A list of security group IDs to apply to the + // loadbalancer. The security groups must be specified by ID and not name (as + // opposed to how they are configured with the Compute Instance). + SecurityGroupIds []string `pulumi:"securityGroupIds"` + // A list of simple strings assigned to the loadbalancer. + // Available only for Octavia **minor version 2.5 or later**. + Tags []string `pulumi:"tags"` + // Required for admins. The UUID of the tenant who owns + // the Loadbalancer. Only administrative users can specify a tenant UUID + // other than their own. Changing this creates a new loadbalancer. + TenantId *string `pulumi:"tenantId"` + // The ip address of the load balancer. + // Changing this creates a new loadbalancer. + VipAddress *string `pulumi:"vipAddress"` + // The network on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is available only for Octavia. + VipNetworkId *string `pulumi:"vipNetworkId"` + // The port UUID that the loadbalancer will use. + // Changing this creates a new loadbalancer. It is available only for Octavia. + VipPortId *string `pulumi:"vipPortId"` + // The subnet on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is required to Neutron LBaaS but optional for Octavia. + VipSubnetId *string `pulumi:"vipSubnetId"` +} + +type LbLoadbalancerV2State struct { + // The administrative state of the Loadbalancer. + // A valid value is true (UP) or false (DOWN). + AdminStateUp pulumi.BoolPtrInput + // The availability zone of the Loadbalancer. + // Changing this creates a new loadbalancer. Available only for Octavia + // **minor version 2.14 or later**. + AvailabilityZone pulumi.StringPtrInput + // Human-readable description for the Loadbalancer. + Description pulumi.StringPtrInput + // The UUID of a flavor. Changing this creates a new + // loadbalancer. + FlavorId pulumi.StringPtrInput + // The name of the provider. Changing this + // creates a new loadbalancer. + LoadbalancerProvider pulumi.StringPtrInput + // Human-readable name for the Loadbalancer. Does not have + // to be unique. + Name pulumi.StringPtrInput + // The region in which to obtain the V2 Networking client. + // A Networking client is needed to create an LB member. If omitted, the + // `region` argument of the provider is used. Changing this creates a new + // LB member. + Region pulumi.StringPtrInput + // A list of security group IDs to apply to the + // loadbalancer. The security groups must be specified by ID and not name (as + // opposed to how they are configured with the Compute Instance). + SecurityGroupIds pulumi.StringArrayInput + // A list of simple strings assigned to the loadbalancer. + // Available only for Octavia **minor version 2.5 or later**. + Tags pulumi.StringArrayInput + // Required for admins. The UUID of the tenant who owns + // the Loadbalancer. Only administrative users can specify a tenant UUID + // other than their own. Changing this creates a new loadbalancer. + TenantId pulumi.StringPtrInput + // The ip address of the load balancer. + // Changing this creates a new loadbalancer. + VipAddress pulumi.StringPtrInput + // The network on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is available only for Octavia. + VipNetworkId pulumi.StringPtrInput + // The port UUID that the loadbalancer will use. + // Changing this creates a new loadbalancer. It is available only for Octavia. + VipPortId pulumi.StringPtrInput + // The subnet on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is required to Neutron LBaaS but optional for Octavia. + VipSubnetId pulumi.StringPtrInput +} + +func (LbLoadbalancerV2State) ElementType() reflect.Type { + return reflect.TypeOf((*lbLoadbalancerV2State)(nil)).Elem() +} + +type lbLoadbalancerV2Args struct { + // The administrative state of the Loadbalancer. + // A valid value is true (UP) or false (DOWN). + AdminStateUp *bool `pulumi:"adminStateUp"` + // The availability zone of the Loadbalancer. + // Changing this creates a new loadbalancer. Available only for Octavia + // **minor version 2.14 or later**. + AvailabilityZone *string `pulumi:"availabilityZone"` + // Human-readable description for the Loadbalancer. + Description *string `pulumi:"description"` + // The UUID of a flavor. Changing this creates a new + // loadbalancer. + FlavorId *string `pulumi:"flavorId"` + // The name of the provider. Changing this + // creates a new loadbalancer. + LoadbalancerProvider *string `pulumi:"loadbalancerProvider"` + // Human-readable name for the Loadbalancer. Does not have + // to be unique. + Name *string `pulumi:"name"` + // The region in which to obtain the V2 Networking client. + // A Networking client is needed to create an LB member. If omitted, the + // `region` argument of the provider is used. Changing this creates a new + // LB member. + Region *string `pulumi:"region"` + // A list of security group IDs to apply to the + // loadbalancer. The security groups must be specified by ID and not name (as + // opposed to how they are configured with the Compute Instance). + SecurityGroupIds []string `pulumi:"securityGroupIds"` + // A list of simple strings assigned to the loadbalancer. + // Available only for Octavia **minor version 2.5 or later**. + Tags []string `pulumi:"tags"` + // Required for admins. The UUID of the tenant who owns + // the Loadbalancer. Only administrative users can specify a tenant UUID + // other than their own. Changing this creates a new loadbalancer. + TenantId *string `pulumi:"tenantId"` + // The ip address of the load balancer. + // Changing this creates a new loadbalancer. + VipAddress *string `pulumi:"vipAddress"` + // The network on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is available only for Octavia. + VipNetworkId *string `pulumi:"vipNetworkId"` + // The port UUID that the loadbalancer will use. + // Changing this creates a new loadbalancer. It is available only for Octavia. + VipPortId *string `pulumi:"vipPortId"` + // The subnet on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is required to Neutron LBaaS but optional for Octavia. + VipSubnetId *string `pulumi:"vipSubnetId"` +} + +// The set of arguments for constructing a LbLoadbalancerV2 resource. +type LbLoadbalancerV2Args struct { + // The administrative state of the Loadbalancer. + // A valid value is true (UP) or false (DOWN). + AdminStateUp pulumi.BoolPtrInput + // The availability zone of the Loadbalancer. + // Changing this creates a new loadbalancer. Available only for Octavia + // **minor version 2.14 or later**. + AvailabilityZone pulumi.StringPtrInput + // Human-readable description for the Loadbalancer. + Description pulumi.StringPtrInput + // The UUID of a flavor. Changing this creates a new + // loadbalancer. + FlavorId pulumi.StringPtrInput + // The name of the provider. Changing this + // creates a new loadbalancer. + LoadbalancerProvider pulumi.StringPtrInput + // Human-readable name for the Loadbalancer. Does not have + // to be unique. + Name pulumi.StringPtrInput + // The region in which to obtain the V2 Networking client. + // A Networking client is needed to create an LB member. If omitted, the + // `region` argument of the provider is used. Changing this creates a new + // LB member. + Region pulumi.StringPtrInput + // A list of security group IDs to apply to the + // loadbalancer. The security groups must be specified by ID and not name (as + // opposed to how they are configured with the Compute Instance). + SecurityGroupIds pulumi.StringArrayInput + // A list of simple strings assigned to the loadbalancer. + // Available only for Octavia **minor version 2.5 or later**. + Tags pulumi.StringArrayInput + // Required for admins. The UUID of the tenant who owns + // the Loadbalancer. Only administrative users can specify a tenant UUID + // other than their own. Changing this creates a new loadbalancer. + TenantId pulumi.StringPtrInput + // The ip address of the load balancer. + // Changing this creates a new loadbalancer. + VipAddress pulumi.StringPtrInput + // The network on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is available only for Octavia. + VipNetworkId pulumi.StringPtrInput + // The port UUID that the loadbalancer will use. + // Changing this creates a new loadbalancer. It is available only for Octavia. + VipPortId pulumi.StringPtrInput + // The subnet on which to allocate the + // Loadbalancer's address. A tenant can only create Loadbalancers on networks + // authorized by policy (e.g. networks that belong to them or networks that + // are shared). Changing this creates a new loadbalancer. + // It is required to Neutron LBaaS but optional for Octavia. + VipSubnetId pulumi.StringPtrInput +} + +func (LbLoadbalancerV2Args) ElementType() reflect.Type { + return reflect.TypeOf((*lbLoadbalancerV2Args)(nil)).Elem() +} + +type LbLoadbalancerV2Input interface { + pulumi.Input + + ToLbLoadbalancerV2Output() LbLoadbalancerV2Output + ToLbLoadbalancerV2OutputWithContext(ctx context.Context) LbLoadbalancerV2Output +} + +func (*LbLoadbalancerV2) ElementType() reflect.Type { + return reflect.TypeOf((**LbLoadbalancerV2)(nil)).Elem() +} + +func (i *LbLoadbalancerV2) ToLbLoadbalancerV2Output() LbLoadbalancerV2Output { + return i.ToLbLoadbalancerV2OutputWithContext(context.Background()) +} + +func (i *LbLoadbalancerV2) ToLbLoadbalancerV2OutputWithContext(ctx context.Context) LbLoadbalancerV2Output { + return pulumi.ToOutputWithContext(ctx, i).(LbLoadbalancerV2Output) +} + +// LbLoadbalancerV2ArrayInput is an input type that accepts LbLoadbalancerV2Array and LbLoadbalancerV2ArrayOutput values. +// You can construct a concrete instance of `LbLoadbalancerV2ArrayInput` via: +// +// LbLoadbalancerV2Array{ LbLoadbalancerV2Args{...} } +type LbLoadbalancerV2ArrayInput interface { + pulumi.Input + + ToLbLoadbalancerV2ArrayOutput() LbLoadbalancerV2ArrayOutput + ToLbLoadbalancerV2ArrayOutputWithContext(context.Context) LbLoadbalancerV2ArrayOutput +} + +type LbLoadbalancerV2Array []LbLoadbalancerV2Input + +func (LbLoadbalancerV2Array) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LbLoadbalancerV2)(nil)).Elem() +} + +func (i LbLoadbalancerV2Array) ToLbLoadbalancerV2ArrayOutput() LbLoadbalancerV2ArrayOutput { + return i.ToLbLoadbalancerV2ArrayOutputWithContext(context.Background()) +} + +func (i LbLoadbalancerV2Array) ToLbLoadbalancerV2ArrayOutputWithContext(ctx context.Context) LbLoadbalancerV2ArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LbLoadbalancerV2ArrayOutput) +} + +// LbLoadbalancerV2MapInput is an input type that accepts LbLoadbalancerV2Map and LbLoadbalancerV2MapOutput values. +// You can construct a concrete instance of `LbLoadbalancerV2MapInput` via: +// +// LbLoadbalancerV2Map{ "key": LbLoadbalancerV2Args{...} } +type LbLoadbalancerV2MapInput interface { + pulumi.Input + + ToLbLoadbalancerV2MapOutput() LbLoadbalancerV2MapOutput + ToLbLoadbalancerV2MapOutputWithContext(context.Context) LbLoadbalancerV2MapOutput +} + +type LbLoadbalancerV2Map map[string]LbLoadbalancerV2Input + +func (LbLoadbalancerV2Map) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LbLoadbalancerV2)(nil)).Elem() +} + +func (i LbLoadbalancerV2Map) ToLbLoadbalancerV2MapOutput() LbLoadbalancerV2MapOutput { + return i.ToLbLoadbalancerV2MapOutputWithContext(context.Background()) +} + +func (i LbLoadbalancerV2Map) ToLbLoadbalancerV2MapOutputWithContext(ctx context.Context) LbLoadbalancerV2MapOutput { + return pulumi.ToOutputWithContext(ctx, i).(LbLoadbalancerV2MapOutput) +} + +type LbLoadbalancerV2Output struct{ *pulumi.OutputState } + +func (LbLoadbalancerV2Output) ElementType() reflect.Type { + return reflect.TypeOf((**LbLoadbalancerV2)(nil)).Elem() +} + +func (o LbLoadbalancerV2Output) ToLbLoadbalancerV2Output() LbLoadbalancerV2Output { + return o +} + +func (o LbLoadbalancerV2Output) ToLbLoadbalancerV2OutputWithContext(ctx context.Context) LbLoadbalancerV2Output { + return o +} + +// The administrative state of the Loadbalancer. +// A valid value is true (UP) or false (DOWN). +func (o LbLoadbalancerV2Output) AdminStateUp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.BoolPtrOutput { return v.AdminStateUp }).(pulumi.BoolPtrOutput) +} + +// The availability zone of the Loadbalancer. +// Changing this creates a new loadbalancer. Available only for Octavia +// **minor version 2.14 or later**. +func (o LbLoadbalancerV2Output) AvailabilityZone() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringPtrOutput { return v.AvailabilityZone }).(pulumi.StringPtrOutput) +} + +// Human-readable description for the Loadbalancer. +func (o LbLoadbalancerV2Output) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +// The UUID of a flavor. Changing this creates a new +// loadbalancer. +func (o LbLoadbalancerV2Output) FlavorId() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.FlavorId }).(pulumi.StringOutput) +} + +// The name of the provider. Changing this +// creates a new loadbalancer. +func (o LbLoadbalancerV2Output) LoadbalancerProvider() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.LoadbalancerProvider }).(pulumi.StringOutput) +} + +// Human-readable name for the Loadbalancer. Does not have +// to be unique. +func (o LbLoadbalancerV2Output) Name() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The region in which to obtain the V2 Networking client. +// A Networking client is needed to create an LB member. If omitted, the +// `region` argument of the provider is used. Changing this creates a new +// LB member. +func (o LbLoadbalancerV2Output) Region() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput) +} + +// A list of security group IDs to apply to the +// loadbalancer. The security groups must be specified by ID and not name (as +// opposed to how they are configured with the Compute Instance). +func (o LbLoadbalancerV2Output) SecurityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringArrayOutput { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) +} + +// A list of simple strings assigned to the loadbalancer. +// Available only for Octavia **minor version 2.5 or later**. +func (o LbLoadbalancerV2Output) Tags() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput) +} + +// Required for admins. The UUID of the tenant who owns +// the Loadbalancer. Only administrative users can specify a tenant UUID +// other than their own. Changing this creates a new loadbalancer. +func (o LbLoadbalancerV2Output) TenantId() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) +} + +// The ip address of the load balancer. +// Changing this creates a new loadbalancer. +func (o LbLoadbalancerV2Output) VipAddress() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.VipAddress }).(pulumi.StringOutput) +} + +// The network on which to allocate the +// Loadbalancer's address. A tenant can only create Loadbalancers on networks +// authorized by policy (e.g. networks that belong to them or networks that +// are shared). Changing this creates a new loadbalancer. +// It is available only for Octavia. +func (o LbLoadbalancerV2Output) VipNetworkId() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.VipNetworkId }).(pulumi.StringOutput) +} + +// The port UUID that the loadbalancer will use. +// Changing this creates a new loadbalancer. It is available only for Octavia. +func (o LbLoadbalancerV2Output) VipPortId() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.VipPortId }).(pulumi.StringOutput) +} + +// The subnet on which to allocate the +// Loadbalancer's address. A tenant can only create Loadbalancers on networks +// authorized by policy (e.g. networks that belong to them or networks that +// are shared). Changing this creates a new loadbalancer. +// It is required to Neutron LBaaS but optional for Octavia. +func (o LbLoadbalancerV2Output) VipSubnetId() pulumi.StringOutput { + return o.ApplyT(func(v *LbLoadbalancerV2) pulumi.StringOutput { return v.VipSubnetId }).(pulumi.StringOutput) +} + +type LbLoadbalancerV2ArrayOutput struct{ *pulumi.OutputState } + +func (LbLoadbalancerV2ArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LbLoadbalancerV2)(nil)).Elem() +} + +func (o LbLoadbalancerV2ArrayOutput) ToLbLoadbalancerV2ArrayOutput() LbLoadbalancerV2ArrayOutput { + return o +} + +func (o LbLoadbalancerV2ArrayOutput) ToLbLoadbalancerV2ArrayOutputWithContext(ctx context.Context) LbLoadbalancerV2ArrayOutput { + return o +} + +func (o LbLoadbalancerV2ArrayOutput) Index(i pulumi.IntInput) LbLoadbalancerV2Output { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LbLoadbalancerV2 { + return vs[0].([]*LbLoadbalancerV2)[vs[1].(int)] + }).(LbLoadbalancerV2Output) +} + +type LbLoadbalancerV2MapOutput struct{ *pulumi.OutputState } + +func (LbLoadbalancerV2MapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LbLoadbalancerV2)(nil)).Elem() +} + +func (o LbLoadbalancerV2MapOutput) ToLbLoadbalancerV2MapOutput() LbLoadbalancerV2MapOutput { + return o +} + +func (o LbLoadbalancerV2MapOutput) ToLbLoadbalancerV2MapOutputWithContext(ctx context.Context) LbLoadbalancerV2MapOutput { + return o +} + +func (o LbLoadbalancerV2MapOutput) MapIndex(k pulumi.StringInput) LbLoadbalancerV2Output { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LbLoadbalancerV2 { + return vs[0].(map[string]*LbLoadbalancerV2)[vs[1].(string)] + }).(LbLoadbalancerV2Output) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*LbLoadbalancerV2Input)(nil)).Elem(), &LbLoadbalancerV2{}) + pulumi.RegisterInputType(reflect.TypeOf((*LbLoadbalancerV2ArrayInput)(nil)).Elem(), LbLoadbalancerV2Array{}) + pulumi.RegisterInputType(reflect.TypeOf((*LbLoadbalancerV2MapInput)(nil)).Elem(), LbLoadbalancerV2Map{}) + pulumi.RegisterOutputType(LbLoadbalancerV2Output{}) + pulumi.RegisterOutputType(LbLoadbalancerV2ArrayOutput{}) + pulumi.RegisterOutputType(LbLoadbalancerV2MapOutput{}) +} diff --git a/sdk/go/openstack/loadbalancer/l7policyV2.go b/sdk/go/openstack/loadbalancer/l7policyV2.go index 832bcce5c..6a5146e2a 100644 --- a/sdk/go/openstack/loadbalancer/l7policyV2.go +++ b/sdk/go/openstack/loadbalancer/l7policyV2.go @@ -21,6 +21,7 @@ import ( // // import ( // +// "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/networking" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" @@ -45,7 +46,7 @@ import ( // if err != nil { // return err // } -// loadbalancer1, err := loadbalancer.NewLoadBalancer(ctx, "loadbalancer_1", &loadbalancer.LoadBalancerArgs{ +// loadbalancer1, err := openstack.NewLbLoadbalancerV2(ctx, "loadbalancer_1", &openstack.LbLoadbalancerV2Args{ // Name: pulumi.String("loadbalancer_1"), // VipSubnetId: subnet1.ID(), // }) diff --git a/sdk/go/openstack/loadbalancer/l7ruleV2.go b/sdk/go/openstack/loadbalancer/l7ruleV2.go index 402b12d5c..b71981b0d 100644 --- a/sdk/go/openstack/loadbalancer/l7ruleV2.go +++ b/sdk/go/openstack/loadbalancer/l7ruleV2.go @@ -21,6 +21,7 @@ import ( // // import ( // +// "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer" // "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/networking" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" @@ -45,7 +46,7 @@ import ( // if err != nil { // return err // } -// loadbalancer1, err := loadbalancer.NewLoadBalancer(ctx, "loadbalancer_1", &loadbalancer.LoadBalancerArgs{ +// loadbalancer1, err := openstack.NewLbLoadbalancerV2(ctx, "loadbalancer_1", &openstack.LbLoadbalancerV2Args{ // Name: pulumi.String("loadbalancer_1"), // VipSubnetId: subnet1.ID(), // }) diff --git a/sdk/go/openstack/loadbalancer/loadBalancer.go b/sdk/go/openstack/loadbalancer/loadBalancer.go index f4d6fcc3e..4baef0f0a 100644 --- a/sdk/go/openstack/loadbalancer/loadBalancer.go +++ b/sdk/go/openstack/loadbalancer/loadBalancer.go @@ -11,99 +11,24 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Manages a V2 loadbalancer resource within OpenStack. -// -// > **Note:** This resource has attributes that depend on octavia minor versions. -// Please ensure your Openstack cloud supports the required minor version. -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := loadbalancer.NewLoadBalancer(ctx, "lb_1", &loadbalancer.LoadBalancerArgs{ -// VipSubnetId: pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// ## Import -// -// Load Balancer can be imported using the Load Balancer ID, e.g.: -// -// ```sh -// $ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 -// ``` +// Deprecated: openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2 type LoadBalancer struct { pulumi.CustomResourceState - // The administrative state of the Loadbalancer. - // A valid value is true (UP) or false (DOWN). - AdminStateUp pulumi.BoolPtrOutput `pulumi:"adminStateUp"` - // The availability zone of the Loadbalancer. - // Changing this creates a new loadbalancer. Available only for Octavia - // **minor version 2.14 or later**. - AvailabilityZone pulumi.StringPtrOutput `pulumi:"availabilityZone"` - // Human-readable description for the Loadbalancer. - Description pulumi.StringPtrOutput `pulumi:"description"` - // The UUID of a flavor. Changing this creates a new - // loadbalancer. - FlavorId pulumi.StringOutput `pulumi:"flavorId"` - // The name of the provider. Changing this - // creates a new loadbalancer. - LoadbalancerProvider pulumi.StringOutput `pulumi:"loadbalancerProvider"` - // Human-readable name for the Loadbalancer. Does not have - // to be unique. - Name pulumi.StringOutput `pulumi:"name"` - // The region in which to obtain the V2 Networking client. - // A Networking client is needed to create an LB member. If omitted, the - // `region` argument of the provider is used. Changing this creates a new - // LB member. - Region pulumi.StringOutput `pulumi:"region"` - // A list of security group IDs to apply to the - // loadbalancer. The security groups must be specified by ID and not name (as - // opposed to how they are configured with the Compute Instance). - SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"` - // A list of simple strings assigned to the loadbalancer. - // Available only for Octavia **minor version 2.5 or later**. - Tags pulumi.StringArrayOutput `pulumi:"tags"` - // Required for admins. The UUID of the tenant who owns - // the Loadbalancer. Only administrative users can specify a tenant UUID - // other than their own. Changing this creates a new loadbalancer. - TenantId pulumi.StringOutput `pulumi:"tenantId"` - // The ip address of the load balancer. - // Changing this creates a new loadbalancer. - VipAddress pulumi.StringOutput `pulumi:"vipAddress"` - // The network on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is available only for Octavia. - VipNetworkId pulumi.StringOutput `pulumi:"vipNetworkId"` - // The port UUID that the loadbalancer will use. - // Changing this creates a new loadbalancer. It is available only for Octavia. - VipPortId pulumi.StringOutput `pulumi:"vipPortId"` - // The subnet on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is required to Neutron LBaaS but optional for Octavia. - VipSubnetId pulumi.StringOutput `pulumi:"vipSubnetId"` + AdminStateUp pulumi.BoolPtrOutput `pulumi:"adminStateUp"` + AvailabilityZone pulumi.StringPtrOutput `pulumi:"availabilityZone"` + Description pulumi.StringPtrOutput `pulumi:"description"` + FlavorId pulumi.StringOutput `pulumi:"flavorId"` + LoadbalancerProvider pulumi.StringOutput `pulumi:"loadbalancerProvider"` + Name pulumi.StringOutput `pulumi:"name"` + Region pulumi.StringOutput `pulumi:"region"` + SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"` + Tags pulumi.StringArrayOutput `pulumi:"tags"` + TenantId pulumi.StringOutput `pulumi:"tenantId"` + VipAddress pulumi.StringOutput `pulumi:"vipAddress"` + VipNetworkId pulumi.StringOutput `pulumi:"vipNetworkId"` + VipPortId pulumi.StringOutput `pulumi:"vipPortId"` + VipSubnetId pulumi.StringOutput `pulumi:"vipSubnetId"` } // NewLoadBalancer registers a new resource with the given unique name, arguments, and options. @@ -136,113 +61,37 @@ func GetLoadBalancer(ctx *pulumi.Context, // Input properties used for looking up and filtering LoadBalancer resources. type loadBalancerState struct { - // The administrative state of the Loadbalancer. - // A valid value is true (UP) or false (DOWN). - AdminStateUp *bool `pulumi:"adminStateUp"` - // The availability zone of the Loadbalancer. - // Changing this creates a new loadbalancer. Available only for Octavia - // **minor version 2.14 or later**. - AvailabilityZone *string `pulumi:"availabilityZone"` - // Human-readable description for the Loadbalancer. - Description *string `pulumi:"description"` - // The UUID of a flavor. Changing this creates a new - // loadbalancer. - FlavorId *string `pulumi:"flavorId"` - // The name of the provider. Changing this - // creates a new loadbalancer. - LoadbalancerProvider *string `pulumi:"loadbalancerProvider"` - // Human-readable name for the Loadbalancer. Does not have - // to be unique. - Name *string `pulumi:"name"` - // The region in which to obtain the V2 Networking client. - // A Networking client is needed to create an LB member. If omitted, the - // `region` argument of the provider is used. Changing this creates a new - // LB member. - Region *string `pulumi:"region"` - // A list of security group IDs to apply to the - // loadbalancer. The security groups must be specified by ID and not name (as - // opposed to how they are configured with the Compute Instance). - SecurityGroupIds []string `pulumi:"securityGroupIds"` - // A list of simple strings assigned to the loadbalancer. - // Available only for Octavia **minor version 2.5 or later**. - Tags []string `pulumi:"tags"` - // Required for admins. The UUID of the tenant who owns - // the Loadbalancer. Only administrative users can specify a tenant UUID - // other than their own. Changing this creates a new loadbalancer. - TenantId *string `pulumi:"tenantId"` - // The ip address of the load balancer. - // Changing this creates a new loadbalancer. - VipAddress *string `pulumi:"vipAddress"` - // The network on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is available only for Octavia. - VipNetworkId *string `pulumi:"vipNetworkId"` - // The port UUID that the loadbalancer will use. - // Changing this creates a new loadbalancer. It is available only for Octavia. - VipPortId *string `pulumi:"vipPortId"` - // The subnet on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is required to Neutron LBaaS but optional for Octavia. - VipSubnetId *string `pulumi:"vipSubnetId"` + AdminStateUp *bool `pulumi:"adminStateUp"` + AvailabilityZone *string `pulumi:"availabilityZone"` + Description *string `pulumi:"description"` + FlavorId *string `pulumi:"flavorId"` + LoadbalancerProvider *string `pulumi:"loadbalancerProvider"` + Name *string `pulumi:"name"` + Region *string `pulumi:"region"` + SecurityGroupIds []string `pulumi:"securityGroupIds"` + Tags []string `pulumi:"tags"` + TenantId *string `pulumi:"tenantId"` + VipAddress *string `pulumi:"vipAddress"` + VipNetworkId *string `pulumi:"vipNetworkId"` + VipPortId *string `pulumi:"vipPortId"` + VipSubnetId *string `pulumi:"vipSubnetId"` } type LoadBalancerState struct { - // The administrative state of the Loadbalancer. - // A valid value is true (UP) or false (DOWN). - AdminStateUp pulumi.BoolPtrInput - // The availability zone of the Loadbalancer. - // Changing this creates a new loadbalancer. Available only for Octavia - // **minor version 2.14 or later**. - AvailabilityZone pulumi.StringPtrInput - // Human-readable description for the Loadbalancer. - Description pulumi.StringPtrInput - // The UUID of a flavor. Changing this creates a new - // loadbalancer. - FlavorId pulumi.StringPtrInput - // The name of the provider. Changing this - // creates a new loadbalancer. + AdminStateUp pulumi.BoolPtrInput + AvailabilityZone pulumi.StringPtrInput + Description pulumi.StringPtrInput + FlavorId pulumi.StringPtrInput LoadbalancerProvider pulumi.StringPtrInput - // Human-readable name for the Loadbalancer. Does not have - // to be unique. - Name pulumi.StringPtrInput - // The region in which to obtain the V2 Networking client. - // A Networking client is needed to create an LB member. If omitted, the - // `region` argument of the provider is used. Changing this creates a new - // LB member. - Region pulumi.StringPtrInput - // A list of security group IDs to apply to the - // loadbalancer. The security groups must be specified by ID and not name (as - // opposed to how they are configured with the Compute Instance). - SecurityGroupIds pulumi.StringArrayInput - // A list of simple strings assigned to the loadbalancer. - // Available only for Octavia **minor version 2.5 or later**. - Tags pulumi.StringArrayInput - // Required for admins. The UUID of the tenant who owns - // the Loadbalancer. Only administrative users can specify a tenant UUID - // other than their own. Changing this creates a new loadbalancer. - TenantId pulumi.StringPtrInput - // The ip address of the load balancer. - // Changing this creates a new loadbalancer. - VipAddress pulumi.StringPtrInput - // The network on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is available only for Octavia. - VipNetworkId pulumi.StringPtrInput - // The port UUID that the loadbalancer will use. - // Changing this creates a new loadbalancer. It is available only for Octavia. - VipPortId pulumi.StringPtrInput - // The subnet on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is required to Neutron LBaaS but optional for Octavia. - VipSubnetId pulumi.StringPtrInput + Name pulumi.StringPtrInput + Region pulumi.StringPtrInput + SecurityGroupIds pulumi.StringArrayInput + Tags pulumi.StringArrayInput + TenantId pulumi.StringPtrInput + VipAddress pulumi.StringPtrInput + VipNetworkId pulumi.StringPtrInput + VipPortId pulumi.StringPtrInput + VipSubnetId pulumi.StringPtrInput } func (LoadBalancerState) ElementType() reflect.Type { @@ -250,114 +99,38 @@ func (LoadBalancerState) ElementType() reflect.Type { } type loadBalancerArgs struct { - // The administrative state of the Loadbalancer. - // A valid value is true (UP) or false (DOWN). - AdminStateUp *bool `pulumi:"adminStateUp"` - // The availability zone of the Loadbalancer. - // Changing this creates a new loadbalancer. Available only for Octavia - // **minor version 2.14 or later**. - AvailabilityZone *string `pulumi:"availabilityZone"` - // Human-readable description for the Loadbalancer. - Description *string `pulumi:"description"` - // The UUID of a flavor. Changing this creates a new - // loadbalancer. - FlavorId *string `pulumi:"flavorId"` - // The name of the provider. Changing this - // creates a new loadbalancer. - LoadbalancerProvider *string `pulumi:"loadbalancerProvider"` - // Human-readable name for the Loadbalancer. Does not have - // to be unique. - Name *string `pulumi:"name"` - // The region in which to obtain the V2 Networking client. - // A Networking client is needed to create an LB member. If omitted, the - // `region` argument of the provider is used. Changing this creates a new - // LB member. - Region *string `pulumi:"region"` - // A list of security group IDs to apply to the - // loadbalancer. The security groups must be specified by ID and not name (as - // opposed to how they are configured with the Compute Instance). - SecurityGroupIds []string `pulumi:"securityGroupIds"` - // A list of simple strings assigned to the loadbalancer. - // Available only for Octavia **minor version 2.5 or later**. - Tags []string `pulumi:"tags"` - // Required for admins. The UUID of the tenant who owns - // the Loadbalancer. Only administrative users can specify a tenant UUID - // other than their own. Changing this creates a new loadbalancer. - TenantId *string `pulumi:"tenantId"` - // The ip address of the load balancer. - // Changing this creates a new loadbalancer. - VipAddress *string `pulumi:"vipAddress"` - // The network on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is available only for Octavia. - VipNetworkId *string `pulumi:"vipNetworkId"` - // The port UUID that the loadbalancer will use. - // Changing this creates a new loadbalancer. It is available only for Octavia. - VipPortId *string `pulumi:"vipPortId"` - // The subnet on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is required to Neutron LBaaS but optional for Octavia. - VipSubnetId *string `pulumi:"vipSubnetId"` + AdminStateUp *bool `pulumi:"adminStateUp"` + AvailabilityZone *string `pulumi:"availabilityZone"` + Description *string `pulumi:"description"` + FlavorId *string `pulumi:"flavorId"` + LoadbalancerProvider *string `pulumi:"loadbalancerProvider"` + Name *string `pulumi:"name"` + Region *string `pulumi:"region"` + SecurityGroupIds []string `pulumi:"securityGroupIds"` + Tags []string `pulumi:"tags"` + TenantId *string `pulumi:"tenantId"` + VipAddress *string `pulumi:"vipAddress"` + VipNetworkId *string `pulumi:"vipNetworkId"` + VipPortId *string `pulumi:"vipPortId"` + VipSubnetId *string `pulumi:"vipSubnetId"` } // The set of arguments for constructing a LoadBalancer resource. type LoadBalancerArgs struct { - // The administrative state of the Loadbalancer. - // A valid value is true (UP) or false (DOWN). - AdminStateUp pulumi.BoolPtrInput - // The availability zone of the Loadbalancer. - // Changing this creates a new loadbalancer. Available only for Octavia - // **minor version 2.14 or later**. - AvailabilityZone pulumi.StringPtrInput - // Human-readable description for the Loadbalancer. - Description pulumi.StringPtrInput - // The UUID of a flavor. Changing this creates a new - // loadbalancer. - FlavorId pulumi.StringPtrInput - // The name of the provider. Changing this - // creates a new loadbalancer. + AdminStateUp pulumi.BoolPtrInput + AvailabilityZone pulumi.StringPtrInput + Description pulumi.StringPtrInput + FlavorId pulumi.StringPtrInput LoadbalancerProvider pulumi.StringPtrInput - // Human-readable name for the Loadbalancer. Does not have - // to be unique. - Name pulumi.StringPtrInput - // The region in which to obtain the V2 Networking client. - // A Networking client is needed to create an LB member. If omitted, the - // `region` argument of the provider is used. Changing this creates a new - // LB member. - Region pulumi.StringPtrInput - // A list of security group IDs to apply to the - // loadbalancer. The security groups must be specified by ID and not name (as - // opposed to how they are configured with the Compute Instance). - SecurityGroupIds pulumi.StringArrayInput - // A list of simple strings assigned to the loadbalancer. - // Available only for Octavia **minor version 2.5 or later**. - Tags pulumi.StringArrayInput - // Required for admins. The UUID of the tenant who owns - // the Loadbalancer. Only administrative users can specify a tenant UUID - // other than their own. Changing this creates a new loadbalancer. - TenantId pulumi.StringPtrInput - // The ip address of the load balancer. - // Changing this creates a new loadbalancer. - VipAddress pulumi.StringPtrInput - // The network on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is available only for Octavia. - VipNetworkId pulumi.StringPtrInput - // The port UUID that the loadbalancer will use. - // Changing this creates a new loadbalancer. It is available only for Octavia. - VipPortId pulumi.StringPtrInput - // The subnet on which to allocate the - // Loadbalancer's address. A tenant can only create Loadbalancers on networks - // authorized by policy (e.g. networks that belong to them or networks that - // are shared). Changing this creates a new loadbalancer. - // It is required to Neutron LBaaS but optional for Octavia. - VipSubnetId pulumi.StringPtrInput + Name pulumi.StringPtrInput + Region pulumi.StringPtrInput + SecurityGroupIds pulumi.StringArrayInput + Tags pulumi.StringArrayInput + TenantId pulumi.StringPtrInput + VipAddress pulumi.StringPtrInput + VipNetworkId pulumi.StringPtrInput + VipPortId pulumi.StringPtrInput + VipSubnetId pulumi.StringPtrInput } func (LoadBalancerArgs) ElementType() reflect.Type { @@ -447,96 +220,58 @@ func (o LoadBalancerOutput) ToLoadBalancerOutputWithContext(ctx context.Context) return o } -// The administrative state of the Loadbalancer. -// A valid value is true (UP) or false (DOWN). func (o LoadBalancerOutput) AdminStateUp() pulumi.BoolPtrOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.BoolPtrOutput { return v.AdminStateUp }).(pulumi.BoolPtrOutput) } -// The availability zone of the Loadbalancer. -// Changing this creates a new loadbalancer. Available only for Octavia -// **minor version 2.14 or later**. func (o LoadBalancerOutput) AvailabilityZone() pulumi.StringPtrOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringPtrOutput { return v.AvailabilityZone }).(pulumi.StringPtrOutput) } -// Human-readable description for the Loadbalancer. func (o LoadBalancerOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } -// The UUID of a flavor. Changing this creates a new -// loadbalancer. func (o LoadBalancerOutput) FlavorId() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.FlavorId }).(pulumi.StringOutput) } -// The name of the provider. Changing this -// creates a new loadbalancer. func (o LoadBalancerOutput) LoadbalancerProvider() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.LoadbalancerProvider }).(pulumi.StringOutput) } -// Human-readable name for the Loadbalancer. Does not have -// to be unique. func (o LoadBalancerOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } -// The region in which to obtain the V2 Networking client. -// A Networking client is needed to create an LB member. If omitted, the -// `region` argument of the provider is used. Changing this creates a new -// LB member. func (o LoadBalancerOutput) Region() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput) } -// A list of security group IDs to apply to the -// loadbalancer. The security groups must be specified by ID and not name (as -// opposed to how they are configured with the Compute Instance). func (o LoadBalancerOutput) SecurityGroupIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringArrayOutput { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) } -// A list of simple strings assigned to the loadbalancer. -// Available only for Octavia **minor version 2.5 or later**. func (o LoadBalancerOutput) Tags() pulumi.StringArrayOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput) } -// Required for admins. The UUID of the tenant who owns -// the Loadbalancer. Only administrative users can specify a tenant UUID -// other than their own. Changing this creates a new loadbalancer. func (o LoadBalancerOutput) TenantId() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) } -// The ip address of the load balancer. -// Changing this creates a new loadbalancer. func (o LoadBalancerOutput) VipAddress() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.VipAddress }).(pulumi.StringOutput) } -// The network on which to allocate the -// Loadbalancer's address. A tenant can only create Loadbalancers on networks -// authorized by policy (e.g. networks that belong to them or networks that -// are shared). Changing this creates a new loadbalancer. -// It is available only for Octavia. func (o LoadBalancerOutput) VipNetworkId() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.VipNetworkId }).(pulumi.StringOutput) } -// The port UUID that the loadbalancer will use. -// Changing this creates a new loadbalancer. It is available only for Octavia. func (o LoadBalancerOutput) VipPortId() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.VipPortId }).(pulumi.StringOutput) } -// The subnet on which to allocate the -// Loadbalancer's address. A tenant can only create Loadbalancers on networks -// authorized by policy (e.g. networks that belong to them or networks that -// are shared). Changing this creates a new loadbalancer. -// It is required to Neutron LBaaS but optional for Octavia. func (o LoadBalancerOutput) VipSubnetId() pulumi.StringOutput { return o.ApplyT(func(v *LoadBalancer) pulumi.StringOutput { return v.VipSubnetId }).(pulumi.StringOutput) } diff --git a/sdk/go/openstack/objectstorage/pulumiTypes.go b/sdk/go/openstack/objectstorage/pulumiTypes.go index 28710fbdf..d3e91e2a6 100644 --- a/sdk/go/openstack/objectstorage/pulumiTypes.go +++ b/sdk/go/openstack/objectstorage/pulumiTypes.go @@ -14,8 +14,10 @@ import ( var _ = internal.GetEnvOrDefault type ContainerVersioningLegacy struct { + // Container in which versions will be stored. Location string `pulumi:"location"` - Type string `pulumi:"type"` + // Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + Type string `pulumi:"type"` } // ContainerVersioningLegacyInput is an input type that accepts ContainerVersioningLegacyArgs and ContainerVersioningLegacyOutput values. @@ -30,8 +32,10 @@ type ContainerVersioningLegacyInput interface { } type ContainerVersioningLegacyArgs struct { + // Container in which versions will be stored. Location pulumi.StringInput `pulumi:"location"` - Type pulumi.StringInput `pulumi:"type"` + // Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + Type pulumi.StringInput `pulumi:"type"` } func (ContainerVersioningLegacyArgs) ElementType() reflect.Type { @@ -111,10 +115,12 @@ func (o ContainerVersioningLegacyOutput) ToContainerVersioningLegacyPtrOutputWit }).(ContainerVersioningLegacyPtrOutput) } +// Container in which versions will be stored. func (o ContainerVersioningLegacyOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v ContainerVersioningLegacy) string { return v.Location }).(pulumi.StringOutput) } +// Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). func (o ContainerVersioningLegacyOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v ContainerVersioningLegacy) string { return v.Type }).(pulumi.StringOutput) } @@ -143,6 +149,7 @@ func (o ContainerVersioningLegacyPtrOutput) Elem() ContainerVersioningLegacyOutp }).(ContainerVersioningLegacyOutput) } +// Container in which versions will be stored. func (o ContainerVersioningLegacyPtrOutput) Location() pulumi.StringPtrOutput { return o.ApplyT(func(v *ContainerVersioningLegacy) *string { if v == nil { @@ -152,6 +159,7 @@ func (o ContainerVersioningLegacyPtrOutput) Location() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +// Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). func (o ContainerVersioningLegacyPtrOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v *ContainerVersioningLegacy) *string { if v == nil { diff --git a/sdk/java/src/main/java/com/pulumi/openstack/LbLoadbalancerV2.java b/sdk/java/src/main/java/com/pulumi/openstack/LbLoadbalancerV2.java new file mode 100644 index 000000000..f852e589a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/openstack/LbLoadbalancerV2.java @@ -0,0 +1,368 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.openstack; + +import com.pulumi.core.Alias; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.openstack.LbLoadbalancerV2Args; +import com.pulumi.openstack.Utilities; +import com.pulumi.openstack.inputs.LbLoadbalancerV2State; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Manages a V2 loadbalancer resource within OpenStack. + * + * > **Note:** This resource has attributes that depend on octavia minor versions. + * Please ensure your Openstack cloud supports the required minor version. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.openstack.LbLoadbalancerV2;
+ * import com.pulumi.openstack.LbLoadbalancerV2Args;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var lb1 = new LbLoadbalancerV2("lb1", LbLoadbalancerV2Args.builder()
+ *             .vipSubnetId("d9415786-5f1a-428b-b35f-2f1523e146d2")
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Import + * + * Load Balancer can be imported using the Load Balancer ID, e.g.: + * + * ```sh + * $ pulumi import openstack:index/lbLoadbalancerV2:LbLoadbalancerV2 loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 + * ``` + * + */ +@ResourceType(type="openstack:index/lbLoadbalancerV2:LbLoadbalancerV2") +public class LbLoadbalancerV2 extends com.pulumi.resources.CustomResource { + /** + * The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + */ + @Export(name="adminStateUp", refs={Boolean.class}, tree="[0]") + private Output adminStateUp; + + /** + * @return The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + */ + public Output> adminStateUp() { + return Codegen.optional(this.adminStateUp); + } + /** + * The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + */ + @Export(name="availabilityZone", refs={String.class}, tree="[0]") + private Output availabilityZone; + + /** + * @return The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + */ + public Output> availabilityZone() { + return Codegen.optional(this.availabilityZone); + } + /** + * Human-readable description for the Loadbalancer. + * + */ + @Export(name="description", refs={String.class}, tree="[0]") + private Output description; + + /** + * @return Human-readable description for the Loadbalancer. + * + */ + public Output> description() { + return Codegen.optional(this.description); + } + /** + * The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + */ + @Export(name="flavorId", refs={String.class}, tree="[0]") + private Output flavorId; + + /** + * @return The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + */ + public Output flavorId() { + return this.flavorId; + } + /** + * The name of the provider. Changing this + * creates a new loadbalancer. + * + */ + @Export(name="loadbalancerProvider", refs={String.class}, tree="[0]") + private Output loadbalancerProvider; + + /** + * @return The name of the provider. Changing this + * creates a new loadbalancer. + * + */ + public Output loadbalancerProvider() { + return this.loadbalancerProvider; + } + /** + * Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + */ + public Output name() { + return this.name; + } + /** + * The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + */ + @Export(name="region", refs={String.class}, tree="[0]") + private Output region; + + /** + * @return The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + */ + public Output region() { + return this.region; + } + /** + * A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + */ + @Export(name="securityGroupIds", refs={List.class,String.class}, tree="[0,1]") + private Output> securityGroupIds; + + /** + * @return A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + */ + public Output> securityGroupIds() { + return this.securityGroupIds; + } + /** + * A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + */ + @Export(name="tags", refs={List.class,String.class}, tree="[0,1]") + private Output> tags; + + /** + * @return A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + */ + @Export(name="tenantId", refs={String.class}, tree="[0]") + private Output tenantId; + + /** + * @return Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + */ + public Output tenantId() { + return this.tenantId; + } + /** + * The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + */ + @Export(name="vipAddress", refs={String.class}, tree="[0]") + private Output vipAddress; + + /** + * @return The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + */ + public Output vipAddress() { + return this.vipAddress; + } + /** + * The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + */ + @Export(name="vipNetworkId", refs={String.class}, tree="[0]") + private Output vipNetworkId; + + /** + * @return The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + */ + public Output vipNetworkId() { + return this.vipNetworkId; + } + /** + * The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + */ + @Export(name="vipPortId", refs={String.class}, tree="[0]") + private Output vipPortId; + + /** + * @return The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + */ + public Output vipPortId() { + return this.vipPortId; + } + /** + * The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + */ + @Export(name="vipSubnetId", refs={String.class}, tree="[0]") + private Output vipSubnetId; + + /** + * @return The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + */ + public Output vipSubnetId() { + return this.vipSubnetId; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public LbLoadbalancerV2(String name) { + this(name, LbLoadbalancerV2Args.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public LbLoadbalancerV2(String name, @Nullable LbLoadbalancerV2Args args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public LbLoadbalancerV2(String name, @Nullable LbLoadbalancerV2Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2", name, args == null ? LbLoadbalancerV2Args.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private LbLoadbalancerV2(String name, Output id, @Nullable LbLoadbalancerV2State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("openstack:index/lbLoadbalancerV2:LbLoadbalancerV2", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .aliases(List.of( + Output.of(Alias.builder().type("openstack:loadbalancer/loadBalancer:LoadBalancer").build()) + )) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static LbLoadbalancerV2 get(String name, Output id, @Nullable LbLoadbalancerV2State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new LbLoadbalancerV2(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/openstack/LbLoadbalancerV2Args.java b/sdk/java/src/main/java/com/pulumi/openstack/LbLoadbalancerV2Args.java new file mode 100644 index 000000000..c918d7fa6 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/openstack/LbLoadbalancerV2Args.java @@ -0,0 +1,685 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.openstack; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LbLoadbalancerV2Args extends com.pulumi.resources.ResourceArgs { + + public static final LbLoadbalancerV2Args Empty = new LbLoadbalancerV2Args(); + + /** + * The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + */ + @Import(name="adminStateUp") + private @Nullable Output adminStateUp; + + /** + * @return The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + */ + public Optional> adminStateUp() { + return Optional.ofNullable(this.adminStateUp); + } + + /** + * The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + */ + @Import(name="availabilityZone") + private @Nullable Output availabilityZone; + + /** + * @return The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + */ + public Optional> availabilityZone() { + return Optional.ofNullable(this.availabilityZone); + } + + /** + * Human-readable description for the Loadbalancer. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return Human-readable description for the Loadbalancer. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + */ + @Import(name="flavorId") + private @Nullable Output flavorId; + + /** + * @return The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + */ + public Optional> flavorId() { + return Optional.ofNullable(this.flavorId); + } + + /** + * The name of the provider. Changing this + * creates a new loadbalancer. + * + */ + @Import(name="loadbalancerProvider") + private @Nullable Output loadbalancerProvider; + + /** + * @return The name of the provider. Changing this + * creates a new loadbalancer. + * + */ + public Optional> loadbalancerProvider() { + return Optional.ofNullable(this.loadbalancerProvider); + } + + /** + * Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + */ + @Import(name="region") + private @Nullable Output region; + + /** + * @return The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + */ + public Optional> region() { + return Optional.ofNullable(this.region); + } + + /** + * A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + */ + @Import(name="securityGroupIds") + private @Nullable Output> securityGroupIds; + + /** + * @return A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + */ + public Optional>> securityGroupIds() { + return Optional.ofNullable(this.securityGroupIds); + } + + /** + * A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + */ + @Import(name="tenantId") + private @Nullable Output tenantId; + + /** + * @return Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + */ + public Optional> tenantId() { + return Optional.ofNullable(this.tenantId); + } + + /** + * The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + */ + @Import(name="vipAddress") + private @Nullable Output vipAddress; + + /** + * @return The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + */ + public Optional> vipAddress() { + return Optional.ofNullable(this.vipAddress); + } + + /** + * The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + */ + @Import(name="vipNetworkId") + private @Nullable Output vipNetworkId; + + /** + * @return The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + */ + public Optional> vipNetworkId() { + return Optional.ofNullable(this.vipNetworkId); + } + + /** + * The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + */ + @Import(name="vipPortId") + private @Nullable Output vipPortId; + + /** + * @return The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + */ + public Optional> vipPortId() { + return Optional.ofNullable(this.vipPortId); + } + + /** + * The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + */ + @Import(name="vipSubnetId") + private @Nullable Output vipSubnetId; + + /** + * @return The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + */ + public Optional> vipSubnetId() { + return Optional.ofNullable(this.vipSubnetId); + } + + private LbLoadbalancerV2Args() {} + + private LbLoadbalancerV2Args(LbLoadbalancerV2Args $) { + this.adminStateUp = $.adminStateUp; + this.availabilityZone = $.availabilityZone; + this.description = $.description; + this.flavorId = $.flavorId; + this.loadbalancerProvider = $.loadbalancerProvider; + this.name = $.name; + this.region = $.region; + this.securityGroupIds = $.securityGroupIds; + this.tags = $.tags; + this.tenantId = $.tenantId; + this.vipAddress = $.vipAddress; + this.vipNetworkId = $.vipNetworkId; + this.vipPortId = $.vipPortId; + this.vipSubnetId = $.vipSubnetId; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LbLoadbalancerV2Args defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LbLoadbalancerV2Args $; + + public Builder() { + $ = new LbLoadbalancerV2Args(); + } + + public Builder(LbLoadbalancerV2Args defaults) { + $ = new LbLoadbalancerV2Args(Objects.requireNonNull(defaults)); + } + + /** + * @param adminStateUp The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + * @return builder + * + */ + public Builder adminStateUp(@Nullable Output adminStateUp) { + $.adminStateUp = adminStateUp; + return this; + } + + /** + * @param adminStateUp The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + * @return builder + * + */ + public Builder adminStateUp(Boolean adminStateUp) { + return adminStateUp(Output.of(adminStateUp)); + } + + /** + * @param availabilityZone The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + * @return builder + * + */ + public Builder availabilityZone(@Nullable Output availabilityZone) { + $.availabilityZone = availabilityZone; + return this; + } + + /** + * @param availabilityZone The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + * @return builder + * + */ + public Builder availabilityZone(String availabilityZone) { + return availabilityZone(Output.of(availabilityZone)); + } + + /** + * @param description Human-readable description for the Loadbalancer. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description Human-readable description for the Loadbalancer. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param flavorId The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + * @return builder + * + */ + public Builder flavorId(@Nullable Output flavorId) { + $.flavorId = flavorId; + return this; + } + + /** + * @param flavorId The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + * @return builder + * + */ + public Builder flavorId(String flavorId) { + return flavorId(Output.of(flavorId)); + } + + /** + * @param loadbalancerProvider The name of the provider. Changing this + * creates a new loadbalancer. + * + * @return builder + * + */ + public Builder loadbalancerProvider(@Nullable Output loadbalancerProvider) { + $.loadbalancerProvider = loadbalancerProvider; + return this; + } + + /** + * @param loadbalancerProvider The name of the provider. Changing this + * creates a new loadbalancer. + * + * @return builder + * + */ + public Builder loadbalancerProvider(String loadbalancerProvider) { + return loadbalancerProvider(Output.of(loadbalancerProvider)); + } + + /** + * @param name Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param region The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + * @return builder + * + */ + public Builder region(@Nullable Output region) { + $.region = region; + return this; + } + + /** + * @param region The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + * @return builder + * + */ + public Builder region(String region) { + return region(Output.of(region)); + } + + /** + * @param securityGroupIds A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + * @return builder + * + */ + public Builder securityGroupIds(@Nullable Output> securityGroupIds) { + $.securityGroupIds = securityGroupIds; + return this; + } + + /** + * @param securityGroupIds A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + * @return builder + * + */ + public Builder securityGroupIds(List securityGroupIds) { + return securityGroupIds(Output.of(securityGroupIds)); + } + + /** + * @param securityGroupIds A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + * @return builder + * + */ + public Builder securityGroupIds(String... securityGroupIds) { + return securityGroupIds(List.of(securityGroupIds)); + } + + /** + * @param tags A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + * @return builder + * + */ + public Builder tags(List tags) { + return tags(Output.of(tags)); + } + + /** + * @param tags A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + * @return builder + * + */ + public Builder tags(String... tags) { + return tags(List.of(tags)); + } + + /** + * @param tenantId Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder tenantId(@Nullable Output tenantId) { + $.tenantId = tenantId; + return this; + } + + /** + * @param tenantId Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder tenantId(String tenantId) { + return tenantId(Output.of(tenantId)); + } + + /** + * @param vipAddress The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder vipAddress(@Nullable Output vipAddress) { + $.vipAddress = vipAddress; + return this; + } + + /** + * @param vipAddress The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder vipAddress(String vipAddress) { + return vipAddress(Output.of(vipAddress)); + } + + /** + * @param vipNetworkId The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipNetworkId(@Nullable Output vipNetworkId) { + $.vipNetworkId = vipNetworkId; + return this; + } + + /** + * @param vipNetworkId The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipNetworkId(String vipNetworkId) { + return vipNetworkId(Output.of(vipNetworkId)); + } + + /** + * @param vipPortId The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipPortId(@Nullable Output vipPortId) { + $.vipPortId = vipPortId; + return this; + } + + /** + * @param vipPortId The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipPortId(String vipPortId) { + return vipPortId(Output.of(vipPortId)); + } + + /** + * @param vipSubnetId The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + * @return builder + * + */ + public Builder vipSubnetId(@Nullable Output vipSubnetId) { + $.vipSubnetId = vipSubnetId; + return this; + } + + /** + * @param vipSubnetId The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + * @return builder + * + */ + public Builder vipSubnetId(String vipSubnetId) { + return vipSubnetId(Output.of(vipSubnetId)); + } + + public LbLoadbalancerV2Args build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosAssociationV3.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosAssociationV3.java index aec5113fa..adb5b6473 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosAssociationV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosAssociationV3.java @@ -47,17 +47,17 @@ * } * * public static void stack(Context ctx) { - * var qos = new QosV3("qos", QosV3Args.builder() + * var qos = new QosV3("qos", QosV3Args.builder() * .name("%s") * .consumer("front-end") * .specs(Map.of("read_iops_sec", "20000")) * .build()); * - * var volumeType = new VolumeTypeV3("volumeType", VolumeTypeV3Args.builder() + * var volumeType = new VolumeTypeV3("volumeType", VolumeTypeV3Args.builder() * .name("%s") * .build()); * - * var qosAssociation = new QosAssociationV3("qosAssociation", QosAssociationV3Args.builder() + * var qosAssociation = new QosAssociationV3("qosAssociation", QosAssociationV3Args.builder() * .qosId(qos.id()) * .volumeTypeId(volumeType.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosV3.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosV3.java index 62a961f52..b20c261ea 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/QosV3.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var qos = new QosV3("qos", QosV3Args.builder() + * var qos = new QosV3("qos", QosV3Args.builder() * .name("foo") * .consumer("back-end") * .specs(Map.ofEntries( diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/Volume.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/Volume.java index 761ad5aca..a4587c321 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/Volume.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/Volume.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new Volume("volume1", VolumeArgs.builder() + * var volume1 = new Volume("volume1", VolumeArgs.builder() * .region("RegionOne") * .name("volume_1") * .description("first test volume") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java index 36985eb3c..20de9e6cd 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java @@ -63,12 +63,12 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new Volume("volume1", VolumeArgs.builder() + * var volume1 = new Volume("volume1", VolumeArgs.builder() * .name("volume_1") * .size(1) * .build()); * - * var va1 = new VolumeAttach("va1", VolumeAttachArgs.builder() + * var va1 = new VolumeAttach("va1", VolumeAttachArgs.builder() * .volumeId(volume1.id()) * .device("auto") * .hostName("devstack") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java index 7bd03916c..01b0b5426 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java @@ -63,12 +63,12 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new VolumeV2("volume1", VolumeV2Args.builder() + * var volume1 = new VolumeV2("volume1", VolumeV2Args.builder() * .name("volume_1") * .size(1) * .build()); * - * var va1 = new VolumeAttachV2("va1", VolumeAttachV2Args.builder() + * var va1 = new VolumeAttachV2("va1", VolumeAttachV2Args.builder() * .volumeId(volume1.id()) * .device("auto") * .hostName("devstack") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeAccessV3.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeAccessV3.java index 33c31dd69..b3f7e768b 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeAccessV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeAccessV3.java @@ -47,16 +47,16 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("project_1") * .build()); * - * var volumeType1 = new VolumeTypeV3("volumeType1", VolumeTypeV3Args.builder() + * var volumeType1 = new VolumeTypeV3("volumeType1", VolumeTypeV3Args.builder() * .name("volume_type_1") * .isPublic(false) * .build()); * - * var volumeTypeAccess = new VolumeTypeAccessV3("volumeTypeAccess", VolumeTypeAccessV3Args.builder() + * var volumeTypeAccess = new VolumeTypeAccessV3("volumeTypeAccess", VolumeTypeAccessV3Args.builder() * .projectId(project1.id()) * .volumeTypeId(volumeType1.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeV3.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeV3.java index 8869c6f91..5825ef505 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeTypeV3.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var volumeType1 = new VolumeTypeV3("volumeType1", VolumeTypeV3Args.builder() + * var volumeType1 = new VolumeTypeV3("volumeType1", VolumeTypeV3Args.builder() * .name("volume_type_1") * .description("Volume type 1") * .extraSpecs(Map.ofEntries( @@ -88,7 +88,7 @@ * } * * public static void stack(Context ctx) { - * var multiattach = new VolumeTypeV3("multiattach", VolumeTypeV3Args.builder() + * var multiattach = new VolumeTypeV3("multiattach", VolumeTypeV3Args.builder() * .name("multiattach") * .description("Multiattach-enabled volume type") * .extraSpecs(Map.of("multiattach", " True")) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV1.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV1.java index bdc2db56a..7f017ad6e 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV1.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new VolumeV1("volume1", VolumeV1Args.builder() + * var volume1 = new VolumeV1("volume1", VolumeV1Args.builder() * .region("RegionOne") * .name("tf-test-volume") * .description("first test volume") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV2.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV2.java index 19def7d8c..ec7528026 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeV2.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new VolumeV2("volume1", VolumeV2Args.builder() + * var volume1 = new VolumeV2("volume1", VolumeV2Args.builder() * .region("RegionOne") * .name("volume_1") * .description("first test volume") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/AggregateV2.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/AggregateV2.java index 439fbaaff..7bae89920 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/AggregateV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/AggregateV2.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var dellServers = new AggregateV2("dellServers", AggregateV2Args.builder() + * var dellServers = new AggregateV2("dellServers", AggregateV2Args.builder() * .region("RegionOne") * .name("dell_servers") * .zone("nova") @@ -87,7 +87,7 @@ * } * * public static void stack(Context ctx) { - * var test = new AggregateV2("test", AggregateV2Args.builder() + * var test = new AggregateV2("test", AggregateV2Args.builder() * .name("test") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/Flavor.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/Flavor.java index fe352edb7..52c79f905 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/Flavor.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/Flavor.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var test_flavor = new Flavor("test-flavor", FlavorArgs.builder() + * var test_flavor = new Flavor("test-flavor", FlavorArgs.builder() * .name("my-flavor") * .ram("8096") * .vcpus("2") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/FlavorAccess.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/FlavorAccess.java index 1dc3f7a5b..9c64606bf 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/FlavorAccess.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/FlavorAccess.java @@ -50,11 +50,11 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("my-project") * .build()); * - * var flavor1 = new Flavor("flavor1", FlavorArgs.builder() + * var flavor1 = new Flavor("flavor1", FlavorArgs.builder() * .name("my-flavor") * .ram("8096") * .vcpus("2") @@ -62,7 +62,7 @@ * .isPublic(false) * .build()); * - * var access1 = new FlavorAccess("access1", FlavorAccessArgs.builder() + * var access1 = new FlavorAccess("access1", FlavorAccessArgs.builder() * .tenantId(project1.id()) * .flavorId(flavor1.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIp.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIp.java index 21fcdb438..f743472c7 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIp.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIp.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var floatip1 = new FloatingIp("floatip1", FloatingIpArgs.builder() + * var floatip1 = new FloatingIp("floatip1", FloatingIpArgs.builder() * .pool("public") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIpAssociate.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIpAssociate.java index a74c13789..4075428fd 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIpAssociate.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/FloatingIpAssociate.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743") * .flavorId(3) @@ -57,11 +57,11 @@ * .securityGroups("default") * .build()); * - * var fip1 = new FloatingIp("fip1", FloatingIpArgs.builder() + * var fip1 = new FloatingIp("fip1", FloatingIpArgs.builder() * .pool("my_pool") * .build()); * - * var fip1FloatingIpAssociate = new FloatingIpAssociate("fip1FloatingIpAssociate", FloatingIpAssociateArgs.builder() + * var fip1FloatingIpAssociate = new FloatingIpAssociate("fip1FloatingIpAssociate", FloatingIpAssociateArgs.builder() * .floatingIp(fip1.address()) * .instanceId(instance1.id()) * .build()); @@ -102,7 +102,7 @@ * } * * public static void stack(Context ctx) { - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743") * .flavorId(3) @@ -117,11 +117,11 @@ * .build()) * .build()); * - * var fip1 = new FloatingIp("fip1", FloatingIpArgs.builder() + * var fip1 = new FloatingIp("fip1", FloatingIpArgs.builder() * .pool("my_pool") * .build()); * - * var fip1FloatingIpAssociate = new FloatingIpAssociate("fip1FloatingIpAssociate", FloatingIpAssociateArgs.builder() + * var fip1FloatingIpAssociate = new FloatingIpAssociate("fip1FloatingIpAssociate", FloatingIpAssociateArgs.builder() * .floatingIp(fip1.address()) * .instanceId(instance1.id()) * .fixedIp(instance1.networks().applyValue(networks -> networks[1].fixedIpV4())) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/InterfaceAttach.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/InterfaceAttach.java index 85b8836fc..937197ce7 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/InterfaceAttach.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/InterfaceAttach.java @@ -48,17 +48,17 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups("default") * .build()); * - * var ai1 = new InterfaceAttach("ai1", InterfaceAttachArgs.builder() + * var ai1 = new InterfaceAttach("ai1", InterfaceAttachArgs.builder() * .instanceId(instance1.id()) * .networkId(network1OpenstackNetworkingPortV2.id()) * .build()); @@ -98,17 +98,17 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups("default") * .build()); * - * var ai1 = new InterfaceAttach("ai1", InterfaceAttachArgs.builder() + * var ai1 = new InterfaceAttach("ai1", InterfaceAttachArgs.builder() * .instanceId(instance1.id()) * .networkId(network1OpenstackNetworkingPortV2.id()) * .fixedIp("10.0.10.10") @@ -151,23 +151,23 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var port1 = new Port("port1", PortArgs.builder() + * var port1 = new Port("port1", PortArgs.builder() * .name("port_1") * .networkId(network1.id()) * .adminStateUp("true") * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups("default") * .build()); * - * var ai1 = new InterfaceAttach("ai1", InterfaceAttachArgs.builder() + * var ai1 = new InterfaceAttach("ai1", InterfaceAttachArgs.builder() * .instanceId(instance1.id()) * .portId(port1.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/Keypair.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/Keypair.java index 8dda65840..9f47bd538 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/Keypair.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/Keypair.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var test_keypair = new Keypair("test-keypair", KeypairArgs.builder() + * var test_keypair = new Keypair("test-keypair", KeypairArgs.builder() * .name("my-keypair") * .publicKey("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAjpC1hwiOCCmKEWxJ4qzTTsJbKzndLotBCz5PcwtUnflmU+gHJtWMZKpuEGVi29h0A/+ydKek1O18k10Ff+4tyFjiHDQAnOfgWf7+b1yK+qDip3X1C0UPMbwHlTfSGWLGZqd9LvEFx9k3h/M+VtMvwR1lJ9LUyTAImnNjWG7TaIPmui30HvM2UiFEmqkr4ijq45MyX2+fLIePLRIF61p4whjHAQYufqyno3BS48icQb4p6iVEZPo4AE2o9oIyQvj2mx4dk5Y8CgSETOZTYDOR3rU2fZTRDRgPJDH9FWvQjF5tA0p3d9CoWWd2s6GKKbfoUIi8R/Db1BSPJwkqB") * .build()); @@ -81,7 +81,7 @@ * } * * public static void stack(Context ctx) { - * var test_keypair = new Keypair("test-keypair", KeypairArgs.builder() + * var test_keypair = new Keypair("test-keypair", KeypairArgs.builder() * .name("my-keypair") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/SecGroup.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/SecGroup.java index f09b8cfd4..cabe30f0f 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/SecGroup.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/SecGroup.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var secgroup1 = new SecGroup("secgroup1", SecGroupArgs.builder() + * var secgroup1 = new SecGroup("secgroup1", SecGroupArgs.builder() * .name("my_secgroup") * .description("my security group") * .rules( @@ -103,7 +103,7 @@ * } * * public static void stack(Context ctx) { - * var test_server = new Instance("test-server", InstanceArgs.builder() + * var test_server = new Instance("test-server", InstanceArgs.builder() * .name("tf-test") * .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743") * .flavorId("3") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/ServerGroup.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/ServerGroup.java index 1a8b3d62f..e778a5579 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/ServerGroup.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/ServerGroup.java @@ -52,12 +52,12 @@ * } * * public static void stack(Context ctx) { - * var test_sg = new ServerGroup("test-sg", ServerGroupArgs.builder() + * var test_sg = new ServerGroup("test-sg", ServerGroupArgs.builder() * .name("my-sg") * .policies("anti-affinity") * .build()); * - * var test_instance = new Instance("test-instance", InstanceArgs.builder() + * var test_instance = new Instance("test-instance", InstanceArgs.builder() * .name("my-instance") * .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743") * .flavorId("3") @@ -105,7 +105,7 @@ * } * * public static void stack(Context ctx) { - * var test_sg = new ServerGroup("test-sg", ServerGroupArgs.builder() + * var test_sg = new ServerGroup("test-sg", ServerGroupArgs.builder() * .name("my-sg") * .policies("anti-affinity") * .rules(ServerGroupRulesArgs.builder() @@ -113,7 +113,7 @@ * .build()) * .build()); * - * var test_instance = new Instance("test-instance", InstanceArgs.builder() + * var test_instance = new Instance("test-instance", InstanceArgs.builder() * .name("my-instance") * .imageId("ad091b52-742f-469e-8f3c-fd81cadf0743") * .flavorId("3") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/compute/VolumeAttach.java b/sdk/java/src/main/java/com/pulumi/openstack/compute/VolumeAttach.java index 0be156dc3..65c1b749b 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/compute/VolumeAttach.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/compute/VolumeAttach.java @@ -51,17 +51,17 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new Volume("volume1", VolumeArgs.builder() + * var volume1 = new Volume("volume1", VolumeArgs.builder() * .name("volume_1") * .size(1) * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups("default") * .build()); * - * var va1 = new VolumeAttach("va1", VolumeAttachArgs.builder() + * var va1 = new VolumeAttach("va1", VolumeAttachArgs.builder() * .instanceId(instance1.id()) * .volumeId(volume1.id()) * .build()); @@ -105,29 +105,29 @@ * } * * public static void stack(Context ctx) { - * var volume1 = new Volume("volume1", VolumeArgs.builder() + * var volume1 = new Volume("volume1", VolumeArgs.builder() * .name("volume_1") * .size(1) * .volumeType("multiattach") * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups("default") * .build()); * - * var instance2 = new Instance("instance2", InstanceArgs.builder() + * var instance2 = new Instance("instance2", InstanceArgs.builder() * .name("instance_2") * .securityGroups("default") * .build()); * - * var va1 = new VolumeAttach("va1", VolumeAttachArgs.builder() + * var va1 = new VolumeAttach("va1", VolumeAttachArgs.builder() * .instanceId(instance1.id()) * .volumeId(volume1.id()) * .multiattach(true) * .build()); * - * var va2 = new VolumeAttach("va2", VolumeAttachArgs.builder() + * var va2 = new VolumeAttach("va2", VolumeAttachArgs.builder() * .instanceId(instance2.id()) * .volumeId(volume1.id()) * .multiattach(true) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/Cluster.java b/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/Cluster.java index 40519f7c3..6636bc2a1 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/Cluster.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/Cluster.java @@ -53,7 +53,7 @@ * } * * public static void stack(Context ctx) { - * var cluster1 = new Cluster("cluster1", ClusterArgs.builder() + * var cluster1 = new Cluster("cluster1", ClusterArgs.builder() * .name("cluster_1") * .clusterTemplateId("b9a45c5c-cd03-4958-82aa-b80bf93cb922") * .masterCount(3) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/ClusterTemplate.java b/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/ClusterTemplate.java index ef4952c25..75a4d19e5 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/ClusterTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/ClusterTemplate.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var clustertemplate1 = new ClusterTemplate("clustertemplate1", ClusterTemplateArgs.builder() + * var clustertemplate1 = new ClusterTemplate("clustertemplate1", ClusterTemplateArgs.builder() * .name("clustertemplate_1") * .image("Fedora-Atomic-27") * .coe("kubernetes") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/NodeGroup.java b/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/NodeGroup.java index e0d393378..5b95e255e 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/NodeGroup.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/containerinfra/NodeGroup.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var nodegroup1 = new NodeGroup("nodegroup1", NodeGroupArgs.builder() + * var nodegroup1 = new NodeGroup("nodegroup1", NodeGroupArgs.builder() * .name("nodegroup_1") * .clusterId("b9a45c5c-cd03-4958-82aa-b80bf93cb922") * .nodeCount(5) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/database/Database.java b/sdk/java/src/main/java/com/pulumi/openstack/database/Database.java index 453a6fb36..4a47fe222 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/database/Database.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/database/Database.java @@ -43,7 +43,7 @@ * } * * public static void stack(Context ctx) { - * var mydb = new Database("mydb", DatabaseArgs.builder() + * var mydb = new Database("mydb", DatabaseArgs.builder() * .name("mydb") * .instanceId(basic.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/database/Instance.java b/sdk/java/src/main/java/com/pulumi/openstack/database/Instance.java index 9ebaddc13..f3b619366 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/database/Instance.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/database/Instance.java @@ -56,7 +56,7 @@ * } * * public static void stack(Context ctx) { - * var test = new Instance("test", InstanceArgs.builder() + * var test = new Instance("test", InstanceArgs.builder() * .region("region-test") * .name("test") * .flavorId("31792d21-c355-4587-9290-56c1ed0ca376") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/database/User.java b/sdk/java/src/main/java/com/pulumi/openstack/database/User.java index 96476aa54..7e13027d9 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/database/User.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/database/User.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var basic = new User("basic", UserArgs.builder() + * var basic = new User("basic", UserArgs.builder() * .name("basic") * .instanceId(basicOpenstackDbInstanceV1.id()) * .password("password") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/dns/RecordSet.java b/sdk/java/src/main/java/com/pulumi/openstack/dns/RecordSet.java index 062943356..139fb48d3 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/dns/RecordSet.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/dns/RecordSet.java @@ -51,7 +51,7 @@ * } * * public static void stack(Context ctx) { - * var exampleZone = new Zone("exampleZone", ZoneArgs.builder() + * var exampleZone = new Zone("exampleZone", ZoneArgs.builder() * .name("example.com.") * .email("email2{@literal @}example.com") * .description("a zone") @@ -59,7 +59,7 @@ * .type("PRIMARY") * .build()); * - * var rsExampleCom = new RecordSet("rsExampleCom", RecordSetArgs.builder() + * var rsExampleCom = new RecordSet("rsExampleCom", RecordSetArgs.builder() * .zoneId(exampleZone.id()) * .name("rs.example.com.") * .description("An example record set") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferAccept.java b/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferAccept.java index 946b5f956..5b3450167 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferAccept.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferAccept.java @@ -51,7 +51,7 @@ * } * * public static void stack(Context ctx) { - * var exampleZone = new Zone("exampleZone", ZoneArgs.builder() + * var exampleZone = new Zone("exampleZone", ZoneArgs.builder() * .name("example.com.") * .email("jdoe{@literal @}example.com") * .description("An example zone") @@ -59,12 +59,12 @@ * .type("PRIMARY") * .build()); * - * var request1 = new TransferRequest("request1", TransferRequestArgs.builder() + * var request1 = new TransferRequest("request1", TransferRequestArgs.builder() * .zoneId(exampleZone.id()) * .description("a transfer accept") * .build()); * - * var accept1 = new TransferAccept("accept1", TransferAcceptArgs.builder() + * var accept1 = new TransferAccept("accept1", TransferAcceptArgs.builder() * .zoneTransferRequestId(request1.id()) * .key(request1.key()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferRequest.java b/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferRequest.java index c19532da9..0de0bce07 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferRequest.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/dns/TransferRequest.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var exampleZone = new Zone("exampleZone", ZoneArgs.builder() + * var exampleZone = new Zone("exampleZone", ZoneArgs.builder() * .name("example.com.") * .email("jdoe{@literal @}example.com") * .description("An example zone") @@ -57,7 +57,7 @@ * .type("PRIMARY") * .build()); * - * var request1 = new TransferRequest("request1", TransferRequestArgs.builder() + * var request1 = new TransferRequest("request1", TransferRequestArgs.builder() * .zoneId(exampleZone.id()) * .description("a transfer request") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/dns/Zone.java b/sdk/java/src/main/java/com/pulumi/openstack/dns/Zone.java index 8df2d536b..aa2da181a 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/dns/Zone.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/dns/Zone.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var exampleCom = new Zone("exampleCom", ZoneArgs.builder() + * var exampleCom = new Zone("exampleCom", ZoneArgs.builder() * .name("example.com.") * .email("jdoe{@literal @}example.com") * .description("An example zone") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/firewall/Firewall.java b/sdk/java/src/main/java/com/pulumi/openstack/firewall/Firewall.java index d3677fb75..5004d2f85 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/firewall/Firewall.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/firewall/Firewall.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var rule1 = new Rule("rule1", RuleArgs.builder() + * var rule1 = new Rule("rule1", RuleArgs.builder() * .name("my-rule-1") * .description("drop TELNET traffic") * .action("deny") @@ -59,7 +59,7 @@ * .enabled("true") * .build()); * - * var rule2 = new Rule("rule2", RuleArgs.builder() + * var rule2 = new Rule("rule2", RuleArgs.builder() * .name("my-rule-2") * .description("drop NTP traffic") * .action("deny") @@ -68,14 +68,14 @@ * .enabled("false") * .build()); * - * var policy1 = new Policy("policy1", PolicyArgs.builder() + * var policy1 = new Policy("policy1", PolicyArgs.builder() * .name("my-policy") * .rules( * rule1.id(), * rule2.id()) * .build()); * - * var firewall1 = new Firewall("firewall1", FirewallArgs.builder() + * var firewall1 = new Firewall("firewall1", FirewallArgs.builder() * .name("my-firewall") * .policyId(policy1.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/firewall/GroupV2.java b/sdk/java/src/main/java/com/pulumi/openstack/firewall/GroupV2.java index 2e05ffc27..73507452c 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/firewall/GroupV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/firewall/GroupV2.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var rule1 = new RuleV2("rule1", RuleV2Args.builder() + * var rule1 = new RuleV2("rule1", RuleV2Args.builder() * .name("firewall_rule_2") * .description("drop TELNET traffic") * .action("deny") @@ -59,7 +59,7 @@ * .enabled("true") * .build()); * - * var rule2 = new RuleV2("rule2", RuleV2Args.builder() + * var rule2 = new RuleV2("rule2", RuleV2Args.builder() * .name("firewall_rule_1") * .description("drop NTP traffic") * .action("deny") @@ -68,17 +68,17 @@ * .enabled("false") * .build()); * - * var policy1 = new PolicyV2("policy1", PolicyV2Args.builder() + * var policy1 = new PolicyV2("policy1", PolicyV2Args.builder() * .name("firewall_ingress_policy") * .rules(rule1.id()) * .build()); * - * var policy2 = new PolicyV2("policy2", PolicyV2Args.builder() + * var policy2 = new PolicyV2("policy2", PolicyV2Args.builder() * .name("firewall_egress_policy") * .rules(rule2.id()) * .build()); * - * var group1 = new GroupV2("group1", GroupV2Args.builder() + * var group1 = new GroupV2("group1", GroupV2Args.builder() * .name("firewall_group") * .ingressFirewallPolicyId(policy1.id()) * .egressFirewallPolicyId(policy2.id()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/firewall/Policy.java b/sdk/java/src/main/java/com/pulumi/openstack/firewall/Policy.java index ee5a7023f..844dc6699 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/firewall/Policy.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/firewall/Policy.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var rule1 = new Rule("rule1", RuleArgs.builder() + * var rule1 = new Rule("rule1", RuleArgs.builder() * .name("my-rule-1") * .description("drop TELNET traffic") * .action("deny") @@ -57,7 +57,7 @@ * .enabled("true") * .build()); * - * var rule2 = new Rule("rule2", RuleArgs.builder() + * var rule2 = new Rule("rule2", RuleArgs.builder() * .name("my-rule-2") * .description("drop NTP traffic") * .action("deny") @@ -66,7 +66,7 @@ * .enabled("false") * .build()); * - * var policy1 = new Policy("policy1", PolicyArgs.builder() + * var policy1 = new Policy("policy1", PolicyArgs.builder() * .name("my-policy") * .rules( * rule1.id(), diff --git a/sdk/java/src/main/java/com/pulumi/openstack/firewall/PolicyV2.java b/sdk/java/src/main/java/com/pulumi/openstack/firewall/PolicyV2.java index 6e044e94e..bdcf30711 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/firewall/PolicyV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/firewall/PolicyV2.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var rule1 = new RuleV2("rule1", RuleV2Args.builder() + * var rule1 = new RuleV2("rule1", RuleV2Args.builder() * .name("firewall_rule_1") * .description("drop TELNET traffic") * .action("deny") @@ -57,7 +57,7 @@ * .enabled("true") * .build()); * - * var rule2 = new RuleV2("rule2", RuleV2Args.builder() + * var rule2 = new RuleV2("rule2", RuleV2Args.builder() * .name("firewall_rule_2") * .description("drop NTP traffic") * .action("deny") @@ -66,7 +66,7 @@ * .enabled("false") * .build()); * - * var policy1 = new PolicyV2("policy1", PolicyV2Args.builder() + * var policy1 = new PolicyV2("policy1", PolicyV2Args.builder() * .name("firewall_policy") * .rules( * rule1.id(), diff --git a/sdk/java/src/main/java/com/pulumi/openstack/firewall/Rule.java b/sdk/java/src/main/java/com/pulumi/openstack/firewall/Rule.java index 3cdf30cae..5ae359e3c 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/firewall/Rule.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/firewall/Rule.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var rule1 = new Rule("rule1", RuleArgs.builder() + * var rule1 = new Rule("rule1", RuleArgs.builder() * .name("my_rule") * .description("drop TELNET traffic") * .action("deny") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/firewall/RuleV2.java b/sdk/java/src/main/java/com/pulumi/openstack/firewall/RuleV2.java index cc6d25190..e8084b87c 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/firewall/RuleV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/firewall/RuleV2.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var rule2 = new RuleV2("rule2", RuleV2Args.builder() + * var rule2 = new RuleV2("rule2", RuleV2Args.builder() * .name("firewall_rule") * .description("drop TELNET traffic") * .action("deny") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/ApplicationCredential.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/ApplicationCredential.java index 561e14ba5..7eb2a2457 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/ApplicationCredential.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/ApplicationCredential.java @@ -58,7 +58,7 @@ * } * * public static void stack(Context ctx) { - * var swift = new ApplicationCredential("swift", ApplicationCredentialArgs.builder() + * var swift = new ApplicationCredential("swift", ApplicationCredentialArgs.builder() * .name("swift") * .description("Swift technical application credential") * .secret("supersecret") @@ -103,7 +103,7 @@ * } * * public static void stack(Context ctx) { - * var unrestricted = new ApplicationCredential("unrestricted", ApplicationCredentialArgs.builder() + * var unrestricted = new ApplicationCredential("unrestricted", ApplicationCredentialArgs.builder() * .name("unrestricted") * .description("Unrestricted application credential") * .unrestricted(true) @@ -145,7 +145,7 @@ * } * * public static void stack(Context ctx) { - * var monitoring = new ApplicationCredential("monitoring", ApplicationCredentialArgs.builder() + * var monitoring = new ApplicationCredential("monitoring", ApplicationCredentialArgs.builder() * .name("monitoring") * .expiresAt("2019-02-13T12:12:12Z") * .accessRules( diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/Ec2CredentialV3.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/Ec2CredentialV3.java index fad856397..b4df11539 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/Ec2CredentialV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/Ec2CredentialV3.java @@ -85,7 +85,7 @@ * } * * public static void stack(Context ctx) { - * var ec2Key1 = new Ec2CredentialV3("ec2Key1", Ec2CredentialV3Args.builder() + * var ec2Key1 = new Ec2CredentialV3("ec2Key1", Ec2CredentialV3Args.builder() * .projectId("f7ac731cc11f40efbc03a9f9e1d1d21f") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/EndpointV3.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/EndpointV3.java index bde971162..974e1f6c8 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/EndpointV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/EndpointV3.java @@ -46,12 +46,12 @@ * } * * public static void stack(Context ctx) { - * var service1 = new ServiceV3("service1", ServiceV3Args.builder() + * var service1 = new ServiceV3("service1", ServiceV3Args.builder() * .name("my-service") * .type("my-service-type") * .build()); * - * var endpoint1 = new EndpointV3("endpoint1", EndpointV3Args.builder() + * var endpoint1 = new EndpointV3("endpoint1", EndpointV3Args.builder() * .name("my-endpoint") * .serviceId(service1.id()) * .endpointRegion(service1.region()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/GroupV3.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/GroupV3.java index b94daf9d5..64b21ea96 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/GroupV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/GroupV3.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var group1 = new GroupV3("group1", GroupV3Args.builder() + * var group1 = new GroupV3("group1", GroupV3Args.builder() * .name("group_1") * .description("group 1") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/InheritRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/InheritRoleAssignment.java index 6efdd9315..3e3c695de 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/InheritRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/InheritRoleAssignment.java @@ -51,17 +51,17 @@ * } * * public static void stack(Context ctx) { - * var user1 = new User("user1", UserArgs.builder() + * var user1 = new User("user1", UserArgs.builder() * .name("user_1") * .domainId("default") * .build()); * - * var role1 = new Role("role1", RoleArgs.builder() + * var role1 = new Role("role1", RoleArgs.builder() * .name("role_1") * .domainId("default") * .build()); * - * var roleAssignment1 = new InheritRoleAssignment("roleAssignment1", InheritRoleAssignmentArgs.builder() + * var roleAssignment1 = new InheritRoleAssignment("roleAssignment1", InheritRoleAssignmentArgs.builder() * .userId(user1.id()) * .domainId("default") * .roleId(role1.id()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/Project.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/Project.java index b25735984..b02b06cfa 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/Project.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/Project.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("project_1") * .description("A project") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/Role.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/Role.java index d32cacb96..063821282 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/Role.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/Role.java @@ -44,7 +44,7 @@ * } * * public static void stack(Context ctx) { - * var role1 = new Role("role1", RoleArgs.builder() + * var role1 = new Role("role1", RoleArgs.builder() * .name("role_1") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/RoleAssignment.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/RoleAssignment.java index 8d1c1ec19..de72931d9 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/RoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/RoleAssignment.java @@ -51,20 +51,20 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("project_1") * .build()); * - * var user1 = new User("user1", UserArgs.builder() + * var user1 = new User("user1", UserArgs.builder() * .name("user_1") * .defaultProjectId(project1.id()) * .build()); * - * var role1 = new Role("role1", RoleArgs.builder() + * var role1 = new Role("role1", RoleArgs.builder() * .name("role_1") * .build()); * - * var roleAssignment1 = new RoleAssignment("roleAssignment1", RoleAssignmentArgs.builder() + * var roleAssignment1 = new RoleAssignment("roleAssignment1", RoleAssignmentArgs.builder() * .userId(user1.id()) * .projectId(project1.id()) * .roleId(role1.id()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/ServiceV3.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/ServiceV3.java index 71a90465d..2ca5fcbed 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/ServiceV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/ServiceV3.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var service1 = new ServiceV3("service1", ServiceV3Args.builder() + * var service1 = new ServiceV3("service1", ServiceV3Args.builder() * .name("custom") * .type("custom") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/User.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/User.java index b85fa7efe..819d8f7fd 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/User.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/User.java @@ -57,11 +57,11 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("project_1") * .build()); * - * var user1 = new User("user1", UserArgs.builder() + * var user1 = new User("user1", UserArgs.builder() * .defaultProjectId(project1.id()) * .name("user_1") * .description("A user") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/identity/UserMembershipV3.java b/sdk/java/src/main/java/com/pulumi/openstack/identity/UserMembershipV3.java index b742b6b65..3ee64b9fb 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/identity/UserMembershipV3.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/identity/UserMembershipV3.java @@ -56,30 +56,30 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("project_1") * .build()); * - * var user1 = new User("user1", UserArgs.builder() + * var user1 = new User("user1", UserArgs.builder() * .name("user_1") * .defaultProjectId(project1.id()) * .build()); * - * var group1 = new GroupV3("group1", GroupV3Args.builder() + * var group1 = new GroupV3("group1", GroupV3Args.builder() * .name("group_1") * .description("group 1") * .build()); * - * var role1 = new Role("role1", RoleArgs.builder() + * var role1 = new Role("role1", RoleArgs.builder() * .name("role_1") * .build()); * - * var userMembership1 = new UserMembershipV3("userMembership1", UserMembershipV3Args.builder() + * var userMembership1 = new UserMembershipV3("userMembership1", UserMembershipV3Args.builder() * .userId(user1.id()) * .groupId(group1.id()) * .build()); * - * var roleAssignment1 = new RoleAssignment("roleAssignment1", RoleAssignmentArgs.builder() + * var roleAssignment1 = new RoleAssignment("roleAssignment1", RoleAssignmentArgs.builder() * .groupId(group1.id()) * .projectId(project1.id()) * .roleId(role1.id()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/images/Image.java b/sdk/java/src/main/java/com/pulumi/openstack/images/Image.java index 53e45626e..e93309282 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/images/Image.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/images/Image.java @@ -51,7 +51,7 @@ * } * * public static void stack(Context ctx) { - * var rancheros = new Image("rancheros", ImageArgs.builder() + * var rancheros = new Image("rancheros", ImageArgs.builder() * .name("RancherOS") * .imageSourceUrl("https://releases.rancher.com/os/latest/rancheros-openstack.img") * .containerFormat("bare") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccess.java b/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccess.java index fb106af10..eb478d28e 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccess.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccess.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var rancheros = new Image("rancheros", ImageArgs.builder() + * var rancheros = new Image("rancheros", ImageArgs.builder() * .name("RancherOS") * .imageSourceUrl("https://releases.rancher.com/os/latest/rancheros-openstack.img") * .containerFormat("bare") @@ -58,7 +58,7 @@ * .properties(Map.of("key", "value")) * .build()); * - * var rancherosMember = new ImageAccess("rancherosMember", ImageAccessArgs.builder() + * var rancherosMember = new ImageAccess("rancherosMember", ImageAccessArgs.builder() * .imageId(rancheros.id()) * .memberId("bed6b6cbb86a4e2d8dc2735c2f1000e4") * .build()); @@ -99,7 +99,7 @@ * } * * public static void stack(Context ctx) { - * var rancheros = new Image("rancheros", ImageArgs.builder() + * var rancheros = new Image("rancheros", ImageArgs.builder() * .name("RancherOS") * .imageSourceUrl("https://releases.rancher.com/os/latest/rancheros-openstack.img") * .containerFormat("bare") @@ -108,7 +108,7 @@ * .properties(Map.of("key", "value")) * .build()); * - * var rancherosMember = new ImageAccess("rancherosMember", ImageAccessArgs.builder() + * var rancherosMember = new ImageAccess("rancherosMember", ImageAccessArgs.builder() * .imageId(rancheros.id()) * .memberId("bed6b6cbb86a4e2d8dc2735c2f1000e4") * .status("accepted") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccessAccept.java b/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccessAccept.java index 31f470bc6..872de55c6 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccessAccept.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/images/ImageAccessAccept.java @@ -52,7 +52,7 @@ * .memberStatus("all") * .build()); * - * var rancherosMember = new ImageAccessAccept("rancherosMember", ImageAccessAcceptArgs.builder() + * var rancherosMember = new ImageAccessAccept("rancherosMember", ImageAccessAcceptArgs.builder() * .imageId(rancheros.applyValue(getImageResult -> getImageResult.id())) * .status("accepted") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/inputs/LbLoadbalancerV2State.java b/sdk/java/src/main/java/com/pulumi/openstack/inputs/LbLoadbalancerV2State.java new file mode 100644 index 000000000..141fea80b --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/openstack/inputs/LbLoadbalancerV2State.java @@ -0,0 +1,685 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.openstack.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LbLoadbalancerV2State extends com.pulumi.resources.ResourceArgs { + + public static final LbLoadbalancerV2State Empty = new LbLoadbalancerV2State(); + + /** + * The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + */ + @Import(name="adminStateUp") + private @Nullable Output adminStateUp; + + /** + * @return The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + */ + public Optional> adminStateUp() { + return Optional.ofNullable(this.adminStateUp); + } + + /** + * The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + */ + @Import(name="availabilityZone") + private @Nullable Output availabilityZone; + + /** + * @return The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + */ + public Optional> availabilityZone() { + return Optional.ofNullable(this.availabilityZone); + } + + /** + * Human-readable description for the Loadbalancer. + * + */ + @Import(name="description") + private @Nullable Output description; + + /** + * @return Human-readable description for the Loadbalancer. + * + */ + public Optional> description() { + return Optional.ofNullable(this.description); + } + + /** + * The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + */ + @Import(name="flavorId") + private @Nullable Output flavorId; + + /** + * @return The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + */ + public Optional> flavorId() { + return Optional.ofNullable(this.flavorId); + } + + /** + * The name of the provider. Changing this + * creates a new loadbalancer. + * + */ + @Import(name="loadbalancerProvider") + private @Nullable Output loadbalancerProvider; + + /** + * @return The name of the provider. Changing this + * creates a new loadbalancer. + * + */ + public Optional> loadbalancerProvider() { + return Optional.ofNullable(this.loadbalancerProvider); + } + + /** + * Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + */ + @Import(name="region") + private @Nullable Output region; + + /** + * @return The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + */ + public Optional> region() { + return Optional.ofNullable(this.region); + } + + /** + * A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + */ + @Import(name="securityGroupIds") + private @Nullable Output> securityGroupIds; + + /** + * @return A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + */ + public Optional>> securityGroupIds() { + return Optional.ofNullable(this.securityGroupIds); + } + + /** + * A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + */ + @Import(name="tenantId") + private @Nullable Output tenantId; + + /** + * @return Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + */ + public Optional> tenantId() { + return Optional.ofNullable(this.tenantId); + } + + /** + * The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + */ + @Import(name="vipAddress") + private @Nullable Output vipAddress; + + /** + * @return The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + */ + public Optional> vipAddress() { + return Optional.ofNullable(this.vipAddress); + } + + /** + * The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + */ + @Import(name="vipNetworkId") + private @Nullable Output vipNetworkId; + + /** + * @return The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + */ + public Optional> vipNetworkId() { + return Optional.ofNullable(this.vipNetworkId); + } + + /** + * The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + */ + @Import(name="vipPortId") + private @Nullable Output vipPortId; + + /** + * @return The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + */ + public Optional> vipPortId() { + return Optional.ofNullable(this.vipPortId); + } + + /** + * The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + */ + @Import(name="vipSubnetId") + private @Nullable Output vipSubnetId; + + /** + * @return The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + */ + public Optional> vipSubnetId() { + return Optional.ofNullable(this.vipSubnetId); + } + + private LbLoadbalancerV2State() {} + + private LbLoadbalancerV2State(LbLoadbalancerV2State $) { + this.adminStateUp = $.adminStateUp; + this.availabilityZone = $.availabilityZone; + this.description = $.description; + this.flavorId = $.flavorId; + this.loadbalancerProvider = $.loadbalancerProvider; + this.name = $.name; + this.region = $.region; + this.securityGroupIds = $.securityGroupIds; + this.tags = $.tags; + this.tenantId = $.tenantId; + this.vipAddress = $.vipAddress; + this.vipNetworkId = $.vipNetworkId; + this.vipPortId = $.vipPortId; + this.vipSubnetId = $.vipSubnetId; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LbLoadbalancerV2State defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LbLoadbalancerV2State $; + + public Builder() { + $ = new LbLoadbalancerV2State(); + } + + public Builder(LbLoadbalancerV2State defaults) { + $ = new LbLoadbalancerV2State(Objects.requireNonNull(defaults)); + } + + /** + * @param adminStateUp The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + * @return builder + * + */ + public Builder adminStateUp(@Nullable Output adminStateUp) { + $.adminStateUp = adminStateUp; + return this; + } + + /** + * @param adminStateUp The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + * + * @return builder + * + */ + public Builder adminStateUp(Boolean adminStateUp) { + return adminStateUp(Output.of(adminStateUp)); + } + + /** + * @param availabilityZone The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + * @return builder + * + */ + public Builder availabilityZone(@Nullable Output availabilityZone) { + $.availabilityZone = availabilityZone; + return this; + } + + /** + * @param availabilityZone The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + * + * @return builder + * + */ + public Builder availabilityZone(String availabilityZone) { + return availabilityZone(Output.of(availabilityZone)); + } + + /** + * @param description Human-readable description for the Loadbalancer. + * + * @return builder + * + */ + public Builder description(@Nullable Output description) { + $.description = description; + return this; + } + + /** + * @param description Human-readable description for the Loadbalancer. + * + * @return builder + * + */ + public Builder description(String description) { + return description(Output.of(description)); + } + + /** + * @param flavorId The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + * @return builder + * + */ + public Builder flavorId(@Nullable Output flavorId) { + $.flavorId = flavorId; + return this; + } + + /** + * @param flavorId The UUID of a flavor. Changing this creates a new + * loadbalancer. + * + * @return builder + * + */ + public Builder flavorId(String flavorId) { + return flavorId(Output.of(flavorId)); + } + + /** + * @param loadbalancerProvider The name of the provider. Changing this + * creates a new loadbalancer. + * + * @return builder + * + */ + public Builder loadbalancerProvider(@Nullable Output loadbalancerProvider) { + $.loadbalancerProvider = loadbalancerProvider; + return this; + } + + /** + * @param loadbalancerProvider The name of the provider. Changing this + * creates a new loadbalancer. + * + * @return builder + * + */ + public Builder loadbalancerProvider(String loadbalancerProvider) { + return loadbalancerProvider(Output.of(loadbalancerProvider)); + } + + /** + * @param name Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name Human-readable name for the Loadbalancer. Does not have + * to be unique. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param region The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + * @return builder + * + */ + public Builder region(@Nullable Output region) { + $.region = region; + return this; + } + + /** + * @param region The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + * + * @return builder + * + */ + public Builder region(String region) { + return region(Output.of(region)); + } + + /** + * @param securityGroupIds A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + * @return builder + * + */ + public Builder securityGroupIds(@Nullable Output> securityGroupIds) { + $.securityGroupIds = securityGroupIds; + return this; + } + + /** + * @param securityGroupIds A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + * @return builder + * + */ + public Builder securityGroupIds(List securityGroupIds) { + return securityGroupIds(Output.of(securityGroupIds)); + } + + /** + * @param securityGroupIds A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + * + * @return builder + * + */ + public Builder securityGroupIds(String... securityGroupIds) { + return securityGroupIds(List.of(securityGroupIds)); + } + + /** + * @param tags A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + * @return builder + * + */ + public Builder tags(List tags) { + return tags(Output.of(tags)); + } + + /** + * @param tags A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + * + * @return builder + * + */ + public Builder tags(String... tags) { + return tags(List.of(tags)); + } + + /** + * @param tenantId Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder tenantId(@Nullable Output tenantId) { + $.tenantId = tenantId; + return this; + } + + /** + * @param tenantId Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder tenantId(String tenantId) { + return tenantId(Output.of(tenantId)); + } + + /** + * @param vipAddress The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder vipAddress(@Nullable Output vipAddress) { + $.vipAddress = vipAddress; + return this; + } + + /** + * @param vipAddress The ip address of the load balancer. + * Changing this creates a new loadbalancer. + * + * @return builder + * + */ + public Builder vipAddress(String vipAddress) { + return vipAddress(Output.of(vipAddress)); + } + + /** + * @param vipNetworkId The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipNetworkId(@Nullable Output vipNetworkId) { + $.vipNetworkId = vipNetworkId; + return this; + } + + /** + * @param vipNetworkId The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipNetworkId(String vipNetworkId) { + return vipNetworkId(Output.of(vipNetworkId)); + } + + /** + * @param vipPortId The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipPortId(@Nullable Output vipPortId) { + $.vipPortId = vipPortId; + return this; + } + + /** + * @param vipPortId The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + * + * @return builder + * + */ + public Builder vipPortId(String vipPortId) { + return vipPortId(Output.of(vipPortId)); + } + + /** + * @param vipSubnetId The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + * @return builder + * + */ + public Builder vipSubnetId(@Nullable Output vipSubnetId) { + $.vipSubnetId = vipSubnetId; + return this; + } + + /** + * @param vipSubnetId The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + * + * @return builder + * + */ + public Builder vipSubnetId(String vipSubnetId) { + return vipSubnetId(Output.of(vipSubnetId)); + } + + public LbLoadbalancerV2State build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/openstack/keymanager/ContainerV1.java b/sdk/java/src/main/java/com/pulumi/openstack/keymanager/ContainerV1.java index f37ffde94..68e0314f4 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/keymanager/ContainerV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/keymanager/ContainerV1.java @@ -42,8 +42,8 @@ * import com.pulumi.openstack.keymanager.inputs.ContainerV1SecretRefArgs; * import com.pulumi.openstack.networking.NetworkingFunctions; * import com.pulumi.openstack.networking.inputs.GetSubnetArgs; - * import com.pulumi.openstack.loadbalancer.LoadBalancer; - * import com.pulumi.openstack.loadbalancer.LoadBalancerArgs; + * import com.pulumi.openstack.LbLoadbalancerV2; + * import com.pulumi.openstack.LbLoadbalancerV2Args; * import com.pulumi.openstack.loadbalancer.Listener; * import com.pulumi.openstack.loadbalancer.ListenerArgs; * import java.util.List; @@ -59,7 +59,7 @@ * } * * public static void stack(Context ctx) { - * var certificate1 = new SecretV1("certificate1", SecretV1Args.builder() + * var certificate1 = new SecretV1("certificate1", SecretV1Args.builder() * .name("certificate") * .payload(StdFunctions.file(FileArgs.builder() * .input("cert.pem") @@ -68,7 +68,7 @@ * .payloadContentType("text/plain") * .build()); * - * var privateKey1 = new SecretV1("privateKey1", SecretV1Args.builder() + * var privateKey1 = new SecretV1("privateKey1", SecretV1Args.builder() * .name("private_key") * .payload(StdFunctions.file(FileArgs.builder() * .input("cert-key.pem") @@ -77,7 +77,7 @@ * .payloadContentType("text/plain") * .build()); * - * var intermediate1 = new SecretV1("intermediate1", SecretV1Args.builder() + * var intermediate1 = new SecretV1("intermediate1", SecretV1Args.builder() * .name("intermediate") * .payload(StdFunctions.file(FileArgs.builder() * .input("intermediate-ca.pem") @@ -86,7 +86,7 @@ * .payloadContentType("text/plain") * .build()); * - * var tls1 = new ContainerV1("tls1", ContainerV1Args.builder() + * var tls1 = new ContainerV1("tls1", ContainerV1Args.builder() * .name("tls") * .type("certificate") * .secretRefs( @@ -108,12 +108,12 @@ * .name("my-subnet") * .build()); * - * var lb1 = new LoadBalancer("lb1", LoadBalancerArgs.builder() + * var lb1 = new LbLoadbalancerV2("lb1", LbLoadbalancerV2Args.builder() * .name("loadbalancer") * .vipSubnetId(subnet1.applyValue(getSubnetResult -> getSubnetResult.id())) * .build()); * - * var listener1 = new Listener("listener1", ListenerArgs.builder() + * var listener1 = new Listener("listener1", ListenerArgs.builder() * .name("https") * .protocol("TERMINATED_HTTPS") * .protocolPort(443) @@ -157,7 +157,7 @@ * } * * public static void stack(Context ctx) { - * var tls1 = new ContainerV1("tls1", ContainerV1Args.builder() + * var tls1 = new ContainerV1("tls1", ContainerV1Args.builder() * .name("tls") * .type("certificate") * .secretRefs( diff --git a/sdk/java/src/main/java/com/pulumi/openstack/keymanager/OrderV1.java b/sdk/java/src/main/java/com/pulumi/openstack/keymanager/OrderV1.java index 6120c1efe..9fcc3bf40 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/keymanager/OrderV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/keymanager/OrderV1.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var order1 = new OrderV1("order1", OrderV1Args.builder() + * var order1 = new OrderV1("order1", OrderV1Args.builder() * .type("key") * .meta(OrderV1MetaArgs.builder() * .algorithm("aes") @@ -87,7 +87,7 @@ * } * * public static void stack(Context ctx) { - * var order1 = new OrderV1("order1", OrderV1Args.builder() + * var order1 = new OrderV1("order1", OrderV1Args.builder() * .type("asymmetric") * .meta(OrderV1MetaArgs.builder() * .algorithm("rsa") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/keymanager/SecretV1.java b/sdk/java/src/main/java/com/pulumi/openstack/keymanager/SecretV1.java index 9551fb916..ded957bc8 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/keymanager/SecretV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/keymanager/SecretV1.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var secret1 = new SecretV1("secret1", SecretV1Args.builder() + * var secret1 = new SecretV1("secret1", SecretV1Args.builder() * .algorithm("aes") * .bitLength(256) * .mode("cbc") @@ -95,7 +95,7 @@ * } * * public static void stack(Context ctx) { - * var secret1 = new SecretV1("secret1", SecretV1Args.builder() + * var secret1 = new SecretV1("secret1", SecretV1Args.builder() * .name("password") * .payload(StdFunctions.base64encode(Base64encodeArgs.builder() * .input("password with the whitespace at the end ") @@ -140,7 +140,7 @@ * } * * public static void stack(Context ctx) { - * var secret1 = new SecretV1("secret1", SecretV1Args.builder() + * var secret1 = new SecretV1("secret1", SecretV1Args.builder() * .name("certificate") * .payload(StdFunctions.file(FileArgs.builder() * .input("certificate.pem") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7PolicyV2.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7PolicyV2.java index 22ae87ff6..f4358d1c6 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7PolicyV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7PolicyV2.java @@ -33,8 +33,8 @@ * import com.pulumi.openstack.networking.NetworkArgs; * import com.pulumi.openstack.networking.Subnet; * import com.pulumi.openstack.networking.SubnetArgs; - * import com.pulumi.openstack.loadbalancer.LoadBalancer; - * import com.pulumi.openstack.loadbalancer.LoadBalancerArgs; + * import com.pulumi.openstack.LbLoadbalancerV2; + * import com.pulumi.openstack.LbLoadbalancerV2Args; * import com.pulumi.openstack.loadbalancer.Listener; * import com.pulumi.openstack.loadbalancer.ListenerArgs; * import com.pulumi.openstack.loadbalancer.Pool; @@ -54,38 +54,38 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var loadbalancer1 = new LoadBalancer("loadbalancer1", LoadBalancerArgs.builder() + * var loadbalancer1 = new LbLoadbalancerV2("loadbalancer1", LbLoadbalancerV2Args.builder() * .name("loadbalancer_1") * .vipSubnetId(subnet1.id()) * .build()); * - * var listener1 = new Listener("listener1", ListenerArgs.builder() + * var listener1 = new Listener("listener1", ListenerArgs.builder() * .name("listener_1") * .protocol("HTTP") * .protocolPort(8080) * .loadbalancerId(loadbalancer1.id()) * .build()); * - * var pool1 = new Pool("pool1", PoolArgs.builder() + * var pool1 = new Pool("pool1", PoolArgs.builder() * .name("pool_1") * .protocol("HTTP") * .lbMethod("ROUND_ROBIN") * .loadbalancerId(loadbalancer1.id()) * .build()); * - * var l7policy1 = new L7PolicyV2("l7policy1", L7PolicyV2Args.builder() + * var l7policy1 = new L7PolicyV2("l7policy1", L7PolicyV2Args.builder() * .name("test") * .action("REDIRECT_TO_POOL") * .description("test l7 policy") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7RuleV2.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7RuleV2.java index 0f6a212ef..b3eb74247 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7RuleV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/L7RuleV2.java @@ -32,8 +32,8 @@ * import com.pulumi.openstack.networking.NetworkArgs; * import com.pulumi.openstack.networking.Subnet; * import com.pulumi.openstack.networking.SubnetArgs; - * import com.pulumi.openstack.loadbalancer.LoadBalancer; - * import com.pulumi.openstack.loadbalancer.LoadBalancerArgs; + * import com.pulumi.openstack.LbLoadbalancerV2; + * import com.pulumi.openstack.LbLoadbalancerV2Args; * import com.pulumi.openstack.loadbalancer.Listener; * import com.pulumi.openstack.loadbalancer.ListenerArgs; * import com.pulumi.openstack.loadbalancer.Pool; @@ -55,38 +55,38 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var loadbalancer1 = new LoadBalancer("loadbalancer1", LoadBalancerArgs.builder() + * var loadbalancer1 = new LbLoadbalancerV2("loadbalancer1", LbLoadbalancerV2Args.builder() * .name("loadbalancer_1") * .vipSubnetId(subnet1.id()) * .build()); * - * var listener1 = new Listener("listener1", ListenerArgs.builder() + * var listener1 = new Listener("listener1", ListenerArgs.builder() * .name("listener_1") * .protocol("HTTP") * .protocolPort(8080) * .loadbalancerId(loadbalancer1.id()) * .build()); * - * var pool1 = new Pool("pool1", PoolArgs.builder() + * var pool1 = new Pool("pool1", PoolArgs.builder() * .name("pool_1") * .protocol("HTTP") * .lbMethod("ROUND_ROBIN") * .loadbalancerId(loadbalancer1.id()) * .build()); * - * var l7policy1 = new L7PolicyV2("l7policy1", L7PolicyV2Args.builder() + * var l7policy1 = new L7PolicyV2("l7policy1", L7PolicyV2Args.builder() * .name("test") * .action("REDIRECT_TO_URL") * .description("test description") @@ -95,7 +95,7 @@ * .redirectUrl("http://www.example.com") * .build()); * - * var l7rule1 = new L7RuleV2("l7rule1", L7RuleV2Args.builder() + * var l7rule1 = new L7RuleV2("l7rule1", L7RuleV2Args.builder() * .l7policyId(l7policy1.id()) * .type("PATH") * .compareType("EQUAL_TO") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Listener.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Listener.java index 5a0479885..46d0332cd 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Listener.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Listener.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var listener1 = new Listener("listener1", ListenerArgs.builder() + * var listener1 = new Listener("listener1", ListenerArgs.builder() * .protocol("HTTP") * .protocolPort(8080) * .loadbalancerId("d9415786-5f1a-428b-b35f-2f1523e146d2") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancer.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancer.java index cdcf0990f..a3ed5a2e4 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancer.java @@ -17,298 +17,94 @@ import javax.annotation.Nullable; /** - * Manages a V2 loadbalancer resource within OpenStack. - * - * > **Note:** This resource has attributes that depend on octavia minor versions. - * Please ensure your Openstack cloud supports the required minor version. - * - * ## Example Usage - * - * <!--Start PulumiCodeChooser --> - *
- * {@code
- * package generated_program;
- * 
- * import com.pulumi.Context;
- * import com.pulumi.Pulumi;
- * import com.pulumi.core.Output;
- * import com.pulumi.openstack.loadbalancer.LoadBalancer;
- * import com.pulumi.openstack.loadbalancer.LoadBalancerArgs;
- * import java.util.List;
- * import java.util.ArrayList;
- * import java.util.Map;
- * import java.io.File;
- * import java.nio.file.Files;
- * import java.nio.file.Paths;
- * 
- * public class App {
- *     public static void main(String[] args) {
- *         Pulumi.run(App::stack);
- *     }
- * 
- *     public static void stack(Context ctx) {
- *         var lb1 = new LoadBalancer("lb1", LoadBalancerArgs.builder()        
- *             .vipSubnetId("d9415786-5f1a-428b-b35f-2f1523e146d2")
- *             .build());
- * 
- *     }
- * }
- * }
- * 
- * <!--End PulumiCodeChooser --> - * - * ## Import - * - * Load Balancer can be imported using the Load Balancer ID, e.g.: - * - * ```sh - * $ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 - * ``` + * @deprecated + * openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2 * */ +@Deprecated /* openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2 */ @ResourceType(type="openstack:loadbalancer/loadBalancer:LoadBalancer") public class LoadBalancer extends com.pulumi.resources.CustomResource { - /** - * The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - */ @Export(name="adminStateUp", refs={Boolean.class}, tree="[0]") private Output adminStateUp; - /** - * @return The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - */ public Output> adminStateUp() { return Codegen.optional(this.adminStateUp); } - /** - * The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - */ @Export(name="availabilityZone", refs={String.class}, tree="[0]") private Output availabilityZone; - /** - * @return The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - */ public Output> availabilityZone() { return Codegen.optional(this.availabilityZone); } - /** - * Human-readable description for the Loadbalancer. - * - */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; - /** - * @return Human-readable description for the Loadbalancer. - * - */ public Output> description() { return Codegen.optional(this.description); } - /** - * The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - */ @Export(name="flavorId", refs={String.class}, tree="[0]") private Output flavorId; - /** - * @return The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - */ public Output flavorId() { return this.flavorId; } - /** - * The name of the provider. Changing this - * creates a new loadbalancer. - * - */ @Export(name="loadbalancerProvider", refs={String.class}, tree="[0]") private Output loadbalancerProvider; - /** - * @return The name of the provider. Changing this - * creates a new loadbalancer. - * - */ public Output loadbalancerProvider() { return this.loadbalancerProvider; } - /** - * Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; - /** - * @return Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - */ public Output name() { return this.name; } - /** - * The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - */ @Export(name="region", refs={String.class}, tree="[0]") private Output region; - /** - * @return The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - */ public Output region() { return this.region; } - /** - * A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - */ @Export(name="securityGroupIds", refs={List.class,String.class}, tree="[0,1]") private Output> securityGroupIds; - /** - * @return A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - */ public Output> securityGroupIds() { return this.securityGroupIds; } - /** - * A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - */ @Export(name="tags", refs={List.class,String.class}, tree="[0,1]") private Output> tags; - /** - * @return A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - */ public Output>> tags() { return Codegen.optional(this.tags); } - /** - * Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - */ @Export(name="tenantId", refs={String.class}, tree="[0]") private Output tenantId; - /** - * @return Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - */ public Output tenantId() { return this.tenantId; } - /** - * The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - */ @Export(name="vipAddress", refs={String.class}, tree="[0]") private Output vipAddress; - /** - * @return The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - */ public Output vipAddress() { return this.vipAddress; } - /** - * The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - */ @Export(name="vipNetworkId", refs={String.class}, tree="[0]") private Output vipNetworkId; - /** - * @return The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - */ public Output vipNetworkId() { return this.vipNetworkId; } - /** - * The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - */ @Export(name="vipPortId", refs={String.class}, tree="[0]") private Output vipPortId; - /** - * @return The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - */ public Output vipPortId() { return this.vipPortId; } - /** - * The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - */ @Export(name="vipSubnetId", refs={String.class}, tree="[0]") private Output vipSubnetId; - /** - * @return The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - */ public Output vipSubnetId() { return this.vipSubnetId; } diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancerArgs.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancerArgs.java index d4c2441f6..05e994fcc 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/LoadBalancerArgs.java @@ -17,260 +17,100 @@ public final class LoadBalancerArgs extends com.pulumi.resources.ResourceArgs { public static final LoadBalancerArgs Empty = new LoadBalancerArgs(); - /** - * The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - */ @Import(name="adminStateUp") private @Nullable Output adminStateUp; - /** - * @return The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - */ public Optional> adminStateUp() { return Optional.ofNullable(this.adminStateUp); } - /** - * The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - */ @Import(name="availabilityZone") private @Nullable Output availabilityZone; - /** - * @return The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - */ public Optional> availabilityZone() { return Optional.ofNullable(this.availabilityZone); } - /** - * Human-readable description for the Loadbalancer. - * - */ @Import(name="description") private @Nullable Output description; - /** - * @return Human-readable description for the Loadbalancer. - * - */ public Optional> description() { return Optional.ofNullable(this.description); } - /** - * The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - */ @Import(name="flavorId") private @Nullable Output flavorId; - /** - * @return The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - */ public Optional> flavorId() { return Optional.ofNullable(this.flavorId); } - /** - * The name of the provider. Changing this - * creates a new loadbalancer. - * - */ @Import(name="loadbalancerProvider") private @Nullable Output loadbalancerProvider; - /** - * @return The name of the provider. Changing this - * creates a new loadbalancer. - * - */ public Optional> loadbalancerProvider() { return Optional.ofNullable(this.loadbalancerProvider); } - /** - * Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - */ @Import(name="name") private @Nullable Output name; - /** - * @return Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - */ public Optional> name() { return Optional.ofNullable(this.name); } - /** - * The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - */ @Import(name="region") private @Nullable Output region; - /** - * @return The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - */ public Optional> region() { return Optional.ofNullable(this.region); } - /** - * A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - */ @Import(name="securityGroupIds") private @Nullable Output> securityGroupIds; - /** - * @return A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - */ public Optional>> securityGroupIds() { return Optional.ofNullable(this.securityGroupIds); } - /** - * A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - */ @Import(name="tags") private @Nullable Output> tags; - /** - * @return A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - */ public Optional>> tags() { return Optional.ofNullable(this.tags); } - /** - * Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - */ @Import(name="tenantId") private @Nullable Output tenantId; - /** - * @return Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - */ public Optional> tenantId() { return Optional.ofNullable(this.tenantId); } - /** - * The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - */ @Import(name="vipAddress") private @Nullable Output vipAddress; - /** - * @return The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - */ public Optional> vipAddress() { return Optional.ofNullable(this.vipAddress); } - /** - * The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - */ @Import(name="vipNetworkId") private @Nullable Output vipNetworkId; - /** - * @return The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - */ public Optional> vipNetworkId() { return Optional.ofNullable(this.vipNetworkId); } - /** - * The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - */ @Import(name="vipPortId") private @Nullable Output vipPortId; - /** - * @return The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - */ public Optional> vipPortId() { return Optional.ofNullable(this.vipPortId); } - /** - * The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - */ @Import(name="vipSubnetId") private @Nullable Output vipSubnetId; - /** - * @return The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - */ public Optional> vipSubnetId() { return Optional.ofNullable(this.vipSubnetId); } @@ -312,367 +152,136 @@ public Builder(LoadBalancerArgs defaults) { $ = new LoadBalancerArgs(Objects.requireNonNull(defaults)); } - /** - * @param adminStateUp The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - * @return builder - * - */ public Builder adminStateUp(@Nullable Output adminStateUp) { $.adminStateUp = adminStateUp; return this; } - /** - * @param adminStateUp The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - * @return builder - * - */ public Builder adminStateUp(Boolean adminStateUp) { return adminStateUp(Output.of(adminStateUp)); } - /** - * @param availabilityZone The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - * @return builder - * - */ public Builder availabilityZone(@Nullable Output availabilityZone) { $.availabilityZone = availabilityZone; return this; } - /** - * @param availabilityZone The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - * @return builder - * - */ public Builder availabilityZone(String availabilityZone) { return availabilityZone(Output.of(availabilityZone)); } - /** - * @param description Human-readable description for the Loadbalancer. - * - * @return builder - * - */ public Builder description(@Nullable Output description) { $.description = description; return this; } - /** - * @param description Human-readable description for the Loadbalancer. - * - * @return builder - * - */ public Builder description(String description) { return description(Output.of(description)); } - /** - * @param flavorId The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - * @return builder - * - */ public Builder flavorId(@Nullable Output flavorId) { $.flavorId = flavorId; return this; } - /** - * @param flavorId The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - * @return builder - * - */ public Builder flavorId(String flavorId) { return flavorId(Output.of(flavorId)); } - /** - * @param loadbalancerProvider The name of the provider. Changing this - * creates a new loadbalancer. - * - * @return builder - * - */ public Builder loadbalancerProvider(@Nullable Output loadbalancerProvider) { $.loadbalancerProvider = loadbalancerProvider; return this; } - /** - * @param loadbalancerProvider The name of the provider. Changing this - * creates a new loadbalancer. - * - * @return builder - * - */ public Builder loadbalancerProvider(String loadbalancerProvider) { return loadbalancerProvider(Output.of(loadbalancerProvider)); } - /** - * @param name Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - * @return builder - * - */ public Builder name(@Nullable Output name) { $.name = name; return this; } - /** - * @param name Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - * @return builder - * - */ public Builder name(String name) { return name(Output.of(name)); } - /** - * @param region The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - * @return builder - * - */ public Builder region(@Nullable Output region) { $.region = region; return this; } - /** - * @param region The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - * @return builder - * - */ public Builder region(String region) { return region(Output.of(region)); } - /** - * @param securityGroupIds A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - * @return builder - * - */ public Builder securityGroupIds(@Nullable Output> securityGroupIds) { $.securityGroupIds = securityGroupIds; return this; } - /** - * @param securityGroupIds A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - * @return builder - * - */ public Builder securityGroupIds(List securityGroupIds) { return securityGroupIds(Output.of(securityGroupIds)); } - /** - * @param securityGroupIds A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - * @return builder - * - */ public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } - /** - * @param tags A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - * @return builder - * - */ public Builder tags(@Nullable Output> tags) { $.tags = tags; return this; } - /** - * @param tags A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - * @return builder - * - */ public Builder tags(List tags) { return tags(Output.of(tags)); } - /** - * @param tags A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - * @return builder - * - */ public Builder tags(String... tags) { return tags(List.of(tags)); } - /** - * @param tenantId Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder tenantId(@Nullable Output tenantId) { $.tenantId = tenantId; return this; } - /** - * @param tenantId Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder tenantId(String tenantId) { return tenantId(Output.of(tenantId)); } - /** - * @param vipAddress The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder vipAddress(@Nullable Output vipAddress) { $.vipAddress = vipAddress; return this; } - /** - * @param vipAddress The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder vipAddress(String vipAddress) { return vipAddress(Output.of(vipAddress)); } - /** - * @param vipNetworkId The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - * @return builder - * - */ public Builder vipNetworkId(@Nullable Output vipNetworkId) { $.vipNetworkId = vipNetworkId; return this; } - /** - * @param vipNetworkId The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - * @return builder - * - */ public Builder vipNetworkId(String vipNetworkId) { return vipNetworkId(Output.of(vipNetworkId)); } - /** - * @param vipPortId The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - * @return builder - * - */ public Builder vipPortId(@Nullable Output vipPortId) { $.vipPortId = vipPortId; return this; } - /** - * @param vipPortId The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - * @return builder - * - */ public Builder vipPortId(String vipPortId) { return vipPortId(Output.of(vipPortId)); } - /** - * @param vipSubnetId The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - * @return builder - * - */ public Builder vipSubnetId(@Nullable Output vipSubnetId) { $.vipSubnetId = vipSubnetId; return this; } - /** - * @param vipSubnetId The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - * @return builder - * - */ public Builder vipSubnetId(String vipSubnetId) { return vipSubnetId(Output.of(vipSubnetId)); } diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Member.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Member.java index cc4d7ba64..e1d198db6 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Member.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Member.java @@ -44,7 +44,7 @@ * } * * public static void stack(Context ctx) { - * var member1 = new Member("member1", MemberArgs.builder() + * var member1 = new Member("member1", MemberArgs.builder() * .poolId("935685fb-a896-40f9-9ff4-ae531a3a00fe") * .address("192.168.199.23") * .protocolPort(8080) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MemberV1.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MemberV1.java index 387d4fc7f..824081194 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MemberV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MemberV1.java @@ -44,7 +44,7 @@ * } * * public static void stack(Context ctx) { - * var member1 = new MemberV1("member1", MemberV1Args.builder() + * var member1 = new MemberV1("member1", MemberV1Args.builder() * .poolId("d9415786-5f1a-428b-b35f-2f1523e146d2") * .address("192.168.0.10") * .port(80) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Members.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Members.java index 65f9c2bd0..5fafe8fc6 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Members.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Members.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var members1 = new Members("members1", MembersArgs.builder() + * var members1 = new Members("members1", MembersArgs.builder() * .poolId("935685fb-a896-40f9-9ff4-ae531a3a00fe") * .members( * MembersMemberArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Monitor.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Monitor.java index d5d36b344..1ce99e1ae 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Monitor.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Monitor.java @@ -44,7 +44,7 @@ * } * * public static void stack(Context ctx) { - * var monitor1 = new Monitor("monitor1", MonitorArgs.builder() + * var monitor1 = new Monitor("monitor1", MonitorArgs.builder() * .poolId(pool1.id()) * .type("PING") * .delay(20) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MonitorV1.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MonitorV1.java index 4fc17a15a..8f58870d7 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MonitorV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/MonitorV1.java @@ -43,7 +43,7 @@ * } * * public static void stack(Context ctx) { - * var monitor1 = new MonitorV1("monitor1", MonitorV1Args.builder() + * var monitor1 = new MonitorV1("monitor1", MonitorV1Args.builder() * .type("PING") * .delay(30) * .timeout(5) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Pool.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Pool.java index 6912848e0..8fdb57b28 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Pool.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Pool.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var pool1 = new Pool("pool1", PoolArgs.builder() + * var pool1 = new Pool("pool1", PoolArgs.builder() * .protocol("HTTP") * .lbMethod("ROUND_ROBIN") * .listenerId("d9415786-5f1a-428b-b35f-2f1523e146d2") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/PoolV1.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/PoolV1.java index 031b5fd6f..844af4a5a 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/PoolV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/PoolV1.java @@ -43,7 +43,7 @@ * } * * public static void stack(Context ctx) { - * var pool1 = new PoolV1("pool1", PoolV1Args.builder() + * var pool1 = new PoolV1("pool1", PoolV1Args.builder() * .name("tf_test_lb_pool") * .protocol("HTTP") * .subnetId("12345") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Quota.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Quota.java index cf5758802..4c68acace 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Quota.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Quota.java @@ -55,11 +55,11 @@ * } * * public static void stack(Context ctx) { - * var project1 = new Project("project1", ProjectArgs.builder() + * var project1 = new Project("project1", ProjectArgs.builder() * .name("project_1") * .build()); * - * var quota1 = new Quota("quota1", QuotaArgs.builder() + * var quota1 = new Quota("quota1", QuotaArgs.builder() * .projectId(project1.id()) * .loadbalancer(6) * .listener(7) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Vip.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Vip.java index ae1bbddcf..2cfad5b15 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Vip.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/Vip.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var vip1 = new Vip("vip1", VipArgs.builder() + * var vip1 = new Vip("vip1", VipArgs.builder() * .name("tf_test_lb_vip") * .subnetId("12345") * .protocol("HTTP") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/inputs/LoadBalancerState.java b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/inputs/LoadBalancerState.java index d958be148..5ffcea9a4 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/inputs/LoadBalancerState.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/loadbalancer/inputs/LoadBalancerState.java @@ -17,260 +17,100 @@ public final class LoadBalancerState extends com.pulumi.resources.ResourceArgs { public static final LoadBalancerState Empty = new LoadBalancerState(); - /** - * The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - */ @Import(name="adminStateUp") private @Nullable Output adminStateUp; - /** - * @return The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - */ public Optional> adminStateUp() { return Optional.ofNullable(this.adminStateUp); } - /** - * The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - */ @Import(name="availabilityZone") private @Nullable Output availabilityZone; - /** - * @return The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - */ public Optional> availabilityZone() { return Optional.ofNullable(this.availabilityZone); } - /** - * Human-readable description for the Loadbalancer. - * - */ @Import(name="description") private @Nullable Output description; - /** - * @return Human-readable description for the Loadbalancer. - * - */ public Optional> description() { return Optional.ofNullable(this.description); } - /** - * The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - */ @Import(name="flavorId") private @Nullable Output flavorId; - /** - * @return The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - */ public Optional> flavorId() { return Optional.ofNullable(this.flavorId); } - /** - * The name of the provider. Changing this - * creates a new loadbalancer. - * - */ @Import(name="loadbalancerProvider") private @Nullable Output loadbalancerProvider; - /** - * @return The name of the provider. Changing this - * creates a new loadbalancer. - * - */ public Optional> loadbalancerProvider() { return Optional.ofNullable(this.loadbalancerProvider); } - /** - * Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - */ @Import(name="name") private @Nullable Output name; - /** - * @return Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - */ public Optional> name() { return Optional.ofNullable(this.name); } - /** - * The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - */ @Import(name="region") private @Nullable Output region; - /** - * @return The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - */ public Optional> region() { return Optional.ofNullable(this.region); } - /** - * A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - */ @Import(name="securityGroupIds") private @Nullable Output> securityGroupIds; - /** - * @return A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - */ public Optional>> securityGroupIds() { return Optional.ofNullable(this.securityGroupIds); } - /** - * A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - */ @Import(name="tags") private @Nullable Output> tags; - /** - * @return A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - */ public Optional>> tags() { return Optional.ofNullable(this.tags); } - /** - * Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - */ @Import(name="tenantId") private @Nullable Output tenantId; - /** - * @return Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - */ public Optional> tenantId() { return Optional.ofNullable(this.tenantId); } - /** - * The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - */ @Import(name="vipAddress") private @Nullable Output vipAddress; - /** - * @return The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - */ public Optional> vipAddress() { return Optional.ofNullable(this.vipAddress); } - /** - * The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - */ @Import(name="vipNetworkId") private @Nullable Output vipNetworkId; - /** - * @return The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - */ public Optional> vipNetworkId() { return Optional.ofNullable(this.vipNetworkId); } - /** - * The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - */ @Import(name="vipPortId") private @Nullable Output vipPortId; - /** - * @return The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - */ public Optional> vipPortId() { return Optional.ofNullable(this.vipPortId); } - /** - * The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - */ @Import(name="vipSubnetId") private @Nullable Output vipSubnetId; - /** - * @return The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - */ public Optional> vipSubnetId() { return Optional.ofNullable(this.vipSubnetId); } @@ -312,367 +152,136 @@ public Builder(LoadBalancerState defaults) { $ = new LoadBalancerState(Objects.requireNonNull(defaults)); } - /** - * @param adminStateUp The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - * @return builder - * - */ public Builder adminStateUp(@Nullable Output adminStateUp) { $.adminStateUp = adminStateUp; return this; } - /** - * @param adminStateUp The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - * - * @return builder - * - */ public Builder adminStateUp(Boolean adminStateUp) { return adminStateUp(Output.of(adminStateUp)); } - /** - * @param availabilityZone The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - * @return builder - * - */ public Builder availabilityZone(@Nullable Output availabilityZone) { $.availabilityZone = availabilityZone; return this; } - /** - * @param availabilityZone The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - * - * @return builder - * - */ public Builder availabilityZone(String availabilityZone) { return availabilityZone(Output.of(availabilityZone)); } - /** - * @param description Human-readable description for the Loadbalancer. - * - * @return builder - * - */ public Builder description(@Nullable Output description) { $.description = description; return this; } - /** - * @param description Human-readable description for the Loadbalancer. - * - * @return builder - * - */ public Builder description(String description) { return description(Output.of(description)); } - /** - * @param flavorId The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - * @return builder - * - */ public Builder flavorId(@Nullable Output flavorId) { $.flavorId = flavorId; return this; } - /** - * @param flavorId The UUID of a flavor. Changing this creates a new - * loadbalancer. - * - * @return builder - * - */ public Builder flavorId(String flavorId) { return flavorId(Output.of(flavorId)); } - /** - * @param loadbalancerProvider The name of the provider. Changing this - * creates a new loadbalancer. - * - * @return builder - * - */ public Builder loadbalancerProvider(@Nullable Output loadbalancerProvider) { $.loadbalancerProvider = loadbalancerProvider; return this; } - /** - * @param loadbalancerProvider The name of the provider. Changing this - * creates a new loadbalancer. - * - * @return builder - * - */ public Builder loadbalancerProvider(String loadbalancerProvider) { return loadbalancerProvider(Output.of(loadbalancerProvider)); } - /** - * @param name Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - * @return builder - * - */ public Builder name(@Nullable Output name) { $.name = name; return this; } - /** - * @param name Human-readable name for the Loadbalancer. Does not have - * to be unique. - * - * @return builder - * - */ public Builder name(String name) { return name(Output.of(name)); } - /** - * @param region The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - * @return builder - * - */ public Builder region(@Nullable Output region) { $.region = region; return this; } - /** - * @param region The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - * - * @return builder - * - */ public Builder region(String region) { return region(Output.of(region)); } - /** - * @param securityGroupIds A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - * @return builder - * - */ public Builder securityGroupIds(@Nullable Output> securityGroupIds) { $.securityGroupIds = securityGroupIds; return this; } - /** - * @param securityGroupIds A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - * @return builder - * - */ public Builder securityGroupIds(List securityGroupIds) { return securityGroupIds(Output.of(securityGroupIds)); } - /** - * @param securityGroupIds A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - * - * @return builder - * - */ public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } - /** - * @param tags A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - * @return builder - * - */ public Builder tags(@Nullable Output> tags) { $.tags = tags; return this; } - /** - * @param tags A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - * @return builder - * - */ public Builder tags(List tags) { return tags(Output.of(tags)); } - /** - * @param tags A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - * - * @return builder - * - */ public Builder tags(String... tags) { return tags(List.of(tags)); } - /** - * @param tenantId Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder tenantId(@Nullable Output tenantId) { $.tenantId = tenantId; return this; } - /** - * @param tenantId Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder tenantId(String tenantId) { return tenantId(Output.of(tenantId)); } - /** - * @param vipAddress The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder vipAddress(@Nullable Output vipAddress) { $.vipAddress = vipAddress; return this; } - /** - * @param vipAddress The ip address of the load balancer. - * Changing this creates a new loadbalancer. - * - * @return builder - * - */ public Builder vipAddress(String vipAddress) { return vipAddress(Output.of(vipAddress)); } - /** - * @param vipNetworkId The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - * @return builder - * - */ public Builder vipNetworkId(@Nullable Output vipNetworkId) { $.vipNetworkId = vipNetworkId; return this; } - /** - * @param vipNetworkId The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - * - * @return builder - * - */ public Builder vipNetworkId(String vipNetworkId) { return vipNetworkId(Output.of(vipNetworkId)); } - /** - * @param vipPortId The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - * @return builder - * - */ public Builder vipPortId(@Nullable Output vipPortId) { $.vipPortId = vipPortId; return this; } - /** - * @param vipPortId The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - * - * @return builder - * - */ public Builder vipPortId(String vipPortId) { return vipPortId(Output.of(vipPortId)); } - /** - * @param vipSubnetId The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - * @return builder - * - */ public Builder vipSubnetId(@Nullable Output vipSubnetId) { $.vipSubnetId = vipSubnetId; return this; } - /** - * @param vipSubnetId The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - * - * @return builder - * - */ public Builder vipSubnetId(String vipSubnetId) { return vipSubnetId(Output.of(vipSubnetId)); } diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/AddressScope.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/AddressScope.java index faa16d5e6..080435a02 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/AddressScope.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/AddressScope.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var addressscope1 = new AddressScope("addressscope1", AddressScopeArgs.builder() + * var addressscope1 = new AddressScope("addressscope1", AddressScopeArgs.builder() * .name("addressscope_1") * .ipVersion(6) * .build()); @@ -84,12 +84,12 @@ * } * * public static void stack(Context ctx) { - * var addressscope1 = new AddressScope("addressscope1", AddressScopeArgs.builder() + * var addressscope1 = new AddressScope("addressscope1", AddressScopeArgs.builder() * .name("addressscope_1") * .ipVersion(6) * .build()); * - * var subnetpool1 = new SubnetPool("subnetpool1", SubnetPoolArgs.builder() + * var subnetpool1 = new SubnetPool("subnetpool1", SubnetPoolArgs.builder() * .name("subnetpool_1") * .prefixes( * "fdf7:b13d:dead:beef::/64", diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/FloatingIpAssociate.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/FloatingIpAssociate.java index 87fe697a0..1baf74c5f 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/FloatingIpAssociate.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/FloatingIpAssociate.java @@ -45,11 +45,11 @@ * } * * public static void stack(Context ctx) { - * var port1 = new Port("port1", PortArgs.builder() + * var port1 = new Port("port1", PortArgs.builder() * .networkId("a5bbd213-e1d3-49b6-aed1-9df60ea94b9a") * .build()); * - * var fip1 = new FloatingIpAssociate("fip1", FloatingIpAssociateArgs.builder() + * var fip1 = new FloatingIpAssociate("fip1", FloatingIpAssociateArgs.builder() * .floatingIp("1.2.3.4") * .portId(port1.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/Network.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/Network.java index 0b3a094d8..3be4d8fae 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/Network.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/Network.java @@ -59,19 +59,19 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .networkId(network1.id()) * .cidr("192.168.199.0/24") * .ipVersion(4) * .build()); * - * var secgroup1 = new SecGroup("secgroup1", SecGroupArgs.builder() + * var secgroup1 = new SecGroup("secgroup1", SecGroupArgs.builder() * .name("secgroup_1") * .description("a security group") * .rules(SecGroupRuleArgs.builder() @@ -82,7 +82,7 @@ * .build()) * .build()); * - * var port1 = new Port("port1", PortArgs.builder() + * var port1 = new Port("port1", PortArgs.builder() * .name("port_1") * .networkId(network1.id()) * .adminStateUp("true") @@ -93,7 +93,7 @@ * .build()) * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups(secgroup1.name()) * .networks(InstanceNetworkArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/Port.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/Port.java index 275cba968..d79424417 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/Port.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/Port.java @@ -60,12 +60,12 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var port1 = new Port("port1", PortArgs.builder() + * var port1 = new Port("port1", PortArgs.builder() * .name("port_1") * .networkId(network1.id()) * .adminStateUp("true") @@ -107,18 +107,18 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .networkId(network1.id()) * .cidr("192.168.199.0/24") * .build()); * - * var port1 = new Port("port1", PortArgs.builder() + * var port1 = new Port("port1", PortArgs.builder() * .name("port_1") * .networkId(network1.id()) * .adminStateUp("true") @@ -161,12 +161,12 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var port1 = new Port("port1", PortArgs.builder() + * var port1 = new Port("port1", PortArgs.builder() * .name("port_1") * .networkId(network1.id()) * .deviceId("cdf70fcf-c161-4f24-9c70-96b3f5a54b71") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/PortForwardingV2.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/PortForwardingV2.java index af4d84ada..1b8639435 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/PortForwardingV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/PortForwardingV2.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var pf1 = new PortForwardingV2("pf1", PortForwardingV2Args.builder() + * var pf1 = new PortForwardingV2("pf1", PortForwardingV2Args.builder() * .floatingipId("7a52eb59-7d47-415d-a884-046666a6fbae") * .externalPort(7233) * .internalPort(25) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/PortSecGroupAssociate.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/PortSecGroupAssociate.java index 3c8af75a8..9704454b6 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/PortSecGroupAssociate.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/PortSecGroupAssociate.java @@ -55,7 +55,7 @@ * .name("secgroup") * .build()); * - * var port1 = new PortSecGroupAssociate("port1", PortSecGroupAssociateArgs.builder() + * var port1 = new PortSecGroupAssociate("port1", PortSecGroupAssociateArgs.builder() * .portId(systemPort.applyValue(getPortResult -> getPortResult.id())) * .securityGroupIds(secgroup.applyValue(getSecGroupResult -> getSecGroupResult.id())) * .build()); @@ -102,7 +102,7 @@ * .name("secgroup") * .build()); * - * var port1 = new PortSecGroupAssociate("port1", PortSecGroupAssociateArgs.builder() + * var port1 = new PortSecGroupAssociate("port1", PortSecGroupAssociateArgs.builder() * .portId(systemPort.applyValue(getPortResult -> getPortResult.id())) * .enforce("true") * .securityGroupIds(secgroup.applyValue(getSecGroupResult -> getSecGroupResult.id())) @@ -145,7 +145,7 @@ * .fixedIp("10.0.0.10") * .build()); * - * var port1 = new PortSecGroupAssociate("port1", PortSecGroupAssociateArgs.builder() + * var port1 = new PortSecGroupAssociate("port1", PortSecGroupAssociateArgs.builder() * .portId(systemPort.applyValue(getPortResult -> getPortResult.id())) * .enforce("true") * .securityGroupIds() diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosBandwidthLimitRule.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosBandwidthLimitRule.java index 04b8216f7..7bb92d66c 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosBandwidthLimitRule.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosBandwidthLimitRule.java @@ -47,12 +47,12 @@ * } * * public static void stack(Context ctx) { - * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() + * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() * .name("qos_policy_1") * .description("bw_limit") * .build()); * - * var bwLimitRule1 = new QosBandwidthLimitRule("bwLimitRule1", QosBandwidthLimitRuleArgs.builder() + * var bwLimitRule1 = new QosBandwidthLimitRule("bwLimitRule1", QosBandwidthLimitRuleArgs.builder() * .qosPolicyId(qosPolicy1.id()) * .maxKbps(3000) * .maxBurstKbps(300) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosDscpMarkingRule.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosDscpMarkingRule.java index 0e48a3fd8..7baffdbee 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosDscpMarkingRule.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosDscpMarkingRule.java @@ -46,12 +46,12 @@ * } * * public static void stack(Context ctx) { - * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() + * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() * .name("qos_policy_1") * .description("dscp_mark") * .build()); * - * var dscpMarkingRule1 = new QosDscpMarkingRule("dscpMarkingRule1", QosDscpMarkingRuleArgs.builder() + * var dscpMarkingRule1 = new QosDscpMarkingRule("dscpMarkingRule1", QosDscpMarkingRuleArgs.builder() * .qosPolicyId(qosPolicy1.id()) * .dscpMark(26) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosMinimumBandwidthRule.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosMinimumBandwidthRule.java index 34ffee4ec..f30a6e059 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosMinimumBandwidthRule.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosMinimumBandwidthRule.java @@ -47,12 +47,12 @@ * } * * public static void stack(Context ctx) { - * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() + * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() * .name("qos_policy_1") * .description("min_kbps") * .build()); * - * var minimumBandwidthRule1 = new QosMinimumBandwidthRule("minimumBandwidthRule1", QosMinimumBandwidthRuleArgs.builder() + * var minimumBandwidthRule1 = new QosMinimumBandwidthRule("minimumBandwidthRule1", QosMinimumBandwidthRuleArgs.builder() * .qosPolicyId(qosPolicy1.id()) * .minKbps(200) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosPolicy.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosPolicy.java index e5fe430a9..7b99881f0 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/QosPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/QosPolicy.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() + * var qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() * .name("qos_policy_1") * .description("bw_limit") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/RbacPolicyV2.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/RbacPolicyV2.java index 81eaab83a..ee8a26282 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/RbacPolicyV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/RbacPolicyV2.java @@ -55,12 +55,12 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var rbacPolicy1 = new RbacPolicyV2("rbacPolicy1", RbacPolicyV2Args.builder() + * var rbacPolicy1 = new RbacPolicyV2("rbacPolicy1", RbacPolicyV2Args.builder() * .action("access_as_shared") * .objectId(network1.id()) * .objectType("network") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/Router.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/Router.java index 1b12e465d..dbce0f2a0 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/Router.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/Router.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var router1 = new Router("router1", RouterArgs.builder() + * var router1 = new Router("router1", RouterArgs.builder() * .name("my_router") * .adminStateUp(true) * .externalNetworkId("f67f0d72-0ddf-11e4-9d95-e1f29f417e2f") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterInterface.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterInterface.java index dbcba32b6..edf2d6d54 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterInterface.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterInterface.java @@ -49,23 +49,23 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("tf_test_network") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .networkId(network1.id()) * .cidr("192.168.199.0/24") * .ipVersion(4) * .build()); * - * var router1 = new Router("router1", RouterArgs.builder() + * var router1 = new Router("router1", RouterArgs.builder() * .name("my_router") * .externalNetworkId("f67f0d72-0ddf-11e4-9d95-e1f29f417e2f") * .build()); * - * var routerInterface1 = new RouterInterface("routerInterface1", RouterInterfaceArgs.builder() + * var routerInterface1 = new RouterInterface("routerInterface1", RouterInterfaceArgs.builder() * .routerId(router1.id()) * .subnetId(subnet1.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterRoute.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterRoute.java index 9ba56cdd6..eadd798e1 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterRoute.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/RouterRoute.java @@ -50,28 +50,28 @@ * } * * public static void stack(Context ctx) { - * var router1 = new Router("router1", RouterArgs.builder() + * var router1 = new Router("router1", RouterArgs.builder() * .name("router_1") * .adminStateUp("true") * .build()); * - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .networkId(network1.id()) * .cidr("192.168.199.0/24") * .ipVersion(4) * .build()); * - * var int1 = new RouterInterface("int1", RouterInterfaceArgs.builder() + * var int1 = new RouterInterface("int1", RouterInterfaceArgs.builder() * .routerId(router1.id()) * .subnetId(subnet1.id()) * .build()); * - * var routerRoute1 = new RouterRoute("routerRoute1", RouterRouteArgs.builder() + * var routerRoute1 = new RouterRoute("routerRoute1", RouterRouteArgs.builder() * .routerId(router1.id()) * .destinationCidr("10.0.1.0/24") * .nextHop("192.168.199.254") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/SecGroupRule.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/SecGroupRule.java index d2d1b25e1..a8abf9658 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/SecGroupRule.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/SecGroupRule.java @@ -47,12 +47,12 @@ * } * * public static void stack(Context ctx) { - * var secgroup1 = new SecGroup("secgroup1", SecGroupArgs.builder() + * var secgroup1 = new SecGroup("secgroup1", SecGroupArgs.builder() * .name("secgroup_1") * .description("My neutron security group") * .build()); * - * var secgroupRule1 = new SecGroupRule("secgroupRule1", SecGroupRuleArgs.builder() + * var secgroupRule1 = new SecGroupRule("secgroupRule1", SecGroupRuleArgs.builder() * .direction("ingress") * .ethertype("IPv4") * .protocol("tcp") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/Subnet.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/Subnet.java index 439b5cdc3..09932c6b6 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/Subnet.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/Subnet.java @@ -50,12 +50,12 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("tf_test_network") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .networkId(network1.id()) * .cidr("192.168.199.0/24") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetPool.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetPool.java index 506621895..214330ae4 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetPool.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetPool.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var subnetpool1 = new SubnetPool("subnetpool1", SubnetPoolArgs.builder() + * var subnetpool1 = new SubnetPool("subnetpool1", SubnetPoolArgs.builder() * .name("subnetpool_1") * .ipVersion(6) * .prefixes( @@ -92,17 +92,17 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnetpool1 = new SubnetPool("subnetpool1", SubnetPoolArgs.builder() + * var subnetpool1 = new SubnetPool("subnetpool1", SubnetPoolArgs.builder() * .name("subnetpool_1") * .prefixes("10.11.12.0/24") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("10.11.12.0/25") * .networkId(network1.id()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetRoute.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetRoute.java index b137a0a1f..b5de38c91 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetRoute.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/SubnetRoute.java @@ -47,23 +47,23 @@ * } * * public static void stack(Context ctx) { - * var router1 = new Router("router1", RouterArgs.builder() + * var router1 = new Router("router1", RouterArgs.builder() * .name("router_1") * .adminStateUp("true") * .build()); * - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .networkId(network1.id()) * .cidr("192.168.199.0/24") * .ipVersion(4) * .build()); * - * var subnetRoute1 = new SubnetRoute("subnetRoute1", SubnetRouteArgs.builder() + * var subnetRoute1 = new SubnetRoute("subnetRoute1", SubnetRouteArgs.builder() * .subnetId(subnet1.id()) * .destinationCidr("10.0.1.0/24") * .nextHop("192.168.199.254") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/networking/Trunk.java b/sdk/java/src/main/java/com/pulumi/openstack/networking/Trunk.java index ed9fee4f2..5991a2f86 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/networking/Trunk.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/networking/Trunk.java @@ -56,12 +56,12 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .networkId(network1.id()) * .cidr("192.168.1.0/24") @@ -70,7 +70,7 @@ * .noGateway(true) * .build()); * - * var parentPort1 = new Port("parentPort1", PortArgs.builder() + * var parentPort1 = new Port("parentPort1", PortArgs.builder() * .name("parent_port_1") * .networkId(network1.id()) * .adminStateUp("true") @@ -78,7 +78,7 @@ * .dependsOn(subnet1) * .build()); * - * var subport1 = new Port("subport1", PortArgs.builder() + * var subport1 = new Port("subport1", PortArgs.builder() * .name("subport_1") * .networkId(network1.id()) * .adminStateUp("true") @@ -86,7 +86,7 @@ * .dependsOn(subnet1) * .build()); * - * var trunk1 = new Trunk("trunk1", TrunkArgs.builder() + * var trunk1 = new Trunk("trunk1", TrunkArgs.builder() * .name("trunk_1") * .adminStateUp("true") * .portId(parentPort1.id()) @@ -97,7 +97,7 @@ * .build()) * .build()); * - * var instance1 = new Instance("instance1", InstanceArgs.builder() + * var instance1 = new Instance("instance1", InstanceArgs.builder() * .name("instance_1") * .securityGroups("default") * .networks(InstanceNetworkArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/Container.java b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/Container.java index acabf7629..8c30a3787 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/Container.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/Container.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .metadata(Map.of("test", "true")) @@ -88,7 +88,7 @@ * } * * public static void stack(Context ctx) { - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .metadata(Map.of("test", "true")) @@ -131,7 +131,7 @@ * * public static void stack(Context ctx) { * // Requires that a user know the object name they are attempting to download - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .containerRead(".r:*") @@ -169,7 +169,7 @@ * * public static void stack(Context ctx) { * // Any user can read any object, and list all objects in the container - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .containerRead(".r:*,.rlistings") @@ -213,7 +213,7 @@ * .build()); * * // The named user can only upload objects, not read objects or list the container - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .containerRead(String.format(".r:-%s", username)) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/ContainerObject.java b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/ContainerObject.java index 0ac8e2522..4826dd1c2 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/ContainerObject.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/ContainerObject.java @@ -50,14 +50,14 @@ * } * * public static void stack(Context ctx) { - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .metadata(Map.of("test", "true")) * .contentType("application/json") * .build()); * - * var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder() + * var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder() * .region("RegionOne") * .containerName(container1.name()) * .name("test/default.json") @@ -103,14 +103,14 @@ * } * * public static void stack(Context ctx) { - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .region("RegionOne") * .name("tf-test-container-1") * .metadata(Map.of("test", "true")) * .contentType("application/json") * .build()); * - * var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder() + * var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder() * .region("RegionOne") * .containerName(container1.name()) * .name("test/default.json") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/TempUrl.java b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/TempUrl.java index cd1ab755c..520f0d5c9 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/TempUrl.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/TempUrl.java @@ -55,18 +55,18 @@ * } * * public static void stack(Context ctx) { - * var container1 = new Container("container1", ContainerArgs.builder() + * var container1 = new Container("container1", ContainerArgs.builder() * .name("test") * .metadata(Map.of("Temp-URL-Key", "testkey")) * .build()); * - * var object1 = new ContainerObject("object1", ContainerObjectArgs.builder() + * var object1 = new ContainerObject("object1", ContainerObjectArgs.builder() * .containerName(container1.name()) * .name("test") * .content("Hello, world!") * .build()); * - * var objTempurl = new TempUrl("objTempurl", TempUrlArgs.builder() + * var objTempurl = new TempUrl("objTempurl", TempUrlArgs.builder() * .container(container1.name()) * .object(object1.name()) * .method("post") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/inputs/ContainerVersioningLegacyArgs.java b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/inputs/ContainerVersioningLegacyArgs.java index 589ef3a7a..3767721b8 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/inputs/ContainerVersioningLegacyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/inputs/ContainerVersioningLegacyArgs.java @@ -14,16 +14,32 @@ public final class ContainerVersioningLegacyArgs extends com.pulumi.resources.Re public static final ContainerVersioningLegacyArgs Empty = new ContainerVersioningLegacyArgs(); + /** + * Container in which versions will be stored. + * + */ @Import(name="location", required=true) private Output location; + /** + * @return Container in which versions will be stored. + * + */ public Output location() { return this.location; } + /** + * Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + * + */ @Import(name="type", required=true) private Output type; + /** + * @return Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + * + */ public Output type() { return this.type; } @@ -53,20 +69,44 @@ public Builder(ContainerVersioningLegacyArgs defaults) { $ = new ContainerVersioningLegacyArgs(Objects.requireNonNull(defaults)); } + /** + * @param location Container in which versions will be stored. + * + * @return builder + * + */ public Builder location(Output location) { $.location = location; return this; } + /** + * @param location Container in which versions will be stored. + * + * @return builder + * + */ public Builder location(String location) { return location(Output.of(location)); } + /** + * @param type Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + * + * @return builder + * + */ public Builder type(Output type) { $.type = type; return this; } + /** + * @param type Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + * + * @return builder + * + */ public Builder type(String type) { return type(Output.of(type)); } diff --git a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/outputs/ContainerVersioningLegacy.java b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/outputs/ContainerVersioningLegacy.java index bfd57bf7b..472854ce1 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/outputs/ContainerVersioningLegacy.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/objectstorage/outputs/ContainerVersioningLegacy.java @@ -10,13 +10,29 @@ @CustomType public final class ContainerVersioningLegacy { + /** + * @return Container in which versions will be stored. + * + */ private String location; + /** + * @return Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + * + */ private String type; private ContainerVersioningLegacy() {} + /** + * @return Container in which versions will be stored. + * + */ public String location() { return this.location; } + /** + * @return Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + * + */ public String type() { return this.type; } diff --git a/sdk/java/src/main/java/com/pulumi/openstack/orchestration/StackV1.java b/sdk/java/src/main/java/com/pulumi/openstack/orchestration/StackV1.java index 72cb48466..1a8a5be79 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/orchestration/StackV1.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/orchestration/StackV1.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var stack1 = new StackV1("stack1", StackV1Args.builder() + * var stack1 = new StackV1("stack1", StackV1Args.builder() * .name("stack_1") * .parameters(Map.of("length", 4)) * .templateOpts(Map.of("Bin", """ diff --git a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/SecurityService.java b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/SecurityService.java index 2409faa14..5dd179ce7 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/SecurityService.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/SecurityService.java @@ -54,7 +54,7 @@ * } * * public static void stack(Context ctx) { - * var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder() + * var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder() * .name("security") * .description("created by terraform") * .type("active_directory") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/Share.java b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/Share.java index 311ff1457..89aa61841 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/Share.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/Share.java @@ -54,26 +54,26 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() + * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() * .name("test_sharenetwork") * .description("test share network with security services") * .neutronNetId(network1.id()) * .neutronSubnetId(subnet1.id()) * .build()); * - * var share1 = new Share("share1", ShareArgs.builder() + * var share1 = new Share("share1", ShareArgs.builder() * .name("nfs_share") * .description("test share description") * .shareProto("NFS") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareAccess.java b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareAccess.java index 24bd676a9..4c9dd82e2 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareAccess.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareAccess.java @@ -50,26 +50,26 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() + * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() * .name("test_sharenetwork") * .description("test share network with security services") * .neutronNetId(network1.id()) * .neutronSubnetId(subnet1.id()) * .build()); * - * var share1 = new Share("share1", ShareArgs.builder() + * var share1 = new Share("share1", ShareArgs.builder() * .name("nfs_share") * .description("test share description") * .shareProto("NFS") @@ -77,7 +77,7 @@ * .shareNetworkId(sharenetwork1.id()) * .build()); * - * var shareAccess1 = new ShareAccess("shareAccess1", ShareAccessArgs.builder() + * var shareAccess1 = new ShareAccess("shareAccess1", ShareAccessArgs.builder() * .shareId(share1.id()) * .accessType("ip") * .accessTo("192.168.199.10") @@ -125,19 +125,19 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder() + * var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder() * .name("security") * .description("created by terraform") * .type("active_directory") @@ -149,7 +149,7 @@ * .password("s8cret") * .build()); * - * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() + * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() * .name("test_sharenetwork_secure") * .description("share the secure love") * .neutronNetId(network1.id()) @@ -157,21 +157,21 @@ * .securityServiceIds(securityservice1.id()) * .build()); * - * var share1 = new Share("share1", ShareArgs.builder() + * var share1 = new Share("share1", ShareArgs.builder() * .name("cifs_share") * .shareProto("CIFS") * .size(1) * .shareNetworkId(sharenetwork1.id()) * .build()); * - * var shareAccess1 = new ShareAccess("shareAccess1", ShareAccessArgs.builder() + * var shareAccess1 = new ShareAccess("shareAccess1", ShareAccessArgs.builder() * .shareId(share1.id()) * .accessType("user") * .accessTo("windows") * .accessLevel("ro") * .build()); * - * var shareAccess2 = new ShareAccess("shareAccess2", ShareAccessArgs.builder() + * var shareAccess2 = new ShareAccess("shareAccess2", ShareAccessArgs.builder() * .shareId(share1.id()) * .accessType("user") * .accessTo("linux") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareNetwork.java b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareNetwork.java index 572ab41cf..079c58677 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/sharedfilesystem/ShareNetwork.java @@ -53,19 +53,19 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() + * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() * .name("test_sharenetwork") * .description("test share network") * .neutronNetId(network1.id()) @@ -109,19 +109,19 @@ * } * * public static void stack(Context ctx) { - * var network1 = new Network("network1", NetworkArgs.builder() + * var network1 = new Network("network1", NetworkArgs.builder() * .name("network_1") * .adminStateUp("true") * .build()); * - * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() + * var subnet1 = new Subnet("subnet1", SubnetArgs.builder() * .name("subnet_1") * .cidr("192.168.199.0/24") * .ipVersion(4) * .networkId(network1.id()) * .build()); * - * var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder() + * var securityservice1 = new SecurityService("securityservice1", SecurityServiceArgs.builder() * .name("security") * .description("created by terraform") * .type("active_directory") @@ -133,7 +133,7 @@ * .password("s8cret") * .build()); * - * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() + * var sharenetwork1 = new ShareNetwork("sharenetwork1", ShareNetworkArgs.builder() * .name("test_sharenetwork") * .description("test share network with security services") * .neutronNetId(network1.id()) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/EndpointGroup.java b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/EndpointGroup.java index 3ea08c44e..80789bec2 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/EndpointGroup.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/EndpointGroup.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var group1 = new EndpointGroup("group1", EndpointGroupArgs.builder() + * var group1 = new EndpointGroup("group1", EndpointGroupArgs.builder() * .name("Group 1") * .type("cidr") * .endpoints( diff --git a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IkePolicy.java b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IkePolicy.java index 464d42773..4a62695bc 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IkePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IkePolicy.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var policy1 = new IkePolicy("policy1", IkePolicyArgs.builder() + * var policy1 = new IkePolicy("policy1", IkePolicyArgs.builder() * .name("my_policy") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IpSecPolicy.java b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IpSecPolicy.java index e8d2c41cc..a79e97f69 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IpSecPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/IpSecPolicy.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var policy1 = new IpSecPolicy("policy1", IpSecPolicyArgs.builder() + * var policy1 = new IpSecPolicy("policy1", IpSecPolicyArgs.builder() * .name("my_policy") * .build()); * diff --git a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/Service.java b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/Service.java index 8c7e812a1..13383773f 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/Service.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/Service.java @@ -45,7 +45,7 @@ * } * * public static void stack(Context ctx) { - * var service1 = new Service("service1", ServiceArgs.builder() + * var service1 = new Service("service1", ServiceArgs.builder() * .name("my_service") * .routerId("14a75700-fc03-4602-9294-26ee44f366b3") * .adminStateUp("true") diff --git a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/SiteConnection.java b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/SiteConnection.java index 6171fea90..01b272877 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/SiteConnection.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/vpnaas/SiteConnection.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var conn1 = new SiteConnection("conn1", SiteConnectionArgs.builder() + * var conn1 = new SiteConnection("conn1", SiteConnectionArgs.builder() * .name("connection_1") * .ikepolicyId(policy2.id()) * .ipsecpolicyId(policy1.id()) diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 59b49dacf..600f57238 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -20,6 +20,11 @@ export const getFwRuleV2: typeof import("./getFwRuleV2").getFwRuleV2 = null as a export const getFwRuleV2Output: typeof import("./getFwRuleV2").getFwRuleV2Output = null as any; utilities.lazyLoad(exports, ["getFwRuleV2","getFwRuleV2Output"], () => require("./getFwRuleV2")); +export { LbLoadbalancerV2Args, LbLoadbalancerV2State } from "./lbLoadbalancerV2"; +export type LbLoadbalancerV2 = import("./lbLoadbalancerV2").LbLoadbalancerV2; +export const LbLoadbalancerV2: typeof import("./lbLoadbalancerV2").LbLoadbalancerV2 = null as any; +utilities.lazyLoad(exports, ["LbLoadbalancerV2"], () => require("./lbLoadbalancerV2")); + export { ProviderArgs } from "./provider"; export type Provider = import("./provider").Provider; export const Provider: typeof import("./provider").Provider = null as any; @@ -64,6 +69,19 @@ export { types, vpnaas, }; + +const _module = { + version: utilities.getVersion(), + construct: (name: string, type: string, urn: string): pulumi.Resource => { + switch (type) { + case "openstack:index/lbLoadbalancerV2:LbLoadbalancerV2": + return new LbLoadbalancerV2(name, undefined, { urn }) + default: + throw new Error(`unknown resource type ${type}`); + } + }, +}; +pulumi.runtime.registerResourceModule("openstack", "index/lbLoadbalancerV2", _module) pulumi.runtime.registerResourcePackage("openstack", { version: utilities.getVersion(), constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => { diff --git a/sdk/nodejs/keymanager/containerV1.ts b/sdk/nodejs/keymanager/containerV1.ts index 1ca0ba94c..8a0329768 100644 --- a/sdk/nodejs/keymanager/containerV1.ts +++ b/sdk/nodejs/keymanager/containerV1.ts @@ -65,7 +65,7 @@ import * as utilities from "../utilities"; * const subnet1 = openstack.networking.getSubnet({ * name: "my-subnet", * }); - * const lb1 = new openstack.loadbalancer.LoadBalancer("lb_1", { + * const lb1 = new openstack.LbLoadbalancerV2("lb_1", { * name: "loadbalancer", * vipSubnetId: subnet1.then(subnet1 => subnet1.id), * }); diff --git a/sdk/nodejs/lbLoadbalancerV2.ts b/sdk/nodejs/lbLoadbalancerV2.ts new file mode 100644 index 000000000..00d8a9068 --- /dev/null +++ b/sdk/nodejs/lbLoadbalancerV2.ts @@ -0,0 +1,360 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Manages a V2 loadbalancer resource within OpenStack. + * + * > **Note:** This resource has attributes that depend on octavia minor versions. + * Please ensure your Openstack cloud supports the required minor version. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as openstack from "@pulumi/openstack"; + * + * const lb1 = new openstack.LbLoadbalancerV2("lb_1", {vipSubnetId: "d9415786-5f1a-428b-b35f-2f1523e146d2"}); + * ``` + * + * ## Import + * + * Load Balancer can be imported using the Load Balancer ID, e.g.: + * + * ```sh + * $ pulumi import openstack:index/lbLoadbalancerV2:LbLoadbalancerV2 loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 + * ``` + */ +export class LbLoadbalancerV2 extends pulumi.CustomResource { + /** + * Get an existing LbLoadbalancerV2 resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: LbLoadbalancerV2State, opts?: pulumi.CustomResourceOptions): LbLoadbalancerV2 { + return new LbLoadbalancerV2(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'openstack:index/lbLoadbalancerV2:LbLoadbalancerV2'; + + /** + * Returns true if the given object is an instance of LbLoadbalancerV2. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is LbLoadbalancerV2 { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === LbLoadbalancerV2.__pulumiType; + } + + /** + * The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + */ + public readonly adminStateUp!: pulumi.Output; + /** + * The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + */ + public readonly availabilityZone!: pulumi.Output; + /** + * Human-readable description for the Loadbalancer. + */ + public readonly description!: pulumi.Output; + /** + * The UUID of a flavor. Changing this creates a new + * loadbalancer. + */ + public readonly flavorId!: pulumi.Output; + /** + * The name of the provider. Changing this + * creates a new loadbalancer. + */ + public readonly loadbalancerProvider!: pulumi.Output; + /** + * Human-readable name for the Loadbalancer. Does not have + * to be unique. + */ + public readonly name!: pulumi.Output; + /** + * The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + */ + public readonly region!: pulumi.Output; + /** + * A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + */ + public readonly securityGroupIds!: pulumi.Output; + /** + * A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + */ + public readonly tags!: pulumi.Output; + /** + * Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + */ + public readonly tenantId!: pulumi.Output; + /** + * The ip address of the load balancer. + * Changing this creates a new loadbalancer. + */ + public readonly vipAddress!: pulumi.Output; + /** + * The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + */ + public readonly vipNetworkId!: pulumi.Output; + /** + * The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + */ + public readonly vipPortId!: pulumi.Output; + /** + * The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + */ + public readonly vipSubnetId!: pulumi.Output; + + /** + * Create a LbLoadbalancerV2 resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args?: LbLoadbalancerV2Args, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: LbLoadbalancerV2Args | LbLoadbalancerV2State, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as LbLoadbalancerV2State | undefined; + resourceInputs["adminStateUp"] = state ? state.adminStateUp : undefined; + resourceInputs["availabilityZone"] = state ? state.availabilityZone : undefined; + resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["flavorId"] = state ? state.flavorId : undefined; + resourceInputs["loadbalancerProvider"] = state ? state.loadbalancerProvider : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["region"] = state ? state.region : undefined; + resourceInputs["securityGroupIds"] = state ? state.securityGroupIds : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["tenantId"] = state ? state.tenantId : undefined; + resourceInputs["vipAddress"] = state ? state.vipAddress : undefined; + resourceInputs["vipNetworkId"] = state ? state.vipNetworkId : undefined; + resourceInputs["vipPortId"] = state ? state.vipPortId : undefined; + resourceInputs["vipSubnetId"] = state ? state.vipSubnetId : undefined; + } else { + const args = argsOrState as LbLoadbalancerV2Args | undefined; + resourceInputs["adminStateUp"] = args ? args.adminStateUp : undefined; + resourceInputs["availabilityZone"] = args ? args.availabilityZone : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["flavorId"] = args ? args.flavorId : undefined; + resourceInputs["loadbalancerProvider"] = args ? args.loadbalancerProvider : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["region"] = args ? args.region : undefined; + resourceInputs["securityGroupIds"] = args ? args.securityGroupIds : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["tenantId"] = args ? args.tenantId : undefined; + resourceInputs["vipAddress"] = args ? args.vipAddress : undefined; + resourceInputs["vipNetworkId"] = args ? args.vipNetworkId : undefined; + resourceInputs["vipPortId"] = args ? args.vipPortId : undefined; + resourceInputs["vipSubnetId"] = args ? args.vipSubnetId : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const aliasOpts = { aliases: [{ type: "openstack:loadbalancer/loadBalancer:LoadBalancer" }] }; + opts = pulumi.mergeOptions(opts, aliasOpts); + super(LbLoadbalancerV2.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering LbLoadbalancerV2 resources. + */ +export interface LbLoadbalancerV2State { + /** + * The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + */ + adminStateUp?: pulumi.Input; + /** + * The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + */ + availabilityZone?: pulumi.Input; + /** + * Human-readable description for the Loadbalancer. + */ + description?: pulumi.Input; + /** + * The UUID of a flavor. Changing this creates a new + * loadbalancer. + */ + flavorId?: pulumi.Input; + /** + * The name of the provider. Changing this + * creates a new loadbalancer. + */ + loadbalancerProvider?: pulumi.Input; + /** + * Human-readable name for the Loadbalancer. Does not have + * to be unique. + */ + name?: pulumi.Input; + /** + * The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + */ + region?: pulumi.Input; + /** + * A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + */ + securityGroupIds?: pulumi.Input[]>; + /** + * A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + */ + tags?: pulumi.Input[]>; + /** + * Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + */ + tenantId?: pulumi.Input; + /** + * The ip address of the load balancer. + * Changing this creates a new loadbalancer. + */ + vipAddress?: pulumi.Input; + /** + * The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + */ + vipNetworkId?: pulumi.Input; + /** + * The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + */ + vipPortId?: pulumi.Input; + /** + * The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + */ + vipSubnetId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a LbLoadbalancerV2 resource. + */ +export interface LbLoadbalancerV2Args { + /** + * The administrative state of the Loadbalancer. + * A valid value is true (UP) or false (DOWN). + */ + adminStateUp?: pulumi.Input; + /** + * The availability zone of the Loadbalancer. + * Changing this creates a new loadbalancer. Available only for Octavia + * **minor version 2.14 or later**. + */ + availabilityZone?: pulumi.Input; + /** + * Human-readable description for the Loadbalancer. + */ + description?: pulumi.Input; + /** + * The UUID of a flavor. Changing this creates a new + * loadbalancer. + */ + flavorId?: pulumi.Input; + /** + * The name of the provider. Changing this + * creates a new loadbalancer. + */ + loadbalancerProvider?: pulumi.Input; + /** + * Human-readable name for the Loadbalancer. Does not have + * to be unique. + */ + name?: pulumi.Input; + /** + * The region in which to obtain the V2 Networking client. + * A Networking client is needed to create an LB member. If omitted, the + * `region` argument of the provider is used. Changing this creates a new + * LB member. + */ + region?: pulumi.Input; + /** + * A list of security group IDs to apply to the + * loadbalancer. The security groups must be specified by ID and not name (as + * opposed to how they are configured with the Compute Instance). + */ + securityGroupIds?: pulumi.Input[]>; + /** + * A list of simple strings assigned to the loadbalancer. + * Available only for Octavia **minor version 2.5 or later**. + */ + tags?: pulumi.Input[]>; + /** + * Required for admins. The UUID of the tenant who owns + * the Loadbalancer. Only administrative users can specify a tenant UUID + * other than their own. Changing this creates a new loadbalancer. + */ + tenantId?: pulumi.Input; + /** + * The ip address of the load balancer. + * Changing this creates a new loadbalancer. + */ + vipAddress?: pulumi.Input; + /** + * The network on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is available only for Octavia. + */ + vipNetworkId?: pulumi.Input; + /** + * The port UUID that the loadbalancer will use. + * Changing this creates a new loadbalancer. It is available only for Octavia. + */ + vipPortId?: pulumi.Input; + /** + * The subnet on which to allocate the + * Loadbalancer's address. A tenant can only create Loadbalancers on networks + * authorized by policy (e.g. networks that belong to them or networks that + * are shared). Changing this creates a new loadbalancer. + * It is required to Neutron LBaaS but optional for Octavia. + */ + vipSubnetId?: pulumi.Input; +} diff --git a/sdk/nodejs/loadbalancer/l7policyV2.ts b/sdk/nodejs/loadbalancer/l7policyV2.ts index 86c2b2d36..5e7c4aac1 100644 --- a/sdk/nodejs/loadbalancer/l7policyV2.ts +++ b/sdk/nodejs/loadbalancer/l7policyV2.ts @@ -23,7 +23,7 @@ import * as utilities from "../utilities"; * ipVersion: 4, * networkId: network1.id, * }); - * const loadbalancer1 = new openstack.loadbalancer.LoadBalancer("loadbalancer_1", { + * const loadbalancer1 = new openstack.LbLoadbalancerV2("loadbalancer_1", { * name: "loadbalancer_1", * vipSubnetId: subnet1.id, * }); diff --git a/sdk/nodejs/loadbalancer/l7ruleV2.ts b/sdk/nodejs/loadbalancer/l7ruleV2.ts index ba0f1bf14..b2fdb91da 100644 --- a/sdk/nodejs/loadbalancer/l7ruleV2.ts +++ b/sdk/nodejs/loadbalancer/l7ruleV2.ts @@ -23,7 +23,7 @@ import * as utilities from "../utilities"; * ipVersion: 4, * networkId: network1.id, * }); - * const loadbalancer1 = new openstack.loadbalancer.LoadBalancer("loadbalancer_1", { + * const loadbalancer1 = new openstack.LbLoadbalancerV2("loadbalancer_1", { * name: "loadbalancer_1", * vipSubnetId: subnet1.id, * }); diff --git a/sdk/nodejs/loadbalancer/loadBalancer.ts b/sdk/nodejs/loadbalancer/loadBalancer.ts index 7b57b8954..41221af5e 100644 --- a/sdk/nodejs/loadbalancer/loadBalancer.ts +++ b/sdk/nodejs/loadbalancer/loadBalancer.ts @@ -5,27 +5,7 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** - * Manages a V2 loadbalancer resource within OpenStack. - * - * > **Note:** This resource has attributes that depend on octavia minor versions. - * Please ensure your Openstack cloud supports the required minor version. - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as openstack from "@pulumi/openstack"; - * - * const lb1 = new openstack.loadbalancer.LoadBalancer("lb_1", {vipSubnetId: "d9415786-5f1a-428b-b35f-2f1523e146d2"}); - * ``` - * - * ## Import - * - * Load Balancer can be imported using the Load Balancer ID, e.g.: - * - * ```sh - * $ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 - * ``` + * @deprecated openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2 */ export class LoadBalancer extends pulumi.CustomResource { /** @@ -38,6 +18,7 @@ export class LoadBalancer extends pulumi.CustomResource { * @param opts Optional settings to control the behavior of the CustomResource. */ public static get(name: string, id: pulumi.Input, state?: LoadBalancerState, opts?: pulumi.CustomResourceOptions): LoadBalancer { + pulumi.log.warn("LoadBalancer is deprecated: openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2") return new LoadBalancer(name, state, { ...opts, id: id }); } @@ -55,85 +36,19 @@ export class LoadBalancer extends pulumi.CustomResource { return obj['__pulumiType'] === LoadBalancer.__pulumiType; } - /** - * The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - */ public readonly adminStateUp!: pulumi.Output; - /** - * The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - */ public readonly availabilityZone!: pulumi.Output; - /** - * Human-readable description for the Loadbalancer. - */ public readonly description!: pulumi.Output; - /** - * The UUID of a flavor. Changing this creates a new - * loadbalancer. - */ public readonly flavorId!: pulumi.Output; - /** - * The name of the provider. Changing this - * creates a new loadbalancer. - */ public readonly loadbalancerProvider!: pulumi.Output; - /** - * Human-readable name for the Loadbalancer. Does not have - * to be unique. - */ public readonly name!: pulumi.Output; - /** - * The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - */ public readonly region!: pulumi.Output; - /** - * A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - */ public readonly securityGroupIds!: pulumi.Output; - /** - * A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - */ public readonly tags!: pulumi.Output; - /** - * Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - */ public readonly tenantId!: pulumi.Output; - /** - * The ip address of the load balancer. - * Changing this creates a new loadbalancer. - */ public readonly vipAddress!: pulumi.Output; - /** - * The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - */ public readonly vipNetworkId!: pulumi.Output; - /** - * The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - */ public readonly vipPortId!: pulumi.Output; - /** - * The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - */ public readonly vipSubnetId!: pulumi.Output; /** @@ -143,8 +58,11 @@ export class LoadBalancer extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ + /** @deprecated openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2 */ constructor(name: string, args?: LoadBalancerArgs, opts?: pulumi.CustomResourceOptions) + /** @deprecated openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2 */ constructor(name: string, argsOrState?: LoadBalancerArgs | LoadBalancerState, opts?: pulumi.CustomResourceOptions) { + pulumi.log.warn("LoadBalancer is deprecated: openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2") let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { @@ -189,85 +107,19 @@ export class LoadBalancer extends pulumi.CustomResource { * Input properties used for looking up and filtering LoadBalancer resources. */ export interface LoadBalancerState { - /** - * The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - */ adminStateUp?: pulumi.Input; - /** - * The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - */ availabilityZone?: pulumi.Input; - /** - * Human-readable description for the Loadbalancer. - */ description?: pulumi.Input; - /** - * The UUID of a flavor. Changing this creates a new - * loadbalancer. - */ flavorId?: pulumi.Input; - /** - * The name of the provider. Changing this - * creates a new loadbalancer. - */ loadbalancerProvider?: pulumi.Input; - /** - * Human-readable name for the Loadbalancer. Does not have - * to be unique. - */ name?: pulumi.Input; - /** - * The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - */ region?: pulumi.Input; - /** - * A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - */ securityGroupIds?: pulumi.Input[]>; - /** - * A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - */ tags?: pulumi.Input[]>; - /** - * Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - */ tenantId?: pulumi.Input; - /** - * The ip address of the load balancer. - * Changing this creates a new loadbalancer. - */ vipAddress?: pulumi.Input; - /** - * The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - */ vipNetworkId?: pulumi.Input; - /** - * The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - */ vipPortId?: pulumi.Input; - /** - * The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - */ vipSubnetId?: pulumi.Input; } @@ -275,84 +127,18 @@ export interface LoadBalancerState { * The set of arguments for constructing a LoadBalancer resource. */ export interface LoadBalancerArgs { - /** - * The administrative state of the Loadbalancer. - * A valid value is true (UP) or false (DOWN). - */ adminStateUp?: pulumi.Input; - /** - * The availability zone of the Loadbalancer. - * Changing this creates a new loadbalancer. Available only for Octavia - * **minor version 2.14 or later**. - */ availabilityZone?: pulumi.Input; - /** - * Human-readable description for the Loadbalancer. - */ description?: pulumi.Input; - /** - * The UUID of a flavor. Changing this creates a new - * loadbalancer. - */ flavorId?: pulumi.Input; - /** - * The name of the provider. Changing this - * creates a new loadbalancer. - */ loadbalancerProvider?: pulumi.Input; - /** - * Human-readable name for the Loadbalancer. Does not have - * to be unique. - */ name?: pulumi.Input; - /** - * The region in which to obtain the V2 Networking client. - * A Networking client is needed to create an LB member. If omitted, the - * `region` argument of the provider is used. Changing this creates a new - * LB member. - */ region?: pulumi.Input; - /** - * A list of security group IDs to apply to the - * loadbalancer. The security groups must be specified by ID and not name (as - * opposed to how they are configured with the Compute Instance). - */ securityGroupIds?: pulumi.Input[]>; - /** - * A list of simple strings assigned to the loadbalancer. - * Available only for Octavia **minor version 2.5 or later**. - */ tags?: pulumi.Input[]>; - /** - * Required for admins. The UUID of the tenant who owns - * the Loadbalancer. Only administrative users can specify a tenant UUID - * other than their own. Changing this creates a new loadbalancer. - */ tenantId?: pulumi.Input; - /** - * The ip address of the load balancer. - * Changing this creates a new loadbalancer. - */ vipAddress?: pulumi.Input; - /** - * The network on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is available only for Octavia. - */ vipNetworkId?: pulumi.Input; - /** - * The port UUID that the loadbalancer will use. - * Changing this creates a new loadbalancer. It is available only for Octavia. - */ vipPortId?: pulumi.Input; - /** - * The subnet on which to allocate the - * Loadbalancer's address. A tenant can only create Loadbalancers on networks - * authorized by policy (e.g. networks that belong to them or networks that - * are shared). Changing this creates a new loadbalancer. - * It is required to Neutron LBaaS but optional for Octavia. - */ vipSubnetId?: pulumi.Input; } diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 4874df91e..fa9e16491 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -115,6 +115,7 @@ "keymanager/index.ts", "keymanager/orderV1.ts", "keymanager/secretV1.ts", + "lbLoadbalancerV2.ts", "loadbalancer/getFlavorV2.ts", "loadbalancer/index.ts", "loadbalancer/l7policyV2.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 3670ca6d8..3ea7e944a 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -807,7 +807,13 @@ export namespace networking { export namespace objectstorage { export interface ContainerVersioningLegacy { + /** + * Container in which versions will be stored. + */ location: pulumi.Input; + /** + * Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + */ type: pulumi.Input; } } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 10928f9b1..a7654bd81 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1011,7 +1011,13 @@ export namespace networking { export namespace objectstorage { export interface ContainerVersioningLegacy { + /** + * Container in which versions will be stored. + */ location: string; + /** + * Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + */ type: string; } diff --git a/sdk/python/pulumi_openstack/__init__.py b/sdk/python/pulumi_openstack/__init__.py index ccf35bdf6..b28294081 100644 --- a/sdk/python/pulumi_openstack/__init__.py +++ b/sdk/python/pulumi_openstack/__init__.py @@ -8,6 +8,7 @@ from .get_fw_group_v2 import * from .get_fw_policy_v2 import * from .get_fw_rule_v2 import * +from .lb_loadbalancer_v2 import * from .provider import * # Make subpackages available: @@ -497,6 +498,14 @@ "openstack:images/imageAccessAccept:ImageAccessAccept": "ImageAccessAccept" } }, + { + "pkg": "openstack", + "mod": "index/lbLoadbalancerV2", + "fqn": "pulumi_openstack", + "classes": { + "openstack:index/lbLoadbalancerV2:LbLoadbalancerV2": "LbLoadbalancerV2" + } + }, { "pkg": "openstack", "mod": "keymanager/containerV1", diff --git a/sdk/python/pulumi_openstack/keymanager/container_v1.py b/sdk/python/pulumi_openstack/keymanager/container_v1.py index 4ea0de27e..b283f0309 100644 --- a/sdk/python/pulumi_openstack/keymanager/container_v1.py +++ b/sdk/python/pulumi_openstack/keymanager/container_v1.py @@ -370,7 +370,7 @@ def __init__(__self__, ), ]) subnet1 = openstack.networking.get_subnet(name="my-subnet") - lb1 = openstack.loadbalancer.LoadBalancer("lb_1", + lb1 = openstack.LbLoadbalancerV2("lb_1", name="loadbalancer", vip_subnet_id=subnet1.id) listener1 = openstack.loadbalancer.Listener("listener_1", @@ -493,7 +493,7 @@ def __init__(__self__, ), ]) subnet1 = openstack.networking.get_subnet(name="my-subnet") - lb1 = openstack.loadbalancer.LoadBalancer("lb_1", + lb1 = openstack.LbLoadbalancerV2("lb_1", name="loadbalancer", vip_subnet_id=subnet1.id) listener1 = openstack.loadbalancer.Listener("listener_1", diff --git a/sdk/python/pulumi_openstack/lb_loadbalancer_v2.py b/sdk/python/pulumi_openstack/lb_loadbalancer_v2.py new file mode 100644 index 000000000..c4f03c535 --- /dev/null +++ b/sdk/python/pulumi_openstack/lb_loadbalancer_v2.py @@ -0,0 +1,966 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities + +__all__ = ['LbLoadbalancerV2Args', 'LbLoadbalancerV2'] + +@pulumi.input_type +class LbLoadbalancerV2Args: + def __init__(__self__, *, + admin_state_up: Optional[pulumi.Input[bool]] = None, + availability_zone: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + flavor_id: Optional[pulumi.Input[str]] = None, + loadbalancer_provider: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None, + security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tenant_id: Optional[pulumi.Input[str]] = None, + vip_address: Optional[pulumi.Input[str]] = None, + vip_network_id: Optional[pulumi.Input[str]] = None, + vip_port_id: Optional[pulumi.Input[str]] = None, + vip_subnet_id: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a LbLoadbalancerV2 resource. + :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. + :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new + loadbalancer. + :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this + creates a new loadbalancer. + :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have + to be unique. + :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_address: The ip address of the load balancer. + Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_network_id: The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + if admin_state_up is not None: + pulumi.set(__self__, "admin_state_up", admin_state_up) + if availability_zone is not None: + pulumi.set(__self__, "availability_zone", availability_zone) + if description is not None: + pulumi.set(__self__, "description", description) + if flavor_id is not None: + pulumi.set(__self__, "flavor_id", flavor_id) + if loadbalancer_provider is not None: + pulumi.set(__self__, "loadbalancer_provider", loadbalancer_provider) + if name is not None: + pulumi.set(__self__, "name", name) + if region is not None: + pulumi.set(__self__, "region", region) + if security_group_ids is not None: + pulumi.set(__self__, "security_group_ids", security_group_ids) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + if vip_address is not None: + pulumi.set(__self__, "vip_address", vip_address) + if vip_network_id is not None: + pulumi.set(__self__, "vip_network_id", vip_network_id) + if vip_port_id is not None: + pulumi.set(__self__, "vip_port_id", vip_port_id) + if vip_subnet_id is not None: + pulumi.set(__self__, "vip_subnet_id", vip_subnet_id) + + @property + @pulumi.getter(name="adminStateUp") + def admin_state_up(self) -> Optional[pulumi.Input[bool]]: + """ + The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + """ + return pulumi.get(self, "admin_state_up") + + @admin_state_up.setter + def admin_state_up(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "admin_state_up", value) + + @property + @pulumi.getter(name="availabilityZone") + def availability_zone(self) -> Optional[pulumi.Input[str]]: + """ + The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + """ + return pulumi.get(self, "availability_zone") + + @availability_zone.setter + def availability_zone(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "availability_zone", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + Human-readable description for the Loadbalancer. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="flavorId") + def flavor_id(self) -> Optional[pulumi.Input[str]]: + """ + The UUID of a flavor. Changing this creates a new + loadbalancer. + """ + return pulumi.get(self, "flavor_id") + + @flavor_id.setter + def flavor_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "flavor_id", value) + + @property + @pulumi.getter(name="loadbalancerProvider") + def loadbalancer_provider(self) -> Optional[pulumi.Input[str]]: + """ + The name of the provider. Changing this + creates a new loadbalancer. + """ + return pulumi.get(self, "loadbalancer_provider") + + @loadbalancer_provider.setter + def loadbalancer_provider(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "loadbalancer_provider", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Human-readable name for the Loadbalancer. Does not have + to be unique. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def region(self) -> Optional[pulumi.Input[str]]: + """ + The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "region", value) + + @property + @pulumi.getter(name="securityGroupIds") + def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + """ + return pulumi.get(self, "security_group_ids") + + @security_group_ids.setter + def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "security_group_ids", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> Optional[pulumi.Input[str]]: + """ + Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "tenant_id", value) + + @property + @pulumi.getter(name="vipAddress") + def vip_address(self) -> Optional[pulumi.Input[str]]: + """ + The ip address of the load balancer. + Changing this creates a new loadbalancer. + """ + return pulumi.get(self, "vip_address") + + @vip_address.setter + def vip_address(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_address", value) + + @property + @pulumi.getter(name="vipNetworkId") + def vip_network_id(self) -> Optional[pulumi.Input[str]]: + """ + The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + """ + return pulumi.get(self, "vip_network_id") + + @vip_network_id.setter + def vip_network_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_network_id", value) + + @property + @pulumi.getter(name="vipPortId") + def vip_port_id(self) -> Optional[pulumi.Input[str]]: + """ + The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + """ + return pulumi.get(self, "vip_port_id") + + @vip_port_id.setter + def vip_port_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_port_id", value) + + @property + @pulumi.getter(name="vipSubnetId") + def vip_subnet_id(self) -> Optional[pulumi.Input[str]]: + """ + The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + return pulumi.get(self, "vip_subnet_id") + + @vip_subnet_id.setter + def vip_subnet_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_subnet_id", value) + + +@pulumi.input_type +class _LbLoadbalancerV2State: + def __init__(__self__, *, + admin_state_up: Optional[pulumi.Input[bool]] = None, + availability_zone: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + flavor_id: Optional[pulumi.Input[str]] = None, + loadbalancer_provider: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None, + security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tenant_id: Optional[pulumi.Input[str]] = None, + vip_address: Optional[pulumi.Input[str]] = None, + vip_network_id: Optional[pulumi.Input[str]] = None, + vip_port_id: Optional[pulumi.Input[str]] = None, + vip_subnet_id: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering LbLoadbalancerV2 resources. + :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. + :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new + loadbalancer. + :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this + creates a new loadbalancer. + :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have + to be unique. + :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_address: The ip address of the load balancer. + Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_network_id: The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + if admin_state_up is not None: + pulumi.set(__self__, "admin_state_up", admin_state_up) + if availability_zone is not None: + pulumi.set(__self__, "availability_zone", availability_zone) + if description is not None: + pulumi.set(__self__, "description", description) + if flavor_id is not None: + pulumi.set(__self__, "flavor_id", flavor_id) + if loadbalancer_provider is not None: + pulumi.set(__self__, "loadbalancer_provider", loadbalancer_provider) + if name is not None: + pulumi.set(__self__, "name", name) + if region is not None: + pulumi.set(__self__, "region", region) + if security_group_ids is not None: + pulumi.set(__self__, "security_group_ids", security_group_ids) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + if vip_address is not None: + pulumi.set(__self__, "vip_address", vip_address) + if vip_network_id is not None: + pulumi.set(__self__, "vip_network_id", vip_network_id) + if vip_port_id is not None: + pulumi.set(__self__, "vip_port_id", vip_port_id) + if vip_subnet_id is not None: + pulumi.set(__self__, "vip_subnet_id", vip_subnet_id) + + @property + @pulumi.getter(name="adminStateUp") + def admin_state_up(self) -> Optional[pulumi.Input[bool]]: + """ + The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + """ + return pulumi.get(self, "admin_state_up") + + @admin_state_up.setter + def admin_state_up(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "admin_state_up", value) + + @property + @pulumi.getter(name="availabilityZone") + def availability_zone(self) -> Optional[pulumi.Input[str]]: + """ + The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + """ + return pulumi.get(self, "availability_zone") + + @availability_zone.setter + def availability_zone(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "availability_zone", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + Human-readable description for the Loadbalancer. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="flavorId") + def flavor_id(self) -> Optional[pulumi.Input[str]]: + """ + The UUID of a flavor. Changing this creates a new + loadbalancer. + """ + return pulumi.get(self, "flavor_id") + + @flavor_id.setter + def flavor_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "flavor_id", value) + + @property + @pulumi.getter(name="loadbalancerProvider") + def loadbalancer_provider(self) -> Optional[pulumi.Input[str]]: + """ + The name of the provider. Changing this + creates a new loadbalancer. + """ + return pulumi.get(self, "loadbalancer_provider") + + @loadbalancer_provider.setter + def loadbalancer_provider(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "loadbalancer_provider", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Human-readable name for the Loadbalancer. Does not have + to be unique. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def region(self) -> Optional[pulumi.Input[str]]: + """ + The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "region", value) + + @property + @pulumi.getter(name="securityGroupIds") + def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + """ + return pulumi.get(self, "security_group_ids") + + @security_group_ids.setter + def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "security_group_ids", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> Optional[pulumi.Input[str]]: + """ + Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "tenant_id", value) + + @property + @pulumi.getter(name="vipAddress") + def vip_address(self) -> Optional[pulumi.Input[str]]: + """ + The ip address of the load balancer. + Changing this creates a new loadbalancer. + """ + return pulumi.get(self, "vip_address") + + @vip_address.setter + def vip_address(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_address", value) + + @property + @pulumi.getter(name="vipNetworkId") + def vip_network_id(self) -> Optional[pulumi.Input[str]]: + """ + The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + """ + return pulumi.get(self, "vip_network_id") + + @vip_network_id.setter + def vip_network_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_network_id", value) + + @property + @pulumi.getter(name="vipPortId") + def vip_port_id(self) -> Optional[pulumi.Input[str]]: + """ + The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + """ + return pulumi.get(self, "vip_port_id") + + @vip_port_id.setter + def vip_port_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_port_id", value) + + @property + @pulumi.getter(name="vipSubnetId") + def vip_subnet_id(self) -> Optional[pulumi.Input[str]]: + """ + The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + return pulumi.get(self, "vip_subnet_id") + + @vip_subnet_id.setter + def vip_subnet_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vip_subnet_id", value) + + +class LbLoadbalancerV2(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + admin_state_up: Optional[pulumi.Input[bool]] = None, + availability_zone: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + flavor_id: Optional[pulumi.Input[str]] = None, + loadbalancer_provider: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None, + security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tenant_id: Optional[pulumi.Input[str]] = None, + vip_address: Optional[pulumi.Input[str]] = None, + vip_network_id: Optional[pulumi.Input[str]] = None, + vip_port_id: Optional[pulumi.Input[str]] = None, + vip_subnet_id: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Manages a V2 loadbalancer resource within OpenStack. + + > **Note:** This resource has attributes that depend on octavia minor versions. + Please ensure your Openstack cloud supports the required minor version. + + ## Example Usage + + ```python + import pulumi + import pulumi_openstack as openstack + + lb1 = openstack.LbLoadbalancerV2("lb_1", vip_subnet_id="d9415786-5f1a-428b-b35f-2f1523e146d2") + ``` + + ## Import + + Load Balancer can be imported using the Load Balancer ID, e.g.: + + ```sh + $ pulumi import openstack:index/lbLoadbalancerV2:LbLoadbalancerV2 loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. + :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new + loadbalancer. + :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this + creates a new loadbalancer. + :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have + to be unique. + :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_address: The ip address of the load balancer. + Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_network_id: The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[LbLoadbalancerV2Args] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manages a V2 loadbalancer resource within OpenStack. + + > **Note:** This resource has attributes that depend on octavia minor versions. + Please ensure your Openstack cloud supports the required minor version. + + ## Example Usage + + ```python + import pulumi + import pulumi_openstack as openstack + + lb1 = openstack.LbLoadbalancerV2("lb_1", vip_subnet_id="d9415786-5f1a-428b-b35f-2f1523e146d2") + ``` + + ## Import + + Load Balancer can be imported using the Load Balancer ID, e.g.: + + ```sh + $ pulumi import openstack:index/lbLoadbalancerV2:LbLoadbalancerV2 loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 + ``` + + :param str resource_name: The name of the resource. + :param LbLoadbalancerV2Args args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LbLoadbalancerV2Args, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + admin_state_up: Optional[pulumi.Input[bool]] = None, + availability_zone: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + flavor_id: Optional[pulumi.Input[str]] = None, + loadbalancer_provider: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None, + security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tenant_id: Optional[pulumi.Input[str]] = None, + vip_address: Optional[pulumi.Input[str]] = None, + vip_network_id: Optional[pulumi.Input[str]] = None, + vip_port_id: Optional[pulumi.Input[str]] = None, + vip_subnet_id: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = LbLoadbalancerV2Args.__new__(LbLoadbalancerV2Args) + + __props__.__dict__["admin_state_up"] = admin_state_up + __props__.__dict__["availability_zone"] = availability_zone + __props__.__dict__["description"] = description + __props__.__dict__["flavor_id"] = flavor_id + __props__.__dict__["loadbalancer_provider"] = loadbalancer_provider + __props__.__dict__["name"] = name + __props__.__dict__["region"] = region + __props__.__dict__["security_group_ids"] = security_group_ids + __props__.__dict__["tags"] = tags + __props__.__dict__["tenant_id"] = tenant_id + __props__.__dict__["vip_address"] = vip_address + __props__.__dict__["vip_network_id"] = vip_network_id + __props__.__dict__["vip_port_id"] = vip_port_id + __props__.__dict__["vip_subnet_id"] = vip_subnet_id + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="openstack:loadbalancer/loadBalancer:LoadBalancer")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(LbLoadbalancerV2, __self__).__init__( + 'openstack:index/lbLoadbalancerV2:LbLoadbalancerV2', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + admin_state_up: Optional[pulumi.Input[bool]] = None, + availability_zone: Optional[pulumi.Input[str]] = None, + description: Optional[pulumi.Input[str]] = None, + flavor_id: Optional[pulumi.Input[str]] = None, + loadbalancer_provider: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + region: Optional[pulumi.Input[str]] = None, + security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + tenant_id: Optional[pulumi.Input[str]] = None, + vip_address: Optional[pulumi.Input[str]] = None, + vip_network_id: Optional[pulumi.Input[str]] = None, + vip_port_id: Optional[pulumi.Input[str]] = None, + vip_subnet_id: Optional[pulumi.Input[str]] = None) -> 'LbLoadbalancerV2': + """ + Get an existing LbLoadbalancerV2 resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. + :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new + loadbalancer. + :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this + creates a new loadbalancer. + :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have + to be unique. + :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_address: The ip address of the load balancer. + Changing this creates a new loadbalancer. + :param pulumi.Input[str] vip_network_id: The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _LbLoadbalancerV2State.__new__(_LbLoadbalancerV2State) + + __props__.__dict__["admin_state_up"] = admin_state_up + __props__.__dict__["availability_zone"] = availability_zone + __props__.__dict__["description"] = description + __props__.__dict__["flavor_id"] = flavor_id + __props__.__dict__["loadbalancer_provider"] = loadbalancer_provider + __props__.__dict__["name"] = name + __props__.__dict__["region"] = region + __props__.__dict__["security_group_ids"] = security_group_ids + __props__.__dict__["tags"] = tags + __props__.__dict__["tenant_id"] = tenant_id + __props__.__dict__["vip_address"] = vip_address + __props__.__dict__["vip_network_id"] = vip_network_id + __props__.__dict__["vip_port_id"] = vip_port_id + __props__.__dict__["vip_subnet_id"] = vip_subnet_id + return LbLoadbalancerV2(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="adminStateUp") + def admin_state_up(self) -> pulumi.Output[Optional[bool]]: + """ + The administrative state of the Loadbalancer. + A valid value is true (UP) or false (DOWN). + """ + return pulumi.get(self, "admin_state_up") + + @property + @pulumi.getter(name="availabilityZone") + def availability_zone(self) -> pulumi.Output[Optional[str]]: + """ + The availability zone of the Loadbalancer. + Changing this creates a new loadbalancer. Available only for Octavia + **minor version 2.14 or later**. + """ + return pulumi.get(self, "availability_zone") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + Human-readable description for the Loadbalancer. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="flavorId") + def flavor_id(self) -> pulumi.Output[str]: + """ + The UUID of a flavor. Changing this creates a new + loadbalancer. + """ + return pulumi.get(self, "flavor_id") + + @property + @pulumi.getter(name="loadbalancerProvider") + def loadbalancer_provider(self) -> pulumi.Output[str]: + """ + The name of the provider. Changing this + creates a new loadbalancer. + """ + return pulumi.get(self, "loadbalancer_provider") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + Human-readable name for the Loadbalancer. Does not have + to be unique. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def region(self) -> pulumi.Output[str]: + """ + The region in which to obtain the V2 Networking client. + A Networking client is needed to create an LB member. If omitted, the + `region` argument of the provider is used. Changing this creates a new + LB member. + """ + return pulumi.get(self, "region") + + @property + @pulumi.getter(name="securityGroupIds") + def security_group_ids(self) -> pulumi.Output[Sequence[str]]: + """ + A list of security group IDs to apply to the + loadbalancer. The security groups must be specified by ID and not name (as + opposed to how they are configured with the Compute Instance). + """ + return pulumi.get(self, "security_group_ids") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Sequence[str]]]: + """ + A list of simple strings assigned to the loadbalancer. + Available only for Octavia **minor version 2.5 or later**. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Output[str]: + """ + Required for admins. The UUID of the tenant who owns + the Loadbalancer. Only administrative users can specify a tenant UUID + other than their own. Changing this creates a new loadbalancer. + """ + return pulumi.get(self, "tenant_id") + + @property + @pulumi.getter(name="vipAddress") + def vip_address(self) -> pulumi.Output[str]: + """ + The ip address of the load balancer. + Changing this creates a new loadbalancer. + """ + return pulumi.get(self, "vip_address") + + @property + @pulumi.getter(name="vipNetworkId") + def vip_network_id(self) -> pulumi.Output[str]: + """ + The network on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is available only for Octavia. + """ + return pulumi.get(self, "vip_network_id") + + @property + @pulumi.getter(name="vipPortId") + def vip_port_id(self) -> pulumi.Output[str]: + """ + The port UUID that the loadbalancer will use. + Changing this creates a new loadbalancer. It is available only for Octavia. + """ + return pulumi.get(self, "vip_port_id") + + @property + @pulumi.getter(name="vipSubnetId") + def vip_subnet_id(self) -> pulumi.Output[str]: + """ + The subnet on which to allocate the + Loadbalancer's address. A tenant can only create Loadbalancers on networks + authorized by policy (e.g. networks that belong to them or networks that + are shared). Changing this creates a new loadbalancer. + It is required to Neutron LBaaS but optional for Octavia. + """ + return pulumi.get(self, "vip_subnet_id") + diff --git a/sdk/python/pulumi_openstack/loadbalancer/l7_policy_v2.py b/sdk/python/pulumi_openstack/loadbalancer/l7_policy_v2.py index 932735c27..e2f16550d 100644 --- a/sdk/python/pulumi_openstack/loadbalancer/l7_policy_v2.py +++ b/sdk/python/pulumi_openstack/loadbalancer/l7_policy_v2.py @@ -422,7 +422,7 @@ def __init__(__self__, cidr="192.168.199.0/24", ip_version=4, network_id=network1.id) - loadbalancer1 = openstack.loadbalancer.LoadBalancer("loadbalancer_1", + loadbalancer1 = openstack.LbLoadbalancerV2("loadbalancer_1", name="loadbalancer_1", vip_subnet_id=subnet1.id) listener1 = openstack.loadbalancer.Listener("listener_1", @@ -499,7 +499,7 @@ def __init__(__self__, cidr="192.168.199.0/24", ip_version=4, network_id=network1.id) - loadbalancer1 = openstack.loadbalancer.LoadBalancer("loadbalancer_1", + loadbalancer1 = openstack.LbLoadbalancerV2("loadbalancer_1", name="loadbalancer_1", vip_subnet_id=subnet1.id) listener1 = openstack.loadbalancer.Listener("listener_1", diff --git a/sdk/python/pulumi_openstack/loadbalancer/l7_rule_v2.py b/sdk/python/pulumi_openstack/loadbalancer/l7_rule_v2.py index 72ce6f33a..cf282c3a6 100644 --- a/sdk/python/pulumi_openstack/loadbalancer/l7_rule_v2.py +++ b/sdk/python/pulumi_openstack/loadbalancer/l7_rule_v2.py @@ -407,7 +407,7 @@ def __init__(__self__, cidr="192.168.199.0/24", ip_version=4, network_id=network1.id) - loadbalancer1 = openstack.loadbalancer.LoadBalancer("loadbalancer_1", + loadbalancer1 = openstack.LbLoadbalancerV2("loadbalancer_1", name="loadbalancer_1", vip_subnet_id=subnet1.id) listener1 = openstack.loadbalancer.Listener("listener_1", @@ -490,7 +490,7 @@ def __init__(__self__, cidr="192.168.199.0/24", ip_version=4, network_id=network1.id) - loadbalancer1 = openstack.loadbalancer.LoadBalancer("loadbalancer_1", + loadbalancer1 = openstack.LbLoadbalancerV2("loadbalancer_1", name="loadbalancer_1", vip_subnet_id=subnet1.id) listener1 = openstack.loadbalancer.Listener("listener_1", diff --git a/sdk/python/pulumi_openstack/loadbalancer/load_balancer.py b/sdk/python/pulumi_openstack/loadbalancer/load_balancer.py index 03457cba4..c47a4511b 100644 --- a/sdk/python/pulumi_openstack/loadbalancer/load_balancer.py +++ b/sdk/python/pulumi_openstack/loadbalancer/load_balancer.py @@ -30,44 +30,6 @@ def __init__(__self__, *, vip_subnet_id: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a LoadBalancer resource. - :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. - :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new - loadbalancer. - :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this - creates a new loadbalancer. - :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have - to be unique. - :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_address: The ip address of the load balancer. - Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_network_id: The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. """ if admin_state_up is not None: pulumi.set(__self__, "admin_state_up", admin_state_up) @@ -101,10 +63,6 @@ def __init__(__self__, *, @property @pulumi.getter(name="adminStateUp") def admin_state_up(self) -> Optional[pulumi.Input[bool]]: - """ - The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - """ return pulumi.get(self, "admin_state_up") @admin_state_up.setter @@ -114,11 +72,6 @@ def admin_state_up(self, value: Optional[pulumi.Input[bool]]): @property @pulumi.getter(name="availabilityZone") def availability_zone(self) -> Optional[pulumi.Input[str]]: - """ - The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - """ return pulumi.get(self, "availability_zone") @availability_zone.setter @@ -128,9 +81,6 @@ def availability_zone(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: - """ - Human-readable description for the Loadbalancer. - """ return pulumi.get(self, "description") @description.setter @@ -140,10 +90,6 @@ def description(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="flavorId") def flavor_id(self) -> Optional[pulumi.Input[str]]: - """ - The UUID of a flavor. Changing this creates a new - loadbalancer. - """ return pulumi.get(self, "flavor_id") @flavor_id.setter @@ -153,10 +99,6 @@ def flavor_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="loadbalancerProvider") def loadbalancer_provider(self) -> Optional[pulumi.Input[str]]: - """ - The name of the provider. Changing this - creates a new loadbalancer. - """ return pulumi.get(self, "loadbalancer_provider") @loadbalancer_provider.setter @@ -166,10 +108,6 @@ def loadbalancer_provider(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: - """ - Human-readable name for the Loadbalancer. Does not have - to be unique. - """ return pulumi.get(self, "name") @name.setter @@ -179,12 +117,6 @@ def name(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def region(self) -> Optional[pulumi.Input[str]]: - """ - The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - """ return pulumi.get(self, "region") @region.setter @@ -194,11 +126,6 @@ def region(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="securityGroupIds") def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - """ return pulumi.get(self, "security_group_ids") @security_group_ids.setter @@ -208,10 +135,6 @@ def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[ @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - """ return pulumi.get(self, "tags") @tags.setter @@ -221,11 +144,6 @@ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @property @pulumi.getter(name="tenantId") def tenant_id(self) -> Optional[pulumi.Input[str]]: - """ - Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - """ return pulumi.get(self, "tenant_id") @tenant_id.setter @@ -235,10 +153,6 @@ def tenant_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipAddress") def vip_address(self) -> Optional[pulumi.Input[str]]: - """ - The ip address of the load balancer. - Changing this creates a new loadbalancer. - """ return pulumi.get(self, "vip_address") @vip_address.setter @@ -248,13 +162,6 @@ def vip_address(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipNetworkId") def vip_network_id(self) -> Optional[pulumi.Input[str]]: - """ - The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - """ return pulumi.get(self, "vip_network_id") @vip_network_id.setter @@ -264,10 +171,6 @@ def vip_network_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipPortId") def vip_port_id(self) -> Optional[pulumi.Input[str]]: - """ - The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - """ return pulumi.get(self, "vip_port_id") @vip_port_id.setter @@ -277,13 +180,6 @@ def vip_port_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipSubnetId") def vip_subnet_id(self) -> Optional[pulumi.Input[str]]: - """ - The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. - """ return pulumi.get(self, "vip_subnet_id") @vip_subnet_id.setter @@ -310,44 +206,6 @@ def __init__(__self__, *, vip_subnet_id: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering LoadBalancer resources. - :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. - :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new - loadbalancer. - :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this - creates a new loadbalancer. - :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have - to be unique. - :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_address: The ip address of the load balancer. - Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_network_id: The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. """ if admin_state_up is not None: pulumi.set(__self__, "admin_state_up", admin_state_up) @@ -381,10 +239,6 @@ def __init__(__self__, *, @property @pulumi.getter(name="adminStateUp") def admin_state_up(self) -> Optional[pulumi.Input[bool]]: - """ - The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - """ return pulumi.get(self, "admin_state_up") @admin_state_up.setter @@ -394,11 +248,6 @@ def admin_state_up(self, value: Optional[pulumi.Input[bool]]): @property @pulumi.getter(name="availabilityZone") def availability_zone(self) -> Optional[pulumi.Input[str]]: - """ - The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - """ return pulumi.get(self, "availability_zone") @availability_zone.setter @@ -408,9 +257,6 @@ def availability_zone(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: - """ - Human-readable description for the Loadbalancer. - """ return pulumi.get(self, "description") @description.setter @@ -420,10 +266,6 @@ def description(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="flavorId") def flavor_id(self) -> Optional[pulumi.Input[str]]: - """ - The UUID of a flavor. Changing this creates a new - loadbalancer. - """ return pulumi.get(self, "flavor_id") @flavor_id.setter @@ -433,10 +275,6 @@ def flavor_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="loadbalancerProvider") def loadbalancer_provider(self) -> Optional[pulumi.Input[str]]: - """ - The name of the provider. Changing this - creates a new loadbalancer. - """ return pulumi.get(self, "loadbalancer_provider") @loadbalancer_provider.setter @@ -446,10 +284,6 @@ def loadbalancer_provider(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: - """ - Human-readable name for the Loadbalancer. Does not have - to be unique. - """ return pulumi.get(self, "name") @name.setter @@ -459,12 +293,6 @@ def name(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def region(self) -> Optional[pulumi.Input[str]]: - """ - The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - """ return pulumi.get(self, "region") @region.setter @@ -474,11 +302,6 @@ def region(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="securityGroupIds") def security_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - """ return pulumi.get(self, "security_group_ids") @security_group_ids.setter @@ -488,10 +311,6 @@ def security_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[ @property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - """ return pulumi.get(self, "tags") @tags.setter @@ -501,11 +320,6 @@ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @property @pulumi.getter(name="tenantId") def tenant_id(self) -> Optional[pulumi.Input[str]]: - """ - Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - """ return pulumi.get(self, "tenant_id") @tenant_id.setter @@ -515,10 +329,6 @@ def tenant_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipAddress") def vip_address(self) -> Optional[pulumi.Input[str]]: - """ - The ip address of the load balancer. - Changing this creates a new loadbalancer. - """ return pulumi.get(self, "vip_address") @vip_address.setter @@ -528,13 +338,6 @@ def vip_address(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipNetworkId") def vip_network_id(self) -> Optional[pulumi.Input[str]]: - """ - The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - """ return pulumi.get(self, "vip_network_id") @vip_network_id.setter @@ -544,10 +347,6 @@ def vip_network_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipPortId") def vip_port_id(self) -> Optional[pulumi.Input[str]]: - """ - The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - """ return pulumi.get(self, "vip_port_id") @vip_port_id.setter @@ -557,13 +356,6 @@ def vip_port_id(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="vipSubnetId") def vip_subnet_id(self) -> Optional[pulumi.Input[str]]: - """ - The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. - """ return pulumi.get(self, "vip_subnet_id") @vip_subnet_id.setter @@ -571,7 +363,12 @@ def vip_subnet_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "vip_subnet_id", value) +warnings.warn("""openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2""", DeprecationWarning) + + class LoadBalancer(pulumi.CustomResource): + warnings.warn("""openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2""", DeprecationWarning) + @overload def __init__(__self__, resource_name: str, @@ -592,68 +389,9 @@ def __init__(__self__, vip_subnet_id: Optional[pulumi.Input[str]] = None, __props__=None): """ - Manages a V2 loadbalancer resource within OpenStack. - - > **Note:** This resource has attributes that depend on octavia minor versions. - Please ensure your Openstack cloud supports the required minor version. - - ## Example Usage - - ```python - import pulumi - import pulumi_openstack as openstack - - lb1 = openstack.loadbalancer.LoadBalancer("lb_1", vip_subnet_id="d9415786-5f1a-428b-b35f-2f1523e146d2") - ``` - - ## Import - - Load Balancer can be imported using the Load Balancer ID, e.g.: - - ```sh - $ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 - ``` - + Create a LoadBalancer resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. - :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new - loadbalancer. - :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this - creates a new loadbalancer. - :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have - to be unique. - :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_address: The ip address of the load balancer. - Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_network_id: The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. """ ... @overload @@ -662,28 +400,7 @@ def __init__(__self__, args: Optional[LoadBalancerArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ - Manages a V2 loadbalancer resource within OpenStack. - - > **Note:** This resource has attributes that depend on octavia minor versions. - Please ensure your Openstack cloud supports the required minor version. - - ## Example Usage - - ```python - import pulumi - import pulumi_openstack as openstack - - lb1 = openstack.loadbalancer.LoadBalancer("lb_1", vip_subnet_id="d9415786-5f1a-428b-b35f-2f1523e146d2") - ``` - - ## Import - - Load Balancer can be imported using the Load Balancer ID, e.g.: - - ```sh - $ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76 - ``` - + Create a LoadBalancer resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param LoadBalancerArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -714,6 +431,7 @@ def _internal_init(__self__, vip_port_id: Optional[pulumi.Input[str]] = None, vip_subnet_id: Optional[pulumi.Input[str]] = None, __props__=None): + pulumi.log.warn("""LoadBalancer is deprecated: openstack.loadbalancer/loadbalancer.LoadBalancer has been deprecated in favor of openstack.index/lbloadbalancerv2.LbLoadbalancerV2""") opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') @@ -767,44 +485,6 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[bool] admin_state_up: The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - :param pulumi.Input[str] availability_zone: The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - :param pulumi.Input[str] description: Human-readable description for the Loadbalancer. - :param pulumi.Input[str] flavor_id: The UUID of a flavor. Changing this creates a new - loadbalancer. - :param pulumi.Input[str] loadbalancer_provider: The name of the provider. Changing this - creates a new loadbalancer. - :param pulumi.Input[str] name: Human-readable name for the Loadbalancer. Does not have - to be unique. - :param pulumi.Input[str] region: The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - :param pulumi.Input[str] tenant_id: Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_address: The ip address of the load balancer. - Changing this creates a new loadbalancer. - :param pulumi.Input[str] vip_network_id: The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - :param pulumi.Input[str] vip_port_id: The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - :param pulumi.Input[str] vip_subnet_id: The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -829,136 +509,70 @@ def get(resource_name: str, @property @pulumi.getter(name="adminStateUp") def admin_state_up(self) -> pulumi.Output[Optional[bool]]: - """ - The administrative state of the Loadbalancer. - A valid value is true (UP) or false (DOWN). - """ return pulumi.get(self, "admin_state_up") @property @pulumi.getter(name="availabilityZone") def availability_zone(self) -> pulumi.Output[Optional[str]]: - """ - The availability zone of the Loadbalancer. - Changing this creates a new loadbalancer. Available only for Octavia - **minor version 2.14 or later**. - """ return pulumi.get(self, "availability_zone") @property @pulumi.getter def description(self) -> pulumi.Output[Optional[str]]: - """ - Human-readable description for the Loadbalancer. - """ return pulumi.get(self, "description") @property @pulumi.getter(name="flavorId") def flavor_id(self) -> pulumi.Output[str]: - """ - The UUID of a flavor. Changing this creates a new - loadbalancer. - """ return pulumi.get(self, "flavor_id") @property @pulumi.getter(name="loadbalancerProvider") def loadbalancer_provider(self) -> pulumi.Output[str]: - """ - The name of the provider. Changing this - creates a new loadbalancer. - """ return pulumi.get(self, "loadbalancer_provider") @property @pulumi.getter def name(self) -> pulumi.Output[str]: - """ - Human-readable name for the Loadbalancer. Does not have - to be unique. - """ return pulumi.get(self, "name") @property @pulumi.getter def region(self) -> pulumi.Output[str]: - """ - The region in which to obtain the V2 Networking client. - A Networking client is needed to create an LB member. If omitted, the - `region` argument of the provider is used. Changing this creates a new - LB member. - """ return pulumi.get(self, "region") @property @pulumi.getter(name="securityGroupIds") def security_group_ids(self) -> pulumi.Output[Sequence[str]]: - """ - A list of security group IDs to apply to the - loadbalancer. The security groups must be specified by ID and not name (as - opposed to how they are configured with the Compute Instance). - """ return pulumi.get(self, "security_group_ids") @property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Sequence[str]]]: - """ - A list of simple strings assigned to the loadbalancer. - Available only for Octavia **minor version 2.5 or later**. - """ return pulumi.get(self, "tags") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> pulumi.Output[str]: - """ - Required for admins. The UUID of the tenant who owns - the Loadbalancer. Only administrative users can specify a tenant UUID - other than their own. Changing this creates a new loadbalancer. - """ return pulumi.get(self, "tenant_id") @property @pulumi.getter(name="vipAddress") def vip_address(self) -> pulumi.Output[str]: - """ - The ip address of the load balancer. - Changing this creates a new loadbalancer. - """ return pulumi.get(self, "vip_address") @property @pulumi.getter(name="vipNetworkId") def vip_network_id(self) -> pulumi.Output[str]: - """ - The network on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is available only for Octavia. - """ return pulumi.get(self, "vip_network_id") @property @pulumi.getter(name="vipPortId") def vip_port_id(self) -> pulumi.Output[str]: - """ - The port UUID that the loadbalancer will use. - Changing this creates a new loadbalancer. It is available only for Octavia. - """ return pulumi.get(self, "vip_port_id") @property @pulumi.getter(name="vipSubnetId") def vip_subnet_id(self) -> pulumi.Output[str]: - """ - The subnet on which to allocate the - Loadbalancer's address. A tenant can only create Loadbalancers on networks - authorized by policy (e.g. networks that belong to them or networks that - are shared). Changing this creates a new loadbalancer. - It is required to Neutron LBaaS but optional for Octavia. - """ return pulumi.get(self, "vip_subnet_id") diff --git a/sdk/python/pulumi_openstack/objectstorage/_inputs.py b/sdk/python/pulumi_openstack/objectstorage/_inputs.py index 96a7b80a9..c365678de 100644 --- a/sdk/python/pulumi_openstack/objectstorage/_inputs.py +++ b/sdk/python/pulumi_openstack/objectstorage/_inputs.py @@ -18,12 +18,19 @@ class ContainerVersioningLegacyArgs: def __init__(__self__, *, location: pulumi.Input[str], type: pulumi.Input[str]): + """ + :param pulumi.Input[str] location: Container in which versions will be stored. + :param pulumi.Input[str] type: Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + """ pulumi.set(__self__, "location", location) pulumi.set(__self__, "type", type) @property @pulumi.getter def location(self) -> pulumi.Input[str]: + """ + Container in which versions will be stored. + """ return pulumi.get(self, "location") @location.setter @@ -33,6 +40,9 @@ def location(self, value: pulumi.Input[str]): @property @pulumi.getter def type(self) -> pulumi.Input[str]: + """ + Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + """ return pulumi.get(self, "type") @type.setter diff --git a/sdk/python/pulumi_openstack/objectstorage/outputs.py b/sdk/python/pulumi_openstack/objectstorage/outputs.py index 0e98025d6..b198a05a3 100644 --- a/sdk/python/pulumi_openstack/objectstorage/outputs.py +++ b/sdk/python/pulumi_openstack/objectstorage/outputs.py @@ -18,17 +18,27 @@ class ContainerVersioningLegacy(dict): def __init__(__self__, *, location: str, type: str): + """ + :param str location: Container in which versions will be stored. + :param str type: Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + """ pulumi.set(__self__, "location", location) pulumi.set(__self__, "type", type) @property @pulumi.getter def location(self) -> str: + """ + Container in which versions will be stored. + """ return pulumi.get(self, "location") @property @pulumi.getter def type(self) -> str: + """ + Versioning type which can be `versions` or `history` according to [Openstack documentation](https://docs.openstack.org/swift/latest/api/object_versioning.html). + """ return pulumi.get(self, "type")