Class: Google::Apis::ApikeysV2::V2LookupKeyResponse

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

Overview

Response message for LookupKey method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V2LookupKeyResponse

Returns a new instance of V2LookupKeyResponse.



394
395
396
# File 'lib/google/apis/apikeys_v2/classes.rb', line 394

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

Instance Attribute Details

#nameString

The resource name of the API key. If the API key has been purged, resource name is empty. Corresponds to the JSON property name

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/apikeys_v2/classes.rb', line 387

def name
  @name
end

#parentString

The project that owns the key with the value specified in the request. Corresponds to the JSON property parent

Returns:

  • (String)


392
393
394
# File 'lib/google/apis/apikeys_v2/classes.rb', line 392

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



399
400
401
402
# File 'lib/google/apis/apikeys_v2/classes.rb', line 399

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