Class QosPolicy


  • public class QosPolicy
    extends com.pulumi.resources.CustomResource
    Manages a V2 Neutron QoS policy resource within OpenStack. ## Example Usage ### Create a QoS Policy ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.networking.QosPolicy; import com.pulumi.openstack.networking.QosPolicyArgs; 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 qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() .description("bw_limit") .build()); } } ``` ## Import QoS Policies can be imported using the `id`, e.g. ```sh $ pulumi import openstack:networking/qosPolicy:QosPolicy qos_policy_1 d6ae28ce-fcb5-4180-aa62-d260a27e09ae ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      QosPolicy​(java.lang.String name)  
      QosPolicy​(java.lang.String name, QosPolicyArgs args)  
      QosPolicy​(java.lang.String name, QosPolicyArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.List<java.lang.String>> allTags()  
      com.pulumi.core.Output<java.lang.String> createdAt()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static QosPolicy get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QosPolicyState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> isDefault()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> projectId()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.Integer> revisionNumber()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> shared()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> tags()  
      com.pulumi.core.Output<java.lang.String> updatedAt()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QosPolicy

        public QosPolicy​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • QosPolicy

        public QosPolicy​(java.lang.String name,
                         @Nullable
                         QosPolicyArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • QosPolicy

        public QosPolicy​(java.lang.String name,
                         @Nullable
                         QosPolicyArgs args,
                         @Nullable
                         com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • allTags

        public com.pulumi.core.Output<java.util.List<java.lang.String>> allTags()
        Returns:
        The collection of tags assigned on the QoS policy, which have been explicitly and implicitly added.
      • createdAt

        public com.pulumi.core.Output<java.lang.String> createdAt()
        Returns:
        The time at which QoS policy was created.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        The human-readable description for the QoS policy. Changing this updates the description of the existing QoS policy.
      • isDefault

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> isDefault()
        Returns:
        Indicates whether the QoS policy is default QoS policy or not. Changing this updates the default status of the existing QoS policy.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the QoS policy. Changing this updates the name of the existing QoS policy.
      • projectId

        public com.pulumi.core.Output<java.lang.String> projectId()
        Returns:
        The owner of the QoS policy. Required if admin wants to create a QoS policy for another project. Changing this creates a new QoS policy.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron Qos policy. If omitted, the `region` argument of the provider is used. Changing this creates a new QoS policy.
      • revisionNumber

        public com.pulumi.core.Output<java.lang.Integer> revisionNumber()
        Returns:
        The revision number of the QoS policy.
      • shared

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> shared()
        Returns:
        Indicates whether this QoS policy is shared across all projects. Changing this updates the shared status of the existing QoS policy.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> tags()
        Returns:
        A set of string tags for the QoS policy.
      • updatedAt

        public com.pulumi.core.Output<java.lang.String> updatedAt()
        Returns:
        The time at which QoS policy was created.
      • valueSpecs

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()
        Returns:
        Map of additional options.
      • get

        public static QosPolicy get​(java.lang.String name,
                                    com.pulumi.core.Output<java.lang.String> id,
                                    @Nullable
                                    QosPolicyState state,
                                    @Nullable
                                    com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.