Class: Google::Apis::SqladminV1::PscAutoConnectionConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb

Overview

Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PscAutoConnectionConfig

Returns a new instance of PscAutoConnectionConfig.



3501
3502
3503
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3501

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

Instance Attribute Details

#consumer_networkString

The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, projects/project1/global/networks/network1. The consumer host project of this network might be different from the consumer service project. Corresponds to the JSON property consumerNetwork

Returns:

  • (String)


3478
3479
3480
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3478

def consumer_network
  @consumer_network
end

#consumer_network_statusString

The connection policy status of the consumer network. Corresponds to the JSON property consumerNetworkStatus

Returns:

  • (String)


3483
3484
3485
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3483

def consumer_network_status
  @consumer_network_status
end

#consumer_projectString

This is the project ID of consumer service project of this consumer endpoint. Optional. This is only applicable if consumer_network is a shared vpc network. Corresponds to the JSON property consumerProject

Returns:

  • (String)


3489
3490
3491
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3489

def consumer_project
  @consumer_project
end

#ip_addressString

The IP address of the consumer endpoint. Corresponds to the JSON property ipAddress

Returns:

  • (String)


3494
3495
3496
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3494

def ip_address
  @ip_address
end

#statusString

The connection status of the consumer endpoint. Corresponds to the JSON property status

Returns:

  • (String)


3499
3500
3501
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3499

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3506
3507
3508
3509
3510
3511
3512
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3506

def update!(**args)
  @consumer_network = args[:consumer_network] if args.key?(:consumer_network)
  @consumer_network_status = args[:consumer_network_status] if args.key?(:consumer_network_status)
  @consumer_project = args[:consumer_project] if args.key?(:consumer_project)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @status = args[:status] if args.key?(:status)
end