google-cloud-gdc_hardware_management-v1alpha 0.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/bindings_override.rb +102 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/client.rb +3998 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/credentials.rb +47 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/operations.rb +809 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/paths.rb +208 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/rest/client.rb +3741 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/rest/operations.rb +902 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/rest/service_stub.rb +2029 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management/rest.rb +54 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/gdc_hardware_management.rb +56 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/rest.rb +38 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha/version.rb +28 -0
- data/lib/google/cloud/gdc_hardware_management/v1alpha.rb +45 -0
- data/lib/google/cloud/gdchardwaremanagement/v1alpha/resources_pb.rb +89 -0
- data/lib/google/cloud/gdchardwaremanagement/v1alpha/service_pb.rb +98 -0
- data/lib/google/cloud/gdchardwaremanagement/v1alpha/service_services_pb.rb +109 -0
- data/lib/google-cloud-gdc_hardware_management-v1alpha.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +65 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/gdchardwaremanagement/v1alpha/resources.rb +917 -0
- data/proto_docs/google/cloud/gdchardwaremanagement/v1alpha/service.rb +803 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/datetime.rb +99 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/postal_address.rb +135 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +141 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module GDCHardwareManagement
|
|
23
|
+
module V1alpha
|
|
24
|
+
module GDCHardwareManagement
|
|
25
|
+
# Path helper methods for the GDCHardwareManagement API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified ChangeLogEntry resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param order [String]
|
|
37
|
+
# @param change_log_entry [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def change_log_entry_path project:, location:, order:, change_log_entry:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "order cannot contain /" if order.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/orders/#{order}/changeLogEntries/#{change_log_entry}"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Create a fully-qualified Comment resource string.
|
|
50
|
+
#
|
|
51
|
+
# The resource will be in the following format:
|
|
52
|
+
#
|
|
53
|
+
# `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
|
|
54
|
+
#
|
|
55
|
+
# @param project [String]
|
|
56
|
+
# @param location [String]
|
|
57
|
+
# @param order [String]
|
|
58
|
+
# @param comment [String]
|
|
59
|
+
#
|
|
60
|
+
# @return [::String]
|
|
61
|
+
def comment_path project:, location:, order:, comment:
|
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
64
|
+
raise ::ArgumentError, "order cannot contain /" if order.to_s.include? "/"
|
|
65
|
+
|
|
66
|
+
"projects/#{project}/locations/#{location}/orders/#{order}/comments/#{comment}"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
##
|
|
70
|
+
# Create a fully-qualified Hardware resource string.
|
|
71
|
+
#
|
|
72
|
+
# The resource will be in the following format:
|
|
73
|
+
#
|
|
74
|
+
# `projects/{project}/locations/{location}/hardware/{hardware}`
|
|
75
|
+
#
|
|
76
|
+
# @param project [String]
|
|
77
|
+
# @param location [String]
|
|
78
|
+
# @param hardware [String]
|
|
79
|
+
#
|
|
80
|
+
# @return [::String]
|
|
81
|
+
def hardware_path project:, location:, hardware:
|
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
84
|
+
|
|
85
|
+
"projects/#{project}/locations/#{location}/hardware/#{hardware}"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
##
|
|
89
|
+
# Create a fully-qualified HardwareGroup resource string.
|
|
90
|
+
#
|
|
91
|
+
# The resource will be in the following format:
|
|
92
|
+
#
|
|
93
|
+
# `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
|
|
94
|
+
#
|
|
95
|
+
# @param project [String]
|
|
96
|
+
# @param location [String]
|
|
97
|
+
# @param order [String]
|
|
98
|
+
# @param hardware_group [String]
|
|
99
|
+
#
|
|
100
|
+
# @return [::String]
|
|
101
|
+
def hardware_group_path project:, location:, order:, hardware_group:
|
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
104
|
+
raise ::ArgumentError, "order cannot contain /" if order.to_s.include? "/"
|
|
105
|
+
|
|
106
|
+
"projects/#{project}/locations/#{location}/orders/#{order}/hardwareGroups/#{hardware_group}"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
##
|
|
110
|
+
# Create a fully-qualified Location resource string.
|
|
111
|
+
#
|
|
112
|
+
# The resource will be in the following format:
|
|
113
|
+
#
|
|
114
|
+
# `projects/{project}/locations/{location}`
|
|
115
|
+
#
|
|
116
|
+
# @param project [String]
|
|
117
|
+
# @param location [String]
|
|
118
|
+
#
|
|
119
|
+
# @return [::String]
|
|
120
|
+
def location_path project:, location:
|
|
121
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
122
|
+
|
|
123
|
+
"projects/#{project}/locations/#{location}"
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
##
|
|
127
|
+
# Create a fully-qualified Order resource string.
|
|
128
|
+
#
|
|
129
|
+
# The resource will be in the following format:
|
|
130
|
+
#
|
|
131
|
+
# `projects/{project}/locations/{location}/orders/{order}`
|
|
132
|
+
#
|
|
133
|
+
# @param project [String]
|
|
134
|
+
# @param location [String]
|
|
135
|
+
# @param order [String]
|
|
136
|
+
#
|
|
137
|
+
# @return [::String]
|
|
138
|
+
def order_path project:, location:, order:
|
|
139
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
140
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
141
|
+
|
|
142
|
+
"projects/#{project}/locations/#{location}/orders/#{order}"
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
##
|
|
146
|
+
# Create a fully-qualified Site resource string.
|
|
147
|
+
#
|
|
148
|
+
# The resource will be in the following format:
|
|
149
|
+
#
|
|
150
|
+
# `projects/{project}/locations/{location}/sites/{site}`
|
|
151
|
+
#
|
|
152
|
+
# @param project [String]
|
|
153
|
+
# @param location [String]
|
|
154
|
+
# @param site [String]
|
|
155
|
+
#
|
|
156
|
+
# @return [::String]
|
|
157
|
+
def site_path project:, location:, site:
|
|
158
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
159
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
160
|
+
|
|
161
|
+
"projects/#{project}/locations/#{location}/sites/#{site}"
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
##
|
|
165
|
+
# Create a fully-qualified Sku resource string.
|
|
166
|
+
#
|
|
167
|
+
# The resource will be in the following format:
|
|
168
|
+
#
|
|
169
|
+
# `projects/{project}/locations/{location}/skus/{sku}`
|
|
170
|
+
#
|
|
171
|
+
# @param project [String]
|
|
172
|
+
# @param location [String]
|
|
173
|
+
# @param sku [String]
|
|
174
|
+
#
|
|
175
|
+
# @return [::String]
|
|
176
|
+
def sku_path project:, location:, sku:
|
|
177
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
178
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
179
|
+
|
|
180
|
+
"projects/#{project}/locations/#{location}/skus/#{sku}"
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
##
|
|
184
|
+
# Create a fully-qualified Zone resource string.
|
|
185
|
+
#
|
|
186
|
+
# The resource will be in the following format:
|
|
187
|
+
#
|
|
188
|
+
# `projects/{project}/locations/{location}/zones/{zone}`
|
|
189
|
+
#
|
|
190
|
+
# @param project [String]
|
|
191
|
+
# @param location [String]
|
|
192
|
+
# @param zone [String]
|
|
193
|
+
#
|
|
194
|
+
# @return [::String]
|
|
195
|
+
def zone_path project:, location:, zone:
|
|
196
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
197
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
198
|
+
|
|
199
|
+
"projects/#{project}/locations/#{location}/zones/#{zone}"
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
extend self
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|