google-apis-firebaseml_v2beta 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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::CountTokensRequest] count_tokens_request_object
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::CountTokensResponse] parsed result object
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::CountTokensResponse]
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, count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
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::CountTokensRequest::Representation
79
- command.request_object = count_tokens_request_object
80
- command.response_representation = Google::Apis::FirebasemlV2beta::CountTokensResponse::Representation
81
- command.response_class = Google::Apis::FirebasemlV2beta::CountTokensResponse
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::GenerateContentRequest] generate_content_request_object
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::GenerateContentResponse] parsed result object
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::GenerateContentResponse]
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, generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
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::GenerateContentRequest::Representation
113
- command.request_object = generate_content_request_object
114
- command.response_representation = Google::Apis::FirebasemlV2beta::GenerateContentResponse::Representation
115
- command.response_class = Google::Apis::FirebasemlV2beta::GenerateContentResponse
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::GenerateContentRequest] generate_content_request_object
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::GenerateContentResponse] parsed result object
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::GenerateContentResponse]
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, generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
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::GenerateContentRequest::Representation
147
- command.request_object = generate_content_request_object
148
- command.response_representation = Google::Apis::FirebasemlV2beta::GenerateContentResponse::Representation
149
- command.response_class = Google::Apis::FirebasemlV2beta::GenerateContentResponse
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.6.0
4
+ version: 0.7.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-02 00:00:00.000000000 Z
11
+ date: 2024-06-16 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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.7.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: []