Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
- 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
-
#api_key ⇒ String
The API key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
constructor
A new instance of GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration
Returns a new instance of GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration.
1153 1154 1155 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_key ⇒ String
The API key.
Corresponds to the JSON property apiKey
1151 1152 1153 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1151 def api_key @api_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1158 def update!(**args) @api_key = args[:api_key] if args.key?(:api_key) end |