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.
933 934 935 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 933 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
924 925 926 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 924 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
931 932 933 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 931 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
938 939 940 941 |
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 938 def update!(**args) @repo = args[:repo] if args.key?(:repo) @update_mask = args[:update_mask] if args.key?(:update_mask) end |