Class: Google::Apis::StoragetransferV1::AwsAccessKey

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AwsAccessKey

Returns a new instance of AwsAccessKey



43
44
45
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 43

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

Instance Attribute Details

#access_key_idString

AWS access key ID. Required. Corresponds to the JSON property accessKeyId

Returns:

  • (String)


35
36
37
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 35

def access_key_id
  @access_key_id
end

#secret_access_keyString

AWS secret access key. This field is not returned in RPC responses. Required. Corresponds to the JSON property secretAccessKey

Returns:

  • (String)


41
42
43
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 41

def secret_access_key
  @secret_access_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48
49
50
51
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 48

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