Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datalabeling/v1beta1.AnnotationSpecSet
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates an annotation spec set by providing a set of labels. Auto-naming is currently not supported for this resource.
Create AnnotationSpecSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AnnotationSpecSet(name: string, args: AnnotationSpecSetArgs, opts?: CustomResourceOptions);
@overload
def AnnotationSpecSet(resource_name: str,
args: AnnotationSpecSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AnnotationSpecSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
annotation_specs: Optional[Sequence[GoogleCloudDatalabelingV1beta1AnnotationSpecArgs]] = None,
display_name: Optional[str] = None,
description: Optional[str] = None,
project: Optional[str] = None)
func NewAnnotationSpecSet(ctx *Context, name string, args AnnotationSpecSetArgs, opts ...ResourceOption) (*AnnotationSpecSet, error)
public AnnotationSpecSet(string name, AnnotationSpecSetArgs args, CustomResourceOptions? opts = null)
public AnnotationSpecSet(String name, AnnotationSpecSetArgs args)
public AnnotationSpecSet(String name, AnnotationSpecSetArgs args, CustomResourceOptions options)
type: google-native:datalabeling/v1beta1:AnnotationSpecSet
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 AnnotationSpecSetArgs
- 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 AnnotationSpecSetArgs
- 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 AnnotationSpecSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnnotationSpecSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AnnotationSpecSetArgs
- 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 annotationSpecSetResource = new GoogleNative.DataLabeling.V1Beta1.AnnotationSpecSet("annotationSpecSetResource", new()
{
AnnotationSpecs = new[]
{
new GoogleNative.DataLabeling.V1Beta1.Inputs.GoogleCloudDatalabelingV1beta1AnnotationSpecArgs
{
DisplayName = "string",
Description = "string",
},
},
DisplayName = "string",
Description = "string",
Project = "string",
});
example, err := datalabeling.NewAnnotationSpecSet(ctx, "annotationSpecSetResource", &datalabeling.AnnotationSpecSetArgs{
AnnotationSpecs: datalabeling.GoogleCloudDatalabelingV1beta1AnnotationSpecArray{
&datalabeling.GoogleCloudDatalabelingV1beta1AnnotationSpecArgs{
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
},
},
DisplayName: pulumi.String("string"),
Description: pulumi.String("string"),
Project: pulumi.String("string"),
})
var annotationSpecSetResource = new AnnotationSpecSet("annotationSpecSetResource", AnnotationSpecSetArgs.builder()
.annotationSpecs(GoogleCloudDatalabelingV1beta1AnnotationSpecArgs.builder()
.displayName("string")
.description("string")
.build())
.displayName("string")
.description("string")
.project("string")
.build());
annotation_spec_set_resource = google_native.datalabeling.v1beta1.AnnotationSpecSet("annotationSpecSetResource",
annotation_specs=[{
"display_name": "string",
"description": "string",
}],
display_name="string",
description="string",
project="string")
const annotationSpecSetResource = new google_native.datalabeling.v1beta1.AnnotationSpecSet("annotationSpecSetResource", {
annotationSpecs: [{
displayName: "string",
description: "string",
}],
displayName: "string",
description: "string",
project: "string",
});
type: google-native:datalabeling/v1beta1:AnnotationSpecSet
properties:
annotationSpecs:
- description: string
displayName: string
description: string
displayName: string
project: string
AnnotationSpecSet 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 AnnotationSpecSet resource accepts the following input properties:
- Annotation
Specs List<Pulumi.Google Native. Data Labeling. V1Beta1. Inputs. Google Cloud Datalabeling V1beta1Annotation Spec> - The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
- Display
Name string - The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
- Description string
- Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
- Project string
- Annotation
Specs []GoogleCloud Datalabeling V1beta1Annotation Spec Args - The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
- Display
Name string - The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
- Description string
- Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
- Project string
- annotation
Specs List<GoogleCloud Datalabeling V1beta1Annotation Spec> - The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
- display
Name String - The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
- description String
- Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
- project String
- annotation
Specs GoogleCloud Datalabeling V1beta1Annotation Spec[] - The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
- display
Name string - The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
- description string
- Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
- project string
- annotation_
specs Sequence[GoogleCloud Datalabeling V1beta1Annotation Spec Args] - The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
- display_
name str - The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
- description str
- Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
- project str
- annotation
Specs List<Property Map> - The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
- display
Name String - The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.
- description String
- Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the AnnotationSpecSet resource produces the following output properties:
- Blocking
Resources List<string> - The names of any related resources that are blocking changes to the annotation spec set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
- Blocking
Resources []string - The names of any related resources that are blocking changes to the annotation spec set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
- blocking
Resources List<String> - The names of any related resources that are blocking changes to the annotation spec set.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
- blocking
Resources string[] - The names of any related resources that are blocking changes to the annotation spec set.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
- blocking_
resources Sequence[str] - The names of any related resources that are blocking changes to the annotation spec set.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
- blocking
Resources List<String> - The names of any related resources that are blocking changes to the annotation spec set.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
Supporting Types
GoogleCloudDatalabelingV1beta1AnnotationSpec, GoogleCloudDatalabelingV1beta1AnnotationSpecArgs
- Display
Name string - The display name of the AnnotationSpec. Maximum of 64 characters.
- Description string
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- Display
Name string - The display name of the AnnotationSpec. Maximum of 64 characters.
- Description string
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display
Name String - The display name of the AnnotationSpec. Maximum of 64 characters.
- description String
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display
Name string - The display name of the AnnotationSpec. Maximum of 64 characters.
- description string
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display_
name str - The display name of the AnnotationSpec. Maximum of 64 characters.
- description str
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display
Name String - The display name of the AnnotationSpec. Maximum of 64 characters.
- description String
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
GoogleCloudDatalabelingV1beta1AnnotationSpecResponse, GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArgs
- Description string
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- Display
Name string - The display name of the AnnotationSpec. Maximum of 64 characters.
- Index int
- This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes
dog
andcat
, might contain one AnnotationSpec with{ display_name: "dog", index: 0 }
and one AnnotationSpec with{ display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.
- Description string
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- Display
Name string - The display name of the AnnotationSpec. Maximum of 64 characters.
- Index int
- This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes
dog
andcat
, might contain one AnnotationSpec with{ display_name: "dog", index: 0 }
and one AnnotationSpec with{ display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.
- description String
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display
Name String - The display name of the AnnotationSpec. Maximum of 64 characters.
- index Integer
- This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes
dog
andcat
, might contain one AnnotationSpec with{ display_name: "dog", index: 0 }
and one AnnotationSpec with{ display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.
- description string
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display
Name string - The display name of the AnnotationSpec. Maximum of 64 characters.
- index number
- This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes
dog
andcat
, might contain one AnnotationSpec with{ display_name: "dog", index: 0 }
and one AnnotationSpec with{ display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.
- description str
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display_
name str - The display name of the AnnotationSpec. Maximum of 64 characters.
- index int
- This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes
dog
andcat
, might contain one AnnotationSpec with{ display_name: "dog", index: 0 }
and one AnnotationSpec with{ display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.
- description String
- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
- display
Name String - The display name of the AnnotationSpec. Maximum of 64 characters.
- index Number
- This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes
dog
andcat
, might contain one AnnotationSpec with{ display_name: "dog", index: 0 }
and one AnnotationSpec with{ display_name: "cat", index: 1 }
. This is especially useful for model training as it encodes the string labels into numeric values.
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.