Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Dec 22, 2024
1 parent b89d85a commit c1849c7
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 16 deletions.
4 changes: 2 additions & 2 deletions aiplatform/v1/aiplatform-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -19327,7 +19327,7 @@
}
}
},
"revision": "20241210",
"revision": "20241214",
"rootUrl": "https://aiplatform.googleapis.com/",
"schemas": {
"CloudAiLargeModelsVisionGenerateVideoResponse": {
Expand Down Expand Up @@ -20936,7 +20936,7 @@
"type": "object"
},
"GoogleCloudAiplatformV1Blob": {
"description": "Content blob. It's preferred to send as text directly rather than raw bytes.",
"description": "Content blob.",
"id": "GoogleCloudAiplatformV1Blob",
"properties": {
"data": {
Expand Down
3 changes: 1 addition & 2 deletions aiplatform/v1/aiplatform-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 33 additions & 4 deletions aiplatform/v1beta1/aiplatform-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -21964,7 +21964,7 @@
}
}
},
"revision": "20241210",
"revision": "20241214",
"rootUrl": "https://aiplatform.googleapis.com/",
"schemas": {
"CloudAiLargeModelsVisionGenerateVideoResponse": {
Expand Down Expand Up @@ -23781,7 +23781,7 @@
"type": "object"
},
"GoogleCloudAiplatformV1beta1Blob": {
"description": "Content blob. It's preferred to send as text directly rather than raw bytes.",
"description": "Content blob.",
"id": "GoogleCloudAiplatformV1beta1Blob",
"properties": {
"data": {
Expand Down Expand Up @@ -26578,7 +26578,7 @@
},
"pipelineRootDirectory": {
"deprecated": true,
"description": "Required. Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.",
"description": "Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.",
"type": "string"
},
"studentModel": {
Expand All @@ -26588,7 +26588,7 @@
},
"trainingDatasetUri": {
"deprecated": true,
"description": "Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.",
"description": "Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.",
"type": "string"
},
"tunedTeacherModelSource": {
Expand Down Expand Up @@ -37346,6 +37346,10 @@
"description": "Optional. Text part (can be code).",
"type": "string"
},
"thought": {
"description": "Optional. Indicates if the part is thought from the model.",
"type": "boolean"
},
"videoMetadata": {
"$ref": "GoogleCloudAiplatformV1beta1VideoMetadata",
"description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data."
Expand Down Expand Up @@ -39872,6 +39876,10 @@
"$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser",
"description": "The Layout Parser to use for RagFiles."
},
"llmParser": {
"$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser",
"description": "The LLM Parser to use for RagFiles."
},
"useAdvancedPdfParsing": {
"deprecated": true,
"description": "Whether to use advanced PDF parsing.",
Expand Down Expand Up @@ -39907,6 +39915,26 @@
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser": {
"description": "Specifies the advanced parsing for RagFiles.",
"id": "GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser",
"properties": {
"customParsingPrompt": {
"description": "The prompt to use for parsing. If not specified, a default prompt will be used.",
"type": "string"
},
"maxParsingRequestsPerMin": {
"description": "The maximum number of requests the job is allowed to make to the LLM model per minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your document size to set an appropriate value here. If unspecified, a default value of 5000 QPM would be used.",
"format": "int32",
"type": "integer"
},
"modelName": {
"description": "The name of a LLM model used for parsing. Format: `gemini-1.5-pro-002`",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudAiplatformV1beta1RagFileTransformationConfig": {
"description": "Specifies the transformation config for RagFiles.",
"id": "GoogleCloudAiplatformV1beta1RagFileTransformationConfig",
Expand Down Expand Up @@ -49556,6 +49584,7 @@
"description": "Tuning Spec for open sourced and third party Partner models."
},
"pipelineJob": {
"deprecated": true,
"description": "Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.",
"readOnly": true,
"type": "string"
Expand Down
51 changes: 43 additions & 8 deletions aiplatform/v1beta1/aiplatform-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -4429,8 +4429,7 @@ func (s GoogleCloudAiplatformV1beta1BleuSpec) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}

// GoogleCloudAiplatformV1beta1Blob: Content blob. It's preferred to send as
// text directly rather than raw bytes.
// GoogleCloudAiplatformV1beta1Blob: Content blob.
type GoogleCloudAiplatformV1beta1Blob struct {
// Data: Required. Raw bytes.
Data string `json:"data,omitempty"`
Expand Down Expand Up @@ -8411,16 +8410,15 @@ type GoogleCloudAiplatformV1beta1DistillationSpec struct {
BaseTeacherModel string `json:"baseTeacherModel,omitempty"`
// HyperParameters: Optional. Hyperparameters for Distillation.
HyperParameters *GoogleCloudAiplatformV1beta1DistillationHyperParameters `json:"hyperParameters,omitempty"`
// PipelineRootDirectory: Required. Deprecated. A path in a Cloud Storage
// bucket, which will be treated as the root output directory of the
// distillation pipeline. It is used by the system to generate the paths of
// output artifacts.
// PipelineRootDirectory: Deprecated. A path in a Cloud Storage bucket, which
// will be treated as the root output directory of the distillation pipeline.
// It is used by the system to generate the paths of output artifacts.
PipelineRootDirectory string `json:"pipelineRootDirectory,omitempty"`
// StudentModel: The student model that is being tuned, e.g.,
// "google/gemma-2b-1.1-it". Deprecated. Use base_model instead.
StudentModel string `json:"studentModel,omitempty"`
// TrainingDatasetUri: Required. Cloud Storage path to file containing training
// dataset for tuning. The dataset must be formatted as a JSONL file.
// TrainingDatasetUri: Deprecated. Cloud Storage path to file containing
// training dataset for tuning. The dataset must be formatted as a JSONL file.
TrainingDatasetUri string `json:"trainingDatasetUri,omitempty"`
// TunedTeacherModelSource: The resource name of the Tuned teacher model.
// Format: `projects/{project}/locations/{location}/models/{model}`.
Expand Down Expand Up @@ -23360,6 +23358,8 @@ type GoogleCloudAiplatformV1beta1Part struct {
InlineData *GoogleCloudAiplatformV1beta1Blob `json:"inlineData,omitempty"`
// Text: Optional. Text part (can be code).
Text string `json:"text,omitempty"`
// Thought: Optional. Indicates if the part is thought from the model.
Thought bool `json:"thought,omitempty"`
// VideoMetadata: Optional. Video metadata. The metadata should only be
// specified while the video data is presented in inline_data or file_data.
VideoMetadata *GoogleCloudAiplatformV1beta1VideoMetadata `json:"videoMetadata,omitempty"`
Expand Down Expand Up @@ -26767,6 +26767,8 @@ type GoogleCloudAiplatformV1beta1RagFileParsingConfig struct {
AdvancedParser *GoogleCloudAiplatformV1beta1RagFileParsingConfigAdvancedParser `json:"advancedParser,omitempty"`
// LayoutParser: The Layout Parser to use for RagFiles.
LayoutParser *GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser `json:"layoutParser,omitempty"`
// LlmParser: The LLM Parser to use for RagFiles.
LlmParser *GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser `json:"llmParser,omitempty"`
// UseAdvancedPdfParsing: Whether to use advanced PDF parsing.
UseAdvancedPdfParsing bool `json:"useAdvancedPdfParsing,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdvancedParser") to
Expand Down Expand Up @@ -26845,6 +26847,39 @@ func (s GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser) MarshalJSO
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}

// GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser: Specifies the
// advanced parsing for RagFiles.
type GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser struct {
// CustomParsingPrompt: The prompt to use for parsing. If not specified, a
// default prompt will be used.
CustomParsingPrompt string `json:"customParsingPrompt,omitempty"`
// MaxParsingRequestsPerMin: The maximum number of requests the job is allowed
// to make to the LLM model per minute. Consult
// https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your
// document size to set an appropriate value here. If unspecified, a default
// value of 5000 QPM would be used.
MaxParsingRequestsPerMin int64 `json:"maxParsingRequestsPerMin,omitempty"`
// ModelName: The name of a LLM model used for parsing. Format:
// `gemini-1.5-pro-002`
ModelName string `json:"modelName,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomParsingPrompt") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CustomParsingPrompt") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}

func (s GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}

// GoogleCloudAiplatformV1beta1RagFileTransformationConfig: Specifies the
// transformation config for RagFiles.
type GoogleCloudAiplatformV1beta1RagFileTransformationConfig struct {
Expand Down

0 comments on commit c1849c7

Please sign in to comment.