Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigeeregistry/v1.Version
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a specified version.
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: VersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Version(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
api_version_id: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
primary_spec: Optional[str] = None,
project: Optional[str] = None,
state: Optional[str] = None)
func NewVersion(ctx *Context, name string, args VersionArgs, opts ...ResourceOption) (*Version, error)
public Version(string name, VersionArgs args, CustomResourceOptions? opts = null)
public Version(String name, VersionArgs args)
public Version(String name, VersionArgs args, CustomResourceOptions options)
type: google-native:apigeeregistry/v1:Version
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 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 versionResource = new GoogleNative.ApigeeRegistry.V1.Version("versionResource", new()
{
ApiId = "string",
ApiVersionId = "string",
Annotations =
{
{ "string", "string" },
},
Description = "string",
DisplayName = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
PrimarySpec = "string",
Project = "string",
State = "string",
});
example, err := apigeeregistry.NewVersion(ctx, "versionResource", &apigeeregistry.VersionArgs{
ApiId: pulumi.String("string"),
ApiVersionId: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
PrimarySpec: pulumi.String("string"),
Project: pulumi.String("string"),
State: pulumi.String("string"),
})
var versionResource = new Version("versionResource", VersionArgs.builder()
.apiId("string")
.apiVersionId("string")
.annotations(Map.of("string", "string"))
.description("string")
.displayName("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.primarySpec("string")
.project("string")
.state("string")
.build());
version_resource = google_native.apigeeregistry.v1.Version("versionResource",
api_id="string",
api_version_id="string",
annotations={
"string": "string",
},
description="string",
display_name="string",
labels={
"string": "string",
},
location="string",
name="string",
primary_spec="string",
project="string",
state="string")
const versionResource = new google_native.apigeeregistry.v1.Version("versionResource", {
apiId: "string",
apiVersionId: "string",
annotations: {
string: "string",
},
description: "string",
displayName: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
primarySpec: "string",
project: "string",
state: "string",
});
type: google-native:apigeeregistry/v1:Version
properties:
annotations:
string: string
apiId: string
apiVersionId: string
description: string
displayName: string
labels:
string: string
location: string
name: string
primarySpec: string
project: string
state: 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:
- Api
Id string - Api
Version stringId - Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- Annotations Dictionary<string, string>
- Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
- Description string
- A detailed description.
- Display
Name string - Human-meaningful name.
- Labels Dictionary<string, string>
- Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with
apigeeregistry.googleapis.com/
and cannot be changed. - Location string
- Name string
- Resource name.
- Primary
Spec string - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
- Project string
- State string
- A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
- Api
Id string - Api
Version stringId - Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- Annotations map[string]string
- Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
- Description string
- A detailed description.
- Display
Name string - Human-meaningful name.
- Labels map[string]string
- Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with
apigeeregistry.googleapis.com/
and cannot be changed. - Location string
- Name string
- Resource name.
- Primary
Spec string - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
- Project string
- State string
- A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
- api
Id String - api
Version StringId - Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- annotations Map<String,String>
- Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
- description String
- A detailed description.
- display
Name String - Human-meaningful name.
- labels Map<String,String>
- Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with
apigeeregistry.googleapis.com/
and cannot be changed. - location String
- name String
- Resource name.
- primary
Spec String - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
- project String
- state String
- A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
- api
Id string - api
Version stringId - Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- annotations {[key: string]: string}
- Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
- description string
- A detailed description.
- display
Name string - Human-meaningful name.
- labels {[key: string]: string}
- Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with
apigeeregistry.googleapis.com/
and cannot be changed. - location string
- name string
- Resource name.
- primary
Spec string - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
- project string
- state string
- A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
- api_
id str - api_
version_ strid - Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- annotations Mapping[str, str]
- Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
- description str
- A detailed description.
- display_
name str - Human-meaningful name.
- labels Mapping[str, str]
- Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with
apigeeregistry.googleapis.com/
and cannot be changed. - location str
- name str
- Resource name.
- primary_
spec str - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
- project str
- state str
- A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
- api
Id String - api
Version StringId - Required. The ID to use for the version, which will become the final component of the version's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- annotations Map<String>
- Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
- description String
- A detailed description.
- display
Name String - Human-meaningful name.
- labels Map<String>
- Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with
apigeeregistry.googleapis.com/
and cannot be changed. - location String
- name String
- Resource name.
- primary
Spec String - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
- project String
- state String
- A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
Outputs
All input properties are implicitly available as output properties. Additionally, the Version resource produces the following output properties:
- Create
Time string - Creation timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Last update timestamp.
- Create
Time string - Creation timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Last update timestamp.
- create
Time String - Creation timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Last update timestamp.
- create
Time string - Creation timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Last update timestamp.
- create_
time str - Creation timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Last update timestamp.
- create
Time String - Creation timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Last update timestamp.
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.