google-cloud-storage_insights-v1 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/storage_insights/v1/storage_insights/client.rb +969 -171
- data/lib/google/cloud/storage_insights/v1/storage_insights/operations.rb +813 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/paths.rb +19 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/client.rb +749 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/operations.rb +914 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/service_stub.rb +431 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest.rb +1 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights.rb +1 -0
- data/lib/google/cloud/storage_insights/v1/version.rb +1 -1
- data/lib/google/cloud/storageinsights/v1/storageinsights_pb.rb +25 -1
- data/lib/google/cloud/storageinsights/v1/storageinsights_services_pb.rb +15 -0
- data/proto_docs/google/cloud/storageinsights/v1/storageinsights.rb +493 -1
- data/proto_docs/google/longrunning/operations.rb +173 -0
- metadata +13 -22
@@ -24,6 +24,25 @@ module Google
|
|
24
24
|
module StorageInsights
|
25
25
|
# Path helper methods for the StorageInsights API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified DatasetConfig resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/datasetConfigs/{dataset_config}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param dataset_config [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def dataset_config_path project:, location:, dataset_config:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/datasetConfigs/#{dataset_config}"
|
44
|
+
end
|
45
|
+
|
27
46
|
##
|
28
47
|
# Create a fully-qualified Location resource string.
|
29
48
|
#
|