google-cloud-cloud_dms-v1 0.1.3 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97c10cfb9762f7397a40008162ca82c091dafd43fd05f7240c2ff294eefd1703
4
- data.tar.gz: bebe4b7e7a869671d11e1f634ad57fa15675d9b3f325aaf8069ba667b3fd7be4
3
+ metadata.gz: b5dfe380c31b2389512f93e325c217551fd8156cac935ea4fa6df39e6a2ffee8
4
+ data.tar.gz: 519d82a70866014b583d030b180b52a8005bb3fdb7a5cc7cee0945b7bd3be9d9
5
5
  SHA512:
6
- metadata.gz: b29b509e9f61b6f97e40e2685569e4b2ff7fc1fb6cefeb481b9203a02a55409fd731e1b17471afe0fee6d30299cb0f72f02f7542cce4cb1440e5aa81af81be40
7
- data.tar.gz: 1555540bc27957dacf7ac22dc8bd808b16047ee4ac786d06ba1ce651447bed6e50cabbd58b5d89c76f321c7f62b514a2fd0c6d52edd92f408d16e45683f2a9ff
6
+ metadata.gz: ec37a49d142bb9ca0d632e98dc6e772a105cc015658e361fd78a01bedc3a29139a3ba6d0b06f8c9742c07adb953ed198588eb6bff3cfd5c05b5fb281330fb47e
7
+ data.tar.gz: dcead11858e04d3bb66538a3677e080898a08681feb41e9795be3788ab42a9ebafc9d280d188cf111777ddc44a39cae3bae3e5d996cd8b8747a171dcfe9d03f1
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Database Migration Service V1 API
2
+ --title="Cloud Database Migration Service V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::CloudDMS::V1::ListMigrationJobsRequest.new # (request
37
37
  response = client.list_migration_jobs request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-cloud_dms-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/database-migration/)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -174,6 +174,7 @@ module Google
174
174
 
175
175
  @operations_client = Operations.new do |config|
176
176
  config.credentials = credentials
177
+ config.quota_project = @quota_project_id
177
178
  config.endpoint = @config.endpoint
178
179
  end
179
180
 
@@ -248,6 +249,27 @@ module Google
248
249
  #
249
250
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
250
251
  #
252
+ # @example Basic example
253
+ # require "google/cloud/cloud_dms/v1"
254
+ #
255
+ # # Create a client object. The client can be reused for multiple calls.
256
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
257
+ #
258
+ # # Create a request. To set request fields, pass in keyword arguments.
259
+ # request = Google::Cloud::CloudDMS::V1::ListMigrationJobsRequest.new
260
+ #
261
+ # # Call the list_migration_jobs method.
262
+ # result = client.list_migration_jobs request
263
+ #
264
+ # # The returned object is of type Gapic::PagedEnumerable. You can
265
+ # # iterate over all elements by calling #each, and the enumerable
266
+ # # will lazily make API calls to fetch subsequent pages. Other
267
+ # # methods are also available for managing paging directly.
268
+ # result.each do |response|
269
+ # # Each element is of type ::Google::Cloud::CloudDMS::V1::MigrationJob.
270
+ # p response
271
+ # end
272
+ #
251
273
  def list_migration_jobs request, options = nil
252
274
  raise ::ArgumentError, "request must be provided" if request.nil?
253
275
 
@@ -265,9 +287,11 @@ module Google
265
287
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
266
288
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
289
 
268
- header_params = {
269
- "parent" => request.parent
270
- }
290
+ header_params = {}
291
+ if request.parent
292
+ header_params["parent"] = request.parent
293
+ end
294
+
271
295
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
272
296
  metadata[:"x-goog-request-params"] ||= request_params_header
273
297
 
@@ -317,6 +341,21 @@ module Google
317
341
  #
318
342
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
319
343
  #
344
+ # @example Basic example
345
+ # require "google/cloud/cloud_dms/v1"
346
+ #
347
+ # # Create a client object. The client can be reused for multiple calls.
348
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
349
+ #
350
+ # # Create a request. To set request fields, pass in keyword arguments.
351
+ # request = Google::Cloud::CloudDMS::V1::GetMigrationJobRequest.new
352
+ #
353
+ # # Call the get_migration_job method.
354
+ # result = client.get_migration_job request
355
+ #
356
+ # # The returned object is of type Google::Cloud::CloudDMS::V1::MigrationJob.
357
+ # p result
358
+ #
320
359
  def get_migration_job request, options = nil
321
360
  raise ::ArgumentError, "request must be provided" if request.nil?
322
361
 
@@ -334,9 +373,11 @@ module Google
334
373
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
335
374
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
375
 
337
- header_params = {
338
- "name" => request.name
339
- }
376
+ header_params = {}
377
+ if request.name
378
+ header_params["name"] = request.name
379
+ end
380
+
340
381
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
341
382
  metadata[:"x-goog-request-params"] ||= request_params_header
342
383
 
@@ -399,6 +440,28 @@ module Google
399
440
  #
400
441
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
401
442
  #
443
+ # @example Basic example
444
+ # require "google/cloud/cloud_dms/v1"
445
+ #
446
+ # # Create a client object. The client can be reused for multiple calls.
447
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
448
+ #
449
+ # # Create a request. To set request fields, pass in keyword arguments.
450
+ # request = Google::Cloud::CloudDMS::V1::CreateMigrationJobRequest.new
451
+ #
452
+ # # Call the create_migration_job method.
453
+ # result = client.create_migration_job request
454
+ #
455
+ # # The returned object is of type Gapic::Operation. You can use this
456
+ # # object to check the status of an operation, cancel it, or wait
457
+ # # for results. Here is how to block until completion:
458
+ # result.wait_until_done! timeout: 60
459
+ # if result.response?
460
+ # p result.response
461
+ # else
462
+ # puts "Error!"
463
+ # end
464
+ #
402
465
  def create_migration_job request, options = nil
403
466
  raise ::ArgumentError, "request must be provided" if request.nil?
404
467
 
@@ -416,9 +479,11 @@ module Google
416
479
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
417
480
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
481
 
419
- header_params = {
420
- "parent" => request.parent
421
- }
482
+ header_params = {}
483
+ if request.parent
484
+ header_params["parent"] = request.parent
485
+ end
486
+
422
487
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
423
488
  metadata[:"x-goog-request-params"] ||= request_params_header
424
489
 
@@ -479,6 +544,28 @@ module Google
479
544
  #
480
545
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
481
546
  #
547
+ # @example Basic example
548
+ # require "google/cloud/cloud_dms/v1"
549
+ #
550
+ # # Create a client object. The client can be reused for multiple calls.
551
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
552
+ #
553
+ # # Create a request. To set request fields, pass in keyword arguments.
554
+ # request = Google::Cloud::CloudDMS::V1::UpdateMigrationJobRequest.new
555
+ #
556
+ # # Call the update_migration_job method.
557
+ # result = client.update_migration_job request
558
+ #
559
+ # # The returned object is of type Gapic::Operation. You can use this
560
+ # # object to check the status of an operation, cancel it, or wait
561
+ # # for results. Here is how to block until completion:
562
+ # result.wait_until_done! timeout: 60
563
+ # if result.response?
564
+ # p result.response
565
+ # else
566
+ # puts "Error!"
567
+ # end
568
+ #
482
569
  def update_migration_job request, options = nil
483
570
  raise ::ArgumentError, "request must be provided" if request.nil?
484
571
 
@@ -496,9 +583,11 @@ module Google
496
583
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
497
584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
498
585
 
499
- header_params = {
500
- "migration_job.name" => request.migration_job.name
501
- }
586
+ header_params = {}
587
+ if request.migration_job&.name
588
+ header_params["migration_job.name"] = request.migration_job.name
589
+ end
590
+
502
591
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
503
592
  metadata[:"x-goog-request-params"] ||= request_params_header
504
593
 
@@ -560,6 +649,28 @@ module Google
560
649
  #
561
650
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
562
651
  #
652
+ # @example Basic example
653
+ # require "google/cloud/cloud_dms/v1"
654
+ #
655
+ # # Create a client object. The client can be reused for multiple calls.
656
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
657
+ #
658
+ # # Create a request. To set request fields, pass in keyword arguments.
659
+ # request = Google::Cloud::CloudDMS::V1::DeleteMigrationJobRequest.new
660
+ #
661
+ # # Call the delete_migration_job method.
662
+ # result = client.delete_migration_job request
663
+ #
664
+ # # The returned object is of type Gapic::Operation. You can use this
665
+ # # object to check the status of an operation, cancel it, or wait
666
+ # # for results. Here is how to block until completion:
667
+ # result.wait_until_done! timeout: 60
668
+ # if result.response?
669
+ # p result.response
670
+ # else
671
+ # puts "Error!"
672
+ # end
673
+ #
563
674
  def delete_migration_job request, options = nil
564
675
  raise ::ArgumentError, "request must be provided" if request.nil?
565
676
 
@@ -577,9 +688,11 @@ module Google
577
688
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
578
689
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
690
 
580
- header_params = {
581
- "name" => request.name
582
- }
691
+ header_params = {}
692
+ if request.name
693
+ header_params["name"] = request.name
694
+ end
695
+
583
696
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
584
697
  metadata[:"x-goog-request-params"] ||= request_params_header
585
698
 
@@ -629,6 +742,28 @@ module Google
629
742
  #
630
743
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
631
744
  #
745
+ # @example Basic example
746
+ # require "google/cloud/cloud_dms/v1"
747
+ #
748
+ # # Create a client object. The client can be reused for multiple calls.
749
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
750
+ #
751
+ # # Create a request. To set request fields, pass in keyword arguments.
752
+ # request = Google::Cloud::CloudDMS::V1::StartMigrationJobRequest.new
753
+ #
754
+ # # Call the start_migration_job method.
755
+ # result = client.start_migration_job request
756
+ #
757
+ # # The returned object is of type Gapic::Operation. You can use this
758
+ # # object to check the status of an operation, cancel it, or wait
759
+ # # for results. Here is how to block until completion:
760
+ # result.wait_until_done! timeout: 60
761
+ # if result.response?
762
+ # p result.response
763
+ # else
764
+ # puts "Error!"
765
+ # end
766
+ #
632
767
  def start_migration_job request, options = nil
633
768
  raise ::ArgumentError, "request must be provided" if request.nil?
634
769
 
@@ -646,9 +781,11 @@ module Google
646
781
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
647
782
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
648
783
 
649
- header_params = {
650
- "name" => request.name
651
- }
784
+ header_params = {}
785
+ if request.name
786
+ header_params["name"] = request.name
787
+ end
788
+
652
789
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
653
790
  metadata[:"x-goog-request-params"] ||= request_params_header
654
791
 
@@ -698,6 +835,28 @@ module Google
698
835
  #
699
836
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
700
837
  #
838
+ # @example Basic example
839
+ # require "google/cloud/cloud_dms/v1"
840
+ #
841
+ # # Create a client object. The client can be reused for multiple calls.
842
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
843
+ #
844
+ # # Create a request. To set request fields, pass in keyword arguments.
845
+ # request = Google::Cloud::CloudDMS::V1::StopMigrationJobRequest.new
846
+ #
847
+ # # Call the stop_migration_job method.
848
+ # result = client.stop_migration_job request
849
+ #
850
+ # # The returned object is of type Gapic::Operation. You can use this
851
+ # # object to check the status of an operation, cancel it, or wait
852
+ # # for results. Here is how to block until completion:
853
+ # result.wait_until_done! timeout: 60
854
+ # if result.response?
855
+ # p result.response
856
+ # else
857
+ # puts "Error!"
858
+ # end
859
+ #
701
860
  def stop_migration_job request, options = nil
702
861
  raise ::ArgumentError, "request must be provided" if request.nil?
703
862
 
@@ -715,9 +874,11 @@ module Google
715
874
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
716
875
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
876
 
718
- header_params = {
719
- "name" => request.name
720
- }
877
+ header_params = {}
878
+ if request.name
879
+ header_params["name"] = request.name
880
+ end
881
+
721
882
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
722
883
  metadata[:"x-goog-request-params"] ||= request_params_header
723
884
 
@@ -768,6 +929,28 @@ module Google
768
929
  #
769
930
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
770
931
  #
932
+ # @example Basic example
933
+ # require "google/cloud/cloud_dms/v1"
934
+ #
935
+ # # Create a client object. The client can be reused for multiple calls.
936
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
937
+ #
938
+ # # Create a request. To set request fields, pass in keyword arguments.
939
+ # request = Google::Cloud::CloudDMS::V1::ResumeMigrationJobRequest.new
940
+ #
941
+ # # Call the resume_migration_job method.
942
+ # result = client.resume_migration_job request
943
+ #
944
+ # # The returned object is of type Gapic::Operation. You can use this
945
+ # # object to check the status of an operation, cancel it, or wait
946
+ # # for results. Here is how to block until completion:
947
+ # result.wait_until_done! timeout: 60
948
+ # if result.response?
949
+ # p result.response
950
+ # else
951
+ # puts "Error!"
952
+ # end
953
+ #
771
954
  def resume_migration_job request, options = nil
772
955
  raise ::ArgumentError, "request must be provided" if request.nil?
773
956
 
@@ -785,9 +968,11 @@ module Google
785
968
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
786
969
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
787
970
 
788
- header_params = {
789
- "name" => request.name
790
- }
971
+ header_params = {}
972
+ if request.name
973
+ header_params["name"] = request.name
974
+ end
975
+
791
976
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
792
977
  metadata[:"x-goog-request-params"] ||= request_params_header
793
978
 
@@ -838,6 +1023,28 @@ module Google
838
1023
  #
839
1024
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
840
1025
  #
1026
+ # @example Basic example
1027
+ # require "google/cloud/cloud_dms/v1"
1028
+ #
1029
+ # # Create a client object. The client can be reused for multiple calls.
1030
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1031
+ #
1032
+ # # Create a request. To set request fields, pass in keyword arguments.
1033
+ # request = Google::Cloud::CloudDMS::V1::PromoteMigrationJobRequest.new
1034
+ #
1035
+ # # Call the promote_migration_job method.
1036
+ # result = client.promote_migration_job request
1037
+ #
1038
+ # # The returned object is of type Gapic::Operation. You can use this
1039
+ # # object to check the status of an operation, cancel it, or wait
1040
+ # # for results. Here is how to block until completion:
1041
+ # result.wait_until_done! timeout: 60
1042
+ # if result.response?
1043
+ # p result.response
1044
+ # else
1045
+ # puts "Error!"
1046
+ # end
1047
+ #
841
1048
  def promote_migration_job request, options = nil
842
1049
  raise ::ArgumentError, "request must be provided" if request.nil?
843
1050
 
@@ -855,9 +1062,11 @@ module Google
855
1062
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
856
1063
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
857
1064
 
858
- header_params = {
859
- "name" => request.name
860
- }
1065
+ header_params = {}
1066
+ if request.name
1067
+ header_params["name"] = request.name
1068
+ end
1069
+
861
1070
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
862
1071
  metadata[:"x-goog-request-params"] ||= request_params_header
863
1072
 
@@ -908,6 +1117,28 @@ module Google
908
1117
  #
909
1118
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
910
1119
  #
1120
+ # @example Basic example
1121
+ # require "google/cloud/cloud_dms/v1"
1122
+ #
1123
+ # # Create a client object. The client can be reused for multiple calls.
1124
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1125
+ #
1126
+ # # Create a request. To set request fields, pass in keyword arguments.
1127
+ # request = Google::Cloud::CloudDMS::V1::VerifyMigrationJobRequest.new
1128
+ #
1129
+ # # Call the verify_migration_job method.
1130
+ # result = client.verify_migration_job request
1131
+ #
1132
+ # # The returned object is of type Gapic::Operation. You can use this
1133
+ # # object to check the status of an operation, cancel it, or wait
1134
+ # # for results. Here is how to block until completion:
1135
+ # result.wait_until_done! timeout: 60
1136
+ # if result.response?
1137
+ # p result.response
1138
+ # else
1139
+ # puts "Error!"
1140
+ # end
1141
+ #
911
1142
  def verify_migration_job request, options = nil
912
1143
  raise ::ArgumentError, "request must be provided" if request.nil?
913
1144
 
@@ -925,9 +1156,11 @@ module Google
925
1156
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
926
1157
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
927
1158
 
928
- header_params = {
929
- "name" => request.name
930
- }
1159
+ header_params = {}
1160
+ if request.name
1161
+ header_params["name"] = request.name
1162
+ end
1163
+
931
1164
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
932
1165
  metadata[:"x-goog-request-params"] ||= request_params_header
933
1166
 
@@ -979,6 +1212,28 @@ module Google
979
1212
  #
980
1213
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
981
1214
  #
1215
+ # @example Basic example
1216
+ # require "google/cloud/cloud_dms/v1"
1217
+ #
1218
+ # # Create a client object. The client can be reused for multiple calls.
1219
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1220
+ #
1221
+ # # Create a request. To set request fields, pass in keyword arguments.
1222
+ # request = Google::Cloud::CloudDMS::V1::RestartMigrationJobRequest.new
1223
+ #
1224
+ # # Call the restart_migration_job method.
1225
+ # result = client.restart_migration_job request
1226
+ #
1227
+ # # The returned object is of type Gapic::Operation. You can use this
1228
+ # # object to check the status of an operation, cancel it, or wait
1229
+ # # for results. Here is how to block until completion:
1230
+ # result.wait_until_done! timeout: 60
1231
+ # if result.response?
1232
+ # p result.response
1233
+ # else
1234
+ # puts "Error!"
1235
+ # end
1236
+ #
982
1237
  def restart_migration_job request, options = nil
983
1238
  raise ::ArgumentError, "request must be provided" if request.nil?
984
1239
 
@@ -996,9 +1251,11 @@ module Google
996
1251
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
997
1252
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
998
1253
 
999
- header_params = {
1000
- "name" => request.name
1001
- }
1254
+ header_params = {}
1255
+ if request.name
1256
+ header_params["name"] = request.name
1257
+ end
1258
+
1002
1259
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1003
1260
  metadata[:"x-goog-request-params"] ||= request_params_header
1004
1261
 
@@ -1057,6 +1314,21 @@ module Google
1057
1314
  #
1058
1315
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1059
1316
  #
1317
+ # @example Basic example
1318
+ # require "google/cloud/cloud_dms/v1"
1319
+ #
1320
+ # # Create a client object. The client can be reused for multiple calls.
1321
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1322
+ #
1323
+ # # Create a request. To set request fields, pass in keyword arguments.
1324
+ # request = Google::Cloud::CloudDMS::V1::GenerateSshScriptRequest.new
1325
+ #
1326
+ # # Call the generate_ssh_script method.
1327
+ # result = client.generate_ssh_script request
1328
+ #
1329
+ # # The returned object is of type Google::Cloud::CloudDMS::V1::SshScript.
1330
+ # p result
1331
+ #
1060
1332
  def generate_ssh_script request, options = nil
1061
1333
  raise ::ArgumentError, "request must be provided" if request.nil?
1062
1334
 
@@ -1074,9 +1346,11 @@ module Google
1074
1346
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1075
1347
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
1348
 
1077
- header_params = {
1078
- "migration_job" => request.migration_job
1079
- }
1349
+ header_params = {}
1350
+ if request.migration_job
1351
+ header_params["migration_job"] = request.migration_job
1352
+ end
1353
+
1080
1354
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1081
1355
  metadata[:"x-goog-request-params"] ||= request_params_header
1082
1356
 
@@ -1148,6 +1422,27 @@ module Google
1148
1422
  #
1149
1423
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1150
1424
  #
1425
+ # @example Basic example
1426
+ # require "google/cloud/cloud_dms/v1"
1427
+ #
1428
+ # # Create a client object. The client can be reused for multiple calls.
1429
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1430
+ #
1431
+ # # Create a request. To set request fields, pass in keyword arguments.
1432
+ # request = Google::Cloud::CloudDMS::V1::ListConnectionProfilesRequest.new
1433
+ #
1434
+ # # Call the list_connection_profiles method.
1435
+ # result = client.list_connection_profiles request
1436
+ #
1437
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1438
+ # # iterate over all elements by calling #each, and the enumerable
1439
+ # # will lazily make API calls to fetch subsequent pages. Other
1440
+ # # methods are also available for managing paging directly.
1441
+ # result.each do |response|
1442
+ # # Each element is of type ::Google::Cloud::CloudDMS::V1::ConnectionProfile.
1443
+ # p response
1444
+ # end
1445
+ #
1151
1446
  def list_connection_profiles request, options = nil
1152
1447
  raise ::ArgumentError, "request must be provided" if request.nil?
1153
1448
 
@@ -1165,9 +1460,11 @@ module Google
1165
1460
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1166
1461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1167
1462
 
1168
- header_params = {
1169
- "parent" => request.parent
1170
- }
1463
+ header_params = {}
1464
+ if request.parent
1465
+ header_params["parent"] = request.parent
1466
+ end
1467
+
1171
1468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1172
1469
  metadata[:"x-goog-request-params"] ||= request_params_header
1173
1470
 
@@ -1217,6 +1514,21 @@ module Google
1217
1514
  #
1218
1515
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1219
1516
  #
1517
+ # @example Basic example
1518
+ # require "google/cloud/cloud_dms/v1"
1519
+ #
1520
+ # # Create a client object. The client can be reused for multiple calls.
1521
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1522
+ #
1523
+ # # Create a request. To set request fields, pass in keyword arguments.
1524
+ # request = Google::Cloud::CloudDMS::V1::GetConnectionProfileRequest.new
1525
+ #
1526
+ # # Call the get_connection_profile method.
1527
+ # result = client.get_connection_profile request
1528
+ #
1529
+ # # The returned object is of type Google::Cloud::CloudDMS::V1::ConnectionProfile.
1530
+ # p result
1531
+ #
1220
1532
  def get_connection_profile request, options = nil
1221
1533
  raise ::ArgumentError, "request must be provided" if request.nil?
1222
1534
 
@@ -1234,9 +1546,11 @@ module Google
1234
1546
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1235
1547
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1236
1548
 
1237
- header_params = {
1238
- "name" => request.name
1239
- }
1549
+ header_params = {}
1550
+ if request.name
1551
+ header_params["name"] = request.name
1552
+ end
1553
+
1240
1554
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1241
1555
  metadata[:"x-goog-request-params"] ||= request_params_header
1242
1556
 
@@ -1297,6 +1611,28 @@ module Google
1297
1611
  #
1298
1612
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1299
1613
  #
1614
+ # @example Basic example
1615
+ # require "google/cloud/cloud_dms/v1"
1616
+ #
1617
+ # # Create a client object. The client can be reused for multiple calls.
1618
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1619
+ #
1620
+ # # Create a request. To set request fields, pass in keyword arguments.
1621
+ # request = Google::Cloud::CloudDMS::V1::CreateConnectionProfileRequest.new
1622
+ #
1623
+ # # Call the create_connection_profile method.
1624
+ # result = client.create_connection_profile request
1625
+ #
1626
+ # # The returned object is of type Gapic::Operation. You can use this
1627
+ # # object to check the status of an operation, cancel it, or wait
1628
+ # # for results. Here is how to block until completion:
1629
+ # result.wait_until_done! timeout: 60
1630
+ # if result.response?
1631
+ # p result.response
1632
+ # else
1633
+ # puts "Error!"
1634
+ # end
1635
+ #
1300
1636
  def create_connection_profile request, options = nil
1301
1637
  raise ::ArgumentError, "request must be provided" if request.nil?
1302
1638
 
@@ -1314,9 +1650,11 @@ module Google
1314
1650
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1315
1651
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1316
1652
 
1317
- header_params = {
1318
- "parent" => request.parent
1319
- }
1653
+ header_params = {}
1654
+ if request.parent
1655
+ header_params["parent"] = request.parent
1656
+ end
1657
+
1320
1658
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1321
1659
  metadata[:"x-goog-request-params"] ||= request_params_header
1322
1660
 
@@ -1377,6 +1715,28 @@ module Google
1377
1715
  #
1378
1716
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1379
1717
  #
1718
+ # @example Basic example
1719
+ # require "google/cloud/cloud_dms/v1"
1720
+ #
1721
+ # # Create a client object. The client can be reused for multiple calls.
1722
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1723
+ #
1724
+ # # Create a request. To set request fields, pass in keyword arguments.
1725
+ # request = Google::Cloud::CloudDMS::V1::UpdateConnectionProfileRequest.new
1726
+ #
1727
+ # # Call the update_connection_profile method.
1728
+ # result = client.update_connection_profile request
1729
+ #
1730
+ # # The returned object is of type Gapic::Operation. You can use this
1731
+ # # object to check the status of an operation, cancel it, or wait
1732
+ # # for results. Here is how to block until completion:
1733
+ # result.wait_until_done! timeout: 60
1734
+ # if result.response?
1735
+ # p result.response
1736
+ # else
1737
+ # puts "Error!"
1738
+ # end
1739
+ #
1380
1740
  def update_connection_profile request, options = nil
1381
1741
  raise ::ArgumentError, "request must be provided" if request.nil?
1382
1742
 
@@ -1394,9 +1754,11 @@ module Google
1394
1754
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1395
1755
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1396
1756
 
1397
- header_params = {
1398
- "connection_profile.name" => request.connection_profile.name
1399
- }
1757
+ header_params = {}
1758
+ if request.connection_profile&.name
1759
+ header_params["connection_profile.name"] = request.connection_profile.name
1760
+ end
1761
+
1400
1762
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1401
1763
  metadata[:"x-goog-request-params"] ||= request_params_header
1402
1764
 
@@ -1459,6 +1821,28 @@ module Google
1459
1821
  #
1460
1822
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1461
1823
  #
1824
+ # @example Basic example
1825
+ # require "google/cloud/cloud_dms/v1"
1826
+ #
1827
+ # # Create a client object. The client can be reused for multiple calls.
1828
+ # client = Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
1829
+ #
1830
+ # # Create a request. To set request fields, pass in keyword arguments.
1831
+ # request = Google::Cloud::CloudDMS::V1::DeleteConnectionProfileRequest.new
1832
+ #
1833
+ # # Call the delete_connection_profile method.
1834
+ # result = client.delete_connection_profile request
1835
+ #
1836
+ # # The returned object is of type Gapic::Operation. You can use this
1837
+ # # object to check the status of an operation, cancel it, or wait
1838
+ # # for results. Here is how to block until completion:
1839
+ # result.wait_until_done! timeout: 60
1840
+ # if result.response?
1841
+ # p result.response
1842
+ # else
1843
+ # puts "Error!"
1844
+ # end
1845
+ #
1462
1846
  def delete_connection_profile request, options = nil
1463
1847
  raise ::ArgumentError, "request must be provided" if request.nil?
1464
1848
 
@@ -1476,9 +1860,11 @@ module Google
1476
1860
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
1477
1861
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1478
1862
 
1479
- header_params = {
1480
- "name" => request.name
1481
- }
1863
+ header_params = {}
1864
+ if request.name
1865
+ header_params["name"] = request.name
1866
+ end
1867
+
1482
1868
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1483
1869
  metadata[:"x-goog-request-params"] ||= request_params_header
1484
1870
 
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -143,6 +146,27 @@ module Google
143
146
  #
144
147
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
148
  #
149
+ # @example Basic example
150
+ # require "google/longrunning"
151
+ #
152
+ # # Create a client object. The client can be reused for multiple calls.
153
+ # client = Google::Longrunning::Operations::Client.new
154
+ #
155
+ # # Create a request. To set request fields, pass in keyword arguments.
156
+ # request = Google::Longrunning::ListOperationsRequest.new
157
+ #
158
+ # # Call the list_operations method.
159
+ # result = client.list_operations request
160
+ #
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can
162
+ # # iterate over all elements by calling #each, and the enumerable
163
+ # # will lazily make API calls to fetch subsequent pages. Other
164
+ # # methods are also available for managing paging directly.
165
+ # result.each do |response|
166
+ # # Each element is of type ::Google::Longrunning::Operation.
167
+ # p response
168
+ # end
169
+ #
146
170
  def list_operations request, options = nil
147
171
  raise ::ArgumentError, "request must be provided" if request.nil?
148
172
 
@@ -160,9 +184,11 @@ module Google
160
184
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
161
185
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
186
 
163
- header_params = {
164
- "name" => request.name
165
- }
187
+ header_params = {}
188
+ if request.name
189
+ header_params["name"] = request.name
190
+ end
191
+
166
192
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
193
  metadata[:"x-goog-request-params"] ||= request_params_header
168
194
 
@@ -215,6 +241,28 @@ module Google
215
241
  #
216
242
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
243
  #
244
+ # @example Basic example
245
+ # require "google/longrunning"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Longrunning::Operations::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Longrunning::GetOperationRequest.new
252
+ #
253
+ # # Call the get_operation method.
254
+ # result = client.get_operation request
255
+ #
256
+ # # The returned object is of type Gapic::Operation. You can use this
257
+ # # object to check the status of an operation, cancel it, or wait
258
+ # # for results. Here is how to block until completion:
259
+ # result.wait_until_done! timeout: 60
260
+ # if result.response?
261
+ # p result.response
262
+ # else
263
+ # puts "Error!"
264
+ # end
265
+ #
218
266
  def get_operation request, options = nil
219
267
  raise ::ArgumentError, "request must be provided" if request.nil?
220
268
 
@@ -232,9 +280,11 @@ module Google
232
280
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
233
281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
282
 
235
- header_params = {
236
- "name" => request.name
237
- }
283
+ header_params = {}
284
+ if request.name
285
+ header_params["name"] = request.name
286
+ end
287
+
238
288
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
289
  metadata[:"x-goog-request-params"] ||= request_params_header
240
290
 
@@ -287,6 +337,21 @@ module Google
287
337
  #
288
338
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
339
  #
340
+ # @example Basic example
341
+ # require "google/longrunning"
342
+ #
343
+ # # Create a client object. The client can be reused for multiple calls.
344
+ # client = Google::Longrunning::Operations::Client.new
345
+ #
346
+ # # Create a request. To set request fields, pass in keyword arguments.
347
+ # request = Google::Longrunning::DeleteOperationRequest.new
348
+ #
349
+ # # Call the delete_operation method.
350
+ # result = client.delete_operation request
351
+ #
352
+ # # The returned object is of type Google::Protobuf::Empty.
353
+ # p result
354
+ #
290
355
  def delete_operation request, options = nil
291
356
  raise ::ArgumentError, "request must be provided" if request.nil?
292
357
 
@@ -304,9 +369,11 @@ module Google
304
369
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
305
370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
371
 
307
- header_params = {
308
- "name" => request.name
309
- }
372
+ header_params = {}
373
+ if request.name
374
+ header_params["name"] = request.name
375
+ end
376
+
310
377
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
378
  metadata[:"x-goog-request-params"] ||= request_params_header
312
379
 
@@ -364,6 +431,21 @@ module Google
364
431
  #
365
432
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
433
  #
434
+ # @example Basic example
435
+ # require "google/longrunning"
436
+ #
437
+ # # Create a client object. The client can be reused for multiple calls.
438
+ # client = Google::Longrunning::Operations::Client.new
439
+ #
440
+ # # Create a request. To set request fields, pass in keyword arguments.
441
+ # request = Google::Longrunning::CancelOperationRequest.new
442
+ #
443
+ # # Call the cancel_operation method.
444
+ # result = client.cancel_operation request
445
+ #
446
+ # # The returned object is of type Google::Protobuf::Empty.
447
+ # p result
448
+ #
367
449
  def cancel_operation request, options = nil
368
450
  raise ::ArgumentError, "request must be provided" if request.nil?
369
451
 
@@ -381,9 +463,11 @@ module Google
381
463
  gapic_version: ::Google::Cloud::CloudDMS::V1::VERSION
382
464
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
465
 
384
- header_params = {
385
- "name" => request.name
386
- }
466
+ header_params = {}
467
+ if request.name
468
+ header_params["name"] = request.name
469
+ end
470
+
387
471
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
472
  metadata[:"x-goog-request-params"] ||= request_params_header
389
473
 
@@ -444,6 +528,28 @@ module Google
444
528
  #
445
529
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
530
  #
531
+ # @example Basic example
532
+ # require "google/longrunning"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Longrunning::Operations::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Longrunning::WaitOperationRequest.new
539
+ #
540
+ # # Call the wait_operation method.
541
+ # result = client.wait_operation request
542
+ #
543
+ # # The returned object is of type Gapic::Operation. You can use this
544
+ # # object to check the status of an operation, cancel it, or wait
545
+ # # for results. Here is how to block until completion:
546
+ # result.wait_until_done! timeout: 60
547
+ # if result.response?
548
+ # p result.response
549
+ # else
550
+ # puts "Error!"
551
+ # end
552
+ #
447
553
  def wait_operation request, options = nil
448
554
  raise ::ArgumentError, "request must be provided" if request.nil?
449
555
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module CloudDMS
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/cloud_dms/v1"
29
31
  # client = ::Google::Cloud::CloudDMS::V1::DataMigrationService::Client.new
30
32
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/clouddms/v1/clouddms.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/cloud/clouddms/v1/clouddms_resources_pb'
9
11
  require 'google/longrunning/operations_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
13
  require 'google/protobuf/timestamp_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/clouddms/v1/clouddms.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/clouddms/v1/clouddms_resources.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/protobuf/duration_pb'
@@ -8,7 +10,6 @@ require 'google/protobuf/timestamp_pb'
8
10
  require 'google/protobuf/wrappers_pb'
9
11
  require 'google/rpc/status_pb'
10
12
  require 'google/api/annotations_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/clouddms/v1/clouddms_resources.proto", :syntax => :proto3) do
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-cloud_dms-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -208,14 +208,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
208
  requirements:
209
209
  - - ">="
210
210
  - !ruby/object:Gem::Version
211
- version: '2.5'
211
+ version: '2.6'
212
212
  required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubygems_version: 3.2.17
218
+ rubygems_version: 3.3.14
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: API Client library for the Cloud Database Migration Service V1 API