Class: Google::Apis::ContactcenteraiplatformV1alpha1::Component

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

Overview

Defines a logical CCAIP component that e.g. “EMAIL”, "CRM". For more information see go/ccaip-private-path-v2. Each logical component is associated with a list of service attachments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Component

Returns a new instance of Component.



79
80
81
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 79

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

Instance Attribute Details

#nameString

Name of the component. Corresponds to the JSON property name

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 72

def name
  @name
end

#service_attachmentsArray<Google::Apis::ContactcenteraiplatformV1alpha1::ServiceAttachment>

Associated service attachments. Corresponds to the JSON property serviceAttachments



77
78
79
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 77

def service_attachments
  @service_attachments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84
85
86
87
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 84

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