Class: Google::Apis::BeyondcorpV1::CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig

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

Overview

ConnectionConfig represents a Connection Configuration object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig

Returns a new instance of CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig.



238
239
240
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 238

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

Instance Attribute Details

#application_endpointString

application_endpoint is the endpoint of the application the form of host:port. For example, "localhost:80". Corresponds to the JSON property applicationEndpoint

Returns:

  • (String)


201
202
203
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 201

def application_endpoint
  @application_endpoint
end

#application_nameString

application_name represents the given name of the application the connection is connecting with. Corresponds to the JSON property applicationName

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 207

def application_name
  @application_name
end

#gatewayArray<Google::Apis::BeyondcorpV1::CloudSecurityZerotrustApplinkAppConnectorProtoGateway>

gateway lists all instances running a gateway in GCP. They all connect to a connector on the host. Corresponds to the JSON property gateway



213
214
215
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 213

def gateway
  @gateway
end

#nameString

name is the unique ID for each connection. TODO(b/190732451) returns connection name from user-specified name in config. Now, name = $ application_name:$application_endpoint Corresponds to the JSON property name

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 220

def name
  @name
end

#projectString

project represents the consumer project the connection belongs to. Corresponds to the JSON property project

Returns:

  • (String)


225
226
227
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 225

def project
  @project
end

#tunnels_per_gatewayFixnum

tunnels_per_gateway reflects the number of tunnels between a connector and a gateway. Corresponds to the JSON property tunnelsPerGateway

Returns:

  • (Fixnum)


231
232
233
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 231

def tunnels_per_gateway
  @tunnels_per_gateway
end

#user_portFixnum

user_port specifies the reserved port on gateways for user connections. Corresponds to the JSON property userPort

Returns:

  • (Fixnum)


236
237
238
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 236

def user_port
  @user_port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



243
244
245
246
247
248
249
250
251
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 243

def update!(**args)
  @application_endpoint = args[:application_endpoint] if args.key?(:application_endpoint)
  @application_name = args[:application_name] if args.key?(:application_name)
  @gateway = args[:gateway] if args.key?(:gateway)
  @name = args[:name] if args.key?(:name)
  @project = args[:project] if args.key?(:project)
  @tunnels_per_gateway = args[:tunnels_per_gateway] if args.key?(:tunnels_per_gateway)
  @user_port = args[:user_port] if args.key?(:user_port)
end