genericartifactscontent

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactByPath

type ArtifactByPath struct {
	pulumi.CustomResourceState

	ArtifactId pulumi.StringOutput `pulumi:"artifactId"`
	// A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.
	ArtifactPath pulumi.StringOutput `pulumi:"artifactPath"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// Content to be uploaded as the artifact. Cannot be defined if `source` is defined.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Content pulumi.StringPtrOutput `pulumi:"content"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255.  Example: `project01/my-web-app/artifact-abc:1.0.0`
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository.
	RepositoryId pulumi.StringOutput `pulumi:"repositoryId"`
	// The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
	Sha256 pulumi.StringOutput `pulumi:"sha256"`
	// The size of the artifact in bytes.
	SizeInBytes pulumi.StringOutput `pulumi:"sizeInBytes"`
	// A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined.
	Source pulumi.StringPtrOutput `pulumi:"source"`
	// The current state of the artifact.
	State pulumi.StringOutput `pulumi:"state"`
	// An RFC 3339 timestamp indicating when the repository was created.
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
	Version pulumi.StringOutput `pulumi:"version"`
}

Provides the Artifact By Path resource in Oracle Cloud Infrastructure Generic Artifacts Content service. This resource supports upload/download the content of a generic artifact by specifying the repository id, artifact path, and artifact version

## Note

This resource is not supported to delete generic artifact. In order to delete generic artifact, you can use `Artifacts.GenericArtifact`

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/GenericArtifactsContent"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := GenericArtifactsContent.NewArtifactByPath(ctx, "test_artifact_by_path", &GenericArtifactsContent.ArtifactByPathArgs{
			ArtifactPath: pulumi.Any(artifactPath),
			RepositoryId: pulumi.Any(testRepository.Id),
			Version:      pulumi.Any(version),
			Source:       pulumi.Any(source),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetArtifactByPath

func GetArtifactByPath(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ArtifactByPathState, opts ...pulumi.ResourceOption) (*ArtifactByPath, error)

GetArtifactByPath gets an existing ArtifactByPath resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewArtifactByPath

func NewArtifactByPath(ctx *pulumi.Context,
	name string, args *ArtifactByPathArgs, opts ...pulumi.ResourceOption) (*ArtifactByPath, error)

NewArtifactByPath registers a new resource with the given unique name, arguments, and options.

func (*ArtifactByPath) ElementType

func (*ArtifactByPath) ElementType() reflect.Type

func (*ArtifactByPath) ToArtifactByPathOutput

func (i *ArtifactByPath) ToArtifactByPathOutput() ArtifactByPathOutput

func (*ArtifactByPath) ToArtifactByPathOutputWithContext

func (i *ArtifactByPath) ToArtifactByPathOutputWithContext(ctx context.Context) ArtifactByPathOutput

type ArtifactByPathArgs

type ArtifactByPathArgs struct {
	// A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.
	ArtifactPath pulumi.StringInput
	// Content to be uploaded as the artifact. Cannot be defined if `source` is defined.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Content pulumi.StringPtrInput
	// The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository.
	RepositoryId pulumi.StringInput
	// A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined.
	Source pulumi.StringPtrInput
	// A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
	Version pulumi.StringInput
}

The set of arguments for constructing a ArtifactByPath resource.

func (ArtifactByPathArgs) ElementType

func (ArtifactByPathArgs) ElementType() reflect.Type

type ArtifactByPathArray

type ArtifactByPathArray []ArtifactByPathInput

func (ArtifactByPathArray) ElementType

func (ArtifactByPathArray) ElementType() reflect.Type

func (ArtifactByPathArray) ToArtifactByPathArrayOutput

func (i ArtifactByPathArray) ToArtifactByPathArrayOutput() ArtifactByPathArrayOutput

func (ArtifactByPathArray) ToArtifactByPathArrayOutputWithContext

func (i ArtifactByPathArray) ToArtifactByPathArrayOutputWithContext(ctx context.Context) ArtifactByPathArrayOutput

type ArtifactByPathArrayInput

type ArtifactByPathArrayInput interface {
	pulumi.Input

	ToArtifactByPathArrayOutput() ArtifactByPathArrayOutput
	ToArtifactByPathArrayOutputWithContext(context.Context) ArtifactByPathArrayOutput
}

ArtifactByPathArrayInput is an input type that accepts ArtifactByPathArray and ArtifactByPathArrayOutput values. You can construct a concrete instance of `ArtifactByPathArrayInput` via:

ArtifactByPathArray{ ArtifactByPathArgs{...} }

type ArtifactByPathArrayOutput

type ArtifactByPathArrayOutput struct{ *pulumi.OutputState }

func (ArtifactByPathArrayOutput) ElementType

func (ArtifactByPathArrayOutput) ElementType() reflect.Type

func (ArtifactByPathArrayOutput) Index

func (ArtifactByPathArrayOutput) ToArtifactByPathArrayOutput

func (o ArtifactByPathArrayOutput) ToArtifactByPathArrayOutput() ArtifactByPathArrayOutput

func (ArtifactByPathArrayOutput) ToArtifactByPathArrayOutputWithContext

func (o ArtifactByPathArrayOutput) ToArtifactByPathArrayOutputWithContext(ctx context.Context) ArtifactByPathArrayOutput

type ArtifactByPathInput

type ArtifactByPathInput interface {
	pulumi.Input

	ToArtifactByPathOutput() ArtifactByPathOutput
	ToArtifactByPathOutputWithContext(ctx context.Context) ArtifactByPathOutput
}

type ArtifactByPathMap

type ArtifactByPathMap map[string]ArtifactByPathInput

func (ArtifactByPathMap) ElementType

func (ArtifactByPathMap) ElementType() reflect.Type

func (ArtifactByPathMap) ToArtifactByPathMapOutput

func (i ArtifactByPathMap) ToArtifactByPathMapOutput() ArtifactByPathMapOutput

func (ArtifactByPathMap) ToArtifactByPathMapOutputWithContext

func (i ArtifactByPathMap) ToArtifactByPathMapOutputWithContext(ctx context.Context) ArtifactByPathMapOutput

type ArtifactByPathMapInput

type ArtifactByPathMapInput interface {
	pulumi.Input

	ToArtifactByPathMapOutput() ArtifactByPathMapOutput
	ToArtifactByPathMapOutputWithContext(context.Context) ArtifactByPathMapOutput
}

ArtifactByPathMapInput is an input type that accepts ArtifactByPathMap and ArtifactByPathMapOutput values. You can construct a concrete instance of `ArtifactByPathMapInput` via:

ArtifactByPathMap{ "key": ArtifactByPathArgs{...} }

type ArtifactByPathMapOutput

type ArtifactByPathMapOutput struct{ *pulumi.OutputState }

func (ArtifactByPathMapOutput) ElementType

func (ArtifactByPathMapOutput) ElementType() reflect.Type

func (ArtifactByPathMapOutput) MapIndex

func (ArtifactByPathMapOutput) ToArtifactByPathMapOutput

func (o ArtifactByPathMapOutput) ToArtifactByPathMapOutput() ArtifactByPathMapOutput

func (ArtifactByPathMapOutput) ToArtifactByPathMapOutputWithContext

func (o ArtifactByPathMapOutput) ToArtifactByPathMapOutputWithContext(ctx context.Context) ArtifactByPathMapOutput

type ArtifactByPathOutput

type ArtifactByPathOutput struct{ *pulumi.OutputState }

func (ArtifactByPathOutput) ArtifactId added in v0.4.0

func (o ArtifactByPathOutput) ArtifactId() pulumi.StringOutput

func (ArtifactByPathOutput) ArtifactPath added in v0.4.0

func (o ArtifactByPathOutput) ArtifactPath() pulumi.StringOutput

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

func (ArtifactByPathOutput) CompartmentId added in v0.4.0

func (o ArtifactByPathOutput) CompartmentId() pulumi.StringOutput

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.

func (ArtifactByPathOutput) Content added in v0.4.0

Content to be uploaded as the artifact. Cannot be defined if `source` is defined.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (ArtifactByPathOutput) DefinedTags added in v0.4.0

func (o ArtifactByPathOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (ArtifactByPathOutput) DisplayName added in v0.4.0

func (o ArtifactByPathOutput) DisplayName() pulumi.StringOutput

The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0`

func (ArtifactByPathOutput) ElementType

func (ArtifactByPathOutput) ElementType() reflect.Type

func (ArtifactByPathOutput) FreeformTags added in v0.4.0

func (o ArtifactByPathOutput) FreeformTags() pulumi.MapOutput

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (ArtifactByPathOutput) RepositoryId added in v0.4.0

func (o ArtifactByPathOutput) RepositoryId() pulumi.StringOutput

The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository.

func (ArtifactByPathOutput) Sha256 added in v0.4.0

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

func (ArtifactByPathOutput) SizeInBytes added in v0.4.0

func (o ArtifactByPathOutput) SizeInBytes() pulumi.StringOutput

The size of the artifact in bytes.

func (ArtifactByPathOutput) Source added in v0.4.0

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined.

func (ArtifactByPathOutput) State added in v0.4.0

The current state of the artifact.

func (ArtifactByPathOutput) TimeCreated added in v0.4.0

func (o ArtifactByPathOutput) TimeCreated() pulumi.StringOutput

An RFC 3339 timestamp indicating when the repository was created.

func (ArtifactByPathOutput) ToArtifactByPathOutput

func (o ArtifactByPathOutput) ToArtifactByPathOutput() ArtifactByPathOutput

func (ArtifactByPathOutput) ToArtifactByPathOutputWithContext

func (o ArtifactByPathOutput) ToArtifactByPathOutputWithContext(ctx context.Context) ArtifactByPathOutput

func (ArtifactByPathOutput) Version added in v0.4.0

A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`

type ArtifactByPathState

type ArtifactByPathState struct {
	ArtifactId pulumi.StringPtrInput
	// A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.
	ArtifactPath pulumi.StringPtrInput
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment.
	CompartmentId pulumi.StringPtrInput
	// Content to be uploaded as the artifact. Cannot be defined if `source` is defined.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Content pulumi.StringPtrInput
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// The artifact name with the format of `<artifact-path>:<artifact-version>`. The artifact name is truncated to a maximum length of 255.  Example: `project01/my-web-app/artifact-abc:1.0.0`
	DisplayName pulumi.StringPtrInput
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository.
	RepositoryId pulumi.StringPtrInput
	// The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.
	Sha256 pulumi.StringPtrInput
	// The size of the artifact in bytes.
	SizeInBytes pulumi.StringPtrInput
	// A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined.
	Source pulumi.StringPtrInput
	// The current state of the artifact.
	State pulumi.StringPtrInput
	// An RFC 3339 timestamp indicating when the repository was created.
	TimeCreated pulumi.StringPtrInput
	// A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2`
	Version pulumi.StringPtrInput
}

func (ArtifactByPathState) ElementType

func (ArtifactByPathState) ElementType() reflect.Type

type GetGenericArtifactsContentArgs

type GetGenericArtifactsContentArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact.  Example: `ocid1.genericartifact.oc1..exampleuniqueID`
	ArtifactId string `pulumi:"artifactId"`
}

A collection of arguments for invoking getGenericArtifactsContent.

type GetGenericArtifactsContentOutputArgs

type GetGenericArtifactsContentOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the artifact.  Example: `ocid1.genericartifact.oc1..exampleuniqueID`
	ArtifactId pulumi.StringInput `pulumi:"artifactId"`
}

A collection of arguments for invoking getGenericArtifactsContent.

func (GetGenericArtifactsContentOutputArgs) ElementType

type GetGenericArtifactsContentResult

type GetGenericArtifactsContentResult struct {
	ArtifactId string `pulumi:"artifactId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getGenericArtifactsContent.

func GetGenericArtifactsContent

func GetGenericArtifactsContent(ctx *pulumi.Context, args *GetGenericArtifactsContentArgs, opts ...pulumi.InvokeOption) (*GetGenericArtifactsContentResult, error)

This data source provides details about a specific Generic Artifacts Content resource in Oracle Cloud Infrastructure Generic Artifacts Content service.

Gets the specified artifact's content.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/GenericArtifactsContent"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := GenericArtifactsContent.GetGenericArtifactsContent(ctx, &genericartifactscontent.GetGenericArtifactsContentArgs{
			ArtifactId: testArtifact.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetGenericArtifactsContentResultOutput

type GetGenericArtifactsContentResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGenericArtifactsContent.

func (GetGenericArtifactsContentResultOutput) ArtifactId

func (GetGenericArtifactsContentResultOutput) ElementType

func (GetGenericArtifactsContentResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGenericArtifactsContentResultOutput) ToGetGenericArtifactsContentResultOutput

func (o GetGenericArtifactsContentResultOutput) ToGetGenericArtifactsContentResultOutput() GetGenericArtifactsContentResultOutput

func (GetGenericArtifactsContentResultOutput) ToGetGenericArtifactsContentResultOutputWithContext

func (o GetGenericArtifactsContentResultOutput) ToGetGenericArtifactsContentResultOutputWithContext(ctx context.Context) GetGenericArtifactsContentResultOutput

type LookupArtifactByPathArgs

type LookupArtifactByPathArgs struct {
	// The generic artifact path.  Example: `foo/bar/baz`
	ArtifactPath string `pulumi:"artifactPath"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository.  Example: `ocid1.repository.oc1..exampleuniqueID`
	RepositoryId string `pulumi:"repositoryId"`
	// The generic artifact version.  Example: `1.1.2`
	Version string `pulumi:"version"`
}

A collection of arguments for invoking getArtifactByPath.

type LookupArtifactByPathOutputArgs

type LookupArtifactByPathOutputArgs struct {
	// The generic artifact path.  Example: `foo/bar/baz`
	ArtifactPath pulumi.StringInput `pulumi:"artifactPath"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository.  Example: `ocid1.repository.oc1..exampleuniqueID`
	RepositoryId pulumi.StringInput `pulumi:"repositoryId"`
	// The generic artifact version.  Example: `1.1.2`
	Version pulumi.StringInput `pulumi:"version"`
}

A collection of arguments for invoking getArtifactByPath.

func (LookupArtifactByPathOutputArgs) ElementType

type LookupArtifactByPathResult

type LookupArtifactByPathResult struct {
	ArtifactId    string                 `pulumi:"artifactId"`
	ArtifactPath  string                 `pulumi:"artifactPath"`
	CompartmentId string                 `pulumi:"compartmentId"`
	Content       string                 `pulumi:"content"`
	DefinedTags   map[string]interface{} `pulumi:"definedTags"`
	DisplayName   string                 `pulumi:"displayName"`
	FreeformTags  map[string]interface{} `pulumi:"freeformTags"`
	Id            string                 `pulumi:"id"`
	RepositoryId  string                 `pulumi:"repositoryId"`
	Sha256        string                 `pulumi:"sha256"`
	SizeInBytes   string                 `pulumi:"sizeInBytes"`
	Source        string                 `pulumi:"source"`
	State         string                 `pulumi:"state"`
	TimeCreated   string                 `pulumi:"timeCreated"`
	Version       string                 `pulumi:"version"`
}

A collection of values returned by getArtifactByPath.

func LookupArtifactByPath

func LookupArtifactByPath(ctx *pulumi.Context, args *LookupArtifactByPathArgs, opts ...pulumi.InvokeOption) (*LookupArtifactByPathResult, error)

This data source provides details about a specific Artifact By Path resource in Oracle Cloud Infrastructure Generic Artifacts Content service.

Get generic artifact content.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/GenericArtifactsContent"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := GenericArtifactsContent.GetArtifactByPath(ctx, &genericartifactscontent.GetArtifactByPathArgs{
			ArtifactPath: artifactByPathArtifactPath,
			RepositoryId: testRepository.Id,
			Version:      artifactByPathVersion,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupArtifactByPathResultOutput

type LookupArtifactByPathResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getArtifactByPath.

func (LookupArtifactByPathResultOutput) ArtifactId

func (LookupArtifactByPathResultOutput) ArtifactPath

func (LookupArtifactByPathResultOutput) CompartmentId

func (LookupArtifactByPathResultOutput) Content

func (LookupArtifactByPathResultOutput) DefinedTags

func (LookupArtifactByPathResultOutput) DisplayName

func (LookupArtifactByPathResultOutput) ElementType

func (LookupArtifactByPathResultOutput) FreeformTags

func (LookupArtifactByPathResultOutput) Id

func (LookupArtifactByPathResultOutput) RepositoryId

func (LookupArtifactByPathResultOutput) Sha256

func (LookupArtifactByPathResultOutput) SizeInBytes

func (LookupArtifactByPathResultOutput) Source

func (LookupArtifactByPathResultOutput) State

func (LookupArtifactByPathResultOutput) TimeCreated

func (LookupArtifactByPathResultOutput) ToLookupArtifactByPathResultOutput

func (o LookupArtifactByPathResultOutput) ToLookupArtifactByPathResultOutput() LookupArtifactByPathResultOutput

func (LookupArtifactByPathResultOutput) ToLookupArtifactByPathResultOutputWithContext

func (o LookupArtifactByPathResultOutput) ToLookupArtifactByPathResultOutputWithContext(ctx context.Context) LookupArtifactByPathResultOutput

func (LookupArtifactByPathResultOutput) Version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL