google-cloud-ai_platform-v1 0.33.0 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +1796 -0
  3. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/credentials.rb +47 -0
  4. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +787 -0
  5. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/paths.rb +111 -0
  6. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +51 -0
  7. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +431 -0
  8. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/credentials.rb +47 -0
  9. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/paths.rb +54 -0
  10. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +47 -0
  11. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +1498 -0
  12. data/lib/google/cloud/ai_platform/v1/feature_registry_service/credentials.rb +47 -0
  13. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +787 -0
  14. data/lib/google/cloud/ai_platform/v1/feature_registry_service/paths.rb +139 -0
  15. data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +51 -0
  16. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +20 -7
  17. data/lib/google/cloud/ai_platform/v1/featurestore_service/paths.rb +53 -8
  18. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +528 -0
  19. data/lib/google/cloud/ai_platform/v1/llm_utility_service/credentials.rb +47 -0
  20. data/lib/google/cloud/ai_platform/v1/llm_utility_service/paths.rb +78 -0
  21. data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +49 -0
  22. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +374 -0
  23. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  24. data/lib/google/cloud/ai_platform/v1.rb +5 -1
  25. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +1 -1
  26. data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +50 -0
  27. data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +79 -0
  28. data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_services_pb.rb +71 -0
  29. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +50 -0
  30. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +56 -0
  31. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +44 -0
  32. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  33. data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +66 -0
  34. data/lib/google/cloud/aiplatform/v1/feature_registry_service_services_pb.rb +64 -0
  35. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +51 -0
  36. data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +51 -0
  37. data/lib/google/cloud/aiplatform/v1/index_pb.rb +3 -1
  38. data/lib/google/cloud/aiplatform/v1/llm_utility_service_pb.rb +52 -0
  39. data/lib/google/cloud/aiplatform/v1/llm_utility_service_services_pb.rb +47 -0
  40. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
  41. data/lib/google/cloud/aiplatform/v1/model_pb.rb +5 -1
  42. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +9 -1
  43. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +10 -0
  44. data/lib/google/cloud/aiplatform/v1/study_pb.rb +5 -1
  45. data/proto_docs/google/api/client.rb +13 -0
  46. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +6 -0
  47. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +21 -10
  48. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +91 -0
  49. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +124 -0
  50. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +458 -0
  51. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +102 -0
  52. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +208 -0
  53. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +131 -0
  54. data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +48 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +32 -7
  56. data/proto_docs/google/cloud/aiplatform/v1/index.rb +53 -0
  57. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -4
  58. data/proto_docs/google/cloud/aiplatform/v1/llm_utility_service.rb +64 -0
  59. data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +4 -0
  60. data/proto_docs/google/cloud/aiplatform/v1/model.rb +61 -0
  61. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +140 -2
  62. data/proto_docs/google/cloud/aiplatform/v1/study.rb +75 -0
  63. metadata +40 -2
@@ -0,0 +1,139 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AIPlatform
23
+ module V1
24
+ module FeatureRegistryService
25
+ # Path helper methods for the FeatureRegistryService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified EntityType resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param featurestore [String]
37
+ # @param entity_type [String]
38
+ #
39
+ # @return [::String]
40
+ def entity_type_path project:, location:, featurestore:, entity_type:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "featurestore cannot contain /" if featurestore.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/featurestores/#{featurestore}/entityTypes/#{entity_type}"
46
+ end
47
+
48
+ ##
49
+ # Create a fully-qualified Feature resource string.
50
+ #
51
+ # @overload feature_path(project:, location:, featurestore:, entity_type:, feature:)
52
+ # The resource will be in the following format:
53
+ #
54
+ # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
55
+ #
56
+ # @param project [String]
57
+ # @param location [String]
58
+ # @param featurestore [String]
59
+ # @param entity_type [String]
60
+ # @param feature [String]
61
+ #
62
+ # @overload feature_path(project:, location:, feature_group:, feature:)
63
+ # The resource will be in the following format:
64
+ #
65
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
66
+ #
67
+ # @param project [String]
68
+ # @param location [String]
69
+ # @param feature_group [String]
70
+ # @param feature [String]
71
+ #
72
+ # @return [::String]
73
+ def feature_path **args
74
+ resources = {
75
+ "entity_type:feature:featurestore:location:project" => (proc do |project:, location:, featurestore:, entity_type:, feature:|
76
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
77
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
78
+ raise ::ArgumentError, "featurestore cannot contain /" if featurestore.to_s.include? "/"
79
+ raise ::ArgumentError, "entity_type cannot contain /" if entity_type.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/featurestores/#{featurestore}/entityTypes/#{entity_type}/features/#{feature}"
82
+ end),
83
+ "feature:feature_group:location:project" => (proc do |project:, location:, feature_group:, feature:|
84
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
+ raise ::ArgumentError, "feature_group cannot contain /" if feature_group.to_s.include? "/"
87
+
88
+ "projects/#{project}/locations/#{location}/featureGroups/#{feature_group}/features/#{feature}"
89
+ end)
90
+ }
91
+
92
+ resource = resources[args.keys.sort.join(":")]
93
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
94
+ resource.call(**args)
95
+ end
96
+
97
+ ##
98
+ # Create a fully-qualified FeatureGroup resource string.
99
+ #
100
+ # The resource will be in the following format:
101
+ #
102
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}`
103
+ #
104
+ # @param project [String]
105
+ # @param location [String]
106
+ # @param feature_group [String]
107
+ #
108
+ # @return [::String]
109
+ def feature_group_path project:, location:, feature_group:
110
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
111
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
112
+
113
+ "projects/#{project}/locations/#{location}/featureGroups/#{feature_group}"
114
+ end
115
+
116
+ ##
117
+ # Create a fully-qualified Location resource string.
118
+ #
119
+ # The resource will be in the following format:
120
+ #
121
+ # `projects/{project}/locations/{location}`
122
+ #
123
+ # @param project [String]
124
+ # @param location [String]
125
+ #
126
+ # @return [::String]
127
+ def location_path project:, location:
128
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
129
+
130
+ "projects/#{project}/locations/#{location}"
131
+ end
132
+
133
+ extend self
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/ai_platform/v1/version"
24
+
25
+ require "google/cloud/ai_platform/v1/feature_registry_service/credentials"
26
+ require "google/cloud/ai_platform/v1/feature_registry_service/paths"
27
+ require "google/cloud/ai_platform/v1/feature_registry_service/operations"
28
+ require "google/cloud/ai_platform/v1/feature_registry_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module AIPlatform
33
+ module V1
34
+ ##
35
+ # The service that handles CRUD and List for resources for
36
+ # FeatureRegistry.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/cloud/ai_platform/v1/feature_registry_service"
41
+ # client = ::Google::Cloud::AIPlatform::V1::FeatureRegistryService::Client.new
42
+ #
43
+ module FeatureRegistryService
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "feature_registry_service", "helpers.rb"
51
+ require "google/cloud/ai_platform/v1/feature_registry_service/helpers" if ::File.file? helper_path
@@ -1274,9 +1274,11 @@ module Google
1274
1274
  # the default parameter values, pass an empty Hash as a request object (see above).
1275
1275
  #
1276
1276
  # @param parent [::String]
1277
- # Required. The resource name of the EntityType to create a Feature.
1278
- # Format:
1277
+ # Required. The resource name of the EntityType or FeatureGroup to create a
1278
+ # Feature. Format for entity_type as parent:
1279
1279
  # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
1280
+ # Format for feature_group as parent:
1281
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}`
1280
1282
  # @param feature [::Google::Cloud::AIPlatform::V1::Feature, ::Hash]
1281
1283
  # Required. The Feature to create.
1282
1284
  # @param feature_id [::String]
@@ -1286,7 +1288,7 @@ module Google
1286
1288
  # This value may be up to 128 characters, and valid characters are
1287
1289
  # `[a-z0-9_]`. The first character cannot be a number.
1288
1290
  #
1289
- # The value must be unique within an EntityType.
1291
+ # The value must be unique within an EntityType/FeatureGroup.
1290
1292
  #
1291
1293
  # @yield [response, operation] Access the result along with the RPC operation
1292
1294
  # @yieldparam response [::Gapic::Operation]
@@ -1481,8 +1483,10 @@ module Google
1481
1483
  #
1482
1484
  # @param name [::String]
1483
1485
  # Required. The name of the Feature resource.
1484
- # Format:
1486
+ # Format for entity_type as parent:
1485
1487
  # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
1488
+ # Format for feature_group as parent:
1489
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}`
1486
1490
  #
1487
1491
  # @yield [response, operation] Access the result along with the RPC operation
1488
1492
  # @yieldparam response [::Google::Cloud::AIPlatform::V1::Feature]
@@ -1568,8 +1572,10 @@ module Google
1568
1572
  #
1569
1573
  # @param parent [::String]
1570
1574
  # Required. The resource name of the Location to list Features.
1571
- # Format:
1575
+ # Format for entity_type as parent:
1572
1576
  # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
1577
+ # Format for feature_group as parent:
1578
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}`
1573
1579
  # @param filter [::String]
1574
1580
  # Lists the Features that match the filter expression. The following
1575
1581
  # filters are supported:
@@ -1599,10 +1605,14 @@ module Google
1599
1605
  # @param page_token [::String]
1600
1606
  # A page token, received from a previous
1601
1607
  # {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#list_features FeaturestoreService.ListFeatures}
1608
+ # call or
1609
+ # {::Google::Cloud::AIPlatform::V1::FeatureRegistryService::Client#list_features FeatureRegistryService.ListFeatures}
1602
1610
  # call. Provide this to retrieve the subsequent page.
1603
1611
  #
1604
1612
  # When paginating, all other parameters provided to
1605
1613
  # {::Google::Cloud::AIPlatform::V1::FeaturestoreService::Client#list_features FeaturestoreService.ListFeatures}
1614
+ # or or
1615
+ # {::Google::Cloud::AIPlatform::V1::FeatureRegistryService::Client#list_features FeatureRegistryService.ListFeatures}
1606
1616
  # must match the call that provided the page token.
1607
1617
  # @param order_by [::String]
1608
1618
  # A comma-separated list of fields to order by, sorted in ascending order.
@@ -1610,12 +1620,13 @@ module Google
1610
1620
  # Supported fields:
1611
1621
  #
1612
1622
  # * `feature_id`
1613
- # * `value_type`
1623
+ # * `value_type` (Not supported for FeatureRegistry Feature)
1614
1624
  # * `create_time`
1615
1625
  # * `update_time`
1616
1626
  # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
1617
1627
  # Mask specifying which fields to read.
1618
1628
  # @param latest_stats_count [::Integer]
1629
+ # Only applicable for Vertex AI Feature Store (Legacy).
1619
1630
  # If set, return the most recent
1620
1631
  # {::Google::Cloud::AIPlatform::V1::ListFeaturesRequest#latest_stats_count ListFeaturesRequest.latest_stats_count}
1621
1632
  # of stats for each Feature in response. Valid value is [0, 10]. If number of
@@ -1715,6 +1726,7 @@ module Google
1715
1726
  # updated.
1716
1727
  # Format:
1717
1728
  # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
1729
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
1718
1730
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1719
1731
  # Field mask is used to specify the fields to be overwritten in the
1720
1732
  # Features resource by the update.
@@ -1728,7 +1740,7 @@ module Google
1728
1740
  #
1729
1741
  # * `description`
1730
1742
  # * `labels`
1731
- # * `disable_monitoring`
1743
+ # * `disable_monitoring` (Not supported for FeatureRegistry Feature)
1732
1744
  #
1733
1745
  # @yield [response, operation] Access the result along with the RPC operation
1734
1746
  # @yieldparam response [::Google::Cloud::AIPlatform::V1::Feature]
@@ -1816,6 +1828,7 @@ module Google
1816
1828
  # Required. The name of the Features to be deleted.
1817
1829
  # Format:
1818
1830
  # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
1831
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
1819
1832
  #
1820
1833
  # @yield [response, operation] Access the result along with the RPC operation
1821
1834
  # @yieldparam response [::Gapic::Operation]
@@ -48,24 +48,69 @@ module Google
48
48
  ##
49
49
  # Create a fully-qualified Feature resource string.
50
50
  #
51
+ # @overload feature_path(project:, location:, featurestore:, entity_type:, feature:)
52
+ # The resource will be in the following format:
53
+ #
54
+ # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
55
+ #
56
+ # @param project [String]
57
+ # @param location [String]
58
+ # @param featurestore [String]
59
+ # @param entity_type [String]
60
+ # @param feature [String]
61
+ #
62
+ # @overload feature_path(project:, location:, feature_group:, feature:)
63
+ # The resource will be in the following format:
64
+ #
65
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
66
+ #
67
+ # @param project [String]
68
+ # @param location [String]
69
+ # @param feature_group [String]
70
+ # @param feature [String]
71
+ #
72
+ # @return [::String]
73
+ def feature_path **args
74
+ resources = {
75
+ "entity_type:feature:featurestore:location:project" => (proc do |project:, location:, featurestore:, entity_type:, feature:|
76
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
77
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
78
+ raise ::ArgumentError, "featurestore cannot contain /" if featurestore.to_s.include? "/"
79
+ raise ::ArgumentError, "entity_type cannot contain /" if entity_type.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/featurestores/#{featurestore}/entityTypes/#{entity_type}/features/#{feature}"
82
+ end),
83
+ "feature:feature_group:location:project" => (proc do |project:, location:, feature_group:, feature:|
84
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
+ raise ::ArgumentError, "feature_group cannot contain /" if feature_group.to_s.include? "/"
87
+
88
+ "projects/#{project}/locations/#{location}/featureGroups/#{feature_group}/features/#{feature}"
89
+ end)
90
+ }
91
+
92
+ resource = resources[args.keys.sort.join(":")]
93
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
94
+ resource.call(**args)
95
+ end
96
+
97
+ ##
98
+ # Create a fully-qualified FeatureGroup resource string.
99
+ #
51
100
  # The resource will be in the following format:
52
101
  #
53
- # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
102
+ # `projects/{project}/locations/{location}/featureGroups/{feature_group}`
54
103
  #
55
104
  # @param project [String]
56
105
  # @param location [String]
57
- # @param featurestore [String]
58
- # @param entity_type [String]
59
- # @param feature [String]
106
+ # @param feature_group [String]
60
107
  #
61
108
  # @return [::String]
62
- def feature_path project:, location:, featurestore:, entity_type:, feature:
109
+ def feature_group_path project:, location:, feature_group:
63
110
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
64
111
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
65
- raise ::ArgumentError, "featurestore cannot contain /" if featurestore.to_s.include? "/"
66
- raise ::ArgumentError, "entity_type cannot contain /" if entity_type.to_s.include? "/"
67
112
 
68
- "projects/#{project}/locations/#{location}/featurestores/#{featurestore}/entityTypes/#{entity_type}/features/#{feature}"
113
+ "projects/#{project}/locations/#{location}/featureGroups/#{feature_group}"
69
114
  end
70
115
 
71
116
  ##