Class: Google::Apis::BeyondcorpV1::CloudSecurityZerotrustApplinkAppConnectorProtoGateway

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

Gateway represents a GCE VM Instance endpoint for use by IAP TCP.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSecurityZerotrustApplinkAppConnectorProtoGateway

Returns a new instance of CloudSecurityZerotrustApplinkAppConnectorProtoGateway.



328
329
330
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 328

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

Instance Attribute Details

#interfaceString

interface specifies the network interface of the gateway to connect to. Corresponds to the JSON property interface

Returns:

  • (String)


288
289
290
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 288

def interface
  @interface
end

#nameString

name is the name of an instance running a gateway. It is the unique ID for a gateway. All gateways under the same connection have the same prefix. It is derived from the gateway URL. For example, name=$instance assuming a gateway URL. https://www.googleapis.com/compute/$`version`/projects/$`project`/zones/$` zone/instances/$instance Corresponds to the JSON propertyname`

Returns:

  • (String)


297
298
299
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 297

def name
  @name
end

#portFixnum

port specifies the port of the gateway for tunnel connections from the connectors. Corresponds to the JSON property port

Returns:

  • (Fixnum)


303
304
305
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 303

def port
  @port
end

#projectString

project is the tenant project the gateway belongs to. Different from the project in the connection, it is a BeyondCorpAPI internally created project to manage all the gateways. It is sharing the same network with the consumer project user owned. It is derived from the gateway URL. For example, project=$ project assuming a gateway URL. https://www.googleapis.com/compute/$`version`/ projects/$project/zones/$zone/instances/$instance Corresponds to the JSON property project

Returns:

  • (String)


313
314
315
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 313

def project
  @project
end

self_link is the gateway URL in the form https://www.googleapis.com/compute/$` version/projects/$project/zones/$zone/instances/$instance Corresponds to the JSON propertyselfLink`

Returns:

  • (String)


319
320
321
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 319

def self_link
  @self_link
end

#zoneString

zone represents the zone the instance belongs. It is derived from the gateway URL. For example, zone=$zone assuming a gateway URL. https://www.googleapis. com/compute/$version/projects/$project/zones/$zone/instances/$instance Corresponds to the JSON property zone

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 326

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
337
338
339
340
# File 'lib/google/apis/beyondcorp_v1/classes.rb', line 333

def update!(**args)
  @interface = args[:interface] if args.key?(:interface)
  @name = args[:name] if args.key?(:name)
  @port = args[:port] if args.key?(:port)
  @project = args[:project] if args.key?(:project)
  @self_link = args[:self_link] if args.key?(:self_link)
  @zone = args[:zone] if args.key?(:zone)
end