Class: Google::Apis::ConnectorsV1::DestinationConfigTemplate

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

Overview

DestinationConfigTemplate defines required destinations supported by the Connector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationConfigTemplate

Returns a new instance of DestinationConfigTemplate.



1565
1566
1567
# File 'lib/google/apis/connectors_v1/classes.rb', line 1565

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

Instance Attribute Details

#default_portFixnum

The default port. Corresponds to the JSON property defaultPort

Returns:

  • (Fixnum)


1522
1523
1524
# File 'lib/google/apis/connectors_v1/classes.rb', line 1522

def default_port
  @default_port
end

#descriptionString

Description. Corresponds to the JSON property description

Returns:

  • (String)


1527
1528
1529
# File 'lib/google/apis/connectors_v1/classes.rb', line 1527

def description
  @description
end

#display_nameString

Display name of the parameter. Corresponds to the JSON property displayName

Returns:

  • (String)


1532
1533
1534
# File 'lib/google/apis/connectors_v1/classes.rb', line 1532

def display_name
  @display_name
end

#is_advancedBoolean Also known as: is_advanced?

Whether the current destination tempalate is part of Advanced settings Corresponds to the JSON property isAdvanced

Returns:

  • (Boolean)


1537
1538
1539
# File 'lib/google/apis/connectors_v1/classes.rb', line 1537

def is_advanced
  @is_advanced
end

#keyString

Key of the destination. Corresponds to the JSON property key

Returns:

  • (String)


1543
1544
1545
# File 'lib/google/apis/connectors_v1/classes.rb', line 1543

def key
  @key
end

#maxFixnum

The maximum number of destinations supported for this key. Corresponds to the JSON property max

Returns:

  • (Fixnum)


1548
1549
1550
# File 'lib/google/apis/connectors_v1/classes.rb', line 1548

def max
  @max
end

#minFixnum

The minimum number of destinations supported for this key. Corresponds to the JSON property min

Returns:

  • (Fixnum)


1553
1554
1555
# File 'lib/google/apis/connectors_v1/classes.rb', line 1553

def min
  @min
end

#port_field_typeString

Whether port number should be provided by customers. Corresponds to the JSON property portFieldType

Returns:

  • (String)


1558
1559
1560
# File 'lib/google/apis/connectors_v1/classes.rb', line 1558

def port_field_type
  @port_field_type
end

#regex_patternString

Regex pattern for host. Corresponds to the JSON property regexPattern

Returns:

  • (String)


1563
1564
1565
# File 'lib/google/apis/connectors_v1/classes.rb', line 1563

def regex_pattern
  @regex_pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
# File 'lib/google/apis/connectors_v1/classes.rb', line 1570

def update!(**args)
  @default_port = args[:default_port] if args.key?(:default_port)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @is_advanced = args[:is_advanced] if args.key?(:is_advanced)
  @key = args[:key] if args.key?(:key)
  @max = args[:max] if args.key?(:max)
  @min = args[:min] if args.key?(:min)
  @port_field_type = args[:port_field_type] if args.key?(:port_field_type)
  @regex_pattern = args[:regex_pattern] if args.key?(:regex_pattern)
end