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
Output only.
-
#forwarding_rule ⇒ String
Output only.
-
#network ⇒ String
The consumer network where the IP address resides, in the form of projects/
project_id/global/networks/network_id. -
#project_id ⇒ String
Output only.
-
#psc_connection_id ⇒ String
Output only.
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.
2073 2074 2075 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2073 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
Output only. The IP allocated on the consumer network for the PSC forwarding
rule.
Corresponds to the JSON property address
2048 2049 2050 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2048 def address @address end |
#forwarding_rule ⇒ String
Output only. The URI of the consumer side forwarding rule. Example: projects/
projectNumOrId/regions/us-east1/forwardingRules/resourceId.
Corresponds to the JSON property forwardingRule
2054 2055 2056 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2054 def forwarding_rule @forwarding_rule end |
#network ⇒ String
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
2060 2061 2062 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2060 def network @network end |
#project_id ⇒ String
Output only. The consumer project_id where the forwarding rule is created from.
Corresponds to the JSON property projectId
2065 2066 2067 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2065 def project_id @project_id end |
#psc_connection_id ⇒ String
Output only. The PSC connection id of the forwarding rule connected to the
service attachment.
Corresponds to the JSON property pscConnectionId
2071 2072 2073 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2071 def psc_connection_id @psc_connection_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2078 2079 2080 2081 2082 2083 2084 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2078 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) end |