Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigeeregistry/v1.Artifact
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a specified artifact.
Create Artifact Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Artifact(name: string, args: ArtifactArgs, opts?: CustomResourceOptions);
@overload
def Artifact(resource_name: str,
args: ArtifactArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Artifact(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
artifact_id: Optional[str] = None,
spec_id: Optional[str] = None,
version_id: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
contents: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
mime_type: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewArtifact(ctx *Context, name string, args ArtifactArgs, opts ...ResourceOption) (*Artifact, error)
public Artifact(string name, ArtifactArgs args, CustomResourceOptions? opts = null)
public Artifact(String name, ArtifactArgs args)
public Artifact(String name, ArtifactArgs args, CustomResourceOptions options)
type: google-native:apigeeregistry/v1:Artifact
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 ArtifactArgs
- 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 ArtifactArgs
- 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 ArtifactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArtifactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArtifactArgs
- 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 exampleartifactResourceResourceFromApigeeregistryv1 = new GoogleNative.ApigeeRegistry.V1.Artifact("exampleartifactResourceResourceFromApigeeregistryv1", new()
{
ApiId = "string",
ArtifactId = "string",
SpecId = "string",
VersionId = "string",
Annotations =
{
{ "string", "string" },
},
Contents = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
MimeType = "string",
Name = "string",
Project = "string",
});
example, err := apigeeregistry.NewArtifact(ctx, "exampleartifactResourceResourceFromApigeeregistryv1", &apigeeregistry.ArtifactArgs{
ApiId: pulumi.String("string"),
ArtifactId: pulumi.String("string"),
SpecId: pulumi.String("string"),
VersionId: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Contents: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
MimeType: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var exampleartifactResourceResourceFromApigeeregistryv1 = new Artifact("exampleartifactResourceResourceFromApigeeregistryv1", ArtifactArgs.builder()
.apiId("string")
.artifactId("string")
.specId("string")
.versionId("string")
.annotations(Map.of("string", "string"))
.contents("string")
.labels(Map.of("string", "string"))
.location("string")
.mimeType("string")
.name("string")
.project("string")
.build());
exampleartifact_resource_resource_from_apigeeregistryv1 = google_native.apigeeregistry.v1.Artifact("exampleartifactResourceResourceFromApigeeregistryv1",
api_id="string",
artifact_id="string",
spec_id="string",
version_id="string",
annotations={
"string": "string",
},
contents="string",
labels={
"string": "string",
},
location="string",
mime_type="string",
name="string",
project="string")
const exampleartifactResourceResourceFromApigeeregistryv1 = new google_native.apigeeregistry.v1.Artifact("exampleartifactResourceResourceFromApigeeregistryv1", {
apiId: "string",
artifactId: "string",
specId: "string",
versionId: "string",
annotations: {
string: "string",
},
contents: "string",
labels: {
string: "string",
},
location: "string",
mimeType: "string",
name: "string",
project: "string",
});
type: google-native:apigeeregistry/v1:Artifact
properties:
annotations:
string: string
apiId: string
artifactId: string
contents: string
labels:
string: string
location: string
mimeType: string
name: string
project: string
specId: string
versionId: string
Artifact 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 Artifact resource accepts the following input properties:
- Api
Id string - Artifact
Id string - Required. The ID to use for the artifact, which will become the final component of the artifact'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.
- Spec
Id string - 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 artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- 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 "registry.googleapis.com/" and cannot be changed.
- Location string
- Mime
Type string - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- Name string
- Resource name.
- Project string
- Api
Id string - Artifact
Id string - Required. The ID to use for the artifact, which will become the final component of the artifact'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.
- Spec
Id string - 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 artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- 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 "registry.googleapis.com/" and cannot be changed.
- Location string
- Mime
Type string - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- Name string
- Resource name.
- Project string
- api
Id String - artifact
Id String - Required. The ID to use for the artifact, which will become the final component of the artifact'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.
- spec
Id String - 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 artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- 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 "registry.googleapis.com/" and cannot be changed.
- location String
- mime
Type String - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name String
- Resource name.
- project String
- api
Id string - artifact
Id string - Required. The ID to use for the artifact, which will become the final component of the artifact'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.
- spec
Id string - 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 artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- 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 "registry.googleapis.com/" and cannot be changed.
- location string
- mime
Type string - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name string
- Resource name.
- project string
- api_
id str - artifact_
id str - Required. The ID to use for the artifact, which will become the final component of the artifact'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.
- spec_
id str - 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 artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- 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 "registry.googleapis.com/" and cannot be changed.
- location str
- mime_
type str - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name str
- Resource name.
- project str
- api
Id String - artifact
Id String - Required. The ID to use for the artifact, which will become the final component of the artifact'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.
- spec
Id String - 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 artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
- 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 "registry.googleapis.com/" and cannot be changed.
- location String
- mime
Type String - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
- name String
- Resource name.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Artifact resource produces the following output properties:
- Create
Time string - Creation timestamp.
- Hash string
- A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- Id string
- The provider-assigned unique ID for this managed resource.
- Size
Bytes int - The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- Update
Time string - Last update timestamp.
- Create
Time string - Creation timestamp.
- Hash string
- A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- Id string
- The provider-assigned unique ID for this managed resource.
- Size
Bytes int - The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- Update
Time string - Last update timestamp.
- create
Time String - Creation timestamp.
- hash String
- A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- id String
- The provider-assigned unique ID for this managed resource.
- size
Bytes Integer - The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update
Time String - Last update timestamp.
- create
Time string - Creation timestamp.
- hash string
- A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- id string
- The provider-assigned unique ID for this managed resource.
- size
Bytes number - The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update
Time string - Last update timestamp.
- create_
time str - Creation timestamp.
- hash str
- A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- id str
- The provider-assigned unique ID for this managed resource.
- size_
bytes int - The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- update_
time str - Last update timestamp.
- create
Time String - Creation timestamp.
- hash String
- A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
- id String
- The provider-assigned unique ID for this managed resource.
- size
Bytes Number - The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
- 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.