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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#repoGoogle::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_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)


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