Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoAttributes

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb

Overview

Attributes are additional options that can be associated with each event property. For more information, see go/integration-platform/event_bus/ attributes_registry.md. Next available: 8

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoAttributes

Returns a new instance of EnterpriseCrmEventbusProtoAttributes.



173
174
175
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 173

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

Instance Attribute Details

#data_typeString

Things like URL, Email, Currency, Timestamp (rather than string, int64...) Corresponds to the JSON property dataType

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 133

def data_type
  @data_type
end

#default_valueGoogle::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoValueType

Used for define type for values. Currently supported value types include int, string, double, array, and any proto message. Corresponds to the JSON property defaultValue



139
140
141
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 139

def default_value
  @default_value
end

#is_requiredBoolean Also known as: is_required?

Required for event execution. The validation will be done by the event bus when the event is triggered. Corresponds to the JSON property isRequired

Returns:

  • (Boolean)


145
146
147
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 145

def is_required
  @is_required
end

#is_searchableBoolean Also known as: is_searchable?

Used to indicate if a ParameterEntry should be converted to ParamIndexes for ST-Spanner full-text search. DEPRECATED: use searchable. Corresponds to the JSON property isSearchable

Returns:

  • (Boolean)


152
153
154
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 152

def is_searchable
  @is_searchable
end

#log_settingsGoogle::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoLogSettings

The LogSettings define the logging attributes for an event property. These attributes are used to map the property to the parameter in the log proto. Also used to define scrubbing/truncation behavior and PII information. See go/ integration-platform/analytics/logging_task.md for details. Corresponds to the JSON property logSettings



161
162
163
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 161

def log_settings
  @log_settings
end

#searchableString

Corresponds to the JSON property searchable

Returns:

  • (String)


166
167
168
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 166

def searchable
  @searchable
end

#task_visibilityArray<String>

List of tasks that can view this property, if empty then all. Corresponds to the JSON property taskVisibility

Returns:

  • (Array<String>)


171
172
173
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 171

def task_visibility
  @task_visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



178
179
180
181
182
183
184
185
186
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 178

def update!(**args)
  @data_type = args[:data_type] if args.key?(:data_type)
  @default_value = args[:default_value] if args.key?(:default_value)
  @is_required = args[:is_required] if args.key?(:is_required)
  @is_searchable = args[:is_searchable] if args.key?(:is_searchable)
  @log_settings = args[:log_settings] if args.key?(:log_settings)
  @searchable = args[:searchable] if args.key?(:searchable)
  @task_visibility = args[:task_visibility] if args.key?(:task_visibility)
end