Class: Google::Apis::CloudbuildV1::GitRepoSource
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::GitRepoSource
- 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
-
#bitbucket_server_config ⇒ String
The full resource name of the bitbucket server config.
-
#github_enterprise_config ⇒ String
The full resource name of the github enterprise config.
-
#ref ⇒ String
The branch or tag to use.
-
#repo_type ⇒ String
See RepoType below.
-
#repository ⇒ String
The connected repository resource name, in the format
projects/*/locations/*/ connections/*/repositories/*. -
#uri ⇒ String
The URI of the repo (e.g. https://github.com/user/repo.git).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitRepoSource
constructor
A new instance of GitRepoSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GitRepoSource
Returns a new instance of GitRepoSource.
2562 2563 2564 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2562 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bitbucket_server_config ⇒ String
The full resource name of the bitbucket server config. Format: projects/
project/locations/location/bitbucketServerConfigs/id`.
Corresponds to the JSON propertybitbucketServerConfig`
2530 2531 2532 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2530 def bitbucket_server_config @bitbucket_server_config end |
#github_enterprise_config ⇒ String
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
2537 2538 2539 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2537 def github_enterprise_config @github_enterprise_config end |
#ref ⇒ String
The branch or tag to use. Must start with "refs/" (required).
Corresponds to the JSON property ref
2542 2543 2544 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2542 def ref @ref end |
#repo_type ⇒ String
See RepoType below.
Corresponds to the JSON property repoType
2547 2548 2549 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2547 def repo_type @repo_type end |
#repository ⇒ String
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
2554 2555 2556 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2554 def repository @repository end |
#uri ⇒ String
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
2560 2561 2562 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2560 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2567 2568 2569 2570 2571 2572 2573 2574 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2567 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 |