Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumber

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1PhoneNumber

Returns a new instance of GoogleCloudDialogflowV2beta1PhoneNumber.



18636
18637
18638
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18636

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

Instance Attribute Details

#allowed_sip_trunksGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1PhoneNumberAllowedSipTrunks

Corresponds to the JSON property allowedSipTrunks



18609
18610
18611
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18609

def allowed_sip_trunks
  @allowed_sip_trunks
end

#conversation_profileString

Corresponds to the JSON property conversationProfile

Returns:

  • (String)


18614
18615
18616
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18614

def conversation_profile
  @conversation_profile
end

#lifecycle_stateString

Corresponds to the JSON property lifecycleState

Returns:

  • (String)


18619
18620
18621
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18619

def lifecycle_state
  @lifecycle_state
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


18624
18625
18626
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18624

def name
  @name
end

#phone_numberString

Corresponds to the JSON property phoneNumber

Returns:

  • (String)


18629
18630
18631
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18629

def phone_number
  @phone_number
end

#purge_timeString

Corresponds to the JSON property purgeTime

Returns:

  • (String)


18634
18635
18636
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18634

def purge_time
  @purge_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18641
18642
18643
18644
18645
18646
18647
18648
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18641

def update!(**args)
  @allowed_sip_trunks = args[:allowed_sip_trunks] if args.key?(:allowed_sip_trunks)
  @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
  @name = args[:name] if args.key?(:name)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @purge_time = args[:purge_time] if args.key?(:purge_time)
end