Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SipTrunk

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

Overview

SipTrunk is the resource that represents a SIP trunk to connect to Google Telephony platform SIP trunking service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SipTrunk

Returns a new instance of GoogleCloudDialogflowV2beta1SipTrunk.



19321
19322
19323
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19321

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

Instance Attribute Details

#connectionsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Connection>

Output only. Connections of the SIP trunk. Corresponds to the JSON property connections



19302
19303
19304
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19302

def connections
  @connections
end

#display_nameString

Optional. Human readable alias for this trunk. Corresponds to the JSON property displayName

Returns:

  • (String)


19307
19308
19309
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19307

def display_name
  @display_name
end

#expected_hostnameArray<String>

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication. Corresponds to the JSON property expectedHostname

Returns:

  • (Array<String>)


19313
19314
19315
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19313

def expected_hostname
  @expected_hostname
end

#nameString

Identifier. The unique identifier of the SIP trunk. Format: projects// locations//sipTrunks/. Corresponds to the JSON property name

Returns:

  • (String)


19319
19320
19321
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19319

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19326
19327
19328
19329
19330
19331
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19326

def update!(**args)
  @connections = args[:connections] if args.key?(:connections)
  @display_name = args[:display_name] if args.key?(:display_name)
  @expected_hostname = args[:expected_hostname] if args.key?(:expected_hostname)
  @name = args[:name] if args.key?(:name)
end