Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions storagecontrol/create_rapid_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Rapid Cache sample (see the storage control documentation).
import sys

# [START storage_control_create_rapid_cache]
Expand Down
1 change: 1 addition & 0 deletions storagecontrol/disable_rapid_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Rapid Cache sample (see the storage control documentation).
import sys

# [START storage_control_disable_rapid_cache]
Expand Down
3 changes: 3 additions & 0 deletions storagecontrol/get_rapid_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ def get_rapid_cache(bucket_name: str, cache_id: str) -> None:


if __name__ == "__main__":
if len(sys.argv) != 3:
print(f"Usage: python {sys.argv[0]} <bucket_name> <cache_id>")
sys.exit(1)
get_rapid_cache(bucket_name=sys.argv[1], cache_id=sys.argv[2])
1 change: 1 addition & 0 deletions storagecontrol/list_rapid_caches.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Rapid Cache sample (see the storage control documentation).
import sys

# [START storage_control_list_rapid_caches]
Expand Down
1 change: 1 addition & 0 deletions storagecontrol/rapid_cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Exercises the Rapid Cache samples end to end.
import os

import create_rapid_cache
Expand Down
1 change: 1 addition & 0 deletions storagecontrol/update_rapid_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Rapid Cache sample (see the storage control documentation).
import sys

# [START storage_control_update_rapid_cache]
Expand Down