Class: Google::Apis::RedisV1::PscConnection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscConnection

Returns a new instance of PscConnection.



2690
2691
2692
# File 'lib/google/apis/redis_v1/classes.rb', line 2690

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

Instance Attribute Details

#addressString

Output only. The IP allocated on the consumer network for the PSC forwarding rule. Corresponds to the JSON property address

Returns:

  • (String)


2665
2666
2667
# File 'lib/google/apis/redis_v1/classes.rb', line 2665

def address
  @address
end

#forwarding_ruleString

Output only. The URI of the consumer side forwarding rule. Example: projects/ projectNumOrId/regions/us-east1/forwardingRules/resourceId. Corresponds to the JSON property forwardingRule

Returns:

  • (String)


2671
2672
2673
# File 'lib/google/apis/redis_v1/classes.rb', line 2671

def forwarding_rule
  @forwarding_rule
end

#networkString

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

Returns:

  • (String)


2677
2678
2679
# File 'lib/google/apis/redis_v1/classes.rb', line 2677

def network
  @network
end

#project_idString

Output only. The consumer project_id where the forwarding rule is created from. Corresponds to the JSON property projectId

Returns:

  • (String)


2682
2683
2684
# File 'lib/google/apis/redis_v1/classes.rb', line 2682

def project_id
  @project_id
end

#psc_connection_idString

Output only. The PSC connection id of the forwarding rule connected to the service attachment. Corresponds to the JSON property pscConnectionId

Returns:

  • (String)


2688
2689
2690
# File 'lib/google/apis/redis_v1/classes.rb', line 2688

def psc_connection_id
  @psc_connection_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2695
2696
2697
2698
2699
2700
2701
# File 'lib/google/apis/redis_v1/classes.rb', line 2695

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