Class: Google::Apis::BigqueryreservationV1alpha2::LocationMetadata

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

Overview

BigQuery-specific metadata about a location. This will be set on google.cloud.location.Location.metadata in Cloud Location API responses.

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

Returns a new instance of LocationMetadata



227
228
229
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 227

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

Instance Attribute Details

#legacy_location_idString

The legacy BigQuery location ID, e.g. “EU” for the “europe” location. This is for any API consumers that need the legacy “US” and “EU” locations. Corresponds to the JSON property legacyLocationId

Returns:

  • (String)


225
226
227
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 225

def legacy_location_id
  @legacy_location_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



232
233
234
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 232

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