Class: Google::Apis::VmwareengineV1::NetworkPeering
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::NetworkPeering
- 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
Details of a network peering.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#exchange_subnet_routes ⇒ Boolean
(also: #exchange_subnet_routes?)
Optional.
-
#export_custom_routes ⇒ Boolean
(also: #export_custom_routes?)
Optional.
-
#export_custom_routes_with_public_ip ⇒ Boolean
(also: #export_custom_routes_with_public_ip?)
Optional.
-
#import_custom_routes ⇒ Boolean
(also: #import_custom_routes?)
Optional.
-
#import_custom_routes_with_public_ip ⇒ Boolean
(also: #import_custom_routes_with_public_ip?)
Optional.
-
#name ⇒ String
Output only.
-
#peer_mtu ⇒ Fixnum
Optional.
-
#peer_network ⇒ String
Required.
-
#peer_network_type ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#state_details ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#vmware_engine_network ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkPeering
constructor
A new instance of NetworkPeering.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkPeering
Returns a new instance of NetworkPeering.
1801 1802 1803 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1801 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Creation time of this resource.
Corresponds to the JSON property createTime
1690 1691 1692 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1690 def create_time @create_time end |
#description ⇒ String
Optional. User-provided description for this network peering.
Corresponds to the JSON property description
1695 1696 1697 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1695 def description @description end |
#exchange_subnet_routes ⇒ Boolean Also known as: exchange_subnet_routes?
Optional. True if full mesh connectivity is created and managed automatically
between peered networks; false otherwise. Currently this field is always true
because Google Compute Engine automatically creates and manages subnetwork
routes between two VPC networks when peering state is 'ACTIVE'.
Corresponds to the JSON property exchangeSubnetRoutes
1703 1704 1705 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1703 def exchange_subnet_routes @exchange_subnet_routes end |
#export_custom_routes ⇒ Boolean Also known as: export_custom_routes?
Optional. True if custom routes are exported to the peered network; false
otherwise. The default value is true.
Corresponds to the JSON property exportCustomRoutes
1710 1711 1712 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1710 def export_custom_routes @export_custom_routes end |
#export_custom_routes_with_public_ip ⇒ Boolean Also known as: export_custom_routes_with_public_ip?
Optional. True if all subnet routes with a public IP address range are
exported; false otherwise. The default value is true. IPv4 special-use ranges (
https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to
peers and are not controlled by this field.
Corresponds to the JSON property exportCustomRoutesWithPublicIp
1719 1720 1721 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1719 def export_custom_routes_with_public_ip @export_custom_routes_with_public_ip end |
#import_custom_routes ⇒ Boolean Also known as: import_custom_routes?
Optional. True if custom routes are imported from the peered network; false
otherwise. The default value is true.
Corresponds to the JSON property importCustomRoutes
1726 1727 1728 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1726 def import_custom_routes @import_custom_routes end |
#import_custom_routes_with_public_ip ⇒ Boolean Also known as: import_custom_routes_with_public_ip?
Optional. True if all subnet routes with public IP address range are imported;
false otherwise. The default value is true. IPv4 special-use ranges (https://
en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and
are not controlled by this field.
Corresponds to the JSON property importCustomRoutesWithPublicIp
1735 1736 1737 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1735 def import_custom_routes_with_public_ip @import_custom_routes_with_public_ip end |
#name ⇒ String
Output only. The resource name of the network peering. NetworkPeering is a
global resource and location can only be global. Resource names are scheme-
less URIs that follow the conventions in https://cloud.google.com/apis/design/
resource_names. For example: projects/my-project/locations/global/
networkPeerings/my-peering
Corresponds to the JSON property name
1745 1746 1747 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1745 def name @name end |
#peer_mtu ⇒ Fixnum
Optional. Maximum transmission unit (MTU) in bytes. The default value is 1500
. If a value of 0
is provided for this field, VMware Engine uses the default
value instead.
Corresponds to the JSON property peerMtu
1752 1753 1754 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1752 def peer_mtu @peer_mtu end |
#peer_network ⇒ String
Required. The relative resource name of the network to peer with a standard
VMware Engine network. The provided network can be a consumer VPC network or
another standard VMware Engine network. If the peer_network_type
is
VMWARE_ENGINE_NETWORK, specify the name in the form: projects/
project/
locations/global/vmwareEngineNetworks/
vmware_engine_network_id. Otherwise
specify the name in the form: `projects/`project`/global/networks/`network_id
, where project
can either be a project number or a project ID.
Corresponds to the JSON property peerNetwork
1763 1764 1765 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1763 def peer_network @peer_network end |
#peer_network_type ⇒ String
Required. The type of the network to peer with the VMware Engine network.
Corresponds to the JSON property peerNetworkType
1768 1769 1770 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1768 def peer_network_type @peer_network_type end |
#state ⇒ String
Output only. State of the network peering. This field has a value of 'ACTIVE'
when there's a matching configuration in the peer network. New values may be
added to this enum when appropriate.
Corresponds to the JSON property state
1775 1776 1777 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1775 def state @state end |
#state_details ⇒ String
Output only. Output Only. Details about the current state of the network
peering.
Corresponds to the JSON property stateDetails
1781 1782 1783 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1781 def state_details @state_details end |
#uid ⇒ String
Output only. System-generated unique identifier for the resource.
Corresponds to the JSON property uid
1786 1787 1788 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1786 def uid @uid end |
#update_time ⇒ String
Output only. Last update time of this resource.
Corresponds to the JSON property updateTime
1791 1792 1793 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1791 def update_time @update_time end |
#vmware_engine_network ⇒ String
Required. The relative resource name of the VMware Engine network. Specify the
name in the following form: projects/
project/locations/
location/
vmwareEngineNetworks/
vmware_engine_network_idwhere
project`can either
be a project number or a project ID.
Corresponds to the JSON property
vmwareEngineNetwork`
1799 1800 1801 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1799 def vmware_engine_network @vmware_engine_network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1806 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @exchange_subnet_routes = args[:exchange_subnet_routes] if args.key?(:exchange_subnet_routes) @export_custom_routes = args[:export_custom_routes] if args.key?(:export_custom_routes) @export_custom_routes_with_public_ip = args[:export_custom_routes_with_public_ip] if args.key?(:export_custom_routes_with_public_ip) @import_custom_routes = args[:import_custom_routes] if args.key?(:import_custom_routes) @import_custom_routes_with_public_ip = args[:import_custom_routes_with_public_ip] if args.key?(:import_custom_routes_with_public_ip) @name = args[:name] if args.key?(:name) @peer_mtu = args[:peer_mtu] if args.key?(:peer_mtu) @peer_network = args[:peer_network] if args.key?(:peer_network) @peer_network_type = args[:peer_network_type] if args.key?(:peer_network_type) @state = args[:state] if args.key?(:state) @state_details = args[:state_details] if args.key?(:state_details) @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) end |