This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates an agent version. The new version points to the agent instance in the “default” environment. Auto-naming is currently not supported for this resource.
Create Version Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Version(name: string, args?: VersionArgs, opts?: CustomResourceOptions);@overload
def Version(resource_name: str,
args: Optional[VersionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Version(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None)func NewVersion(ctx *Context, name string, args *VersionArgs, opts ...ResourceOption) (*Version, error)public Version(string name, VersionArgs? args = null, CustomResourceOptions? opts = null)
public Version(String name, VersionArgs args)
public Version(String name, VersionArgs args, CustomResourceOptions options)
type: google-native:dialogflow/v2beta1:Version
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_dialogflow_v2beta1_version" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VersionArgs
- 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 VersionArgs
- 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 VersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VersionArgs
- 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 exampleversionResourceResourceFromDialogflowv2beta1 = new GoogleNative.Dialogflow.V2Beta1.Version("exampleversionResourceResourceFromDialogflowv2beta1", new()
{
Description = "string",
Location = "string",
Project = "string",
});
example, err := dialogflowv2beta1.NewVersion(ctx, "exampleversionResourceResourceFromDialogflowv2beta1", &dialogflowv2beta1.VersionArgs{
Description: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_dialogflow_v2beta1_version" "exampleversionResourceResourceFromDialogflowv2beta1" {
lifecycle {
create_before_destroy = true
}
description = "string"
location = "string"
project = "string"
}
var exampleversionResourceResourceFromDialogflowv2beta1 = new com.pulumi.googlenative.dialogflow_v2beta1.Version("exampleversionResourceResourceFromDialogflowv2beta1", com.pulumi.googlenative.dialogflow_v2beta1.VersionArgs.builder()
.description("string")
.location("string")
.project("string")
.build());
exampleversion_resource_resource_from_dialogflowv2beta1 = google_native.dialogflow.v2beta1.Version("exampleversionResourceResourceFromDialogflowv2beta1",
description="string",
location="string",
project="string")
const exampleversionResourceResourceFromDialogflowv2beta1 = new google_native.dialogflow.v2beta1.Version("exampleversionResourceResourceFromDialogflowv2beta1", {
description: "string",
location: "string",
project: "string",
});
type: google-native:dialogflow/v2beta1:Version
properties:
description: string
location: string
project: string
Version 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 Version resource accepts the following input properties:
- Description string
- Optional. The developer-provided description of this version.
- Location string
- Project string
- Description string
- Optional. The developer-provided description of this version.
- Location string
- Project string
- description string
- Optional. The developer-provided description of this version.
- location string
- project string
- description String
- Optional. The developer-provided description of this version.
- location String
- project String
- description string
- Optional. The developer-provided description of this version.
- location string
- project string
- description str
- Optional. The developer-provided description of this version.
- location str
- project str
- description String
- Optional. The developer-provided description of this version.
- location String
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Version resource produces the following output properties:
- Create
Time string - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - Status string
- The status of this version. This field is read-only and cannot be set by create and update methods.
- Version
Number int - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
- Create
Time string - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - Status string
- The status of this version. This field is read-only and cannot be set by create and update methods.
- Version
Number int - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
- create_
time string - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - status string
- The status of this version. This field is read-only and cannot be set by create and update methods.
- version_
number number - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
- create
Time String - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - status String
- The status of this version. This field is read-only and cannot be set by create and update methods.
- version
Number Integer - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
- create
Time string - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - status string
- The status of this version. This field is read-only and cannot be set by create and update methods.
- version
Number number - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
- create_
time str - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - status str
- The status of this version. This field is read-only and cannot be set by create and update methods.
- version_
number int - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
- create
Time String - The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The unique identifier of this agent version. Supported formats: -
projects//agent/versions/-projects//locations//agent/versions/ - status String
- The status of this version. This field is read-only and cannot be set by create and update methods.
- version
Number Number - The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
Look up Existing Version Resource
Get an existing Version resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Version@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Versionfunc GetVersion(ctx *Context, name string, id IDInput, state *VersionState, opts ...ResourceOption) (*Version, error)public static Version Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Version get(String name, Output<String> id, CustomResourceOptions options)resources: existingVersion: type: google-native:dialogflow/v2beta1:Version get: id: ${id}import {
to = google-native_dialogflow_v2beta1_version.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state VersionState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi