1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-11-14 17:27:44 +03:00
parent 18cd437f97
commit d43c81d3bb
52 changed files with 6675 additions and 5601 deletions
@@ -32,13 +32,13 @@ Method at AWS documentation: [HeadBucket](https://docs.aws.amazon.com/AmazonS3/l
```bsl title="1C:Enterprise/OneScript code example"
URL = "storage-155.s3hoster.by";
URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "opi-dirbucket1";
Name = "opi-dirbucket3";
Result = OPI_S3.CheckBucketAvailability(Name, BasicData, True);
@@ -40,13 +40,13 @@ Method at AWS documentation: [CreateBucket](https://docs.aws.amazon.com/AmazonS3
// Directory bucket
Name = "opi-dirbucket1";
Name = "opi-dirbucket3";
Result = OPI_S3.CreateBucket(Name, BasicData);
// General purpose bucket
Name = "opi-gpbucket1";
Name = "opi-gpbucket3";
Result = OPI_S3.CreateBucket(Name, BasicData, False);
```
@@ -40,13 +40,13 @@ Method at AWS documentation: [DeleteBucket](https://docs.aws.amazon.com/AmazonS3
// Directory bucket
Name = "opi-dirbucket1";
Name = "opi-dirbucket3";
Result = OPI_S3.DeleteBucket(Name, BasicData);
// General purpose bucket
Name = "opi-gpbucket1";
Name = "opi-gpbucket3";
Result = OPI_S3.DeleteBucket(Name, BasicData, False);
```
@@ -0,0 +1,49 @@
---
sidebar_position: 5
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get bucket encryption
Gets the previously set bucket encryption configuration
`Function GetBucketEncryption(Val Name, Val BasicData, Val Directory = True, Val Headers = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --name | String | ✔ | Bucket name |
| BasicData | --data | Structure of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
| Directory | --dir | Boolean | ✖ | True > Directory Bucket, False > General Purpose Bucket |
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - serialized JSON response from storage
<br/>
:::tip
Method at AWS documentation: [GetBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "opi-newbucket2";
Result = OPI_S3.GetBucketEncryption(Name, BasicData, False);
```
@@ -1,5 +1,5 @@
---
sidebar_position: 4
sidebar_position: 6
---
import Tabs from '@theme/Tabs';
@@ -0,0 +1,58 @@
---
sidebar_position: 4
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Put bucket encryption
Sets bucket encryption by XML configuration
`Function PutBucketEncryption(Val Name, Val BasicData, Val XmlConfig, Val Directory = True, Val Headers = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --name | String | &#x2714; | Bucket name |
| BasicData | --data | Structure of KeyAndValue | &#x2714; | Basic request data. See GetBasicDataStructure |
| XmlConfig | --conf | String | &#x2714; | XML string or file of encryption configuration |
| Directory | --dir | Boolean | &#x2716; | True > Directory Bucket, False > General Purpose Bucket |
| Headers | --headers | Map Of KeyAndValue | &#x2716; | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - serialized JSON response from storage
<br/>
:::tip
Method at AWS documentation: [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "opi-newbucket2";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig, False);
```