Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigeeregistry/v1.Spec
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a specified spec.
Create Spec Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Spec(name: string, args: SpecArgs, opts?: CustomResourceOptions);
@overload
def Spec(resource_name: str,
args: SpecArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Spec(resource_name: str,
opts: Optional[ResourceOptions] = None,
version_id: Optional[str] = None,
api_id: Optional[str] = None,
api_spec_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
filename: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
mime_type: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
source_uri: Optional[str] = None,
contents: Optional[str] = None)
func NewSpec(ctx *Context, name string, args SpecArgs, opts ...ResourceOption) (*Spec, error)
public Spec(string name, SpecArgs args, CustomResourceOptions? opts = null)
type: google-native:apigeeregistry/v1:Spec
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 SpecArgs
- 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 SpecArgs
- 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 SpecArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpecArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpecArgs
- 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 specResource = new GoogleNative.ApigeeRegistry.V1.Spec("specResource", new()
{
VersionId = "string",
ApiId = "string",
ApiSpecId = "string",
Labels =
{
{ "string", "string" },
},
Description = "string",
Filename = "string",
Annotations =
{
{ "string", "string" },
},
Location = "string",
MimeType = "string",
Name = "string",
Project = "string",
SourceUri = "string",
Contents = "string",
});
example, err := apigeeregistry.NewSpec(ctx, "specResource", &apigeeregistry.SpecArgs{
VersionId: pulumi.String("string"),
ApiId: pulumi.String("string"),
ApiSpecId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Filename: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
MimeType: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
SourceUri: pulumi.String("string"),
Contents: pulumi.String("string"),
})
var specResource = new Spec("specResource", SpecArgs.builder()
.versionId("string")
.apiId("string")
.apiSpecId("string")
.labels(Map.of("string", "string"))
.description("string")
.filename("string")
.annotations(Map.of("string", "string"))
.location("string")
.mimeType("string")
.name("string")
.project("string")
.sourceUri("string")
.contents("string")
.build());
spec_resource = google_native.apigeeregistry.v1.Spec("specResource",
version_id="string",
api_id="string",
api_spec_id="string",
labels={
"string": "string",
},
description="string",
filename="string",
annotations={
"string": "string",
},
location="string",
mime_type="string",
name="string",
project="string",
source_uri="string",
contents="string")
const specResource = new google_native.apigeeregistry.v1.Spec("specResource", {
versionId: "string",
apiId: "string",
apiSpecId: "string",
labels: {
string: "string",
},
description: "string",
filename: "string",
annotations: {
string: "string",
},
location: "string",
mimeType: "string",
name: "string",
project: "string",
sourceUri: "string",
contents: "string",
});
type: google-native:apigeeregistry/v1:Spec
properties:
annotations:
string: string
apiId: string
apiSpecId: string
contents: string
description: string
filename: string
labels:
string: string
location: string
mimeType: string
name: string
project: string
sourceUri: string
versionId: string
Spec 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 Spec resource accepts the following input properties:
- Api
Id string - Api
Spec stringId - Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- Version
Id string - 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.
- Contents string
- Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
- Description string
- A detailed description.
- Filename string
- A possibly-hierarchical name used to refer to the spec from other specs.
- 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
- Mime
Type string - A style (format) descriptor for this spec that is specified as a Media Type. Possible values include
application/vnd.apigee.proto
,application/vnd.apigee.openapi
, andapplication/vnd.apigee.graphql
, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip"). - Name string
- Resource name.
- Project string
- Source
Uri string - The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
- Api
Id string - Api
Spec stringId - Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- Version
Id string - 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.
- Contents string
- Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
- Description string
- A detailed description.
- Filename string
- A possibly-hierarchical name used to refer to the spec from other specs.
- 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
- Mime
Type string - A style (format) descriptor for this spec that is specified as a Media Type. Possible values include
application/vnd.apigee.proto
,application/vnd.apigee.openapi
, andapplication/vnd.apigee.graphql
, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip"). - Name string
- Resource name.
- Project string
- Source
Uri string - The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
- api
Id String - api
Spec StringId - Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- version
Id String - 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.
- contents String
- Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
- description String
- A detailed description.
- filename String
- A possibly-hierarchical name used to refer to the spec from other specs.
- 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
- mime
Type String - A style (format) descriptor for this spec that is specified as a Media Type. Possible values include
application/vnd.apigee.proto
,application/vnd.apigee.openapi
, andapplication/vnd.apigee.graphql
, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip"). - name String
- Resource name.
- project String
- source
Uri String - The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
- api
Id string - api
Spec stringId - Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- version
Id string - 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.
- contents string
- Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
- description string
- A detailed description.
- filename string
- A possibly-hierarchical name used to refer to the spec from other specs.
- 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
- mime
Type string - A style (format) descriptor for this spec that is specified as a Media Type. Possible values include
application/vnd.apigee.proto
,application/vnd.apigee.openapi
, andapplication/vnd.apigee.graphql
, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip"). - name string
- Resource name.
- project string
- source
Uri string - The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
- api_
id str - api_
spec_ strid - Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- version_
id str - 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.
- contents str
- Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
- description str
- A detailed description.
- filename str
- A possibly-hierarchical name used to refer to the spec from other specs.
- 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
- mime_
type str - A style (format) descriptor for this spec that is specified as a Media Type. Possible values include
application/vnd.apigee.proto
,application/vnd.apigee.openapi
, andapplication/vnd.apigee.graphql
, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip"). - name str
- Resource name.
- project str
- source_
uri str - The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
- api
Id String - api
Spec StringId - Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
- version
Id String - 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.
- contents String
- Input only. The contents of the spec. Provided by API callers when specs are created or updated. To access the contents of a spec, use GetApiSpecContents.
- description String
- A detailed description.
- filename String
- A possibly-hierarchical name used to refer to the spec from other specs.
- 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
- mime
Type String - A style (format) descriptor for this spec that is specified as a Media Type. Possible values include
application/vnd.apigee.proto
,application/vnd.apigee.openapi
, andapplication/vnd.apigee.graphql
, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip"). - name String
- Resource name.
- project String
- source
Uri String - The original source URI of the spec (if one exists). This is an external location that can be used for reference purposes but which may not be authoritative since this external resource may change after the spec is retrieved.
Outputs
All input properties are implicitly available as output properties. Additionally, the Spec resource produces the following output properties:
- Create
Time string - Creation timestamp; when the spec resource was created.
- Hash string
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Create stringTime - Revision creation timestamp; when the represented revision was created.
- Revision
Id string - Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
- Revision
Update stringTime - Last update timestamp: when the represented revision was last modified.
- Size
Bytes int - The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
- Create
Time string - Creation timestamp; when the spec resource was created.
- Hash string
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Create stringTime - Revision creation timestamp; when the represented revision was created.
- Revision
Id string - Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
- Revision
Update stringTime - Last update timestamp: when the represented revision was last modified.
- Size
Bytes int - The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
- create
Time String - Creation timestamp; when the spec resource was created.
- hash String
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Create StringTime - Revision creation timestamp; when the represented revision was created.
- revision
Id String - Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
- revision
Update StringTime - Last update timestamp: when the represented revision was last modified.
- size
Bytes Integer - The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
- create
Time string - Creation timestamp; when the spec resource was created.
- hash string
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- id string
- The provider-assigned unique ID for this managed resource.
- revision
Create stringTime - Revision creation timestamp; when the represented revision was created.
- revision
Id string - Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
- revision
Update stringTime - Last update timestamp: when the represented revision was last modified.
- size
Bytes number - The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
- create_
time str - Creation timestamp; when the spec resource was created.
- hash str
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- id str
- The provider-assigned unique ID for this managed resource.
- revision_
create_ strtime - Revision creation timestamp; when the represented revision was created.
- revision_
id str - Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
- revision_
update_ strtime - Last update timestamp: when the represented revision was last modified.
- size_
bytes int - The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
- create
Time String - Creation timestamp; when the spec resource was created.
- hash String
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Create StringTime - Revision creation timestamp; when the represented revision was created.
- revision
Id String - Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
- revision
Update StringTime - Last update timestamp: when the represented revision was last modified.
- size
Bytes Number - The size of the spec file in bytes. If the spec is gzipped, this is the size of the uncompressed spec.
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.