google-cloud-gke_backup-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +2980 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/credentials.rb +47 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +767 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/paths.rb +216 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke.rb +51 -0
- data/lib/google/cloud/gke_backup/v1/version.rb +28 -0
- data/lib/google/cloud/gke_backup/v1.rb +40 -0
- data/lib/google/cloud/gkebackup/v1/backup_pb.rb +74 -0
- data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +61 -0
- data/lib/google/cloud/gkebackup/v1/common_pb.rb +37 -0
- data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +213 -0
- data/lib/google/cloud/gkebackup/v1/gkebackup_services_pb.rb +92 -0
- data/lib/google/cloud/gkebackup/v1/restore_pb.rb +101 -0
- data/lib/google/cloud/gkebackup/v1/restore_plan_pb.rb +36 -0
- data/lib/google/cloud/gkebackup/v1/volume_pb.rb +83 -0
- data/lib/google-cloud-gke_backup-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup.rb +226 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +196 -0
- data/proto_docs/google/cloud/gkebackup/v1/common.rb +67 -0
- data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +658 -0
- data/proto_docs/google/cloud/gkebackup/v1/restore.rb +325 -0
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +92 -0
- data/proto_docs/google/cloud/gkebackup/v1/volume.rb +214 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +229 -0
@@ -0,0 +1,213 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/gkebackup/v1/gkebackup.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/gkebackup/v1/backup_pb'
|
11
|
+
require 'google/cloud/gkebackup/v1/backup_plan_pb'
|
12
|
+
require 'google/cloud/gkebackup/v1/restore_pb'
|
13
|
+
require 'google/cloud/gkebackup/v1/restore_plan_pb'
|
14
|
+
require 'google/cloud/gkebackup/v1/volume_pb'
|
15
|
+
require 'google/longrunning/operations_pb'
|
16
|
+
require 'google/protobuf/field_mask_pb'
|
17
|
+
require 'google/protobuf/timestamp_pb'
|
18
|
+
|
19
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
|
+
add_file("google/cloud/gkebackup/v1/gkebackup.proto", :syntax => :proto3) do
|
21
|
+
add_message "google.cloud.gkebackup.v1.OperationMetadata" do
|
22
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
23
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
24
|
+
optional :target, :string, 3
|
25
|
+
optional :verb, :string, 4
|
26
|
+
optional :status_message, :string, 5
|
27
|
+
optional :requested_cancellation, :bool, 6
|
28
|
+
optional :api_version, :string, 7
|
29
|
+
end
|
30
|
+
add_message "google.cloud.gkebackup.v1.CreateBackupPlanRequest" do
|
31
|
+
optional :parent, :string, 1
|
32
|
+
optional :backup_plan, :message, 2, "google.cloud.gkebackup.v1.BackupPlan"
|
33
|
+
optional :backup_plan_id, :string, 3
|
34
|
+
end
|
35
|
+
add_message "google.cloud.gkebackup.v1.ListBackupPlansRequest" do
|
36
|
+
optional :parent, :string, 1
|
37
|
+
optional :page_size, :int32, 2
|
38
|
+
optional :page_token, :string, 3
|
39
|
+
optional :filter, :string, 4
|
40
|
+
optional :order_by, :string, 5
|
41
|
+
end
|
42
|
+
add_message "google.cloud.gkebackup.v1.ListBackupPlansResponse" do
|
43
|
+
repeated :backup_plans, :message, 1, "google.cloud.gkebackup.v1.BackupPlan"
|
44
|
+
optional :next_page_token, :string, 2
|
45
|
+
repeated :unreachable, :string, 3
|
46
|
+
end
|
47
|
+
add_message "google.cloud.gkebackup.v1.GetBackupPlanRequest" do
|
48
|
+
optional :name, :string, 1
|
49
|
+
end
|
50
|
+
add_message "google.cloud.gkebackup.v1.UpdateBackupPlanRequest" do
|
51
|
+
optional :backup_plan, :message, 1, "google.cloud.gkebackup.v1.BackupPlan"
|
52
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
53
|
+
end
|
54
|
+
add_message "google.cloud.gkebackup.v1.DeleteBackupPlanRequest" do
|
55
|
+
optional :name, :string, 1
|
56
|
+
optional :etag, :string, 2
|
57
|
+
end
|
58
|
+
add_message "google.cloud.gkebackup.v1.CreateBackupRequest" do
|
59
|
+
optional :parent, :string, 1
|
60
|
+
optional :backup, :message, 2, "google.cloud.gkebackup.v1.Backup"
|
61
|
+
optional :backup_id, :string, 3
|
62
|
+
end
|
63
|
+
add_message "google.cloud.gkebackup.v1.ListBackupsRequest" do
|
64
|
+
optional :parent, :string, 1
|
65
|
+
optional :page_size, :int32, 2
|
66
|
+
optional :page_token, :string, 3
|
67
|
+
optional :filter, :string, 4
|
68
|
+
optional :order_by, :string, 5
|
69
|
+
end
|
70
|
+
add_message "google.cloud.gkebackup.v1.ListBackupsResponse" do
|
71
|
+
repeated :backups, :message, 1, "google.cloud.gkebackup.v1.Backup"
|
72
|
+
optional :next_page_token, :string, 2
|
73
|
+
end
|
74
|
+
add_message "google.cloud.gkebackup.v1.GetBackupRequest" do
|
75
|
+
optional :name, :string, 1
|
76
|
+
end
|
77
|
+
add_message "google.cloud.gkebackup.v1.UpdateBackupRequest" do
|
78
|
+
optional :backup, :message, 1, "google.cloud.gkebackup.v1.Backup"
|
79
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
80
|
+
end
|
81
|
+
add_message "google.cloud.gkebackup.v1.DeleteBackupRequest" do
|
82
|
+
optional :name, :string, 1
|
83
|
+
optional :etag, :string, 2
|
84
|
+
optional :force, :bool, 3
|
85
|
+
end
|
86
|
+
add_message "google.cloud.gkebackup.v1.ListVolumeBackupsRequest" do
|
87
|
+
optional :parent, :string, 1
|
88
|
+
optional :page_size, :int32, 2
|
89
|
+
optional :page_token, :string, 3
|
90
|
+
optional :filter, :string, 4
|
91
|
+
optional :order_by, :string, 5
|
92
|
+
end
|
93
|
+
add_message "google.cloud.gkebackup.v1.ListVolumeBackupsResponse" do
|
94
|
+
repeated :volume_backups, :message, 1, "google.cloud.gkebackup.v1.VolumeBackup"
|
95
|
+
optional :next_page_token, :string, 2
|
96
|
+
end
|
97
|
+
add_message "google.cloud.gkebackup.v1.GetVolumeBackupRequest" do
|
98
|
+
optional :name, :string, 1
|
99
|
+
end
|
100
|
+
add_message "google.cloud.gkebackup.v1.CreateRestorePlanRequest" do
|
101
|
+
optional :parent, :string, 1
|
102
|
+
optional :restore_plan, :message, 2, "google.cloud.gkebackup.v1.RestorePlan"
|
103
|
+
optional :restore_plan_id, :string, 3
|
104
|
+
end
|
105
|
+
add_message "google.cloud.gkebackup.v1.ListRestorePlansRequest" do
|
106
|
+
optional :parent, :string, 1
|
107
|
+
optional :page_size, :int32, 2
|
108
|
+
optional :page_token, :string, 3
|
109
|
+
optional :filter, :string, 4
|
110
|
+
optional :order_by, :string, 5
|
111
|
+
end
|
112
|
+
add_message "google.cloud.gkebackup.v1.ListRestorePlansResponse" do
|
113
|
+
repeated :restore_plans, :message, 1, "google.cloud.gkebackup.v1.RestorePlan"
|
114
|
+
optional :next_page_token, :string, 2
|
115
|
+
repeated :unreachable, :string, 3
|
116
|
+
end
|
117
|
+
add_message "google.cloud.gkebackup.v1.GetRestorePlanRequest" do
|
118
|
+
optional :name, :string, 1
|
119
|
+
end
|
120
|
+
add_message "google.cloud.gkebackup.v1.UpdateRestorePlanRequest" do
|
121
|
+
optional :restore_plan, :message, 1, "google.cloud.gkebackup.v1.RestorePlan"
|
122
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
123
|
+
end
|
124
|
+
add_message "google.cloud.gkebackup.v1.DeleteRestorePlanRequest" do
|
125
|
+
optional :name, :string, 1
|
126
|
+
optional :etag, :string, 2
|
127
|
+
optional :force, :bool, 3
|
128
|
+
end
|
129
|
+
add_message "google.cloud.gkebackup.v1.CreateRestoreRequest" do
|
130
|
+
optional :parent, :string, 1
|
131
|
+
optional :restore, :message, 2, "google.cloud.gkebackup.v1.Restore"
|
132
|
+
optional :restore_id, :string, 3
|
133
|
+
end
|
134
|
+
add_message "google.cloud.gkebackup.v1.ListRestoresRequest" do
|
135
|
+
optional :parent, :string, 1
|
136
|
+
optional :page_size, :int32, 2
|
137
|
+
optional :page_token, :string, 3
|
138
|
+
optional :filter, :string, 4
|
139
|
+
optional :order_by, :string, 5
|
140
|
+
end
|
141
|
+
add_message "google.cloud.gkebackup.v1.ListRestoresResponse" do
|
142
|
+
repeated :restores, :message, 1, "google.cloud.gkebackup.v1.Restore"
|
143
|
+
optional :next_page_token, :string, 2
|
144
|
+
repeated :unreachable, :string, 3
|
145
|
+
end
|
146
|
+
add_message "google.cloud.gkebackup.v1.GetRestoreRequest" do
|
147
|
+
optional :name, :string, 1
|
148
|
+
end
|
149
|
+
add_message "google.cloud.gkebackup.v1.UpdateRestoreRequest" do
|
150
|
+
optional :restore, :message, 1, "google.cloud.gkebackup.v1.Restore"
|
151
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
152
|
+
end
|
153
|
+
add_message "google.cloud.gkebackup.v1.DeleteRestoreRequest" do
|
154
|
+
optional :name, :string, 1
|
155
|
+
optional :etag, :string, 2
|
156
|
+
optional :force, :bool, 3
|
157
|
+
end
|
158
|
+
add_message "google.cloud.gkebackup.v1.ListVolumeRestoresRequest" do
|
159
|
+
optional :parent, :string, 1
|
160
|
+
optional :page_size, :int32, 2
|
161
|
+
optional :page_token, :string, 3
|
162
|
+
optional :filter, :string, 4
|
163
|
+
optional :order_by, :string, 5
|
164
|
+
end
|
165
|
+
add_message "google.cloud.gkebackup.v1.ListVolumeRestoresResponse" do
|
166
|
+
repeated :volume_restores, :message, 1, "google.cloud.gkebackup.v1.VolumeRestore"
|
167
|
+
optional :next_page_token, :string, 2
|
168
|
+
end
|
169
|
+
add_message "google.cloud.gkebackup.v1.GetVolumeRestoreRequest" do
|
170
|
+
optional :name, :string, 1
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
module Google
|
176
|
+
module Cloud
|
177
|
+
module GkeBackup
|
178
|
+
module V1
|
179
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.OperationMetadata").msgclass
|
180
|
+
CreateBackupPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.CreateBackupPlanRequest").msgclass
|
181
|
+
ListBackupPlansRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListBackupPlansRequest").msgclass
|
182
|
+
ListBackupPlansResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListBackupPlansResponse").msgclass
|
183
|
+
GetBackupPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.GetBackupPlanRequest").msgclass
|
184
|
+
UpdateBackupPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.UpdateBackupPlanRequest").msgclass
|
185
|
+
DeleteBackupPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.DeleteBackupPlanRequest").msgclass
|
186
|
+
CreateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.CreateBackupRequest").msgclass
|
187
|
+
ListBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListBackupsRequest").msgclass
|
188
|
+
ListBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListBackupsResponse").msgclass
|
189
|
+
GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.GetBackupRequest").msgclass
|
190
|
+
UpdateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.UpdateBackupRequest").msgclass
|
191
|
+
DeleteBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.DeleteBackupRequest").msgclass
|
192
|
+
ListVolumeBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListVolumeBackupsRequest").msgclass
|
193
|
+
ListVolumeBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListVolumeBackupsResponse").msgclass
|
194
|
+
GetVolumeBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.GetVolumeBackupRequest").msgclass
|
195
|
+
CreateRestorePlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.CreateRestorePlanRequest").msgclass
|
196
|
+
ListRestorePlansRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListRestorePlansRequest").msgclass
|
197
|
+
ListRestorePlansResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListRestorePlansResponse").msgclass
|
198
|
+
GetRestorePlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.GetRestorePlanRequest").msgclass
|
199
|
+
UpdateRestorePlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.UpdateRestorePlanRequest").msgclass
|
200
|
+
DeleteRestorePlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.DeleteRestorePlanRequest").msgclass
|
201
|
+
CreateRestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.CreateRestoreRequest").msgclass
|
202
|
+
ListRestoresRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListRestoresRequest").msgclass
|
203
|
+
ListRestoresResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListRestoresResponse").msgclass
|
204
|
+
GetRestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.GetRestoreRequest").msgclass
|
205
|
+
UpdateRestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.UpdateRestoreRequest").msgclass
|
206
|
+
DeleteRestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.DeleteRestoreRequest").msgclass
|
207
|
+
ListVolumeRestoresRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListVolumeRestoresRequest").msgclass
|
208
|
+
ListVolumeRestoresResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ListVolumeRestoresResponse").msgclass
|
209
|
+
GetVolumeRestoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.GetVolumeRestoreRequest").msgclass
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/gkebackup/v1/gkebackup.proto for package 'Google.Cloud.GkeBackup.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/gkebackup/v1/gkebackup_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module GkeBackup
|
25
|
+
module V1
|
26
|
+
module BackupForGKE
|
27
|
+
# BackupForGKE allows Kubernetes administrators to configure, execute, and
|
28
|
+
# manage backup and restore operations for their GKE clusters.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.gkebackup.v1.BackupForGKE'
|
36
|
+
|
37
|
+
# Creates a new BackupPlan in a given location.
|
38
|
+
rpc :CreateBackupPlan, ::Google::Cloud::GkeBackup::V1::CreateBackupPlanRequest, ::Google::Longrunning::Operation
|
39
|
+
# Lists BackupPlans in a given location.
|
40
|
+
rpc :ListBackupPlans, ::Google::Cloud::GkeBackup::V1::ListBackupPlansRequest, ::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse
|
41
|
+
# Retrieve the details of a single BackupPlan.
|
42
|
+
rpc :GetBackupPlan, ::Google::Cloud::GkeBackup::V1::GetBackupPlanRequest, ::Google::Cloud::GkeBackup::V1::BackupPlan
|
43
|
+
# Update a BackupPlan.
|
44
|
+
rpc :UpdateBackupPlan, ::Google::Cloud::GkeBackup::V1::UpdateBackupPlanRequest, ::Google::Longrunning::Operation
|
45
|
+
# Deletes an existing BackupPlan.
|
46
|
+
rpc :DeleteBackupPlan, ::Google::Cloud::GkeBackup::V1::DeleteBackupPlanRequest, ::Google::Longrunning::Operation
|
47
|
+
# Creates a Backup for the given BackupPlan.
|
48
|
+
rpc :CreateBackup, ::Google::Cloud::GkeBackup::V1::CreateBackupRequest, ::Google::Longrunning::Operation
|
49
|
+
# Lists the Backups for a given BackupPlan.
|
50
|
+
rpc :ListBackups, ::Google::Cloud::GkeBackup::V1::ListBackupsRequest, ::Google::Cloud::GkeBackup::V1::ListBackupsResponse
|
51
|
+
# Retrieve the details of a single Backup.
|
52
|
+
rpc :GetBackup, ::Google::Cloud::GkeBackup::V1::GetBackupRequest, ::Google::Cloud::GkeBackup::V1::Backup
|
53
|
+
# Update a Backup.
|
54
|
+
rpc :UpdateBackup, ::Google::Cloud::GkeBackup::V1::UpdateBackupRequest, ::Google::Longrunning::Operation
|
55
|
+
# Deletes an existing Backup.
|
56
|
+
rpc :DeleteBackup, ::Google::Cloud::GkeBackup::V1::DeleteBackupRequest, ::Google::Longrunning::Operation
|
57
|
+
# Lists the VolumeBackups for a given Backup.
|
58
|
+
rpc :ListVolumeBackups, ::Google::Cloud::GkeBackup::V1::ListVolumeBackupsRequest, ::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse
|
59
|
+
# Retrieve the details of a single VolumeBackup.
|
60
|
+
rpc :GetVolumeBackup, ::Google::Cloud::GkeBackup::V1::GetVolumeBackupRequest, ::Google::Cloud::GkeBackup::V1::VolumeBackup
|
61
|
+
# Creates a new RestorePlan in a given location.
|
62
|
+
rpc :CreateRestorePlan, ::Google::Cloud::GkeBackup::V1::CreateRestorePlanRequest, ::Google::Longrunning::Operation
|
63
|
+
# Lists RestorePlans in a given location.
|
64
|
+
rpc :ListRestorePlans, ::Google::Cloud::GkeBackup::V1::ListRestorePlansRequest, ::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse
|
65
|
+
# Retrieve the details of a single RestorePlan.
|
66
|
+
rpc :GetRestorePlan, ::Google::Cloud::GkeBackup::V1::GetRestorePlanRequest, ::Google::Cloud::GkeBackup::V1::RestorePlan
|
67
|
+
# Update a RestorePlan.
|
68
|
+
rpc :UpdateRestorePlan, ::Google::Cloud::GkeBackup::V1::UpdateRestorePlanRequest, ::Google::Longrunning::Operation
|
69
|
+
# Deletes an existing RestorePlan.
|
70
|
+
rpc :DeleteRestorePlan, ::Google::Cloud::GkeBackup::V1::DeleteRestorePlanRequest, ::Google::Longrunning::Operation
|
71
|
+
# Creates a new Restore for the given RestorePlan.
|
72
|
+
rpc :CreateRestore, ::Google::Cloud::GkeBackup::V1::CreateRestoreRequest, ::Google::Longrunning::Operation
|
73
|
+
# Lists the Restores for a given RestorePlan.
|
74
|
+
rpc :ListRestores, ::Google::Cloud::GkeBackup::V1::ListRestoresRequest, ::Google::Cloud::GkeBackup::V1::ListRestoresResponse
|
75
|
+
# Retrieves the details of a single Restore.
|
76
|
+
rpc :GetRestore, ::Google::Cloud::GkeBackup::V1::GetRestoreRequest, ::Google::Cloud::GkeBackup::V1::Restore
|
77
|
+
# Update a Restore.
|
78
|
+
rpc :UpdateRestore, ::Google::Cloud::GkeBackup::V1::UpdateRestoreRequest, ::Google::Longrunning::Operation
|
79
|
+
# Deletes an existing Restore.
|
80
|
+
rpc :DeleteRestore, ::Google::Cloud::GkeBackup::V1::DeleteRestoreRequest, ::Google::Longrunning::Operation
|
81
|
+
# Lists the VolumeRestores for a given Restore.
|
82
|
+
rpc :ListVolumeRestores, ::Google::Cloud::GkeBackup::V1::ListVolumeRestoresRequest, ::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse
|
83
|
+
# Retrieve the details of a single VolumeRestore.
|
84
|
+
rpc :GetVolumeRestore, ::Google::Cloud::GkeBackup::V1::GetVolumeRestoreRequest, ::Google::Cloud::GkeBackup::V1::VolumeRestore
|
85
|
+
end
|
86
|
+
|
87
|
+
Stub = Service.rpc_stub_class
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/gkebackup/v1/restore.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/gkebackup/v1/common_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/gkebackup/v1/restore.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.gkebackup.v1.Restore" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :uid, :string, 2
|
16
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
17
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
optional :description, :string, 5
|
19
|
+
optional :backup, :string, 6
|
20
|
+
optional :cluster, :string, 7
|
21
|
+
optional :restore_config, :message, 8, "google.cloud.gkebackup.v1.RestoreConfig"
|
22
|
+
map :labels, :string, :string, 9
|
23
|
+
optional :state, :enum, 10, "google.cloud.gkebackup.v1.Restore.State"
|
24
|
+
optional :state_reason, :string, 11
|
25
|
+
optional :complete_time, :message, 12, "google.protobuf.Timestamp"
|
26
|
+
optional :resources_restored_count, :int32, 13
|
27
|
+
optional :resources_excluded_count, :int32, 14
|
28
|
+
optional :resources_failed_count, :int32, 15
|
29
|
+
optional :volumes_restored_count, :int32, 16
|
30
|
+
optional :etag, :string, 17
|
31
|
+
end
|
32
|
+
add_enum "google.cloud.gkebackup.v1.Restore.State" do
|
33
|
+
value :STATE_UNSPECIFIED, 0
|
34
|
+
value :CREATING, 1
|
35
|
+
value :IN_PROGRESS, 2
|
36
|
+
value :SUCCEEDED, 3
|
37
|
+
value :FAILED, 4
|
38
|
+
value :DELETING, 5
|
39
|
+
end
|
40
|
+
add_message "google.cloud.gkebackup.v1.RestoreConfig" do
|
41
|
+
optional :volume_data_restore_policy, :enum, 1, "google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy"
|
42
|
+
optional :cluster_resource_conflict_policy, :enum, 2, "google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy"
|
43
|
+
optional :namespaced_resource_restore_mode, :enum, 3, "google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode"
|
44
|
+
optional :cluster_resource_restore_scope, :message, 4, "google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope"
|
45
|
+
repeated :substitution_rules, :message, 8, "google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule"
|
46
|
+
oneof :namespaced_resource_restore_scope do
|
47
|
+
optional :all_namespaces, :bool, 5
|
48
|
+
optional :selected_namespaces, :message, 6, "google.cloud.gkebackup.v1.Namespaces"
|
49
|
+
optional :selected_applications, :message, 7, "google.cloud.gkebackup.v1.NamespacedNames"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
add_message "google.cloud.gkebackup.v1.RestoreConfig.GroupKind" do
|
53
|
+
optional :resource_group, :string, 1
|
54
|
+
optional :resource_kind, :string, 2
|
55
|
+
end
|
56
|
+
add_message "google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope" do
|
57
|
+
repeated :selected_group_kinds, :message, 1, "google.cloud.gkebackup.v1.RestoreConfig.GroupKind"
|
58
|
+
end
|
59
|
+
add_message "google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule" do
|
60
|
+
repeated :target_namespaces, :string, 1
|
61
|
+
repeated :target_group_kinds, :message, 2, "google.cloud.gkebackup.v1.RestoreConfig.GroupKind"
|
62
|
+
optional :target_json_path, :string, 3
|
63
|
+
optional :original_value_pattern, :string, 4
|
64
|
+
optional :new_value, :string, 5
|
65
|
+
end
|
66
|
+
add_enum "google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy" do
|
67
|
+
value :VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED, 0
|
68
|
+
value :RESTORE_VOLUME_DATA_FROM_BACKUP, 1
|
69
|
+
value :REUSE_VOLUME_HANDLE_FROM_BACKUP, 2
|
70
|
+
value :NO_VOLUME_DATA_RESTORATION, 3
|
71
|
+
end
|
72
|
+
add_enum "google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy" do
|
73
|
+
value :CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED, 0
|
74
|
+
value :USE_EXISTING_VERSION, 1
|
75
|
+
value :USE_BACKUP_VERSION, 2
|
76
|
+
end
|
77
|
+
add_enum "google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode" do
|
78
|
+
value :NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED, 0
|
79
|
+
value :DELETE_AND_RESTORE, 1
|
80
|
+
value :FAIL_ON_CONFLICT, 2
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
module Google
|
86
|
+
module Cloud
|
87
|
+
module GkeBackup
|
88
|
+
module V1
|
89
|
+
Restore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore").msgclass
|
90
|
+
Restore::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore.State").enummodule
|
91
|
+
RestoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig").msgclass
|
92
|
+
RestoreConfig::GroupKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.GroupKind").msgclass
|
93
|
+
RestoreConfig::ClusterResourceRestoreScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope").msgclass
|
94
|
+
RestoreConfig::SubstitutionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule").msgclass
|
95
|
+
RestoreConfig::VolumeDataRestorePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy").enummodule
|
96
|
+
RestoreConfig::ClusterResourceConflictPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy").enummodule
|
97
|
+
RestoreConfig::NamespacedResourceRestoreMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode").enummodule
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/gkebackup/v1/restore_plan.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/gkebackup/v1/restore_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/gkebackup/v1/restore_plan.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.gkebackup.v1.RestorePlan" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :uid, :string, 2
|
16
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
17
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
optional :description, :string, 5
|
19
|
+
optional :backup_plan, :string, 6
|
20
|
+
optional :cluster, :string, 7
|
21
|
+
optional :restore_config, :message, 8, "google.cloud.gkebackup.v1.RestoreConfig"
|
22
|
+
map :labels, :string, :string, 9
|
23
|
+
optional :etag, :string, 10
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module GkeBackup
|
31
|
+
module V1
|
32
|
+
RestorePlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestorePlan").msgclass
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/gkebackup/v1/volume.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/gkebackup/v1/common_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/gkebackup/v1/volume.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.gkebackup.v1.VolumeBackup" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :uid, :string, 2
|
16
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
17
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
optional :source_pvc, :message, 5, "google.cloud.gkebackup.v1.NamespacedName"
|
19
|
+
optional :volume_backup_handle, :string, 6
|
20
|
+
optional :format, :enum, 7, "google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat"
|
21
|
+
optional :storage_bytes, :int64, 8
|
22
|
+
optional :disk_size_bytes, :int64, 9
|
23
|
+
optional :complete_time, :message, 10, "google.protobuf.Timestamp"
|
24
|
+
optional :state, :enum, 11, "google.cloud.gkebackup.v1.VolumeBackup.State"
|
25
|
+
optional :state_message, :string, 12
|
26
|
+
optional :etag, :string, 13
|
27
|
+
end
|
28
|
+
add_enum "google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat" do
|
29
|
+
value :VOLUME_BACKUP_FORMAT_UNSPECIFIED, 0
|
30
|
+
value :GCE_PERSISTENT_DISK, 1
|
31
|
+
end
|
32
|
+
add_enum "google.cloud.gkebackup.v1.VolumeBackup.State" do
|
33
|
+
value :STATE_UNSPECIFIED, 0
|
34
|
+
value :CREATING, 1
|
35
|
+
value :SNAPSHOTTING, 2
|
36
|
+
value :UPLOADING, 3
|
37
|
+
value :SUCCEEDED, 4
|
38
|
+
value :FAILED, 5
|
39
|
+
value :DELETING, 6
|
40
|
+
end
|
41
|
+
add_message "google.cloud.gkebackup.v1.VolumeRestore" do
|
42
|
+
optional :name, :string, 1
|
43
|
+
optional :uid, :string, 2
|
44
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
45
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
46
|
+
optional :volume_backup, :string, 5
|
47
|
+
optional :target_pvc, :message, 6, "google.cloud.gkebackup.v1.NamespacedName"
|
48
|
+
optional :volume_handle, :string, 7
|
49
|
+
optional :volume_type, :enum, 8, "google.cloud.gkebackup.v1.VolumeRestore.VolumeType"
|
50
|
+
optional :complete_time, :message, 9, "google.protobuf.Timestamp"
|
51
|
+
optional :state, :enum, 10, "google.cloud.gkebackup.v1.VolumeRestore.State"
|
52
|
+
optional :state_message, :string, 11
|
53
|
+
optional :etag, :string, 12
|
54
|
+
end
|
55
|
+
add_enum "google.cloud.gkebackup.v1.VolumeRestore.VolumeType" do
|
56
|
+
value :VOLUME_TYPE_UNSPECIFIED, 0
|
57
|
+
value :GCE_PERSISTENT_DISK, 1
|
58
|
+
end
|
59
|
+
add_enum "google.cloud.gkebackup.v1.VolumeRestore.State" do
|
60
|
+
value :STATE_UNSPECIFIED, 0
|
61
|
+
value :CREATING, 1
|
62
|
+
value :RESTORING, 2
|
63
|
+
value :SUCCEEDED, 3
|
64
|
+
value :FAILED, 4
|
65
|
+
value :DELETING, 5
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
module Google
|
71
|
+
module Cloud
|
72
|
+
module GkeBackup
|
73
|
+
module V1
|
74
|
+
VolumeBackup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeBackup").msgclass
|
75
|
+
VolumeBackup::VolumeBackupFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat").enummodule
|
76
|
+
VolumeBackup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeBackup.State").enummodule
|
77
|
+
VolumeRestore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeRestore").msgclass
|
78
|
+
VolumeRestore::VolumeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeRestore.VolumeType").enummodule
|
79
|
+
VolumeRestore::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeRestore.State").enummodule
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/gke_backup/v1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|