Class: Google::Apis::VmmigrationV1alpha1::AccessKeyCredentials
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::AccessKeyCredentials
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
Message describing AWS Credentials using access key id and secret.
Instance Attribute Summary collapse
-
#access_key_id ⇒ String
AWS access key ID.
-
#secret_access_key ⇒ String
Input only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessKeyCredentials
constructor
A new instance of AccessKeyCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessKeyCredentials
Returns a new instance of AccessKeyCredentials.
39 40 41 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_key_id ⇒ String
AWS access key ID.
Corresponds to the JSON property accessKeyId
32 33 34 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 32 def access_key_id @access_key_id end |
#secret_access_key ⇒ String
Input only. AWS secret access key.
Corresponds to the JSON property secretAccessKey
37 38 39 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 37 def secret_access_key @secret_access_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 44 def update!(**args) @access_key_id = args[:access_key_id] if args.key?(:access_key_id) @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key) end |