Class: Google::Apis::SqladminV1beta4::PscConfig
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::PscConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb
Overview
PSC settings for a Cloud SQL instance.
Instance Attribute Summary collapse
-
#allowed_consumer_projects ⇒ Array<String>
Optional.
-
#psc_auto_connections ⇒ Array<Google::Apis::SqladminV1beta4::PscAutoConnectionConfig>
Optional.
-
#psc_enabled ⇒ Boolean
(also: #psc_enabled?)
Whether PSC connectivity is enabled for this instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PscConfig
constructor
A new instance of PscConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PscConfig
Returns a new instance of PscConfig.
3571 3572 3573 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3571 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_consumer_projects ⇒ Array<String>
Optional. The list of consumer projects that are allow-listed for PSC
connections to this instance. This instance can be connected to with PSC from
any network in these projects. Each consumer project in this list may be
represented by a project number (numeric) or by a project id (alphanumeric).
Corresponds to the JSON property allowedConsumerProjects
3557 3558 3559 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3557 def allowed_consumer_projects @allowed_consumer_projects end |
#psc_auto_connections ⇒ Array<Google::Apis::SqladminV1beta4::PscAutoConnectionConfig>
Optional. The list of settings for requested Private Service Connect consumer
endpoints that can be used to connect to this Cloud SQL instance.
Corresponds to the JSON property pscAutoConnections
3563 3564 3565 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3563 def psc_auto_connections @psc_auto_connections end |
#psc_enabled ⇒ Boolean Also known as: psc_enabled?
Whether PSC connectivity is enabled for this instance.
Corresponds to the JSON property pscEnabled
3568 3569 3570 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3568 def psc_enabled @psc_enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3576 3577 3578 3579 3580 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3576 def update!(**args) @allowed_consumer_projects = args[:allowed_consumer_projects] if args.key?(:allowed_consumer_projects) @psc_auto_connections = args[:psc_auto_connections] if args.key?(:psc_auto_connections) @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled) end |