Class: Google::Apis::MybusinessplaceactionsV1::PlaceActionLink
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessplaceactionsV1::PlaceActionLink
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessplaceactions_v1/classes.rb,
lib/google/apis/mybusinessplaceactions_v1/representations.rb,
lib/google/apis/mybusinessplaceactions_v1/representations.rb
Overview
Represents a place action link and its attributes.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#is_editable ⇒ Boolean
(also: #is_editable?)
Output only.
-
#is_preferred ⇒ Boolean
(also: #is_preferred?)
Optional.
-
#name ⇒ String
Optional.
-
#place_action_type ⇒ String
Required.
-
#provider_type ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlaceActionLink
constructor
A new instance of PlaceActionLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlaceActionLink
Returns a new instance of PlaceActionLink.
152 153 154 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the place action link was created.
Corresponds to the JSON property createTime
102 103 104 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 102 def create_time @create_time end |
#is_editable ⇒ Boolean Also known as: is_editable?
Output only. Indicates whether this link can be edited by the client.
Corresponds to the JSON property isEditable
107 108 109 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 107 def is_editable @is_editable end |
#is_preferred ⇒ Boolean Also known as: is_preferred?
Optional. Whether this link is preferred by the merchant. Only one link can be
marked as preferred per place action type at a location. If a future request
marks a different link as preferred for the same place action type, then the
current preferred link (if any exists) will lose its preference.
Corresponds to the JSON property isPreferred
116 117 118 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 116 def is_preferred @is_preferred end |
#name ⇒ String
Optional. The resource name, in the format locations/
location_id/
placeActionLinks/
place_action_link_id`. The name field will only be
considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for
updating and deleting links respectively. However, it will be ignored in
CreatePlaceActionLink request, where
place_action_link_idwill be assigned
by the server on successful creation of a new link and returned as part of the
response.
Corresponds to the JSON property
name`
128 129 130 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 128 def name @name end |
#place_action_type ⇒ String
Required. The type of place action that can be performed using this link.
Corresponds to the JSON property placeActionType
133 134 135 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 133 def place_action_type @place_action_type end |
#provider_type ⇒ String
Output only. Specifies the provider type.
Corresponds to the JSON property providerType
138 139 140 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 138 def provider_type @provider_type end |
#update_time ⇒ String
Output only. The time when the place action link was last modified.
Corresponds to the JSON property updateTime
143 144 145 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 143 def update_time @update_time end |
#uri ⇒ String
Required. The link uri. The same uri can be reused for different action types
across different locations. However, only one place action link is allowed for
each unique combination of (uri, place action type, location).
Corresponds to the JSON property uri
150 151 152 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 150 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
157 158 159 160 161 162 163 164 165 166 |
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 157 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @is_editable = args[:is_editable] if args.key?(:is_editable) @is_preferred = args[:is_preferred] if args.key?(:is_preferred) @name = args[:name] if args.key?(:name) @place_action_type = args[:place_action_type] if args.key?(:place_action_type) @provider_type = args[:provider_type] if args.key?(:provider_type) @update_time = args[:update_time] if args.key?(:update_time) @uri = args[:uri] if args.key?(:uri) end |