Class: Google::Apis::CloudbuildV2::CreateRepositoryRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::CreateRepositoryRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Message for creating a Repository.
Instance Attribute Summary collapse
-
#parent ⇒ String
Required.
-
#repository ⇒ Google::Apis::CloudbuildV2::Repository
A repository associated to a parent connection.
-
#repository_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateRepositoryRequest
constructor
A new instance of CreateRepositoryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateRepositoryRequest
Returns a new instance of CreateRepositoryRequest.
400 401 402 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 400 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parent ⇒ String
Required. The connection to contain the repository. If the request is part of
a BatchCreateRepositoriesRequest, this field should be empty or match the
parent specified there.
Corresponds to the JSON property parent
386 387 388 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 386 def parent @parent end |
#repository ⇒ Google::Apis::CloudbuildV2::Repository
A repository associated to a parent connection.
Corresponds to the JSON property repository
391 392 393 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 391 def repository @repository end |
#repository_id ⇒ String
Required. The ID to use for the repository, which will become the final
component of the repository's resource name. This ID should be unique in the
connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
Corresponds to the JSON property repositoryId
398 399 400 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 398 def repository_id @repository_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
405 406 407 408 409 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 405 def update!(**args) @parent = args[:parent] if args.key?(:parent) @repository = args[:repository] if args.key?(:repository) @repository_id = args[:repository_id] if args.key?(:repository_id) end |