Class: Google::Apis::VmwareengineV1::NetworkService
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::NetworkService
- 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 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.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
True if the service is enabled; false otherwise.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkService
constructor
A new instance of NetworkService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkService
Returns a new instance of NetworkService.
995 996 997 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 995 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
True if the service is enabled; false otherwise.
Corresponds to the JSON property enabled
986 987 988 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 986 def enabled @enabled end |
#state ⇒ String
Output only. State of the service. New values may be added to this enum when
appropriate.
Corresponds to the JSON property state
993 994 995 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 993 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1000 1001 1002 1003 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 1000 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @state = args[:state] if args.key?(:state) end |