ApproximateLocation

class oci.generative_ai_inference.models.ApproximateLocation(**kwargs)

Bases: object

To refine search results based on geography, you can specify an approximate user location using any of the following: - city and region are free-text strings, like “Minneapolis” and “Minnesota”. - country is a two-letter ISO country code, like “US”. - timezone is an IANA timezone string, like “America/Chicago”.

Methods:

__init__(**kwargs)

Initializes a new ApproximateLocation object with values from keyword arguments.

Attributes:

city

Gets the city of this ApproximateLocation.

country

Gets the country of this ApproximateLocation.

region

Gets the region of this ApproximateLocation.

timezone

Gets the timezone of this ApproximateLocation.

__init__(**kwargs)

Initializes a new ApproximateLocation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • city (str) – The value to assign to the city property of this ApproximateLocation.

  • region (str) – The value to assign to the region property of this ApproximateLocation.

  • country (str) – The value to assign to the country property of this ApproximateLocation.

  • timezone (str) – The value to assign to the timezone property of this ApproximateLocation.

property city

Gets the city of this ApproximateLocation. Approximate city name, like “Minneapolis”.

Returns

The city of this ApproximateLocation.

Return type

str

property country

Gets the country of this ApproximateLocation. Two-letter ISO country code.

Returns

The country of this ApproximateLocation.

Return type

str

property region

Gets the region of this ApproximateLocation. Approximate region or state, like “Minnesota”.

Returns

The region of this ApproximateLocation.

Return type

str

property timezone

Gets the timezone of this ApproximateLocation. IANA timezone string.

Returns

The timezone of this ApproximateLocation.

Return type

str