google-apis-firebaseml_v2beta 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/firebaseml_v2beta/classes.rb +461 -206
- data/lib/google/apis/firebaseml_v2beta/gem_version.rb +2 -2
- data/lib/google/apis/firebaseml_v2beta/representations.rb +253 -124
- data/lib/google/apis/firebaseml_v2beta/service.rb +24 -24
- metadata +3 -3
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
# @param [String] endpoint
|
56
56
|
# Required. The name of the Endpoint requested to perform token counting. Format:
|
57
57
|
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
58
|
-
# @param [Google::Apis::FirebasemlV2beta::
|
58
|
+
# @param [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object
|
59
59
|
# @param [String] fields
|
60
60
|
# Selector specifying which fields to include in a partial response.
|
61
61
|
# @param [String] quota_user
|
@@ -65,20 +65,20 @@ module Google
|
|
65
65
|
# Request-specific options
|
66
66
|
#
|
67
67
|
# @yield [result, err] Result & error if block supplied
|
68
|
-
# @yieldparam result [Google::Apis::FirebasemlV2beta::
|
68
|
+
# @yieldparam result [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object
|
69
69
|
# @yieldparam err [StandardError] error object if request failed
|
70
70
|
#
|
71
|
-
# @return [Google::Apis::FirebasemlV2beta::
|
71
|
+
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensResponse]
|
72
72
|
#
|
73
73
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
74
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
75
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
-
def count_model_tokens(endpoint,
|
76
|
+
def count_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
77
|
command = make_simple_command(:post, 'v2beta/{+endpoint}:countTokens', options)
|
78
|
-
command.request_representation = Google::Apis::FirebasemlV2beta::
|
79
|
-
command.request_object =
|
80
|
-
command.response_representation = Google::Apis::FirebasemlV2beta::
|
81
|
-
command.response_class = Google::Apis::FirebasemlV2beta::
|
78
|
+
command.request_representation = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation
|
79
|
+
command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object
|
80
|
+
command.response_representation = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation
|
81
|
+
command.response_class = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensResponse
|
82
82
|
command.params['endpoint'] = endpoint unless endpoint.nil?
|
83
83
|
command.query['fields'] = fields unless fields.nil?
|
84
84
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -89,7 +89,7 @@ module Google
|
|
89
89
|
# @param [String] model
|
90
90
|
# Required. The name of the publisher model requested to serve the prediction.
|
91
91
|
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
92
|
-
# @param [Google::Apis::FirebasemlV2beta::
|
92
|
+
# @param [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object
|
93
93
|
# @param [String] fields
|
94
94
|
# Selector specifying which fields to include in a partial response.
|
95
95
|
# @param [String] quota_user
|
@@ -99,20 +99,20 @@ module Google
|
|
99
99
|
# Request-specific options
|
100
100
|
#
|
101
101
|
# @yield [result, err] Result & error if block supplied
|
102
|
-
# @yieldparam result [Google::Apis::FirebasemlV2beta::
|
102
|
+
# @yieldparam result [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object
|
103
103
|
# @yieldparam err [StandardError] error object if request failed
|
104
104
|
#
|
105
|
-
# @return [Google::Apis::FirebasemlV2beta::
|
105
|
+
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse]
|
106
106
|
#
|
107
107
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
108
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
109
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
-
def generate_model_content(model,
|
110
|
+
def generate_model_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
111
111
|
command = make_simple_command(:post, 'v2beta/{+model}:generateContent', options)
|
112
|
-
command.request_representation = Google::Apis::FirebasemlV2beta::
|
113
|
-
command.request_object =
|
114
|
-
command.response_representation = Google::Apis::FirebasemlV2beta::
|
115
|
-
command.response_class = Google::Apis::FirebasemlV2beta::
|
112
|
+
command.request_representation = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation
|
113
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object
|
114
|
+
command.response_representation = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation
|
115
|
+
command.response_class = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse
|
116
116
|
command.params['model'] = model unless model.nil?
|
117
117
|
command.query['fields'] = fields unless fields.nil?
|
118
118
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -123,7 +123,7 @@ module Google
|
|
123
123
|
# @param [String] model
|
124
124
|
# Required. The name of the publisher model requested to serve the prediction.
|
125
125
|
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
126
|
-
# @param [Google::Apis::FirebasemlV2beta::
|
126
|
+
# @param [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object
|
127
127
|
# @param [String] fields
|
128
128
|
# Selector specifying which fields to include in a partial response.
|
129
129
|
# @param [String] quota_user
|
@@ -133,20 +133,20 @@ module Google
|
|
133
133
|
# Request-specific options
|
134
134
|
#
|
135
135
|
# @yield [result, err] Result & error if block supplied
|
136
|
-
# @yieldparam result [Google::Apis::FirebasemlV2beta::
|
136
|
+
# @yieldparam result [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object
|
137
137
|
# @yieldparam err [StandardError] error object if request failed
|
138
138
|
#
|
139
|
-
# @return [Google::Apis::FirebasemlV2beta::
|
139
|
+
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse]
|
140
140
|
#
|
141
141
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
142
142
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
143
143
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
144
|
-
def stream_project_location_publisher_model_generate_content(model,
|
144
|
+
def stream_project_location_publisher_model_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
145
145
|
command = make_simple_command(:post, 'v2beta/{+model}:streamGenerateContent', options)
|
146
|
-
command.request_representation = Google::Apis::FirebasemlV2beta::
|
147
|
-
command.request_object =
|
148
|
-
command.response_representation = Google::Apis::FirebasemlV2beta::
|
149
|
-
command.response_class = Google::Apis::FirebasemlV2beta::
|
146
|
+
command.request_representation = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation
|
147
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object
|
148
|
+
command.response_representation = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation
|
149
|
+
command.response_class = Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponse
|
150
150
|
command.params['model'] = model unless model.nil?
|
151
151
|
command.query['fields'] = fields unless fields.nil?
|
152
152
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-firebaseml_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2024-06-
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.8.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|