CreateBucket
Creates a bucket to Google Cloud Storage.
Task version: 1.0.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.GoogleCloudStorage/tree/main/Frends.GoogleCloudStorage.CreateBucket
Task Parameters
ProjectId : String
Id of the project.
Default: your - project - id
Example: your - project - id
BucketName : String
Name for the bucket. If left empty NewGuid() method is used to create the bucket name.
Default: your-unique-bucket-name
Example: your-unique-bucket-name
AddGuidToBucketName : Boolean
When enabled the Task will add guid to the end of the bucket name with NewGuid() method. This will make sure that the bucket name is unique.
Default: False
Example: true
Location : String
Location
Default: us-west1
Example: us-west1
StorageClass : StorageClassType
Storage class for the bucket.
Possible values:
STANDARD: Storage class for the bucket.NEARLINE: Storage class for the bucket.COLDLINE: Storage class for the bucket.ARCHIVE: Storage class for the bucket.
Default: 0
Example: StorageClassType.STANDARD
CredentialJson : String
Google Credentials in JSON format.
Default: -
Example: { "type": "service_account", "project_id": "instant-test-stone-387712", "private_key_id": "17d0g1b5a6e255c0ed67ef7213j8466c336edc55", "private_key": "-----BEGIN PRIVATE KEY-----\jnejbUHBVudhcebuheuwhv....\n-----END PRIVATE KEY-----\n", "client_email": "cloudstorage-testuser@instant-stone-387712.iam.gserviceaccount.com", "client_id": "vjkornijvnerijvneri", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/cloudstorage-testuser%40instant-stone-387712.iam.gserviceaccount.com", "universe_domain": "googleapis.com" }
CredentialFilePath : String
Full path to the json file which has credentials for Google.
Default: -
Example: C:\folder\google_credentials.json
Task Result
Success : Boolean
Result of the operation.
Example: true
BucketName : String
Bucket name of the newly created bucket.
Location : String
Location of the bucket.
Example: US-CENTRAL1
StorageClass : String
Storage class of the bucket.
Example: STARNDARD
TimeCreated : Nullable<DateTime>
DateTime of the created bucket.
Example: 26/05/2023 15.47.51
Task Changelog
Changelog for Task Frends.GoogleCloudStorage.CreateBucket.
[1.0.0] - 2023-05-30
Added
Initial implementation
Last updated
Was this helpful?

