// Create Allows you to grant Atlas access to the specified bucket for exporting backup snapshots.
//
// See more: https://docs.atlas.mongodb.com/reference/api/cloud-backup/export/create-one-export-bucket/
Create Allows you to grant Atlas access to the specified bucket for exporting backup snapshots.


// Create Allows you to grant Atlas access to the specified bucket for exporting backup snapshots . // // See more : https : // docs . atlas . mongodb . com / reference / api / cloud - backup / export / create - one - export - bucket /
func (c CloudProviderSnapshotExportBucketsServiceOp) Create(ctx context.Context, projectID string, bucket *CloudProviderSnapshotExportBucket) (*CloudProviderSnapshotExportBucket, *Response, error) {
	if projectID == "" {
		return nil, nil, NewArgError("projectID", "must be set")
	}
	path := fmt.Sprintf(cloudProviderSnapshotExportBucketsPath, projectID)
	req, err := c.Client.NewRequest(ctx, http.MethodPost, path, bucket)
	if err != nil {
		return nil, nil, err
	}
	root := new(CloudProviderSnapshotExportBucket)
	resp, err := c.Client.Do(ctx, req, root)
	if err != nil {
		return nil, resp, err
	}
	return root, resp, err
}
func ( c CloudProviderSnapshotExportBucketsServiceOp ) Create ( ctx context . Context , projectID string , bucket * CloudProviderSnapshotExportBucket ) ( * CloudProviderSnapshotExportBucket , * Response , error ) { if projectID == " " { return nil , nil , NewArgError ( " " , " " ) } path := fmt . Sprintf ( cloudProviderSnapshotExportBucketsPath , projectID ) req , err := c . Client . NewRequest ( ctx , http . MethodPost , path , bucket ) if err != nil { return nil , nil , err } root := new ( CloudProviderSnapshotExportBucket ) resp , err := c . Client . Do ( ctx , req , root ) if err != nil { return nil , resp , err } return root , resp , err }
Create Allows you to grant Atlas access to the specified bucket for exporting backup snapshots.
Create Allows you to grant Atlas access to the specified bucket for exporting backup snapshots .