Class: Google::Apis::AccesscontextmanagerV1beta::IngressServiceRestriction

Inherits:
Object
  • Object
show all
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 Access Levels are to be used for accessing the Service Perimeter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IngressServiceRestriction

Returns a new instance of IngressServiceRestriction



346
347
348
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 346

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

Instance Attribute Details

#allowed_servicesArray<String>

The list of APIs usable with a valid Access Level. Must be empty unless 'enable_restriction' is True. Corresponds to the JSON property allowedServices

Returns:

  • (Array<String>)


337
338
339
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 337

def allowed_services
  @allowed_services
end

#enable_restrictionBoolean Also known as: enable_restriction?

Whether to restrict the set of APIs callable outside the Service Perimeter via Access Levels. Corresponds to the JSON property enableRestriction

Returns:

  • (Boolean)


343
344
345
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 343

def enable_restriction
  @enable_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



351
352
353
354
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 351

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