Skip to content

Commit

Permalink
feat: Automated regeneration of aiplatform v1 client (#18952)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 10:15:47 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 5, 2024
1 parent f37c170 commit ebab635
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 11 deletions.
9 changes: 9 additions & 0 deletions api_names_out.yaml
Expand Up @@ -7696,6 +7696,7 @@
"/aiplatform:v1/GoogleCloudAiplatformV1GroundingMetadata/groundingAttributions/grounding_attribution": grounding_attribution
"/aiplatform:v1/GoogleCloudAiplatformV1GroundingMetadata/retrievalQueries": retrieval_queries
"/aiplatform:v1/GoogleCloudAiplatformV1GroundingMetadata/retrievalQueries/retrieval_query": retrieval_query
"/aiplatform:v1/GoogleCloudAiplatformV1GroundingMetadata/searchEntryPoint": search_entry_point
"/aiplatform:v1/GoogleCloudAiplatformV1GroundingMetadata/webSearchQueries": web_search_queries
"/aiplatform:v1/GoogleCloudAiplatformV1GroundingMetadata/webSearchQueries/web_search_query": web_search_query
"/aiplatform:v1/GoogleCloudAiplatformV1HyperparameterTuningJob": google_cloud_aiplatform_v1_hyperparameter_tuning_job
Expand Down Expand Up @@ -8712,6 +8713,7 @@
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/createApplication": create_application
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/deploy": deploy
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/deployGke": deploy_gke
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/fineTune": fine_tune
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/multiDeployVertex": multi_deploy_vertex
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/openEvaluationPipeline": open_evaluation_pipeline
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToAction/openFineTuningPipeline": open_fine_tuning_pipeline
Expand All @@ -8728,6 +8730,7 @@
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/automaticResources": automatic_resources
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/containerSpec": container_spec
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/dedicatedResources": dedicated_resources
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/deployTaskName": deploy_task_name
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/largeModelReference": large_model_reference
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/modelDisplayName": model_display_name
"/aiplatform:v1/GoogleCloudAiplatformV1PublisherModelCallToActionDeploy/publicArtifactUri": public_artifact_uri
Expand Down Expand Up @@ -9408,6 +9411,7 @@
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/promptType": prompt_type
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/stopSequences": stop_sequences
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/stopSequences/stop_sequence": stop_sequence
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/systemInstructionGcsUri": system_instruction_gcs_uri
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/temperature": temperature
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/text": text
"/aiplatform:v1/GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata/topK": top_k
Expand Down Expand Up @@ -9822,6 +9826,9 @@
"/aiplatform:v1/GoogleCloudAiplatformV1SearchDataItemsResponse/dataItemViews": data_item_views
"/aiplatform:v1/GoogleCloudAiplatformV1SearchDataItemsResponse/dataItemViews/data_item_view": data_item_view
"/aiplatform:v1/GoogleCloudAiplatformV1SearchDataItemsResponse/nextPageToken": next_page_token
"/aiplatform:v1/GoogleCloudAiplatformV1SearchEntryPoint": google_cloud_aiplatform_v1_search_entry_point
"/aiplatform:v1/GoogleCloudAiplatformV1SearchEntryPoint/renderedContent": rendered_content
"/aiplatform:v1/GoogleCloudAiplatformV1SearchEntryPoint/sdkBlob": sdk_blob
"/aiplatform:v1/GoogleCloudAiplatformV1SearchFeaturesResponse": google_cloud_aiplatform_v1_search_features_response
"/aiplatform:v1/GoogleCloudAiplatformV1SearchFeaturesResponse/features": features
"/aiplatform:v1/GoogleCloudAiplatformV1SearchFeaturesResponse/features/feature": feature
Expand Down Expand Up @@ -10453,6 +10460,7 @@
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoSegmentResult/endIndex": end_index
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoSegmentResult/rawText": raw_text
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoSegmentResult/segmentRecitationAction": segment_recitation_action
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoSegmentResult/sourceCategory": source_category
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoSegmentResult/startIndex": start_index
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoStreamRecitationResult": language_labs_aida_trust_recitation_proto_stream_recitation_result
"/aiplatform:v1/LanguageLabsAidaTrustRecitationProtoStreamRecitationResult/dynamicSegmentResults": dynamic_segment_results
Expand Down Expand Up @@ -10504,6 +10512,7 @@
"/aiplatform:v1/LearningGenaiRecitationSegmentResult/endIndex": end_index
"/aiplatform:v1/LearningGenaiRecitationSegmentResult/rawText": raw_text
"/aiplatform:v1/LearningGenaiRecitationSegmentResult/segmentRecitationAction": segment_recitation_action
"/aiplatform:v1/LearningGenaiRecitationSegmentResult/sourceCategory": source_category
"/aiplatform:v1/LearningGenaiRecitationSegmentResult/startIndex": start_index
"/aiplatform:v1/LearningGenaiRootCalculationType": learning_genai_root_calculation_type
"/aiplatform:v1/LearningGenaiRootCalculationType/scoreType": score_type
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-aiplatform_v1/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-aiplatform_v1

### v0.22.0 (2024-05-05)

* Regenerated from discovery document revision 20240429

### v0.21.0 (2024-04-28)

* Regenerated from discovery document revision 20240417
Expand Down
Expand Up @@ -9689,7 +9689,7 @@ class GoogleCloudAiplatformV1FindNeighborsResponseNeighbor
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1IndexDatapoint]
attr_accessor :datapoint

# The distance between the neighbor and the query vector.
# The distance between the neighbor and the dense embedding query.
# Corresponds to the JSON property `distance`
# @return [Float]
attr_accessor :distance
Expand Down Expand Up @@ -10154,6 +10154,11 @@ def update!(**args)
class GoogleCloudAiplatformV1GroundingMetadata
include Google::Apis::Core::Hashable

# Google search entry point.
# Corresponds to the JSON property `searchEntryPoint`
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SearchEntryPoint]
attr_accessor :search_entry_point

# Optional. Web search queries for the following-up web search.
# Corresponds to the JSON property `webSearchQueries`
# @return [Array<String>]
Expand All @@ -10165,6 +10170,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
end
end
Expand Down Expand Up @@ -10786,8 +10792,8 @@ class GoogleCloudAiplatformV1IndexDatapoint
# @return [String]
attr_accessor :datapoint_id

# Required. Feature embedding vector. An array of numbers with the length of [
# NearestNeighborSearchConfig.dimensions].
# Required. Feature embedding vector for dense index. An array of numbers with
# the length of [NearestNeighborSearchConfig.dimensions].
# Corresponds to the JSON property `featureVector`
# @return [Array<Float>]
attr_accessor :feature_vector
Expand Down Expand Up @@ -11087,7 +11093,7 @@ class GoogleCloudAiplatformV1IndexStats
# @return [Fixnum]
attr_accessor :shards_count

# Output only. The number of vectors in the Index.
# Output only. The number of dense vectors in the Index.
# Corresponds to the JSON property `vectorsCount`
# @return [Fixnum]
attr_accessor :vectors_count
Expand Down Expand Up @@ -17608,6 +17614,12 @@ class GoogleCloudAiplatformV1PublisherModelCallToAction
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke]
attr_accessor :deploy_gke

# The regional resource name or the URI. Key is region, e.g., us-central1,
# europe-west2, global, etc..
# Corresponds to the JSON property `fineTune`
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences]
attr_accessor :fine_tune

# The regional resource name or the URI. Key is region, e.g., us-central1,
# europe-west2, global, etc..
# Corresponds to the JSON property `openEvaluationPipeline`
Expand Down Expand Up @@ -17674,6 +17686,7 @@ def update!(**args)
@create_application = args[:create_application] if args.key?(:create_application)
@deploy = args[:deploy] if args.key?(:deploy)
@deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
@fine_tune = args[:fine_tune] if args.key?(:fine_tune)
@open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
@open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
@open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
Expand Down Expand Up @@ -17719,6 +17732,11 @@ class GoogleCloudAiplatformV1PublisherModelCallToActionDeploy
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
attr_accessor :dedicated_resources

# Optional. The name of the deploy task (e.g., "text to image generation").
# Corresponds to the JSON property `deployTaskName`
# @return [String]
attr_accessor :deploy_task_name

# Contains information about the Large Model.
# Corresponds to the JSON property `largeModelReference`
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LargeModelReference]
Expand Down Expand Up @@ -17756,6 +17774,7 @@ def update!(**args)
@automatic_resources = args[:automatic_resources] if args.key?(:automatic_resources)
@container_spec = args[:container_spec] if args.key?(:container_spec)
@dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
@deploy_task_name = args[:deploy_task_name] if args.key?(:deploy_task_name)
@large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
@model_display_name = args[:model_display_name] if args.key?(:model_display_name)
@public_artifact_uri = args[:public_artifact_uri] if args.key?(:public_artifact_uri)
Expand Down Expand Up @@ -22481,6 +22500,12 @@ class GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata
# @return [Array<String>]
attr_accessor :stop_sequences

# The Google Cloud Storage URI that stores the system instruction, starting with
# gs://.
# Corresponds to the JSON property `systemInstructionGcsUri`
# @return [String]
attr_accessor :system_instruction_gcs_uri

# Temperature value used for sampling set when the dataset was saved. This value
# is used to tune the degree of randomness.
# Corresponds to the JSON property `temperature`
Expand Down Expand Up @@ -22518,6 +22543,7 @@ def update!(**args)
@note = args[:note] if args.key?(:note)
@prompt_type = args[:prompt_type] if args.key?(:prompt_type)
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
@system_instruction_gcs_uri = args[:system_instruction_gcs_uri] if args.key?(:system_instruction_gcs_uri)
@temperature = args[:temperature] if args.key?(:temperature)
@text = args[:text] if args.key?(:text)
@top_k = args[:top_k] if args.key?(:top_k)
Expand Down Expand Up @@ -25751,6 +25777,33 @@ def update!(**args)
end
end

# Google search entry point.
class GoogleCloudAiplatformV1SearchEntryPoint
include Google::Apis::Core::Hashable

# Optional. Web content snippet that can be embedded in a web page or an app
# webview.
# Corresponds to the JSON property `renderedContent`
# @return [String]
attr_accessor :rendered_content

# Optional. Base64 encoded JSON representing array of tuple.
# Corresponds to the JSON property `sdkBlob`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :sdk_blob

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@rendered_content = args[:rendered_content] if args.key?(:rendered_content)
@sdk_blob = args[:sdk_blob] if args.key?(:sdk_blob)
end
end

# Response message for FeaturestoreService.SearchFeatures.
class GoogleCloudAiplatformV1SearchFeaturesResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -30752,7 +30805,8 @@ def update!(**args)
class LanguageLabsAidaTrustRecitationProtoSegmentResult
include Google::Apis::Core::Hashable

# The dataset the segment came from.
# The dataset the segment came from. Datasets change often as model evolves.
# Treat this field as informational only and avoid depending on it directly.
# Corresponds to the JSON property `attributionDataset`
# @return [String]
attr_accessor :attribution_dataset
Expand Down Expand Up @@ -30794,6 +30848,12 @@ class LanguageLabsAidaTrustRecitationProtoSegmentResult
# @return [String]
attr_accessor :segment_recitation_action

# The category of the source dataset where the segment came from. This is more
# stable than Dataset.
# Corresponds to the JSON property `sourceCategory`
# @return [String]
attr_accessor :source_category

# The segment boundary start (inclusive) and end index (exclusive) in the given
# text. In the streaming RPC, the indexes always start from the beginning of the
# first text in the entire stream. The indexes are measured in UTF-16 code units.
Expand All @@ -30814,6 +30874,7 @@ def update!(**args)
@end_index = args[:end_index] if args.key?(:end_index)
@raw_text = args[:raw_text] if args.key?(:raw_text)
@segment_recitation_action = args[:segment_recitation_action] if args.key?(:segment_recitation_action)
@source_category = args[:source_category] if args.key?(:source_category)
@start_index = args[:start_index] if args.key?(:start_index)
end
end
Expand Down Expand Up @@ -31107,7 +31168,8 @@ def update!(**args)
class LearningGenaiRecitationSegmentResult
include Google::Apis::Core::Hashable

# The dataset the segment came from.
# The dataset the segment came from. Datasets change often as model evolves.
# Treat this field as informational only and avoid depending on it directly.
# Corresponds to the JSON property `attributionDataset`
# @return [String]
attr_accessor :attribution_dataset
Expand Down Expand Up @@ -31149,6 +31211,12 @@ class LearningGenaiRecitationSegmentResult
# @return [String]
attr_accessor :segment_recitation_action

# The category of the source dataset where the segment came from. This is more
# stable than Dataset.
# Corresponds to the JSON property `sourceCategory`
# @return [String]
attr_accessor :source_category

# The segment boundary start (inclusive) and end index (exclusive) in the given
# text. In the streaming RPC, the indexes always start from the beginning of the
# first text in the entire stream. The indexes are measured in UTF-16 code units.
Expand All @@ -31169,6 +31237,7 @@ def update!(**args)
@end_index = args[:end_index] if args.key?(:end_index)
@raw_text = args[:raw_text] if args.key?(:raw_text)
@segment_recitation_action = args[:segment_recitation_action] if args.key?(:segment_recitation_action)
@source_category = args[:source_category] if args.key?(:source_category)
@start_index = args[:start_index] if args.key?(:start_index)
end
end
Expand Down Expand Up @@ -32967,8 +33036,9 @@ class LearningServingLlmMessageMetadata
attr_accessor :stream_terminated
alias_method :stream_terminated?, :stream_terminated

# NOT YET IMPLEMENTED. Aggregated number of total tokens decoded so far. For
# streaming, this is sum of all the tokens decoded so far i.e. aggregated count.
# Total tokens decoded so far per response_candidate. For streaming: Count of
# all the tokens decoded so far (aggregated count). For unary: Count of all the
# tokens decoded per response_candidate.
# Corresponds to the JSON property `totalDecodedTokenCount`
# @return [Fixnum]
attr_accessor :total_decoded_token_count
Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AiplatformV1
# Version of the google-apis-aiplatform_v1 gem
GEM_VERSION = "0.21.0"
GEM_VERSION = "0.22.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"

# Revision of the discovery document this client was generated from
REVISION = "20240417"
REVISION = "20240429"
end
end
end

0 comments on commit ebab635

Please sign in to comment.