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.



402
403
404
# File 'lib/google/apis/apikeys_v2/classes.rb', line 402

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)


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

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)


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

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



407
408
409
410
# File 'lib/google/apis/apikeys_v2/classes.rb', line 407

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