google-cloud-backupdr-v1 1.4.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/backupdr/v1/backupdr/client.rb +269 -1
- data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +44 -0
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +255 -1
- data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +122 -0
- data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +4 -0
- data/lib/google/cloud/backupdr/v1/backupvault_cloudsql_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +6 -1
- data/lib/google/cloud/backupdr/v1/datasourcereference_pb.rb +3 -1
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +141 -0
- data/proto_docs/google/cloud/backupdr/v1/backupvault_cloudsql.rb +6 -0
- data/proto_docs/google/cloud/backupdr/v1/datasourcereference.rb +63 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e53866445581b81902e950b00e54e846f984f02cdf9048cbf4dce70c60fec9c
|
|
4
|
+
data.tar.gz: 3ddd1212302422c6f19750371aedecba316423b756d59476e414b98abbbd0f36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f533dcc5190ffdb94940c3c9e1faee56e7df8259ba126b720af98e0a82cb91667f419af1fddff051494b74db8fa56f7a2aeab0a7cac89f1223a630dc810ab7ba
|
|
7
|
+
data.tar.gz: 95ee181fea8ff7756507676ef5afcfadfe3d478540faaeaef8da2dc1c5a2da4a8a49c5bb38c4056b797286130b72f5d1e146f192a38ee6e8de22875ed98ec7df
|
|
@@ -1799,6 +1799,126 @@ module Google
|
|
|
1799
1799
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1800
1800
|
end
|
|
1801
1801
|
|
|
1802
|
+
##
|
|
1803
|
+
# Fetch Backups for a given resource type.
|
|
1804
|
+
#
|
|
1805
|
+
# @overload fetch_backups_for_resource_type(request, options = nil)
|
|
1806
|
+
# Pass arguments to `fetch_backups_for_resource_type` via a request object, either of type
|
|
1807
|
+
# {::Google::Cloud::BackupDR::V1::FetchBackupsForResourceTypeRequest} or an equivalent Hash.
|
|
1808
|
+
#
|
|
1809
|
+
# @param request [::Google::Cloud::BackupDR::V1::FetchBackupsForResourceTypeRequest, ::Hash]
|
|
1810
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1811
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1812
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1813
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1814
|
+
#
|
|
1815
|
+
# @overload fetch_backups_for_resource_type(parent: nil, resource_type: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil)
|
|
1816
|
+
# Pass arguments to `fetch_backups_for_resource_type` via keyword arguments. Note that at
|
|
1817
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1818
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1819
|
+
#
|
|
1820
|
+
# @param parent [::String]
|
|
1821
|
+
# Required. Datasources are the parent resource for the backups.
|
|
1822
|
+
# Format:
|
|
1823
|
+
# projects/\\{project}/locations/\\{location}/backupVaults/\\{backupVaultId}/dataSources/\\{datasourceId}
|
|
1824
|
+
# @param resource_type [::String]
|
|
1825
|
+
# Required. The type of the GCP resource.
|
|
1826
|
+
# Ex: sqladmin.googleapis.com/Instance
|
|
1827
|
+
# @param page_size [::Integer]
|
|
1828
|
+
# Optional. The maximum number of Backups to return. The service may
|
|
1829
|
+
# return fewer than this value. If unspecified, at most 50
|
|
1830
|
+
# Backups will be returned. The maximum value is 100; values
|
|
1831
|
+
# above 100 will be coerced to 100.
|
|
1832
|
+
# @param page_token [::String]
|
|
1833
|
+
# Optional. A page token, received from a previous call of
|
|
1834
|
+
# `FetchBackupsForResourceType`.
|
|
1835
|
+
# Provide this to retrieve the subsequent page.
|
|
1836
|
+
#
|
|
1837
|
+
# When paginating, all other parameters provided to
|
|
1838
|
+
# `FetchBackupsForResourceType` must match
|
|
1839
|
+
# the call that provided the page token.
|
|
1840
|
+
# @param filter [::String]
|
|
1841
|
+
# Optional. A filter expression that filters the results fetched in the
|
|
1842
|
+
# response. The expression must specify the field name, a comparison
|
|
1843
|
+
# operator, and the value that you want to use for filtering. Supported
|
|
1844
|
+
# fields:
|
|
1845
|
+
# @param order_by [::String]
|
|
1846
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
1847
|
+
# order. Use "desc" after a field name for descending.
|
|
1848
|
+
# @param view [::Google::Cloud::BackupDR::V1::BackupView]
|
|
1849
|
+
# Optional. This parameter is used to specify the view of the backup.
|
|
1850
|
+
# If not specified, the default view is BASIC.
|
|
1851
|
+
#
|
|
1852
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1853
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1::Backup>]
|
|
1854
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1855
|
+
#
|
|
1856
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1::Backup>]
|
|
1857
|
+
#
|
|
1858
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1859
|
+
#
|
|
1860
|
+
# @example Basic example
|
|
1861
|
+
# require "google/cloud/backupdr/v1"
|
|
1862
|
+
#
|
|
1863
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1864
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Client.new
|
|
1865
|
+
#
|
|
1866
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1867
|
+
# request = Google::Cloud::BackupDR::V1::FetchBackupsForResourceTypeRequest.new
|
|
1868
|
+
#
|
|
1869
|
+
# # Call the fetch_backups_for_resource_type method.
|
|
1870
|
+
# result = client.fetch_backups_for_resource_type request
|
|
1871
|
+
#
|
|
1872
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1873
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1874
|
+
# result.each do |item|
|
|
1875
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::Backup.
|
|
1876
|
+
# p item
|
|
1877
|
+
# end
|
|
1878
|
+
#
|
|
1879
|
+
def fetch_backups_for_resource_type request, options = nil
|
|
1880
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1881
|
+
|
|
1882
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::FetchBackupsForResourceTypeRequest
|
|
1883
|
+
|
|
1884
|
+
# Converts hash and nil to an options object
|
|
1885
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1886
|
+
|
|
1887
|
+
# Customize the options with defaults
|
|
1888
|
+
metadata = @config.rpcs.fetch_backups_for_resource_type.metadata.to_h
|
|
1889
|
+
|
|
1890
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1891
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1892
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1893
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION
|
|
1894
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1895
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1896
|
+
|
|
1897
|
+
header_params = {}
|
|
1898
|
+
if request.parent
|
|
1899
|
+
header_params["parent"] = request.parent
|
|
1900
|
+
end
|
|
1901
|
+
|
|
1902
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1903
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1904
|
+
|
|
1905
|
+
options.apply_defaults timeout: @config.rpcs.fetch_backups_for_resource_type.timeout,
|
|
1906
|
+
metadata: metadata,
|
|
1907
|
+
retry_policy: @config.rpcs.fetch_backups_for_resource_type.retry_policy
|
|
1908
|
+
|
|
1909
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1910
|
+
metadata: @config.metadata,
|
|
1911
|
+
retry_policy: @config.retry_policy
|
|
1912
|
+
|
|
1913
|
+
@backup_dr_stub.call_rpc :fetch_backups_for_resource_type, request, options: options do |response, operation|
|
|
1914
|
+
response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :fetch_backups_for_resource_type, request, response, operation, options
|
|
1915
|
+
yield response, operation if block_given?
|
|
1916
|
+
throw :response, response
|
|
1917
|
+
end
|
|
1918
|
+
rescue ::GRPC::BadStatus => e
|
|
1919
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1920
|
+
end
|
|
1921
|
+
|
|
1802
1922
|
##
|
|
1803
1923
|
# Gets details of a Backup.
|
|
1804
1924
|
#
|
|
@@ -2123,7 +2243,7 @@ module Google
|
|
|
2123
2243
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2124
2244
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2125
2245
|
#
|
|
2126
|
-
# @overload restore_backup(name: nil, request_id: nil, compute_instance_target_environment: nil, disk_target_environment: nil, region_disk_target_environment: nil, compute_instance_restore_properties: nil, disk_restore_properties: nil)
|
|
2246
|
+
# @overload restore_backup(name: nil, request_id: nil, compute_instance_target_environment: nil, disk_target_environment: nil, region_disk_target_environment: nil, compute_instance_restore_properties: nil, disk_restore_properties: nil, clear_overrides_field_mask: nil)
|
|
2127
2247
|
# Pass arguments to `restore_backup` via keyword arguments. Note that at
|
|
2128
2248
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2129
2249
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -2165,6 +2285,19 @@ module Google
|
|
|
2165
2285
|
# Disk properties to be overridden during restore.
|
|
2166
2286
|
#
|
|
2167
2287
|
# Note: The following parameters are mutually exclusive: `disk_restore_properties`, `compute_instance_restore_properties`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
2288
|
+
# @param clear_overrides_field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
2289
|
+
# Optional. A field mask used to clear server-side default values
|
|
2290
|
+
# for fields within the `instance_properties` oneof.
|
|
2291
|
+
#
|
|
2292
|
+
# When a field in this mask is cleared, the server will not apply its
|
|
2293
|
+
# default logic (like inheriting a value from the source) for that field.
|
|
2294
|
+
#
|
|
2295
|
+
# The most common current use case is clearing default encryption keys.
|
|
2296
|
+
#
|
|
2297
|
+
# Examples of field mask paths:
|
|
2298
|
+
# - Compute Instance Disks:
|
|
2299
|
+
# `compute_instance_restore_properties.disks.*.disk_encryption_key`
|
|
2300
|
+
# - Single Disk: `disk_restore_properties.disk_encryption_key`
|
|
2168
2301
|
#
|
|
2169
2302
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
2170
2303
|
# @yieldparam response [::Gapic::Operation]
|
|
@@ -3830,6 +3963,127 @@ module Google
|
|
|
3830
3963
|
raise ::Google::Cloud::Error.from_error(e)
|
|
3831
3964
|
end
|
|
3832
3965
|
|
|
3966
|
+
##
|
|
3967
|
+
# Lists DataSourceReferences for a given project and location.
|
|
3968
|
+
#
|
|
3969
|
+
# @overload list_data_source_references(request, options = nil)
|
|
3970
|
+
# Pass arguments to `list_data_source_references` via a request object, either of type
|
|
3971
|
+
# {::Google::Cloud::BackupDR::V1::ListDataSourceReferencesRequest} or an equivalent Hash.
|
|
3972
|
+
#
|
|
3973
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListDataSourceReferencesRequest, ::Hash]
|
|
3974
|
+
# A request object representing the call parameters. Required. To specify no
|
|
3975
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3976
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3977
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
3978
|
+
#
|
|
3979
|
+
# @overload list_data_source_references(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
3980
|
+
# Pass arguments to `list_data_source_references` via keyword arguments. Note that at
|
|
3981
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3982
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3983
|
+
#
|
|
3984
|
+
# @param parent [::String]
|
|
3985
|
+
# Required. The parent resource name.
|
|
3986
|
+
# Format: projects/\\{project}/locations/\\{location}
|
|
3987
|
+
# @param page_size [::Integer]
|
|
3988
|
+
# Optional. The maximum number of DataSourceReferences to return. The service
|
|
3989
|
+
# may return fewer than this value. If unspecified, at most 50
|
|
3990
|
+
# DataSourceReferences will be returned. The maximum value is 100; values
|
|
3991
|
+
# above 100 will be coerced to 100.
|
|
3992
|
+
# @param page_token [::String]
|
|
3993
|
+
# Optional. A page token, received from a previous `ListDataSourceReferences`
|
|
3994
|
+
# call. Provide this to retrieve the subsequent page.
|
|
3995
|
+
#
|
|
3996
|
+
# When paginating, all other parameters provided to
|
|
3997
|
+
# `ListDataSourceReferences` must match the call that provided the page
|
|
3998
|
+
# token.
|
|
3999
|
+
# @param filter [::String]
|
|
4000
|
+
# Optional. A filter expression that filters the results listed in the
|
|
4001
|
+
# response. The expression must specify the field name, a comparison
|
|
4002
|
+
# operator, and the value that you want to use for filtering.
|
|
4003
|
+
#
|
|
4004
|
+
# The following field and operator combinations are supported:
|
|
4005
|
+
#
|
|
4006
|
+
# * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=`
|
|
4007
|
+
# * data_source_gcp_resource_info.type with `=`, `!=`
|
|
4008
|
+
# @param order_by [::String]
|
|
4009
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
4010
|
+
# order. Use "desc" after a field name for descending.
|
|
4011
|
+
#
|
|
4012
|
+
# Supported fields:
|
|
4013
|
+
#
|
|
4014
|
+
# * data_source
|
|
4015
|
+
# * data_source_gcp_resource_info.gcp_resourcename
|
|
4016
|
+
#
|
|
4017
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
4018
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1::DataSourceReference>]
|
|
4019
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
4020
|
+
#
|
|
4021
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1::DataSourceReference>]
|
|
4022
|
+
#
|
|
4023
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
4024
|
+
#
|
|
4025
|
+
# @example Basic example
|
|
4026
|
+
# require "google/cloud/backupdr/v1"
|
|
4027
|
+
#
|
|
4028
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4029
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Client.new
|
|
4030
|
+
#
|
|
4031
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4032
|
+
# request = Google::Cloud::BackupDR::V1::ListDataSourceReferencesRequest.new
|
|
4033
|
+
#
|
|
4034
|
+
# # Call the list_data_source_references method.
|
|
4035
|
+
# result = client.list_data_source_references request
|
|
4036
|
+
#
|
|
4037
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4038
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4039
|
+
# result.each do |item|
|
|
4040
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::DataSourceReference.
|
|
4041
|
+
# p item
|
|
4042
|
+
# end
|
|
4043
|
+
#
|
|
4044
|
+
def list_data_source_references request, options = nil
|
|
4045
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4046
|
+
|
|
4047
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListDataSourceReferencesRequest
|
|
4048
|
+
|
|
4049
|
+
# Converts hash and nil to an options object
|
|
4050
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4051
|
+
|
|
4052
|
+
# Customize the options with defaults
|
|
4053
|
+
metadata = @config.rpcs.list_data_source_references.metadata.to_h
|
|
4054
|
+
|
|
4055
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4056
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4057
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4058
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION
|
|
4059
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4060
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4061
|
+
|
|
4062
|
+
header_params = {}
|
|
4063
|
+
if request.parent
|
|
4064
|
+
header_params["parent"] = request.parent
|
|
4065
|
+
end
|
|
4066
|
+
|
|
4067
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
4068
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
4069
|
+
|
|
4070
|
+
options.apply_defaults timeout: @config.rpcs.list_data_source_references.timeout,
|
|
4071
|
+
metadata: metadata,
|
|
4072
|
+
retry_policy: @config.rpcs.list_data_source_references.retry_policy
|
|
4073
|
+
|
|
4074
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4075
|
+
metadata: @config.metadata,
|
|
4076
|
+
retry_policy: @config.retry_policy
|
|
4077
|
+
|
|
4078
|
+
@backup_dr_stub.call_rpc :list_data_source_references, request, options: options do |response, operation|
|
|
4079
|
+
response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_data_source_references, request, response, operation, options
|
|
4080
|
+
yield response, operation if block_given?
|
|
4081
|
+
throw :response, response
|
|
4082
|
+
end
|
|
4083
|
+
rescue ::GRPC::BadStatus => e
|
|
4084
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4085
|
+
end
|
|
4086
|
+
|
|
3833
4087
|
##
|
|
3834
4088
|
# Fetch DataSourceReferences for a given project, location and resource type.
|
|
3835
4089
|
#
|
|
@@ -4328,6 +4582,11 @@ module Google
|
|
|
4328
4582
|
#
|
|
4329
4583
|
attr_reader :list_backups
|
|
4330
4584
|
##
|
|
4585
|
+
# RPC-specific configuration for `fetch_backups_for_resource_type`
|
|
4586
|
+
# @return [::Gapic::Config::Method]
|
|
4587
|
+
#
|
|
4588
|
+
attr_reader :fetch_backups_for_resource_type
|
|
4589
|
+
##
|
|
4331
4590
|
# RPC-specific configuration for `get_backup`
|
|
4332
4591
|
# @return [::Gapic::Config::Method]
|
|
4333
4592
|
#
|
|
@@ -4423,6 +4682,11 @@ module Google
|
|
|
4423
4682
|
#
|
|
4424
4683
|
attr_reader :get_data_source_reference
|
|
4425
4684
|
##
|
|
4685
|
+
# RPC-specific configuration for `list_data_source_references`
|
|
4686
|
+
# @return [::Gapic::Config::Method]
|
|
4687
|
+
#
|
|
4688
|
+
attr_reader :list_data_source_references
|
|
4689
|
+
##
|
|
4426
4690
|
# RPC-specific configuration for `fetch_data_source_references_for_resource_type`
|
|
4427
4691
|
# @return [::Gapic::Config::Method]
|
|
4428
4692
|
#
|
|
@@ -4463,6 +4727,8 @@ module Google
|
|
|
4463
4727
|
@update_data_source = ::Gapic::Config::Method.new update_data_source_config
|
|
4464
4728
|
list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
|
|
4465
4729
|
@list_backups = ::Gapic::Config::Method.new list_backups_config
|
|
4730
|
+
fetch_backups_for_resource_type_config = parent_rpcs.fetch_backups_for_resource_type if parent_rpcs.respond_to? :fetch_backups_for_resource_type
|
|
4731
|
+
@fetch_backups_for_resource_type = ::Gapic::Config::Method.new fetch_backups_for_resource_type_config
|
|
4466
4732
|
get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
|
|
4467
4733
|
@get_backup = ::Gapic::Config::Method.new get_backup_config
|
|
4468
4734
|
update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
|
|
@@ -4501,6 +4767,8 @@ module Google
|
|
|
4501
4767
|
@trigger_backup = ::Gapic::Config::Method.new trigger_backup_config
|
|
4502
4768
|
get_data_source_reference_config = parent_rpcs.get_data_source_reference if parent_rpcs.respond_to? :get_data_source_reference
|
|
4503
4769
|
@get_data_source_reference = ::Gapic::Config::Method.new get_data_source_reference_config
|
|
4770
|
+
list_data_source_references_config = parent_rpcs.list_data_source_references if parent_rpcs.respond_to? :list_data_source_references
|
|
4771
|
+
@list_data_source_references = ::Gapic::Config::Method.new list_data_source_references_config
|
|
4504
4772
|
fetch_data_source_references_for_resource_type_config = parent_rpcs.fetch_data_source_references_for_resource_type if parent_rpcs.respond_to? :fetch_data_source_references_for_resource_type
|
|
4505
4773
|
@fetch_data_source_references_for_resource_type = ::Gapic::Config::Method.new fetch_data_source_references_for_resource_type_config
|
|
4506
4774
|
initialize_service_config = parent_rpcs.initialize_service if parent_rpcs.respond_to? :initialize_service
|
|
@@ -125,6 +125,50 @@ module Google
|
|
|
125
125
|
"projects/#{project}/locations/#{location}/backupVaults/#{backupvault}"
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
+
##
|
|
129
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
130
|
+
#
|
|
131
|
+
# The resource will be in the following format:
|
|
132
|
+
#
|
|
133
|
+
# `projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}`
|
|
134
|
+
#
|
|
135
|
+
# @param project [String]
|
|
136
|
+
# @param location [String]
|
|
137
|
+
# @param ring [String]
|
|
138
|
+
# @param key [String]
|
|
139
|
+
#
|
|
140
|
+
# @return [::String]
|
|
141
|
+
def crypto_key_path project:, location:, ring:, key:
|
|
142
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
143
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
144
|
+
raise ::ArgumentError, "ring cannot contain /" if ring.to_s.include? "/"
|
|
145
|
+
|
|
146
|
+
"projects/#{project}/locations/#{location}/keyRings/#{ring}/cryptoKeys/#{key}"
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
##
|
|
150
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
|
151
|
+
#
|
|
152
|
+
# The resource will be in the following format:
|
|
153
|
+
#
|
|
154
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
155
|
+
#
|
|
156
|
+
# @param project [String]
|
|
157
|
+
# @param location [String]
|
|
158
|
+
# @param key_ring [String]
|
|
159
|
+
# @param crypto_key [String]
|
|
160
|
+
# @param crypto_key_version [String]
|
|
161
|
+
#
|
|
162
|
+
# @return [::String]
|
|
163
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
164
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
165
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
166
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
167
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
168
|
+
|
|
169
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
170
|
+
end
|
|
171
|
+
|
|
128
172
|
##
|
|
129
173
|
# Create a fully-qualified DataSource resource string.
|
|
130
174
|
#
|