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.
564 565 566 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 564 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
549 550 551 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 549 def location @location end |
#name ⇒ String
Resource name of this GoogleLocation, in the format googleLocations/
googleLocationId`.
Corresponds to the JSON propertyname`
555 556 557 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 555 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
562 563 564 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 562 def request_admin_rights_uri @request_admin_rights_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
569 570 571 572 573 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 569 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 |