Class: Google::Apis::StoragetransferV1::S3CompatibleMetadata

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

S3CompatibleMetadata contains the metadata fields that apply to the basic types of S3-compatible data providers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ S3CompatibleMetadata

Returns a new instance of S3CompatibleMetadata.



1171
1172
1173
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1171

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

Instance Attribute Details

#auth_methodString

Specifies the authentication and authorization method used by the storage service. When not specified, Transfer Service will attempt to determine right auth method to use. Corresponds to the JSON property authMethod

Returns:

  • (String)


1150
1151
1152
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1150

def auth_method
  @auth_method
end

#list_apiString

The Listing API to use for discovering objects. When not specified, Transfer Service will attempt to determine the right API to use. Corresponds to the JSON property listApi

Returns:

  • (String)


1156
1157
1158
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1156

def list_api
  @list_api
end

#protocolString

Specifies the network protocol of the agent. When not specified, the default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used. Corresponds to the JSON property protocol

Returns:

  • (String)


1162
1163
1164
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1162

def protocol
  @protocol
end

#request_modelString

Specifies the API request model used to call the storage service. When not specified, the default value of RequestModel REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used. Corresponds to the JSON property requestModel

Returns:

  • (String)


1169
1170
1171
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1169

def request_model
  @request_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1176
1177
1178
1179
1180
1181
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1176

def update!(**args)
  @auth_method = args[:auth_method] if args.key?(:auth_method)
  @list_api = args[:list_api] if args.key?(:list_api)
  @protocol = args[:protocol] if args.key?(:protocol)
  @request_model = args[:request_model] if args.key?(:request_model)
end