Skip to content

Commit

Permalink
fix: enableProxy=true need install proxy-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Aug 12, 2024
1 parent 4a92064 commit 21d582a
Show file tree
Hide file tree
Showing 5 changed files with 18,873 additions and 35 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ lib/common/utils/createRequest.js
lib/common/utils/encodeString.js
lib/common/utils/getStandardRegion.js

lib/common/bucket/putBucketInventory.d.ts
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ build
test/node/.tmp
test/browser/.tmp
test/demo.js
yarn.lock
package-lock.json
.nyc_output/
.env

Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ dist/

lib/common/utils/createRequest.js
lib/common/utils/encodeString.js
lib/common/utils/getStandardRegion.js
lib/common/utils/getStandardRegion.js

lib/common/bucket/putBucketInventory.d.ts
56 changes: 24 additions & 32 deletions lib/common/bucket/putBucketInventory.d.ts
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
declare type Field =
'Size | LastModifiedDate | ETag | StorageClass | IsMultipartUploaded | EncryptionStatus | ObjectAcl | TaggingCount | ObjectType | Crc64';
declare type Field = 'Size | LastModifiedDate | ETag | StorageClass | IsMultipartUploaded | EncryptionStatus | ObjectAcl | TaggingCount | ObjectType | Crc64';
interface Inventory {
id: string;
isEnabled: true | false;
prefix?: string;
OSSBucketDestination: {
format: 'CSV';
accountId: string;
rolename: string;
bucket: string;
id: string;
isEnabled: true | false;
prefix?: string;
encryption?:
| {
'SSE-OSS': '';
}
| {
'SSE-KMS': {
keyId: string;
};
OSSBucketDestination: {
format: 'CSV';
accountId: string;
rolename: string;
bucket: string;
prefix?: string;
encryption?: {
'SSE-OSS': '';
} | {
'SSE-KMS': {
keyId: string;
};
};
};
frequency: 'Daily' | 'Weekly';
includedObjectVersions: 'Current' | 'All';
optionalFields?: {
field?: Field[];
};
};
frequency: 'Daily' | 'Weekly';
includedObjectVersions: 'Current' | 'All';
optionalFields?: {
field?: Field[];
};
}
/**
* putBucketInventory
* @param {String} bucketName - bucket name
* @param {Inventory} inventory
* @param {Object} options
*/
export declare function putBucketInventory(
this: any,
bucketName: string,
inventory: Inventory,
options?: any
): Promise<{
status: any;
res: any;
export declare function putBucketInventory(this: any, bucketName: string, inventory: Inventory, options?: any): Promise<{
status: any;
res: any;
}>;
export {};
Loading

0 comments on commit 21d582a

Please sign in to comment.