Class: Google::Apis::StoragetransferV1::AwsAccessKey
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::AwsAccessKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storagetransfer_v1/classes.rb,
generated/google/apis/storagetransfer_v1/representations.rb,
generated/google/apis/storagetransfer_v1/representations.rb
Overview
AWS access key (see AWS Security Credentials).
Instance Attribute Summary collapse
-
#access_key_id ⇒ String
AWS access key ID.
-
#secret_access_key ⇒ String
AWS secret access key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsAccessKey
constructor
A new instance of AwsAccessKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AwsAccessKey
Returns a new instance of AwsAccessKey
958 959 960 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 958 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_key_id ⇒ String
AWS access key ID.
Required.
Corresponds to the JSON property accessKeyId
956 957 958 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 956 def access_key_id @access_key_id end |
#secret_access_key ⇒ String
AWS secret access key. This field is not returned in RPC responses.
Required.
Corresponds to the JSON property secretAccessKey
950 951 952 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 950 def secret_access_key @secret_access_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
963 964 965 966 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 963 def update!(**args) @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key) @access_key_id = args[:access_key_id] if args.key?(:access_key_id) end |