1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networkconnectivity
  5. networkconnectivity/v1alpha1
  6. Hub

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.networkconnectivity/v1alpha1.Hub

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 new Network Connectivity Center hub in the specified project.

    Create Hub Resource

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

    Constructor syntax

    new Hub(name: string, args?: HubArgs, opts?: CustomResourceOptions);
    @overload
    def Hub(resource_name: str,
            args: Optional[HubArgs] = None,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Hub(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            hub_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            request_id: Optional[str] = None,
            update_time: Optional[str] = None)
    func NewHub(ctx *Context, name string, args *HubArgs, opts ...ResourceOption) (*Hub, error)
    public Hub(string name, HubArgs? args = null, CustomResourceOptions? opts = null)
    public Hub(String name, HubArgs args)
    public Hub(String name, HubArgs args, CustomResourceOptions options)
    
    type: google-native:networkconnectivity/v1alpha1:Hub
    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 HubArgs
    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 HubArgs
    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 HubArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubArgs
    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 google_nativeHubResource = new GoogleNative.NetworkConnectivity.V1Alpha1.Hub("google-nativeHubResource", new()
    {
        CreateTime = "string",
        Description = "string",
        HubId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Project = "string",
        RequestId = "string",
        UpdateTime = "string",
    });
    
    example, err := networkconnectivityv1alpha1.NewHub(ctx, "google-nativeHubResource", &networkconnectivityv1alpha1.HubArgs{
    	CreateTime:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    	HubId:       pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:       pulumi.String("string"),
    	Project:    pulumi.String("string"),
    	RequestId:  pulumi.String("string"),
    	UpdateTime: pulumi.String("string"),
    })
    
    var google_nativeHubResource = new Hub("google-nativeHubResource", HubArgs.builder()
        .createTime("string")
        .description("string")
        .hubId("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .project("string")
        .requestId("string")
        .updateTime("string")
        .build());
    
    google_native_hub_resource = google_native.networkconnectivity.v1alpha1.Hub("google-nativeHubResource",
        create_time="string",
        description="string",
        hub_id="string",
        labels={
            "string": "string",
        },
        name="string",
        project="string",
        request_id="string",
        update_time="string")
    
    const google_nativeHubResource = new google_native.networkconnectivity.v1alpha1.Hub("google-nativeHubResource", {
        createTime: "string",
        description: "string",
        hubId: "string",
        labels: {
            string: "string",
        },
        name: "string",
        project: "string",
        requestId: "string",
        updateTime: "string",
    });
    
    type: google-native:networkconnectivity/v1alpha1:Hub
    properties:
        createTime: string
        description: string
        hubId: string
        labels:
            string: string
        name: string
        project: string
        requestId: string
        updateTime: string
    

    Hub Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Hub resource accepts the following input properties:

    CreateTime string
    Time when the Hub was created.
    Description string
    Short description of the hub resource.
    HubId string
    Optional. Unique id for the Hub to create.
    Labels Dictionary<string, string>
    User-defined labels.
    Name string
    Immutable. The name of a Hub resource.
    Project string
    RequestId string
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    UpdateTime string
    Time when the Hub was updated.
    CreateTime string
    Time when the Hub was created.
    Description string
    Short description of the hub resource.
    HubId string
    Optional. Unique id for the Hub to create.
    Labels map[string]string
    User-defined labels.
    Name string
    Immutable. The name of a Hub resource.
    Project string
    RequestId string
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    UpdateTime string
    Time when the Hub was updated.
    createTime String
    Time when the Hub was created.
    description String
    Short description of the hub resource.
    hubId String
    Optional. Unique id for the Hub to create.
    labels Map<String,String>
    User-defined labels.
    name String
    Immutable. The name of a Hub resource.
    project String
    requestId String
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    updateTime String
    Time when the Hub was updated.
    createTime string
    Time when the Hub was created.
    description string
    Short description of the hub resource.
    hubId string
    Optional. Unique id for the Hub to create.
    labels {[key: string]: string}
    User-defined labels.
    name string
    Immutable. The name of a Hub resource.
    project string
    requestId string
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    updateTime string
    Time when the Hub was updated.
    create_time str
    Time when the Hub was created.
    description str
    Short description of the hub resource.
    hub_id str
    Optional. Unique id for the Hub to create.
    labels Mapping[str, str]
    User-defined labels.
    name str
    Immutable. The name of a Hub resource.
    project str
    request_id str
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    update_time str
    Time when the Hub was updated.
    createTime String
    Time when the Hub was created.
    description String
    Short description of the hub resource.
    hubId String
    Optional. Unique id for the Hub to create.
    labels Map<String>
    User-defined labels.
    name String
    Immutable. The name of a Hub resource.
    project String
    requestId String
    Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    updateTime String
    Time when the Hub was updated.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Spokes List<string>
    A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    State string
    The current lifecycle state of this Hub.
    UniqueId string
    Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
    Id string
    The provider-assigned unique ID for this managed resource.
    Spokes []string
    A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    State string
    The current lifecycle state of this Hub.
    UniqueId string
    Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
    id String
    The provider-assigned unique ID for this managed resource.
    spokes List<String>
    A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    state String
    The current lifecycle state of this Hub.
    uniqueId String
    Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
    id string
    The provider-assigned unique ID for this managed resource.
    spokes string[]
    A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    state string
    The current lifecycle state of this Hub.
    uniqueId string
    Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
    id str
    The provider-assigned unique ID for this managed resource.
    spokes Sequence[str]
    A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    state str
    The current lifecycle state of this Hub.
    unique_id str
    Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
    id String
    The provider-assigned unique ID for this managed resource.
    spokes List<String>
    A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    Deprecated: Output only. A list of the URIs of all attached spokes. This field is deprecated and will not be included in future API versions. Call ListSpokes on each region instead.

    state String
    The current lifecycle state of this Hub.
    uniqueId String
    Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.

    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