Class: Google::Apis::ServicenetworkingV1::VpcServiceControls

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

Overview

Response for the get VPC Service Controls request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpcServiceControls

Returns a new instance of VpcServiceControls.



5177
5178
5179
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 5177

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Output only. Indicates whether the VPC Service Controls are enabled or disabled for the connection. If the consumer called the EnableVpcServiceControls method, then this is true. If the consumer called DisableVpcServiceControls, then this is false. The default is false. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


5174
5175
5176
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 5174

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5182
5183
5184
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 5182

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
end