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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sourcerepo_v1/classes.rb,
lib/google/apis/sourcerepo_v1/representations.rb,
lib/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.



773
774
775
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 773

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



764
765
766
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 764

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)


771
772
773
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 771

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



778
779
780
781
# File 'lib/google/apis/sourcerepo_v1/classes.rb', line 778

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