Class: Google::Apis::SourcerepoV1::UpdateProjectConfigRequest

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 UpdateProjectConfig.

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) ⇒ UpdateProjectConfigRequest

Returns a new instance of UpdateProjectConfigRequest



644
645
646
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 644

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

Instance Attribute Details

#project_configGoogle::Apis::SourcerepoV1::ProjectConfig

Cloud Source Repositories configuration of a project. Corresponds to the JSON property projectConfig



635
636
637
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 635

def project_config
  @project_config
end

#update_maskString

A FieldMask specifying which fields of the project_config 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)


642
643
644
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 642

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



649
650
651
652
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 649

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