Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v2.147.0 support #62

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions googleapiclient-stubs/_apis/accessapproval/v1/schemas.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ApprovalRequest(typing_extensions.TypedDict, total=False):
dismiss: DismissDecision
name: str
requestTime: str
requestedAugmentedInfo: AugmentedInfo
requestedDuration: str
requestedExpiration: str
requestedLocations: AccessLocations
Expand All @@ -72,6 +73,10 @@ class ApproveDecision(typing_extensions.TypedDict, total=False):
invalidateTime: str
signatureInfo: SignatureInfo

@typing.type_check_only
class AugmentedInfo(typing_extensions.TypedDict, total=False):
command: str

@typing.type_check_only
class DismissApprovalRequestMessage(typing_extensions.TypedDict, total=False): ...

Expand Down
31 changes: 31 additions & 0 deletions googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ class AccessPolicy(typing_extensions.TypedDict, total=False):
scopes: _list[str]
title: str

@typing.type_check_only
class AccessScope(typing_extensions.TypedDict, total=False):
clientScope: ClientScope

@typing.type_check_only
class AccessSettings(typing_extensions.TypedDict, total=False):
accessLevels: _list[str]
reauthSettings: ReauthSettings

@typing.type_check_only
class ApiOperation(typing_extensions.TypedDict, total=False):
methodSelectors: _list[MethodSelector]
Expand Down Expand Up @@ -77,6 +86,10 @@ class Binding(typing_extensions.TypedDict, total=False):
@typing.type_check_only
class CancelOperationRequest(typing_extensions.TypedDict, total=False): ...

@typing.type_check_only
class ClientScope(typing_extensions.TypedDict, total=False):
restrictedClientApplication: Application

@typing.type_check_only
class CommitServicePerimetersRequest(typing_extensions.TypedDict, total=False):
etag: str
Expand Down Expand Up @@ -164,7 +177,9 @@ class GcpUserAccessBinding(typing_extensions.TypedDict, total=False):
dryRunAccessLevels: _list[str]
groupKey: str
name: str
reauthSettings: ReauthSettings
restrictedClientApplications: _list[Application]
scopedAccessSettings: _list[ScopedAccessSettings]

@typing.type_check_only
class GcpUserAccessBindingOperationMetadata(
Expand Down Expand Up @@ -274,6 +289,16 @@ class Policy(typing_extensions.TypedDict, total=False):
etag: str
version: int

@typing.type_check_only
class ReauthSettings(typing_extensions.TypedDict, total=False):
maxInactivity: str
reauthMethod: typing_extensions.Literal[
"REAUTH_METHOD_UNSPECIFIED", "LOGIN", "SECURITY_KEY", "PASSWORD"
]
sessionLength: str
sessionLengthEnabled: bool
useOidcMaxAge: bool

@typing.type_check_only
class ReplaceAccessLevelsRequest(typing_extensions.TypedDict, total=False):
accessLevels: _list[AccessLevel]
Expand All @@ -292,6 +317,12 @@ class ReplaceServicePerimetersRequest(typing_extensions.TypedDict, total=False):
class ReplaceServicePerimetersResponse(typing_extensions.TypedDict, total=False):
servicePerimeters: _list[ServicePerimeter]

@typing.type_check_only
class ScopedAccessSettings(typing_extensions.TypedDict, total=False):
activeSettings: AccessSettings
dryRunSettings: AccessSettings
scope: AccessScope

@typing.type_check_only
class ServicePerimeter(typing_extensions.TypedDict, total=False):
description: str
Expand Down
200 changes: 200 additions & 0 deletions googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,123 @@ _list = list

@typing.type_check_only
class AiplatformResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class DatasetsResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class DatasetVersionsResource(googleapiclient.discovery.Resource):
def create(
self,
*,
parent: str,
body: GoogleCloudAiplatformV1DatasetVersion = ...,
**kwargs: typing.Any,
) -> GoogleLongrunningOperationHttpRequest: ...
def delete(
self, *, name: str, **kwargs: typing.Any
) -> GoogleLongrunningOperationHttpRequest: ...
def get(
self, *, name: str, readMask: str = ..., **kwargs: typing.Any
) -> GoogleCloudAiplatformV1DatasetVersionHttpRequest: ...
def list(
self,
*,
parent: str,
filter: str = ...,
orderBy: str = ...,
pageSize: int = ...,
pageToken: str = ...,
readMask: str = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1ListDatasetVersionsResponseHttpRequest: ...
def list_next(
self,
previous_request: GoogleCloudAiplatformV1ListDatasetVersionsResponseHttpRequest,
previous_response: GoogleCloudAiplatformV1ListDatasetVersionsResponse,
) -> (
GoogleCloudAiplatformV1ListDatasetVersionsResponseHttpRequest | None
): ...
def patch(
self,
*,
name: str,
body: GoogleCloudAiplatformV1DatasetVersion = ...,
updateMask: str = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1DatasetVersionHttpRequest: ...
def restore(
self, *, name: str, **kwargs: typing.Any
) -> GoogleLongrunningOperationHttpRequest: ...

def create(
self,
*,
body: GoogleCloudAiplatformV1Dataset = ...,
parent: str = ...,
**kwargs: typing.Any,
) -> GoogleLongrunningOperationHttpRequest: ...
def delete(
self, *, name: str, **kwargs: typing.Any
) -> GoogleLongrunningOperationHttpRequest: ...
def get(
self, *, name: str, readMask: str = ..., **kwargs: typing.Any
) -> GoogleCloudAiplatformV1DatasetHttpRequest: ...
def list(
self,
*,
filter: str = ...,
orderBy: str = ...,
pageSize: int = ...,
pageToken: str = ...,
parent: str = ...,
readMask: str = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1ListDatasetsResponseHttpRequest: ...
def list_next(
self,
previous_request: GoogleCloudAiplatformV1ListDatasetsResponseHttpRequest,
previous_response: GoogleCloudAiplatformV1ListDatasetsResponse,
) -> GoogleCloudAiplatformV1ListDatasetsResponseHttpRequest | None: ...
def patch(
self,
*,
name: str,
body: GoogleCloudAiplatformV1Dataset = ...,
updateMask: str = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1DatasetHttpRequest: ...
def datasetVersions(self) -> DatasetVersionsResource: ...

@typing.type_check_only
class EndpointsResource(googleapiclient.discovery.Resource):
def computeTokens(
self,
*,
endpoint: str,
body: GoogleCloudAiplatformV1ComputeTokensRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1ComputeTokensResponseHttpRequest: ...
def countTokens(
self,
*,
endpoint: str,
body: GoogleCloudAiplatformV1CountTokensRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1CountTokensResponseHttpRequest: ...
def generateContent(
self,
*,
model: str,
body: GoogleCloudAiplatformV1GenerateContentRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1GenerateContentResponseHttpRequest: ...
def streamGenerateContent(
self,
*,
model: str,
body: GoogleCloudAiplatformV1GenerateContentRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1GenerateContentResponseHttpRequest: ...

@typing.type_check_only
class ProjectsResource(googleapiclient.discovery.Resource):
@typing.type_check_only
Expand Down Expand Up @@ -1051,6 +1168,13 @@ class AiplatformResource(googleapiclient.discovery.Resource):
def get(
self, *, name: str, **kwargs: typing.Any
) -> GoogleCloudAiplatformV1FeatureViewHttpRequest: ...
def getIamPolicy(
self,
*,
resource: str,
options_requestedPolicyVersion: int = ...,
**kwargs: typing.Any,
) -> GoogleIamV1PolicyHttpRequest: ...
def list(
self,
*,
Expand Down Expand Up @@ -1086,13 +1210,27 @@ class AiplatformResource(googleapiclient.discovery.Resource):
) -> (
GoogleCloudAiplatformV1SearchNearestEntitiesResponseHttpRequest
): ...
def setIamPolicy(
self,
*,
resource: str,
body: GoogleIamV1SetIamPolicyRequest = ...,
**kwargs: typing.Any,
) -> GoogleIamV1PolicyHttpRequest: ...
def sync(
self,
*,
featureView: str,
body: GoogleCloudAiplatformV1SyncFeatureViewRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1SyncFeatureViewResponseHttpRequest: ...
def testIamPermissions(
self,
*,
resource: str,
permissions: str | _list[str] = ...,
**kwargs: typing.Any,
) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ...
def featureViewSyncs(self) -> FeatureViewSyncsResource: ...
def operations(self) -> OperationsResource: ...

Expand Down Expand Up @@ -1136,6 +1274,13 @@ class AiplatformResource(googleapiclient.discovery.Resource):
def get(
self, *, name: str, **kwargs: typing.Any
) -> GoogleCloudAiplatformV1FeatureOnlineStoreHttpRequest: ...
def getIamPolicy(
self,
*,
resource: str,
options_requestedPolicyVersion: int = ...,
**kwargs: typing.Any,
) -> GoogleIamV1PolicyHttpRequest: ...
def list(
self,
*,
Expand Down Expand Up @@ -1164,6 +1309,20 @@ class AiplatformResource(googleapiclient.discovery.Resource):
updateMask: str = ...,
**kwargs: typing.Any,
) -> GoogleLongrunningOperationHttpRequest: ...
def setIamPolicy(
self,
*,
resource: str,
body: GoogleIamV1SetIamPolicyRequest = ...,
**kwargs: typing.Any,
) -> GoogleIamV1PolicyHttpRequest: ...
def testIamPermissions(
self,
*,
resource: str,
permissions: str | _list[str] = ...,
**kwargs: typing.Any,
) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ...
def featureViews(self) -> FeatureViewsResource: ...
def operations(self) -> OperationsResource: ...

Expand Down Expand Up @@ -3951,6 +4110,9 @@ class AiplatformResource(googleapiclient.discovery.Resource):
def cancel(
self, *, name: str, **kwargs: typing.Any
) -> GoogleProtobufEmptyHttpRequest: ...
def delete(
self, *, name: str, **kwargs: typing.Any
) -> GoogleProtobufEmptyHttpRequest: ...
def get(
self, *, name: str, **kwargs: typing.Any
) -> GoogleLongrunningOperationHttpRequest: ...
Expand Down Expand Up @@ -4002,6 +4164,13 @@ class AiplatformResource(googleapiclient.discovery.Resource):
) -> (
GoogleCloudAiplatformV1ListTuningJobsResponseHttpRequest | None
): ...
def rebaseTunedModel(
self,
*,
parent: str,
body: GoogleCloudAiplatformV1RebaseTunedModelRequest = ...,
**kwargs: typing.Any,
) -> GoogleLongrunningOperationHttpRequest: ...
def operations(self) -> OperationsResource: ...

def evaluateInstances(
Expand Down Expand Up @@ -4067,10 +4236,32 @@ class AiplatformResource(googleapiclient.discovery.Resource):
class PublishersResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class ModelsResource(googleapiclient.discovery.Resource):
def computeTokens(
self,
*,
endpoint: str,
body: GoogleCloudAiplatformV1ComputeTokensRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1ComputeTokensResponseHttpRequest: ...
def countTokens(
self,
*,
endpoint: str,
body: GoogleCloudAiplatformV1CountTokensRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1CountTokensResponseHttpRequest: ...
def generateContent(
self,
*,
model: str,
body: GoogleCloudAiplatformV1GenerateContentRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1GenerateContentResponseHttpRequest: ...
def get(
self,
*,
name: str,
huggingFaceToken: str = ...,
isHuggingFaceModel: bool = ...,
languageCode: str = ...,
view: typing_extensions.Literal[
Expand All @@ -4081,6 +4272,13 @@ class AiplatformResource(googleapiclient.discovery.Resource):
] = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1PublisherModelHttpRequest: ...
def streamGenerateContent(
self,
*,
model: str,
body: GoogleCloudAiplatformV1GenerateContentRequest = ...,
**kwargs: typing.Any,
) -> GoogleCloudAiplatformV1GenerateContentResponseHttpRequest: ...

def models(self) -> ModelsResource: ...

Expand All @@ -4096,6 +4294,8 @@ class AiplatformResource(googleapiclient.discovery.Resource):
]
| None = None,
) -> googleapiclient.http.BatchHttpRequest: ...
def datasets(self) -> DatasetsResource: ...
def endpoints(self) -> EndpointsResource: ...
def projects(self) -> ProjectsResource: ...
def publishers(self) -> PublishersResource: ...

Expand Down
Loading
Loading