Class: Google::Apis::RedisV1::PscConnection
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::PscConnection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
Details of consumer resources in a PSC connection.
Instance Attribute Summary collapse
-
#address ⇒ String
Required.
-
#forwarding_rule ⇒ String
Required.
-
#network ⇒ String
Required.
-
#project_id ⇒ String
Optional.
-
#psc_connection_id ⇒ String
Required.
-
#service_attachment ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PscConnection
constructor
A new instance of PscConnection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PscConnection
Returns a new instance of PscConnection.
2705 2706 2707 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2705 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Required. The IP allocated on the consumer network for the PSC forwarding rule.
Corresponds to the JSON property address
2672 2673 2674 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2672 def address @address end |
#forwarding_rule ⇒ String
Required. The URI of the consumer side forwarding rule. Example: projects/
projectNumOrId
/regions/us-east1/forwardingRules/resourceId
.
Corresponds to the JSON property forwardingRule
2678 2679 2680 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2678 def forwarding_rule @forwarding_rule end |
#network ⇒ String
Required. The consumer network where the IP address resides, in the form of
projects/project_id
/global/networks/network_id
.
Corresponds to the JSON property network
2684 2685 2686 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2684 def network @network end |
#project_id ⇒ String
Optional. Project ID of the consumer project where the forwarding rule is
created in.
Corresponds to the JSON property projectId
2690 2691 2692 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2690 def project_id @project_id end |
#psc_connection_id ⇒ String
Required. The PSC connection id of the forwarding rule connected to the
service attachment.
Corresponds to the JSON property pscConnectionId
2696 2697 2698 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2696 def psc_connection_id @psc_connection_id end |
#service_attachment ⇒ String
Required. The service attachment which is the target of the PSC connection, in
the form of projects/project-id
/regions/region
/serviceAttachments/service-
attachment-id
.
Corresponds to the JSON property serviceAttachment
2703 2704 2705 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2703 def @service_attachment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2710 2711 2712 2713 2714 2715 2716 2717 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2710 def update!(**args) @address = args[:address] if args.key?(:address) @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule) @network = args[:network] if args.key?(:network) @project_id = args[:project_id] if args.key?(:project_id) @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id) @service_attachment = args[:service_attachment] if args.key?(:service_attachment) end |