Class: Google::Apis::AlloydbV1beta::PscInstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::PscInstanceConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
PscInstanceConfig contains PSC related configuration at an instance level.
Instance Attribute Summary collapse
-
#allowed_consumer_networks ⇒ Array<String>
Optional.
-
#allowed_consumer_projects ⇒ Array<String>
Optional.
-
#outgoing_service_attachment_links ⇒ Array<String>
Optional.
-
#psc_enabled ⇒ Boolean
(also: #psc_enabled?)
Optional.
-
#psc_interface_configs ⇒ Array<Google::Apis::AlloydbV1beta::PscInterfaceConfig>
Optional.
-
#service_attachment_link ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PscInstanceConfig
constructor
A new instance of PscInstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PscInstanceConfig
Returns a new instance of PscInstanceConfig.
1910 1911 1912 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1910 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_consumer_networks ⇒ Array<String>
Optional. List of consumer networks that are allowed to create PSC endpoints
to service-attachments to this instance.
Corresponds to the JSON property allowedConsumerNetworks
1873 1874 1875 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1873 def allowed_consumer_networks @allowed_consumer_networks end |
#allowed_consumer_projects ⇒ Array<String>
Optional. List of consumer projects that are allowed to create PSC endpoints
to service-attachments to this instance.
Corresponds to the JSON property allowedConsumerProjects
1879 1880 1881 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1879 def allowed_consumer_projects @allowed_consumer_projects end |
#outgoing_service_attachment_links ⇒ Array<String>
Optional. List of service attachments that this instance has created endpoints
to connect with. Currently, only a single outgoing service attachment is
supported per instance.
Corresponds to the JSON property outgoingServiceAttachmentLinks
1886 1887 1888 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1886 def @outgoing_service_attachment_links end |
#psc_enabled ⇒ Boolean Also known as: psc_enabled?
Optional. Whether PSC connectivity is enabled for this instance. This is
populated by referencing the value from the parent cluster.
Corresponds to the JSON property pscEnabled
1892 1893 1894 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1892 def psc_enabled @psc_enabled end |
#psc_interface_configs ⇒ Array<Google::Apis::AlloydbV1beta::PscInterfaceConfig>
Optional. Configurations for setting up PSC interfaces attached to the
instance which are used for outbound connectivity. Only primary instances can
have PSC interface attached. All the VMs created for the primary instance will
share the same configurations. Currently we only support 0 or 1 PSC interface.
Corresponds to the JSON property pscInterfaceConfigs
1901 1902 1903 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1901 def psc_interface_configs @psc_interface_configs end |
#service_attachment_link ⇒ String
Output only. The service attachment created when Private Service Connect (PSC)
is enabled for the instance. The name of the resource will be in the format of
projects//regions//serviceAttachments/
Corresponds to the JSON property serviceAttachmentLink
1908 1909 1910 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1908 def @service_attachment_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1915 1916 1917 1918 1919 1920 1921 1922 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1915 def update!(**args) @allowed_consumer_networks = args[:allowed_consumer_networks] if args.key?(:allowed_consumer_networks) @allowed_consumer_projects = args[:allowed_consumer_projects] if args.key?(:allowed_consumer_projects) @outgoing_service_attachment_links = args[:outgoing_service_attachment_links] if args.key?(:outgoing_service_attachment_links) @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled) @psc_interface_configs = args[:psc_interface_configs] if args.key?(:psc_interface_configs) @service_attachment_link = args[:service_attachment_link] if args.key?(:service_attachment_link) end |