Class: Google::Apis::ContactcenteraiplatformV1alpha1::ServiceAttachment

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

Container for the VPC-SC networking configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAttachment

Returns a new instance of ServiceAttachment.



784
785
786
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 784

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 service attachments. Corresponds to the JSON property allowedProjectIds

Returns:

  • (Array<String>)


775
776
777
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 775

def allowed_project_ids
  @allowed_project_ids
end

#nameString

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

Returns:

  • (String)


782
783
784
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 782

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



789
790
791
792
# File 'lib/google/apis/contactcenteraiplatform_v1alpha1/classes.rb', line 789

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