harness.platform.GitOpsRepository
Create GitOpsRepository Resource
new GitOpsRepository(name: string, args: GitOpsRepositoryArgs, opts?: CustomResourceOptions);
@overload
def GitOpsRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
creds_only: Optional[bool] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
query_force_refresh: Optional[bool] = None,
query_project: Optional[str] = None,
query_repo: Optional[str] = None,
repos: Optional[Sequence[GitOpsRepositoryRepoArgs]] = None,
update_masks: Optional[Sequence[GitOpsRepositoryUpdateMaskArgs]] = None,
upsert: Optional[bool] = None)
@overload
def GitOpsRepository(resource_name: str,
args: GitOpsRepositoryArgs,
opts: Optional[ResourceOptions] = None)
func NewGitOpsRepository(ctx *Context, name string, args GitOpsRepositoryArgs, opts ...ResourceOption) (*GitOpsRepository, error)
public GitOpsRepository(string name, GitOpsRepositoryArgs args, CustomResourceOptions? opts = null)
public GitOpsRepository(String name, GitOpsRepositoryArgs args)
public GitOpsRepository(String name, GitOpsRepositoryArgs args, CustomResourceOptions options)
type: harness:platform:GitOpsRepository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitOpsRepositoryArgs
- 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 GitOpsRepositoryArgs
- 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 GitOpsRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitOpsRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitOpsRepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GitOpsRepository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GitOpsRepository resource accepts the following input properties:
- Account
Id string account identifier of the cluster.
- Identifier string
identifier of the cluster.
- Project
Id string project identifier of the cluster.
- Repos
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Repo Args> Repo Details that need to be stored.
- Agent
Id string agent identifier of the cluster.
- Creds
Only bool Credentials only of the Repo.
- Org
Id string organization identifier of the cluster.
- Query
Force boolRefresh Force refresh query for Repo.
- Query
Project string Project to Query for Repo.
- Query
Repo string Repo to Query.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Update Mask Args> Update mask of the Repository.
- Upsert bool
Upsert the Repo Details.
- Account
Id string account identifier of the cluster.
- Identifier string
identifier of the cluster.
- Project
Id string project identifier of the cluster.
- Repos
[]Git
Ops Repository Repo Args Repo Details that need to be stored.
- Agent
Id string agent identifier of the cluster.
- Creds
Only bool Credentials only of the Repo.
- Org
Id string organization identifier of the cluster.
- Query
Force boolRefresh Force refresh query for Repo.
- Query
Project string Project to Query for Repo.
- Query
Repo string Repo to Query.
- Update
Masks []GitOps Repository Update Mask Args Update mask of the Repository.
- Upsert bool
Upsert the Repo Details.
- account
Id String account identifier of the cluster.
- identifier String
identifier of the cluster.
- project
Id String project identifier of the cluster.
- repos
List<Git
Ops Repository Repo Args> Repo Details that need to be stored.
- agent
Id String agent identifier of the cluster.
- creds
Only Boolean Credentials only of the Repo.
- org
Id String organization identifier of the cluster.
- query
Force BooleanRefresh Force refresh query for Repo.
- query
Project String Project to Query for Repo.
- query
Repo String Repo to Query.
- update
Masks List<GitOps Repository Update Mask Args> Update mask of the Repository.
- upsert Boolean
Upsert the Repo Details.
- account
Id string account identifier of the cluster.
- identifier string
identifier of the cluster.
- project
Id string project identifier of the cluster.
- repos
Git
Ops Repository Repo Args[] Repo Details that need to be stored.
- agent
Id string agent identifier of the cluster.
- creds
Only boolean Credentials only of the Repo.
- org
Id string organization identifier of the cluster.
- query
Force booleanRefresh Force refresh query for Repo.
- query
Project string Project to Query for Repo.
- query
Repo string Repo to Query.
- update
Masks GitOps Repository Update Mask Args[] Update mask of the Repository.
- upsert boolean
Upsert the Repo Details.
- account_
id str account identifier of the cluster.
- identifier str
identifier of the cluster.
- project_
id str project identifier of the cluster.
- repos
Sequence[Git
Ops Repository Repo Args] Repo Details that need to be stored.
- agent_
id str agent identifier of the cluster.
- creds_
only bool Credentials only of the Repo.
- org_
id str organization identifier of the cluster.
- query_
force_ boolrefresh Force refresh query for Repo.
- query_
project str Project to Query for Repo.
- query_
repo str Repo to Query.
- update_
masks Sequence[GitOps Repository Update Mask Args] Update mask of the Repository.
- upsert bool
Upsert the Repo Details.
- account
Id String account identifier of the cluster.
- identifier String
identifier of the cluster.
- project
Id String project identifier of the cluster.
- repos List<Property Map>
Repo Details that need to be stored.
- agent
Id String agent identifier of the cluster.
- creds
Only Boolean Credentials only of the Repo.
- org
Id String organization identifier of the cluster.
- query
Force BooleanRefresh Force refresh query for Repo.
- query
Project String Project to Query for Repo.
- query
Repo String Repo to Query.
- update
Masks List<Property Map> Update mask of the Repository.
- upsert Boolean
Upsert the Repo Details.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitOpsRepository resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing GitOpsRepository Resource
Get an existing GitOpsRepository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GitOpsRepositoryState, opts?: CustomResourceOptions): GitOpsRepository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
creds_only: Optional[bool] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
query_force_refresh: Optional[bool] = None,
query_project: Optional[str] = None,
query_repo: Optional[str] = None,
repos: Optional[Sequence[GitOpsRepositoryRepoArgs]] = None,
update_masks: Optional[Sequence[GitOpsRepositoryUpdateMaskArgs]] = None,
upsert: Optional[bool] = None) -> GitOpsRepository
func GetGitOpsRepository(ctx *Context, name string, id IDInput, state *GitOpsRepositoryState, opts ...ResourceOption) (*GitOpsRepository, error)
public static GitOpsRepository Get(string name, Input<string> id, GitOpsRepositoryState? state, CustomResourceOptions? opts = null)
public static GitOpsRepository get(String name, Output<String> id, GitOpsRepositoryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string account identifier of the cluster.
- Agent
Id string agent identifier of the cluster.
- Creds
Only bool Credentials only of the Repo.
- Identifier string
identifier of the cluster.
- Org
Id string organization identifier of the cluster.
- Project
Id string project identifier of the cluster.
- Query
Force boolRefresh Force refresh query for Repo.
- Query
Project string Project to Query for Repo.
- Query
Repo string Repo to Query.
- Repos
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Repo Args> Repo Details that need to be stored.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Update Mask Args> Update mask of the Repository.
- Upsert bool
Upsert the Repo Details.
- Account
Id string account identifier of the cluster.
- Agent
Id string agent identifier of the cluster.
- Creds
Only bool Credentials only of the Repo.
- Identifier string
identifier of the cluster.
- Org
Id string organization identifier of the cluster.
- Project
Id string project identifier of the cluster.
- Query
Force boolRefresh Force refresh query for Repo.
- Query
Project string Project to Query for Repo.
- Query
Repo string Repo to Query.
- Repos
[]Git
Ops Repository Repo Args Repo Details that need to be stored.
- Update
Masks []GitOps Repository Update Mask Args Update mask of the Repository.
- Upsert bool
Upsert the Repo Details.
- account
Id String account identifier of the cluster.
- agent
Id String agent identifier of the cluster.
- creds
Only Boolean Credentials only of the Repo.
- identifier String
identifier of the cluster.
- org
Id String organization identifier of the cluster.
- project
Id String project identifier of the cluster.
- query
Force BooleanRefresh Force refresh query for Repo.
- query
Project String Project to Query for Repo.
- query
Repo String Repo to Query.
- repos
List<Git
Ops Repository Repo Args> Repo Details that need to be stored.
- update
Masks List<GitOps Repository Update Mask Args> Update mask of the Repository.
- upsert Boolean
Upsert the Repo Details.
- account
Id string account identifier of the cluster.
- agent
Id string agent identifier of the cluster.
- creds
Only boolean Credentials only of the Repo.
- identifier string
identifier of the cluster.
- org
Id string organization identifier of the cluster.
- project
Id string project identifier of the cluster.
- query
Force booleanRefresh Force refresh query for Repo.
- query
Project string Project to Query for Repo.
- query
Repo string Repo to Query.
- repos
Git
Ops Repository Repo Args[] Repo Details that need to be stored.
- update
Masks GitOps Repository Update Mask Args[] Update mask of the Repository.
- upsert boolean
Upsert the Repo Details.
- account_
id str account identifier of the cluster.
- agent_
id str agent identifier of the cluster.
- creds_
only bool Credentials only of the Repo.
- identifier str
identifier of the cluster.
- org_
id str organization identifier of the cluster.
- project_
id str project identifier of the cluster.
- query_
force_ boolrefresh Force refresh query for Repo.
- query_
project str Project to Query for Repo.
- query_
repo str Repo to Query.
- repos
Sequence[Git
Ops Repository Repo Args] Repo Details that need to be stored.
- update_
masks Sequence[GitOps Repository Update Mask Args] Update mask of the Repository.
- upsert bool
Upsert the Repo Details.
- account
Id String account identifier of the cluster.
- agent
Id String agent identifier of the cluster.
- creds
Only Boolean Credentials only of the Repo.
- identifier String
identifier of the cluster.
- org
Id String organization identifier of the cluster.
- project
Id String project identifier of the cluster.
- query
Force BooleanRefresh Force refresh query for Repo.
- query
Project String Project to Query for Repo.
- query
Repo String Repo to Query.
- repos List<Property Map>
Repo Details that need to be stored.
- update
Masks List<Property Map> Update mask of the Repository.
- upsert Boolean
Upsert the Repo Details.
Supporting Types
GitOpsRepositoryRepo
- Connection
Type string - Repo string
- Enable
Lfs bool - Enable
Oci bool - Github
App stringEnterprise Base Url - Github
App stringId - Github
App stringInstallation Id - Github
App stringPrivate Key - Inherited
Creds bool - Insecure bool
- Insecure
Ignore boolHost Key - Name string
- Password string
- Project string
- Proxy string
- Ssh
Private stringKey - Tls
Client stringCert Data - Tls
Client stringCert Key - Type_ string
- Username string
- Connection
Type string - Repo string
- Enable
Lfs bool - Enable
Oci bool - Github
App stringEnterprise Base Url - Github
App stringId - Github
App stringInstallation Id - Github
App stringPrivate Key - Inherited
Creds bool - Insecure bool
- Insecure
Ignore boolHost Key - Name string
- Password string
- Project string
- Proxy string
- Ssh
Private stringKey - Tls
Client stringCert Data - Tls
Client stringCert Key - Type_ string
- Username string
- connection
Type String - repo String
- enable
Lfs Boolean - enable
Oci Boolean - github
App StringEnterprise Base Url - github
App StringId - github
App StringInstallation Id - github
App StringPrivate Key - inherited
Creds Boolean - insecure Boolean
- insecure
Ignore BooleanHost Key - name String
- password String
- project String
- proxy String
- ssh
Private StringKey - tls
Client StringCert Data - tls
Client StringCert Key - type_ String
- username String
- connection
Type string - repo string
- enable
Lfs boolean - enable
Oci boolean - github
App stringEnterprise Base Url - github
App stringId - github
App stringInstallation Id - github
App stringPrivate Key - inherited
Creds boolean - insecure boolean
- insecure
Ignore booleanHost Key - name string
- password string
- project string
- proxy string
- ssh
Private stringKey - tls
Client stringCert Data - tls
Client stringCert Key - type_ string
- username string
- connection_
type str - repo str
- enable_
lfs bool - enable_
oci bool - github_
app_ strenterprise_ base_ url - github_
app_ strid - github_
app_ strinstallation_ id - github_
app_ strprivate_ key - inherited_
creds bool - insecure bool
- insecure_
ignore_ boolhost_ key - name str
- password str
- project str
- proxy str
- ssh_
private_ strkey - tls_
client_ strcert_ data - tls_
client_ strcert_ key - type_ str
- username str
- connection
Type String - repo String
- enable
Lfs Boolean - enable
Oci Boolean - github
App StringEnterprise Base Url - github
App StringId - github
App StringInstallation Id - github
App StringPrivate Key - inherited
Creds Boolean - insecure Boolean
- insecure
Ignore BooleanHost Key - name String
- password String
- project String
- proxy String
- ssh
Private StringKey - tls
Client StringCert Data - tls
Client StringCert Key - type_ String
- username String
GitOpsRepositoryUpdateMask
- Paths List<string>
- Paths []string
- paths List<String>
- paths string[]
- paths Sequence[str]
- paths List<String>
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harness
Terraform Provider.