google-cloud-ai_platform-v1 0.40.0 → 0.42.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +99 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +92 -0
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +280 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +60 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +280 -0
  7. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +280 -0
  8. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +280 -0
  9. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +280 -0
  10. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +280 -0
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +280 -0
  12. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +280 -0
  13. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +280 -0
  14. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +280 -0
  15. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +280 -0
  16. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +280 -0
  17. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +100 -0
  18. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +93 -0
  19. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +280 -0
  20. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +60 -0
  21. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +280 -0
  22. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +280 -0
  23. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +8 -2
  24. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
  25. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +8 -2
  26. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +280 -0
  27. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +280 -0
  28. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +280 -0
  29. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  30. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +280 -0
  31. data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -4
  32. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  33. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
  34. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  35. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  36. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
  37. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  38. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  39. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
  40. data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
  41. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  42. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
  43. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
  44. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
  45. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
  46. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
  47. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  48. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
  49. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  50. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  51. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +3 -1
  52. data/proto_docs/google/cloud/aiplatform/v1/content.rb +11 -47
  53. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  54. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
  56. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
  57. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
  58. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
  59. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  60. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  61. data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
  62. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +17 -2
  63. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
  64. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
  65. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  66. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +15 -0
  67. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
  68. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
  69. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +3 -0
  70. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  71. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
  72. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +5 -0
  73. metadata +2 -2
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1167,6 +1181,27 @@ module Google
1167
1181
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/?$}, false]
1168
1182
  ]
1169
1183
  )
1184
+ .with_bindings(
1185
+ uri_method: :get,
1186
+ uri_template: "/ui/{name}/operations",
1187
+ matches: [
1188
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/?$}, false]
1189
+ ]
1190
+ )
1191
+ .with_bindings(
1192
+ uri_method: :get,
1193
+ uri_template: "/ui/{name}/operations",
1194
+ matches: [
1195
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/?$}, false]
1196
+ ]
1197
+ )
1198
+ .with_bindings(
1199
+ uri_method: :get,
1200
+ uri_template: "/ui/{name}/operations",
1201
+ matches: [
1202
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1203
+ ]
1204
+ )
1170
1205
  .with_bindings(
1171
1206
  uri_method: :get,
1172
1207
  uri_template: "/ui/{name}/operations",
@@ -1447,6 +1482,27 @@ module Google
1447
1482
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/?$}, false]
1448
1483
  ]
1449
1484
  )
1485
+ .with_bindings(
1486
+ uri_method: :get,
1487
+ uri_template: "/v1/{name}/operations",
1488
+ matches: [
1489
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/?$}, false]
1490
+ ]
1491
+ )
1492
+ .with_bindings(
1493
+ uri_method: :get,
1494
+ uri_template: "/v1/{name}/operations",
1495
+ matches: [
1496
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/?$}, false]
1497
+ ]
1498
+ )
1499
+ .with_bindings(
1500
+ uri_method: :get,
1501
+ uri_template: "/v1/{name}/operations",
1502
+ matches: [
1503
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
1504
+ ]
1505
+ )
1450
1506
  .with_bindings(
1451
1507
  uri_method: :get,
1452
1508
  uri_template: "/v1/{name}/operations",
@@ -1573,6 +1629,20 @@ module Google
1573
1629
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1630
  ]
1575
1631
  )
1632
+ .with_bindings(
1633
+ uri_method: :get,
1634
+ uri_template: "/ui/{name}",
1635
+ matches: [
1636
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1637
+ ]
1638
+ )
1639
+ .with_bindings(
1640
+ uri_method: :get,
1641
+ uri_template: "/ui/{name}",
1642
+ matches: [
1643
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1644
+ ]
1645
+ )
1576
1646
  .with_bindings(
1577
1647
  uri_method: :get,
1578
1648
  uri_template: "/ui/{name}",
@@ -1776,6 +1846,27 @@ module Google
1776
1846
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
1777
1847
  ]
1778
1848
  )
1849
+ .with_bindings(
1850
+ uri_method: :get,
1851
+ uri_template: "/ui/{name}",
1852
+ matches: [
1853
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
1854
+ ]
1855
+ )
1856
+ .with_bindings(
1857
+ uri_method: :get,
1858
+ uri_template: "/ui/{name}",
1859
+ matches: [
1860
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
1861
+ ]
1862
+ )
1863
+ .with_bindings(
1864
+ uri_method: :get,
1865
+ uri_template: "/ui/{name}",
1866
+ matches: [
1867
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
1868
+ ]
1869
+ )
1779
1870
  .with_bindings(
1780
1871
  uri_method: :get,
1781
1872
  uri_template: "/ui/{name}",
@@ -2056,6 +2147,27 @@ module Google
2056
2147
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2057
2148
  ]
2058
2149
  )
2150
+ .with_bindings(
2151
+ uri_method: :get,
2152
+ uri_template: "/v1/{name}",
2153
+ matches: [
2154
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
2155
+ ]
2156
+ )
2157
+ .with_bindings(
2158
+ uri_method: :get,
2159
+ uri_template: "/v1/{name}",
2160
+ matches: [
2161
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
2162
+ ]
2163
+ )
2164
+ .with_bindings(
2165
+ uri_method: :get,
2166
+ uri_template: "/v1/{name}",
2167
+ matches: [
2168
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2169
+ ]
2170
+ )
2059
2171
  .with_bindings(
2060
2172
  uri_method: :get,
2061
2173
  uri_template: "/v1/{name}",
@@ -2182,6 +2294,20 @@ module Google
2182
2294
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2295
  ]
2184
2296
  )
2297
+ .with_bindings(
2298
+ uri_method: :delete,
2299
+ uri_template: "/ui/{name}",
2300
+ matches: [
2301
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2302
+ ]
2303
+ )
2304
+ .with_bindings(
2305
+ uri_method: :delete,
2306
+ uri_template: "/ui/{name}",
2307
+ matches: [
2308
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2309
+ ]
2310
+ )
2185
2311
  .with_bindings(
2186
2312
  uri_method: :delete,
2187
2313
  uri_template: "/ui/{name}",
@@ -2371,6 +2497,27 @@ module Google
2371
2497
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2372
2498
  ]
2373
2499
  )
2500
+ .with_bindings(
2501
+ uri_method: :delete,
2502
+ uri_template: "/ui/{name}",
2503
+ matches: [
2504
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
2505
+ ]
2506
+ )
2507
+ .with_bindings(
2508
+ uri_method: :delete,
2509
+ uri_template: "/ui/{name}",
2510
+ matches: [
2511
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
2512
+ ]
2513
+ )
2514
+ .with_bindings(
2515
+ uri_method: :delete,
2516
+ uri_template: "/ui/{name}",
2517
+ matches: [
2518
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2519
+ ]
2520
+ )
2374
2521
  .with_bindings(
2375
2522
  uri_method: :delete,
2376
2523
  uri_template: "/ui/{name}",
@@ -2644,6 +2791,27 @@ module Google
2644
2791
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2645
2792
  ]
2646
2793
  )
2794
+ .with_bindings(
2795
+ uri_method: :delete,
2796
+ uri_template: "/v1/{name}",
2797
+ matches: [
2798
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
2799
+ ]
2800
+ )
2801
+ .with_bindings(
2802
+ uri_method: :delete,
2803
+ uri_template: "/v1/{name}",
2804
+ matches: [
2805
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
2806
+ ]
2807
+ )
2808
+ .with_bindings(
2809
+ uri_method: :delete,
2810
+ uri_template: "/v1/{name}",
2811
+ matches: [
2812
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
2813
+ ]
2814
+ )
2647
2815
  .with_bindings(
2648
2816
  uri_method: :delete,
2649
2817
  uri_template: "/v1/{name}",
@@ -2770,6 +2938,20 @@ module Google
2770
2938
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2939
  ]
2772
2940
  )
2941
+ .with_bindings(
2942
+ uri_method: :post,
2943
+ uri_template: "/ui/{name}:cancel",
2944
+ matches: [
2945
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2946
+ ]
2947
+ )
2948
+ .with_bindings(
2949
+ uri_method: :post,
2950
+ uri_template: "/ui/{name}:cancel",
2951
+ matches: [
2952
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2953
+ ]
2954
+ )
2773
2955
  .with_bindings(
2774
2956
  uri_method: :post,
2775
2957
  uri_template: "/ui/{name}:cancel",
@@ -2966,6 +3148,27 @@ module Google
2966
3148
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
2967
3149
  ]
2968
3150
  )
3151
+ .with_bindings(
3152
+ uri_method: :post,
3153
+ uri_template: "/ui/{name}:cancel",
3154
+ matches: [
3155
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
3156
+ ]
3157
+ )
3158
+ .with_bindings(
3159
+ uri_method: :post,
3160
+ uri_template: "/ui/{name}:cancel",
3161
+ matches: [
3162
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
3163
+ ]
3164
+ )
3165
+ .with_bindings(
3166
+ uri_method: :post,
3167
+ uri_template: "/ui/{name}:cancel",
3168
+ matches: [
3169
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
3170
+ ]
3171
+ )
2969
3172
  .with_bindings(
2970
3173
  uri_method: :post,
2971
3174
  uri_template: "/ui/{name}:cancel",
@@ -3218,6 +3421,27 @@ module Google
3218
3421
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3219
3422
  ]
3220
3423
  )
3424
+ .with_bindings(
3425
+ uri_method: :post,
3426
+ uri_template: "/v1/{name}:cancel",
3427
+ matches: [
3428
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
3429
+ ]
3430
+ )
3431
+ .with_bindings(
3432
+ uri_method: :post,
3433
+ uri_template: "/v1/{name}:cancel",
3434
+ matches: [
3435
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
3436
+ ]
3437
+ )
3438
+ .with_bindings(
3439
+ uri_method: :post,
3440
+ uri_template: "/v1/{name}:cancel",
3441
+ matches: [
3442
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
3443
+ ]
3444
+ )
3221
3445
  .with_bindings(
3222
3446
  uri_method: :post,
3223
3447
  uri_template: "/v1/{name}:cancel",
@@ -3316,6 +3540,20 @@ module Google
3316
3540
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3541
  ]
3318
3542
  )
3543
+ .with_bindings(
3544
+ uri_method: :post,
3545
+ uri_template: "/ui/{name}:wait",
3546
+ matches: [
3547
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3548
+ ]
3549
+ )
3550
+ .with_bindings(
3551
+ uri_method: :post,
3552
+ uri_template: "/ui/{name}:wait",
3553
+ matches: [
3554
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3555
+ ]
3556
+ )
3319
3557
  .with_bindings(
3320
3558
  uri_method: :post,
3321
3559
  uri_template: "/ui/{name}:wait",
@@ -3512,6 +3750,27 @@ module Google
3512
3750
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3513
3751
  ]
3514
3752
  )
3753
+ .with_bindings(
3754
+ uri_method: :post,
3755
+ uri_template: "/ui/{name}:wait",
3756
+ matches: [
3757
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
3758
+ ]
3759
+ )
3760
+ .with_bindings(
3761
+ uri_method: :post,
3762
+ uri_template: "/ui/{name}:wait",
3763
+ matches: [
3764
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
3765
+ ]
3766
+ )
3767
+ .with_bindings(
3768
+ uri_method: :post,
3769
+ uri_template: "/ui/{name}:wait",
3770
+ matches: [
3771
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
3772
+ ]
3773
+ )
3515
3774
  .with_bindings(
3516
3775
  uri_method: :post,
3517
3776
  uri_template: "/ui/{name}:wait",
@@ -3785,6 +4044,27 @@ module Google
3785
4044
  ["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
3786
4045
  ]
3787
4046
  )
4047
+ .with_bindings(
4048
+ uri_method: :post,
4049
+ uri_template: "/v1/{name}:wait",
4050
+ matches: [
4051
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+/?$}, false]
4052
+ ]
4053
+ )
4054
+ .with_bindings(
4055
+ uri_method: :post,
4056
+ uri_template: "/v1/{name}:wait",
4057
+ matches: [
4058
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+/?$}, false]
4059
+ ]
4060
+ )
4061
+ .with_bindings(
4062
+ uri_method: :post,
4063
+ uri_template: "/v1/{name}:wait",
4064
+ matches: [
4065
+ ["name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+/?$}, false]
4066
+ ]
4067
+ )
3788
4068
  .with_bindings(
3789
4069
  uri_method: :post,
3790
4070
  uri_template: "/v1/{name}:wait",
@@ -625,6 +625,99 @@ module Google
625
625
  raise ::Google::Cloud::Error.from_error(e)
626
626
  end
627
627
 
628
+ ##
629
+ # Updates a NotebookRuntimeTemplate.
630
+ #
631
+ # @overload update_notebook_runtime_template(request, options = nil)
632
+ # Pass arguments to `update_notebook_runtime_template` via a request object, either of type
633
+ # {::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest} or an equivalent Hash.
634
+ #
635
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Hash]
636
+ # A request object representing the call parameters. Required. To specify no
637
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
638
+ # @param options [::Gapic::CallOptions, ::Hash]
639
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
640
+ #
641
+ # @overload update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil)
642
+ # Pass arguments to `update_notebook_runtime_template` via keyword arguments. Note that at
643
+ # least one keyword argument is required. To specify no parameters, or to keep all
644
+ # the default parameter values, pass an empty Hash as a request object (see above).
645
+ #
646
+ # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash]
647
+ # Required. The NotebookRuntimeTemplate to update.
648
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
649
+ # Required. The update mask applies to the resource.
650
+ # For the `FieldMask` definition, see
651
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format:
652
+ # `{paths: "${updated_filed}"}` Updatable fields:
653
+ #
654
+ # * `encryption_spec.kms_key_name`
655
+ #
656
+ # @yield [response, operation] Access the result along with the RPC operation
657
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
658
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
659
+ #
660
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
661
+ #
662
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
663
+ #
664
+ # @example Basic example
665
+ # require "google/cloud/ai_platform/v1"
666
+ #
667
+ # # Create a client object. The client can be reused for multiple calls.
668
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new
669
+ #
670
+ # # Create a request. To set request fields, pass in keyword arguments.
671
+ # request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new
672
+ #
673
+ # # Call the update_notebook_runtime_template method.
674
+ # result = client.update_notebook_runtime_template request
675
+ #
676
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.
677
+ # p result
678
+ #
679
+ def update_notebook_runtime_template request, options = nil
680
+ raise ::ArgumentError, "request must be provided" if request.nil?
681
+
682
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest
683
+
684
+ # Converts hash and nil to an options object
685
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
686
+
687
+ # Customize the options with defaults
688
+ metadata = @config.rpcs.update_notebook_runtime_template.metadata.to_h
689
+
690
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
691
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
692
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
693
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
694
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
695
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
+
697
+ header_params = {}
698
+ if request.notebook_runtime_template&.name
699
+ header_params["notebook_runtime_template.name"] = request.notebook_runtime_template.name
700
+ end
701
+
702
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
703
+ metadata[:"x-goog-request-params"] ||= request_params_header
704
+
705
+ options.apply_defaults timeout: @config.rpcs.update_notebook_runtime_template.timeout,
706
+ metadata: metadata,
707
+ retry_policy: @config.rpcs.update_notebook_runtime_template.retry_policy
708
+
709
+ options.apply_defaults timeout: @config.timeout,
710
+ metadata: @config.metadata,
711
+ retry_policy: @config.retry_policy
712
+
713
+ @notebook_service_stub.call_rpc :update_notebook_runtime_template, request, options: options do |response, operation|
714
+ yield response, operation if block_given?
715
+ return response
716
+ end
717
+ rescue ::GRPC::BadStatus => e
718
+ raise ::Google::Cloud::Error.from_error(e)
719
+ end
720
+
628
721
  ##
629
722
  # Assigns a NotebookRuntime to a user for a particular Notebook file. This
630
723
  # method will either returns an existing assignment or generates a new one.
@@ -1432,6 +1525,11 @@ module Google
1432
1525
  #
1433
1526
  attr_reader :delete_notebook_runtime_template
1434
1527
  ##
1528
+ # RPC-specific configuration for `update_notebook_runtime_template`
1529
+ # @return [::Gapic::Config::Method]
1530
+ #
1531
+ attr_reader :update_notebook_runtime_template
1532
+ ##
1435
1533
  # RPC-specific configuration for `assign_notebook_runtime`
1436
1534
  # @return [::Gapic::Config::Method]
1437
1535
  #
@@ -1472,6 +1570,8 @@ module Google
1472
1570
  @list_notebook_runtime_templates = ::Gapic::Config::Method.new list_notebook_runtime_templates_config
1473
1571
  delete_notebook_runtime_template_config = parent_rpcs.delete_notebook_runtime_template if parent_rpcs.respond_to? :delete_notebook_runtime_template
1474
1572
  @delete_notebook_runtime_template = ::Gapic::Config::Method.new delete_notebook_runtime_template_config
1573
+ update_notebook_runtime_template_config = parent_rpcs.update_notebook_runtime_template if parent_rpcs.respond_to? :update_notebook_runtime_template
1574
+ @update_notebook_runtime_template = ::Gapic::Config::Method.new update_notebook_runtime_template_config
1475
1575
  assign_notebook_runtime_config = parent_rpcs.assign_notebook_runtime if parent_rpcs.respond_to? :assign_notebook_runtime
1476
1576
  @assign_notebook_runtime = ::Gapic::Config::Method.new assign_notebook_runtime_config
1477
1577
  get_notebook_runtime_config = parent_rpcs.get_notebook_runtime if parent_rpcs.respond_to? :get_notebook_runtime
@@ -592,6 +592,92 @@ module Google
592
592
  raise ::Google::Cloud::Error.from_error(e)
593
593
  end
594
594
 
595
+ ##
596
+ # Updates a NotebookRuntimeTemplate.
597
+ #
598
+ # @overload update_notebook_runtime_template(request, options = nil)
599
+ # Pass arguments to `update_notebook_runtime_template` via a request object, either of type
600
+ # {::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest} or an equivalent Hash.
601
+ #
602
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Hash]
603
+ # A request object representing the call parameters. Required. To specify no
604
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
605
+ # @param options [::Gapic::CallOptions, ::Hash]
606
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
607
+ #
608
+ # @overload update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil)
609
+ # Pass arguments to `update_notebook_runtime_template` via keyword arguments. Note that at
610
+ # least one keyword argument is required. To specify no parameters, or to keep all
611
+ # the default parameter values, pass an empty Hash as a request object (see above).
612
+ #
613
+ # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash]
614
+ # Required. The NotebookRuntimeTemplate to update.
615
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
616
+ # Required. The update mask applies to the resource.
617
+ # For the `FieldMask` definition, see
618
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format:
619
+ # `{paths: "${updated_filed}"}` Updatable fields:
620
+ #
621
+ # * `encryption_spec.kms_key_name`
622
+ # @yield [result, operation] Access the result along with the TransportOperation object
623
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
624
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
625
+ #
626
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
627
+ #
628
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
629
+ #
630
+ # @example Basic example
631
+ # require "google/cloud/ai_platform/v1"
632
+ #
633
+ # # Create a client object. The client can be reused for multiple calls.
634
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
635
+ #
636
+ # # Create a request. To set request fields, pass in keyword arguments.
637
+ # request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new
638
+ #
639
+ # # Call the update_notebook_runtime_template method.
640
+ # result = client.update_notebook_runtime_template request
641
+ #
642
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.
643
+ # p result
644
+ #
645
+ def update_notebook_runtime_template request, options = nil
646
+ raise ::ArgumentError, "request must be provided" if request.nil?
647
+
648
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest
649
+
650
+ # Converts hash and nil to an options object
651
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
652
+
653
+ # Customize the options with defaults
654
+ call_metadata = @config.rpcs.update_notebook_runtime_template.metadata.to_h
655
+
656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
657
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
659
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
660
+ transports_version_send: [:rest]
661
+
662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
+
665
+ options.apply_defaults timeout: @config.rpcs.update_notebook_runtime_template.timeout,
666
+ metadata: call_metadata,
667
+ retry_policy: @config.rpcs.update_notebook_runtime_template.retry_policy
668
+
669
+ options.apply_defaults timeout: @config.timeout,
670
+ metadata: @config.metadata,
671
+ retry_policy: @config.retry_policy
672
+
673
+ @notebook_service_stub.update_notebook_runtime_template request, options do |result, operation|
674
+ yield result, operation if block_given?
675
+ return result
676
+ end
677
+ rescue ::Gapic::Rest::Error => e
678
+ raise ::Google::Cloud::Error.from_error(e)
679
+ end
680
+
595
681
  ##
596
682
  # Assigns a NotebookRuntime to a user for a particular Notebook file. This
597
683
  # method will either returns an existing assignment or generates a new one.
@@ -1344,6 +1430,11 @@ module Google
1344
1430
  #
1345
1431
  attr_reader :delete_notebook_runtime_template
1346
1432
  ##
1433
+ # RPC-specific configuration for `update_notebook_runtime_template`
1434
+ # @return [::Gapic::Config::Method]
1435
+ #
1436
+ attr_reader :update_notebook_runtime_template
1437
+ ##
1347
1438
  # RPC-specific configuration for `assign_notebook_runtime`
1348
1439
  # @return [::Gapic::Config::Method]
1349
1440
  #
@@ -1384,6 +1475,8 @@ module Google
1384
1475
  @list_notebook_runtime_templates = ::Gapic::Config::Method.new list_notebook_runtime_templates_config
1385
1476
  delete_notebook_runtime_template_config = parent_rpcs.delete_notebook_runtime_template if parent_rpcs.respond_to? :delete_notebook_runtime_template
1386
1477
  @delete_notebook_runtime_template = ::Gapic::Config::Method.new delete_notebook_runtime_template_config
1478
+ update_notebook_runtime_template_config = parent_rpcs.update_notebook_runtime_template if parent_rpcs.respond_to? :update_notebook_runtime_template
1479
+ @update_notebook_runtime_template = ::Gapic::Config::Method.new update_notebook_runtime_template_config
1387
1480
  assign_notebook_runtime_config = parent_rpcs.assign_notebook_runtime if parent_rpcs.respond_to? :assign_notebook_runtime
1388
1481
  @assign_notebook_runtime = ::Gapic::Config::Method.new assign_notebook_runtime_config
1389
1482
  get_notebook_runtime_config = parent_rpcs.get_notebook_runtime if parent_rpcs.respond_to? :get_notebook_runtime