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.



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

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

Instance Attribute Details

#allowed_project_idsArray<String>

The list of project ids that are allowed to send traffic to the service attachment. This field should be filled only for the ingress components. Corresponds to the JSON property allowedProjectIds

Returns:

  • (Array<String>)


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

def allowed_project_ids
  @allowed_project_ids
end

#nameString

Name of the component. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

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

Associated service attachments. Corresponds to the JSON property serviceAttachments



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

def service_attachments
  @service_attachments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



90
91
92
93
94
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 90

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