File tree 10 files changed +53
-33
lines changed
gcloudstoragedeleteobject
gcloudstoragelistallparam
10 files changed +53
-33
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Copy an object from a Google Storage bucket to another Google Storage bucket in
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,16 +67,16 @@ Copy an object from a Google Storage bucket to another Google Storage bucket in
66
67
67
68
* Run the code.
68
69
69
- You must provide 3 parameters:
70
+ You must provide 3 parameters, replace the values of :
70
71
71
- * ` < SOURCE_BUCKET> ` = Source bucket name
72
- * ` < SOURCE_OBJECT> ` = Source object name
73
- * ` < DESTINATION_BUCKET> ` = Destination bucket name
72
+ * ` < SOURCE_BUCKET> ` by source bucket name.
73
+ * ` < SOURCE_OBJECT> ` by source object name.
74
+ * ` < DESTINATION_BUCKET> ` by destination bucket name.
74
75
75
76
Run application:
76
77
77
78
` ` ` bash
78
- python gcloudstoragecopy.py source-bucket source-object destination-bucket
79
+ python gcloudstoragecopy.py < SOURCE_BUCKET > < SOURCE_OBJECT > < DESTINATION_BUCKET >
79
80
` ` `
80
81
81
82
* Test the application.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Create a new Google Storage bucket in a Google Cloud Project.
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -68,14 +69,14 @@ Create a new Google Storage bucket in a Google Cloud Project.
68
69
69
70
* Run the code.
70
71
71
- You must provide 1 parameter:
72
+ You must provide 1 parameter, replace the value of :
72
73
73
- * ` < BUCKET_NAME> ` = Bucket name
74
+ * ` < BUCKET_NAME> ` by Bucket name.
74
75
75
76
Run application:
76
77
77
78
` ` ` bash
78
- python cloudstoragecreate.py bucket-name
79
+ python cloudstoragecreate.py < BUCKET_NAME >
79
80
` ` `
80
81
81
82
* Test the application.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Delete a Google Storage bucket for a Google Cloud Project.
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,14 +67,14 @@ Delete a Google Storage bucket for a Google Cloud Project.
66
67
67
68
* Run the code.
68
69
69
- You must provide 1 parameter:
70
+ You must provide 1 parameter, replace the value of :
70
71
71
- * ` < BUCKET_NAME> ` = Bucket name
72
+ * ` < BUCKET_NAME> ` by Bucket name.
72
73
73
74
Run application:
74
75
75
76
` ` ` bash
76
- python cloudstoragedelete.py bucket-name
77
+ python cloudstoragedelete.py < BUCKET_NAME >
77
78
` ` `
78
79
79
80
* Test the application.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Delete an object in a Google Storage bucket for a Google Cloud Project.
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,15 +67,15 @@ Delete an object in a Google Storage bucket for a Google Cloud Project.
66
67
67
68
* Run the code.
68
69
69
- You must provide 2 parameters:
70
+ You must provide 2 parameters, replace the values of :
70
71
71
- * ` < BUCKET_NAME> ` = Name of the bucket
72
- * ` < OBJECT_NAME> ` = Name of the object in the bucket
72
+ * ` < BUCKET_NAME> ` by name of the bucket.
73
+ * ` < OBJECT_NAME> ` by name of the object in the bucket.
73
74
74
75
Run application:
75
76
76
77
` ` ` bash
77
- python cloudstoragedeleteobject.py bucket-name object-example
78
+ python cloudstoragedeleteobject.py < BUCKET_NAME > < OBJECT_NAME >
78
79
` ` `
79
80
80
81
* Test the application.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Download an object from a Cloud Storage bucket in a Google Cloud Project to a lo
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,16 +67,16 @@ Download an object from a Cloud Storage bucket in a Google Cloud Project to a lo
66
67
67
68
* Run the code.
68
69
69
- You must provide 3 parameters:
70
+ You must provide 3 parameters, replace the values of :
70
71
71
- * ` < BUCKET_NAME> ` = Name of the bucket
72
- * ` < OBJECT_NAME> ` = Object name in the bucket
73
- * ` < LOCAL_FILE_NAME> ` = Local file name
72
+ * ` < BUCKET_NAME> ` by name of the bucket.
73
+ * ` < OBJECT_NAME> ` by object name in the bucket.
74
+ * ` < LOCAL_FILE_NAME> ` by local file name.
74
75
75
76
Run application:
76
77
77
78
` ` ` bash
78
- python gcloudstoragedownload.py bucket-example object-example local-file-example
79
+ python gcloudstoragedownload.py < BUCKET_NAME > < OBJECT_NAME > < LOCAL_FILE_NAME >
79
80
` ` `
80
81
81
82
* Test the application.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ List information about the objects in a Cloud Storage bucket in a Google Cloud P
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,14 +67,14 @@ List information about the objects in a Cloud Storage bucket in a Google Cloud P
66
67
67
68
* Run the code.
68
69
69
- You must provide 1 parameter:
70
+ You must provide 1 parameter, replace the value of :
70
71
71
- * ` < BUCKET_NAME> ` = Bucket name
72
+ * ` < BUCKET_NAME> ` by Bucket name.
72
73
73
74
Run application:
74
75
75
76
` ` ` bash
76
- python cloudstoragelist.py bucket-name
77
+ python cloudstoragelist.py < BUCKET_NAME >
77
78
` ` `
78
79
79
80
* Test the application.
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ The credentials are taken from GOOGLE_APPLICATION_CREDENTIALS environment variab
50
50
* Go to the Google Cloud Project.
51
51
52
52
* Prepare the credentials:
53
+
53
54
* Create a Service account.
54
55
55
56
For example:
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ The user must provide the credentials using the application parameters.
44
44
* Go to the Google Cloud Project.
45
45
46
46
* Prepare the credentials:
47
+
47
48
* Create a Service account.
48
49
49
50
For example:
@@ -60,8 +61,18 @@ The user must provide the credentials using the application parameters.
60
61
61
62
* Run the code.
62
63
64
+ You must provide 1 parameter, replace the value of:
65
+
66
+ * ` < CREDENTIALS_FILE_NAME> ` by path and name of the JSON credential file.
67
+
63
68
Run application:
64
69
70
+ ` ` ` bash
71
+ python cloudstoragelistallparam.py < CREDENTIALS_FILE_NAME>
72
+ ` ` `
73
+
74
+ Example:
75
+
65
76
` ` ` bash
66
77
python cloudstoragelistallparam.py ~ /.gcloud/gcloud-java-examples.json
67
78
` ` `
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Move an object from a Google Storage bucket to another Google Storage bucket in
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,16 +67,16 @@ Move an object from a Google Storage bucket to another Google Storage bucket in
66
67
67
68
* Run the code.
68
69
69
- You must provide 3 parameters:
70
+ You must provide 3 parameters, replace the values of :
70
71
71
- * ` < SOURCE_BUCKET> ` = Source bucket name
72
- * ` < SOURCE_OBJECT> ` = Source object name
73
- * ` < DESTINATION_BUCKET> ` = Destination bucket name
72
+ * ` < SOURCE_BUCKET> ` by source bucket name.
73
+ * ` < SOURCE_OBJECT> ` by source object name.
74
+ * ` < DESTINATION_BUCKET> ` by destination bucket name.
74
75
75
76
Run application:
76
77
77
78
` ` ` bash
78
- python gcloudstoragemove.py source-bucket source-object destination-bucket
79
+ python gcloudstoragemove.py < SOURCE_BUCKET > < SOURCE_OBJECT > < DESTINATION_BUCKET >
79
80
` ` `
80
81
81
82
* Test the application.
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Upload a local file to a Google Storage bucket in a Google Cloud Project.
48
48
* Go to the Google Cloud Project.
49
49
50
50
* Prepare the credentials:
51
+
51
52
* Create a Service account.
52
53
53
54
For example:
@@ -66,16 +67,16 @@ Upload a local file to a Google Storage bucket in a Google Cloud Project.
66
67
67
68
* Run the code.
68
69
69
- You must provide 3 parameters:
70
+ You must provide 3 parameters, replace the values of :
70
71
71
- * ` < BUCKET_NAME> ` = Name of the bucket
72
- * ` < OBJECT_NAME> ` = Object name in the bucket
73
- * ` < LOCAL_FILE_NAME> ` = Local file name
72
+ * ` < BUCKET_NAME> ` by name of the bucket.
73
+ * ` < OBJECT_NAME> ` by object name in the bucket.
74
+ * ` < LOCAL_FILE_NAME> ` by local file name.
74
75
75
76
Run application:
76
77
77
78
` ` ` bash
78
- python cloudstorageupload.py bucket-example object-example local-file-example
79
+ python cloudstorageupload.py < BUCKET_NAME > < OBJECT_NAME > < LOCAL_FILE_NAME >
79
80
` ` `
80
81
81
82
* Test the application.
You can’t perform that action at this time.
0 commit comments