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.



553
554
555
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 553

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)


537
538
539
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 537

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)


544
545
546
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 544

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)


551
552
553
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 551

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



558
559
560
561
562
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 558

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