Class: Google::Apis::StoragetransferV1::AwsAccessKey
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::AwsAccessKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb
Overview
AWS access key (see AWS Security Credentials). For information on our data retention policy for user credentials, see User credentials.
Instance Attribute Summary collapse
-
#access_key_id ⇒ String
Required.
-
#secret_access_key ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsAccessKey
constructor
A new instance of AwsAccessKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsAccessKey
Returns a new instance of AwsAccessKey.
80 81 82 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 80 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_key_id ⇒ String
Required. AWS access key ID.
Corresponds to the JSON property accessKeyId
73 74 75 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 73 def access_key_id @access_key_id end |
#secret_access_key ⇒ String
Required. AWS secret access key. This field is not returned in RPC responses.
Corresponds to the JSON property secretAccessKey
78 79 80 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 78 def secret_access_key @secret_access_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
85 86 87 88 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 85 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 |