Class: Google::Apis::VmwareengineV1::PrivateConnection

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

Overview

Private connection resource that provides connectivity for VMware Engine private clouds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrivateConnection

Returns a new instance of PrivateConnection.



2773
2774
2775
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2773

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

Instance Attribute Details

#create_timeString

Output only. Creation time of this resource. Corresponds to the JSON property createTime

Returns:

  • (String)


2688
2689
2690
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2688

def create_time
  @create_time
end

#descriptionString

Optional. User-provided description for this private connection. Corresponds to the JSON property description

Returns:

  • (String)


2693
2694
2695
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2693

def description
  @description
end

#nameString

Output only. The resource name of the private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/ design/resource_names. For example: projects/my-project/locations/us-central1/ privateConnections/my-connection Corresponds to the JSON property name

Returns:

  • (String)


2701
2702
2703
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2701

def name
  @name
end

#peering_idString

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork. Corresponds to the JSON property peeringId

Returns:

  • (String)


2707
2708
2709
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2707

def peering_id
  @peering_id
end

#peering_stateString

Output only. Peering state between service network and VMware Engine network. Corresponds to the JSON property peeringState

Returns:

  • (String)


2712
2713
2714
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2712

def peering_state
  @peering_state
end

#routing_modeString

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported. Corresponds to the JSON property routingMode

Returns:

  • (String)


2719
2720
2721
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2719

def routing_mode
  @routing_mode
end

#service_networkString

Required. Service network to create private connection. Specify the name in the following form: projects/project/global/networks/network_id`For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/ project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/ dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc. Corresponds to the JSON propertyserviceNetwork`

Returns:

  • (String)


2733
2734
2735
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2733

def service_network
  @service_network
end

#stateString

Output only. State of the private connection. Corresponds to the JSON property state

Returns:

  • (String)


2738
2739
2740
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2738

def state
  @state
end

#typeString

Required. Private connection type. Corresponds to the JSON property type

Returns:

  • (String)


2743
2744
2745
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2743

def type
  @type
end

#uidString

Output only. System-generated unique identifier for the resource. Corresponds to the JSON property uid

Returns:

  • (String)


2748
2749
2750
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2748

def uid
  @uid
end

#update_timeString

Output only. Last update time of this resource. Corresponds to the JSON property updateTime

Returns:

  • (String)


2753
2754
2755
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2753

def update_time
  @update_time
end

#vmware_engine_networkString

Required. The relative resource name of Legacy VMware Engine network. Specify the name in the following form: projects/project/locations/location/ vmwareEngineNetworks/vmware_engine_network_idwhereproject,location will be same as specified in private connection resource name and vmware_engine_network_id will be in the form of location-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1- default. Corresponds to the JSON property vmwareEngineNetwork

Returns:

  • (String)


2764
2765
2766
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2764

def vmware_engine_network
  @vmware_engine_network
end

#vmware_engine_network_canonicalString

Output only. The canonical name of the VMware Engine network in the form: projects/project_number/locations/location/vmwareEngineNetworks/ vmware_engine_network_id` Corresponds to the JSON propertyvmwareEngineNetworkCanonical`

Returns:

  • (String)


2771
2772
2773
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2771

def vmware_engine_network_canonical
  @vmware_engine_network_canonical
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2778

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @peering_id = args[:peering_id] if args.key?(:peering_id)
  @peering_state = args[:peering_state] if args.key?(:peering_state)
  @routing_mode = args[:routing_mode] if args.key?(:routing_mode)
  @service_network = args[:service_network] if args.key?(:service_network)
  @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)
  @vmware_engine_network = args[:vmware_engine_network] if args.key?(:vmware_engine_network)
  @vmware_engine_network_canonical = args[:vmware_engine_network_canonical] if args.key?(:vmware_engine_network_canonical)
end