repositoryfile

package
v10.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

README

gitlab_repository_file

Refer to the Terraform Registory for docs: gitlab_repository_file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepositoryFileTimeoutsOutputReference_Override

func NewRepositoryFileTimeoutsOutputReference_Override(r RepositoryFileTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)

func NewRepositoryFile_Override

func NewRepositoryFile_Override(r RepositoryFile, scope constructs.Construct, id *string, config *RepositoryFileConfig)

Create a new {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file gitlab_repository_file} Resource.

func RepositoryFile_IsConstruct

func RepositoryFile_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func RepositoryFile_IsTerraformElement

func RepositoryFile_IsTerraformElement(x interface{}) *bool

Experimental.

func RepositoryFile_IsTerraformResource

func RepositoryFile_IsTerraformResource(x interface{}) *bool

Experimental.

func RepositoryFile_TfResourceType

func RepositoryFile_TfResourceType() *string

Types

type RepositoryFile

type RepositoryFile interface {
	cdktf.TerraformResource
	AuthorEmail() *string
	SetAuthorEmail(val *string)
	AuthorEmailInput() *string
	AuthorName() *string
	SetAuthorName(val *string)
	AuthorNameInput() *string
	BlobId() *string
	Branch() *string
	SetBranch(val *string)
	BranchInput() *string
	// Experimental.
	CdktfStack() cdktf.TerraformStack
	CommitId() *string
	CommitMessage() *string
	SetCommitMessage(val *string)
	CommitMessageInput() *string
	// Experimental.
	Connection() interface{}
	// Experimental.
	SetConnection(val interface{})
	// Experimental.
	ConstructNodeMetadata() *map[string]interface{}
	Content() *string
	SetContent(val *string)
	ContentInput() *string
	ContentSha256() *string
	// Experimental.
	Count() interface{}
	// Experimental.
	SetCount(val interface{})
	CreateCommitMessage() *string
	SetCreateCommitMessage(val *string)
	CreateCommitMessageInput() *string
	DeleteCommitMessage() *string
	SetDeleteCommitMessage(val *string)
	DeleteCommitMessageInput() *string
	// Experimental.
	DependsOn() *[]*string
	// Experimental.
	SetDependsOn(val *[]*string)
	Encoding() *string
	SetEncoding(val *string)
	EncodingInput() *string
	ExecuteFilemode() interface{}
	SetExecuteFilemode(val interface{})
	ExecuteFilemodeInput() interface{}
	FileName() *string
	FilePath() *string
	SetFilePath(val *string)
	FilePathInput() *string
	// Experimental.
	ForEach() cdktf.ITerraformIterator
	// Experimental.
	SetForEach(val cdktf.ITerraformIterator)
	// Experimental.
	Fqn() *string
	// Experimental.
	FriendlyUniqueId() *string
	Id() *string
	SetId(val *string)
	IdInput() *string
	LastCommitId() *string
	// Experimental.
	Lifecycle() *cdktf.TerraformResourceLifecycle
	// Experimental.
	SetLifecycle(val *cdktf.TerraformResourceLifecycle)
	// The tree node.
	Node() constructs.Node
	OverwriteOnCreate() interface{}
	SetOverwriteOnCreate(val interface{})
	OverwriteOnCreateInput() interface{}
	Project() *string
	SetProject(val *string)
	ProjectInput() *string
	// Experimental.
	Provider() cdktf.TerraformProvider
	// Experimental.
	SetProvider(val cdktf.TerraformProvider)
	// Experimental.
	Provisioners() *[]interface{}
	// Experimental.
	SetProvisioners(val *[]interface{})
	// Experimental.
	RawOverrides() interface{}
	Ref() *string
	Size() *float64
	StartBranch() *string
	SetStartBranch(val *string)
	StartBranchInput() *string
	// Experimental.
	TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata
	// Experimental.
	TerraformMetaArguments() *map[string]interface{}
	// Experimental.
	TerraformResourceType() *string
	Timeouts() RepositoryFileTimeoutsOutputReference
	TimeoutsInput() interface{}
	UpdateCommitMessage() *string
	SetUpdateCommitMessage(val *string)
	UpdateCommitMessageInput() *string
	// Experimental.
	AddOverride(path *string, value interface{})
	// Experimental.
	GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
	// Experimental.
	GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable
	// Experimental.
	GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
	// Experimental.
	GetListAttribute(terraformAttribute *string) *[]*string
	// Experimental.
	GetNumberAttribute(terraformAttribute *string) *float64
	// Experimental.
	GetNumberListAttribute(terraformAttribute *string) *[]*float64
	// Experimental.
	GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64
	// Experimental.
	GetStringAttribute(terraformAttribute *string) *string
	// Experimental.
	GetStringMapAttribute(terraformAttribute *string) *map[string]*string
	// Experimental.
	InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	PutTimeouts(value *RepositoryFileTimeouts)
	ResetAuthorEmail()
	ResetAuthorName()
	ResetCommitMessage()
	ResetCreateCommitMessage()
	ResetDeleteCommitMessage()
	ResetEncoding()
	ResetExecuteFilemode()
	ResetId()
	// Resets a previously passed logical Id to use the auto-generated logical id again.
	// Experimental.
	ResetOverrideLogicalId()
	ResetOverwriteOnCreate()
	ResetStartBranch()
	ResetTimeouts()
	ResetUpdateCommitMessage()
	SynthesizeAttributes() *map[string]interface{}
	// Experimental.
	ToMetadata() interface{}
	// Returns a string representation of this construct.
	ToString() *string
	// Adds this resource to the terraform JSON output.
	// Experimental.
	ToTerraform() interface{}
}

Represents a {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file gitlab_repository_file}.

func NewRepositoryFile

func NewRepositoryFile(scope constructs.Construct, id *string, config *RepositoryFileConfig) RepositoryFile

Create a new {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file gitlab_repository_file} Resource.

type RepositoryFileConfig

type RepositoryFileConfig struct {
	// Experimental.
	Connection interface{} `field:"optional" json:"connection" yaml:"connection"`
	// Experimental.
	Count interface{} `field:"optional" json:"count" yaml:"count"`
	// Experimental.
	DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"`
	// Experimental.
	ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"`
	// Experimental.
	Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"`
	// Experimental.
	Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"`
	// Experimental.
	Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
	// Name of the branch to which to commit to.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#branch RepositoryFile#branch}
	Branch *string `field:"required" json:"branch" yaml:"branch"`
	// File content.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#content RepositoryFile#content}
	Content *string `field:"required" json:"content" yaml:"content"`
	// The full path of the file.
	//
	// It must be relative to the root of the project without a leading slash `/` or `./`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#file_path RepositoryFile#file_path}
	FilePath *string `field:"required" json:"filePath" yaml:"filePath"`
	// The name or ID of the project.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#project RepositoryFile#project}
	Project *string `field:"required" json:"project" yaml:"project"`
	// Email of the commit author.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#author_email RepositoryFile#author_email}
	AuthorEmail *string `field:"optional" json:"authorEmail" yaml:"authorEmail"`
	// Name of the commit author.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#author_name RepositoryFile#author_name}
	AuthorName *string `field:"optional" json:"authorName" yaml:"authorName"`
	// Commit message.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#commit_message RepositoryFile#commit_message}
	CommitMessage *string `field:"optional" json:"commitMessage" yaml:"commitMessage"`
	// Create commit message.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#create_commit_message RepositoryFile#create_commit_message}
	CreateCommitMessage *string `field:"optional" json:"createCommitMessage" yaml:"createCommitMessage"`
	// Delete Commit message.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#delete_commit_message RepositoryFile#delete_commit_message}
	DeleteCommitMessage *string `field:"optional" json:"deleteCommitMessage" yaml:"deleteCommitMessage"`
	// The file content encoding. Default value is `base64`. Valid values are: `base64`, `text`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#encoding RepositoryFile#encoding}
	Encoding *string `field:"optional" json:"encoding" yaml:"encoding"`
	// Enables or disables the execute flag on the file. **Note**: requires GitLab 14.10 or newer.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#execute_filemode RepositoryFile#execute_filemode}
	ExecuteFilemode interface{} `field:"optional" json:"executeFilemode" yaml:"executeFilemode"`
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#id RepositoryFile#id}.
	//
	// Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
	// If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
	Id *string `field:"optional" json:"id" yaml:"id"`
	// Enable overwriting existing files, defaults to `false`.
	//
	// This attribute is only used during `create` and must be use carefully. We suggest to use `imports` whenever possible and limit the use of this attribute for when the project was imported on the same `apply`. This attribute is not supported during a resource import.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#overwrite_on_create RepositoryFile#overwrite_on_create}
	OverwriteOnCreate interface{} `field:"optional" json:"overwriteOnCreate" yaml:"overwriteOnCreate"`
	// Name of the branch to start the new commit from.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#start_branch RepositoryFile#start_branch}
	StartBranch *string `field:"optional" json:"startBranch" yaml:"startBranch"`
	// timeouts block.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#timeouts RepositoryFile#timeouts}
	Timeouts *RepositoryFileTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"`
	// Update commit message.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#update_commit_message RepositoryFile#update_commit_message}
	UpdateCommitMessage *string `field:"optional" json:"updateCommitMessage" yaml:"updateCommitMessage"`
}

type RepositoryFileTimeouts

type RepositoryFileTimeouts struct {
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#create RepositoryFile#create}.
	Create *string `field:"optional" json:"create" yaml:"create"`
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#delete RepositoryFile#delete}.
	Delete *string `field:"optional" json:"delete" yaml:"delete"`
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.4.1/docs/resources/repository_file#update RepositoryFile#update}.
	Update *string `field:"optional" json:"update" yaml:"update"`
}

type RepositoryFileTimeoutsOutputReference

type RepositoryFileTimeoutsOutputReference interface {
	cdktf.ComplexObject
	// the index of the complex object in a list.
	// Experimental.
	ComplexObjectIndex() interface{}
	// Experimental.
	SetComplexObjectIndex(val interface{})
	// set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items.
	// Experimental.
	ComplexObjectIsFromSet() *bool
	// Experimental.
	SetComplexObjectIsFromSet(val *bool)
	Create() *string
	SetCreate(val *string)
	CreateInput() *string
	// The creation stack of this resolvable which will be appended to errors thrown during resolution.
	//
	// If this returns an empty array the stack will not be attached.
	// Experimental.
	CreationStack() *[]*string
	Delete() *string
	SetDelete(val *string)
	DeleteInput() *string
	// Experimental.
	Fqn() *string
	InternalValue() interface{}
	SetInternalValue(val interface{})
	// Experimental.
	TerraformAttribute() *string
	// Experimental.
	SetTerraformAttribute(val *string)
	// Experimental.
	TerraformResource() cdktf.IInterpolatingParent
	// Experimental.
	SetTerraformResource(val cdktf.IInterpolatingParent)
	Update() *string
	SetUpdate(val *string)
	UpdateInput() *string
	// Experimental.
	ComputeFqn() *string
	// Experimental.
	GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
	// Experimental.
	GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable
	// Experimental.
	GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
	// Experimental.
	GetListAttribute(terraformAttribute *string) *[]*string
	// Experimental.
	GetNumberAttribute(terraformAttribute *string) *float64
	// Experimental.
	GetNumberListAttribute(terraformAttribute *string) *[]*float64
	// Experimental.
	GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64
	// Experimental.
	GetStringAttribute(terraformAttribute *string) *string
	// Experimental.
	GetStringMapAttribute(terraformAttribute *string) *map[string]*string
	// Experimental.
	InterpolationAsList() cdktf.IResolvable
	// Experimental.
	InterpolationForAttribute(property *string) cdktf.IResolvable
	ResetCreate()
	ResetDelete()
	ResetUpdate()
	// Produce the Token's value at resolution time.
	// Experimental.
	Resolve(_context cdktf.IResolveContext) interface{}
	// Return a string representation of this resolvable object.
	//
	// Returns a reversible string representation.
	// Experimental.
	ToString() *string
}

func NewRepositoryFileTimeoutsOutputReference

func NewRepositoryFileTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) RepositoryFileTimeoutsOutputReference

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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