Class: Google::Apis::ServicecontrolV1::ResourceLocation

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

Overview

Location information about a resource.

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

Returns a new instance of ResourceLocation



1923
1924
1925
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1923

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

Instance Attribute Details

#current_locationsArray<String>

The locations of a resource after the execution of the operation. For example: "europe-west1-a" "us-east1" "nam3" Corresponds to the JSON property currentLocations

Returns:

  • (Array<String>)


1921
1922
1923
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1921

def current_locations
  @current_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1928
1929
1930
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1928

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