contentsource

package
v0.0.0-...-81f5abf Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type ContentSource

type ContentSource struct {
	pulumi.CustomResourceState

	// Content source custom configuration.
	Config ContentSourceConfigOutput `pulumi:"config"`
	// Date when the entity was created. The date is in ISO 6801 and UTC.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// The user the entity was created by.
	CreatedBy pulumi.StringOutput `pulumi:"createdBy"`
	// A human-friendly description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Date when the entity was last updated. The date is in ISO 6801 and UTC.
	LastUpdatedAt pulumi.StringOutput `pulumi:"lastUpdatedAt"`
	// The user the entity was last updated by.
	LastUpdatedBy pulumi.StringOutput `pulumi:"lastUpdatedBy"`
	// A human-friendly name for content source used as an identifier in APIs that support this option.
	Name pulumi.StringOutput `pulumi:"name"`
	// The id of the organization this entity belongs to.
	OrgId pulumi.StringOutput `pulumi:"orgId"`
	// The id of the project this entity belongs to.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// Flag indicating whether sync is enabled for this content source.
	SyncEnabled pulumi.BoolOutput `pulumi:"syncEnabled"`
	// Content Source type. Supported values are `com.gitlab`, `com.github`, `com.vmware.marketplace`, `org.bitbucket`.
	TypeId pulumi.StringOutput `pulumi:"typeId"`
}

This resource provides a way to create a content source vRealize Automation(vRA).

## Example Usage ### S

```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/contentsource"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/contentsource"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := contentsource.NewContentSource(ctx, "this", &contentsource.ContentSourceArgs{
			ProjectId:   pulumi.Any(_var.Project_id),
			TypeId:      pulumi.String("com.gitlab"),
			Description: pulumi.String("Some content Source"),
			SyncEnabled: pulumi.Bool(false),
			Config: &contentsource.ContentSourceConfigArgs{
				Path:          pulumi.String("blueprint01"),
				Branch:        pulumi.String("master"),
				Repository:    pulumi.String("vracontent/vra8_content_source_test"),
				ContentType:   pulumi.String("BLUEPRINT"),
				ProjectName:   pulumi.Any(_var.Project_name),
				IntegrationId: pulumi.Any(_var.Integration_id),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Content source can be imported using the id, e.g.

```sh

$ pulumi import vra:contentsource/contentSource:ContentSource this 05956583-6488-4e7d-84c9-92a7b7219a15`

```

func GetContentSource

func GetContentSource(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContentSourceState, opts ...pulumi.ResourceOption) (*ContentSource, error)

GetContentSource gets an existing ContentSource 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 NewContentSource

func NewContentSource(ctx *pulumi.Context,
	name string, args *ContentSourceArgs, opts ...pulumi.ResourceOption) (*ContentSource, error)

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

func (*ContentSource) ElementType

func (*ContentSource) ElementType() reflect.Type

func (*ContentSource) ToContentSourceOutput

func (i *ContentSource) ToContentSourceOutput() ContentSourceOutput

func (*ContentSource) ToContentSourceOutputWithContext

func (i *ContentSource) ToContentSourceOutputWithContext(ctx context.Context) ContentSourceOutput

type ContentSourceArgs

type ContentSourceArgs struct {
	// Content source custom configuration.
	Config ContentSourceConfigInput
	// A human-friendly description.
	Description pulumi.StringPtrInput
	// A human-friendly name for content source used as an identifier in APIs that support this option.
	Name pulumi.StringPtrInput
	// The id of the project this entity belongs to.
	ProjectId pulumi.StringInput
	// Flag indicating whether sync is enabled for this content source.
	SyncEnabled pulumi.BoolInput
	// Content Source type. Supported values are `com.gitlab`, `com.github`, `com.vmware.marketplace`, `org.bitbucket`.
	TypeId pulumi.StringInput
}

The set of arguments for constructing a ContentSource resource.

func (ContentSourceArgs) ElementType

func (ContentSourceArgs) ElementType() reflect.Type

type ContentSourceArray

type ContentSourceArray []ContentSourceInput

func (ContentSourceArray) ElementType

func (ContentSourceArray) ElementType() reflect.Type

func (ContentSourceArray) ToContentSourceArrayOutput

func (i ContentSourceArray) ToContentSourceArrayOutput() ContentSourceArrayOutput

func (ContentSourceArray) ToContentSourceArrayOutputWithContext

func (i ContentSourceArray) ToContentSourceArrayOutputWithContext(ctx context.Context) ContentSourceArrayOutput

type ContentSourceArrayInput

type ContentSourceArrayInput interface {
	pulumi.Input

	ToContentSourceArrayOutput() ContentSourceArrayOutput
	ToContentSourceArrayOutputWithContext(context.Context) ContentSourceArrayOutput
}

ContentSourceArrayInput is an input type that accepts ContentSourceArray and ContentSourceArrayOutput values. You can construct a concrete instance of `ContentSourceArrayInput` via:

ContentSourceArray{ ContentSourceArgs{...} }

type ContentSourceArrayOutput

type ContentSourceArrayOutput struct{ *pulumi.OutputState }

func (ContentSourceArrayOutput) ElementType

func (ContentSourceArrayOutput) ElementType() reflect.Type

func (ContentSourceArrayOutput) Index

func (ContentSourceArrayOutput) ToContentSourceArrayOutput

func (o ContentSourceArrayOutput) ToContentSourceArrayOutput() ContentSourceArrayOutput

func (ContentSourceArrayOutput) ToContentSourceArrayOutputWithContext

func (o ContentSourceArrayOutput) ToContentSourceArrayOutputWithContext(ctx context.Context) ContentSourceArrayOutput

type ContentSourceConfig

type ContentSourceConfig struct {
	// Content source branch name.
	Branch *string `pulumi:"branch"`
	// Content source type. Supported values are `BLUEPRINT`, `IMAGE`, `ABX_SCRIPTS`, `TERRAFORM_CONFIGURATION`.
	ContentType *string `pulumi:"contentType"`
	// Content source integration id as seen in vRA integrations.
	IntegrationId string `pulumi:"integrationId"`
	// Path to refer to in the content source repository and branch.
	Path string `pulumi:"path"`
	// Name of the project.
	ProjectName string `pulumi:"projectName"`
	// Content source repository.
	Repository *string `pulumi:"repository"`
}

type ContentSourceConfigArgs

type ContentSourceConfigArgs struct {
	// Content source branch name.
	Branch pulumi.StringPtrInput `pulumi:"branch"`
	// Content source type. Supported values are `BLUEPRINT`, `IMAGE`, `ABX_SCRIPTS`, `TERRAFORM_CONFIGURATION`.
	ContentType pulumi.StringPtrInput `pulumi:"contentType"`
	// Content source integration id as seen in vRA integrations.
	IntegrationId pulumi.StringInput `pulumi:"integrationId"`
	// Path to refer to in the content source repository and branch.
	Path pulumi.StringInput `pulumi:"path"`
	// Name of the project.
	ProjectName pulumi.StringInput `pulumi:"projectName"`
	// Content source repository.
	Repository pulumi.StringPtrInput `pulumi:"repository"`
}

func (ContentSourceConfigArgs) ElementType

func (ContentSourceConfigArgs) ElementType() reflect.Type

func (ContentSourceConfigArgs) ToContentSourceConfigOutput

func (i ContentSourceConfigArgs) ToContentSourceConfigOutput() ContentSourceConfigOutput

func (ContentSourceConfigArgs) ToContentSourceConfigOutputWithContext

func (i ContentSourceConfigArgs) ToContentSourceConfigOutputWithContext(ctx context.Context) ContentSourceConfigOutput

func (ContentSourceConfigArgs) ToContentSourceConfigPtrOutput

func (i ContentSourceConfigArgs) ToContentSourceConfigPtrOutput() ContentSourceConfigPtrOutput

func (ContentSourceConfigArgs) ToContentSourceConfigPtrOutputWithContext

func (i ContentSourceConfigArgs) ToContentSourceConfigPtrOutputWithContext(ctx context.Context) ContentSourceConfigPtrOutput

type ContentSourceConfigInput

type ContentSourceConfigInput interface {
	pulumi.Input

	ToContentSourceConfigOutput() ContentSourceConfigOutput
	ToContentSourceConfigOutputWithContext(context.Context) ContentSourceConfigOutput
}

ContentSourceConfigInput is an input type that accepts ContentSourceConfigArgs and ContentSourceConfigOutput values. You can construct a concrete instance of `ContentSourceConfigInput` via:

ContentSourceConfigArgs{...}

type ContentSourceConfigOutput

type ContentSourceConfigOutput struct{ *pulumi.OutputState }

func (ContentSourceConfigOutput) Branch

Content source branch name.

func (ContentSourceConfigOutput) ContentType

Content source type. Supported values are `BLUEPRINT`, `IMAGE`, `ABX_SCRIPTS`, `TERRAFORM_CONFIGURATION`.

func (ContentSourceConfigOutput) ElementType

func (ContentSourceConfigOutput) ElementType() reflect.Type

func (ContentSourceConfigOutput) IntegrationId

func (o ContentSourceConfigOutput) IntegrationId() pulumi.StringOutput

Content source integration id as seen in vRA integrations.

func (ContentSourceConfigOutput) Path

Path to refer to in the content source repository and branch.

func (ContentSourceConfigOutput) ProjectName

Name of the project.

func (ContentSourceConfigOutput) Repository

Content source repository.

func (ContentSourceConfigOutput) ToContentSourceConfigOutput

func (o ContentSourceConfigOutput) ToContentSourceConfigOutput() ContentSourceConfigOutput

func (ContentSourceConfigOutput) ToContentSourceConfigOutputWithContext

func (o ContentSourceConfigOutput) ToContentSourceConfigOutputWithContext(ctx context.Context) ContentSourceConfigOutput

func (ContentSourceConfigOutput) ToContentSourceConfigPtrOutput

func (o ContentSourceConfigOutput) ToContentSourceConfigPtrOutput() ContentSourceConfigPtrOutput

func (ContentSourceConfigOutput) ToContentSourceConfigPtrOutputWithContext

func (o ContentSourceConfigOutput) ToContentSourceConfigPtrOutputWithContext(ctx context.Context) ContentSourceConfigPtrOutput

type ContentSourceConfigPtrInput

type ContentSourceConfigPtrInput interface {
	pulumi.Input

	ToContentSourceConfigPtrOutput() ContentSourceConfigPtrOutput
	ToContentSourceConfigPtrOutputWithContext(context.Context) ContentSourceConfigPtrOutput
}

ContentSourceConfigPtrInput is an input type that accepts ContentSourceConfigArgs, ContentSourceConfigPtr and ContentSourceConfigPtrOutput values. You can construct a concrete instance of `ContentSourceConfigPtrInput` via:

        ContentSourceConfigArgs{...}

or:

        nil

type ContentSourceConfigPtrOutput

type ContentSourceConfigPtrOutput struct{ *pulumi.OutputState }

func (ContentSourceConfigPtrOutput) Branch

Content source branch name.

func (ContentSourceConfigPtrOutput) ContentType

Content source type. Supported values are `BLUEPRINT`, `IMAGE`, `ABX_SCRIPTS`, `TERRAFORM_CONFIGURATION`.

func (ContentSourceConfigPtrOutput) Elem

func (ContentSourceConfigPtrOutput) ElementType

func (ContentSourceConfigPtrOutput) IntegrationId

Content source integration id as seen in vRA integrations.

func (ContentSourceConfigPtrOutput) Path

Path to refer to in the content source repository and branch.

func (ContentSourceConfigPtrOutput) ProjectName

Name of the project.

func (ContentSourceConfigPtrOutput) Repository

Content source repository.

func (ContentSourceConfigPtrOutput) ToContentSourceConfigPtrOutput

func (o ContentSourceConfigPtrOutput) ToContentSourceConfigPtrOutput() ContentSourceConfigPtrOutput

func (ContentSourceConfigPtrOutput) ToContentSourceConfigPtrOutputWithContext

func (o ContentSourceConfigPtrOutput) ToContentSourceConfigPtrOutputWithContext(ctx context.Context) ContentSourceConfigPtrOutput

type ContentSourceInput

type ContentSourceInput interface {
	pulumi.Input

	ToContentSourceOutput() ContentSourceOutput
	ToContentSourceOutputWithContext(ctx context.Context) ContentSourceOutput
}

type ContentSourceMap

type ContentSourceMap map[string]ContentSourceInput

func (ContentSourceMap) ElementType

func (ContentSourceMap) ElementType() reflect.Type

func (ContentSourceMap) ToContentSourceMapOutput

func (i ContentSourceMap) ToContentSourceMapOutput() ContentSourceMapOutput

func (ContentSourceMap) ToContentSourceMapOutputWithContext

func (i ContentSourceMap) ToContentSourceMapOutputWithContext(ctx context.Context) ContentSourceMapOutput

type ContentSourceMapInput

type ContentSourceMapInput interface {
	pulumi.Input

	ToContentSourceMapOutput() ContentSourceMapOutput
	ToContentSourceMapOutputWithContext(context.Context) ContentSourceMapOutput
}

ContentSourceMapInput is an input type that accepts ContentSourceMap and ContentSourceMapOutput values. You can construct a concrete instance of `ContentSourceMapInput` via:

ContentSourceMap{ "key": ContentSourceArgs{...} }

type ContentSourceMapOutput

type ContentSourceMapOutput struct{ *pulumi.OutputState }

func (ContentSourceMapOutput) ElementType

func (ContentSourceMapOutput) ElementType() reflect.Type

func (ContentSourceMapOutput) MapIndex

func (ContentSourceMapOutput) ToContentSourceMapOutput

func (o ContentSourceMapOutput) ToContentSourceMapOutput() ContentSourceMapOutput

func (ContentSourceMapOutput) ToContentSourceMapOutputWithContext

func (o ContentSourceMapOutput) ToContentSourceMapOutputWithContext(ctx context.Context) ContentSourceMapOutput

type ContentSourceOutput

type ContentSourceOutput struct{ *pulumi.OutputState }

func (ContentSourceOutput) Config

Content source custom configuration.

func (ContentSourceOutput) CreatedAt

func (o ContentSourceOutput) CreatedAt() pulumi.StringOutput

Date when the entity was created. The date is in ISO 6801 and UTC.

func (ContentSourceOutput) CreatedBy

func (o ContentSourceOutput) CreatedBy() pulumi.StringOutput

The user the entity was created by.

func (ContentSourceOutput) Description

func (o ContentSourceOutput) Description() pulumi.StringPtrOutput

A human-friendly description.

func (ContentSourceOutput) ElementType

func (ContentSourceOutput) ElementType() reflect.Type

func (ContentSourceOutput) LastUpdatedAt

func (o ContentSourceOutput) LastUpdatedAt() pulumi.StringOutput

Date when the entity was last updated. The date is in ISO 6801 and UTC.

func (ContentSourceOutput) LastUpdatedBy

func (o ContentSourceOutput) LastUpdatedBy() pulumi.StringOutput

The user the entity was last updated by.

func (ContentSourceOutput) Name

A human-friendly name for content source used as an identifier in APIs that support this option.

func (ContentSourceOutput) OrgId

The id of the organization this entity belongs to.

func (ContentSourceOutput) ProjectId

func (o ContentSourceOutput) ProjectId() pulumi.StringOutput

The id of the project this entity belongs to.

func (ContentSourceOutput) SyncEnabled

func (o ContentSourceOutput) SyncEnabled() pulumi.BoolOutput

Flag indicating whether sync is enabled for this content source.

func (ContentSourceOutput) ToContentSourceOutput

func (o ContentSourceOutput) ToContentSourceOutput() ContentSourceOutput

func (ContentSourceOutput) ToContentSourceOutputWithContext

func (o ContentSourceOutput) ToContentSourceOutputWithContext(ctx context.Context) ContentSourceOutput

func (ContentSourceOutput) TypeId

Content Source type. Supported values are `com.gitlab`, `com.github`, `com.vmware.marketplace`, `org.bitbucket`.

type ContentSourceState

type ContentSourceState struct {
	// Content source custom configuration.
	Config ContentSourceConfigPtrInput
	// Date when the entity was created. The date is in ISO 6801 and UTC.
	CreatedAt pulumi.StringPtrInput
	// The user the entity was created by.
	CreatedBy pulumi.StringPtrInput
	// A human-friendly description.
	Description pulumi.StringPtrInput
	// Date when the entity was last updated. The date is in ISO 6801 and UTC.
	LastUpdatedAt pulumi.StringPtrInput
	// The user the entity was last updated by.
	LastUpdatedBy pulumi.StringPtrInput
	// A human-friendly name for content source used as an identifier in APIs that support this option.
	Name pulumi.StringPtrInput
	// The id of the organization this entity belongs to.
	OrgId pulumi.StringPtrInput
	// The id of the project this entity belongs to.
	ProjectId pulumi.StringPtrInput
	// Flag indicating whether sync is enabled for this content source.
	SyncEnabled pulumi.BoolPtrInput
	// Content Source type. Supported values are `com.gitlab`, `com.github`, `com.vmware.marketplace`, `org.bitbucket`.
	TypeId pulumi.StringPtrInput
}

func (ContentSourceState) ElementType

func (ContentSourceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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