Class: Google::Apis::BeyondcorpV1alpha::CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig
- Inherits:
-
Object
- Object
- Google::Apis::BeyondcorpV1alpha::CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/beyondcorp_v1alpha/classes.rb,
lib/google/apis/beyondcorp_v1alpha/representations.rb,
lib/google/apis/beyondcorp_v1alpha/representations.rb
Overview
ConnectionConfig represents a Connection Configuration object.
Instance Attribute Summary collapse
-
#application_endpoint ⇒ String
application_endpoint is the endpoint of the application the form of host:port.
-
#application_name ⇒ String
application_name represents the given name of the application the connection is connecting with.
-
#gateway ⇒ Array<Google::Apis::BeyondcorpV1alpha::CloudSecurityZerotrustApplinkAppConnectorProtoGateway>
gateway lists all instances running a gateway in GCP.
-
#name ⇒ String
name is the unique ID for each connection.
-
#project ⇒ String
project represents the consumer project the connection belongs to.
-
#tunnels_per_gateway ⇒ Fixnum
tunnels_per_gateway reflects the number of tunnels between a connector and a gateway.
-
#user_port ⇒ Fixnum
user_port specifies the reserved port on gateways for user connections.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig
constructor
A new instance of CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig
Returns a new instance of CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig.
296 297 298 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 296 def initialize(**args) update!(**args) end |
Instance Attribute Details
#application_endpoint ⇒ String
application_endpoint is the endpoint of the application the form of host:port.
For example, "localhost:80".
Corresponds to the JSON property applicationEndpoint
259 260 261 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 259 def application_endpoint @application_endpoint end |
#application_name ⇒ String
application_name represents the given name of the application the connection
is connecting with.
Corresponds to the JSON property applicationName
265 266 267 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 265 def application_name @application_name end |
#gateway ⇒ Array<Google::Apis::BeyondcorpV1alpha::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
271 272 273 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 271 def gateway @gateway end |
#name ⇒ String
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
278 279 280 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 278 def name @name end |
#project ⇒ String
project represents the consumer project the connection belongs to.
Corresponds to the JSON property project
283 284 285 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 283 def project @project end |
#tunnels_per_gateway ⇒ Fixnum
tunnels_per_gateway reflects the number of tunnels between a connector and a
gateway.
Corresponds to the JSON property tunnelsPerGateway
289 290 291 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 289 def tunnels_per_gateway @tunnels_per_gateway end |
#user_port ⇒ Fixnum
user_port specifies the reserved port on gateways for user connections.
Corresponds to the JSON property userPort
294 295 296 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 294 def user_port @user_port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
301 302 303 304 305 306 307 308 309 |
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 301 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 |