Class: Google::Apis::AccesscontextmanagerV1::ReplaceServicePerimetersRequest

Inherits:
Object
  • Object
show all
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

A request to replace all existing Service Perimeters in an Access Policy with the Service Perimeters provided. This is done within one transaction.

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) ⇒ ReplaceServicePerimetersRequest

Returns a new instance of ReplaceServicePerimetersRequest.



770
771
772
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 770

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

Instance Attribute Details

#etagString

Optional. The etag for the version of the Access Policy that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided. Corresponds to the JSON property etag

Returns:

  • (String)


761
762
763
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 761

def etag
  @etag
end

#service_perimetersArray<Google::Apis::AccesscontextmanagerV1::ServicePerimeter>

Required. The desired Service Perimeters that should replace all existing Service Perimeters in the Access Policy. Corresponds to the JSON property servicePerimeters



768
769
770
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 768

def service_perimeters
  @service_perimeters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



775
776
777
778
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 775

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