Class: Google::Apis::BeyondcorpV1alpha::Connection

Inherits:
Object
  • Object
show all
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

A BeyondCorp Connection resource represents a BeyondCorp protected connection to a remote application. It creates all the necessary GCP components needed for creating a BeyondCorp protected connection. Multiple connectors can be authorised for a single Connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Connection

Returns a new instance of Connection.



706
707
708
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 706

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

Instance Attribute Details

#application_endpointGoogle::Apis::BeyondcorpV1alpha::ApplicationEndpoint

ApplicationEndpoint represents a remote application endpoint. Corresponds to the JSON property applicationEndpoint



650
651
652
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 650

def application_endpoint
  @application_endpoint
end

#connectorsArray<String>

Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be associated with this Connection. Corresponds to the JSON property connectors

Returns:

  • (Array<String>)


656
657
658
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 656

def connectors
  @connectors
end

#create_timeString

Output only. Timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


661
662
663
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 661

def create_time
  @create_time
end

#display_nameString

Optional. An arbitrary user-provided name for the connection. Cannot exceed 64 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


667
668
669
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 667

def display_name
  @display_name
end

#gatewayGoogle::Apis::BeyondcorpV1alpha::Gateway

Gateway represents a user facing component that serves as an entrance to enable connectivity. Corresponds to the JSON property gateway



673
674
675
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 673

def gateway
  @gateway
end

#labelsHash<String,String>

Optional. Resource labels to represent user provided metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


678
679
680
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 678

def labels
  @labels
end

#nameString

Required. Unique resource name of the connection. The name is ignored when creating a connection. Corresponds to the JSON property name

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 684

def name
  @name
end

#stateString

Output only. The current state of the connection. Corresponds to the JSON property state

Returns:

  • (String)


689
690
691
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 689

def state
  @state
end

#typeString

Required. The type of network connectivity used by the connection. Corresponds to the JSON property type

Returns:

  • (String)


694
695
696
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 694

def type
  @type
end

#uidString

Output only. A unique identifier for the instance generated by the system. Corresponds to the JSON property uid

Returns:

  • (String)


699
700
701
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 699

def uid
  @uid
end

#update_timeString

Output only. Timestamp when the resource was last modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


704
705
706
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 704

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/google/apis/beyondcorp_v1alpha/classes.rb', line 711

def update!(**args)
  @application_endpoint = args[:application_endpoint] if args.key?(:application_endpoint)
  @connectors = args[:connectors] if args.key?(:connectors)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @gateway = args[:gateway] if args.key?(:gateway)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end