Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration

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

Overview

Registered Api Key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration

Returns a new instance of GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration.



1173
1174
1175
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1173

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

Instance Attribute Details

#api_keyString

The API key. Corresponds to the JSON property apiKey

Returns:

  • (String)


1171
1172
1173
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1171

def api_key
  @api_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1178
1179
1180
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1178

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