1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-11-13 22:48:21 +03:00
parent aaa6e0e52a
commit 98840d17d3
34 changed files with 6308 additions and 5684 deletions

View File

@@ -0,0 +1,5 @@
{
"URL": "storage-155.s3hoster.by",
"AccessKey": "BRN5RKJE67...",
"SecretKey": "NNhv+i9PrytpT8Tu0C1N..."
}

View File

@@ -3,8 +3,8 @@
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "newbucket2";
Name = "opi-newbucket2";
Result = OPI_S3.CreateBucket(Name, Authorization);
Result = OPI_S3.CreateBucket(Name, BasicData);

View File

@@ -3,8 +3,8 @@
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "newbucket2";
Name = "opi-newbucket2";
Result = OPI_S3.DeleteBucket(Name, Authorization);
Result = OPI_S3.DeleteBucket(Name, BasicData);

View File

@@ -0,0 +1,8 @@
 URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Result = OPI_S3.GetBucketsList(BasicData);

View File

@@ -10,19 +10,23 @@ import TabItem from '@theme/TabItem';
`Function CreateBucket(Val Name, Val BasicData) Export`
`Function CreateBucket(Val Name, Val BasicData, Val Headers = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --name | String | ✔ | Bucket name |
| BasicData | --data | String | ✔ | Basic request data. See GetBasicDataStructure |
| BasicData | --data | Structure of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
| 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: [CreateBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
@@ -31,11 +35,11 @@ import TabItem from '@theme/TabItem';
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "newbucket2";
Name = "opi-newbucket2";
Result = OPI_S3.CreateBucket(Name, Authorization);
Result = OPI_S3.CreateBucket(Name, BasicData);
```

View File

@@ -10,19 +10,23 @@ import TabItem from '@theme/TabItem';
`Function DeleteBucket(Val Name, Val BasicData) Export`
`Function DeleteBucket(Val Name, Val BasicData, Val Headers = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --name | String | &#x2714; | Bucket name |
| BasicData | --data | String | &#x2714; | Basic request data. See GetBasicDataStructure |
| BasicData | --data | Structure of KeyAndValue | &#x2714; | Basic request data. See GetBasicDataStructure |
| 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: [DeleteBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
@@ -31,11 +35,11 @@ import TabItem from '@theme/TabItem';
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "newbucket2";
Name = "opi-newbucket2";
Result = OPI_S3.DeleteBucket(Name, Authorization);
Result = OPI_S3.DeleteBucket(Name, BasicData);
```

View File

@@ -0,0 +1,48 @@
---
sidebar_position: 3
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get buckets list
Gets a list of buckets. It is possible to use filters if they are provided by your service
`Function GetBucketsList(Val BasicData, Val Prefix = "", Val Region = "", Val PageToken = "", Val Headers = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| BasicData | --data | Structure of KeyAndValue | &#x2714; | Basic request data. See GetBasicDataStructure |
| Prefix | --prefix | String | &#x2716; | Filtering by the beginning of the name, if necessary |
| Region | --region | String | &#x2716; | Selection by bucket region, if necessary |
| PageToken | --ctoken | String | &#x2716; | Page token if pagination is used |
| 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: [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.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);
Result = OPI_S3.GetBucketsList(BasicData);
```

View File

@@ -10,12 +10,13 @@ import TabItem from '@theme/TabItem';
`Function SendRequestWithoutBody(Val Method, Val BasicData) Export`
`Function SendRequestWithoutBody(Val Method, Val BasicData, Val Headers = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Method | --method | String | &#x2714; | HTTP method |
| BasicData | --data | String | &#x2714; | Basic request data (with full URL). See GetBasicDataStructure |
| BasicData | --data | Structure of KeyAndValue | &#x2714; | Basic request data (with full URL). See GetBasicDataStructure |
| Headers | --headers | Map Of KeyAndValue | &#x2716; | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - serialized JSON response from storage