Class: Google::Apis::AccesscontextmanagerV1beta::VpcServiceRestriction
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1beta::VpcServiceRestriction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/accesscontextmanager_v1beta/classes.rb,
generated/google/apis/accesscontextmanager_v1beta/representations.rb,
generated/google/apis/accesscontextmanager_v1beta/representations.rb
Overview
Alpha. Specifies how APIs are allowed to communicate within the Service Perimeter. This message is DEPRECATED and had been renamed to VpcAccessibleServices
Instance Attribute Summary collapse
-
#allowed_services ⇒ Array<String>
The list of APIs usable within the Service Perimeter.
-
#enable_restriction ⇒ Boolean
(also: #enable_restriction?)
Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VpcServiceRestriction
constructor
A new instance of VpcServiceRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VpcServiceRestriction
Returns a new instance of VpcServiceRestriction.
819 820 821 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_services ⇒ Array<String>
The list of APIs usable within the Service Perimeter. Must be empty
unless 'enable_restriction' is True.
Corresponds to the JSON property allowedServices
810 811 812 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 810 def allowed_services @allowed_services end |
#enable_restriction ⇒ Boolean Also known as: enable_restriction?
Whether to restrict API calls within the Service Perimeter to the list of
APIs specified in 'allowed_services'.
Corresponds to the JSON property enableRestriction
816 817 818 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 816 def enable_restriction @enable_restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
824 825 826 827 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 824 def update!(**args) @allowed_services = args[:allowed_services] if args.key?(:allowed_services) @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) end |