Class: Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices

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

Overview

Specifies how APIs are allowed to communicate within the Service Perimeter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpcAccessibleServices

Returns a new instance of VpcAccessibleServices.



2258
2259
2260
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2258

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

Instance Attribute Details

#allowed_servicesArray<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

Returns:

  • (Array<String>)


2249
2250
2251
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2249

def allowed_services
  @allowed_services
end

#enable_restrictionBoolean 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

Returns:

  • (Boolean)


2255
2256
2257
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2255

def enable_restriction
  @enable_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2263
2264
2265
2266
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 2263

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