class Google::Apis::MybusinessplaceactionsV1::PlaceActionLink

Represents a place action link and its attributes.

Attributes

create_time[RW]

Output only. The time when the place action link was created. Corresponds to the JSON property `createTime` @return [String]

is_editable[RW]

Output only. Indicates whether this link can be edited by the client. Corresponds to the JSON property `isEditable` @return [Boolean]

is_editable?[RW]

Output only. Indicates whether this link can be edited by the client. Corresponds to the JSON property `isEditable` @return [Boolean]

is_preferred[RW]

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` @return [Boolean]

is_preferred?[RW]

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` @return [Boolean]

name[RW]

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_id` will 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` @return [String]

place_action_type[RW]

Required. The type of place action that can be performed using this link. Corresponds to the JSON property `placeActionType` @return [String]

provider_type[RW]

Output only. Specifies the provider type. Corresponds to the JSON property `providerType` @return [String]

update_time[RW]

Output only. The time when the place action link was last modified. Corresponds to the JSON property `updateTime` @return [String]

uri[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/mybusinessplaceactions_v1/classes.rb, line 153
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/mybusinessplaceactions_v1/classes.rb, line 158
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