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.



79
80
81
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 79

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)


63
64
65
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 63

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)


70
71
72
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 70

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)


77
78
79
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 77

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84
85
86
87
88
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 84

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