Class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1DebugToken

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

Overview

A debug token is a secret used during the development or integration testing of an app. It essentially allows the development or integration testing to bypass app attestation while still allowing App Check to enforce protection on supported production Firebase services.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1DebugToken

Returns a new instance of GoogleFirebaseAppcheckV1DebugToken.



286
287
288
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 286

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

Instance Attribute Details

#display_nameString

Required. A human readable display name used to identify this debug token. Corresponds to the JSON property displayName

Returns:

  • (String)


264
265
266
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 264

def display_name
  @display_name
end

#nameString

Required. The relative resource name of the debug token, in the format: projects/`project_number`/apps/`app_id`/debugTokens/`debug_token_id` Corresponds to the JSON property name

Returns:

  • (String)


270
271
272
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 270

def name
  @name
end

#tokenString

Required. Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response. Corresponds to the JSON property token

Returns:

  • (String)


279
280
281
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 279

def token
  @token
end

#update_timeString

Output only. Timestamp when this debug token was most recently updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


284
285
286
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 284

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



291
292
293
294
295
296
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 291

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @token = args[:token] if args.key?(:token)
  @update_time = args[:update_time] if args.key?(:update_time)
end