04-add-patch-method.patch 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. --- contrib/python/botocore/py3/botocore/data/s3/2006-03-01/service-2.json (e035e6a001bce129cf5b55dd3b909de5cff9b0ab)
  2. +++ contrib/python/botocore/py3/botocore/data/s3/2006-03-01/service-2.json (cf1d3bd37058ca841449300119cddcb6fee50e49)
  3. @@ -1032,6 +1032,21 @@
  4. "requestChecksumRequired":false
  5. }
  6. },
  7. + "PatchObject":{
  8. + "name":"PatchObject",
  9. + "http":{
  10. + "method":"PATCH",
  11. + "requestUri":"/{Bucket}/{Key+}"
  12. + },
  13. + "input":{"shape":"PatchObjectRequest"},
  14. + "output":{"shape":"PatchObjectOutput"},
  15. + "documentationUrl":"",
  16. + "documentation":"",
  17. + "httpChecksum":{
  18. + "requestAlgorithmMember":"ChecksumAlgorithm",
  19. + "requestChecksumRequired":false
  20. + }
  21. + },
  22. "PutObjectAcl":{
  23. "name":"PutObjectAcl",
  24. "http":{
  25. @@ -9105,6 +9120,80 @@
  26. },
  27. "payload":"Body"
  28. },
  29. + "PatchObjectOutput":{
  30. + "type":"structure",
  31. + "members":{
  32. + "ETag":{"shape":"ETag"},
  33. + "LastModified":{"shape":"LastModified"}
  34. + }
  35. + },
  36. + "PatchAppendPartSize":{"type": "integer"},
  37. + "PatchObjectRequest":{
  38. + "type":"structure",
  39. + "required":[
  40. + "Bucket",
  41. + "Key",
  42. + "ContentRange"
  43. + ],
  44. + "members":{
  45. + "Body":{
  46. + "shape":"Body",
  47. + "streaming":true
  48. + },
  49. + "Bucket":{
  50. + "shape":"BucketName",
  51. + "contextParam":{"name":"Bucket"},
  52. + "location":"uri",
  53. + "locationName":"Bucket"
  54. + },
  55. + "ContentLength":{
  56. + "shape":"ContentLength",
  57. + "location":"header",
  58. + "locationName":"Content-Length"
  59. + },
  60. + "ContentMD5":{
  61. + "shape":"ContentMD5",
  62. + "location":"header",
  63. + "locationName":"Content-MD5"
  64. + },
  65. + "ContentRange":{
  66. + "shape":"ContentRange",
  67. + "location":"header",
  68. + "locationName":"Content-Range"
  69. + },
  70. + "IfMatch":{
  71. + "shape":"IfMatch",
  72. + "location":"header",
  73. + "locationName":"If-Match"
  74. + },
  75. + "IfModifiedSince":{
  76. + "shape":"IfModifiedSince",
  77. + "location":"header",
  78. + "locationName":"If-Modified-Since"
  79. + },
  80. + "IfNoneMatch":{
  81. + "shape":"IfNoneMatch",
  82. + "location":"header",
  83. + "locationName":"If-None-Match"
  84. + },
  85. + "IfUnmodifiedSince":{
  86. + "shape":"IfUnmodifiedSince",
  87. + "location":"header",
  88. + "locationName":"If-Unmodified-Since"
  89. + },
  90. + "Key":{
  91. + "shape":"ObjectKey",
  92. + "location":"uri",
  93. + "locationName":"Key"
  94. + },
  95. + "PatchAppendPartSize":{
  96. + "shape":"PatchAppendPartSize",
  97. + "location":"header",
  98. + "locationName":"X-Yc-S3-Patch-Append-Part-Size"
  99. + }
  100. + },
  101. + "payload":"Body"
  102. + },
  103. "PutObjectRetentionOutput":{
  104. "type":"structure",
  105. "members":{
  106. --- contrib/python/botocore/py3/botocore/handlers.py (e035e6a001bce129cf5b55dd3b909de5cff9b0ab)
  107. +++ contrib/python/botocore/py3/botocore/handlers.py (cf1d3bd37058ca841449300119cddcb6fee50e49)
  108. @@ -1189,6 +1189,11 @@ BUILTIN_HANDLERS = [
  109. convert_body_to_file_like_object,
  110. REGISTER_LAST,
  111. ),
  112. + (
  113. + 'before-parameter-build.s3.PatchObject',
  114. + convert_body_to_file_like_object,
  115. + REGISTER_LAST,
  116. + ),
  117. ('creating-client-class', add_generate_presigned_url),
  118. ('creating-client-class.s3', add_generate_presigned_post),
  119. ('creating-client-class.iot-data', check_openssl_supports_tls_version_1_2),
  120. @@ -1229,6 +1234,7 @@ BUILTIN_HANDLERS = [
  121. ('before-call.glacier', add_glacier_version),
  122. ('before-call.apigateway', add_accept_header),
  123. ('before-call.s3.PutObject', conditionally_calculate_md5),
  124. + ('before-call.s3.PatchObject', conditionally_calculate_md5),
  125. ('before-call.s3.UploadPart', conditionally_calculate_md5),
  126. ('before-call.s3.DeleteObjects', escape_xml_payload),
  127. ('before-call.s3.PutBucketLifecycleConfiguration', escape_xml_payload),
  128. @@ -1257,6 +1263,7 @@ BUILTIN_HANDLERS = [
  129. ('before-parameter-build.s3.HeadObject', sse_md5),
  130. ('before-parameter-build.s3.GetObject', sse_md5),
  131. ('before-parameter-build.s3.PutObject', sse_md5),
  132. + ('before-parameter-build.s3.PatchObject', sse_md5),
  133. ('before-parameter-build.s3.CopyObject', sse_md5),
  134. ('before-parameter-build.s3.CopyObject', copy_source_sse_md5),
  135. ('before-parameter-build.s3.CreateMultipartUpload', sse_md5),