google-cloud-parameter_manager-v1 1.0.0 → 1.1.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/README.md +0 -1
- data/lib/google/cloud/parameter_manager/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/parameter_manager/v1/parameter_manager/client.rb +1329 -151
- data/lib/google/cloud/parameter_manager/v1/parameter_manager/credentials.rb +1 -1
- data/lib/google/cloud/parameter_manager/v1/parameter_manager/paths.rb +41 -1
- data/lib/google/cloud/parameter_manager/v1/parameter_manager/rest/client.rb +1244 -143
- data/lib/google/cloud/parameter_manager/v1/parameter_manager/rest/service_stub.rb +676 -1
- data/lib/google/cloud/parameter_manager/v1/parameter_manager/rest.rb +1 -1
- data/lib/google/cloud/parameter_manager/v1/parameter_manager.rb +1 -1
- data/lib/google/cloud/parameter_manager/v1/rest.rb +1 -1
- data/lib/google/cloud/parameter_manager/v1/version.rb +1 -1
- data/lib/google/cloud/parameter_manager/v1.rb +1 -1
- data/lib/google/cloud/parametermanager/v1/service_pb.rb +20 -1
- data/lib/google/cloud/parametermanager/v1/service_services_pb.rb +23 -1
- data/lib/google-cloud-parameter_manager-v1.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/parametermanager/v1/service.rb +458 -5
- data/proto_docs/google/iam/v1/resource_policy_member.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- metadata +1 -2
- data/proto_docs/google/protobuf/any.rb +0 -145
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -102,6 +102,46 @@ module Google
|
|
|
102
102
|
"projects/#{project}/locations/#{location}/parameters/#{parameter}/versions/#{parameter_version}"
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
+
##
|
|
106
|
+
# Create a fully-qualified Template resource string.
|
|
107
|
+
#
|
|
108
|
+
# The resource will be in the following format:
|
|
109
|
+
#
|
|
110
|
+
# `projects/{project}/locations/{location}/templates/{template}`
|
|
111
|
+
#
|
|
112
|
+
# @param project [String]
|
|
113
|
+
# @param location [String]
|
|
114
|
+
# @param template [String]
|
|
115
|
+
#
|
|
116
|
+
# @return [::String]
|
|
117
|
+
def template_path project:, location:, template:
|
|
118
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
119
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
120
|
+
|
|
121
|
+
"projects/#{project}/locations/#{location}/templates/#{template}"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
##
|
|
125
|
+
# Create a fully-qualified TemplateVersion resource string.
|
|
126
|
+
#
|
|
127
|
+
# The resource will be in the following format:
|
|
128
|
+
#
|
|
129
|
+
# `projects/{project}/locations/{location}/templates/{template}/versions/{template_version}`
|
|
130
|
+
#
|
|
131
|
+
# @param project [String]
|
|
132
|
+
# @param location [String]
|
|
133
|
+
# @param template [String]
|
|
134
|
+
# @param template_version [String]
|
|
135
|
+
#
|
|
136
|
+
# @return [::String]
|
|
137
|
+
def template_version_path project:, location:, template:, template_version:
|
|
138
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
139
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
140
|
+
raise ::ArgumentError, "template cannot contain /" if template.to_s.include? "/"
|
|
141
|
+
|
|
142
|
+
"projects/#{project}/locations/#{location}/templates/#{template}/versions/#{template_version}"
|
|
143
|
+
end
|
|
144
|
+
|
|
105
145
|
extend self
|
|
106
146
|
end
|
|
107
147
|
end
|