Class: Google::Apis::AccesscontextmanagerV1beta::BridgeServiceRestriction
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1beta::BridgeServiceRestriction
- 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 which services are granted access via this Bridge Service Perimeter.
Instance Attribute Summary collapse
-
#allowed_services ⇒ Array<String>
The list of APIs usable through the Bridge Perimeter.
-
#enable_restriction ⇒ Boolean
(also: #enable_restriction?)
Whether to restrict the set of APIs callable through the Bridge Service Perimeter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BridgeServiceRestriction
constructor
A new instance of BridgeServiceRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BridgeServiceRestriction
Returns a new instance of BridgeServiceRestriction
174 175 176 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_services ⇒ Array<String>
The list of APIs usable through the Bridge Perimeter. Must be empty
unless 'enable_restriction' is True.
Corresponds to the JSON property allowedServices
165 166 167 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 165 def allowed_services @allowed_services end |
#enable_restriction ⇒ Boolean Also known as: enable_restriction?
Whether to restrict the set of APIs callable through the Bridge Service
Perimeter.
Corresponds to the JSON property enableRestriction
171 172 173 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 171 def enable_restriction @enable_restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
179 180 181 182 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 179 def update!(**args) @allowed_services = args[:allowed_services] if args.key?(:allowed_services) @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) end |