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

Constructor Details

#initialize(**args) ⇒ UpdateProjectConfigRequest

Returns a new instance of UpdateProjectConfigRequest.



769
770
771
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 769

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



760
761
762
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 760

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)


767
768
769
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 767

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



774
775
776
777
# File 'generated/google/apis/sourcerepo_v1/classes.rb', line 774

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