google-apis-aiplatform_v1 0.16.0 → 0.17.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: 04ed12ba2ecb19ef93af13a66775c8d4e94b31ec6b1e623fbc8238e94862de1e
4
- data.tar.gz: f47e2c8850af9b80e995d57c84e5ca0af9f0ad2e221b23772be919b49d94f916
3
+ metadata.gz: 136c87b753807d5351ecb29e2cb0d5c0c07895ba0e1c47c0e789812119687aed
4
+ data.tar.gz: 216a2baf98588cfbf4f5b650080ed740ce85f6be8b50d30592bd56948e47bfa4
5
5
  SHA512:
6
- metadata.gz: 0e8d8cb5c890f6fefd818ae3c59c6deb6b3a723f42d2e7b480abbc50b8499217e36dd12f524760044152a6649f9bd2e16a102eb0fac1e27dd6ce9aa692b411dd
7
- data.tar.gz: 4532c92fdef13fa18f574624c7de606d4a0a88f05ff61e9320f562000f1f995837c52ed82fe04e4ad2ae6d95208be769c1891893f6b99209093bf730e1ab0335
6
+ metadata.gz: 7258407cd22f27261d1ef4630e2bbaab13e401a2ffa652ecdfc86d7f847bf8e4f888eb72e08b2f9f1f499b3abaa1817c1d0cf6eea21ff000016c38fa182bc383
7
+ data.tar.gz: a0e85c980696c1e07ac8592e10fe3dcc0fe2365a9bc2d2ca785226fc536f7931fb8d26df7986d82261fed76a610fd00a926061d9cccf05057abfb108c1b47317
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-aiplatform_v1
2
2
 
3
+ ### v0.17.0 (2024-03-17)
4
+
5
+ * Regenerated from discovery document revision 20240301
6
+
3
7
  ### v0.16.0 (2024-03-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20240229
@@ -777,6 +777,11 @@ module Google
777
777
  class CloudAiNlLlmProtoServicePart
778
778
  include Google::Apis::Core::Hashable
779
779
 
780
+ # Metadata describes the original input document content.
781
+ # Corresponds to the JSON property `documentMetadata`
782
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartDocumentMetadata]
783
+ attr_accessor :document_metadata
784
+
780
785
  # Represents file data.
781
786
  # Corresponds to the JSON property `fileData`
782
787
  # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData]
@@ -813,6 +818,7 @@ module Google
813
818
 
814
819
  # Update properties of this object
815
820
  def update!(**args)
821
+ @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
816
822
  @file_data = args[:file_data] if args.key?(:file_data)
817
823
  @function_call = args[:function_call] if args.key?(:function_call)
818
824
  @function_response = args[:function_response] if args.key?(:function_response)
@@ -854,6 +860,32 @@ module Google
854
860
  end
855
861
  end
856
862
 
863
+ # Metadata describes the original input document content.
864
+ class CloudAiNlLlmProtoServicePartDocumentMetadata
865
+ include Google::Apis::Core::Hashable
866
+
867
+ # Represents arbitrary blob data input.
868
+ # Corresponds to the JSON property `originalDocumentBlob`
869
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob]
870
+ attr_accessor :original_document_blob
871
+
872
+ # The (1-indexed) page number of the image in the original document. The first
873
+ # page carries the original document content and mime type.
874
+ # Corresponds to the JSON property `pageNumber`
875
+ # @return [Fixnum]
876
+ attr_accessor :page_number
877
+
878
+ def initialize(**args)
879
+ update!(**args)
880
+ end
881
+
882
+ # Update properties of this object
883
+ def update!(**args)
884
+ @original_document_blob = args[:original_document_blob] if args.key?(:original_document_blob)
885
+ @page_number = args[:page_number] if args.key?(:page_number)
886
+ end
887
+ end
888
+
857
889
  # Represents file data.
858
890
  class CloudAiNlLlmProtoServicePartFileData
859
891
  include Google::Apis::Core::Hashable
@@ -1028,6 +1060,11 @@ module Google
1028
1060
  attr_accessor :flagged
1029
1061
  alias_method :flagged?, :flagged
1030
1062
 
1063
+ # The influential terms that could potentially block the response.
1064
+ # Corresponds to the JSON property `influentialTerms`
1065
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm>]
1066
+ attr_accessor :influential_terms
1067
+
1031
1068
  # The RAI category.
1032
1069
  # Corresponds to the JSON property `raiCategory`
1033
1070
  # @return [String]
@@ -1046,11 +1083,49 @@ module Google
1046
1083
  def update!(**args)
1047
1084
  @confidence = args[:confidence] if args.key?(:confidence)
1048
1085
  @flagged = args[:flagged] if args.key?(:flagged)
1086
+ @influential_terms = args[:influential_terms] if args.key?(:influential_terms)
1049
1087
  @rai_category = args[:rai_category] if args.key?(:rai_category)
1050
1088
  @score = args[:score] if args.key?(:score)
1051
1089
  end
1052
1090
  end
1053
1091
 
1092
+ # The influential term that could potentially block the response.
1093
+ class CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
1094
+ include Google::Apis::Core::Hashable
1095
+
1096
+ # The beginning offset of the influential term.
1097
+ # Corresponds to the JSON property `beginOffset`
1098
+ # @return [Fixnum]
1099
+ attr_accessor :begin_offset
1100
+
1101
+ # The confidence score of the influential term.
1102
+ # Corresponds to the JSON property `confidence`
1103
+ # @return [Float]
1104
+ attr_accessor :confidence
1105
+
1106
+ # The source of the influential term, prompt or response.
1107
+ # Corresponds to the JSON property `source`
1108
+ # @return [String]
1109
+ attr_accessor :source
1110
+
1111
+ # The influential term.
1112
+ # Corresponds to the JSON property `term`
1113
+ # @return [String]
1114
+ attr_accessor :term
1115
+
1116
+ def initialize(**args)
1117
+ update!(**args)
1118
+ end
1119
+
1120
+ # Update properties of this object
1121
+ def update!(**args)
1122
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
1123
+ @confidence = args[:confidence] if args.key?(:confidence)
1124
+ @source = args[:source] if args.key?(:source)
1125
+ @term = args[:term] if args.key?(:term)
1126
+ end
1127
+ end
1128
+
1054
1129
  # Safety rating corresponding to the generated content.
1055
1130
  class CloudAiNlLlmProtoServiceSafetyRating
1056
1131
  include Google::Apis::Core::Hashable
@@ -9210,7 +9285,7 @@ module Google
9210
9285
  end
9211
9286
  end
9212
9287
 
9213
- # The request message for MatchService.FindNeighbors.
9288
+ # LINT.IfChange The request message for MatchService.FindNeighbors.
9214
9289
  class GoogleCloudAiplatformV1FindNeighborsRequest
9215
9290
  include Google::Apis::Core::Hashable
9216
9291
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1
18
18
  # Version of the google-apis-aiplatform_v1 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240229"
25
+ REVISION = "20240301"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class CloudAiNlLlmProtoServicePartDocumentMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class CloudAiNlLlmProtoServicePartFileData
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class CloudAiNlLlmProtoServiceSafetyRating
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -5427,6 +5439,8 @@ module Google
5427
5439
  class CloudAiNlLlmProtoServicePart
5428
5440
  # @private
5429
5441
  class Representation < Google::Apis::Core::JsonRepresentation
5442
+ property :document_metadata, as: 'documentMetadata', class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartDocumentMetadata, decorator: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartDocumentMetadata::Representation
5443
+
5430
5444
  property :file_data, as: 'fileData', class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData, decorator: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData::Representation
5431
5445
 
5432
5446
  property :function_call, as: 'functionCall', class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionCall, decorator: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionCall::Representation
@@ -5451,6 +5465,15 @@ module Google
5451
5465
  end
5452
5466
  end
5453
5467
 
5468
+ class CloudAiNlLlmProtoServicePartDocumentMetadata
5469
+ # @private
5470
+ class Representation < Google::Apis::Core::JsonRepresentation
5471
+ property :original_document_blob, as: 'originalDocumentBlob', class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob, decorator: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob::Representation
5472
+
5473
+ property :page_number, as: 'pageNumber'
5474
+ end
5475
+ end
5476
+
5454
5477
  class CloudAiNlLlmProtoServicePartFileData
5455
5478
  # @private
5456
5479
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5500,11 +5523,23 @@ module Google
5500
5523
  class Representation < Google::Apis::Core::JsonRepresentation
5501
5524
  property :confidence, as: 'confidence'
5502
5525
  property :flagged, as: 'flagged'
5526
+ collection :influential_terms, as: 'influentialTerms', class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm, decorator: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm::Representation
5527
+
5503
5528
  property :rai_category, as: 'raiCategory'
5504
5529
  property :score, as: 'score'
5505
5530
  end
5506
5531
  end
5507
5532
 
5533
+ class CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
5534
+ # @private
5535
+ class Representation < Google::Apis::Core::JsonRepresentation
5536
+ property :begin_offset, as: 'beginOffset'
5537
+ property :confidence, as: 'confidence'
5538
+ property :source, as: 'source'
5539
+ property :term, as: 'term'
5540
+ end
5541
+ end
5542
+
5508
5543
  class CloudAiNlLlmProtoServiceSafetyRating
5509
5544
  # @private
5510
5545
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3436,8 +3436,9 @@ module Google
3436
3436
  # Endpoint's resource name. * `display_name` supports = and, != * `labels`
3437
3437
  # supports general map functions that is: * `labels.key=value` - key:value
3438
3438
  # equality * `labels.key:* or labels:key - key existence * A key including a
3439
- # space must be quoted. `labels."a key"`. Some examples: * `endpoint=1` * `
3440
- # displayName="myDisplayName"` * `labels.myKey="myValue"`
3439
+ # space must be quoted. `labels."a key"`. * `base_model_name` only supports =
3440
+ # Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="
3441
+ # myValue"` * `baseModelName="text-bison"`
3441
3442
  # @param [String] order_by
3442
3443
  # A comma-separated list of fields to order by, sorted in ascending order. Use "
3443
3444
  # desc" after a field name for descending. Supported fields: * `display_name` * `
@@ -11801,8 +11802,9 @@ module Google
11801
11802
  # `display_name` supports = and != * `labels` supports general map functions
11802
11803
  # that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:
11803
11804
  # key - key existence * A key including a space must be quoted. `labels."a key"`.
11804
- # Some examples: * `model=1234` * `displayName="myDisplayName"` * `labels.myKey=
11805
- # "myValue"`
11805
+ # * `base_model_name` only supports = Some examples: * `model=1234` * `
11806
+ # displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-
11807
+ # bison"`
11806
11808
  # @param [String] order_by
11807
11809
  # A comma-separated list of fields to order by, sorted in ascending order. Use "
11808
11810
  # desc" after a field name for descending. Supported fields: * `display_name` * `
@@ -18375,6 +18377,74 @@ module Google
18375
18377
  execute_or_queue_command(command, &block)
18376
18378
  end
18377
18379
 
18380
+ # Starts asynchronous cancellation on a long-running operation. The server makes
18381
+ # a best effort to cancel the operation, but success is not guaranteed. If the
18382
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
18383
+ # Clients can use Operations.GetOperation or other methods to check whether the
18384
+ # cancellation succeeded or whether the operation completed despite cancellation.
18385
+ # On successful cancellation, the operation is not deleted; instead, it becomes
18386
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
18387
+ # corresponding to `Code.CANCELLED`.
18388
+ # @param [String] name
18389
+ # The name of the operation resource to be cancelled.
18390
+ # @param [String] fields
18391
+ # Selector specifying which fields to include in a partial response.
18392
+ # @param [String] quota_user
18393
+ # Available to use for quota purposes for server-side applications. Can be any
18394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18395
+ # @param [Google::Apis::RequestOptions] options
18396
+ # Request-specific options
18397
+ #
18398
+ # @yield [result, err] Result & error if block supplied
18399
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
18400
+ # @yieldparam err [StandardError] error object if request failed
18401
+ #
18402
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
18403
+ #
18404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18407
+ def cancel_project_location_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
18408
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
18409
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
18410
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
18411
+ command.params['name'] = name unless name.nil?
18412
+ command.query['fields'] = fields unless fields.nil?
18413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18414
+ execute_or_queue_command(command, &block)
18415
+ end
18416
+
18417
+ # Gets the latest state of a long-running operation. Clients can use this method
18418
+ # to poll the operation result at intervals as recommended by the API service.
18419
+ # @param [String] name
18420
+ # The name of the operation resource.
18421
+ # @param [String] fields
18422
+ # Selector specifying which fields to include in a partial response.
18423
+ # @param [String] quota_user
18424
+ # Available to use for quota purposes for server-side applications. Can be any
18425
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18426
+ # @param [Google::Apis::RequestOptions] options
18427
+ # Request-specific options
18428
+ #
18429
+ # @yield [result, err] Result & error if block supplied
18430
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
18431
+ # @yieldparam err [StandardError] error object if request failed
18432
+ #
18433
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
18434
+ #
18435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18438
+ def get_project_location_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
18439
+ command = make_simple_command(:get, 'v1/{+name}', options)
18440
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
18441
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
18442
+ command.params['name'] = name unless name.nil?
18443
+ command.query['fields'] = fields unless fields.nil?
18444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18445
+ execute_or_queue_command(command, &block)
18446
+ end
18447
+
18378
18448
  # Gets a Model Garden publisher model.
18379
18449
  # @param [String] name
18380
18450
  # Required. The name of the PublisherModel resource. Format: `publishers/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.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-03-10 00:00:00.000000000 Z
11
+ date: 2024-03-17 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-aiplatform_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
63
63
  post_install_message:
64
64
  rdoc_options: []