Class: Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/accesscontextmanager_v1/classes.rb,
generated/google/apis/accesscontextmanager_v1/representations.rb,
generated/google/apis/accesscontextmanager_v1/representations.rb
Overview
Specifies how APIs are allowed to communicate within the Service Perimeter.
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) ⇒ VpcAccessibleServices
constructor
A new instance of VpcAccessibleServices.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VpcAccessibleServices
Returns a new instance of VpcAccessibleServices.
1334 1335 1336 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 1334 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. You can specify a list of individual services, as
well as include the 'RESTRICTED-SERVICES' value, which automatically includes
all of the services protected by the perimeter.
Corresponds to the JSON property allowedServices
1325 1326 1327 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 1325 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
1331 1332 1333 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 1331 def enable_restriction @enable_restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1339 1340 1341 1342 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 1339 def update!(**args) @allowed_services = args[:allowed_services] if args.key?(:allowed_services) @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) end |