Class: Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1UpdateOptions
- Inherits:
-
Object
- Object
- Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1UpdateOptions
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contentwarehouse_v1/classes.rb,
lib/google/apis/contentwarehouse_v1/representations.rb,
lib/google/apis/contentwarehouse_v1/representations.rb
Overview
Options for Update operations.
Instance Attribute Summary collapse
-
#merge_fields_options ⇒ Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1MergeFieldsOptions
Options for merging updated fields.
-
#update_mask ⇒ String
Field mask for merging Document fields.
-
#update_type ⇒ String
Type for update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContentwarehouseV1UpdateOptions
constructor
A new instance of GoogleCloudContentwarehouseV1UpdateOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContentwarehouseV1UpdateOptions
Returns a new instance of GoogleCloudContentwarehouseV1UpdateOptions.
4058 4059 4060 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4058 def initialize(**args) update!(**args) end |
Instance Attribute Details
#merge_fields_options ⇒ Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1MergeFieldsOptions
Options for merging updated fields.
Corresponds to the JSON property mergeFieldsOptions
4044 4045 4046 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4044 def @merge_fields_options end |
#update_mask ⇒ String
Field mask for merging Document fields. For the FieldMask definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
fieldmask
Corresponds to the JSON property updateMask
4051 4052 4053 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4051 def update_mask @update_mask end |
#update_type ⇒ String
Type for update.
Corresponds to the JSON property updateType
4056 4057 4058 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4056 def update_type @update_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4063 4064 4065 4066 4067 |
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4063 def update!(**args) @merge_fields_options = args[:merge_fields_options] if args.key?(:merge_fields_options) @update_mask = args[:update_mask] if args.key?(:update_mask) @update_type = args[:update_type] if args.key?(:update_type) end |