Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.apigeeregistry/v1.getSpec
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Returns a specified spec.
Using getSpec
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSpec(args: GetSpecArgs, opts?: InvokeOptions): Promise<GetSpecResult>
function getSpecOutput(args: GetSpecOutputArgs, opts?: InvokeOptions): Output<GetSpecResult>
def get_spec(api_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
spec_id: Optional[str] = None,
version_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSpecResult
def get_spec_output(api_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
spec_id: Optional[pulumi.Input[str]] = None,
version_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSpecResult]
func LookupSpec(ctx *Context, args *LookupSpecArgs, opts ...InvokeOption) (*LookupSpecResult, error)
func LookupSpecOutput(ctx *Context, args *LookupSpecOutputArgs, opts ...InvokeOption) LookupSpecResultOutput
> Note: This function is named LookupSpec
in the Go SDK.
public static class GetSpec
{
public static Task<GetSpecResult> InvokeAsync(GetSpecArgs args, InvokeOptions? opts = null)
public static Output<GetSpecResult> Invoke(GetSpecInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSpecResult> getSpec(GetSpecArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:apigeeregistry/v1:getSpec
arguments:
# arguments dictionary
The following arguments are supported:
- api_
id str - location str
- spec_
id str - version_
id str - project str
getSpec Result
The following output properties are available:
- 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.
- Create
Time string - Creation timestamp; when the spec resource was created.
- Description string
- A detailed description.
- Filename string
- A possibly-hierarchical name used to refer to the spec from other specs.
- Hash string
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- 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. - 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.
- 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.
- 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.
- 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.
- Create
Time string - Creation timestamp; when the spec resource was created.
- Description string
- A detailed description.
- Filename string
- A possibly-hierarchical name used to refer to the spec from other specs.
- Hash string
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- 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. - 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.
- 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.
- 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.
- 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.
- create
Time String - Creation timestamp; when the spec resource was created.
- description String
- A detailed description.
- filename String
- A possibly-hierarchical name used to refer to the spec from other specs.
- hash String
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- 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. - 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.
- 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.
- 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.
- 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.
- create
Time string - Creation timestamp; when the spec resource was created.
- description string
- A detailed description.
- filename string
- A possibly-hierarchical name used to refer to the spec from other specs.
- hash string
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- 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. - 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.
- 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.
- 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.
- 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.
- create_
time str - Creation timestamp; when the spec resource was created.
- description str
- A detailed description.
- filename str
- A possibly-hierarchical name used to refer to the spec from other specs.
- hash str
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- 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. - 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.
- 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.
- 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.
- 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.
- create
Time String - Creation timestamp; when the spec resource was created.
- description String
- A detailed description.
- filename String
- A possibly-hierarchical name used to refer to the spec from other specs.
- hash String
- A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
- 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. - 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.
- 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.
- 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.
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.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi