|
7719 | 7719 | "https://www.googleapis.com/auth/cloud-platform" |
7720 | 7720 | ] |
7721 | 7721 | }, |
| 7722 | + "getIamPolicy": { |
| 7723 | + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", |
| 7724 | + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:getIamPolicy", |
| 7725 | + "httpMethod": "POST", |
| 7726 | + "id": "aiplatform.projects.locations.datasets.getIamPolicy", |
| 7727 | + "parameterOrder": [ |
| 7728 | + "resource" |
| 7729 | + ], |
| 7730 | + "parameters": { |
| 7731 | + "options.requestedPolicyVersion": { |
| 7732 | + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", |
| 7733 | + "format": "int32", |
| 7734 | + "location": "query", |
| 7735 | + "type": "integer" |
| 7736 | + }, |
| 7737 | + "resource": { |
| 7738 | + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", |
| 7739 | + "location": "path", |
| 7740 | + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", |
| 7741 | + "required": true, |
| 7742 | + "type": "string" |
| 7743 | + } |
| 7744 | + }, |
| 7745 | + "path": "v1/{+resource}:getIamPolicy", |
| 7746 | + "response": { |
| 7747 | + "$ref": "GoogleIamV1Policy" |
| 7748 | + }, |
| 7749 | + "scopes": [ |
| 7750 | + "https://www.googleapis.com/auth/cloud-platform" |
| 7751 | + ] |
| 7752 | + }, |
7722 | 7753 | "import": { |
7723 | 7754 | "description": "Imports data into a Dataset.", |
7724 | 7755 | "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", |
|
7929 | 7960 | "scopes": [ |
7930 | 7961 | "https://www.googleapis.com/auth/cloud-platform" |
7931 | 7962 | ] |
| 7963 | + }, |
| 7964 | + "setIamPolicy": { |
| 7965 | + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", |
| 7966 | + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:setIamPolicy", |
| 7967 | + "httpMethod": "POST", |
| 7968 | + "id": "aiplatform.projects.locations.datasets.setIamPolicy", |
| 7969 | + "parameterOrder": [ |
| 7970 | + "resource" |
| 7971 | + ], |
| 7972 | + "parameters": { |
| 7973 | + "resource": { |
| 7974 | + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", |
| 7975 | + "location": "path", |
| 7976 | + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", |
| 7977 | + "required": true, |
| 7978 | + "type": "string" |
| 7979 | + } |
| 7980 | + }, |
| 7981 | + "path": "v1/{+resource}:setIamPolicy", |
| 7982 | + "request": { |
| 7983 | + "$ref": "GoogleIamV1SetIamPolicyRequest" |
| 7984 | + }, |
| 7985 | + "response": { |
| 7986 | + "$ref": "GoogleIamV1Policy" |
| 7987 | + }, |
| 7988 | + "scopes": [ |
| 7989 | + "https://www.googleapis.com/auth/cloud-platform" |
| 7990 | + ] |
| 7991 | + }, |
| 7992 | + "testIamPermissions": { |
| 7993 | + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", |
| 7994 | + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:testIamPermissions", |
| 7995 | + "httpMethod": "POST", |
| 7996 | + "id": "aiplatform.projects.locations.datasets.testIamPermissions", |
| 7997 | + "parameterOrder": [ |
| 7998 | + "resource" |
| 7999 | + ], |
| 8000 | + "parameters": { |
| 8001 | + "permissions": { |
| 8002 | + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", |
| 8003 | + "location": "query", |
| 8004 | + "repeated": true, |
| 8005 | + "type": "string" |
| 8006 | + }, |
| 8007 | + "resource": { |
| 8008 | + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", |
| 8009 | + "location": "path", |
| 8010 | + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", |
| 8011 | + "required": true, |
| 8012 | + "type": "string" |
| 8013 | + } |
| 8014 | + }, |
| 8015 | + "path": "v1/{+resource}:testIamPermissions", |
| 8016 | + "response": { |
| 8017 | + "$ref": "GoogleIamV1TestIamPermissionsResponse" |
| 8018 | + }, |
| 8019 | + "scopes": [ |
| 8020 | + "https://www.googleapis.com/auth/cloud-platform" |
| 8021 | + ] |
7932 | 8022 | } |
7933 | 8023 | }, |
7934 | 8024 | "resources": { |
|
28603 | 28693 | } |
28604 | 28694 | } |
28605 | 28695 | }, |
28606 | | - "revision": "20251028", |
| 28696 | + "revision": "20251101", |
28607 | 28697 | "rootUrl": "https://aiplatform.googleapis.com/", |
28608 | 28698 | "schemas": { |
28609 | 28699 | "CloudAiLargeModelsVisionGenerateVideoResponse": { |
|
32002 | 32092 | "id": "GoogleCloudAiplatformV1CustomCodeExecutionSpec", |
32003 | 32093 | "properties": { |
32004 | 32094 | "evaluationFunction": { |
32005 | | - "description": "Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text=\"The answer is 4.\"), reference=EvaluationInstance.InstanceData(text=\"4\") ) ``` Example converted input: ``` { 'response': {'text': 'The answer is 4.'}, 'reference': {'text': '4'} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -> float: if instance'response' == instance'reference': return 1.0 return 0.0 ```", |
| 32095 | + "description": "Required. Python function. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name]. Example: Example input: ``` instance= EvaluationInstance( response=EvaluationInstance.InstanceData(text=\"The answer is 4.\"), reference=EvaluationInstance.InstanceData(text=\"4\") ) ``` Example converted input: ``` { 'response': {'text': 'The answer is 4.'}, 'reference': {'text': '4'} } ``` Example python function: ``` def evaluate(instance: dict[str, Any]) -> float: if instance'response' == instance'reference': return 1.0 return 0.0 ``` CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset RPC) and Tuning Evaluation. Each line in the input jsonl file will be converted to dict[str, Any] and passed to the evaluation function.", |
32006 | 32096 | "type": "string" |
32007 | 32097 | } |
32008 | 32098 | }, |
|
34455 | 34545 | "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents", |
34456 | 34546 | "description": "A list of events." |
34457 | 34547 | }, |
34458 | | - "eventsText": { |
34459 | | - "description": "A JSON string containing a sequence of events.", |
34460 | | - "type": "string" |
34461 | | - }, |
34462 | 34548 | "tools": { |
34463 | 34549 | "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools", |
34464 | 34550 | "deprecated": true, |
|
0 commit comments