google-cloud-gke_backup-v1 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -156,6 +156,11 @@ module Google
156
156
  initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
157
157
  }
158
158
 
159
+ default_config.rpcs.get_backup_index_download_url.timeout = 60.0
160
+ default_config.rpcs.get_backup_index_download_url.retry_policy = {
161
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
162
+ }
163
+
159
164
  default_config
160
165
  end
161
166
  yield @configure if block_given?
@@ -404,23 +409,23 @@ module Google
404
409
  # Required. The location that contains the BackupPlans to list.
405
410
  # Format: `projects/*/locations/*`
406
411
  # @param page_size [::Integer]
407
- # The target number of results to return in a single response.
412
+ # Optional. The target number of results to return in a single response.
408
413
  # If not specified, a default value will be chosen by the service.
409
- # Note that the response may inclue a partial list and a caller should
414
+ # Note that the response may include a partial list and a caller should
410
415
  # only rely on the response's
411
416
  # {::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse#next_page_token next_page_token}
412
417
  # to determine if there are more instances left to be queried.
413
418
  # @param page_token [::String]
414
- # The value of
419
+ # Optional. The value of
415
420
  # {::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse#next_page_token next_page_token}
416
421
  # received from a previous `ListBackupPlans` call.
417
422
  # Provide this to retrieve the subsequent page in a multi-page list of
418
423
  # results. When paginating, all other parameters provided to
419
424
  # `ListBackupPlans` must match the call that provided the page token.
420
425
  # @param filter [::String]
421
- # Field match expression used to filter the results.
426
+ # Optional. Field match expression used to filter the results.
422
427
  # @param order_by [::String]
423
- # Field by which to sort the results.
428
+ # Optional. Field by which to sort the results.
424
429
  # @yield [result, operation] Access the result along with the TransportOperation object
425
430
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::ListBackupPlansResponse]
426
431
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -584,7 +589,7 @@ module Google
584
589
  # Required. A new version of the BackupPlan resource that contains updated
585
590
  # fields. This may be sparsely populated if an `update_mask` is provided.
586
591
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
587
- # This is used to specify the fields to be overwritten in the
592
+ # Optional. This is used to specify the fields to be overwritten in the
588
593
  # BackupPlan targeted for update. The values for each of these
589
594
  # updated fields will be taken from the `backup_plan` provided
590
595
  # with this request. Field names are relative to the root of the resource
@@ -681,7 +686,7 @@ module Google
681
686
  # Required. Fully qualified BackupPlan name.
682
687
  # Format: `projects/*/locations/*/backupPlans/*`
683
688
  # @param etag [::String]
684
- # If provided, this value must match the current value of the
689
+ # Optional. If provided, this value must match the current value of the
685
690
  # target BackupPlan's {::Google::Cloud::GkeBackup::V1::BackupPlan#etag etag} field
686
691
  # or the request is rejected.
687
692
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -772,9 +777,9 @@ module Google
772
777
  # Required. The BackupPlan within which to create the Backup.
773
778
  # Format: `projects/*/locations/*/backupPlans/*`
774
779
  # @param backup [::Google::Cloud::GkeBackup::V1::Backup, ::Hash]
775
- # The Backup resource to create.
780
+ # Optional. The Backup resource to create.
776
781
  # @param backup_id [::String]
777
- # The client-provided short name for the Backup resource.
782
+ # Optional. The client-provided short name for the Backup resource.
778
783
  # This name must:
779
784
  #
780
785
  # - be between 1 and 63 characters long (inclusive)
@@ -870,23 +875,23 @@ module Google
870
875
  # Required. The BackupPlan that contains the Backups to list.
871
876
  # Format: `projects/*/locations/*/backupPlans/*`
872
877
  # @param page_size [::Integer]
873
- # The target number of results to return in a single response.
878
+ # Optional. The target number of results to return in a single response.
874
879
  # If not specified, a default value will be chosen by the service.
875
- # Note that the response may inclue a partial list and a caller should
880
+ # Note that the response may include a partial list and a caller should
876
881
  # only rely on the response's
877
882
  # {::Google::Cloud::GkeBackup::V1::ListBackupsResponse#next_page_token next_page_token}
878
883
  # to determine if there are more instances left to be queried.
879
884
  # @param page_token [::String]
880
- # The value of
885
+ # Optional. The value of
881
886
  # {::Google::Cloud::GkeBackup::V1::ListBackupsResponse#next_page_token next_page_token}
882
887
  # received from a previous `ListBackups` call.
883
888
  # Provide this to retrieve the subsequent page in a multi-page list of
884
889
  # results. When paginating, all other parameters provided to
885
890
  # `ListBackups` must match the call that provided the page token.
886
891
  # @param filter [::String]
887
- # Field match expression used to filter the results.
892
+ # Optional. Field match expression used to filter the results.
888
893
  # @param order_by [::String]
889
- # Field by which to sort the results.
894
+ # Optional. Field by which to sort the results.
890
895
  # @yield [result, operation] Access the result along with the TransportOperation object
891
896
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::Backup>]
892
897
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1051,7 +1056,7 @@ module Google
1051
1056
  # Required. A new version of the Backup resource that contains updated
1052
1057
  # fields. This may be sparsely populated if an `update_mask` is provided.
1053
1058
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1054
- # This is used to specify the fields to be overwritten in the
1059
+ # Optional. This is used to specify the fields to be overwritten in the
1055
1060
  # Backup targeted for update. The values for each of these
1056
1061
  # updated fields will be taken from the `backup_plan` provided
1057
1062
  # with this request. Field names are relative to the root of the resource.
@@ -1147,12 +1152,12 @@ module Google
1147
1152
  # Required. Name of the Backup resource.
1148
1153
  # Format: `projects/*/locations/*/backupPlans/*/backups/*`
1149
1154
  # @param etag [::String]
1150
- # If provided, this value must match the current value of the
1155
+ # Optional. If provided, this value must match the current value of the
1151
1156
  # target Backup's {::Google::Cloud::GkeBackup::V1::Backup#etag etag} field or the
1152
1157
  # request is rejected.
1153
1158
  # @param force [::Boolean]
1154
- # If set to true, any VolumeBackups below this Backup will also be deleted.
1155
- # Otherwise, the request will only succeed if the Backup has no
1159
+ # Optional. If set to true, any VolumeBackups below this Backup will also be
1160
+ # deleted. Otherwise, the request will only succeed if the Backup has no
1156
1161
  # VolumeBackups.
1157
1162
  # @yield [result, operation] Access the result along with the TransportOperation object
1158
1163
  # @yieldparam result [::Gapic::Operation]
@@ -1242,23 +1247,23 @@ module Google
1242
1247
  # Required. The Backup that contains the VolumeBackups to list.
1243
1248
  # Format: `projects/*/locations/*/backupPlans/*/backups/*`
1244
1249
  # @param page_size [::Integer]
1245
- # The target number of results to return in a single response.
1250
+ # Optional. The target number of results to return in a single response.
1246
1251
  # If not specified, a default value will be chosen by the service.
1247
- # Note that the response may inclue a partial list and a caller should
1252
+ # Note that the response may include a partial list and a caller should
1248
1253
  # only rely on the response's
1249
1254
  # {::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse#next_page_token next_page_token}
1250
1255
  # to determine if there are more instances left to be queried.
1251
1256
  # @param page_token [::String]
1252
- # The value of
1257
+ # Optional. The value of
1253
1258
  # {::Google::Cloud::GkeBackup::V1::ListVolumeBackupsResponse#next_page_token next_page_token}
1254
1259
  # received from a previous `ListVolumeBackups` call.
1255
1260
  # Provide this to retrieve the subsequent page in a multi-page list of
1256
1261
  # results. When paginating, all other parameters provided to
1257
1262
  # `ListVolumeBackups` must match the call that provided the page token.
1258
1263
  # @param filter [::String]
1259
- # Field match expression used to filter the results.
1264
+ # Optional. Field match expression used to filter the results.
1260
1265
  # @param order_by [::String]
1261
- # Field by which to sort the results.
1266
+ # Optional. Field by which to sort the results.
1262
1267
  # @yield [result, operation] Access the result along with the TransportOperation object
1263
1268
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::VolumeBackup>]
1264
1269
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1521,23 +1526,23 @@ module Google
1521
1526
  # Required. The location that contains the RestorePlans to list.
1522
1527
  # Format: `projects/*/locations/*`
1523
1528
  # @param page_size [::Integer]
1524
- # The target number of results to return in a single response.
1529
+ # Optional. The target number of results to return in a single response.
1525
1530
  # If not specified, a default value will be chosen by the service.
1526
- # Note that the response may inclue a partial list and a caller should
1531
+ # Note that the response may include a partial list and a caller should
1527
1532
  # only rely on the response's
1528
1533
  # {::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse#next_page_token next_page_token}
1529
1534
  # to determine if there are more instances left to be queried.
1530
1535
  # @param page_token [::String]
1531
- # The value of
1536
+ # Optional. The value of
1532
1537
  # {::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse#next_page_token next_page_token}
1533
1538
  # received from a previous `ListRestorePlans` call.
1534
1539
  # Provide this to retrieve the subsequent page in a multi-page list of
1535
1540
  # results. When paginating, all other parameters provided to
1536
1541
  # `ListRestorePlans` must match the call that provided the page token.
1537
1542
  # @param filter [::String]
1538
- # Field match expression used to filter the results.
1543
+ # Optional. Field match expression used to filter the results.
1539
1544
  # @param order_by [::String]
1540
- # Field by which to sort the results.
1545
+ # Optional. Field by which to sort the results.
1541
1546
  # @yield [result, operation] Access the result along with the TransportOperation object
1542
1547
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::ListRestorePlansResponse]
1543
1548
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1701,7 +1706,7 @@ module Google
1701
1706
  # Required. A new version of the RestorePlan resource that contains updated
1702
1707
  # fields. This may be sparsely populated if an `update_mask` is provided.
1703
1708
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1704
- # This is used to specify the fields to be overwritten in the
1709
+ # Optional. This is used to specify the fields to be overwritten in the
1705
1710
  # RestorePlan targeted for update. The values for each of these
1706
1711
  # updated fields will be taken from the `restore_plan` provided
1707
1712
  # with this request. Field names are relative to the root of the resource.
@@ -1797,12 +1802,12 @@ module Google
1797
1802
  # Required. Fully qualified RestorePlan name.
1798
1803
  # Format: `projects/*/locations/*/restorePlans/*`
1799
1804
  # @param etag [::String]
1800
- # If provided, this value must match the current value of the
1805
+ # Optional. If provided, this value must match the current value of the
1801
1806
  # target RestorePlan's {::Google::Cloud::GkeBackup::V1::RestorePlan#etag etag}
1802
1807
  # field or the request is rejected.
1803
1808
  # @param force [::Boolean]
1804
- # If set to true, any Restores below this RestorePlan will also be deleted.
1805
- # Otherwise, the request will only succeed if the RestorePlan has no
1809
+ # Optional. If set to true, any Restores below this RestorePlan will also be
1810
+ # deleted. Otherwise, the request will only succeed if the RestorePlan has no
1806
1811
  # Restores.
1807
1812
  # @yield [result, operation] Access the result along with the TransportOperation object
1808
1813
  # @yieldparam result [::Gapic::Operation]
@@ -1990,23 +1995,23 @@ module Google
1990
1995
  # Required. The RestorePlan that contains the Restores to list.
1991
1996
  # Format: `projects/*/locations/*/restorePlans/*`
1992
1997
  # @param page_size [::Integer]
1993
- # The target number of results to return in a single response.
1998
+ # Optional. The target number of results to return in a single response.
1994
1999
  # If not specified, a default value will be chosen by the service.
1995
- # Note that the response may inclue a partial list and a caller should
2000
+ # Note that the response may include a partial list and a caller should
1996
2001
  # only rely on the response's
1997
2002
  # {::Google::Cloud::GkeBackup::V1::ListRestoresResponse#next_page_token next_page_token}
1998
2003
  # to determine if there are more instances left to be queried.
1999
2004
  # @param page_token [::String]
2000
- # The value of
2005
+ # Optional. The value of
2001
2006
  # {::Google::Cloud::GkeBackup::V1::ListRestoresResponse#next_page_token next_page_token}
2002
2007
  # received from a previous `ListRestores` call.
2003
2008
  # Provide this to retrieve the subsequent page in a multi-page list of
2004
2009
  # results. When paginating, all other parameters provided to `ListRestores`
2005
2010
  # must match the call that provided the page token.
2006
2011
  # @param filter [::String]
2007
- # Field match expression used to filter the results.
2012
+ # Optional. Field match expression used to filter the results.
2008
2013
  # @param order_by [::String]
2009
- # Field by which to sort the results.
2014
+ # Optional. Field by which to sort the results.
2010
2015
  # @yield [result, operation] Access the result along with the TransportOperation object
2011
2016
  # @yieldparam result [::Google::Cloud::GkeBackup::V1::ListRestoresResponse]
2012
2017
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2170,7 +2175,7 @@ module Google
2170
2175
  # Required. A new version of the Restore resource that contains updated
2171
2176
  # fields. This may be sparsely populated if an `update_mask` is provided.
2172
2177
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2173
- # This is used to specify the fields to be overwritten in the
2178
+ # Optional. This is used to specify the fields to be overwritten in the
2174
2179
  # Restore targeted for update. The values for each of these
2175
2180
  # updated fields will be taken from the `restore` provided
2176
2181
  # with this request. Field names are relative to the root of the resource.
@@ -2266,12 +2271,12 @@ module Google
2266
2271
  # Required. Full name of the Restore
2267
2272
  # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2268
2273
  # @param etag [::String]
2269
- # If provided, this value must match the current value of the
2274
+ # Optional. If provided, this value must match the current value of the
2270
2275
  # target Restore's {::Google::Cloud::GkeBackup::V1::Restore#etag etag} field or
2271
2276
  # the request is rejected.
2272
2277
  # @param force [::Boolean]
2273
- # If set to true, any VolumeRestores below this restore will also be deleted.
2274
- # Otherwise, the request will only succeed if the restore has no
2278
+ # Optional. If set to true, any VolumeRestores below this restore will also
2279
+ # be deleted. Otherwise, the request will only succeed if the restore has no
2275
2280
  # VolumeRestores.
2276
2281
  # @yield [result, operation] Access the result along with the TransportOperation object
2277
2282
  # @yieldparam result [::Gapic::Operation]
@@ -2361,23 +2366,23 @@ module Google
2361
2366
  # Required. The Restore that contains the VolumeRestores to list.
2362
2367
  # Format: `projects/*/locations/*/restorePlans/*/restores/*`
2363
2368
  # @param page_size [::Integer]
2364
- # The target number of results to return in a single response.
2369
+ # Optional. The target number of results to return in a single response.
2365
2370
  # If not specified, a default value will be chosen by the service.
2366
- # Note that the response may inclue a partial list and a caller should
2371
+ # Note that the response may include a partial list and a caller should
2367
2372
  # only rely on the response's
2368
2373
  # {::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse#next_page_token next_page_token}
2369
2374
  # to determine if there are more instances left to be queried.
2370
2375
  # @param page_token [::String]
2371
- # The value of
2376
+ # Optional. The value of
2372
2377
  # {::Google::Cloud::GkeBackup::V1::ListVolumeRestoresResponse#next_page_token next_page_token}
2373
2378
  # received from a previous `ListVolumeRestores` call.
2374
2379
  # Provide this to retrieve the subsequent page in a multi-page list of
2375
2380
  # results. When paginating, all other parameters provided to
2376
2381
  # `ListVolumeRestores` must match the call that provided the page token.
2377
2382
  # @param filter [::String]
2378
- # Field match expression used to filter the results.
2383
+ # Optional. Field match expression used to filter the results.
2379
2384
  # @param order_by [::String]
2380
- # Field by which to sort the results.
2385
+ # Optional. Field by which to sort the results.
2381
2386
  # @yield [result, operation] Access the result along with the TransportOperation object
2382
2387
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GkeBackup::V1::VolumeRestore>]
2383
2388
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2520,6 +2525,86 @@ module Google
2520
2525
  raise ::Google::Cloud::Error.from_error(e)
2521
2526
  end
2522
2527
 
2528
+ ##
2529
+ # Retrieve the link to the backupIndex.
2530
+ #
2531
+ # @overload get_backup_index_download_url(request, options = nil)
2532
+ # Pass arguments to `get_backup_index_download_url` via a request object, either of type
2533
+ # {::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest} or an equivalent Hash.
2534
+ #
2535
+ # @param request [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest, ::Hash]
2536
+ # A request object representing the call parameters. Required. To specify no
2537
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2538
+ # @param options [::Gapic::CallOptions, ::Hash]
2539
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2540
+ #
2541
+ # @overload get_backup_index_download_url(backup: nil)
2542
+ # Pass arguments to `get_backup_index_download_url` via keyword arguments. Note that at
2543
+ # least one keyword argument is required. To specify no parameters, or to keep all
2544
+ # the default parameter values, pass an empty Hash as a request object (see above).
2545
+ #
2546
+ # @param backup [::String]
2547
+ # Required. Full name of Backup resource.
2548
+ # Format:
2549
+ # projects/\\{project}/locations/\\{location}/backupPlans/\\{backup_plan}/backups/\\{backup}
2550
+ # @yield [result, operation] Access the result along with the TransportOperation object
2551
+ # @yieldparam result [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse]
2552
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2553
+ #
2554
+ # @return [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse]
2555
+ #
2556
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2557
+ #
2558
+ # @example Basic example
2559
+ # require "google/cloud/gke_backup/v1"
2560
+ #
2561
+ # # Create a client object. The client can be reused for multiple calls.
2562
+ # client = Google::Cloud::GkeBackup::V1::BackupForGKE::Rest::Client.new
2563
+ #
2564
+ # # Create a request. To set request fields, pass in keyword arguments.
2565
+ # request = Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest.new
2566
+ #
2567
+ # # Call the get_backup_index_download_url method.
2568
+ # result = client.get_backup_index_download_url request
2569
+ #
2570
+ # # The returned object is of type Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse.
2571
+ # p result
2572
+ #
2573
+ def get_backup_index_download_url request, options = nil
2574
+ raise ::ArgumentError, "request must be provided" if request.nil?
2575
+
2576
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest
2577
+
2578
+ # Converts hash and nil to an options object
2579
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2580
+
2581
+ # Customize the options with defaults
2582
+ call_metadata = @config.rpcs.get_backup_index_download_url.metadata.to_h
2583
+
2584
+ # Set x-goog-api-client and x-goog-user-project headers
2585
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2586
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2587
+ gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
2588
+ transports_version_send: [:rest]
2589
+
2590
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2591
+
2592
+ options.apply_defaults timeout: @config.rpcs.get_backup_index_download_url.timeout,
2593
+ metadata: call_metadata,
2594
+ retry_policy: @config.rpcs.get_backup_index_download_url.retry_policy
2595
+
2596
+ options.apply_defaults timeout: @config.timeout,
2597
+ metadata: @config.metadata,
2598
+ retry_policy: @config.retry_policy
2599
+
2600
+ @backup_for_gke_stub.get_backup_index_download_url request, options do |result, operation|
2601
+ yield result, operation if block_given?
2602
+ return result
2603
+ end
2604
+ rescue ::Gapic::Rest::Error => e
2605
+ raise ::Google::Cloud::Error.from_error(e)
2606
+ end
2607
+
2523
2608
  ##
2524
2609
  # Configuration class for the BackupForGKE REST API.
2525
2610
  #
@@ -2780,6 +2865,11 @@ module Google
2780
2865
  # @return [::Gapic::Config::Method]
2781
2866
  #
2782
2867
  attr_reader :get_volume_restore
2868
+ ##
2869
+ # RPC-specific configuration for `get_backup_index_download_url`
2870
+ # @return [::Gapic::Config::Method]
2871
+ #
2872
+ attr_reader :get_backup_index_download_url
2783
2873
 
2784
2874
  # @private
2785
2875
  def initialize parent_rpcs = nil
@@ -2831,6 +2921,8 @@ module Google
2831
2921
  @list_volume_restores = ::Gapic::Config::Method.new list_volume_restores_config
2832
2922
  get_volume_restore_config = parent_rpcs.get_volume_restore if parent_rpcs.respond_to? :get_volume_restore
2833
2923
  @get_volume_restore = ::Gapic::Config::Method.new get_volume_restore_config
2924
+ get_backup_index_download_url_config = parent_rpcs.get_backup_index_download_url if parent_rpcs.respond_to? :get_backup_index_download_url
2925
+ @get_backup_index_download_url = ::Gapic::Config::Method.new get_backup_index_download_url_config
2834
2926
 
2835
2927
  yield self if block_given?
2836
2928
  end
@@ -857,9 +857,9 @@ module Google
857
857
  transcoder = Gapic::Rest::GrpcTranscoder.new
858
858
  .with_bindings(
859
859
  uri_method: :delete,
860
- uri_template: "/v1/{name}/operations",
860
+ uri_template: "/v1/{name}",
861
861
  matches: [
862
- ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
862
+ ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
863
863
  ]
864
864
  )
865
865
  transcoder.transcode request_pb
@@ -973,6 +973,44 @@ module Google
973
973
  result
974
974
  end
975
975
 
976
+ ##
977
+ # Baseline implementation for the get_backup_index_download_url REST call
978
+ #
979
+ # @param request_pb [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest]
980
+ # A request object representing the call parameters. Required.
981
+ # @param options [::Gapic::CallOptions]
982
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
983
+ #
984
+ # @yield [result, operation] Access the result along with the TransportOperation object
985
+ # @yieldparam result [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse]
986
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
987
+ #
988
+ # @return [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse]
989
+ # A result object deserialized from the server's reply
990
+ def get_backup_index_download_url request_pb, options = nil
991
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
992
+
993
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_index_download_url_request request_pb
994
+ query_string_params = if query_string_params.any?
995
+ query_string_params.to_h { |p| p.split "=", 2 }
996
+ else
997
+ {}
998
+ end
999
+
1000
+ response = @client_stub.make_http_request(
1001
+ verb,
1002
+ uri: uri,
1003
+ body: body || "",
1004
+ params: query_string_params,
1005
+ options: options
1006
+ )
1007
+ operation = ::Gapic::Rest::TransportOperation.new response
1008
+ result = ::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlResponse.decode_json response.body, ignore_unknown_fields: true
1009
+
1010
+ yield result, operation if block_given?
1011
+ result
1012
+ end
1013
+
976
1014
  ##
977
1015
  # @private
978
1016
  #
@@ -1484,6 +1522,27 @@ module Google
1484
1522
  )
1485
1523
  transcoder.transcode request_pb
1486
1524
  end
1525
+
1526
+ ##
1527
+ # @private
1528
+ #
1529
+ # GRPC transcoding helper method for the get_backup_index_download_url REST call
1530
+ #
1531
+ # @param request_pb [::Google::Cloud::GkeBackup::V1::GetBackupIndexDownloadUrlRequest]
1532
+ # A request object representing the call parameters. Required.
1533
+ # @return [Array(String, [String, nil], Hash{String => String})]
1534
+ # Uri, Body, Query string parameters
1535
+ def self.transcode_get_backup_index_download_url_request request_pb
1536
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1537
+ .with_bindings(
1538
+ uri_method: :get,
1539
+ uri_template: "/v1/{backup}:getBackupIndexDownloadUrl",
1540
+ matches: [
1541
+ ["backup", %r{^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/backups/[^/]+/?$}, false]
1542
+ ]
1543
+ )
1544
+ transcoder.transcode request_pb
1545
+ end
1487
1546
  end
1488
1547
  end
1489
1548
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GkeBackup
23
23
  module V1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -10,7 +10,7 @@ require 'google/cloud/gkebackup/v1/common_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
 
12
12
 
13
- descriptor_data = "\n&google/cloud/gkebackup/v1/backup.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbb\r\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06manual\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12=\n\x06labels\x18\x06 \x03(\x0b\x32-.google.cloud.gkebackup.v1.Backup.LabelsEntry\x12\x18\n\x10\x64\x65lete_lock_days\x18\x07 \x01(\x05\x12@\n\x17\x64\x65lete_lock_expire_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x0bretain_days\x18\t \x01(\x05\x12;\n\x12retain_expire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x0e\x65ncryption_key\x18\x0b \x01(\x0b\x32(.google.cloud.gkebackup.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x1d\n\x0e\x61ll_namespaces\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03H\x00\x12I\n\x13selected_namespaces\x18\r \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesB\x03\xe0\x41\x03H\x00\x12P\n\x15selected_applications\x18\x0e \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesB\x03\xe0\x41\x03H\x00\x12!\n\x14\x63ontains_volume_data\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12\x1d\n\x10\x63ontains_secrets\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12P\n\x10\x63luster_metadata\x18\x11 \x01(\x0b\x32\x31.google.cloud.gkebackup.v1.Backup.ClusterMetadataB\x03\xe0\x41\x03\x12;\n\x05state\x18\x12 \x01(\x0e\x32\'.google.cloud.gkebackup.v1.Backup.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0eresource_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0cvolume_count\x18\x16 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x19 \x01(\t\x12\x16\n\tpod_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x63onfig_backup_size_bytes\x18\x1b \x01(\x03\x42\x03\xe0\x41\x03\x1a\x9d\x02\n\x0f\x43lusterMetadata\x12\x0f\n\x07\x63luster\x18\x01 \x01(\t\x12\x13\n\x0bk8s_version\x18\x02 \x01(\t\x12\x65\n\x13\x62\x61\x63kup_crd_versions\x18\x03 \x03(\x0b\x32H.google.cloud.gkebackup.v1.Backup.ClusterMetadata.BackupCrdVersionsEntry\x12\x15\n\x0bgke_version\x18\x04 \x01(\tH\x00\x12\x18\n\x0e\x61nthos_version\x18\x05 \x01(\tH\x00\x1a\x38\n\x16\x42\x61\x63kupCrdVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x12\n\x10platform_version\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:x\xea\x41u\n\x1fgkebackup.googleapis.com/Backup\x12Rprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}B\x0e\n\x0c\x62\x61\x63kup_scopeB\xc2\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0b\x42\x61\x63kupProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
13
+ descriptor_data = "\n&google/cloud/gkebackup/v1/backup.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe8\r\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06manual\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x06 \x03(\x0b\x32-.google.cloud.gkebackup.v1.Backup.LabelsEntryB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65lete_lock_days\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12@\n\x17\x64\x65lete_lock_expire_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0bretain_days\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12;\n\x12retain_expire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x0e\x65ncryption_key\x18\x0b \x01(\x0b\x32(.google.cloud.gkebackup.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x1d\n\x0e\x61ll_namespaces\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03H\x00\x12I\n\x13selected_namespaces\x18\r \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesB\x03\xe0\x41\x03H\x00\x12P\n\x15selected_applications\x18\x0e \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesB\x03\xe0\x41\x03H\x00\x12!\n\x14\x63ontains_volume_data\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12\x1d\n\x10\x63ontains_secrets\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12P\n\x10\x63luster_metadata\x18\x11 \x01(\x0b\x32\x31.google.cloud.gkebackup.v1.Backup.ClusterMetadataB\x03\xe0\x41\x03\x12;\n\x05state\x18\x12 \x01(\x0e\x32\'.google.cloud.gkebackup.v1.Backup.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0eresource_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0cvolume_count\x18\x16 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x19 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpod_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x63onfig_backup_size_bytes\x18\x1b \x01(\x03\x42\x03\xe0\x41\x03\x1a\xb6\x02\n\x0f\x43lusterMetadata\x12\x14\n\x07\x63luster\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bk8s_version\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12j\n\x13\x62\x61\x63kup_crd_versions\x18\x03 \x03(\x0b\x32H.google.cloud.gkebackup.v1.Backup.ClusterMetadata.BackupCrdVersionsEntryB\x03\xe0\x41\x03\x12\x1a\n\x0bgke_version\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x1d\n\x0e\x61nthos_version\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x1a\x38\n\x16\x42\x61\x63kupCrdVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x12\n\x10platform_version\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:x\xea\x41u\n\x1fgkebackup.googleapis.com/Backup\x12Rprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}B\x0e\n\x0c\x62\x61\x63kup_scopeB\xc2\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0b\x42\x61\x63kupProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
14
14
 
15
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
16
 
@@ -7,10 +7,14 @@ require 'google/protobuf'
7
7
  require 'google/api/field_behavior_pb'
8
8
  require 'google/api/resource_pb'
9
9
  require 'google/cloud/gkebackup/v1/common_pb'
10
+ require 'google/protobuf/duration_pb'
10
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/type/date_pb'
13
+ require 'google/type/dayofweek_pb'
14
+ require 'google/type/timeofday_pb'
11
15
 
12
16
 
13
- descriptor_data = "\n+google/cloud/gkebackup/v1/backup_plan.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x0b\n\nBackupPlan\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12<\n\x07\x63luster\x18\x06 \x01(\tB+\xe0\x41\x05\xe0\x41\x02\xfa\x41\"\n container.googleapis.com/Cluster\x12O\n\x10retention_policy\x18\x07 \x01(\x0b\x32\x35.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy\x12\x41\n\x06labels\x18\x08 \x03(\x0b\x32\x31.google.cloud.gkebackup.v1.BackupPlan.LabelsEntry\x12G\n\x0f\x62\x61\x63kup_schedule\x18\t \x01(\x0b\x32..google.cloud.gkebackup.v1.BackupPlan.Schedule\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65\x61\x63tivated\x18\x0b \x01(\x08\x12I\n\rbackup_config\x18\x0c \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.BackupPlan.BackupConfig\x12 \n\x13protected_pod_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12?\n\x05state\x18\x0e \x01(\x0e\x32+.google.cloud.gkebackup.v1.BackupPlan.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x0f \x01(\tB\x03\xe0\x41\x03\x1a^\n\x0fRetentionPolicy\x12\x1f\n\x17\x62\x61\x63kup_delete_lock_days\x18\x01 \x01(\x05\x12\x1a\n\x12\x62\x61\x63kup_retain_days\x18\x02 \x01(\x05\x12\x0e\n\x06locked\x18\x03 \x01(\x08\x1a\x31\n\x08Schedule\x12\x15\n\rcron_schedule\x18\x01 \x01(\t\x12\x0e\n\x06paused\x18\x02 \x01(\x08\x1a\xc3\x02\n\x0c\x42\x61\x63kupConfig\x12\x18\n\x0e\x61ll_namespaces\x18\x01 \x01(\x08H\x00\x12\x44\n\x13selected_namespaces\x18\x02 \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12K\n\x15selected_applications\x18\x03 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x12\x1b\n\x13include_volume_data\x18\x04 \x01(\x08\x12\x17\n\x0finclude_secrets\x18\x05 \x01(\x08\x12@\n\x0e\x65ncryption_key\x18\x06 \x01(\x0b\x32(.google.cloud.gkebackup.v1.EncryptionKeyB\x0e\n\x0c\x62\x61\x63kup_scope\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43LUSTER_PENDING\x10\x01\x12\x10\n\x0cPROVISIONING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0f\n\x0b\x44\x45\x41\x43TIVATED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06:k\xea\x41h\n#gkebackup.googleapis.com/BackupPlan\x12\x41projects/{project}/locations/{location}/backupPlans/{backup_plan}B\xc6\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0f\x42\x61\x63kupPlanProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
17
+ descriptor_data = "\n+google/cloud/gkebackup/v1/backup_plan.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xb6\r\n\nBackupPlan\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12<\n\x07\x63luster\x18\x06 \x01(\tB+\xe0\x41\x05\xe0\x41\x02\xfa\x41\"\n container.googleapis.com/Cluster\x12T\n\x10retention_policy\x18\x07 \x01(\x0b\x32\x35.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyB\x03\xe0\x41\x01\x12\x46\n\x06labels\x18\x08 \x03(\x0b\x32\x31.google.cloud.gkebackup.v1.BackupPlan.LabelsEntryB\x03\xe0\x41\x01\x12L\n\x0f\x62\x61\x63kup_schedule\x18\t \x01(\x0b\x32..google.cloud.gkebackup.v1.BackupPlan.ScheduleB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65\x61\x63tivated\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12N\n\rbackup_config\x18\x0c \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.BackupPlan.BackupConfigB\x03\xe0\x41\x01\x12 \n\x13protected_pod_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12?\n\x05state\x18\x0e \x01(\x0e\x32+.google.cloud.gkebackup.v1.BackupPlan.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0erpo_risk_level\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0frpo_risk_reason\x18\x11 \x01(\tB\x03\xe0\x41\x03\x1am\n\x0fRetentionPolicy\x12$\n\x17\x62\x61\x63kup_delete_lock_days\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x62\x61\x63kup_retain_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06locked\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbf\x01\n\x08Schedule\x12\x1a\n\rcron_schedule\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06paused\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12=\n\nrpo_config\x18\x03 \x01(\x0b\x32$.google.cloud.gkebackup.v1.RpoConfigB\x03\xe0\x41\x01\x12\x43\n\x1anext_scheduled_backup_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\xd2\x02\n\x0c\x42\x61\x63kupConfig\x12\x18\n\x0e\x61ll_namespaces\x18\x01 \x01(\x08H\x00\x12\x44\n\x13selected_namespaces\x18\x02 \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12K\n\x15selected_applications\x18\x03 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x12 \n\x13include_volume_data\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0finclude_secrets\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x45\n\x0e\x65ncryption_key\x18\x06 \x01(\x0b\x32(.google.cloud.gkebackup.v1.EncryptionKeyB\x03\xe0\x41\x01\x42\x0e\n\x0c\x62\x61\x63kup_scope\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43LUSTER_PENDING\x10\x01\x12\x10\n\x0cPROVISIONING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0f\n\x0b\x44\x45\x41\x43TIVATED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06:k\xea\x41h\n#gkebackup.googleapis.com/BackupPlan\x12\x41projects/{project}/locations/{location}/backupPlans/{backup_plan}\"x\n\tRpoConfig\x12\x1f\n\x12target_rpo_minutes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12J\n\x11\x65xclusion_windows\x18\x02 \x03(\x0b\x32*.google.cloud.gkebackup.v1.ExclusionWindowB\x03\xe0\x41\x01\"\xde\x02\n\x0f\x45xclusionWindow\x12/\n\nstart_time\x18\x01 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x02\x12\x30\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x33\n\x16single_occurrence_date\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x0f\n\x05\x64\x61ily\x18\x04 \x01(\x08H\x00\x12P\n\x0c\x64\x61ys_of_week\x18\x05 \x01(\x0b\x32\x38.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekListH\x00\x1a\x42\n\rDayOfWeekList\x12\x31\n\x0c\x64\x61ys_of_week\x18\x01 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x42\x0c\n\nrecurrenceB\xc6\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0f\x42\x61\x63kupPlanProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
14
18
 
15
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
16
20
 
@@ -27,6 +31,9 @@ rescue TypeError
27
31
  imports = [
28
32
  ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
33
  ["google.cloud.gkebackup.v1.Namespaces", "google/cloud/gkebackup/v1/common.proto"],
34
+ ["google.type.TimeOfDay", "google/type/timeofday.proto"],
35
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
36
+ ["google.type.Date", "google/type/date.proto"],
30
37
  ]
31
38
  imports.each do |type_name, expected_filename|
32
39
  import_file = pool.lookup(type_name).file_descriptor
@@ -47,6 +54,9 @@ module Google
47
54
  BackupPlan::Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.BackupPlan.Schedule").msgclass
48
55
  BackupPlan::BackupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.BackupPlan.BackupConfig").msgclass
49
56
  BackupPlan::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.BackupPlan.State").enummodule
57
+ RpoConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RpoConfig").msgclass
58
+ ExclusionWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ExclusionWindow").msgclass
59
+ ExclusionWindow::DayOfWeekList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList").msgclass
50
60
  end
51
61
  end
52
62
  end
@@ -4,10 +4,11 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
10
 
10
- descriptor_data = "\n&google/cloud/gkebackup/v1/common.proto\x12\x19google.cloud.gkebackup.v1\x1a\x19google/api/resource.proto\" \n\nNamespaces\x12\x12\n\nnamespaces\x18\x01 \x03(\t\"1\n\x0eNamespacedName\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"V\n\x0fNamespacedNames\x12\x43\n\x10namespaced_names\x18\x01 \x03(\x0b\x32).google.cloud.gkebackup.v1.NamespacedName\"W\n\rEncryptionKey\x12\x46\n\x16gcp_kms_encryption_key\x18\x01 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKeyB\xc2\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0b\x43ommonProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
11
+ descriptor_data = "\n&google/cloud/gkebackup/v1/common.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"%\n\nNamespaces\x12\x17\n\nnamespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\";\n\x0eNamespacedName\x12\x16\n\tnamespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"[\n\x0fNamespacedNames\x12H\n\x10namespaced_names\x18\x01 \x03(\x0b\x32).google.cloud.gkebackup.v1.NamespacedNameB\x03\xe0\x41\x01\"Z\n\rEncryptionKey\x12I\n\x16gcp_kms_encryption_key\x18\x01 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKeyB\xc2\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0b\x43ommonProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
11
12
 
12
13
  pool = Google::Protobuf::DescriptorPool.generated_pool
13
14