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.



2067
2068
2069
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2067

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)


2043
2044
2045
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2043

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)


2050
2051
2052
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2050

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)


2055
2056
2057
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2055

def ref
  @ref
end

#repo_typeString

See RepoType below. Corresponds to the JSON property repoType

Returns:

  • (String)


2060
2061
2062
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2060

def repo_type
  @repo_type
end

#uriString

The URI of the repo (required). Corresponds to the JSON property uri

Returns:

  • (String)


2065
2066
2067
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2065

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2072
2073
2074
2075
2076
2077
2078
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2072

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)
  @uri = args[:uri] if args.key?(:uri)
end