Class: Google::Apis::FirebasedynamiclinksV1::ManagedShortLink

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebasedynamiclinks_v1/classes.rb,
generated/google/apis/firebasedynamiclinks_v1/representations.rb,
generated/google/apis/firebasedynamiclinks_v1/representations.rb

Overview

Managed Short Link.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ManagedShortLink

Returns a new instance of ManagedShortLink.



982
983
984
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 982

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

Instance Attribute Details

#creation_timeString

Creation timestamp of the short link. Corresponds to the JSON property creationTime

Returns:

  • (String)


953
954
955
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 953

def creation_time
  @creation_time
end

#flagged_attributeArray<String>

Attributes that have been flagged about this short url. Corresponds to the JSON property flaggedAttribute

Returns:

  • (Array<String>)


958
959
960
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 958

def flagged_attribute
  @flagged_attribute
end

#infoGoogle::Apis::FirebasedynamiclinksV1::DynamicLinkInfo

Information about a Dynamic Link. Corresponds to the JSON property info



963
964
965
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 963

def info
  @info
end

Short durable link url, for example, "https://sample.app.goo.gl/xyz123". Required. Corresponds to the JSON property link

Returns:

  • (String)


969
970
971
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 969

def link
  @link
end

Link name defined by the creator. Required. Corresponds to the JSON property linkName

Returns:

  • (String)


975
976
977
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 975

def link_name
  @link_name
end

#visibilityString

Visibility status of link. Corresponds to the JSON property visibility

Returns:

  • (String)


980
981
982
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 980

def visibility
  @visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



987
988
989
990
991
992
993
994
# File 'generated/google/apis/firebasedynamiclinks_v1/classes.rb', line 987

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @flagged_attribute = args[:flagged_attribute] if args.key?(:flagged_attribute)
  @info = args[:info] if args.key?(:info)
  @link = args[:link] if args.key?(:link)
  @link_name = args[:link_name] if args.key?(:link_name)
  @visibility = args[:visibility] if args.key?(:visibility)
end