Class: Google::Apis::StoragetransferV1::AwsS3CompatibleData
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::AwsS3CompatibleData
- 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
An AwsS3CompatibleData resource.
Instance Attribute Summary collapse
-
#bucket_name ⇒ String
Required.
-
#endpoint ⇒ String
Required.
-
#path ⇒ String
Specifies the root path to transfer objects.
-
#region ⇒ String
Specifies the region to sign requests with.
-
#s3_metadata ⇒ Google::Apis::StoragetransferV1::S3CompatibleMetadata
S3CompatibleMetadata contains the metadata fields that apply to the basic types of S3-compatible data providers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsS3CompatibleData
constructor
A new instance of AwsS3CompatibleData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsS3CompatibleData
Returns a new instance of AwsS3CompatibleData.
124 125 126 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_name ⇒ String
Required. Specifies the name of the bucket.
Corresponds to the JSON property bucketName
98 99 100 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 98 def bucket_name @bucket_name end |
#endpoint ⇒ String
Required. Specifies the endpoint of the storage service.
Corresponds to the JSON property endpoint
103 104 105 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 103 def endpoint @endpoint end |
#path ⇒ String
Specifies the root path to transfer objects. Must be an empty string or full
path name that ends with a '/'. This field is treated as an object prefix. As
such, it should generally not begin with a '/'.
Corresponds to the JSON property path
110 111 112 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 110 def path @path end |
#region ⇒ String
Specifies the region to sign requests with. This can be left blank if requests
should be signed with an empty region.
Corresponds to the JSON property region
116 117 118 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 116 def region @region end |
#s3_metadata ⇒ Google::Apis::StoragetransferV1::S3CompatibleMetadata
S3CompatibleMetadata contains the metadata fields that apply to the basic
types of S3-compatible data providers.
Corresponds to the JSON property s3Metadata
122 123 124 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 122 def @s3_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 132 133 134 135 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 129 def update!(**args) @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @endpoint = args[:endpoint] if args.key?(:endpoint) @path = args[:path] if args.key?(:path) @region = args[:region] if args.key?(:region) @s3_metadata = args[:s3_metadata] if args.key?(:s3_metadata) end |