Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationParameter

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

Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaIntegrationParameter

Returns a new instance of GoogleCloudIntegrationsV1alphaIntegrationParameter.



6860
6861
6862
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6860

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

Instance Attribute Details

#data_typeString

Type of the parameter. Corresponds to the JSON property dataType

Returns:

  • (String)


6811
6812
6813
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6811

def data_type
  @data_type
end

#default_valueGoogle::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaValueType

The type of the parameter. Corresponds to the JSON property defaultValue



6816
6817
6818
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6816

def default_value
  @default_value
end

#display_nameString

The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName". Corresponds to the JSON property displayName

Returns:

  • (String)


6822
6823
6824
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6822

def display_name
  @display_name
end

#input_output_typeString

Specifies the input/output type for the parameter. Corresponds to the JSON property inputOutputType

Returns:

  • (String)


6827
6828
6829
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6827

def input_output_type
  @input_output_type
end

#is_transientBoolean Also known as: is_transient?

Whether this parameter is a transient parameter. Corresponds to the JSON property isTransient

Returns:

  • (Boolean)


6832
6833
6834
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6832

def is_transient
  @is_transient
end

#json_schemaString

This schema will be used to validate runtime JSON-typed values of this parameter. Corresponds to the JSON property jsonSchema

Returns:

  • (String)


6839
6840
6841
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6839

def json_schema
  @json_schema
end

#keyString

Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition. Corresponds to the JSON property key

Returns:

  • (String)


6846
6847
6848
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6846

def key
  @key
end

#producerString

The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param. Corresponds to the JSON property producer

Returns:

  • (String)


6852
6853
6854
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6852

def producer
  @producer
end

#searchableBoolean Also known as: searchable?

Searchable in the execution log or not. Corresponds to the JSON property searchable

Returns:

  • (Boolean)


6857
6858
6859
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6857

def searchable
  @searchable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6865

def update!(**args)
  @data_type = args[:data_type] if args.key?(:data_type)
  @default_value = args[:default_value] if args.key?(:default_value)
  @display_name = args[:display_name] if args.key?(:display_name)
  @input_output_type = args[:input_output_type] if args.key?(:input_output_type)
  @is_transient = args[:is_transient] if args.key?(:is_transient)
  @json_schema = args[:json_schema] if args.key?(:json_schema)
  @key = args[:key] if args.key?(:key)
  @producer = args[:producer] if args.key?(:producer)
  @searchable = args[:searchable] if args.key?(:searchable)
end