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.



82
83
84
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 82

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_attachment_namesArray<String>

Associated service attachments. The service attachment names that will be used for sending private traffic to the CCAIP tenant project. Example service attachment name: "projects/$TENANT_PROJECT_ID/regions/$REGION/ serviceAttachments/ingress-default". Corresponds to the JSON property serviceAttachmentNames

Returns:

  • (Array<String>)


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

def service_attachment_names
  @service_attachment_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



87
88
89
90
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 87

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