Class: Google::Apis::StoragetransferV1::AwsS3CompatibleData

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

Instance Method Summary collapse

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_nameString

Required. Specifies the name of the bucket. Corresponds to the JSON property bucketName

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 98

def bucket_name
  @bucket_name
end

#endpointString

Required. Specifies the endpoint of the storage service. Corresponds to the JSON property endpoint

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 103

def endpoint
  @endpoint
end

#pathString

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

Returns:

  • (String)


110
111
112
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 110

def path
  @path
end

#regionString

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

Returns:

  • (String)


116
117
118
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 116

def region
  @region
end

#s3_metadataGoogle::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