1. Packages
  2. Google Cloud Native
  3. API Docs
  4. servicedirectory
  5. servicedirectory/v1beta1
  6. Namespace

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.servicedirectory/v1beta1.Namespace

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a namespace, and returns the new namespace.

    Create Namespace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  namespace_id: Optional[str] = None,
                  labels: Optional[Mapping[str, str]] = None,
                  location: Optional[str] = None,
                  name: Optional[str] = None,
                  project: Optional[str] = None)
    func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
    public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
    public Namespace(String name, NamespaceArgs args)
    public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
    
    type: google-native:servicedirectory/v1beta1:Namespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var examplenamespaceResourceResourceFromServicedirectoryv1beta1 = new GoogleNative.ServiceDirectory.V1Beta1.Namespace("examplenamespaceResourceResourceFromServicedirectoryv1beta1", new()
    {
        NamespaceId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Location = "string",
        Name = "string",
        Project = "string",
    });
    
    example, err := servicedirectoryv1beta1.NewNamespace(ctx, "examplenamespaceResourceResourceFromServicedirectoryv1beta1", &servicedirectoryv1beta1.NamespaceArgs{
    NamespaceId: pulumi.String("string"),
    Labels: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    Location: pulumi.String("string"),
    Name: pulumi.String("string"),
    Project: pulumi.String("string"),
    })
    
    var examplenamespaceResourceResourceFromServicedirectoryv1beta1 = new Namespace("examplenamespaceResourceResourceFromServicedirectoryv1beta1", NamespaceArgs.builder()
        .namespaceId("string")
        .labels(Map.of("string", "string"))
        .location("string")
        .name("string")
        .project("string")
        .build());
    
    examplenamespace_resource_resource_from_servicedirectoryv1beta1 = google_native.servicedirectory.v1beta1.Namespace("examplenamespaceResourceResourceFromServicedirectoryv1beta1",
        namespace_id="string",
        labels={
            "string": "string",
        },
        location="string",
        name="string",
        project="string")
    
    const examplenamespaceResourceResourceFromServicedirectoryv1beta1 = new google_native.servicedirectory.v1beta1.Namespace("examplenamespaceResourceResourceFromServicedirectoryv1beta1", {
        namespaceId: "string",
        labels: {
            string: "string",
        },
        location: "string",
        name: "string",
        project: "string",
    });
    
    type: google-native:servicedirectory/v1beta1:Namespace
    properties:
        labels:
            string: string
        location: string
        name: string
        namespaceId: string
        project: string
    

    Namespace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Namespace resource accepts the following input properties:

    NamespaceId string
    Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    Labels Dictionary<string, string>
    Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
    Location string
    Name string
    Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.
    Project string
    NamespaceId string
    Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    Labels map[string]string
    Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
    Location string
    Name string
    Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.
    Project string
    namespaceId String
    Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    labels Map<String,String>
    Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
    location String
    name String
    Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.
    project String
    namespaceId string
    Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    labels {[key: string]: string}
    Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
    location string
    name string
    Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.
    project string
    namespace_id str
    Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    labels Mapping[str, str]
    Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
    location str
    name str
    Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.
    project str
    namespaceId String
    Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
    labels Map<String>
    Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
    location String
    name String
    Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.
    project String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

    CreateTime string
    The timestamp when the namespace was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uid string
    A globally unique identifier (in UUID4 format) for this namespace.
    UpdateTime string
    The timestamp when the namespace was last updated.
    CreateTime string
    The timestamp when the namespace was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uid string
    A globally unique identifier (in UUID4 format) for this namespace.
    UpdateTime string
    The timestamp when the namespace was last updated.
    createTime String
    The timestamp when the namespace was created.
    id String
    The provider-assigned unique ID for this managed resource.
    uid String
    A globally unique identifier (in UUID4 format) for this namespace.
    updateTime String
    The timestamp when the namespace was last updated.
    createTime string
    The timestamp when the namespace was created.
    id string
    The provider-assigned unique ID for this managed resource.
    uid string
    A globally unique identifier (in UUID4 format) for this namespace.
    updateTime string
    The timestamp when the namespace was last updated.
    create_time str
    The timestamp when the namespace was created.
    id str
    The provider-assigned unique ID for this managed resource.
    uid str
    A globally unique identifier (in UUID4 format) for this namespace.
    update_time str
    The timestamp when the namespace was last updated.
    createTime String
    The timestamp when the namespace was created.
    id String
    The provider-assigned unique ID for this managed resource.
    uid String
    A globally unique identifier (in UUID4 format) for this namespace.
    updateTime String
    The timestamp when the namespace was last updated.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi