google-cloud-ai_platform 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4299c22937e0bc9db485e308360951f6d198871255f29f02b3c3e76ffa56cc4
4
- data.tar.gz: 22054e07dce6c1a6004b1720d7c61de1c076d8c20fe220315d046038efc67581
3
+ metadata.gz: 6bf61ba8f079dd0a9cd2763152b0f1dcd30d0fefe78ac5d7d47ab7ba5cda9473
4
+ data.tar.gz: 9815451a5b520bfbe06fc93d9d4b2449f952f95600f2d3f603b2efebe16d552b
5
5
  SHA512:
6
- metadata.gz: 6aa50bf1c8152a619265d0b9c7063b3ff0a4a77827ac619d1e7d8582711af62433ccbab6a6ef8975619c17591a683d2e10ffca6f0887074c3a8bebb0ae6a01f2
7
- data.tar.gz: 9f084082d35aa632075a8ad7cabb52226543696de205d393fac3d144668aede680888697578387d4d98aaaa194be8db93abd039e05f3d2f00974ebd5a1569a55
6
+ metadata.gz: f7c1b77e96ab579826e0358db23cf423818099128b95f16976047c1fa80c5c8d691c0c7c5096c13fc43e9572ed8e7f6b46a23373e954a389466bf2d47109a4b8
7
+ data.tar.gz: 96391f9d993c8d62ada9dd6a92512896fc15ea6708cd83f3e976e14fdb2a97a69d2fbcce7b36fd04446db3b5e5c02d58fb8da14995155137810976a694596425
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
- VERSION = "0.3.0"
23
+ VERSION = "0.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -57,8 +57,7 @@ module Google
57
57
  #
58
58
  # ## About DatasetService
59
59
  #
60
- # The service that handles the CRUD of Vertex AI Dataset and its child
61
- # resources.
60
+ # The service that manages Vertex AI Dataset and its child resources.
62
61
  #
63
62
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
64
63
  # Defaults to `:v1`.
@@ -469,6 +468,37 @@ module Google
469
468
  service_module.const_get(:Client).new(&block)
470
469
  end
471
470
 
471
+ ##
472
+ # Create a new client object for ScheduleService.
473
+ #
474
+ # By default, this returns an instance of
475
+ # [Google::Cloud::AIPlatform::V1::ScheduleService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-ScheduleService-Client)
476
+ # for a gRPC client for version V1 of the API.
477
+ # However, you can specify a different API version by passing it in the
478
+ # `version` parameter. If the ScheduleService service is
479
+ # supported by that API version, and the corresponding gem is available, the
480
+ # appropriate versioned client will be returned.
481
+ #
482
+ # ## About ScheduleService
483
+ #
484
+ # A service for creating and managing Vertex AI's Schedule resources to
485
+ # periodically launch shceudled runs to make API calls.
486
+ #
487
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
488
+ # Defaults to `:v1`.
489
+ # @return [::Object] A client object for the specified version.
490
+ #
491
+ def self.schedule_service version: :v1, &block
492
+ require "google/cloud/ai_platform/#{version.to_s.downcase}"
493
+
494
+ package_name = Google::Cloud::AIPlatform
495
+ .constants
496
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
497
+ .first
498
+ service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ScheduleService)
499
+ service_module.const_get(:Client).new(&block)
500
+ end
501
+
472
502
  ##
473
503
  # Create a new client object for SpecialistPoolService.
474
504
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-ai_platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2023-06-16 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-ai_platform-v1