Class: Google::Apis::MybusinessbusinessinformationV1::GoogleLocation
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::GoogleLocation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Represents a Location that is present on Google. This can be a location that has been claimed by the user, someone else, or could be unclaimed.
Instance Attribute Summary collapse
-
#location ⇒ Google::Apis::MybusinessbusinessinformationV1::Location
A location.
-
#name ⇒ String
Resource name of this GoogleLocation, in the format
googleLocations/
googleLocationId``. -
#request_admin_rights_uri ⇒ String
A URL that will redirect the user to the request admin rights UI.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleLocation
constructor
A new instance of GoogleLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleLocation
Returns a new instance of GoogleLocation.
531 532 533 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ Google::Apis::MybusinessbusinessinformationV1::Location
A location. See the help center article for a detailed description of these fields, or the category
endpoint for a list of valid
business categories.
Corresponds to the JSON property location
516 517 518 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 516 def location @location end |
#name ⇒ String
Resource name of this GoogleLocation, in the format googleLocations/
googleLocationId`.
Corresponds to the JSON property
name`
522 523 524 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 522 def name @name end |
#request_admin_rights_uri ⇒ String
A URL that will redirect the user to the request admin rights UI. This field
is only present if the location has already been claimed by any user,
including the current user.
Corresponds to the JSON property requestAdminRightsUri
529 530 531 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 529 def request_admin_rights_uri @request_admin_rights_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
536 537 538 539 540 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 536 def update!(**args) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @request_admin_rights_uri = args[:request_admin_rights_uri] if args.key?(:request_admin_rights_uri) end |