Class: Google::Apis::CloudbuildV1::GitRepoSource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

GitRepoSource describes a repo and ref of a code repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitRepoSource

Returns a new instance of GitRepoSource.



2685
2686
2687
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2685

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bitbucket_server_configString

The full resource name of the bitbucket server config. Format: projects/ project/locations/location/bitbucketServerConfigs/id`. Corresponds to the JSON propertybitbucketServerConfig`

Returns:

  • (String)


2653
2654
2655
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2653

def bitbucket_server_config
  @bitbucket_server_config
end

#github_enterprise_configString

The full resource name of the github enterprise config. Format: projects/ project/locations/location/githubEnterpriseConfigs/id. `projects/` project`/githubEnterpriseConfigs/`id. Corresponds to the JSON property githubEnterpriseConfig

Returns:

  • (String)


2660
2661
2662
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2660

def github_enterprise_config
  @github_enterprise_config
end

#refString

The branch or tag to use. Must start with "refs/" (required). Corresponds to the JSON property ref

Returns:

  • (String)


2665
2666
2667
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2665

def ref
  @ref
end

#repo_typeString

See RepoType below. Corresponds to the JSON property repoType

Returns:

  • (String)


2670
2671
2672
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2670

def repo_type
  @repo_type
end

#repositoryString

The connected repository resource name, in the format projects/*/locations/*/ connections/*/repositories/*. Either uri or repository can be specified and is required. Corresponds to the JSON property repository

Returns:

  • (String)


2677
2678
2679
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2677

def repository
  @repository
end

#uriString

The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required. Corresponds to the JSON property uri

Returns:

  • (String)


2683
2684
2685
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2683

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2690
2691
2692
2693
2694
2695
2696
2697
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2690

def update!(**args)
  @bitbucket_server_config = args[:bitbucket_server_config] if args.key?(:bitbucket_server_config)
  @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
  @ref = args[:ref] if args.key?(:ref)
  @repo_type = args[:repo_type] if args.key?(:repo_type)
  @repository = args[:repository] if args.key?(:repository)
  @uri = args[:uri] if args.key?(:uri)
end