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.



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

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)


380
381
382
# File 'lib/google/apis/apikeys_v2/classes.rb', line 380

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)


385
386
387
# File 'lib/google/apis/apikeys_v2/classes.rb', line 385

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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