Class: Google::Apis::MybusinessplaceactionsV1::PlaceActionLink

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlaceActionLink

Returns a new instance of PlaceActionLink.



407
408
409
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 407

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when the place action link was created. Corresponds to the JSON property createTime

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 352

def create_time
  @create_time
end

#is_editableBoolean Also known as: is_editable?

Output only. Indicates whether this link can be edited by the client. Corresponds to the JSON property isEditable

Returns:

  • (Boolean)


357
358
359
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 357

def is_editable
  @is_editable
end

#is_preferredBoolean 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

Returns:

  • (Boolean)


366
367
368
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 366

def is_preferred
  @is_preferred
end

#nameString

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, whereplace_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 propertyname`

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 378

def name
  @name
end

#order_online_metadataGoogle::Apis::MybusinessplaceactionsV1::OrderOnlineMetadata

Client version of the metadata for an order online action. Corresponds to the JSON property orderOnlineMetadata



383
384
385
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 383

def 
  @order_online_metadata
end

#place_action_typeString

Required. The type of place action that can be performed using this link. Corresponds to the JSON property placeActionType

Returns:

  • (String)


388
389
390
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 388

def place_action_type
  @place_action_type
end

#provider_typeString

Output only. Specifies the provider type. Corresponds to the JSON property providerType

Returns:

  • (String)


393
394
395
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 393

def provider_type
  @provider_type
end

#update_timeString

Output only. The time when the place action link was last modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


398
399
400
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 398

def update_time
  @update_time
end

#uriString

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

Returns:

  • (String)


405
406
407
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 405

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



412
413
414
415
416
417
418
419
420
421
422
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 412

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)
  @order_online_metadata = args[:order_online_metadata] if args.key?(:order_online_metadata)
  @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