Class: Google::Apis::CloudsearchV1::AppId

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Identifier of an App.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppId

Returns a new instance of AppId.



631
632
633
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 631

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

Instance Attribute Details

#app_typeString

Enum indicating the type of App this is. Corresponds to the JSON property appType

Returns:

  • (String)


615
616
617
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 615

def app_type
  @app_type
end

#gsuite_app_typeString

Enum indicating which 1P App this is when app_type is GSUITE_APP. Determined & set by the 1P API as a convenience for all users of this identifier(Eg. clients, chime, backend etc.) to map to 1P properties. Corresponds to the JSON property gsuiteAppType

Returns:

  • (String)


622
623
624
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 622

def gsuite_app_type
  @gsuite_app_type
end

#idFixnum

Numeric identifier of the App. Set to Project number for 1/3P Apps. For Webhook, this is WebhookId. Determined & set by the 1P API from App credentials on the side channel. Corresponds to the JSON property id

Returns:

  • (Fixnum)


629
630
631
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 629

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



636
637
638
639
640
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 636

def update!(**args)
  @app_type = args[:app_type] if args.key?(:app_type)
  @gsuite_app_type = args[:gsuite_app_type] if args.key?(:gsuite_app_type)
  @id = args[:id] if args.key?(:id)
end