Class: Google::Apis::VmwareengineV1::NetworkPolicy
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::NetworkPolicy
- 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
Represents a network policy resource. Network policies are regional resources. You can use a network policy to enable or disable internet access and external IP access. Network policies are associated with a VMware Engine network, which might span across regions. For a given region, a network policy applies to all private clouds in the VMware Engine network associated with the policy.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#edge_services_cidr ⇒ String
Required.
-
#external_ip ⇒ Google::Apis::VmwareengineV1::NetworkService
Represents a network service that is managed by a
NetworkPolicy
resource. -
#internet_access ⇒ Google::Apis::VmwareengineV1::NetworkService
Represents a network service that is managed by a
NetworkPolicy
resource. -
#name ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#vmware_engine_network ⇒ String
Optional.
-
#vmware_engine_network_canonical ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkPolicy
constructor
A new instance of NetworkPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkPolicy
Returns a new instance of NetworkPolicy.
2018 2019 2020 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2018 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
1952 1953 1954 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1952 def create_time @create_time end |
#description ⇒ String
Optional. User-provided description for this network policy.
Corresponds to the JSON property description
1957 1958 1959 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1957 def description @description end |
#edge_services_cidr ⇒ String
Required. IP address range in CIDR notation used to create internet access and
external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required.
The range cannot overlap with any prefixes either in the consumer VPC network
or in use by the private clouds attached to that VPC network.
Corresponds to the JSON property edgeServicesCidr
1965 1966 1967 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1965 def edge_services_cidr @edge_services_cidr end |
#external_ip ⇒ Google::Apis::VmwareengineV1::NetworkService
Represents a network service that is managed by a NetworkPolicy
resource. A
network service provides a way to control an aspect of external access to
VMware workloads. For example, whether the VMware workloads in the private
clouds governed by a network policy can access or be accessed from the
internet.
Corresponds to the JSON property externalIp
1974 1975 1976 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1974 def external_ip @external_ip end |
#internet_access ⇒ Google::Apis::VmwareengineV1::NetworkService
Represents a network service that is managed by a NetworkPolicy
resource. A
network service provides a way to control an aspect of external access to
VMware workloads. For example, whether the VMware workloads in the private
clouds governed by a network policy can access or be accessed from the
internet.
Corresponds to the JSON property internetAccess
1983 1984 1985 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1983 def internet_access @internet_access end |
#name ⇒ String
Output only. Identifier. The resource name of this network policy. 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/networkPolicies/my-network-policy
Corresponds to the JSON property name
1991 1992 1993 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1991 def name @name end |
#uid ⇒ String
Output only. System-generated unique identifier for the resource.
Corresponds to the JSON property uid
1996 1997 1998 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1996 def uid @uid end |
#update_time ⇒ String
Output only. Last update time of this resource.
Corresponds to the JSON property updateTime
2001 2002 2003 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2001 def update_time @update_time end |
#vmware_engine_network ⇒ String
Optional. 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`
2009 2010 2011 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2009 def vmware_engine_network @vmware_engine_network end |
#vmware_engine_network_canonical ⇒ String
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 property
vmwareEngineNetworkCanonical`
2016 2017 2018 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2016 def vmware_engine_network_canonical @vmware_engine_network_canonical end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 2023 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @edge_services_cidr = args[:edge_services_cidr] if args.key?(:edge_services_cidr) @external_ip = args[:external_ip] if args.key?(:external_ip) @internet_access = args[:internet_access] if args.key?(:internet_access) @name = args[:name] if args.key?(:name) @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 |