Skip to content

Commit

Permalink
remove storage control code
Browse files Browse the repository at this point in the history
  • Loading branch information
bajajneha27 committed May 31, 2024
1 parent 288c762 commit a697704
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions google-cloud-storage-control/samples/acceptance/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ def random_bucket_name
"ruby-storage-control-samples-test-#{t}-#{SecureRandom.hex 4}".downcase
end

def random_folder_name
t = Time.now.utc.iso8601.gsub ":", "-"
"ruby-storage-control-folder-samples-test-#{t}-#{SecureRandom.hex 4}".downcase
end

def create_bucket_helper bucket_name, uniform_bucket_level_access: nil, hierarchical_namespace: nil
def create_bucket_helper bucket_name
storage_client = Google::Cloud::Storage.new
retry_resource_exhaustion do
storage_client.create_bucket bucket_name do |b|
b.uniform_bucket_level_access = uniform_bucket_level_access
b.hierarchical_namespace = hierarchical_namespace
end
storage_client.create_bucket bucket_name
end
end

Expand Down

0 comments on commit a697704

Please sign in to comment.