Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.speech/v1.CustomClass
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create a custom class.
Create CustomClass Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomClass(name: string, args: CustomClassArgs, opts?: CustomResourceOptions);
@overload
def CustomClass(resource_name: str,
args: CustomClassArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomClass(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_class_id: Optional[str] = None,
items: Optional[Sequence[ClassItemArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewCustomClass(ctx *Context, name string, args CustomClassArgs, opts ...ResourceOption) (*CustomClass, error)
public CustomClass(string name, CustomClassArgs args, CustomResourceOptions? opts = null)
public CustomClass(String name, CustomClassArgs args)
public CustomClass(String name, CustomClassArgs args, CustomResourceOptions options)
type: google-native:speech/v1:CustomClass
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 CustomClassArgs
- 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 CustomClassArgs
- 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 CustomClassArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomClassArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomClassArgs
- 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 customClassResource = new GoogleNative.Speech.V1.CustomClass("customClassResource", new()
{
CustomClassId = "string",
Items = new[]
{
new GoogleNative.Speech.V1.Inputs.ClassItemArgs
{
Value = "string",
},
},
Location = "string",
Name = "string",
Project = "string",
});
example, err := speech.NewCustomClass(ctx, "customClassResource", &speech.CustomClassArgs{
CustomClassId: pulumi.String("string"),
Items: speech.ClassItemArray{
&speech.ClassItemArgs{
Value: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var customClassResource = new CustomClass("customClassResource", CustomClassArgs.builder()
.customClassId("string")
.items(ClassItemArgs.builder()
.value("string")
.build())
.location("string")
.name("string")
.project("string")
.build());
custom_class_resource = google_native.speech.v1.CustomClass("customClassResource",
custom_class_id="string",
items=[{
"value": "string",
}],
location="string",
name="string",
project="string")
const customClassResource = new google_native.speech.v1.CustomClass("customClassResource", {
customClassId: "string",
items: [{
value: "string",
}],
location: "string",
name: "string",
project: "string",
});
type: google-native:speech/v1:CustomClass
properties:
customClassId: string
items:
- value: string
location: string
name: string
project: string
CustomClass 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 CustomClass resource accepts the following input properties:
- Custom
Class stringId - The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
- Items
List<Pulumi.
Google Native. Speech. V1. Inputs. Class Item> - A collection of class items.
- Location string
- Name string
- The resource name of the custom class.
- Project string
- Custom
Class stringId - The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
- Items
[]Class
Item Args - A collection of class items.
- Location string
- Name string
- The resource name of the custom class.
- Project string
- custom
Class StringId - The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
- items
List<Class
Item> - A collection of class items.
- location String
- name String
- The resource name of the custom class.
- project String
- custom
Class stringId - The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
- items
Class
Item[] - A collection of class items.
- location string
- name string
- The resource name of the custom class.
- project string
- custom_
class_ strid - The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
- items
Sequence[Class
Item Args] - A collection of class items.
- location str
- name str
- The resource name of the custom class.
- project str
- custom
Class StringId - The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.
- items List<Property Map>
- A collection of class items.
- location String
- name String
- The resource name of the custom class.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomClass resource produces the following output properties:
- Annotations Dictionary<string, string>
- Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
- Delete
Time string - The time at which this resource was requested for deletion. This field is not used.
- Display
Name string - User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
- Etag string
- This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
- Expire
Time string - The time at which this resource will be purged. This field is not used.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringName - The KMS key name with which the content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
. - Kms
Key stringVersion Name - The KMS key version name with which content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
. - Reconciling bool
- Whether or not this CustomClass is in the process of being updated. This field is not used.
- State string
- The CustomClass lifecycle state. This field is not used.
- Uid string
- System-assigned unique identifier for the CustomClass. This field is not used.
- Annotations map[string]string
- Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
- Delete
Time string - The time at which this resource was requested for deletion. This field is not used.
- Display
Name string - User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
- Etag string
- This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
- Expire
Time string - The time at which this resource will be purged. This field is not used.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringName - The KMS key name with which the content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
. - Kms
Key stringVersion Name - The KMS key version name with which content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
. - Reconciling bool
- Whether or not this CustomClass is in the process of being updated. This field is not used.
- State string
- The CustomClass lifecycle state. This field is not used.
- Uid string
- System-assigned unique identifier for the CustomClass. This field is not used.
- annotations Map<String,String>
- Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
- delete
Time String - The time at which this resource was requested for deletion. This field is not used.
- display
Name String - User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
- etag String
- This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
- expire
Time String - The time at which this resource will be purged. This field is not used.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringName - The KMS key name with which the content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
. - kms
Key StringVersion Name - The KMS key version name with which content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
. - reconciling Boolean
- Whether or not this CustomClass is in the process of being updated. This field is not used.
- state String
- The CustomClass lifecycle state. This field is not used.
- uid String
- System-assigned unique identifier for the CustomClass. This field is not used.
- annotations {[key: string]: string}
- Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
- delete
Time string - The time at which this resource was requested for deletion. This field is not used.
- display
Name string - User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
- etag string
- This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
- expire
Time string - The time at which this resource will be purged. This field is not used.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringName - The KMS key name with which the content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
. - kms
Key stringVersion Name - The KMS key version name with which content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
. - reconciling boolean
- Whether or not this CustomClass is in the process of being updated. This field is not used.
- state string
- The CustomClass lifecycle state. This field is not used.
- uid string
- System-assigned unique identifier for the CustomClass. This field is not used.
- annotations Mapping[str, str]
- Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
- delete_
time str - The time at which this resource was requested for deletion. This field is not used.
- display_
name str - User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
- etag str
- This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
- expire_
time str - The time at which this resource will be purged. This field is not used.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strname - The KMS key name with which the content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
. - kms_
key_ strversion_ name - The KMS key version name with which content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
. - reconciling bool
- Whether or not this CustomClass is in the process of being updated. This field is not used.
- state str
- The CustomClass lifecycle state. This field is not used.
- uid str
- System-assigned unique identifier for the CustomClass. This field is not used.
- annotations Map<String>
- Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
- delete
Time String - The time at which this resource was requested for deletion. This field is not used.
- display
Name String - User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
- etag String
- This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
- expire
Time String - The time at which this resource will be purged. This field is not used.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringName - The KMS key name with which the content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
. - kms
Key StringVersion Name - The KMS key version name with which content of the ClassItem is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
. - reconciling Boolean
- Whether or not this CustomClass is in the process of being updated. This field is not used.
- state String
- The CustomClass lifecycle state. This field is not used.
- uid String
- System-assigned unique identifier for the CustomClass. This field is not used.
Supporting Types
ClassItem, ClassItemArgs
- Value string
- The class item's value.
- Value string
- The class item's value.
- value String
- The class item's value.
- value string
- The class item's value.
- value str
- The class item's value.
- value String
- The class item's value.
ClassItemResponse, ClassItemResponseArgs
- Value string
- The class item's value.
- Value string
- The class item's value.
- value String
- The class item's value.
- value string
- The class item's value.
- value str
- The class item's value.
- value String
- The class item's value.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.