class Google::Apis::ServicecontrolV1::ResourceLocation

Location information about a resource.

Attributes

current_locations[RW]

The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the ' current_locations' field and not the 'original_locations' field. For example: “ europe-west1-a” “us-east1” “nam3” Corresponds to the JSON property `currentLocations` @return [Array<String>]

original_locations[RW]

The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the 'current_locations' fields. For example: “europe-west1-a” “us- east1” “nam3” Corresponds to the JSON property `originalLocations` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicecontrol_v1/classes.rb, line 2177
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicecontrol_v1/classes.rb, line 2182
def update!(**args)
  @current_locations = args[:current_locations] if args.key?(:current_locations)
  @original_locations = args[:original_locations] if args.key?(:original_locations)
end