Class: Google::Apis::ServicecontrolV2::ResourceLocation

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

Overview

Location information about a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceLocation

Returns a new instance of ResourceLocation.



1109
1110
1111
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1109

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

Instance Attribute Details

#current_locationsArray<String>

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

Returns:

  • (Array<String>)


1099
1100
1101
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1099

def current_locations
  @current_locations
end

#original_locationsArray<String>

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

Returns:

  • (Array<String>)


1107
1108
1109
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1107

def original_locations
  @original_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1114
1115
1116
1117
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1114

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