Class: Google::Apis::NetworkconnectivityV1::ConsumerPscConfig
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::ConsumerPscConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
Allow the producer to specify which consumers can connect to it.
Instance Attribute Summary collapse
-
#disable_global_access ⇒ Boolean
(also: #disable_global_access?)
This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
-
#network ⇒ String
The resource path of the consumer network where PSC connections are allowed to be created in.
-
#project ⇒ String
The consumer project where PSC connections are allowed to be created in.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsumerPscConfig
constructor
A new instance of ConsumerPscConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConsumerPscConfig
Returns a new instance of ConsumerPscConfig.
231 232 233 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_global_access ⇒ Boolean Also known as: disable_global_access?
This is used in PSC consumer ForwardingRule to control whether the PSC
endpoint can be accessed from another region.
Corresponds to the JSON property disableGlobalAccess
209 210 211 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 209 def disable_global_access @disable_global_access end |
#network ⇒ String
The resource path of the consumer network where PSC connections are allowed to
be created in. Note, this network does not need be in the ConsumerPscConfig.
project in the case of SharedVPC. Example: projects/projectNumOrId/global/
networks/networkId.
Corresponds to the JSON property network
218 219 220 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 218 def network @network end |
#project ⇒ String
The consumer project where PSC connections are allowed to be created in.
Corresponds to the JSON property project
223 224 225 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 223 def project @project end |
#state ⇒ String
Output only. Overall state of PSC Connections management for this consumer psc
config.
Corresponds to the JSON property state
229 230 231 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 229 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
236 237 238 239 240 241 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 236 def update!(**args) @disable_global_access = args[:disable_global_access] if args.key?(:disable_global_access) @network = args[:network] if args.key?(:network) @project = args[:project] if args.key?(:project) @state = args[:state] if args.key?(:state) end |