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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/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.



1145
1146
1147
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1145

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

Instance Attribute Details

#api_keyString

The API key. Corresponds to the JSON property apiKey

Returns:

  • (String)


1143
1144
1145
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1143

def api_key
  @api_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1150
1151
1152
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1150

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