Class: Google::Apis::SourcerepoV1::UpdateRepoRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateRepoRequest

Returns a new instance of UpdateRepoRequest.



795
796
797
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 795

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#repoGoogle::Apis::SourcerepoV1::Repo

A repository (or repo) is a Git repository storing versioned source content. Corresponds to the JSON property repo



787
788
789
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 787

def repo
  @repo
end

#update_maskString

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

Returns:

  • (String)


793
794
795
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 793

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



800
801
802
803
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 800

def update!(**args)
  @repo = args[:repo] if args.key?(:repo)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end