Class: Google::Apis::SourcerepoV1::UpdateRepoRequest
- Inherits:
-
Object
- Object
- Google::Apis::SourcerepoV1::UpdateRepoRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sourcerepo_v1/classes.rb,
generated/google/apis/sourcerepo_v1/representations.rb,
generated/google/apis/sourcerepo_v1/representations.rb
Overview
Request for UpdateRepo.
Instance Attribute Summary collapse
-
#repo ⇒ Google::Apis::SourcerepoV1::Repo
A repository (or repo) is a Git repository storing versioned source content.
-
#update_mask ⇒ String
A FieldMask specifying which fields of the repo to modify.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateRepoRequest
constructor
A new instance of UpdateRepoRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateRepoRequest
Returns a new instance of UpdateRepoRequest
671 672 673 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 671 def initialize(**args) update!(**args) end |
Instance Attribute Details
#repo ⇒ Google::Apis::SourcerepoV1::Repo
A repository (or repo) is a Git repository storing versioned source content.
Corresponds to the JSON property repo
662 663 664 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 662 def repo @repo end |
#update_mask ⇒ String
A FieldMask specifying which fields of the repo to modify. Only the fields
in the mask will be modified. If no mask is provided, this request is
no-op.
Corresponds to the JSON property updateMask
669 670 671 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 669 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
676 677 678 679 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 676 def update!(**args) @repo = args[:repo] if args.key?(:repo) @update_mask = args[:update_mask] if args.key?(:update_mask) end |